@nuraly/lumenui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nuralyui.bundle.js +23024 -17355
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +8 -5
- package/dist/src/components/alert/alert.component.js +24 -20
- package/dist/src/components/alert/alert.style.d.ts +0 -7
- package/dist/src/components/alert/alert.style.js +48 -90
- package/dist/src/components/alert/bundle.js +82 -108
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/badge/badge.component.d.ts +9 -8
- package/dist/src/components/badge/badge.component.js +17 -14
- package/dist/src/components/badge/badge.style.d.ts +0 -7
- package/dist/src/components/badge/badge.style.js +49 -107
- package/dist/src/components/badge/bundle.js +81 -119
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
- package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
- package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
- package/dist/src/components/breadcrumb/bundle.js +96 -93
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/button/bundle.js +221 -470
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +2 -1
- package/dist/src/components/button/button.component.js +6 -6
- package/dist/src/components/button/button.style.d.ts +0 -7
- package/dist/src/components/button/button.style.js +167 -433
- package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
- package/dist/src/components/canvas/base-canvas.component.js +1 -0
- package/dist/src/components/canvas/bundle.js +16919 -9595
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
- package/dist/src/components/canvas/canvas.constants.js +1 -1
- package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
- package/dist/src/components/canvas/index.d.ts +2 -0
- package/dist/src/components/canvas/index.js +3 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
- package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
- package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
- package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
- package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
- package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
- package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
- package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
- package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
- package/dist/src/components/canvas/workflow-node.component.js +5 -5
- package/dist/src/components/canvas/workflow-node.style.js +183 -181
- package/dist/src/components/card/bundle.js +43 -35
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +6 -1
- package/dist/src/components/card/card.component.js +8 -2
- package/dist/src/components/card/card.style.js +26 -30
- package/dist/src/components/carousel/bundle.js +8 -8
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +12 -0
- package/dist/src/components/carousel/carousel.component.js +16 -4
- package/dist/src/components/chatbot/bundle.js +422 -406
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
- package/dist/src/components/chatbot/chatbot.component.js +1 -0
- package/dist/src/components/chatbot/chatbot.style.js +277 -277
- package/dist/src/components/checkbox/bundle.js +86 -245
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
- package/dist/src/components/checkbox/checkbox.component.js +11 -13
- package/dist/src/components/checkbox/checkbox.style.js +56 -231
- package/dist/src/components/code-editor/bundle.js +151 -25
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
- package/dist/src/components/code-editor/code-editor.component.js +141 -394
- package/dist/src/components/code-editor/code-editor.style.js +139 -15
- package/dist/src/components/collapse/bundle.js +97 -84
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +7 -1
- package/dist/src/components/collapse/collapse.component.js +11 -2
- package/dist/src/components/collapse/collapse.style.js +60 -60
- package/dist/src/components/colorpicker/bundle.js +85 -48
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
- package/dist/src/components/colorpicker/color-holder.component.js +5 -6
- package/dist/src/components/colorpicker/color-holder.style.js +11 -11
- package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
- package/dist/src/components/colorpicker/color-picker.component.js +1 -0
- package/dist/src/components/colorpicker/color-picker.style.js +12 -12
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
- package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
- package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
- package/dist/src/components/container/bundle.js +24 -14
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +4 -1
- package/dist/src/components/container/container.component.js +7 -5
- package/dist/src/components/container/container.style.js +9 -9
- package/dist/src/components/datepicker/bundle.js +193 -177
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
- package/dist/src/components/datepicker/datepicker.component.js +1 -0
- package/dist/src/components/datepicker/datepicker.style.js +65 -65
- package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
- package/dist/src/components/db-connection-select/bundle.js +7 -6
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
- package/dist/src/components/divider/bundle.js +61 -35
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +4 -6
- package/dist/src/components/divider/divider.component.js +10 -14
- package/dist/src/components/divider/divider.style.js +41 -31
- package/dist/src/components/document/bundle.js +50 -48
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +12 -1
- package/dist/src/components/document/document.component.js +18 -6
- package/dist/src/components/document/document.style.js +21 -36
- package/dist/src/components/dropdown/bundle.js +117 -101
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
- package/dist/src/components/dropdown/dropdown.component.js +1 -0
- package/dist/src/components/dropdown/dropdown.style.js +68 -68
- package/dist/src/components/file-upload/bundle.js +82 -76
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
- package/dist/src/components/file-upload/file-upload.component.js +1 -0
- package/dist/src/components/file-upload/styles.js +59 -59
- package/dist/src/components/flex/bundle.js +18 -8
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +4 -1
- package/dist/src/components/flex/flex.component.js +7 -4
- package/dist/src/components/flex/flex.style.js +2 -2
- package/dist/src/components/form/bundle.js +22 -10
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +4 -1
- package/dist/src/components/form/form.component.js +5 -1
- package/dist/src/components/form/form.style.js +2 -2
- package/dist/src/components/grid/bundle.js +26 -14
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +4 -1
- package/dist/src/components/grid/col.component.js +4 -1
- package/dist/src/components/grid/col.style.js +2 -2
- package/dist/src/components/grid/row.component.d.ts +4 -1
- package/dist/src/components/grid/row.component.js +4 -1
- package/dist/src/components/grid/row.style.js +2 -2
- package/dist/src/components/icon/bundle.js +78 -252
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon-paths.d.ts +2 -0
- package/dist/src/components/icon/icon-paths.js +141 -0
- package/dist/src/components/icon/icon.component.d.ts +10 -12
- package/dist/src/components/icon/icon.component.js +42 -93
- package/dist/src/components/icon/icon.style.js +42 -130
- package/dist/src/components/icon/icon.variables.js +9 -9
- package/dist/src/components/iconpicker/bundle.js +859 -1511
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
- package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
- package/dist/src/components/image/bundle.js +43 -33
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +10 -1
- package/dist/src/components/image/image.component.js +13 -3
- package/dist/src/components/image/image.style.js +19 -26
- package/dist/src/components/input/bundle.js +420 -644
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/input.component.d.ts +16 -3
- package/dist/src/components/input/input.component.js +43 -27
- package/dist/src/components/input/input.style.d.ts +1 -1
- package/dist/src/components/input/input.style.js +331 -634
- package/dist/src/components/kv-secret-select/bundle.js +2 -1
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
- package/dist/src/components/label/bundle.js +37 -60
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/label.component.d.ts +8 -4
- package/dist/src/components/label/label.component.js +9 -14
- package/dist/src/components/label/label.style.js +17 -25
- package/dist/src/components/label/label.style.variables.js +18 -18
- package/dist/src/components/layout/bundle.js +86 -70
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +2 -1
- package/dist/src/components/layout/content.component.js +2 -1
- package/dist/src/components/layout/content.style.js +3 -3
- package/dist/src/components/layout/footer.component.d.ts +2 -1
- package/dist/src/components/layout/footer.component.js +3 -2
- package/dist/src/components/layout/footer.style.js +7 -7
- package/dist/src/components/layout/header.component.d.ts +2 -1
- package/dist/src/components/layout/header.component.js +3 -2
- package/dist/src/components/layout/header.style.js +7 -7
- package/dist/src/components/layout/layout.component.d.ts +4 -7
- package/dist/src/components/layout/layout.component.js +9 -22
- package/dist/src/components/layout/layout.style.js +1 -1
- package/dist/src/components/layout/sider.component.d.ts +3 -1
- package/dist/src/components/layout/sider.component.js +3 -1
- package/dist/src/components/layout/sider.style.js +29 -29
- package/dist/src/components/menu/bundle.js +135 -125
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/menu.component.d.ts +2 -1
- package/dist/src/components/menu/menu.component.js +1 -0
- package/dist/src/components/menu/menu.style.js +87 -87
- package/dist/src/components/modal/bundle.js +105 -96
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/modal.component.d.ts +2 -1
- package/dist/src/components/modal/modal.component.js +1 -0
- package/dist/src/components/modal/modal.style.js +69 -71
- package/dist/src/components/panel/bundle.js +190 -391
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/panel.component.d.ts +2 -1
- package/dist/src/components/panel/panel.component.js +1 -0
- package/dist/src/components/panel/panel.style.js +65 -65
- package/dist/src/components/popconfirm/bundle.js +107 -93
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
- package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
- package/dist/src/components/radio/bundle.js +56 -86
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/radio.component.d.ts +8 -2
- package/dist/src/components/radio/radio.component.js +17 -9
- package/dist/src/components/radio/radio.style.js +30 -77
- package/dist/src/components/radio-group/bundle.js +125 -89
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
- package/dist/src/components/radio-group/radio-group.component.js +18 -10
- package/dist/src/components/radio-group/radio-group.style.js +44 -44
- package/dist/src/components/select/bundle.js +260 -367
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/select.component.d.ts +12 -17
- package/dist/src/components/select/select.component.js +35 -35
- package/dist/src/components/select/select.style.js +184 -324
- package/dist/src/components/skeleton/bundle.js +82 -162
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
- package/dist/src/components/skeleton/skeleton.component.js +20 -7
- package/dist/src/components/skeleton/skeleton.style.js +34 -133
- package/dist/src/components/slider-input/bundle.js +89 -88
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
- package/dist/src/components/slider-input/slider-input.component.js +20 -8
- package/dist/src/components/slider-input/slider-input.style.js +47 -47
- package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
- package/dist/src/components/table/bundle.js +149 -128
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/table.component.d.ts +2 -1
- package/dist/src/components/table/table.component.js +1 -0
- package/dist/src/components/table/table.style.js +79 -79
- package/dist/src/components/tabs/bundle.js +462 -663
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/tabs.component.d.ts +6 -1
- package/dist/src/components/tabs/tabs.component.js +8 -1
- package/dist/src/components/tabs/tabs.style.js +200 -201
- package/dist/src/components/tag/bundle.js +44 -36
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/tag.component.d.ts +7 -6
- package/dist/src/components/tag/tag.component.js +10 -19
- package/dist/src/components/tag/tag.style.js +20 -24
- package/dist/src/components/textarea/bundle.js +131 -94
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/textarea.component.d.ts +7 -1
- package/dist/src/components/textarea/textarea.component.js +10 -3
- package/dist/src/components/textarea/textarea.style.d.ts +1 -13
- package/dist/src/components/textarea/textarea.style.js +79 -91
- package/dist/src/components/timeline/bundle.js +71 -134
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/timeline.component.d.ts +9 -6
- package/dist/src/components/timeline/timeline.component.js +16 -13
- package/dist/src/components/timeline/timeline.style.d.ts +0 -7
- package/dist/src/components/timeline/timeline.style.js +41 -122
- package/dist/src/components/timepicker/bundle.js +196 -166
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
- package/dist/src/components/timepicker/timepicker.component.js +1 -0
- package/dist/src/components/timepicker/timepicker.style.js +42 -42
- package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
- package/dist/src/components/toast/bundle.js +97 -81
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/toast.component.d.ts +2 -1
- package/dist/src/components/toast/toast.component.js +1 -0
- package/dist/src/components/toast/toast.style.js +62 -62
- package/dist/src/components/tooltips/bundle.js +10 -10
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
- package/dist/src/components/tooltips/tooltips.component.js +9 -1
- package/dist/src/components/tooltips/tooltips.style.js +6 -6
- package/dist/src/components/video/bundle.js +47 -36
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/video.component.d.ts +12 -1
- package/dist/src/components/video/video.component.js +18 -6
- package/dist/src/components/video/video.style.js +18 -24
- package/package.json +25 -12
- package/packages/common/dist/VERSIONS.md +2 -2
- package/packages/common/dist/shared/base-mixin.d.ts +21 -19
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/base-mixin.js +102 -18
- package/packages/common/dist/shared/base-mixin.js.map +1 -1
- package/packages/common/dist/shared/index.d.ts +1 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -1
- package/packages/common/dist/shared/index.js +2 -0
- package/packages/common/dist/shared/index.js.map +1 -1
- package/packages/common/dist/shared/style-injector.d.ts +11 -0
- package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
- package/packages/common/dist/shared/style-injector.js +53 -0
- package/packages/common/dist/shared/style-injector.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/theme-mixin.js +5 -38
- package/packages/common/dist/shared/theme-mixin.js.map +1 -1
- package/packages/themes/dist/default.css +0 -10
- package/packages/themes/dist/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { LitElement } from 'lit';
|
|
7
7
|
import { WorkflowNode } from './workflow-canvas.types.js';
|
|
8
8
|
import '../icon/icon.component.js';
|
|
9
|
-
declare const WhiteboardNodeElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
|
|
9
|
+
declare const WhiteboardNodeElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & (new (...args: any[]) => import("packages/common/src/shared/base-mixin.js").LightDomContent) & typeof LitElement;
|
|
10
10
|
/**
|
|
11
11
|
* Whiteboard node component for displaying Miro-style visual elements
|
|
12
12
|
*
|
|
@@ -21,6 +21,7 @@ declare const WhiteboardNodeElement_base: (new (...args: any[]) => import("@nura
|
|
|
21
21
|
* @fires note-resize-start - When resize handle is grabbed
|
|
22
22
|
*/
|
|
23
23
|
export declare class WhiteboardNodeElement extends WhiteboardNodeElement_base {
|
|
24
|
+
static useShadowDom: boolean;
|
|
24
25
|
static styles: import("lit").CSSResult;
|
|
25
26
|
node: WorkflowNode;
|
|
26
27
|
selected: boolean;
|
|
@@ -24,7 +24,6 @@ import { customElement, property, state } from 'lit/decorators.js';
|
|
|
24
24
|
import { classMap } from 'lit/directives/class-map.js';
|
|
25
25
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
26
26
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
27
|
-
import mermaid from 'mermaid';
|
|
28
27
|
import { NODE_COLORS, WhiteboardNodeType, } from './workflow-canvas.types.js';
|
|
29
28
|
import { styles } from './whiteboard-node.style.js';
|
|
30
29
|
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
@@ -137,6 +136,7 @@ let WhiteboardNodeElement = WhiteboardNodeElement_1 = class WhiteboardNodeElemen
|
|
|
137
136
|
}
|
|
138
137
|
_renderMermaid(definition_1) {
|
|
139
138
|
return __awaiter(this, arguments, void 0, function* (definition, theme = 'default') {
|
|
139
|
+
const { default: mermaid } = yield import(/* @vite-ignore */ 'mermaid');
|
|
140
140
|
mermaid.initialize({ startOnLoad: false, theme: theme });
|
|
141
141
|
try {
|
|
142
142
|
const { svg } = yield mermaid.render(`mermaid-${this.node.id.replaceAll(/[^a-zA-Z0-9]/g, '')}`, definition);
|
|
@@ -770,6 +770,7 @@ let WhiteboardNodeElement = WhiteboardNodeElement_1 = class WhiteboardNodeElemen
|
|
|
770
770
|
return nodeContent;
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
|
+
WhiteboardNodeElement.useShadowDom = true;
|
|
773
774
|
WhiteboardNodeElement.styles = styles;
|
|
774
775
|
WhiteboardNodeElement.CLICK_THRESHOLD = 5;
|
|
775
776
|
__decorate([
|
|
@@ -8,10 +8,10 @@ export const whiteboardNodeStyles = css `
|
|
|
8
8
|
display: block;
|
|
9
9
|
position: absolute;
|
|
10
10
|
user-select: none;
|
|
11
|
-
color:
|
|
11
|
+
color: #161616;
|
|
12
12
|
|
|
13
13
|
* {
|
|
14
|
-
transition: all
|
|
14
|
+
transition: all 0.15s ease;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -22,11 +22,11 @@ export const whiteboardNodeStyles = css `
|
|
|
22
22
|
.node-container {
|
|
23
23
|
position: relative;
|
|
24
24
|
cursor: grab;
|
|
25
|
-
font-family:
|
|
25
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.node-container.selected {
|
|
29
|
-
outline: 2px solid
|
|
29
|
+
outline: 2px solid #7c3aed;
|
|
30
30
|
outline-offset: 4px;
|
|
31
31
|
border-radius: 4px;
|
|
32
32
|
}
|
|
@@ -56,7 +56,7 @@ export const whiteboardNodeStyles = css `
|
|
|
56
56
|
|
|
57
57
|
.node-container.wb-node.selected {
|
|
58
58
|
border: none;
|
|
59
|
-
outline: 2px solid
|
|
59
|
+
outline: 2px solid #7c3aed;
|
|
60
60
|
outline-offset: 4px;
|
|
61
61
|
border-radius: 4px;
|
|
62
62
|
}
|
|
@@ -211,7 +211,7 @@ export const whiteboardNodeStyles = css `
|
|
|
211
211
|
overflow: hidden;
|
|
212
212
|
cursor: grab;
|
|
213
213
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
214
|
-
background:
|
|
214
|
+
background: #e8e8e8;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
.wb-image-content {
|
|
@@ -229,7 +229,7 @@ export const whiteboardNodeStyles = css `
|
|
|
229
229
|
align-items: center;
|
|
230
230
|
justify-content: center;
|
|
231
231
|
gap: 8px;
|
|
232
|
-
color:
|
|
232
|
+
color: #525252;
|
|
233
233
|
font-size: 12px;
|
|
234
234
|
}
|
|
235
235
|
|
|
@@ -242,7 +242,7 @@ export const whiteboardNodeStyles = css `
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.node-container.wb-frame.selected {
|
|
245
|
-
border: 2px dashed
|
|
245
|
+
border: 2px dashed #7c3aed;
|
|
246
246
|
outline: none;
|
|
247
247
|
}
|
|
248
248
|
|
|
@@ -252,7 +252,7 @@ export const whiteboardNodeStyles = css `
|
|
|
252
252
|
left: 0;
|
|
253
253
|
font-size: 12px;
|
|
254
254
|
font-weight: 600;
|
|
255
|
-
color:
|
|
255
|
+
color: #525252;
|
|
256
256
|
white-space: nowrap;
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -303,7 +303,7 @@ export const whiteboardNodeStyles = css `
|
|
|
303
303
|
left: 0;
|
|
304
304
|
font-size: 12px;
|
|
305
305
|
font-weight: 600;
|
|
306
|
-
color:
|
|
306
|
+
color: #525252;
|
|
307
307
|
white-space: nowrap;
|
|
308
308
|
}
|
|
309
309
|
|
|
@@ -314,7 +314,7 @@ export const whiteboardNodeStyles = css `
|
|
|
314
314
|
overflow: hidden;
|
|
315
315
|
cursor: grab;
|
|
316
316
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
317
|
-
background:
|
|
317
|
+
background: #e8e8e8;
|
|
318
318
|
border: 2px solid #8b5cf6;
|
|
319
319
|
border-color: inherit;
|
|
320
320
|
box-sizing: border-box;
|
|
@@ -342,7 +342,7 @@ export const whiteboardNodeStyles = css `
|
|
|
342
342
|
align-items: center;
|
|
343
343
|
justify-content: center;
|
|
344
344
|
gap: 8px;
|
|
345
|
-
color:
|
|
345
|
+
color: #525252;
|
|
346
346
|
font-size: 12px;
|
|
347
347
|
}
|
|
348
348
|
|
|
@@ -350,8 +350,8 @@ export const whiteboardNodeStyles = css `
|
|
|
350
350
|
.node-container.wb-workflow {
|
|
351
351
|
border-radius: 8px;
|
|
352
352
|
overflow: hidden;
|
|
353
|
-
background:
|
|
354
|
-
border: 1px solid
|
|
353
|
+
background: #ffffff;
|
|
354
|
+
border: 1px solid #e0e0e0;
|
|
355
355
|
width: var(--wb-width, 280px);
|
|
356
356
|
height: var(--wb-height, 200px);
|
|
357
357
|
display: flex;
|
|
@@ -383,7 +383,7 @@ export const whiteboardNodeStyles = css `
|
|
|
383
383
|
.wb-workflow-body {
|
|
384
384
|
flex: 1;
|
|
385
385
|
overflow-y: auto;
|
|
386
|
-
background:
|
|
386
|
+
background: #ffffff;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
.wb-workflow-steps {
|
|
@@ -397,8 +397,8 @@ export const whiteboardNodeStyles = css `
|
|
|
397
397
|
gap: 8px;
|
|
398
398
|
padding: 6px 12px;
|
|
399
399
|
font-size: 12px;
|
|
400
|
-
color:
|
|
401
|
-
border-bottom: 1px solid
|
|
400
|
+
color: #161616;
|
|
401
|
+
border-bottom: 1px solid #e0e0e0;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
.wb-workflow-step:last-child {
|
|
@@ -406,7 +406,7 @@ export const whiteboardNodeStyles = css `
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.wb-workflow-step nr-icon {
|
|
409
|
-
color:
|
|
409
|
+
color: #525252;
|
|
410
410
|
flex-shrink: 0;
|
|
411
411
|
}
|
|
412
412
|
|
|
@@ -424,7 +424,7 @@ export const whiteboardNodeStyles = css `
|
|
|
424
424
|
align-items: center;
|
|
425
425
|
justify-content: center;
|
|
426
426
|
gap: 8px;
|
|
427
|
-
color:
|
|
427
|
+
color: #525252;
|
|
428
428
|
font-size: 12px;
|
|
429
429
|
}
|
|
430
430
|
|
|
@@ -432,8 +432,8 @@ export const whiteboardNodeStyles = css `
|
|
|
432
432
|
.node-container.wb-database {
|
|
433
433
|
border-radius: 8px;
|
|
434
434
|
overflow: hidden;
|
|
435
|
-
background:
|
|
436
|
-
border: 1px solid
|
|
435
|
+
background: #ffffff;
|
|
436
|
+
border: 1px solid #e0e0e0;
|
|
437
437
|
width: var(--wb-width, 280px);
|
|
438
438
|
height: var(--wb-height, 200px);
|
|
439
439
|
display: flex;
|
|
@@ -465,7 +465,7 @@ export const whiteboardNodeStyles = css `
|
|
|
465
465
|
.wb-database-body {
|
|
466
466
|
flex: 1;
|
|
467
467
|
overflow-y: auto;
|
|
468
|
-
background:
|
|
468
|
+
background: #ffffff;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
.wb-database-columns {
|
|
@@ -479,8 +479,8 @@ export const whiteboardNodeStyles = css `
|
|
|
479
479
|
gap: 8px;
|
|
480
480
|
padding: 6px 12px;
|
|
481
481
|
font-size: 12px;
|
|
482
|
-
color:
|
|
483
|
-
border-bottom: 1px solid
|
|
482
|
+
color: #161616;
|
|
483
|
+
border-bottom: 1px solid #e0e0e0;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
.wb-database-column:last-child {
|
|
@@ -488,7 +488,7 @@ export const whiteboardNodeStyles = css `
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.wb-database-column nr-icon {
|
|
491
|
-
color:
|
|
491
|
+
color: #525252;
|
|
492
492
|
flex-shrink: 0;
|
|
493
493
|
}
|
|
494
494
|
|
|
@@ -505,7 +505,7 @@ export const whiteboardNodeStyles = css `
|
|
|
505
505
|
|
|
506
506
|
.wb-database-column-type {
|
|
507
507
|
font-size: 11px;
|
|
508
|
-
color:
|
|
508
|
+
color: #525252;
|
|
509
509
|
flex-shrink: 0;
|
|
510
510
|
}
|
|
511
511
|
|
|
@@ -524,7 +524,7 @@ export const whiteboardNodeStyles = css `
|
|
|
524
524
|
align-items: center;
|
|
525
525
|
justify-content: center;
|
|
526
526
|
gap: 8px;
|
|
527
|
-
color:
|
|
527
|
+
color: #525252;
|
|
528
528
|
font-size: 12px;
|
|
529
529
|
}
|
|
530
530
|
|
|
@@ -590,7 +590,7 @@ export const whiteboardNodeStyles = css `
|
|
|
590
590
|
right: -5px;
|
|
591
591
|
width: 10px;
|
|
592
592
|
height: 10px;
|
|
593
|
-
background:
|
|
593
|
+
background: #7c3aed;
|
|
594
594
|
border: 2px solid white;
|
|
595
595
|
border-radius: 2px;
|
|
596
596
|
cursor: se-resize;
|
|
@@ -617,25 +617,25 @@ export const whiteboardNodeStyles = css `
|
|
|
617
617
|
width: 8px;
|
|
618
618
|
height: 8px;
|
|
619
619
|
border-radius: 50%;
|
|
620
|
-
background:
|
|
621
|
-
border: 1.5px solid
|
|
620
|
+
background: #4a4a4a;
|
|
621
|
+
border: 1.5px solid #666;
|
|
622
622
|
cursor: crosshair;
|
|
623
623
|
pointer-events: auto;
|
|
624
|
-
transition: transform
|
|
625
|
-
background
|
|
626
|
-
border-color
|
|
624
|
+
transition: transform 0.15s ease,
|
|
625
|
+
background 0.15s ease,
|
|
626
|
+
border-color 0.15s ease;
|
|
627
627
|
z-index: 10;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
.port:hover {
|
|
631
631
|
transform: scale(1.3);
|
|
632
|
-
background:
|
|
632
|
+
background: #5a5a5a;
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.port.connecting {
|
|
636
636
|
transform: scale(1.4);
|
|
637
|
-
background:
|
|
638
|
-
border-color:
|
|
637
|
+
background: #7c3aed;
|
|
638
|
+
border-color: #7c3aed;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
.port.compatible {
|
|
@@ -649,20 +649,20 @@ export const whiteboardNodeStyles = css `
|
|
|
649
649
|
|
|
650
650
|
.port.input {
|
|
651
651
|
left: -4px;
|
|
652
|
-
background:
|
|
653
|
-
border-color:
|
|
652
|
+
background: #6b7280;
|
|
653
|
+
border-color: #525252;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
.port.output {
|
|
657
657
|
right: -4px;
|
|
658
|
-
background:
|
|
659
|
-
border-color:
|
|
658
|
+
background: #7c3aed;
|
|
659
|
+
border-color: #2563eb;
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
.port-label {
|
|
663
663
|
position: absolute;
|
|
664
|
-
font-size:
|
|
665
|
-
color:
|
|
664
|
+
font-size: 9px;
|
|
665
|
+
color: #525252;
|
|
666
666
|
white-space: nowrap;
|
|
667
667
|
pointer-events: none;
|
|
668
668
|
top: 50%;
|
|
@@ -704,7 +704,7 @@ export const whiteboardNodeStyles = css `
|
|
|
704
704
|
position: absolute;
|
|
705
705
|
bottom: -24px;
|
|
706
706
|
left: 0;
|
|
707
|
-
font-family:
|
|
707
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
708
708
|
font-size: 11px;
|
|
709
709
|
font-weight: 500;
|
|
710
710
|
white-space: nowrap;
|
|
@@ -740,7 +740,7 @@ export const whiteboardNodeStyles = css `
|
|
|
740
740
|
border: 1px solid rgba(245, 158, 11, 1);
|
|
741
741
|
border-radius: 12px;
|
|
742
742
|
color: #fff;
|
|
743
|
-
font-family:
|
|
743
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
744
744
|
font-size: 11px;
|
|
745
745
|
font-weight: 600;
|
|
746
746
|
white-space: nowrap;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Workflow canvas only — excludes whiteboard components (which depend on mermaid)
|
|
2
|
+
export * from './workflow-canvas.types.js';
|
|
3
|
+
export * from './workflow-node.component.js';
|
|
4
|
+
export * from './workflow-canvas.component.js';
|
|
5
|
+
//# sourceMappingURL=workflow-canvas-only.js.map
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { nothing } from 'lit';
|
|
7
7
|
import { Workflow, WorkflowNode, CanvasType, NodeConfiguration } from './workflow-canvas.types.js';
|
|
8
8
|
import type { DatabaseProvider } from './data-node/data-node.types.js';
|
|
9
|
+
import '../select/select.component.js';
|
|
9
10
|
import './workflow-node.component.js';
|
|
10
11
|
import { BaseCanvasElement } from './base-canvas.component.js';
|
|
11
12
|
/**
|
|
@@ -17,7 +18,8 @@ import { BaseCanvasElement } from './base-canvas.component.js';
|
|
|
17
18
|
* @fires node-configured - When a node configuration is requested
|
|
18
19
|
*/
|
|
19
20
|
export declare class WorkflowCanvasElement extends BaseCanvasElement {
|
|
20
|
-
static
|
|
21
|
+
static useShadowDom: boolean;
|
|
22
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
21
23
|
canvasType: CanvasType;
|
|
22
24
|
nodeStatuses: Record<string, 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED'>;
|
|
23
25
|
agentActivity: Record<string, {
|
|
@@ -23,6 +23,17 @@ import { customElement, property, state } from 'lit/decorators.js';
|
|
|
23
23
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
24
24
|
import { CanvasType, ExecutionStatus, WorkflowNodeType, TriggerConnectionState, isPersistentTriggerNode, NODE_TEMPLATES, } from './workflow-canvas.types.js';
|
|
25
25
|
import { styles } from './workflow-canvas.style.js';
|
|
26
|
+
// Light DOM component styles — must be included in canvas Shadow DOM
|
|
27
|
+
// so they apply to Light DOM children rendered inside this shadow root
|
|
28
|
+
import { buttonStyles } from '../button/button.style.js';
|
|
29
|
+
import { styles as selectStyles } from '../select/select.style.js';
|
|
30
|
+
import { styles as checkboxStyles } from '../checkbox/checkbox.style.js';
|
|
31
|
+
import { styles as alertStyles } from '../alert/alert.style.js';
|
|
32
|
+
import { styles as cardStyles } from '../card/card.style.js';
|
|
33
|
+
import { styles as radioStyles } from '../radio/radio.style.js';
|
|
34
|
+
import { styles as inputStyles } from '../input/input.style.js';
|
|
35
|
+
import '../select/select.component.js';
|
|
36
|
+
import labelStyles from '../label/label.style.js';
|
|
26
37
|
import './workflow-node.component.js';
|
|
27
38
|
import { ChatbotCoreController } from '../chatbot/core/chatbot-core.controller.js';
|
|
28
39
|
import { ChatbotSender } from '../chatbot/chatbot.types.js';
|
|
@@ -317,7 +328,7 @@ let WorkflowCanvasElement = class WorkflowCanvasElement extends BaseCanvasElemen
|
|
|
317
328
|
yield this.chatPreviewProvider.connect({
|
|
318
329
|
workflowId,
|
|
319
330
|
socketUrl,
|
|
320
|
-
socketPath: '/
|
|
331
|
+
socketPath: '/__nk_socketio/',
|
|
321
332
|
triggerEndpoint: '/api/v1/workflows/{workflowId}/trigger/chat',
|
|
322
333
|
responseTimeout: 60000,
|
|
323
334
|
onMessage: (message) => {
|
|
@@ -1400,7 +1411,18 @@ let WorkflowCanvasElement = class WorkflowCanvasElement extends BaseCanvasElemen
|
|
|
1400
1411
|
`;
|
|
1401
1412
|
}
|
|
1402
1413
|
};
|
|
1403
|
-
WorkflowCanvasElement.
|
|
1414
|
+
WorkflowCanvasElement.useShadowDom = true;
|
|
1415
|
+
WorkflowCanvasElement.styles = [
|
|
1416
|
+
styles,
|
|
1417
|
+
buttonStyles,
|
|
1418
|
+
selectStyles,
|
|
1419
|
+
checkboxStyles,
|
|
1420
|
+
alertStyles,
|
|
1421
|
+
cardStyles,
|
|
1422
|
+
radioStyles,
|
|
1423
|
+
inputStyles,
|
|
1424
|
+
labelStyles,
|
|
1425
|
+
];
|
|
1404
1426
|
__decorate([
|
|
1405
1427
|
property({ type: String })
|
|
1406
1428
|
], WorkflowCanvasElement.prototype, "canvasType", void 0);
|