types.ui - ZeMA-gGmbH/NoPE-JS GitHub Wiki
types.ui
Author
Martin Karkowski
Email
Re-exports EDGE_TYPE_INFO_CONSUME_DATA
Re-exports EDGE_TYPE_INFO_CONSUME_EVENT
Re-exports EDGE_TYPE_INFO_CONSUME_PATH
Re-exports EDGE_TYPE_INFO_IS_SUB_INFO
Re-exports EDGE_TYPE_LOGIC_AVOIDS
Re-exports EDGE_TYPE_LOGIC_CONSUME_TOKEN
Re-exports EDGE_TYPE_LOGIC_PRODUCE_TOKEN
Re-exports EDGE_TYPE_LOGIC_RELEASES
Re-exports EDGE_TYPE_LOGIC_REMOVE_RELEASES
Re-exports EDGE_TYPE_LOGIC_REQUIRES
Re-exports EDGE_TYPE_LOGIC_TRIGGERS
Re-exports EDGE_TYPE_PLANNER_AVOIDS
Re-exports EDGE_TYPE_PLANNER_LEADS_TO
Re-exports EDGE_TYPE_PLANNER_RELEASES
Re-exports EDGE_TYPE_PLANNER_REQUIRES
Re-exports IAdaptDataCallback
Re-exports IAdditionalSelectionContextMenuEntry
Re-exports IBaseEdge
Re-exports IBaseElement
Re-exports IBaseNode
Re-exports IBasicLayoutComponent
Re-exports IBreak
Re-exports IButton
Re-exports ICallback
Re-exports ICheckbox
Re-exports IColor
Re-exports ICustomDropDown
Re-exports ICustomHTML
Re-exports ICustomRender
Re-exports IHotKeyAction
Re-exports ILayout
Re-exports ILayoutOptions
Re-exports IMenu
Re-exports IMenuCheckbox
Re-exports IMenubar
Re-exports IMinProvidedDataSet
Re-exports IPanel
Re-exports IPanelControl
Re-exports IPanelInstance
Re-exports IPanelOptions
Re-exports IPanels
Re-exports IPort
Re-exports IPossiblePanels
Re-exports IRadioButton
Re-exports IRadioMenuItemDescription
Re-exports IRenderHTML
Re-exports IRenderMarkdown
Re-exports IRenderW2UIElement
Re-exports ISelectionConfig
Re-exports ISelectionContextMenuEntry
Re-exports ISelectionElement
Re-exports ISelectionGroup
Re-exports ISelectionTemplate
Re-exports IServiceEditPage
Re-exports ISpacer
Re-exports ITab
Re-exports ITabProps
Re-exports ITextColor
Re-exports IToolbar
Re-exports IToolbarConfig
Re-exports IToolbarElements
Re-exports IW2UISelection
Re-exports NODE_TYPE_BOOL_AND
Re-exports NODE_TYPE_BOOL_NOT
Re-exports NODE_TYPE_BOOL_OR
Re-exports NODE_TYPE_BOOL_XOR
Re-exports NODE_TYPE_CONSTANT
Re-exports NODE_TYPE_DATA_IF
Re-exports NODE_TYPE_DATA_TO_ON_CHANGE
Re-exports NODE_TYPE_DATA_TO_ON_TRUE
Re-exports NODE_TYPE_DATA_TO_TOKEN
Re-exports NODE_TYPE_EVENT_TO_DATA
Re-exports NODE_TYPE_FLOW_IF
Re-exports NODE_TYPE_FLOW_OPERATION
Re-exports NODE_TYPE_FLOW_SYNC
Re-exports NODE_TYPE_GROUP
Re-exports NODE_TYPE_MODULE
Re-exports NODE_TYPE_PLACE
Re-exports NODE_TYPE_START
Re-exports NODE_TYPE_TOKEN_TO_DATA
Re-exports NODE_TYPE_TRANSITION
Re-exports NODE_TYPE_VAR
Re-exports NODE_TYPE_WAIT_FOR
Re-exports PE
Re-exports PN
Re-exports PORT_ACTION_FIRE
Re-exports PORT_ACTION_FIRED
Re-exports PORT_ACTION_LOCK
Re-exports PORT_ACTION_RELEASE
Re-exports PORT_AVOID_TOKEN
Re-exports PORT_CONSUME_TOKEN
Re-exports PORT_DATA
Re-exports PORT_EVENT
Re-exports PORT_FLOW_OP_DONE
Re-exports PORT_FLOW_OP_ERROR
Re-exports PORT_FLOW_OP_EXECUTE
Re-exports PORT_FUNCTION
Re-exports PORT_PLACE
Re-exports PORT_PRODUCE_TOKEN
Re-exports PORT_REQUIRE_TOKEN
Re-exports PORT_SERVICE_DONE
Re-exports PORT_SERVICE_ERROR
Re-exports PORT_SERVICE_RESULT
Re-exports TGetPorts
Re-exports TRenderAngularComponentAtElement
Re-exports TRenderFunction
Re-exports TRenderFunctionResult
Re-exports TRendering
Re-exports TServiceGetPortsReturn
Re-exports VALID_ACTION_PORTS
Re-exports VALID_BASE_PORTS
Re-exports VALID_EDGES
Re-exports VALID_FLOW_PORTS
Re-exports VALID_NODES
Re-exports VALID_PETRINET_PORTS
Re-exports VALID_PORTS
Re-exports VALID_SERVICE_PORTS
Re-exports ValidPanels
Re-exports callbacks
Re-exports edges
Re-exports nodes
IUiTheme: Object
| Name | Type |
|---|---|
colors |
{ danger: string ; dark: string ; info: string ; light: string ; primary: string ; secondary: string ; success: string ; warning: string } |
colors.danger |
string |
colors.dark |
string |
colors.info |
string |
colors.light |
string |
colors.primary |
string |
colors.secondary |
string |
colors.success |
string |
colors.warning |
string |
font |
{ color: string ; computedFont: string ; size: number ; type: string } |
font.color |
string |
font.computedFont |
string |
font.size |
number |
font.type |
string |
TInstanceManagerPage<T, Extension>: (div: HTMLDivElement, options: IDynamicUiRenderData & { createInstance: (description: Partial<IInstanceCreationMsg>, options?: { assignmentValid?: TValidAsssignmentChecker ; selector?: ValidSelectorFunction }) => Promise<T & IGenericNopeModule> ; ctorName: string ; instances: INopeModuleDescription[] } & Extension) => Promise<TInstanceManagerPageResult>
| Name | Type |
|---|---|
T |
extends INopeModule = INopeModule
|
Extension |
{} |
(div, options): Promise<TInstanceManagerPageResult>
UI to define an instance.
| Name | Type |
|---|---|
div |
HTMLDivElement |
options |
IDynamicUiRenderData & { createInstance: (description: Partial<IInstanceCreationMsg>, options?: { assignmentValid?: TValidAsssignmentChecker ; selector?: ValidSelectorFunction }) => Promise<T & IGenericNopeModule> ; ctorName: string ; instances: INopeModuleDescription[] } & Extension
|
Promise<TInstanceManagerPageResult>
TLibraries: Object
Type containing the external libraries.
| Name | Type | Description |
|---|---|---|
ace |
typeof ace
|
Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim and TextMate. It can be easily embedded in any web page and JavaScript application. Ace is maintained as the primary editor for Cloud9 IDE and is the successor of the Mozilla Skywriter (Bespin) project. For more details checkout: https://ace.c9.io/#nav=about |
gojs |
typeof go
|
GoJS is a JavaScript library that lets you easily create interactive diagrams in modern web browsers. GoJS supports graphical templates and data-binding of graphical object properties to model data. You only need to save and restore the model, consisting of simple JavaScript objects holding whatever properties your app needs. Many predefined tools and commands implement the standard behaviors that most diagrams need. Customization of appearance and behavior is mostly a matter of setting properties. For more details checkout: https://gojs.net/latest/ |
jQuery |
any |
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript. Contains jQuery. See: https://jquery.com/ |
jsoneditor |
any |
Contains a library for a dynamic JSON-Editor. This contains a tree-view, with edit options. For more details checkout: https://github.com/josdejong/jsoneditor |
nope |
any |
The Nope Library. It contains only the Browser build. |
plotly |
typeof plotly
|
Built on top of d3.js and stack.gl, Plotly.js is a high-level, declarative charting library. plotly.js ships with over 40 chart types, including 3D charts, statistical graphs, and SVG maps. plotly.js is free and open source and you can view the source, report issues or contribute on GitHub. For Tutorials and more checkout: https://plotly.com/javascript/ |
w2ui |
any |
- |
w2uiHelpers |
{ nopeW2ui: any ; w2alert: (...args: any) => any ; w2confirm: (...args: any) => any ; w2grid: (...args: any) => any ; w2popup: (...args: any) => any ; w2prompt: (...args: any) => any ; w2utils: any } |
Out of the box w2ui is an all-in-one solution. It contains common UI widgets: Grid, Forms, Toolbars, Layout, Sidebar, Tabs, Popup and various field controls. You do not need to put together a collection of mismatched plugins to accomplish your goals. Contains the original w2ui Library. https://w2ui.com/web/ |
w2uiHelpers.nopeW2ui |
any |
The Custom W2UI-Helper provided by the nope-ui package. |
w2uiHelpers.w2alert |
(...args: any) => any
|
- |
w2uiHelpers.w2confirm |
(...args: any) => any
|
- |
w2uiHelpers.w2grid |
(...args: any) => any
|
- |
w2uiHelpers.w2popup |
(...args: any) => any
|
- |
w2uiHelpers.w2prompt |
(...args: any) => any
|
- |
w2uiHelpers.w2utils |
any |
- |
TRenderConfigureServicePage<T, Extension>: (div: HTMLDivElement, options: IRenderData & { input: T } & Extension) => Promise<IServiceEditPage>
| Name | Type |
|---|---|
T |
extends PN
|
Extension |
{} |
(div, options): Promise<IServiceEditPage>
Helper to configurate a service
| Name | Type |
|---|---|
div |
HTMLDivElement |
options |
IRenderData & { input: T } & Extension
|
Promise<IServiceEditPage>
TRenderInstancePage<T, Extension>: (div: HTMLDivElement, options: IDynamicUiRenderData & { input: T & IGenericNopeModule } & Extension) => Promise<TRenderFunctionResult>
| Name | Type |
|---|---|
T |
extends INopeModule = INopeModule
|
Extension |
{} |
(div, options): Promise<TRenderFunctionResult>
Helper used, to render the instance details
| Name | Type |
|---|---|
div |
HTMLDivElement |
options |
IDynamicUiRenderData & { input: T & IGenericNopeModule } & Extension
|
Promise<TRenderFunctionResult>
TSession: Object
Descripting a session, which the ui has established.
| Name | Type |
|---|---|
connection |
"mqtt" | "io-client"
|
dataServer |
string |
forwardData |
boolean |
name |
string |
port |
number |
required |
boolean |
uri |
string |
TSettingsObject: Object
▪ [index: string]: string | number | boolean
TSimpleSchema: Object
A Schema to receive an object from the url (use the query pattern)
▪ [index: string]: "number" | "integer" | "string" | "boolean" | { parse: (data: string) => any ; validate: (data: string) => boolean }
TcreateLayoutOptions: Object
| Name | Type | Description |
|---|---|---|
colors? |
any |
To define. |
divId |
string |
ID of the div. given via <div id="blabla" #blabla></div>
|
height? |
string | number
|
The height, that should be set e.g. 100% or 100px
|
id |
string |
Id of the Layout |
onResizeCallback? |
(event: any, panels?: IPossiblePanels) => void
|
Function which is called during resizing. Receives the event and the panels (containg all panels of the layout) |
width? |
string | number
|
The width, that should be set e.g. 100% or 100px
|