@nuraly/lumenui 0.2.1 → 0.2.2
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 +2010 -1271
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/button/controllers/base.controller.d.ts +15 -0
- package/dist/src/components/button/controllers/base.controller.js +13 -0
- package/dist/src/components/button/controllers/index.d.ts +10 -0
- package/dist/src/components/button/controllers/index.js +10 -0
- package/dist/src/components/button/controllers/keyboard.controller.d.ts +32 -0
- package/dist/src/components/button/controllers/keyboard.controller.js +78 -0
- package/dist/src/components/button/controllers/link.controller.d.ts +30 -0
- package/dist/src/components/button/controllers/link.controller.js +75 -0
- package/dist/src/components/button/controllers/ripple.controller.d.ts +23 -0
- package/dist/src/components/button/controllers/ripple.controller.js +69 -0
- package/dist/src/components/button/interfaces/base-controller.interface.d.ts +61 -0
- package/dist/src/components/button/interfaces/base-controller.interface.js +7 -0
- package/dist/src/components/button/interfaces/index.d.ts +2 -0
- package/dist/src/components/button/interfaces/index.js +2 -0
- package/dist/src/components/button/test/nr-button_test.d.ts +2 -0
- package/dist/src/components/button/test/nr-button_test.js +91 -0
- package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
- package/dist/src/components/canvas/base-canvas.component.js +6 -0
- package/dist/src/components/canvas/bundle.js +702 -475
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/chatbot-panel.style.js +50 -59
- package/dist/src/components/canvas/chatbot-trigger/chatbot-trigger-fields.component.d.ts +115 -0
- package/dist/src/components/canvas/chatbot-trigger/chatbot-trigger-fields.component.js +480 -0
- package/dist/src/components/canvas/chatbot-trigger/chatbot-trigger-fields.style.d.ts +7 -0
- package/dist/src/components/canvas/chatbot-trigger/chatbot-trigger-fields.style.js +323 -0
- package/dist/src/components/canvas/chatbot-trigger/chatbot-trigger.types.d.ts +162 -0
- package/dist/src/components/canvas/chatbot-trigger/chatbot-trigger.types.js +88 -0
- package/dist/src/components/canvas/chatbot-trigger/index.d.ts +9 -0
- package/dist/src/components/canvas/chatbot-trigger/index.js +12 -0
- package/dist/src/components/canvas/controllers/base.controller.d.ts +53 -0
- package/dist/src/components/canvas/controllers/base.controller.js +80 -0
- package/dist/src/components/canvas/controllers/clipboard.controller.d.ts +80 -0
- package/dist/src/components/canvas/controllers/clipboard.controller.js +300 -0
- package/dist/src/components/canvas/controllers/collaboration.controller.d.ts +54 -0
- package/dist/src/components/canvas/controllers/collaboration.controller.js +425 -0
- package/dist/src/components/canvas/controllers/config.controller.d.ts +61 -0
- package/dist/src/components/canvas/controllers/config.controller.js +118 -0
- package/dist/src/components/canvas/controllers/connection.controller.d.ts +69 -0
- package/dist/src/components/canvas/controllers/connection.controller.js +183 -0
- package/dist/src/components/canvas/controllers/drag.controller.d.ts +56 -0
- package/dist/src/components/canvas/controllers/drag.controller.js +195 -0
- package/dist/src/components/canvas/controllers/frame.controller.d.ts +94 -0
- package/dist/src/components/canvas/controllers/frame.controller.js +456 -0
- package/dist/src/components/canvas/controllers/index.d.ts +19 -0
- package/dist/src/components/canvas/controllers/index.js +32 -0
- package/dist/src/components/canvas/controllers/keyboard.controller.d.ts +44 -0
- package/dist/src/components/canvas/controllers/keyboard.controller.js +275 -0
- package/dist/src/components/canvas/controllers/marquee.controller.d.ts +71 -0
- package/dist/src/components/canvas/controllers/marquee.controller.js +128 -0
- package/dist/src/components/canvas/controllers/selection.controller.d.ts +85 -0
- package/dist/src/components/canvas/controllers/selection.controller.js +202 -0
- package/dist/src/components/canvas/controllers/touch.controller.d.ts +55 -0
- package/dist/src/components/canvas/controllers/touch.controller.js +299 -0
- package/dist/src/components/canvas/controllers/undo.controller.d.ts +100 -0
- package/dist/src/components/canvas/controllers/undo.controller.js +218 -0
- package/dist/src/components/canvas/controllers/viewport.controller.d.ts +91 -0
- package/dist/src/components/canvas/controllers/viewport.controller.js +287 -0
- package/dist/src/components/canvas/data-node/data-node-config.component.d.ts +67 -0
- package/dist/src/components/canvas/data-node/data-node-config.component.js +496 -0
- package/dist/src/components/canvas/data-node/data-node-fields.component.d.ts +198 -0
- package/dist/src/components/canvas/data-node/data-node-fields.component.js +931 -0
- package/dist/src/components/canvas/data-node/data-node-fields.style.d.ts +7 -0
- package/dist/src/components/canvas/data-node/data-node-fields.style.js +448 -0
- package/dist/src/components/canvas/data-node/data-node.types.d.ts +245 -0
- package/dist/src/components/canvas/data-node/data-node.types.js +158 -0
- package/dist/src/components/canvas/data-node/index.d.ts +9 -0
- package/dist/src/components/canvas/data-node/index.js +12 -0
- package/dist/src/components/canvas/data-node/schema-select.component.d.ts +36 -0
- package/dist/src/components/canvas/data-node/schema-select.component.js +196 -0
- package/dist/src/components/canvas/data-node/table-select.component.d.ts +38 -0
- package/dist/src/components/canvas/data-node/table-select.component.js +199 -0
- package/dist/src/components/canvas/interfaces/canvas-host.interface.d.ts +91 -0
- package/dist/src/components/canvas/interfaces/canvas-host.interface.js +7 -0
- package/dist/src/components/canvas/interfaces/collaboration.interface.d.ts +58 -0
- package/dist/src/components/canvas/interfaces/collaboration.interface.js +10 -0
- package/dist/src/components/canvas/interfaces/index.d.ts +8 -0
- package/dist/src/components/canvas/interfaces/index.js +7 -0
- package/dist/src/components/canvas/templates/chatbot-panel.template.d.ts +28 -0
- package/dist/src/components/canvas/templates/chatbot-panel.template.js +49 -0
- package/dist/src/components/canvas/templates/config-panel.template.d.ts +22 -0
- package/dist/src/components/canvas/templates/config-panel.template.js +22 -0
- package/dist/src/components/canvas/templates/context-menu.template.d.ts +30 -0
- package/dist/src/components/canvas/templates/context-menu.template.js +80 -0
- package/dist/src/components/canvas/templates/edges.template.d.ts +41 -0
- package/dist/src/components/canvas/templates/edges.template.js +243 -0
- package/dist/src/components/canvas/templates/empty-state.template.d.ts +17 -0
- package/dist/src/components/canvas/templates/empty-state.template.js +25 -0
- package/dist/src/components/canvas/templates/frame.template.d.ts +24 -0
- package/dist/src/components/canvas/templates/frame.template.js +74 -0
- package/dist/src/components/canvas/templates/index.d.ts +18 -0
- package/dist/src/components/canvas/templates/index.js +30 -0
- package/dist/src/components/canvas/templates/palette.template.d.ts +27 -0
- package/dist/src/components/canvas/templates/palette.template.js +110 -0
- package/dist/src/components/canvas/templates/presence-bar.template.d.ts +18 -0
- package/dist/src/components/canvas/templates/presence-bar.template.js +60 -0
- package/dist/src/components/canvas/templates/remote-cursors.template.d.ts +19 -0
- package/dist/src/components/canvas/templates/remote-cursors.template.js +43 -0
- package/dist/src/components/canvas/templates/toolbar.template.d.ts +52 -0
- package/dist/src/components/canvas/templates/toolbar.template.js +118 -0
- package/dist/src/components/canvas/templates/wb-floating-toolbar.template.d.ts +30 -0
- package/dist/src/components/canvas/templates/wb-floating-toolbar.template.js +219 -0
- package/dist/src/components/canvas/templates/wb-sidebar.template.d.ts +23 -0
- package/dist/src/components/canvas/templates/wb-sidebar.template.js +152 -0
- package/dist/src/components/canvas/utils/variable-resolver.d.ts +71 -0
- package/dist/src/components/canvas/utils/variable-resolver.js +280 -0
- package/dist/src/components/canvas/workflow-canvas.component.js +6 -0
- package/dist/src/components/canvas/workflow-canvas.style.js +46 -55
- package/dist/src/components/carousel/demo/carousel-demo.d.ts +6 -0
- package/dist/src/components/carousel/demo/carousel-demo.js +68 -0
- package/dist/src/components/chatbot/audio-compress.d.ts +26 -0
- package/dist/src/components/chatbot/audio-compress.js +84 -0
- package/dist/src/components/chatbot/bundle.js +388 -144
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot-audio.controller.d.ts +35 -0
- package/dist/src/components/chatbot/chatbot-audio.controller.js +160 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +12 -0
- package/dist/src/components/chatbot/chatbot.component.js +41 -2
- package/dist/src/components/chatbot/chatbot.style.js +141 -0
- package/dist/src/components/chatbot/chatbot.types.d.ts +8 -0
- package/dist/src/components/chatbot/controllers/index.d.ts +8 -0
- package/dist/src/components/chatbot/controllers/index.js +8 -0
- package/dist/src/components/chatbot/controllers/scroll.controller.d.ts +34 -0
- package/dist/src/components/chatbot/controllers/scroll.controller.js +43 -0
- package/dist/src/components/chatbot/core/chatbot-core.controller.d.ts +283 -0
- package/dist/src/components/chatbot/core/chatbot-core.controller.js +824 -0
- package/dist/src/components/chatbot/core/event-bus.d.ts +54 -0
- package/dist/src/components/chatbot/core/event-bus.js +102 -0
- package/dist/src/components/chatbot/core/index.d.ts +12 -0
- package/dist/src/components/chatbot/core/index.js +15 -0
- package/dist/src/components/chatbot/core/types.d.ts +403 -0
- package/dist/src/components/chatbot/core/types.js +16 -0
- package/dist/src/components/chatbot/locales/locale-codes.d.ts +14 -0
- package/dist/src/components/chatbot/locales/locale-codes.js +23 -0
- package/dist/src/components/chatbot/plugins/analytics-plugin.d.ts +23 -0
- package/dist/src/components/chatbot/plugins/analytics-plugin.js +52 -0
- package/dist/src/components/chatbot/plugins/artifact-plugin.d.ts +71 -0
- package/dist/src/components/chatbot/plugins/artifact-plugin.js +313 -0
- package/dist/src/components/chatbot/plugins/chat-plugin.d.ts +44 -0
- package/dist/src/components/chatbot/plugins/chat-plugin.js +58 -0
- package/dist/src/components/chatbot/plugins/flight-card-plugin.d.ts +116 -0
- package/dist/src/components/chatbot/plugins/flight-card-plugin.js +594 -0
- package/dist/src/components/chatbot/plugins/flow-diagram-plugin.d.ts +23 -0
- package/dist/src/components/chatbot/plugins/flow-diagram-plugin.js +495 -0
- package/dist/src/components/chatbot/plugins/index.d.ts +16 -0
- package/dist/src/components/chatbot/plugins/index.js +17 -0
- package/dist/src/components/chatbot/plugins/json-graph-renderer-plugin.d.ts +43 -0
- package/dist/src/components/chatbot/plugins/json-graph-renderer-plugin.js +166 -0
- package/dist/src/components/chatbot/plugins/markdown-plugin.d.ts +26 -0
- package/dist/src/components/chatbot/plugins/markdown-plugin.js +68 -0
- package/dist/src/components/chatbot/plugins/persistence-plugin.d.ts +30 -0
- package/dist/src/components/chatbot/plugins/persistence-plugin.js +91 -0
- package/dist/src/components/chatbot/plugins/print-job-card-plugin.d.ts +110 -0
- package/dist/src/components/chatbot/plugins/print-job-card-plugin.js +505 -0
- package/dist/src/components/chatbot/plugins/selection-card-plugin.d.ts +111 -0
- package/dist/src/components/chatbot/plugins/selection-card-plugin.js +318 -0
- package/dist/src/components/chatbot/providers/custom-api-provider.d.ts +63 -0
- package/dist/src/components/chatbot/providers/custom-api-provider.js +240 -0
- package/dist/src/components/chatbot/providers/index.d.ts +16 -0
- package/dist/src/components/chatbot/providers/index.js +13 -0
- package/dist/src/components/chatbot/providers/mock-provider.d.ts +154 -0
- package/dist/src/components/chatbot/providers/mock-provider.js +411 -0
- package/dist/src/components/chatbot/providers/native-ws-provider.d.ts +184 -0
- package/dist/src/components/chatbot/providers/native-ws-provider.js +544 -0
- package/dist/src/components/chatbot/providers/openai-provider.d.ts +32 -0
- package/dist/src/components/chatbot/providers/openai-provider.js +246 -0
- package/dist/src/components/chatbot/providers/socket-provider.d.ts +159 -0
- package/dist/src/components/chatbot/providers/socket-provider.js +390 -0
- package/dist/src/components/chatbot/providers/workflow-socket-provider.d.ts +116 -0
- package/dist/src/components/chatbot/providers/workflow-socket-provider.js +484 -0
- package/dist/src/components/chatbot/storage/index.d.ts +7 -0
- package/dist/src/components/chatbot/storage/index.js +8 -0
- package/dist/src/components/chatbot/storage/storage-implementations.d.ts +43 -0
- package/dist/src/components/chatbot/storage/storage-implementations.js +179 -0
- package/dist/src/components/chatbot/templates/artifact-panel.template.d.ts +22 -0
- package/dist/src/components/chatbot/templates/artifact-panel.template.js +81 -0
- package/dist/src/components/chatbot/templates/chatbot-main.template.d.ts +49 -0
- package/dist/src/components/chatbot/templates/chatbot-main.template.js +115 -0
- package/dist/src/components/chatbot/templates/file-preview-modal.template.d.ts +19 -0
- package/dist/src/components/chatbot/templates/file-preview-modal.template.js +74 -0
- package/dist/src/components/chatbot/templates/file-upload-area.template.d.ts +19 -0
- package/dist/src/components/chatbot/templates/file-upload-area.template.js +29 -0
- package/dist/src/components/chatbot/templates/index.d.ts +15 -0
- package/dist/src/components/chatbot/templates/index.js +15 -0
- package/dist/src/components/chatbot/templates/input-box.template.d.ts +49 -0
- package/dist/src/components/chatbot/templates/input-box.template.js +317 -0
- package/dist/src/components/chatbot/templates/message.template.d.ts +31 -0
- package/dist/src/components/chatbot/templates/message.template.js +214 -0
- package/dist/src/components/chatbot/templates/suggestion.template.d.ts +20 -0
- package/dist/src/components/chatbot/templates/suggestion.template.js +40 -0
- package/dist/src/components/chatbot/templates/thread-sidebar.template.d.ts +24 -0
- package/dist/src/components/chatbot/templates/thread-sidebar.template.js +160 -0
- package/dist/src/components/chatbot/templates/url-modal.template.d.ts +25 -0
- package/dist/src/components/chatbot/templates/url-modal.template.js +100 -0
- package/dist/src/components/chatbot/utils/format.d.ts +23 -0
- package/dist/src/components/chatbot/utils/format.js +84 -0
- package/dist/src/components/chatbot/utils/index.d.ts +7 -0
- package/dist/src/components/chatbot/utils/index.js +7 -0
- package/dist/src/components/checkbox/mixins/checkbox-event-mixin.d.ts +87 -0
- package/dist/src/components/checkbox/mixins/checkbox-event-mixin.js +94 -0
- package/dist/src/components/checkbox/mixins/checkbox-focus-mixin.d.ts +55 -0
- package/dist/src/components/checkbox/mixins/checkbox-focus-mixin.js +57 -0
- package/dist/src/components/checkbox/mixins/index.d.ts +10 -0
- package/dist/src/components/checkbox/mixins/index.js +8 -0
- package/dist/src/components/checkbox/test/checkbox_test.d.ts +2 -0
- package/dist/src/components/checkbox/test/checkbox_test.js +88 -0
- package/dist/src/components/collapse/controllers/accordion.controller.d.ts +60 -0
- package/dist/src/components/collapse/controllers/accordion.controller.js +132 -0
- package/dist/src/components/collapse/controllers/animation.controller.d.ts +40 -0
- package/dist/src/components/collapse/controllers/animation.controller.js +125 -0
- package/dist/src/components/collapse/controllers/base.controller.d.ts +48 -0
- package/dist/src/components/collapse/controllers/base.controller.js +69 -0
- package/dist/src/components/collapse/controllers/index.d.ts +12 -0
- package/dist/src/components/collapse/controllers/index.js +11 -0
- package/dist/src/components/collapse/controllers/keyboard.controller.d.ts +73 -0
- package/dist/src/components/collapse/controllers/keyboard.controller.js +186 -0
- package/dist/src/components/colorpicker/controllers/base.controller.d.ts +14 -0
- package/dist/src/components/colorpicker/controllers/base.controller.js +15 -0
- package/dist/src/components/colorpicker/controllers/dropdown.controller.d.ts +60 -0
- package/dist/src/components/colorpicker/controllers/dropdown.controller.js +243 -0
- package/dist/src/components/colorpicker/controllers/event.controller.d.ts +46 -0
- package/dist/src/components/colorpicker/controllers/event.controller.js +130 -0
- package/dist/src/components/colorpicker/controllers/index.d.ts +4 -0
- package/dist/src/components/colorpicker/controllers/index.js +4 -0
- package/dist/src/components/colorpicker/interfaces/index.d.ts +60 -0
- package/dist/src/components/colorpicker/interfaces/index.js +2 -0
- package/dist/src/components/datepicker/controllers/calendar.controller.d.ts +78 -0
- package/dist/src/components/datepicker/controllers/calendar.controller.js +225 -0
- package/dist/src/components/datepicker/controllers/index.d.ts +11 -0
- package/dist/src/components/datepicker/controllers/index.js +11 -0
- package/dist/src/components/datepicker/controllers/keyboard.controller.d.ts +96 -0
- package/dist/src/components/datepicker/controllers/keyboard.controller.js +246 -0
- package/dist/src/components/datepicker/controllers/month-year-dropdown.controller.d.ts +48 -0
- package/dist/src/components/datepicker/controllers/month-year-dropdown.controller.js +92 -0
- package/dist/src/components/datepicker/controllers/positioning.controller.d.ts +82 -0
- package/dist/src/components/datepicker/controllers/positioning.controller.js +247 -0
- package/dist/src/components/datepicker/controllers/selection.controller.d.ts +92 -0
- package/dist/src/components/datepicker/controllers/selection.controller.js +267 -0
- package/dist/src/components/datepicker/interfaces/base-controller.interface.d.ts +40 -0
- package/dist/src/components/datepicker/interfaces/base-controller.interface.js +7 -0
- package/dist/src/components/datepicker/interfaces/datepicker-controllers.interface.d.ts +112 -0
- package/dist/src/components/datepicker/interfaces/datepicker-controllers.interface.js +7 -0
- package/dist/src/components/datepicker/interfaces/index.d.ts +8 -0
- package/dist/src/components/datepicker/interfaces/index.js +7 -0
- package/dist/src/components/datepicker/templates/days.template.d.ts +4 -0
- package/dist/src/components/datepicker/templates/days.template.js +40 -0
- package/dist/src/components/datepicker/templates/dropdown.template.d.ts +10 -0
- package/dist/src/components/datepicker/templates/dropdown.template.js +50 -0
- package/dist/src/components/datepicker/templates/headers.template.d.ts +2 -0
- package/dist/src/components/datepicker/templates/headers.template.js +5 -0
- package/dist/src/components/datepicker/templates/months.template.d.ts +6 -0
- package/dist/src/components/datepicker/templates/months.template.js +10 -0
- package/dist/src/components/datepicker/templates/years.template.d.ts +6 -0
- package/dist/src/components/datepicker/templates/years.template.js +11 -0
- package/dist/src/components/datepicker/test/datepicker_test.d.ts +2 -0
- package/dist/src/components/datepicker/test/datepicker_test.js +134 -0
- package/dist/src/components/datepicker/utils/day.helper.d.ts +5 -0
- package/dist/src/components/datepicker/utils/day.helper.js +53 -0
- package/dist/src/components/datepicker/utils/formatter.d.ts +2 -0
- package/dist/src/components/datepicker/utils/formatter.js +9 -0
- package/dist/src/components/datepicker/utils/index.d.ts +11 -0
- package/dist/src/components/datepicker/utils/index.js +11 -0
- package/dist/src/components/datepicker/utils/locale.helper.d.ts +144 -0
- package/dist/src/components/datepicker/utils/locale.helper.js +151 -0
- package/dist/src/components/datepicker/utils/month.helper.d.ts +3 -0
- package/dist/src/components/datepicker/utils/month.helper.js +24 -0
- package/dist/src/components/datepicker/utils/string.helper.d.ts +2 -0
- package/dist/src/components/datepicker/utils/string.helper.js +4 -0
- package/dist/src/components/document/demo/document-demo.d.ts +12 -0
- package/dist/src/components/document/demo/document-demo.js +40 -0
- package/dist/src/components/dropdown/controllers/base.controller.d.ts +18 -0
- package/dist/src/components/dropdown/controllers/base.controller.js +22 -0
- package/dist/src/components/dropdown/controllers/dropdown.controller.d.ts +50 -0
- package/dist/src/components/dropdown/controllers/dropdown.controller.js +408 -0
- package/dist/src/components/dropdown/controllers/index.d.ts +3 -0
- package/dist/src/components/dropdown/controllers/index.js +3 -0
- package/dist/src/components/dropdown/interfaces/controller-interfaces.d.ts +79 -0
- package/dist/src/components/dropdown/interfaces/controller-interfaces.js +2 -0
- package/dist/src/components/dropdown/interfaces/index.d.ts +2 -0
- package/dist/src/components/dropdown/interfaces/index.js +2 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-item.d.ts +12 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-item.js +55 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-item.style.d.ts +2 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-item.style.js +34 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-menu.d.ts +18 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-menu.js +70 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-menu.style.d.ts +2 -0
- package/dist/src/components/dropdown/templates/nr-dropdown-menu.style.js +49 -0
- package/dist/src/components/file-upload/demo/file-upload-demo.d.ts +18 -0
- package/dist/src/components/file-upload/demo/file-upload-demo.js +156 -0
- package/dist/src/components/form/controllers/submission.controller.d.ts +60 -0
- package/dist/src/components/form/controllers/submission.controller.js +220 -0
- package/dist/src/components/form/controllers/validation.controller.d.ts +87 -0
- package/dist/src/components/form/controllers/validation.controller.js +236 -0
- package/dist/src/components/form/interfaces/validation.interface.d.ts +118 -0
- package/dist/src/components/form/interfaces/validation.interface.js +7 -0
- package/dist/src/components/icon/mixins/clickable-mixin.d.ts +57 -0
- package/dist/src/components/icon/mixins/clickable-mixin.js +111 -0
- package/dist/src/components/icon/mixins/index.d.ts +7 -0
- package/dist/src/components/icon/mixins/index.js +7 -0
- package/dist/src/components/iconpicker/controllers/event.controller.d.ts +38 -0
- package/dist/src/components/iconpicker/controllers/event.controller.js +68 -0
- package/dist/src/components/iconpicker/controllers/index.d.ts +9 -0
- package/dist/src/components/iconpicker/controllers/index.js +9 -0
- package/dist/src/components/iconpicker/controllers/search.controller.d.ts +34 -0
- package/dist/src/components/iconpicker/controllers/search.controller.js +55 -0
- package/dist/src/components/iconpicker/controllers/selection.controller.d.ts +27 -0
- package/dist/src/components/iconpicker/controllers/selection.controller.js +39 -0
- package/dist/src/components/iconpicker/interfaces/icon-picker.interface.d.ts +13 -0
- package/dist/src/components/iconpicker/interfaces/icon-picker.interface.js +7 -0
- package/dist/src/components/iconpicker/interfaces/index.d.ts +7 -0
- package/dist/src/components/iconpicker/interfaces/index.js +7 -0
- package/dist/src/components/iconpicker/utils/icon-filter.utils.d.ts +29 -0
- package/dist/src/components/iconpicker/utils/icon-filter.utils.js +96 -0
- package/dist/src/components/iconpicker/utils/icon-loader.utils.d.ts +39 -0
- package/dist/src/components/iconpicker/utils/icon-loader.utils.js +115 -0
- package/dist/src/components/iconpicker/utils/index.d.ts +8 -0
- package/dist/src/components/iconpicker/utils/index.js +8 -0
- package/dist/src/components/iconpicker/utils/lucide-icons.d.ts +10 -0
- package/dist/src/components/iconpicker/utils/lucide-icons.js +1624 -0
- package/dist/src/components/input/controllers/base.controller.d.ts +35 -0
- package/dist/src/components/input/controllers/base.controller.js +13 -0
- package/dist/src/components/input/controllers/event.controller.d.ts +111 -0
- package/dist/src/components/input/controllers/event.controller.js +355 -0
- package/dist/src/components/input/controllers/index.d.ts +14 -0
- package/dist/src/components/input/controllers/index.js +10 -0
- package/dist/src/components/input/controllers/state.controller.d.ts +153 -0
- package/dist/src/components/input/controllers/state.controller.js +245 -0
- package/dist/src/components/input/controllers/validation.controller.d.ts +205 -0
- package/dist/src/components/input/controllers/validation.controller.js +698 -0
- package/dist/src/components/input/mixins/focus-mixin.d.ts +60 -0
- package/dist/src/components/input/mixins/focus-mixin.js +65 -0
- package/dist/src/components/input/mixins/index.d.ts +12 -0
- package/dist/src/components/input/mixins/index.js +9 -0
- package/dist/src/components/input/mixins/number-mixin.d.ts +51 -0
- package/dist/src/components/input/mixins/number-mixin.js +128 -0
- package/dist/src/components/input/mixins/selection-mixin.d.ts +57 -0
- package/dist/src/components/input/mixins/selection-mixin.js +80 -0
- package/dist/src/components/input/test/nr-input_test.d.ts +2 -0
- package/dist/src/components/input/test/nr-input_test.js +159 -0
- package/dist/src/components/input/utils/index.d.ts +8 -0
- package/dist/src/components/input/utils/index.js +8 -0
- package/dist/src/components/input/utils/input-renderers.d.ts +54 -0
- package/dist/src/components/input/utils/input-renderers.js +178 -0
- package/dist/src/components/input/utils/input-validation.utils.d.ts +26 -0
- package/dist/src/components/input/utils/input-validation.utils.js +103 -0
- package/dist/src/components/menu/controllers/accessibility.controller.d.ts +86 -0
- package/dist/src/components/menu/controllers/accessibility.controller.js +235 -0
- package/dist/src/components/menu/controllers/base.controller.d.ts +41 -0
- package/dist/src/components/menu/controllers/base.controller.js +61 -0
- package/dist/src/components/menu/controllers/index.d.ts +10 -0
- package/dist/src/components/menu/controllers/index.js +10 -0
- package/dist/src/components/menu/controllers/keyboard.controller.d.ts +84 -0
- package/dist/src/components/menu/controllers/keyboard.controller.js +328 -0
- package/dist/src/components/menu/controllers/state.controller.d.ts +106 -0
- package/dist/src/components/menu/controllers/state.controller.js +249 -0
- package/dist/src/components/menu/interfaces/controller.interface.d.ts +51 -0
- package/dist/src/components/menu/interfaces/controller.interface.js +7 -0
- package/dist/src/components/menu/interfaces/index.d.ts +7 -0
- package/dist/src/components/menu/interfaces/index.js +7 -0
- package/dist/src/components/modal/controllers/index.d.ts +8 -0
- package/dist/src/components/modal/controllers/index.js +8 -0
- package/dist/src/components/modal/controllers/modal-drag-controller.d.ts +39 -0
- package/dist/src/components/modal/controllers/modal-drag-controller.js +108 -0
- package/dist/src/components/modal/controllers/modal-keyboard-controller.d.ts +36 -0
- package/dist/src/components/modal/controllers/modal-keyboard-controller.js +128 -0
- package/dist/src/components/panel/controllers/index.d.ts +8 -0
- package/dist/src/components/panel/controllers/index.js +8 -0
- package/dist/src/components/panel/controllers/panel-drag-controller.d.ts +40 -0
- package/dist/src/components/panel/controllers/panel-drag-controller.js +118 -0
- package/dist/src/components/panel/controllers/panel-resize-controller.d.ts +37 -0
- package/dist/src/components/panel/controllers/panel-resize-controller.js +124 -0
- package/dist/src/components/presence/bundle.js +528 -0
- package/dist/src/components/presence/bundle.js.gz +0 -0
- package/dist/src/components/presence/index.d.ts +10 -0
- package/dist/src/components/presence/index.js +10 -0
- package/dist/src/components/presence/presence-avatars.component.d.ts +40 -0
- package/dist/src/components/presence/presence-avatars.component.js +83 -0
- package/dist/src/components/presence/presence-avatars.style.d.ts +7 -0
- package/dist/src/components/presence/presence-avatars.style.js +105 -0
- package/dist/src/components/presence/presence-chat.component.d.ts +53 -0
- package/dist/src/components/presence/presence-chat.component.js +228 -0
- package/dist/src/components/presence/presence-chat.style.d.ts +7 -0
- package/dist/src/components/presence/presence-chat.style.js +248 -0
- package/dist/src/components/presence/presence.component.d.ts +71 -0
- package/dist/src/components/presence/presence.component.js +263 -0
- package/dist/src/components/presence/presence.style.d.ts +7 -0
- package/dist/src/components/presence/presence.style.js +12 -0
- package/dist/src/components/presence/presence.types.d.ts +31 -0
- package/dist/src/components/presence/presence.types.js +7 -0
- package/dist/src/components/presence/react.d.ts +24 -0
- package/dist/src/components/presence/react.js +41 -0
- package/dist/src/components/radio-group/controllers/focus.controller.d.ts +98 -0
- package/dist/src/components/radio-group/controllers/focus.controller.js +216 -0
- package/dist/src/components/radio-group/controllers/group.controller.d.ts +140 -0
- package/dist/src/components/radio-group/controllers/group.controller.js +179 -0
- package/dist/src/components/radio-group/controllers/index.d.ts +11 -0
- package/dist/src/components/radio-group/controllers/index.js +11 -0
- package/dist/src/components/radio-group/controllers/keyboard.controller.d.ts +24 -0
- package/dist/src/components/radio-group/controllers/keyboard.controller.js +93 -0
- package/dist/src/components/radio-group/controllers/ripple.controller.d.ts +59 -0
- package/dist/src/components/radio-group/controllers/ripple.controller.js +208 -0
- package/dist/src/components/radio-group/controllers/validation.controller.d.ts +73 -0
- package/dist/src/components/radio-group/controllers/validation.controller.js +108 -0
- package/dist/src/components/radio-group/interfaces/base-controller.interface.d.ts +75 -0
- package/dist/src/components/radio-group/interfaces/base-controller.interface.js +7 -0
- package/dist/src/components/radio-group/interfaces/focus-controller.interface.d.ts +40 -0
- package/dist/src/components/radio-group/interfaces/focus-controller.interface.js +7 -0
- package/dist/src/components/radio-group/interfaces/index.d.ts +11 -0
- package/dist/src/components/radio-group/interfaces/index.js +7 -0
- package/dist/src/components/radio-group/interfaces/ripple-controller.interface.d.ts +31 -0
- package/dist/src/components/radio-group/interfaces/ripple-controller.interface.js +7 -0
- package/dist/src/components/radio-group/interfaces/selection-controller.interface.d.ts +45 -0
- package/dist/src/components/radio-group/interfaces/selection-controller.interface.js +7 -0
- package/dist/src/components/radio-group/interfaces/validation-controller.interface.d.ts +48 -0
- package/dist/src/components/radio-group/interfaces/validation-controller.interface.js +7 -0
- package/dist/src/components/radio-group/test/radio_test.d.ts +2 -0
- package/dist/src/components/radio-group/test/radio_test.js +79 -0
- package/dist/src/components/select/controllers/base.controller.d.ts +10 -0
- package/dist/src/components/select/controllers/base.controller.js +8 -0
- package/dist/src/components/select/controllers/dropdown.controller.d.ts +76 -0
- package/dist/src/components/select/controllers/dropdown.controller.js +281 -0
- package/dist/src/components/select/controllers/event.controller.d.ts +54 -0
- package/dist/src/components/select/controllers/event.controller.js +113 -0
- package/dist/src/components/select/controllers/focus.controller.d.ts +79 -0
- package/dist/src/components/select/controllers/focus.controller.js +230 -0
- package/dist/src/components/select/controllers/index.d.ts +9 -0
- package/dist/src/components/select/controllers/index.js +9 -0
- package/dist/src/components/select/controllers/keyboard.controller.d.ts +75 -0
- package/dist/src/components/select/controllers/keyboard.controller.js +369 -0
- package/dist/src/components/select/controllers/search.controller.d.ts +71 -0
- package/dist/src/components/select/controllers/search.controller.js +167 -0
- package/dist/src/components/select/controllers/selection.controller.d.ts +67 -0
- package/dist/src/components/select/controllers/selection.controller.js +217 -0
- package/dist/src/components/select/controllers/validation.controller.d.ts +66 -0
- package/dist/src/components/select/controllers/validation.controller.js +189 -0
- package/dist/src/components/select/interfaces/base-controller.interface.d.ts +147 -0
- package/dist/src/components/select/interfaces/base-controller.interface.js +2 -0
- package/dist/src/components/select/interfaces/controller-interfaces.d.ts +94 -0
- package/dist/src/components/select/interfaces/controller-interfaces.js +11 -0
- package/dist/src/components/select/interfaces/index.d.ts +3 -0
- package/dist/src/components/select/interfaces/index.js +3 -0
- package/dist/src/components/slider-input/utils/debounce.d.ts +2 -0
- package/dist/src/components/slider-input/utils/debounce.js +8 -0
- package/dist/src/components/slider-input/utils/index.d.ts +2 -0
- package/dist/src/components/slider-input/utils/index.js +2 -0
- package/dist/src/components/table/controllers/base.controller.d.ts +15 -0
- package/dist/src/components/table/controllers/base.controller.js +13 -0
- package/dist/src/components/table/controllers/filter.controller.d.ts +48 -0
- package/dist/src/components/table/controllers/filter.controller.js +152 -0
- package/dist/src/components/table/controllers/index.d.ts +11 -0
- package/dist/src/components/table/controllers/index.js +11 -0
- package/dist/src/components/table/controllers/pagination.controller.d.ts +36 -0
- package/dist/src/components/table/controllers/pagination.controller.js +110 -0
- package/dist/src/components/table/controllers/selection.controller.d.ts +40 -0
- package/dist/src/components/table/controllers/selection.controller.js +120 -0
- package/dist/src/components/table/controllers/sort.controller.d.ts +32 -0
- package/dist/src/components/table/controllers/sort.controller.js +102 -0
- package/dist/src/components/table/interfaces/index.d.ts +7 -0
- package/dist/src/components/table/interfaces/index.js +7 -0
- package/dist/src/components/table/interfaces/table-host.interface.d.ts +48 -0
- package/dist/src/components/table/interfaces/table-host.interface.js +7 -0
- package/dist/src/components/table/templates/actions.template.d.ts +14 -0
- package/dist/src/components/table/templates/actions.template.js +15 -0
- package/dist/src/components/table/templates/column-filter.template.d.ts +24 -0
- package/dist/src/components/table/templates/column-filter.template.js +76 -0
- package/dist/src/components/table/templates/content.template.d.ts +37 -0
- package/dist/src/components/table/templates/content.template.js +208 -0
- package/dist/src/components/table/templates/empty.template.d.ts +8 -0
- package/dist/src/components/table/templates/empty.template.js +47 -0
- package/dist/src/components/table/templates/filter.template.d.ts +14 -0
- package/dist/src/components/table/templates/filter.template.js +28 -0
- package/dist/src/components/table/templates/index.d.ts +8 -0
- package/dist/src/components/table/templates/index.js +8 -0
- package/dist/src/components/table/templates/loading.template.d.ts +21 -0
- package/dist/src/components/table/templates/loading.template.js +51 -0
- package/dist/src/components/table/templates/pagination.template.d.ts +24 -0
- package/dist/src/components/table/templates/pagination.template.js +52 -0
- package/dist/src/components/tabs/controllers/base.controller.d.ts +49 -0
- package/dist/src/components/tabs/controllers/base.controller.js +26 -0
- package/dist/src/components/tabs/controllers/dragdrop.controller.d.ts +84 -0
- package/dist/src/components/tabs/controllers/dragdrop.controller.js +202 -0
- package/dist/src/components/tabs/controllers/editable.controller.d.ts +100 -0
- package/dist/src/components/tabs/controllers/editable.controller.js +242 -0
- package/dist/src/components/tabs/controllers/event.controller.d.ts +104 -0
- package/dist/src/components/tabs/controllers/event.controller.js +239 -0
- package/dist/src/components/tabs/controllers/index.d.ts +12 -0
- package/dist/src/components/tabs/controllers/index.js +18 -0
- package/dist/src/components/tabs/controllers/keyboard.controller.d.ts +85 -0
- package/dist/src/components/tabs/controllers/keyboard.controller.js +233 -0
- package/dist/src/components/tabs/controllers/popout.controller.d.ts +96 -0
- package/dist/src/components/tabs/controllers/popout.controller.js +441 -0
- package/dist/src/components/textarea/controllers/base.controller.d.ts +43 -0
- package/dist/src/components/textarea/controllers/base.controller.js +19 -0
- package/dist/src/components/textarea/controllers/event.controller.d.ts +169 -0
- package/dist/src/components/textarea/controllers/event.controller.js +408 -0
- package/dist/src/components/textarea/controllers/index.d.ts +9 -0
- package/dist/src/components/textarea/controllers/index.js +9 -0
- package/dist/src/components/textarea/controllers/validation.controller.d.ts +133 -0
- package/dist/src/components/textarea/controllers/validation.controller.js +315 -0
- package/dist/src/components/timepicker/controllers/formatting.controller.d.ts +93 -0
- package/dist/src/components/timepicker/controllers/formatting.controller.js +195 -0
- package/dist/src/components/timepicker/controllers/index.d.ts +9 -0
- package/dist/src/components/timepicker/controllers/index.js +9 -0
- package/dist/src/components/timepicker/controllers/selection.controller.d.ts +72 -0
- package/dist/src/components/timepicker/controllers/selection.controller.js +175 -0
- package/dist/src/components/timepicker/controllers/validation.controller.d.ts +88 -0
- package/dist/src/components/timepicker/controllers/validation.controller.js +200 -0
- package/dist/src/components/timepicker/interfaces/timepicker.interface.d.ts +103 -0
- package/dist/src/components/timepicker/interfaces/timepicker.interface.js +7 -0
- package/dist/src/components/timepicker/test/timepicker_test.d.ts +7 -0
- package/dist/src/components/timepicker/test/timepicker_test.js +218 -0
- package/dist/src/components/timepicker/utils/time.utils.d.ts +87 -0
- package/dist/src/components/timepicker/utils/time.utils.js +235 -0
- package/dist/src/components/toast/controllers/base.controller.d.ts +20 -0
- package/dist/src/components/toast/controllers/base.controller.js +12 -0
- package/dist/src/components/toast/controllers/index.d.ts +8 -0
- package/dist/src/components/toast/controllers/index.js +7 -0
- package/dist/src/components/tooltips/demo/tooltips-demo.d.ts +18 -0
- package/dist/src/components/tooltips/demo/tooltips-demo.js +132 -0
- package/dist/src/components/tooltips/test/tooltips_test.d.ts +2 -0
- package/dist/src/components/tooltips/test/tooltips_test.js +145 -0
- package/package.json +27 -1
- package/packages/common/dist/VERSIONS.md +1 -1
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { BaseCanvasController } from './base.controller.js';
|
|
7
|
+
import { WorkflowNodeType, NODE_COLORS, NODE_ICONS, } from '../workflow-canvas.types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Controller for frame node operations including:
|
|
10
|
+
* - Resize functionality
|
|
11
|
+
* - Containment detection
|
|
12
|
+
* - Move with contents
|
|
13
|
+
* - Collapse/expand
|
|
14
|
+
* - Aggregated ports calculation
|
|
15
|
+
*/
|
|
16
|
+
export class FrameController extends BaseCanvasController {
|
|
17
|
+
constructor(host) {
|
|
18
|
+
super(host);
|
|
19
|
+
this.resizeState = null;
|
|
20
|
+
this.MIN_FRAME_WIDTH = 200;
|
|
21
|
+
this.MIN_FRAME_HEIGHT = 150;
|
|
22
|
+
this.handleResizeDrag = (event) => {
|
|
23
|
+
this.handleResizeDragWithCoords(event.clientX, event.clientY);
|
|
24
|
+
};
|
|
25
|
+
this.handleResizeTouchDrag = (event) => {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
if (event.touches.length > 0) {
|
|
28
|
+
this.handleResizeDragWithCoords(event.touches[0].clientX, event.touches[0].clientY);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
this.stopResize = () => {
|
|
32
|
+
if (!this.resizeState)
|
|
33
|
+
return;
|
|
34
|
+
const frame = this._host.workflow.nodes.find(n => n.id === this.resizeState.frameId);
|
|
35
|
+
if (frame) {
|
|
36
|
+
// Update containment after resize
|
|
37
|
+
this.updateFrameContainment(frame);
|
|
38
|
+
}
|
|
39
|
+
this.resizeState = null;
|
|
40
|
+
document.removeEventListener('mousemove', this.handleResizeDrag);
|
|
41
|
+
document.removeEventListener('mouseup', this.stopResize);
|
|
42
|
+
document.removeEventListener('touchmove', this.handleResizeTouchDrag);
|
|
43
|
+
document.removeEventListener('touchend', this.stopResizeTouch);
|
|
44
|
+
this._host.dispatchWorkflowChanged();
|
|
45
|
+
};
|
|
46
|
+
this.stopResizeTouch = () => {
|
|
47
|
+
this.stopResize();
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
// ===== RESIZE OPERATIONS =====
|
|
51
|
+
/**
|
|
52
|
+
* Start resizing a frame from a specific handle
|
|
53
|
+
*/
|
|
54
|
+
startResize(event, frame, handle) {
|
|
55
|
+
event.stopPropagation();
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
const config = frame.configuration || {};
|
|
58
|
+
this.resizeState = {
|
|
59
|
+
frameId: frame.id,
|
|
60
|
+
handle,
|
|
61
|
+
startX: event.clientX,
|
|
62
|
+
startY: event.clientY,
|
|
63
|
+
startWidth: config.frameWidth || 400,
|
|
64
|
+
startHeight: config.frameHeight || 300,
|
|
65
|
+
startPosition: Object.assign({}, frame.position),
|
|
66
|
+
};
|
|
67
|
+
// Add global listeners
|
|
68
|
+
document.addEventListener('mousemove', this.handleResizeDrag);
|
|
69
|
+
document.addEventListener('mouseup', this.stopResize);
|
|
70
|
+
document.addEventListener('touchmove', this.handleResizeTouchDrag, { passive: false });
|
|
71
|
+
document.addEventListener('touchend', this.stopResizeTouch);
|
|
72
|
+
}
|
|
73
|
+
handleResizeDragWithCoords(clientX, clientY) {
|
|
74
|
+
if (!this.resizeState)
|
|
75
|
+
return;
|
|
76
|
+
const { handle, startX, startY, startWidth, startHeight, startPosition, frameId } = this.resizeState;
|
|
77
|
+
const frame = this._host.workflow.nodes.find(n => n.id === frameId);
|
|
78
|
+
if (!frame)
|
|
79
|
+
return;
|
|
80
|
+
const deltaX = (clientX - startX) / this._host.viewport.zoom;
|
|
81
|
+
const deltaY = (clientY - startY) / this._host.viewport.zoom;
|
|
82
|
+
let newWidth = startWidth;
|
|
83
|
+
let newHeight = startHeight;
|
|
84
|
+
let newX = startPosition.x;
|
|
85
|
+
let newY = startPosition.y;
|
|
86
|
+
// Calculate new dimensions based on handle
|
|
87
|
+
switch (handle) {
|
|
88
|
+
case 'se':
|
|
89
|
+
newWidth = Math.max(this.MIN_FRAME_WIDTH, startWidth + deltaX);
|
|
90
|
+
newHeight = Math.max(this.MIN_FRAME_HEIGHT, startHeight + deltaY);
|
|
91
|
+
break;
|
|
92
|
+
case 'sw':
|
|
93
|
+
newWidth = Math.max(this.MIN_FRAME_WIDTH, startWidth - deltaX);
|
|
94
|
+
newHeight = Math.max(this.MIN_FRAME_HEIGHT, startHeight + deltaY);
|
|
95
|
+
newX = startPosition.x + (startWidth - newWidth);
|
|
96
|
+
break;
|
|
97
|
+
case 'ne':
|
|
98
|
+
newWidth = Math.max(this.MIN_FRAME_WIDTH, startWidth + deltaX);
|
|
99
|
+
newHeight = Math.max(this.MIN_FRAME_HEIGHT, startHeight - deltaY);
|
|
100
|
+
newY = startPosition.y + (startHeight - newHeight);
|
|
101
|
+
break;
|
|
102
|
+
case 'nw':
|
|
103
|
+
newWidth = Math.max(this.MIN_FRAME_WIDTH, startWidth - deltaX);
|
|
104
|
+
newHeight = Math.max(this.MIN_FRAME_HEIGHT, startHeight - deltaY);
|
|
105
|
+
newX = startPosition.x + (startWidth - newWidth);
|
|
106
|
+
newY = startPosition.y + (startHeight - newHeight);
|
|
107
|
+
break;
|
|
108
|
+
case 'n':
|
|
109
|
+
newHeight = Math.max(this.MIN_FRAME_HEIGHT, startHeight - deltaY);
|
|
110
|
+
newY = startPosition.y + (startHeight - newHeight);
|
|
111
|
+
break;
|
|
112
|
+
case 's':
|
|
113
|
+
newHeight = Math.max(this.MIN_FRAME_HEIGHT, startHeight + deltaY);
|
|
114
|
+
break;
|
|
115
|
+
case 'e':
|
|
116
|
+
newWidth = Math.max(this.MIN_FRAME_WIDTH, startWidth + deltaX);
|
|
117
|
+
break;
|
|
118
|
+
case 'w':
|
|
119
|
+
newWidth = Math.max(this.MIN_FRAME_WIDTH, startWidth - deltaX);
|
|
120
|
+
newX = startPosition.x + (startWidth - newWidth);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
// Snap to grid
|
|
124
|
+
const snapped = this.snapToGrid(newX, newY);
|
|
125
|
+
newX = snapped.x;
|
|
126
|
+
newY = snapped.y;
|
|
127
|
+
newWidth = Math.round(newWidth / 20) * 20;
|
|
128
|
+
newHeight = Math.round(newHeight / 20) * 20;
|
|
129
|
+
// Update frame
|
|
130
|
+
frame.position = { x: newX, y: newY };
|
|
131
|
+
frame.configuration = Object.assign(Object.assign({}, frame.configuration), { frameWidth: newWidth, frameHeight: newHeight });
|
|
132
|
+
this._host.requestUpdate();
|
|
133
|
+
}
|
|
134
|
+
// ===== CONTAINMENT DETECTION =====
|
|
135
|
+
/**
|
|
136
|
+
* Check if a node's center is within a frame's bounds
|
|
137
|
+
*/
|
|
138
|
+
isNodeInFrame(node, frame) {
|
|
139
|
+
// Frames and notes cannot be contained in frames
|
|
140
|
+
if (node.type === WorkflowNodeType.FRAME || node.type === WorkflowNodeType.NOTE) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
const config = frame.configuration || {};
|
|
144
|
+
const frameWidth = config.frameWidth || 400;
|
|
145
|
+
const frameHeight = config.frameHeight || 300;
|
|
146
|
+
const nodeWidth = 180; // Standard node width
|
|
147
|
+
const nodeHeight = 80; // Standard node height
|
|
148
|
+
const frameLeft = frame.position.x;
|
|
149
|
+
const frameTop = frame.position.y;
|
|
150
|
+
const frameRight = frameLeft + frameWidth;
|
|
151
|
+
const frameBottom = frameTop + frameHeight;
|
|
152
|
+
// Node center must be inside frame
|
|
153
|
+
const nodeCenterX = node.position.x + nodeWidth / 2;
|
|
154
|
+
const nodeCenterY = node.position.y + nodeHeight / 2;
|
|
155
|
+
return (nodeCenterX >= frameLeft &&
|
|
156
|
+
nodeCenterX <= frameRight &&
|
|
157
|
+
nodeCenterY >= frameTop &&
|
|
158
|
+
nodeCenterY <= frameBottom);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Update frame's containedNodeIds based on current node positions
|
|
162
|
+
*/
|
|
163
|
+
updateFrameContainment(frame) {
|
|
164
|
+
const containedIds = [];
|
|
165
|
+
for (const node of this._host.workflow.nodes) {
|
|
166
|
+
if (node.id === frame.id)
|
|
167
|
+
continue;
|
|
168
|
+
if (node.type === WorkflowNodeType.FRAME)
|
|
169
|
+
continue;
|
|
170
|
+
if (this.isNodeInFrame(node, frame)) {
|
|
171
|
+
containedIds.push(node.id);
|
|
172
|
+
node.parentFrameId = frame.id;
|
|
173
|
+
}
|
|
174
|
+
else if (node.parentFrameId === frame.id) {
|
|
175
|
+
node.parentFrameId = null;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
frame.containedNodeIds = containedIds;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Update all frames' containment after node move
|
|
182
|
+
* @param triggerUpdate If true, triggers a workflow update after containment changes
|
|
183
|
+
*/
|
|
184
|
+
updateAllFrameContainments(triggerUpdate = false) {
|
|
185
|
+
const frames = this._host.workflow.nodes.filter(n => n.type === WorkflowNodeType.FRAME);
|
|
186
|
+
let hasChanges = false;
|
|
187
|
+
for (const frame of frames) {
|
|
188
|
+
const oldIds = new Set(frame.containedNodeIds || []);
|
|
189
|
+
this.updateFrameContainment(frame);
|
|
190
|
+
const newIds = new Set(frame.containedNodeIds || []);
|
|
191
|
+
// Check if containment changed
|
|
192
|
+
if (oldIds.size !== newIds.size || ![...oldIds].every(id => newIds.has(id))) {
|
|
193
|
+
hasChanges = true;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// If changes occurred and update is requested, trigger a re-render
|
|
197
|
+
if (hasChanges && triggerUpdate) {
|
|
198
|
+
this._host.requestUpdate();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Get all nodes contained in a frame
|
|
203
|
+
*/
|
|
204
|
+
getContainedNodes(frame) {
|
|
205
|
+
const ids = new Set(frame.containedNodeIds || []);
|
|
206
|
+
return this._host.workflow.nodes.filter(n => ids.has(n.id));
|
|
207
|
+
}
|
|
208
|
+
// ===== MOVE WITH CONTENTS =====
|
|
209
|
+
/**
|
|
210
|
+
* Move a frame and all its contained nodes by delta
|
|
211
|
+
*/
|
|
212
|
+
moveFrameWithContents(frame, deltaX, deltaY) {
|
|
213
|
+
// Move frame
|
|
214
|
+
frame.position.x += deltaX;
|
|
215
|
+
frame.position.y += deltaY;
|
|
216
|
+
// Move contained nodes
|
|
217
|
+
const containedNodes = this.getContainedNodes(frame);
|
|
218
|
+
for (const node of containedNodes) {
|
|
219
|
+
node.position.x += deltaX;
|
|
220
|
+
node.position.y += deltaY;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
// ===== COLLAPSE / EXPAND =====
|
|
224
|
+
/**
|
|
225
|
+
* Toggle frame collapsed state
|
|
226
|
+
*/
|
|
227
|
+
toggleCollapsed(frame) {
|
|
228
|
+
const config = frame.configuration || {};
|
|
229
|
+
const collapsed = config.frameCollapsed;
|
|
230
|
+
// Build new configuration
|
|
231
|
+
let newConfig;
|
|
232
|
+
if (collapsed) {
|
|
233
|
+
// Expand: restore original dimensions
|
|
234
|
+
newConfig = Object.assign(Object.assign({}, config), { frameWidth: config._frameExpandedWidth || 400, frameHeight: config._frameExpandedHeight || 300, frameCollapsed: false });
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
// Collapse: save dimensions and collapse
|
|
238
|
+
newConfig = Object.assign(Object.assign({}, config), { _frameExpandedWidth: config.frameWidth, _frameExpandedHeight: config.frameHeight, frameCollapsed: true });
|
|
239
|
+
}
|
|
240
|
+
// Determine visibility for contained nodes
|
|
241
|
+
// collapsed=true (currently collapsed) means we're expanding -> show nodes (visible=true)
|
|
242
|
+
// collapsed=false (currently expanded) means we're collapsing -> hide nodes (visible=false)
|
|
243
|
+
const shouldHide = !collapsed; // Hide when collapsing
|
|
244
|
+
const containedIds = new Set(frame.containedNodeIds || []);
|
|
245
|
+
// Create immutable workflow update to ensure Lit detects the change
|
|
246
|
+
const updatedNodes = this._host.workflow.nodes.map(node => {
|
|
247
|
+
if (node.id === frame.id) {
|
|
248
|
+
return Object.assign(Object.assign({}, node), { configuration: newConfig,
|
|
249
|
+
// Preserve containedNodeIds
|
|
250
|
+
containedNodeIds: frame.containedNodeIds });
|
|
251
|
+
}
|
|
252
|
+
// Update contained nodes' metadata immutably
|
|
253
|
+
if (containedIds.has(node.id)) {
|
|
254
|
+
return Object.assign(Object.assign({}, node), { metadata: Object.assign(Object.assign({}, node.metadata), { _hiddenByFrame: shouldHide }) });
|
|
255
|
+
}
|
|
256
|
+
return node;
|
|
257
|
+
});
|
|
258
|
+
// Update edges between contained nodes immutably
|
|
259
|
+
const updatedEdges = this._host.workflow.edges.map(edge => {
|
|
260
|
+
const sourceInside = containedIds.has(edge.sourceNodeId);
|
|
261
|
+
const targetInside = containedIds.has(edge.targetNodeId);
|
|
262
|
+
// Internal edges (both nodes inside) should be hidden when collapsed
|
|
263
|
+
if (sourceInside && targetInside) {
|
|
264
|
+
return Object.assign(Object.assign({}, edge), { _hiddenByFrame: shouldHide });
|
|
265
|
+
}
|
|
266
|
+
return edge;
|
|
267
|
+
});
|
|
268
|
+
this._host.setWorkflow(Object.assign(Object.assign({}, this._host.workflow), { nodes: updatedNodes, edges: updatedEdges }));
|
|
269
|
+
this._host.dispatchWorkflowChanged();
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Set visibility of nodes contained in a frame
|
|
273
|
+
*/
|
|
274
|
+
// @ts-ignore Reserved for future frame collapse/expand feature
|
|
275
|
+
setContainedNodesVisibility(frame, visible) {
|
|
276
|
+
const containedNodes = this.getContainedNodes(frame);
|
|
277
|
+
for (const node of containedNodes) {
|
|
278
|
+
// Use a metadata flag for visibility
|
|
279
|
+
node.metadata = node.metadata || {};
|
|
280
|
+
node.metadata._hiddenByFrame = !visible;
|
|
281
|
+
}
|
|
282
|
+
// Also handle edges between contained nodes
|
|
283
|
+
const containedIds = new Set(frame.containedNodeIds || []);
|
|
284
|
+
for (const edge of this._host.workflow.edges) {
|
|
285
|
+
const sourceInside = containedIds.has(edge.sourceNodeId);
|
|
286
|
+
const targetInside = containedIds.has(edge.targetNodeId);
|
|
287
|
+
// Internal edges (both nodes inside) should be hidden
|
|
288
|
+
if (sourceInside && targetInside) {
|
|
289
|
+
edge._hiddenByFrame = !visible;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
// ===== AGGREGATED PORTS =====
|
|
294
|
+
/**
|
|
295
|
+
* Calculate aggregated ports for a collapsed frame
|
|
296
|
+
*/
|
|
297
|
+
getAggregatedPorts(frame) {
|
|
298
|
+
const containedIds = new Set(frame.containedNodeIds || []);
|
|
299
|
+
const inputs = [];
|
|
300
|
+
const outputs = [];
|
|
301
|
+
for (const edge of this._host.workflow.edges) {
|
|
302
|
+
const sourceInside = containedIds.has(edge.sourceNodeId);
|
|
303
|
+
const targetInside = containedIds.has(edge.targetNodeId);
|
|
304
|
+
// External -> Internal = Input
|
|
305
|
+
if (!sourceInside && targetInside) {
|
|
306
|
+
const sourceNode = this._host.workflow.nodes.find(n => n.id === edge.sourceNodeId);
|
|
307
|
+
inputs.push({
|
|
308
|
+
id: `agg-in-${edge.id}`,
|
|
309
|
+
originalEdgeId: edge.id,
|
|
310
|
+
internalNodeId: edge.targetNodeId,
|
|
311
|
+
internalPortId: edge.targetPortId,
|
|
312
|
+
label: (sourceNode === null || sourceNode === void 0 ? void 0 : sourceNode.name) || 'Input',
|
|
313
|
+
direction: 'incoming',
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
// Internal -> External = Output
|
|
317
|
+
if (sourceInside && !targetInside) {
|
|
318
|
+
const targetNode = this._host.workflow.nodes.find(n => n.id === edge.targetNodeId);
|
|
319
|
+
outputs.push({
|
|
320
|
+
id: `agg-out-${edge.id}`,
|
|
321
|
+
originalEdgeId: edge.id,
|
|
322
|
+
internalNodeId: edge.sourceNodeId,
|
|
323
|
+
internalPortId: edge.sourcePortId,
|
|
324
|
+
label: (targetNode === null || targetNode === void 0 ? void 0 : targetNode.name) || 'Output',
|
|
325
|
+
direction: 'outgoing',
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return { inputs, outputs };
|
|
330
|
+
}
|
|
331
|
+
// ===== FIT TO CONTENTS =====
|
|
332
|
+
/**
|
|
333
|
+
* Auto-resize frame to fit its contained nodes with padding
|
|
334
|
+
*/
|
|
335
|
+
fitToContents(frame, padding = 40) {
|
|
336
|
+
const containedNodes = this.getContainedNodes(frame);
|
|
337
|
+
if (containedNodes.length === 0)
|
|
338
|
+
return;
|
|
339
|
+
const nodeWidth = 180;
|
|
340
|
+
const nodeHeight = 80;
|
|
341
|
+
let minX = Infinity, minY = Infinity;
|
|
342
|
+
let maxX = -Infinity, maxY = -Infinity;
|
|
343
|
+
for (const node of containedNodes) {
|
|
344
|
+
minX = Math.min(minX, node.position.x);
|
|
345
|
+
minY = Math.min(minY, node.position.y);
|
|
346
|
+
maxX = Math.max(maxX, node.position.x + nodeWidth);
|
|
347
|
+
maxY = Math.max(maxY, node.position.y + nodeHeight);
|
|
348
|
+
}
|
|
349
|
+
const config = frame.configuration || {};
|
|
350
|
+
const labelPlacement = config.frameLabelPlacement || 'outside';
|
|
351
|
+
frame.position = {
|
|
352
|
+
x: minX - padding,
|
|
353
|
+
y: minY - padding - (labelPlacement === 'outside' ? 24 : 0),
|
|
354
|
+
};
|
|
355
|
+
frame.configuration = Object.assign(Object.assign({}, config), { frameWidth: maxX - minX + padding * 2, frameHeight: maxY - minY + padding * 2 + (labelPlacement === 'outside' ? 24 : 0) });
|
|
356
|
+
this._host.requestUpdate();
|
|
357
|
+
this._host.dispatchWorkflowChanged();
|
|
358
|
+
}
|
|
359
|
+
// ===== CREATE FRAME FROM SELECTION =====
|
|
360
|
+
/**
|
|
361
|
+
* Create a new frame around currently selected nodes
|
|
362
|
+
*/
|
|
363
|
+
createFrameFromSelection() {
|
|
364
|
+
const selectedNodes = this._host.workflow.nodes.filter(n => this._host.selectedNodeIds.has(n.id) &&
|
|
365
|
+
n.type !== WorkflowNodeType.FRAME &&
|
|
366
|
+
n.type !== WorkflowNodeType.NOTE);
|
|
367
|
+
if (selectedNodes.length === 0)
|
|
368
|
+
return null;
|
|
369
|
+
const nodeWidth = 180;
|
|
370
|
+
const nodeHeight = 80;
|
|
371
|
+
const padding = 40;
|
|
372
|
+
// Calculate bounds
|
|
373
|
+
let minX = Infinity, minY = Infinity;
|
|
374
|
+
let maxX = -Infinity, maxY = -Infinity;
|
|
375
|
+
for (const node of selectedNodes) {
|
|
376
|
+
minX = Math.min(minX, node.position.x);
|
|
377
|
+
minY = Math.min(minY, node.position.y);
|
|
378
|
+
maxX = Math.max(maxX, node.position.x + nodeWidth);
|
|
379
|
+
maxY = Math.max(maxY, node.position.y + nodeHeight);
|
|
380
|
+
}
|
|
381
|
+
// Create frame node
|
|
382
|
+
const frame = {
|
|
383
|
+
id: `frame-${Date.now()}`,
|
|
384
|
+
name: 'Group',
|
|
385
|
+
type: WorkflowNodeType.FRAME,
|
|
386
|
+
position: {
|
|
387
|
+
x: minX - padding,
|
|
388
|
+
y: minY - padding - 24, // Account for outside label
|
|
389
|
+
},
|
|
390
|
+
configuration: {
|
|
391
|
+
frameLabel: 'Group',
|
|
392
|
+
frameWidth: maxX - minX + padding * 2,
|
|
393
|
+
frameHeight: maxY - minY + padding * 2 + 24,
|
|
394
|
+
frameBackgroundColor: 'rgba(99, 102, 241, 0.05)',
|
|
395
|
+
frameBorderColor: 'rgba(99, 102, 241, 0.3)',
|
|
396
|
+
frameLabelPosition: 'top-left',
|
|
397
|
+
frameLabelPlacement: 'outside',
|
|
398
|
+
frameShowLabel: true,
|
|
399
|
+
frameCollapsed: false,
|
|
400
|
+
},
|
|
401
|
+
ports: { inputs: [], outputs: [] },
|
|
402
|
+
containedNodeIds: selectedNodes.map(n => n.id),
|
|
403
|
+
};
|
|
404
|
+
// Add frame at beginning (renders behind) and update parentFrameId immutably
|
|
405
|
+
const selectedIds = new Set(selectedNodes.map(n => n.id));
|
|
406
|
+
this._host.setWorkflow(Object.assign(Object.assign({}, this._host.workflow), { nodes: [
|
|
407
|
+
frame,
|
|
408
|
+
...this._host.workflow.nodes.map(node => selectedIds.has(node.id) ? Object.assign(Object.assign({}, node), { parentFrameId: frame.id }) : node),
|
|
409
|
+
] }));
|
|
410
|
+
this._host.dispatchWorkflowChanged();
|
|
411
|
+
return frame;
|
|
412
|
+
}
|
|
413
|
+
// ===== DELETE FRAME =====
|
|
414
|
+
/**
|
|
415
|
+
* Delete a frame
|
|
416
|
+
* @param deleteContents If true, also delete contained nodes
|
|
417
|
+
*/
|
|
418
|
+
deleteFrame(frame, deleteContents = false) {
|
|
419
|
+
if (deleteContents) {
|
|
420
|
+
// Delete all contained nodes and their edges
|
|
421
|
+
const containedIds = new Set(frame.containedNodeIds || []);
|
|
422
|
+
this._host.setWorkflow(Object.assign(Object.assign({}, this._host.workflow), { edges: this._host.workflow.edges.filter(e => !containedIds.has(e.sourceNodeId) && !containedIds.has(e.targetNodeId)), nodes: this._host.workflow.nodes.filter(n => n.id !== frame.id && !containedIds.has(n.id)) }));
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
// Only delete frame, clear parentFrameId on contained nodes
|
|
426
|
+
const containedNodeIdSet = new Set(frame.containedNodeIds || []);
|
|
427
|
+
this._host.setWorkflow(Object.assign(Object.assign({}, this._host.workflow), { nodes: this._host.workflow.nodes
|
|
428
|
+
.filter(n => n.id !== frame.id)
|
|
429
|
+
.map(n => containedNodeIdSet.has(n.id) ? Object.assign(Object.assign({}, n), { parentFrameId: null }) : n) }));
|
|
430
|
+
}
|
|
431
|
+
this._host.dispatchWorkflowChanged();
|
|
432
|
+
}
|
|
433
|
+
// ===== HELPERS =====
|
|
434
|
+
/**
|
|
435
|
+
* Check if a frame is collapsed
|
|
436
|
+
*/
|
|
437
|
+
isFrameCollapsed(frame) {
|
|
438
|
+
var _a;
|
|
439
|
+
return Boolean((_a = frame.configuration) === null || _a === void 0 ? void 0 : _a.frameCollapsed);
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Get node icons and colors for collapsed frame preview
|
|
443
|
+
*/
|
|
444
|
+
getContainedNodePreviews(frame, maxCount = 5) {
|
|
445
|
+
const containedNodes = this.getContainedNodes(frame);
|
|
446
|
+
return containedNodes.slice(0, maxCount).map(node => {
|
|
447
|
+
var _a, _b;
|
|
448
|
+
return ({
|
|
449
|
+
icon: ((_a = node.metadata) === null || _a === void 0 ? void 0 : _a.icon) || NODE_ICONS[node.type] || 'box',
|
|
450
|
+
color: ((_b = node.metadata) === null || _b === void 0 ? void 0 : _b.color) || NODE_COLORS[node.type] || '#3b82f6',
|
|
451
|
+
name: node.name,
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
//# sourceMappingURL=frame.controller.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
export { BaseCanvasController } from './base.controller.js';
|
|
7
|
+
export { ViewportController, type ViewportHost } from './viewport.controller.js';
|
|
8
|
+
export { SelectionController } from './selection.controller.js';
|
|
9
|
+
export { ConnectionController } from './connection.controller.js';
|
|
10
|
+
export { KeyboardController } from './keyboard.controller.js';
|
|
11
|
+
export { DragController } from './drag.controller.js';
|
|
12
|
+
export { ConfigController } from './config.controller.js';
|
|
13
|
+
export { MarqueeController, type MarqueeState, type MarqueeHost } from './marquee.controller.js';
|
|
14
|
+
export { ClipboardController, type ClipboardData, type ClipboardHost } from './clipboard.controller.js';
|
|
15
|
+
export { UndoController } from './undo.controller.js';
|
|
16
|
+
export { FrameController } from './frame.controller.js';
|
|
17
|
+
export { CollaborationController } from './collaboration.controller.js';
|
|
18
|
+
export { TouchController } from './touch.controller.js';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
// Base controller
|
|
7
|
+
export { BaseCanvasController } from './base.controller.js';
|
|
8
|
+
// Viewport controller for pan/zoom
|
|
9
|
+
export { ViewportController } from './viewport.controller.js';
|
|
10
|
+
// Selection controller
|
|
11
|
+
export { SelectionController } from './selection.controller.js';
|
|
12
|
+
// Connection controller for edge management
|
|
13
|
+
export { ConnectionController } from './connection.controller.js';
|
|
14
|
+
// Keyboard controller for navigation and shortcuts
|
|
15
|
+
export { KeyboardController } from './keyboard.controller.js';
|
|
16
|
+
// Drag controller for node dragging
|
|
17
|
+
export { DragController } from './drag.controller.js';
|
|
18
|
+
// Config controller for node configuration panel
|
|
19
|
+
export { ConfigController } from './config.controller.js';
|
|
20
|
+
// Marquee controller for box selection
|
|
21
|
+
export { MarqueeController } from './marquee.controller.js';
|
|
22
|
+
// Clipboard controller for copy/cut/paste
|
|
23
|
+
export { ClipboardController } from './clipboard.controller.js';
|
|
24
|
+
// Undo controller for undo/redo operations
|
|
25
|
+
export { UndoController } from './undo.controller.js';
|
|
26
|
+
// Frame controller for frame node operations
|
|
27
|
+
export { FrameController } from './frame.controller.js';
|
|
28
|
+
// Collaboration controller for real-time multi-user sync
|
|
29
|
+
export { CollaborationController } from './collaboration.controller.js';
|
|
30
|
+
// Touch controller for mobile gesture support
|
|
31
|
+
export { TouchController } from './touch.controller.js';
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { ReactiveControllerHost } from 'lit';
|
|
7
|
+
import { BaseCanvasController } from './base.controller.js';
|
|
8
|
+
import { CanvasHost } from '../interfaces/index.js';
|
|
9
|
+
import { SelectionController } from './selection.controller.js';
|
|
10
|
+
import { ClipboardController } from './clipboard.controller.js';
|
|
11
|
+
import type { UndoController } from './undo.controller.js';
|
|
12
|
+
/**
|
|
13
|
+
* Controller for keyboard navigation and shortcuts
|
|
14
|
+
*/
|
|
15
|
+
export declare class KeyboardController extends BaseCanvasController {
|
|
16
|
+
private boundHandleKeyDown;
|
|
17
|
+
private selectionController;
|
|
18
|
+
private clipboardController;
|
|
19
|
+
private undoController;
|
|
20
|
+
constructor(host: CanvasHost & ReactiveControllerHost, selectionController: SelectionController);
|
|
21
|
+
/**
|
|
22
|
+
* Set the clipboard controller (called after initialization)
|
|
23
|
+
*/
|
|
24
|
+
setClipboardController(controller: ClipboardController): void;
|
|
25
|
+
/**
|
|
26
|
+
* Set the undo controller (called after initialization)
|
|
27
|
+
*/
|
|
28
|
+
setUndoController(controller: UndoController): void;
|
|
29
|
+
hostConnected(): void;
|
|
30
|
+
hostDisconnected(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Check if an element or any of its shadow roots contain an editable element
|
|
33
|
+
*/
|
|
34
|
+
private isEditableElement;
|
|
35
|
+
/**
|
|
36
|
+
* Handle keyboard events
|
|
37
|
+
*/
|
|
38
|
+
private handleKeyDown;
|
|
39
|
+
/**
|
|
40
|
+
* Navigate to a node using arrow keys
|
|
41
|
+
*/
|
|
42
|
+
private navigateToNode;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=keyboard.controller.d.ts.map
|