atomicuilibrary 0.0.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/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/cjs/category-section.cjs.entry.js +30 -0
- package/dist/cjs/component-size-DsYFUZcz.js +29 -0
- package/dist/cjs/dom-oP1E4Rd3.js +267 -0
- package/dist/cjs/event-bus-B6M2f8CQ.js +23 -0
- package/dist/cjs/exploration-project-tailwind.cjs.js +24 -0
- package/dist/cjs/focus-trap-i9T6oXLc.js +139 -0
- package/dist/cjs/index-ClkOYpT8.js +2275 -0
- package/dist/cjs/index.cjs.js +260 -0
- package/dist/cjs/layout-manager.cjs.entry.js +616 -0
- package/dist/cjs/library-card.cjs.entry.js +63 -0
- package/dist/cjs/lm-container_2.cjs.entry.js +79 -0
- package/dist/cjs/lm-panel_3.cjs.entry.js +108 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/my-component.cjs.entry.js +33 -0
- package/dist/cjs/my-step.cjs.entry.js +29 -0
- package/dist/cjs/nav-bar.cjs.entry.js +247 -0
- package/dist/cjs/security-E1JcwxGc.js +1547 -0
- package/dist/cjs/smart-step.cjs.entry.js +47 -0
- package/dist/cjs/timeline-item.cjs.entry.js +29 -0
- package/dist/cjs/ui-accordion_10.cjs.entry.js +5733 -0
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2684 -0
- package/dist/cjs/ui-anchor.cjs.entry.js +558 -0
- package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +285 -0
- package/dist/cjs/ui-aside-panel.cjs.entry.js +638 -0
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +634 -0
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +56 -0
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +201 -0
- package/dist/cjs/ui-callout-banner.cjs.entry.js +291 -0
- package/dist/cjs/ui-card.cjs.entry.js +411 -0
- package/dist/cjs/ui-carousel.cjs.entry.js +547 -0
- package/dist/cjs/ui-checkbox-group.cjs.entry.js +330 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +260 -0
- package/dist/cjs/ui-code-editor.cjs.entry.js +961 -0
- package/dist/cjs/ui-code-preview.cjs.entry.js +315 -0
- package/dist/cjs/ui-color-controller.cjs.entry.js +150 -0
- package/dist/cjs/ui-color-picker.cjs.entry.js +658 -0
- package/dist/cjs/ui-command-palette.cjs.entry.js +178 -0
- package/dist/cjs/ui-dialog-box.cjs.entry.js +1808 -0
- package/dist/cjs/ui-dialog-content.cjs.entry.js +31 -0
- package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +193 -0
- package/dist/cjs/ui-divider.cjs.entry.js +481 -0
- package/dist/cjs/ui-dock-host.cjs.entry.js +128 -0
- package/dist/cjs/ui-dock.cjs.entry.js +221 -0
- package/dist/cjs/ui-drag-drop.cjs.entry.js +172 -0
- package/dist/cjs/ui-dropdown_2.cjs.entry.js +1552 -0
- package/dist/cjs/ui-empty-state.cjs.entry.js +398 -0
- package/dist/cjs/ui-fab-item.cjs.entry.js +39 -0
- package/dist/cjs/ui-fab.cjs.entry.js +277 -0
- package/dist/cjs/ui-file-upload.cjs.entry.js +418 -0
- package/dist/cjs/ui-horizontal-nav.cjs.entry.js +135 -0
- package/dist/cjs/ui-image-button.cjs.entry.js +67 -0
- package/dist/cjs/ui-input-pair.cjs.entry.js +44 -0
- package/dist/cjs/ui-knob.cjs.entry.js +447 -0
- package/dist/cjs/ui-library.cjs.entry.js +134 -0
- package/dist/cjs/ui-list-group_2.cjs.entry.js +586 -0
- package/dist/cjs/ui-list.cjs.entry.js +732 -0
- package/dist/cjs/ui-masonry.cjs.entry.js +478 -0
- package/dist/cjs/ui-meter-group.cjs.entry.js +173 -0
- package/dist/cjs/ui-navigation-item.cjs.entry.js +104 -0
- package/dist/cjs/ui-number-input.cjs.entry.js +191 -0
- package/dist/cjs/ui-otp-input.cjs.entry.js +246 -0
- package/dist/cjs/ui-pagination_3.cjs.entry.js +1621 -0
- package/dist/cjs/ui-panel.cjs.entry.js +614 -0
- package/dist/cjs/ui-pattern-input.cjs.entry.js +278 -0
- package/dist/cjs/ui-popover.cjs.entry.js +517 -0
- package/dist/cjs/ui-progress.cjs.entry.js +516 -0
- package/dist/cjs/ui-radio-group.cjs.entry.js +205 -0
- package/dist/cjs/ui-radio.cjs.entry.js +206 -0
- package/dist/cjs/ui-range-slider.cjs.entry.js +637 -0
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +484 -0
- package/dist/cjs/ui-scroll-top.cjs.entry.js +459 -0
- package/dist/cjs/ui-smart-context-menu.cjs.entry.js +376 -0
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +565 -0
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +137 -0
- package/dist/cjs/ui-snackbar.cjs.entry.js +863 -0
- package/dist/cjs/ui-speed-dial.cjs.entry.js +520 -0
- package/dist/cjs/ui-speedometer.cjs.entry.js +428 -0
- package/dist/cjs/ui-splitter.cjs.entry.js +282 -0
- package/dist/cjs/ui-step.cjs.entry.js +30 -0
- package/dist/cjs/ui-stepper.cjs.entry.js +640 -0
- package/dist/cjs/ui-switch.cjs.entry.js +405 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +703 -0
- package/dist/cjs/ui-tag.cjs.entry.js +299 -0
- package/dist/cjs/ui-timeline.cjs.entry.js +267 -0
- package/dist/cjs/ui-timer.cjs.entry.js +502 -0
- package/dist/cjs/ui-toolbar.cjs.entry.js +619 -0
- package/dist/cjs/ui-tooltip.cjs.entry.js +697 -0
- package/dist/cjs/ui-top-bar.cjs.entry.js +121 -0
- package/dist/cjs/ui-transfer-list.cjs.entry.js +592 -0
- package/dist/cjs/ui-tree.cjs.entry.js +874 -0
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +1201 -0
- package/dist/cjs/utils-DVZ6gul6.js +26 -0
- package/dist/collection/assets/js/component-config.js +41 -0
- package/dist/collection/assets/js/demo-loader.js +147 -0
- package/dist/collection/assets/js/demo-nav.js +273 -0
- package/dist/collection/assets/js/demos/about-demo.js +60 -0
- package/dist/collection/assets/js/demos/accordion-demo.js +1954 -0
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +2952 -0
- package/dist/collection/assets/js/demos/anchor-demo.js +527 -0
- package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +174 -0
- package/dist/collection/assets/js/demos/aside-panel-demo.js +1109 -0
- package/dist/collection/assets/js/demos/avatar-demo.js +508 -0
- package/dist/collection/assets/js/demos/badge-demo.js +620 -0
- package/dist/collection/assets/js/demos/breadcrumb-demo.js +365 -0
- package/dist/collection/assets/js/demos/button-demo.js +1223 -0
- package/dist/collection/assets/js/demos/button-toggle-demo.js +978 -0
- package/dist/collection/assets/js/demos/callout-banner-demo.js +366 -0
- package/dist/collection/assets/js/demos/card-demo.js +427 -0
- package/dist/collection/assets/js/demos/carousel-demo.js +360 -0
- package/dist/collection/assets/js/demos/checkbox-demo.js +489 -0
- package/dist/collection/assets/js/demos/code-preview-demo.js +216 -0
- package/dist/collection/assets/js/demos/color-picker-demo.js +117 -0
- package/dist/collection/assets/js/demos/command-palette-demo.js +105 -0
- package/dist/collection/assets/js/demos/complex-form-demo.js +45 -0
- package/dist/collection/assets/js/demos/context-menu-data.js +436 -0
- package/dist/collection/assets/js/demos/context-menu-demo.js +829 -0
- package/dist/collection/assets/js/demos/dashboard-demo.js +5 -0
- package/dist/collection/assets/js/demos/dialog-demo-temp.js +411 -0
- package/dist/collection/assets/js/demos/dialog-demo.js +2567 -0
- package/dist/collection/assets/js/demos/divider-demo.js +853 -0
- package/dist/collection/assets/js/demos/dock-demo.js +422 -0
- package/dist/collection/assets/js/demos/dock-host-init.js +117 -0
- package/dist/collection/assets/js/demos/dock-host-playground.js +59 -0
- package/dist/collection/assets/js/demos/documentation-demo.js +34 -0
- package/dist/collection/assets/js/demos/drag-drop-demo.js +132 -0
- package/dist/collection/assets/js/demos/dropdown-demo.js +1410 -0
- package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +18 -0
- package/dist/collection/assets/js/demos/empty-state-demo.js +580 -0
- package/dist/collection/assets/js/demos/fab-demo.js +374 -0
- package/dist/collection/assets/js/demos/file-upload-demo.js +171 -0
- package/dist/collection/assets/js/demos/home-components.js +750 -0
- package/dist/collection/assets/js/demos/home-demo.js +441 -0
- package/dist/collection/assets/js/demos/horizontal-nav-demo.js +277 -0
- package/dist/collection/assets/js/demos/icon-demo.js +380 -0
- package/dist/collection/assets/js/demos/input-demo.js +1932 -0
- package/dist/collection/assets/js/demos/knob-demo.js +570 -0
- package/dist/collection/assets/js/demos/layout-manager-demo.js +918 -0
- package/dist/collection/assets/js/demos/list-demo.js +1402 -0
- package/dist/collection/assets/js/demos/loader-demo.js +453 -0
- package/dist/collection/assets/js/demos/meter-group-demo.js +499 -0
- package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +924 -0
- package/dist/collection/assets/js/demos/my-profile-demo.js +237 -0
- package/dist/collection/assets/js/demos/nav-bar-demo.js +187 -0
- package/dist/collection/assets/js/demos/number-input-demo.js +242 -0
- package/dist/collection/assets/js/demos/overview-demo.js +11 -0
- package/dist/collection/assets/js/demos/pagination-demo.js +1042 -0
- package/dist/collection/assets/js/demos/panel-demo.js +789 -0
- package/dist/collection/assets/js/demos/pattern-input-demo.js +241 -0
- package/dist/collection/assets/js/demos/popover-demo.js +882 -0
- package/dist/collection/assets/js/demos/progress-demo.js +462 -0
- package/dist/collection/assets/js/demos/radio-demo.js +413 -0
- package/dist/collection/assets/js/demos/range-slider-demo.js +1217 -0
- package/dist/collection/assets/js/demos/rating-demo.js +383 -0
- package/dist/collection/assets/js/demos/scroll-top-demo.js +353 -0
- package/dist/collection/assets/js/demos/skeleton-demo.js +490 -0
- package/dist/collection/assets/js/demos/skeleton-performance-demo.js +26 -0
- package/dist/collection/assets/js/demos/smart-dialog-demo.js +552 -0
- package/dist/collection/assets/js/demos/smart-menu-demo.js +375 -0
- package/dist/collection/assets/js/demos/smart-stepper-demo.js +50 -0
- package/dist/collection/assets/js/demos/snackbar-demo.js +1040 -0
- package/dist/collection/assets/js/demos/speed-dial-demo.js +764 -0
- package/dist/collection/assets/js/demos/speedometer-demo.js +425 -0
- package/dist/collection/assets/js/demos/split-button-demo.js +201 -0
- package/dist/collection/assets/js/demos/stack-demo.js +228 -0
- package/dist/collection/assets/js/demos/stepper-demo.js +798 -0
- package/dist/collection/assets/js/demos/switch-demo.js +849 -0
- package/dist/collection/assets/js/demos/tabs-demo.js +1032 -0
- package/dist/collection/assets/js/demos/tag-demo.js +842 -0
- package/dist/collection/assets/js/demos/theme-selector-demo.js +466 -0
- package/dist/collection/assets/js/demos/timeline-demo.js +365 -0
- package/dist/collection/assets/js/demos/timeline-playground.js +59 -0
- package/dist/collection/assets/js/demos/timer-demo.js +313 -0
- package/dist/collection/assets/js/demos/toolbar-demo.js +643 -0
- package/dist/collection/assets/js/demos/tooltip-demo.js +730 -0
- package/dist/collection/assets/js/demos/top-bar-demo.js +417 -0
- package/dist/collection/assets/js/demos/transfer-list-demo.js +555 -0
- package/dist/collection/assets/js/demos/tree-demo.js +693 -0
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +241 -0
- package/dist/collection/assets/js/index-boot.js +104 -0
- package/dist/collection/assets/js/nav-bar-demo.js +20 -0
- package/dist/collection/assets/js/nav-bar-init.js +119 -0
- package/dist/collection/assets/js/utils/layout-loader.js +80 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/accordion/accordion.css +2090 -0
- package/dist/collection/components/accordion/accordion.js +2955 -0
- package/dist/collection/components/accordion/types.js +1 -0
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +2606 -0
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +5394 -0
- package/dist/collection/components/advanced-data-table/types.js +1 -0
- package/dist/collection/components/anchor/anchor.css +395 -0
- package/dist/collection/components/anchor/anchor.js +1404 -0
- package/dist/collection/components/anchor/types.js +1 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.css +804 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +696 -0
- package/dist/collection/components/aside-panel/aside-panel.css +472 -0
- package/dist/collection/components/aside-panel/aside-panel.js +1697 -0
- package/dist/collection/components/avatar/avatar.css +696 -0
- package/dist/collection/components/avatar/avatar.js +2007 -0
- package/dist/collection/components/avatar/types.js +1 -0
- package/dist/collection/components/avatar-group/avatar-group.css +253 -0
- package/dist/collection/components/avatar-group/avatar-group.js +405 -0
- package/dist/collection/components/avatar-group/types.js +1 -0
- package/dist/collection/components/badge/badge.css +580 -0
- package/dist/collection/components/badge/badge.js +723 -0
- package/dist/collection/components/badge/types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +231 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +313 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +510 -0
- package/dist/collection/components/breadcrumb/types.js +1 -0
- package/dist/collection/components/button/button.css +1862 -0
- package/dist/collection/components/button/button.js +1380 -0
- package/dist/collection/components/button/types.js +1 -0
- package/dist/collection/components/button-toggle/button-toggle.css +97 -0
- package/dist/collection/components/button-toggle/button-toggle.js +620 -0
- package/dist/collection/components/button-toggle-group/button-toggle-group.css +401 -0
- package/dist/collection/components/button-toggle-group/button-toggle-group.js +1572 -0
- package/dist/collection/components/button-toggle-group/types.js +1 -0
- package/dist/collection/components/callout-banner/callout-banner.css +684 -0
- package/dist/collection/components/callout-banner/callout-banner.js +1076 -0
- package/dist/collection/components/callout-banner/types.js +1 -0
- package/dist/collection/components/card/card.css +663 -0
- package/dist/collection/components/card/card.js +1697 -0
- package/dist/collection/components/card/types.js +1 -0
- package/dist/collection/components/carousel/carousel.css +549 -0
- package/dist/collection/components/carousel/carousel.js +1512 -0
- package/dist/collection/components/carousel/types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +863 -0
- package/dist/collection/components/checkbox/checkbox.js +1201 -0
- package/dist/collection/components/checkbox/types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +223 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +1001 -0
- package/dist/collection/components/checkbox-group/types.js +1 -0
- package/dist/collection/components/code-editor/code-editor.css +1081 -0
- package/dist/collection/components/code-editor/code-editor.js +1211 -0
- package/dist/collection/components/code-editor/types.js +1 -0
- package/dist/collection/components/code-preview/types.js +1 -0
- package/dist/collection/components/code-preview/ui-code-preview.css +209 -0
- package/dist/collection/components/code-preview/ui-code-preview.js +548 -0
- package/dist/collection/components/color-controller/color-controller.css +108 -0
- package/dist/collection/components/color-controller/color-controller.js +224 -0
- package/dist/collection/components/color-picker/color-picker.css +323 -0
- package/dist/collection/components/color-picker/color-picker.js +1139 -0
- package/dist/collection/components/color-picker/types.js +1 -0
- package/dist/collection/components/command-palette/command-palette.css +260 -0
- package/dist/collection/components/command-palette/command-palette.js +429 -0
- package/dist/collection/components/command-palette/types.js +1 -0
- package/dist/collection/components/context-menu/context-menu.css +388 -0
- package/dist/collection/components/context-menu/context-menu.js +1412 -0
- package/dist/collection/components/context-menu/types.js +1 -0
- package/dist/collection/components/dialog-box/dialog-box.css +1261 -0
- package/dist/collection/components/dialog-box/dialog-box.js +4314 -0
- package/dist/collection/components/dialog-box/dialog-tray.css +268 -0
- package/dist/collection/components/dialog-box/types.js +1 -0
- package/dist/collection/components/dialog-content/dialog-content.css +83 -0
- package/dist/collection/components/dialog-content/dialog-content.js +96 -0
- package/dist/collection/components/dialog-footer/dialog-footer.css +89 -0
- package/dist/collection/components/dialog-footer/dialog-footer.js +94 -0
- package/dist/collection/components/dialog-footer/types.js +1 -0
- package/dist/collection/components/dialog-header/dialog-header.css +203 -0
- package/dist/collection/components/dialog-header/dialog-header.js +630 -0
- package/dist/collection/components/dialog-header/types.js +1 -0
- package/dist/collection/components/divider/divider.css +948 -0
- package/dist/collection/components/divider/divider.js +1612 -0
- package/dist/collection/components/divider/types.js +1 -0
- package/dist/collection/components/dock/dock.css +348 -0
- package/dist/collection/components/dock/dock.js +464 -0
- package/dist/collection/components/dock/types.js +1 -0
- package/dist/collection/components/dock-host/index.js +1 -0
- package/dist/collection/components/dock-host/types.js +1 -0
- package/dist/collection/components/dock-host/ui-dock-host.css +155 -0
- package/dist/collection/components/dock-host/ui-dock-host.js +226 -0
- package/dist/collection/components/drag-drop/drag-drop.css +103 -0
- package/dist/collection/components/drag-drop/drag-drop.js +385 -0
- package/dist/collection/components/drag-drop/types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1142 -0
- package/dist/collection/components/dropdown/dropdown.js +2033 -0
- package/dist/collection/components/dropdown/types.js +1 -0
- package/dist/collection/components/empty-state/empty-state.css +712 -0
- package/dist/collection/components/empty-state/empty-state.js +1256 -0
- package/dist/collection/components/empty-state/types.js +1 -0
- package/dist/collection/components/fab/fab.css +601 -0
- package/dist/collection/components/fab/fab.js +1124 -0
- package/dist/collection/components/fab-item/fab-item.css +107 -0
- package/dist/collection/components/fab-item/fab-item.js +177 -0
- package/dist/collection/components/fab-item/types.js +1 -0
- package/dist/collection/components/file-upload/file-upload.css +243 -0
- package/dist/collection/components/file-upload/file-upload.js +1022 -0
- package/dist/collection/components/file-upload/types.js +1 -0
- package/dist/collection/components/horizontal-nav/horizontal-nav.css +394 -0
- package/dist/collection/components/horizontal-nav/horizontal-nav.js +375 -0
- package/dist/collection/components/icon/icon.css +113 -0
- package/dist/collection/components/icon/icon.js +583 -0
- package/dist/collection/components/image-button/image-button.css +154 -0
- package/dist/collection/components/image-button/image-button.js +310 -0
- package/dist/collection/components/image-button/types.js +1 -0
- package/dist/collection/components/input/input.css +1544 -0
- package/dist/collection/components/input/input.js +3690 -0
- package/dist/collection/components/input/types.js +1 -0
- package/dist/collection/components/input-pair/input-pair.css +72 -0
- package/dist/collection/components/input-pair/input-pair.js +309 -0
- package/dist/collection/components/knob/knob.css +162 -0
- package/dist/collection/components/knob/knob.js +986 -0
- package/dist/collection/components/knob/types.js +1 -0
- package/dist/collection/components/layout-manager/layout-manager.css +41 -0
- package/dist/collection/components/layout-manager/layout-manager.js +525 -0
- package/dist/collection/components/layout-manager/lm-container/lm-container.css +117 -0
- package/dist/collection/components/layout-manager/lm-container/lm-container.js +110 -0
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.css +0 -0
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +49 -0
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.css +97 -0
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +58 -0
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.css +57 -0
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +120 -0
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.css +149 -0
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +130 -0
- package/dist/collection/components/layout-manager/types.js +1 -0
- package/dist/collection/components/library/category-section.css +147 -0
- package/dist/collection/components/library/category-section.js +139 -0
- package/dist/collection/components/library/data.js +74 -0
- package/dist/collection/components/library/library-card.css +181 -0
- package/dist/collection/components/library/library-card.js +203 -0
- package/dist/collection/components/library/library.css +358 -0
- package/dist/collection/components/library/library.js +91 -0
- package/dist/collection/components/list/list.css +1029 -0
- package/dist/collection/components/list/list.js +2167 -0
- package/dist/collection/components/list-group/list-group.css +275 -0
- package/dist/collection/components/list-group/list-group.js +356 -0
- package/dist/collection/components/list-item/list-item.css +1491 -0
- package/dist/collection/components/list-item/list-item.js +2184 -0
- package/dist/collection/components/masonry/masonry.css +414 -0
- package/dist/collection/components/masonry/masonry.js +1104 -0
- package/dist/collection/components/masonry/types.js +1 -0
- package/dist/collection/components/meter-group/meter-group.css +184 -0
- package/dist/collection/components/meter-group/meter-group.js +471 -0
- package/dist/collection/components/meter-group/types.js +1 -0
- package/dist/collection/components/my-component/my-component.css +27 -0
- package/dist/collection/components/my-component/my-component.js +95 -0
- package/dist/collection/components/my-step/my-step.css +25 -0
- package/dist/collection/components/my-step/my-step.js +237 -0
- package/dist/collection/components/nav-bar/nav-bar.css +448 -0
- package/dist/collection/components/nav-bar/nav-bar.js +608 -0
- package/dist/collection/components/number-input/number-input.css +200 -0
- package/dist/collection/components/number-input/number-input.js +695 -0
- package/dist/collection/components/otp-input/otp-input.css +243 -0
- package/dist/collection/components/otp-input/otp-input.js +761 -0
- package/dist/collection/components/otp-input/types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1399 -0
- package/dist/collection/components/pagination/pagination.js +2033 -0
- package/dist/collection/components/pagination/types.js +1 -0
- package/dist/collection/components/panel/panel.css +837 -0
- package/dist/collection/components/panel/panel.js +1842 -0
- package/dist/collection/components/panel/types.js +1 -0
- package/dist/collection/components/pattern-input/pattern-input.css +252 -0
- package/dist/collection/components/pattern-input/pattern-input.js +788 -0
- package/dist/collection/components/popover/popover.css +399 -0
- package/dist/collection/components/popover/popover.js +1449 -0
- package/dist/collection/components/popover/types.js +1 -0
- package/dist/collection/components/progress/progress.css +588 -0
- package/dist/collection/components/progress/progress.js +1414 -0
- package/dist/collection/components/progress/types.js +1 -0
- package/dist/collection/components/radio/radio.css +773 -0
- package/dist/collection/components/radio/radio.js +1059 -0
- package/dist/collection/components/radio/types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +202 -0
- package/dist/collection/components/radio-group/radio-group.js +903 -0
- package/dist/collection/components/radio-group/types.js +1 -0
- package/dist/collection/components/range-slider/range-slider.css +602 -0
- package/dist/collection/components/range-slider/range-slider.js +1369 -0
- package/dist/collection/components/range-slider/types.js +1 -0
- package/dist/collection/components/rating/rating.css +768 -0
- package/dist/collection/components/rating/rating.js +1062 -0
- package/dist/collection/components/rating/types.js +1 -0
- package/dist/collection/components/resizable-panel/resizable-panel.css +247 -0
- package/dist/collection/components/resizable-panel/resizable-panel.js +874 -0
- package/dist/collection/components/resizable-panel/types.js +1 -0
- package/dist/collection/components/scroll-top/scroll-top.css +397 -0
- package/dist/collection/components/scroll-top/scroll-top.js +1178 -0
- package/dist/collection/components/scroll-top/types.js +1 -0
- package/dist/collection/components/skeleton/skeleton-loader.css +429 -0
- package/dist/collection/components/skeleton/skeleton-loader.js +1193 -0
- package/dist/collection/components/skeleton/types.js +1 -0
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +357 -0
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +1190 -0
- package/dist/collection/components/smart-location-dropdown/types.js +1 -0
- package/dist/collection/components/smart-menu/menu-item.interface.js +1 -0
- package/dist/collection/components/smart-menu/smart-menu.css +119 -0
- package/dist/collection/components/smart-menu/smart-menu.js +544 -0
- package/dist/collection/components/smart-stepper/smart-step.css +213 -0
- package/dist/collection/components/smart-stepper/smart-step.js +170 -0
- package/dist/collection/components/smart-stepper/smart-stepper.css +146 -0
- package/dist/collection/components/smart-stepper/smart-stepper.js +338 -0
- package/dist/collection/components/snackbar/snackbar.css +1480 -0
- package/dist/collection/components/snackbar/snackbar.js +1759 -0
- package/dist/collection/components/snackbar/types.js +1 -0
- package/dist/collection/components/speed-dial/speed-dial.css +478 -0
- package/dist/collection/components/speed-dial/speed-dial.js +1183 -0
- package/dist/collection/components/speed-dial/types.js +1 -0
- package/dist/collection/components/speedometer/speedometer.css +95 -0
- package/dist/collection/components/speedometer/speedometer.js +868 -0
- package/dist/collection/components/speedometer/types.js +1 -0
- package/dist/collection/components/splitter/splitter.css +269 -0
- package/dist/collection/components/splitter/splitter.js +713 -0
- package/dist/collection/components/splitter/types.js +1 -0
- package/dist/collection/components/stack/stack.css +269 -0
- package/dist/collection/components/stack/stack.js +297 -0
- package/dist/collection/components/stack/types.js +1 -0
- package/dist/collection/components/step/step.css +77 -0
- package/dist/collection/components/step/step.js +214 -0
- package/dist/collection/components/step/types.js +1 -0
- package/dist/collection/components/stepper/stepper.css +1079 -0
- package/dist/collection/components/stepper/stepper.js +1850 -0
- package/dist/collection/components/stepper/types.js +1 -0
- package/dist/collection/components/switch/switch.css +1099 -0
- package/dist/collection/components/switch/switch.js +1578 -0
- package/dist/collection/components/tabs/tabs.css +1355 -0
- package/dist/collection/components/tabs/tabs.js +1474 -0
- package/dist/collection/components/tabs/types.js +1 -0
- package/dist/collection/components/tag/tag.css +893 -0
- package/dist/collection/components/tag/tag.js +1119 -0
- package/dist/collection/components/tag/types.js +1 -0
- package/dist/collection/components/tag-group/tag-group.css +144 -0
- package/dist/collection/components/tag-group/tag-group.js +887 -0
- package/dist/collection/components/tag-group/types.js +1 -0
- package/dist/collection/components/timeline/timeline.css +1850 -0
- package/dist/collection/components/timeline/timeline.js +889 -0
- package/dist/collection/components/timeline/types.js +1 -0
- package/dist/collection/components/timeline/ui-timeline.stories.js +19 -0
- package/dist/collection/components/timeline-item/timeline-item.css +75 -0
- package/dist/collection/components/timeline-item/timeline-item.js +91 -0
- package/dist/collection/components/timer/timer.css +367 -0
- package/dist/collection/components/timer/timer.js +1292 -0
- package/dist/collection/components/timer/types.js +1 -0
- package/dist/collection/components/timer/ui-timer.stories.js +19 -0
- package/dist/collection/components/toggle-group/toggle-group.css +361 -0
- package/dist/collection/components/toggle-group/toggle-group.js +1212 -0
- package/dist/collection/components/toggle-group/types.js +1 -0
- package/dist/collection/components/toolbar/toolbar-types.js +1 -0
- package/dist/collection/components/toolbar/toolbar.css +1186 -0
- package/dist/collection/components/toolbar/toolbar.js +1635 -0
- package/dist/collection/components/tooltip/tooltip.css +609 -0
- package/dist/collection/components/tooltip/tooltip.js +1882 -0
- package/dist/collection/components/tooltip/types.js +1 -0
- package/dist/collection/components/top-bar/top-bar.css +274 -0
- package/dist/collection/components/top-bar/top-bar.js +383 -0
- package/dist/collection/components/transfer-list/transfer-list.css +520 -0
- package/dist/collection/components/transfer-list/transfer-list.js +1225 -0
- package/dist/collection/components/transfer-list/types.js +1 -0
- package/dist/collection/components/tree/tree.css +1197 -0
- package/dist/collection/components/tree/tree.js +2509 -0
- package/dist/collection/components/tree/types.js +1 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +830 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +1231 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-types.js +1 -0
- package/dist/collection/components/ui-navigation-bar/navigation-item.css +679 -0
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +385 -0
- package/dist/collection/components/ui-navigation-bar/navigation-types.js +1 -0
- package/dist/collection/components/workspace-manager/types.js +1 -0
- package/dist/collection/components/workspace-manager/workspace-manager.css +1094 -0
- package/dist/collection/components/workspace-manager/workspace-manager.js +1914 -0
- package/dist/collection/components.js +51 -0
- package/dist/collection/index.js +108 -0
- package/dist/collection/service/drag-manager.js +23 -0
- package/dist/collection/service/event-bus.js +19 -0
- package/dist/collection/service/serialization.js +8 -0
- package/dist/collection/service/state-engine.js +247 -0
- package/dist/collection/service/theme-switcher.js +146 -0
- package/dist/collection/stories/Button.stories.js +15 -0
- package/dist/collection/types/common.js +1 -0
- package/dist/collection/types/index.js +4 -0
- package/dist/collection/utils/aria-live.js +60 -0
- package/dist/collection/utils/component-size.js +25 -0
- package/dist/collection/utils/dom.js +260 -0
- package/dist/collection/utils/focus-trap.js +135 -0
- package/dist/collection/utils/security.js +10 -0
- package/dist/collection/utils/test/setup-component-test-env.js +92 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/collection/utils/validation.js +74 -0
- package/dist/components/avatar-group.js +1 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/badge.js +1 -0
- package/dist/components/button-toggle.js +1 -0
- package/dist/components/category-section.d.ts +11 -0
- package/dist/components/category-section.js +1 -0
- package/dist/components/category-section2.js +1 -0
- package/dist/components/checkbox.js +1 -0
- package/dist/components/context-menu.js +1 -0
- package/dist/components/dialog-footer.js +1 -0
- package/dist/components/dialog-header.js +1 -0
- package/dist/components/dom.js +1 -0
- package/dist/components/dropdown.js +1 -0
- package/dist/components/event-bus.js +1 -0
- package/dist/components/focus-trap.js +1 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/input.js +1 -0
- package/dist/components/layout-manager.d.ts +11 -0
- package/dist/components/layout-manager.js +1 -0
- package/dist/components/library-card.d.ts +11 -0
- package/dist/components/library-card.js +1 -0
- package/dist/components/library-card2.js +1 -0
- package/dist/components/list-group.js +1 -0
- package/dist/components/list-item.js +1 -0
- package/dist/components/lm-container.d.ts +11 -0
- package/dist/components/lm-container.js +1 -0
- package/dist/components/lm-container2.js +1 -0
- package/dist/components/lm-floating-window.d.ts +11 -0
- package/dist/components/lm-floating-window.js +1 -0
- package/dist/components/lm-floating-window2.js +1 -0
- package/dist/components/lm-panel.d.ts +11 -0
- package/dist/components/lm-panel.js +1 -0
- package/dist/components/lm-panel2.js +1 -0
- package/dist/components/lm-splitter.d.ts +11 -0
- package/dist/components/lm-splitter.js +1 -0
- package/dist/components/lm-splitter2.js +1 -0
- package/dist/components/lm-tabs.d.ts +11 -0
- package/dist/components/lm-tabs.js +1 -0
- package/dist/components/lm-tabs2.js +1 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +1 -0
- package/dist/components/my-step.d.ts +11 -0
- package/dist/components/my-step.js +1 -0
- package/dist/components/nav-bar.d.ts +11 -0
- package/dist/components/nav-bar.js +1 -0
- package/dist/components/pagination.js +1 -0
- package/dist/components/radio.js +1 -0
- package/dist/components/range-slider.js +1 -0
- package/dist/components/rating.js +1 -0
- package/dist/components/resizable-panel.js +1 -0
- package/dist/components/skeleton-loader.js +1 -0
- package/dist/components/smart-step.d.ts +11 -0
- package/dist/components/smart-step.js +1 -0
- package/dist/components/stack.js +1 -0
- package/dist/components/switch.js +1 -0
- package/dist/components/tag-group.js +1 -0
- package/dist/components/tag.js +1 -0
- package/dist/components/timeline-item.d.ts +11 -0
- package/dist/components/timeline-item.js +1 -0
- package/dist/components/toggle-group.js +1 -0
- package/dist/components/tooltip.js +1 -0
- package/dist/components/ui-accordion.d.ts +11 -0
- package/dist/components/ui-accordion.js +1 -0
- package/dist/components/ui-advanced-data-table.d.ts +11 -0
- package/dist/components/ui-advanced-data-table.js +1 -0
- package/dist/components/ui-anchor.d.ts +11 -0
- package/dist/components/ui-anchor.js +1 -0
- package/dist/components/ui-animate-on-scroll.d.ts +11 -0
- package/dist/components/ui-animate-on-scroll.js +1 -0
- package/dist/components/ui-aside-panel.d.ts +11 -0
- package/dist/components/ui-aside-panel.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.d.ts +11 -0
- package/dist/components/ui-avatar.js +1 -0
- package/dist/components/ui-badge.d.ts +11 -0
- package/dist/components/ui-badge.js +1 -0
- package/dist/components/ui-breadcrumb-item.d.ts +11 -0
- package/dist/components/ui-breadcrumb-item.js +1 -0
- package/dist/components/ui-breadcrumb.d.ts +11 -0
- package/dist/components/ui-breadcrumb.js +1 -0
- package/dist/components/ui-button-toggle-group.d.ts +11 -0
- package/dist/components/ui-button-toggle-group.js +1 -0
- package/dist/components/ui-button-toggle.d.ts +11 -0
- package/dist/components/ui-button-toggle.js +1 -0
- package/dist/components/ui-button.d.ts +11 -0
- package/dist/components/ui-button.js +1 -0
- package/dist/components/ui-callout-banner.d.ts +11 -0
- package/dist/components/ui-callout-banner.js +1 -0
- package/dist/components/ui-card.d.ts +11 -0
- package/dist/components/ui-card.js +1 -0
- package/dist/components/ui-carousel.d.ts +11 -0
- package/dist/components/ui-carousel.js +1 -0
- package/dist/components/ui-checkbox-group.d.ts +11 -0
- package/dist/components/ui-checkbox-group.js +1 -0
- package/dist/components/ui-checkbox.d.ts +11 -0
- package/dist/components/ui-checkbox.js +1 -0
- package/dist/components/ui-code-editor.d.ts +11 -0
- package/dist/components/ui-code-editor.js +1 -0
- package/dist/components/ui-code-preview.d.ts +11 -0
- package/dist/components/ui-code-preview.js +1 -0
- package/dist/components/ui-color-controller.d.ts +11 -0
- package/dist/components/ui-color-controller.js +1 -0
- package/dist/components/ui-color-picker.d.ts +11 -0
- package/dist/components/ui-color-picker.js +1 -0
- package/dist/components/ui-command-palette.d.ts +11 -0
- package/dist/components/ui-command-palette.js +1 -0
- package/dist/components/ui-context-menu.d.ts +11 -0
- package/dist/components/ui-context-menu.js +1 -0
- package/dist/components/ui-dialog-box.d.ts +11 -0
- package/dist/components/ui-dialog-box.js +1 -0
- package/dist/components/ui-dialog-content.d.ts +11 -0
- package/dist/components/ui-dialog-content.js +1 -0
- package/dist/components/ui-dialog-footer.d.ts +11 -0
- package/dist/components/ui-dialog-footer.js +1 -0
- package/dist/components/ui-dialog-header.d.ts +11 -0
- package/dist/components/ui-dialog-header.js +1 -0
- package/dist/components/ui-divider.d.ts +11 -0
- package/dist/components/ui-divider.js +1 -0
- package/dist/components/ui-dock-host.d.ts +11 -0
- package/dist/components/ui-dock-host.js +1 -0
- package/dist/components/ui-dock.d.ts +11 -0
- package/dist/components/ui-dock.js +1 -0
- package/dist/components/ui-drag-drop.d.ts +11 -0
- package/dist/components/ui-drag-drop.js +1 -0
- package/dist/components/ui-dropdown.d.ts +11 -0
- package/dist/components/ui-dropdown.js +1 -0
- package/dist/components/ui-empty-state.d.ts +11 -0
- package/dist/components/ui-empty-state.js +1 -0
- package/dist/components/ui-fab-item.d.ts +11 -0
- package/dist/components/ui-fab-item.js +1 -0
- package/dist/components/ui-fab.d.ts +11 -0
- package/dist/components/ui-fab.js +1 -0
- package/dist/components/ui-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-horizontal-nav.d.ts +11 -0
- package/dist/components/ui-horizontal-nav.js +1 -0
- package/dist/components/ui-icon.d.ts +11 -0
- package/dist/components/ui-icon.js +1 -0
- package/dist/components/ui-image-button.d.ts +11 -0
- package/dist/components/ui-image-button.js +1 -0
- package/dist/components/ui-input-pair.d.ts +11 -0
- package/dist/components/ui-input-pair.js +1 -0
- package/dist/components/ui-input.d.ts +11 -0
- package/dist/components/ui-input.js +1 -0
- package/dist/components/ui-knob.d.ts +11 -0
- package/dist/components/ui-knob.js +1 -0
- package/dist/components/ui-library.d.ts +11 -0
- package/dist/components/ui-library.js +1 -0
- package/dist/components/ui-list-group.d.ts +11 -0
- package/dist/components/ui-list-group.js +1 -0
- package/dist/components/ui-list-item.d.ts +11 -0
- package/dist/components/ui-list-item.js +1 -0
- package/dist/components/ui-list.d.ts +11 -0
- package/dist/components/ui-list.js +1 -0
- package/dist/components/ui-masonry.d.ts +11 -0
- package/dist/components/ui-masonry.js +1 -0
- package/dist/components/ui-meter-group.d.ts +11 -0
- package/dist/components/ui-meter-group.js +1 -0
- package/dist/components/ui-navigation-bar.d.ts +11 -0
- package/dist/components/ui-navigation-bar.js +1 -0
- package/dist/components/ui-navigation-item.d.ts +11 -0
- package/dist/components/ui-navigation-item.js +1 -0
- package/dist/components/ui-number-input.d.ts +11 -0
- package/dist/components/ui-number-input.js +1 -0
- package/dist/components/ui-otp-input.d.ts +11 -0
- package/dist/components/ui-otp-input.js +1 -0
- package/dist/components/ui-pagination.d.ts +11 -0
- package/dist/components/ui-pagination.js +1 -0
- package/dist/components/ui-panel.d.ts +11 -0
- package/dist/components/ui-panel.js +1 -0
- package/dist/components/ui-pattern-input.d.ts +11 -0
- package/dist/components/ui-pattern-input.js +1 -0
- package/dist/components/ui-popover.d.ts +11 -0
- package/dist/components/ui-popover.js +1 -0
- package/dist/components/ui-progress.d.ts +11 -0
- package/dist/components/ui-progress.js +1 -0
- package/dist/components/ui-radio-group.d.ts +11 -0
- package/dist/components/ui-radio-group.js +1 -0
- package/dist/components/ui-radio.d.ts +11 -0
- package/dist/components/ui-radio.js +1 -0
- package/dist/components/ui-range-slider.d.ts +11 -0
- package/dist/components/ui-range-slider.js +1 -0
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- package/dist/components/ui-resizable-panel.d.ts +11 -0
- package/dist/components/ui-resizable-panel.js +1 -0
- package/dist/components/ui-scroll-top.d.ts +11 -0
- package/dist/components/ui-scroll-top.js +1 -0
- package/dist/components/ui-skeleton.d.ts +11 -0
- package/dist/components/ui-skeleton.js +1 -0
- package/dist/components/ui-smart-context-menu.d.ts +11 -0
- package/dist/components/ui-smart-context-menu.js +1 -0
- package/dist/components/ui-smart-location-dropdown.d.ts +11 -0
- package/dist/components/ui-smart-location-dropdown.js +1 -0
- package/dist/components/ui-smart-stepper.d.ts +11 -0
- package/dist/components/ui-smart-stepper.js +1 -0
- package/dist/components/ui-snackbar.d.ts +11 -0
- package/dist/components/ui-snackbar.js +1 -0
- package/dist/components/ui-speed-dial.d.ts +11 -0
- package/dist/components/ui-speed-dial.js +1 -0
- package/dist/components/ui-speedometer.d.ts +11 -0
- package/dist/components/ui-speedometer.js +1 -0
- package/dist/components/ui-splitter.d.ts +11 -0
- package/dist/components/ui-splitter.js +1 -0
- package/dist/components/ui-stack.d.ts +11 -0
- package/dist/components/ui-stack.js +1 -0
- package/dist/components/ui-step.d.ts +11 -0
- package/dist/components/ui-step.js +1 -0
- package/dist/components/ui-stepper.d.ts +11 -0
- package/dist/components/ui-stepper.js +1 -0
- package/dist/components/ui-switch.d.ts +11 -0
- package/dist/components/ui-switch.js +1 -0
- package/dist/components/ui-tabs.d.ts +11 -0
- package/dist/components/ui-tabs.js +1 -0
- package/dist/components/ui-tag-group.d.ts +11 -0
- package/dist/components/ui-tag-group.js +1 -0
- package/dist/components/ui-tag.d.ts +11 -0
- package/dist/components/ui-tag.js +1 -0
- package/dist/components/ui-timeline.d.ts +11 -0
- package/dist/components/ui-timeline.js +1 -0
- package/dist/components/ui-timer.d.ts +11 -0
- package/dist/components/ui-timer.js +1 -0
- package/dist/components/ui-toggle-group.d.ts +11 -0
- package/dist/components/ui-toggle-group.js +1 -0
- package/dist/components/ui-toolbar.d.ts +11 -0
- package/dist/components/ui-toolbar.js +1 -0
- package/dist/components/ui-tooltip.d.ts +11 -0
- package/dist/components/ui-tooltip.js +1 -0
- package/dist/components/ui-top-bar.d.ts +11 -0
- package/dist/components/ui-top-bar.js +1 -0
- package/dist/components/ui-transfer-list.d.ts +11 -0
- package/dist/components/ui-transfer-list.js +1 -0
- package/dist/components/ui-tree.d.ts +11 -0
- package/dist/components/ui-tree.js +1 -0
- package/dist/components/ui-workspace-manager.d.ts +11 -0
- package/dist/components/ui-workspace-manager.js +1 -0
- package/dist/components/utils.js +1 -0
- package/dist/esm/category-section.entry.js +28 -0
- package/dist/esm/component-size-C7gf39HE.js +27 -0
- package/dist/esm/dom-BMFah5q3.js +262 -0
- package/dist/esm/event-bus-vwwmWKs9.js +21 -0
- package/dist/esm/exploration-project-tailwind.js +20 -0
- package/dist/esm/focus-trap-BSQ8klD4.js +137 -0
- package/dist/esm/index-DUsoYu9r.js +2264 -0
- package/dist/esm/index.js +256 -0
- package/dist/esm/layout-manager.entry.js +614 -0
- package/dist/esm/library-card.entry.js +61 -0
- package/dist/esm/lm-container_2.entry.js +76 -0
- package/dist/esm/lm-panel_3.entry.js +104 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/my-component.entry.js +31 -0
- package/dist/esm/my-step.entry.js +27 -0
- package/dist/esm/nav-bar.entry.js +245 -0
- package/dist/esm/security-D2WzX6vR.js +1545 -0
- package/dist/esm/smart-step.entry.js +45 -0
- package/dist/esm/timeline-item.entry.js +27 -0
- package/dist/esm/ui-accordion_10.entry.js +5722 -0
- package/dist/esm/ui-advanced-data-table.entry.js +2682 -0
- package/dist/esm/ui-anchor.entry.js +556 -0
- package/dist/esm/ui-animate-on-scroll.entry.js +283 -0
- package/dist/esm/ui-aside-panel.entry.js +636 -0
- package/dist/esm/ui-avatar-group_3.entry.js +630 -0
- package/dist/esm/ui-breadcrumb-item.entry.js +54 -0
- package/dist/esm/ui-breadcrumb.entry.js +199 -0
- package/dist/esm/ui-callout-banner.entry.js +289 -0
- package/dist/esm/ui-card.entry.js +409 -0
- package/dist/esm/ui-carousel.entry.js +545 -0
- package/dist/esm/ui-checkbox-group.entry.js +328 -0
- package/dist/esm/ui-checkbox.entry.js +258 -0
- package/dist/esm/ui-code-editor.entry.js +959 -0
- package/dist/esm/ui-code-preview.entry.js +313 -0
- package/dist/esm/ui-color-controller.entry.js +148 -0
- package/dist/esm/ui-color-picker.entry.js +656 -0
- package/dist/esm/ui-command-palette.entry.js +176 -0
- package/dist/esm/ui-dialog-box.entry.js +1806 -0
- package/dist/esm/ui-dialog-content.entry.js +29 -0
- package/dist/esm/ui-dialog-footer_2.entry.js +190 -0
- package/dist/esm/ui-divider.entry.js +479 -0
- package/dist/esm/ui-dock-host.entry.js +126 -0
- package/dist/esm/ui-dock.entry.js +219 -0
- package/dist/esm/ui-drag-drop.entry.js +170 -0
- package/dist/esm/ui-dropdown_2.entry.js +1549 -0
- package/dist/esm/ui-empty-state.entry.js +396 -0
- package/dist/esm/ui-fab-item.entry.js +37 -0
- package/dist/esm/ui-fab.entry.js +275 -0
- package/dist/esm/ui-file-upload.entry.js +416 -0
- package/dist/esm/ui-horizontal-nav.entry.js +133 -0
- package/dist/esm/ui-image-button.entry.js +65 -0
- package/dist/esm/ui-input-pair.entry.js +42 -0
- package/dist/esm/ui-knob.entry.js +445 -0
- package/dist/esm/ui-library.entry.js +132 -0
- package/dist/esm/ui-list-group_2.entry.js +583 -0
- package/dist/esm/ui-list.entry.js +730 -0
- package/dist/esm/ui-masonry.entry.js +476 -0
- package/dist/esm/ui-meter-group.entry.js +171 -0
- package/dist/esm/ui-navigation-item.entry.js +102 -0
- package/dist/esm/ui-number-input.entry.js +189 -0
- package/dist/esm/ui-otp-input.entry.js +244 -0
- package/dist/esm/ui-pagination_3.entry.js +1617 -0
- package/dist/esm/ui-panel.entry.js +612 -0
- package/dist/esm/ui-pattern-input.entry.js +276 -0
- package/dist/esm/ui-popover.entry.js +515 -0
- package/dist/esm/ui-progress.entry.js +514 -0
- package/dist/esm/ui-radio-group.entry.js +203 -0
- package/dist/esm/ui-radio.entry.js +204 -0
- package/dist/esm/ui-range-slider.entry.js +635 -0
- package/dist/esm/ui-resizable-panel.entry.js +482 -0
- package/dist/esm/ui-scroll-top.entry.js +457 -0
- package/dist/esm/ui-smart-context-menu.entry.js +374 -0
- package/dist/esm/ui-smart-location-dropdown.entry.js +563 -0
- package/dist/esm/ui-smart-stepper.entry.js +135 -0
- package/dist/esm/ui-snackbar.entry.js +861 -0
- package/dist/esm/ui-speed-dial.entry.js +518 -0
- package/dist/esm/ui-speedometer.entry.js +426 -0
- package/dist/esm/ui-splitter.entry.js +280 -0
- package/dist/esm/ui-step.entry.js +28 -0
- package/dist/esm/ui-stepper.entry.js +638 -0
- package/dist/esm/ui-switch.entry.js +403 -0
- package/dist/esm/ui-tabs.entry.js +701 -0
- package/dist/esm/ui-tag.entry.js +297 -0
- package/dist/esm/ui-timeline.entry.js +265 -0
- package/dist/esm/ui-timer.entry.js +500 -0
- package/dist/esm/ui-toolbar.entry.js +617 -0
- package/dist/esm/ui-tooltip.entry.js +695 -0
- package/dist/esm/ui-top-bar.entry.js +119 -0
- package/dist/esm/ui-transfer-list.entry.js +590 -0
- package/dist/esm/ui-tree.entry.js +872 -0
- package/dist/esm/ui-workspace-manager.entry.js +1199 -0
- package/dist/esm/utils-Ck6jDuhz.js +23 -0
- package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -0
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -0
- package/dist/exploration-project-tailwind/index.esm.js +1 -0
- package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-049744f9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-06f0c679.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-0b004861.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-148e81df.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-200241f8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-287dbf09.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2d273118.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2f1aebb3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2f961934.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-35296877.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-36861546.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3d3d48fd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-41cd6bf0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-45482d86.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-46596a28.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-46efdea3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4d73c143.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4de419d5.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4f6bba75.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5508874f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5e3e80ae.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-61717490.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-62352ef2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-64e3a484.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-70d82d79.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7376ac95.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-73d29a4a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7515b1e3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77124686.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77a21491.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77cc333a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7f91d949.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-807c6555.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-81961fb1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-85bf89fd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-85e36111.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-875be805.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-898dd0fa.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-8d951aef.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9d0c8760.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9fa70359.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-BMFah5q3.js +1 -0
- package/dist/exploration-project-tailwind/p-BSQ8klD4.js +1 -0
- package/dist/exploration-project-tailwind/p-C7gf39HE.js +1 -0
- package/dist/exploration-project-tailwind/p-Ck6jDuhz.js +1 -0
- package/dist/exploration-project-tailwind/p-D2WzX6vR.js +2 -0
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +2 -0
- package/dist/exploration-project-tailwind/p-a1ad32a2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a3f465d9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a42fdc33.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-aa85ff78.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ab752761.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c174a372.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c4ba7e52.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c5ddc817.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c6fd72e1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c7e87fbb.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c87aeab6.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c90722ec.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ccb5c737.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d16c9635.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d2308a00.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d30e24bd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d419eaf0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-debede45.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e5322e59.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e8ba0c95.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e90d5307.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f0830120.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f5719913.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ffb1754a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-vwwmWKs9.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +352 -0
- package/dist/types/components/accordion/types.d.ts +69 -0
- package/dist/types/components/advanced-data-table/advanced-data-table.d.ts +697 -0
- package/dist/types/components/advanced-data-table/types.d.ts +120 -0
- package/dist/types/components/anchor/anchor.d.ts +133 -0
- package/dist/types/components/anchor/types.d.ts +17 -0
- package/dist/types/components/animate-on-scroll/animate-on-scroll.d.ts +101 -0
- package/dist/types/components/aside-panel/aside-panel.d.ts +249 -0
- package/dist/types/components/avatar/avatar.d.ts +201 -0
- package/dist/types/components/avatar/types.d.ts +132 -0
- package/dist/types/components/avatar-group/avatar-group.d.ts +52 -0
- package/dist/types/components/avatar-group/types.d.ts +31 -0
- package/dist/types/components/badge/badge.d.ts +109 -0
- package/dist/types/components/badge/types.d.ts +6 -0
- package/dist/types/components/breadcrumb/breadcrumb-item.d.ts +36 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +73 -0
- package/dist/types/components/breadcrumb/types.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +133 -0
- package/dist/types/components/button/types.d.ts +1 -0
- package/dist/types/components/button-toggle/button-toggle.d.ts +64 -0
- package/dist/types/components/button-toggle-group/button-toggle-group.d.ts +141 -0
- package/dist/types/components/button-toggle-group/types.d.ts +7 -0
- package/dist/types/components/callout-banner/callout-banner.d.ts +115 -0
- package/dist/types/components/callout-banner/types.d.ts +7 -0
- package/dist/types/components/card/card.d.ts +160 -0
- package/dist/types/components/card/types.d.ts +13 -0
- package/dist/types/components/carousel/carousel.d.ts +150 -0
- package/dist/types/components/carousel/types.d.ts +8 -0
- package/dist/types/components/checkbox/checkbox.d.ts +92 -0
- package/dist/types/components/checkbox/types.d.ts +5 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +87 -0
- package/dist/types/components/checkbox-group/types.d.ts +8 -0
- package/dist/types/components/code-editor/code-editor.d.ts +147 -0
- package/dist/types/components/code-editor/types.d.ts +20 -0
- package/dist/types/components/code-preview/types.d.ts +5 -0
- package/dist/types/components/code-preview/ui-code-preview.d.ts +69 -0
- package/dist/types/components/color-controller/color-controller.d.ts +24 -0
- package/dist/types/components/color-picker/color-picker.d.ts +116 -0
- package/dist/types/components/color-picker/types.d.ts +24 -0
- package/dist/types/components/command-palette/command-palette.d.ts +41 -0
- package/dist/types/components/command-palette/types.d.ts +7 -0
- package/dist/types/components/context-menu/context-menu.d.ts +135 -0
- package/dist/types/components/context-menu/types.d.ts +20 -0
- package/dist/types/components/dialog-box/dialog-box.d.ts +648 -0
- package/dist/types/components/dialog-box/types.d.ts +1 -0
- package/dist/types/components/dialog-content/dialog-content.d.ts +9 -0
- package/dist/types/components/dialog-footer/dialog-footer.d.ts +9 -0
- package/dist/types/components/dialog-footer/types.d.ts +1 -0
- package/dist/types/components/dialog-header/dialog-header.d.ts +102 -0
- package/dist/types/components/dialog-header/types.d.ts +2 -0
- package/dist/types/components/divider/divider.d.ts +245 -0
- package/dist/types/components/divider/types.d.ts +14 -0
- package/dist/types/components/dock/dock.d.ts +37 -0
- package/dist/types/components/dock/types.d.ts +11 -0
- package/dist/types/components/dock-host/index.d.ts +1 -0
- package/dist/types/components/dock-host/types.d.ts +1 -0
- package/dist/types/components/dock-host/ui-dock-host.d.ts +23 -0
- package/dist/types/components/drag-drop/drag-drop.d.ts +52 -0
- package/dist/types/components/drag-drop/types.d.ts +9 -0
- package/dist/types/components/dropdown/dropdown.d.ts +264 -0
- package/dist/types/components/dropdown/types.d.ts +19 -0
- package/dist/types/components/empty-state/empty-state.d.ts +74 -0
- package/dist/types/components/empty-state/types.d.ts +13 -0
- package/dist/types/components/fab/fab.d.ts +73 -0
- package/dist/types/components/fab-item/fab-item.d.ts +14 -0
- package/dist/types/components/fab-item/types.d.ts +3 -0
- package/dist/types/components/file-upload/file-upload.d.ts +91 -0
- package/dist/types/components/file-upload/types.d.ts +15 -0
- package/dist/types/components/horizontal-nav/horizontal-nav.d.ts +68 -0
- package/dist/types/components/icon/icon.d.ts +66 -0
- package/dist/types/components/image-button/image-button.d.ts +31 -0
- package/dist/types/components/image-button/types.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +217 -0
- package/dist/types/components/input/types.d.ts +6 -0
- package/dist/types/components/input-pair/input-pair.d.ts +28 -0
- package/dist/types/components/knob/knob.d.ts +147 -0
- package/dist/types/components/knob/types.d.ts +4 -0
- package/dist/types/components/layout-manager/layout-manager.d.ts +32 -0
- package/dist/types/components/layout-manager/lm-container/lm-container.d.ts +7 -0
- package/dist/types/components/layout-manager/lm-floating-window/lm-floating-window.d.ts +6 -0
- package/dist/types/components/layout-manager/lm-panel/lm-panel.d.ts +7 -0
- package/dist/types/components/layout-manager/lm-splitter/lm-splitter.d.ts +12 -0
- package/dist/types/components/layout-manager/lm-tabs/lm-tabs.d.ts +12 -0
- package/dist/types/components/layout-manager/types.d.ts +1 -0
- package/dist/types/components/library/category-section.d.ts +15 -0
- package/dist/types/components/library/data.d.ts +11 -0
- package/dist/types/components/library/library-card.d.ts +19 -0
- package/dist/types/components/library/library.d.ts +9 -0
- package/dist/types/components/list/list.d.ts +183 -0
- package/dist/types/components/list-group/list-group.d.ts +28 -0
- package/dist/types/components/list-item/list-item.d.ts +200 -0
- package/dist/types/components/masonry/masonry.d.ts +105 -0
- package/dist/types/components/masonry/types.d.ts +5 -0
- package/dist/types/components/meter-group/meter-group.d.ts +66 -0
- package/dist/types/components/meter-group/types.d.ts +12 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-step/index.d.ts +12 -0
- package/dist/types/components/my-step/my-step.d.ts +13 -0
- package/dist/types/components/nav-bar/nav-bar.d.ts +119 -0
- package/dist/types/components/number-input/number-input.d.ts +72 -0
- package/dist/types/components/otp-input/otp-input.d.ts +64 -0
- package/dist/types/components/otp-input/types.d.ts +3 -0
- package/dist/types/components/pagination/pagination.d.ts +295 -0
- package/dist/types/components/pagination/types.d.ts +1 -0
- package/dist/types/components/panel/panel.d.ts +275 -0
- package/dist/types/components/panel/types.d.ts +7 -0
- package/dist/types/components/pattern-input/pattern-input.d.ts +88 -0
- package/dist/types/components/popover/popover.d.ts +161 -0
- package/dist/types/components/popover/types.d.ts +3 -0
- package/dist/types/components/progress/progress.d.ts +224 -0
- package/dist/types/components/progress/types.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +87 -0
- package/dist/types/components/radio/types.d.ts +7 -0
- package/dist/types/components/radio-group/radio-group.d.ts +74 -0
- package/dist/types/components/radio-group/types.d.ts +2 -0
- package/dist/types/components/range-slider/range-slider.d.ts +201 -0
- package/dist/types/components/range-slider/types.d.ts +4 -0
- package/dist/types/components/rating/rating.d.ts +127 -0
- package/dist/types/components/rating/types.d.ts +1 -0
- package/dist/types/components/resizable-panel/resizable-panel.d.ts +59 -0
- package/dist/types/components/resizable-panel/types.d.ts +11 -0
- package/dist/types/components/scroll-top/scroll-top.d.ts +186 -0
- package/dist/types/components/scroll-top/types.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton-loader.d.ts +149 -0
- package/dist/types/components/skeleton/types.d.ts +1 -0
- package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +119 -0
- package/dist/types/components/smart-location-dropdown/types.d.ts +37 -0
- package/dist/types/components/smart-menu/menu-item.interface.d.ts +10 -0
- package/dist/types/components/smart-menu/smart-menu.d.ts +64 -0
- package/dist/types/components/smart-stepper/smart-step.d.ts +29 -0
- package/dist/types/components/smart-stepper/smart-stepper.d.ts +53 -0
- package/dist/types/components/snackbar/snackbar.d.ts +223 -0
- package/dist/types/components/snackbar/types.d.ts +104 -0
- package/dist/types/components/speed-dial/speed-dial.d.ts +171 -0
- package/dist/types/components/speed-dial/types.d.ts +11 -0
- package/dist/types/components/speedometer/speedometer.d.ts +125 -0
- package/dist/types/components/speedometer/types.d.ts +8 -0
- package/dist/types/components/splitter/splitter.d.ts +63 -0
- package/dist/types/components/splitter/types.d.ts +9 -0
- package/dist/types/components/stack/stack.d.ts +34 -0
- package/dist/types/components/stack/types.d.ts +3 -0
- package/dist/types/components/step/step.d.ts +16 -0
- package/dist/types/components/step/types.d.ts +1 -0
- package/dist/types/components/stepper/stepper.d.ts +218 -0
- package/dist/types/components/stepper/types.d.ts +39 -0
- package/dist/types/components/switch/switch.d.ts +162 -0
- package/dist/types/components/tabs/tabs.d.ts +182 -0
- package/dist/types/components/tabs/types.d.ts +17 -0
- package/dist/types/components/tag/tag.d.ts +172 -0
- package/dist/types/components/tag/types.d.ts +4 -0
- package/dist/types/components/tag-group/tag-group.d.ts +107 -0
- package/dist/types/components/tag-group/types.d.ts +2 -0
- package/dist/types/components/timeline/timeline.d.ts +73 -0
- package/dist/types/components/timeline/types.d.ts +28 -0
- package/dist/types/components/timeline/ui-timeline.stories.d.ts +9 -0
- package/dist/types/components/timeline-item/timeline-item.d.ts +15 -0
- package/dist/types/components/timer/timer.d.ts +123 -0
- package/dist/types/components/timer/types.d.ts +18 -0
- package/dist/types/components/timer/ui-timer.stories.d.ts +9 -0
- package/dist/types/components/toggle-group/toggle-group.d.ts +136 -0
- package/dist/types/components/toggle-group/types.d.ts +5 -0
- package/dist/types/components/toolbar/toolbar-types.d.ts +189 -0
- package/dist/types/components/toolbar/toolbar.d.ts +150 -0
- package/dist/types/components/tooltip/tooltip.d.ts +166 -0
- package/dist/types/components/tooltip/types.d.ts +3 -0
- package/dist/types/components/top-bar/top-bar.d.ts +76 -0
- package/dist/types/components/transfer-list/transfer-list.d.ts +137 -0
- package/dist/types/components/transfer-list/types.d.ts +13 -0
- package/dist/types/components/tree/tree.d.ts +180 -0
- package/dist/types/components/tree/types.d.ts +76 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +108 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-types.d.ts +17 -0
- package/dist/types/components/ui-navigation-bar/navigation-item.d.ts +26 -0
- package/dist/types/components/ui-navigation-bar/navigation-types.d.ts +19 -0
- package/dist/types/components/workspace-manager/types.d.ts +48 -0
- package/dist/types/components/workspace-manager/workspace-manager.d.ts +211 -0
- package/dist/types/components.d.ts +29634 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/service/drag-manager.d.ts +8 -0
- package/dist/types/service/event-bus.d.ts +9 -0
- package/dist/types/service/serialization.d.ts +5 -0
- package/dist/types/service/state-engine.d.ts +25 -0
- package/dist/types/service/theme-switcher.d.ts +46 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types/animation.type.d.ts +96 -0
- package/dist/types/types/common.d.ts +52 -0
- package/dist/types/types/common.type.d.ts +608 -0
- package/dist/types/types/index.d.ts +37 -0
- package/dist/types/types/text.type.d.ts +32 -0
- package/dist/types/utils/aria-live.d.ts +20 -0
- package/dist/types/utils/component-size.d.ts +2 -0
- package/dist/types/utils/dom.d.ts +58 -0
- package/dist/types/utils/focus-trap.d.ts +35 -0
- package/dist/types/utils/security.d.ts +5 -0
- package/dist/types/utils/test/setup-component-test-env.d.ts +14 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/dist/types/utils/validation.d.ts +43 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +77 -0
|
@@ -0,0 +1,2509 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class Tree {
|
|
3
|
+
el;
|
|
4
|
+
// ─── Props ───────────────────────────────────────────────────────────────────
|
|
5
|
+
nodes = [];
|
|
6
|
+
orientation = 'vertical';
|
|
7
|
+
showLines = true;
|
|
8
|
+
showIcons = true;
|
|
9
|
+
expandable = true;
|
|
10
|
+
selectable = false;
|
|
11
|
+
multiSelect = false;
|
|
12
|
+
checkboxes = false;
|
|
13
|
+
checkboxSync = true;
|
|
14
|
+
enableDrag = false;
|
|
15
|
+
searchable = false;
|
|
16
|
+
animated = true;
|
|
17
|
+
indent = 24;
|
|
18
|
+
nodeHeight = 40;
|
|
19
|
+
expandAll = false;
|
|
20
|
+
collapseAll = false;
|
|
21
|
+
layout = 'tree';
|
|
22
|
+
variant = 'default';
|
|
23
|
+
size = 'md';
|
|
24
|
+
theme = 'light';
|
|
25
|
+
showGlow = false;
|
|
26
|
+
connectorWidth = 1;
|
|
27
|
+
connectorColor = '';
|
|
28
|
+
connectorOpacity = 1;
|
|
29
|
+
connectorShape = 'rounded';
|
|
30
|
+
iconLibrary = 'lucide';
|
|
31
|
+
inlineEdit = false;
|
|
32
|
+
contextMenuEnabled = false;
|
|
33
|
+
undoRedoEnabled = false;
|
|
34
|
+
lazyLoad = false;
|
|
35
|
+
virtualScroll = false;
|
|
36
|
+
virtualScrollHeight = 400;
|
|
37
|
+
showNodeActions = true;
|
|
38
|
+
showAvatars = true;
|
|
39
|
+
expandIconType = 'chevron';
|
|
40
|
+
expandedIcon = '';
|
|
41
|
+
collapsedIcon = '';
|
|
42
|
+
expandIconSize = '14px';
|
|
43
|
+
expandIconColor = '';
|
|
44
|
+
// ─── State ───────────────────────────────────────────────────────────────────
|
|
45
|
+
internalNodes = [];
|
|
46
|
+
selectedNodes = [];
|
|
47
|
+
searchTerm = '';
|
|
48
|
+
draggedNode = null;
|
|
49
|
+
focusedNodeId = null;
|
|
50
|
+
editingNodeId = null;
|
|
51
|
+
editingValue = '';
|
|
52
|
+
contextMenuVisible = false;
|
|
53
|
+
contextMenuNode = null;
|
|
54
|
+
contextMenuX = 0;
|
|
55
|
+
contextMenuY = 0;
|
|
56
|
+
undoStack = [];
|
|
57
|
+
redoStack = [];
|
|
58
|
+
dragOverNodeId = null;
|
|
59
|
+
dragPosition = 'inside';
|
|
60
|
+
_selectionPathIds = new Set();
|
|
61
|
+
// ─── Events ──────────────────────────────────────────────────────────────────
|
|
62
|
+
nodeClick;
|
|
63
|
+
nodeExpand;
|
|
64
|
+
nodeSelect;
|
|
65
|
+
nodeCheck;
|
|
66
|
+
nodeDragStart;
|
|
67
|
+
nodeDrop;
|
|
68
|
+
treeChange;
|
|
69
|
+
nodeAction;
|
|
70
|
+
nodeEdit;
|
|
71
|
+
nodeContextMenu;
|
|
72
|
+
nodeLazyLoad;
|
|
73
|
+
nodeAdd;
|
|
74
|
+
nodeRemove;
|
|
75
|
+
nodeMove;
|
|
76
|
+
// ─── Lifecycle ───────────────────────────────────────────────────────────────
|
|
77
|
+
componentWillLoad() {
|
|
78
|
+
this.parseNodes();
|
|
79
|
+
document.addEventListener('click', this.handleDocumentClick);
|
|
80
|
+
}
|
|
81
|
+
disconnectedCallback() {
|
|
82
|
+
document.removeEventListener('click', this.handleDocumentClick);
|
|
83
|
+
}
|
|
84
|
+
// ─── Watchers ────────────────────────────────────────────────────────────────
|
|
85
|
+
parseNodes() {
|
|
86
|
+
let parsed = typeof this.nodes === 'string' ? JSON.parse(this.nodes) : this.nodes;
|
|
87
|
+
if (this.expandAll)
|
|
88
|
+
parsed = this._expandAllRecursive(parsed);
|
|
89
|
+
else if (this.collapseAll)
|
|
90
|
+
parsed = this._collapseAllRecursive(parsed);
|
|
91
|
+
this.internalNodes = parsed;
|
|
92
|
+
}
|
|
93
|
+
// ─── PUBLIC METHODS ──────────────────────────────────────────────────────────
|
|
94
|
+
async expandAllNodes() {
|
|
95
|
+
this._saveUndo();
|
|
96
|
+
this.internalNodes = this._expandAllRecursive(this.internalNodes);
|
|
97
|
+
}
|
|
98
|
+
async collapseAllNodes() {
|
|
99
|
+
this._saveUndo();
|
|
100
|
+
this.internalNodes = this._collapseAllRecursive(this.internalNodes);
|
|
101
|
+
}
|
|
102
|
+
async selectNode(id) {
|
|
103
|
+
this.internalNodes = this._selectById(id, this.internalNodes);
|
|
104
|
+
}
|
|
105
|
+
async getNodePath(id) {
|
|
106
|
+
return this._findPath(id, this.internalNodes) ?? [];
|
|
107
|
+
}
|
|
108
|
+
async getBreadcrumb(id) {
|
|
109
|
+
const path = await this.getNodePath(id);
|
|
110
|
+
return path.map(pid => {
|
|
111
|
+
const n = this._findNode(pid, this.internalNodes);
|
|
112
|
+
return { id: pid, label: n?.label ?? String(pid) };
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
async updateNode(id, data) {
|
|
116
|
+
this._saveUndo();
|
|
117
|
+
this.internalNodes = this._updateData(id, data, this.internalNodes);
|
|
118
|
+
}
|
|
119
|
+
async scrollToNode(id) {
|
|
120
|
+
const path = await this.getNodePath(id);
|
|
121
|
+
if (path.length > 1)
|
|
122
|
+
this.internalNodes = this._expandPath(path.slice(0, -1), this.internalNodes);
|
|
123
|
+
setTimeout(() => {
|
|
124
|
+
const nodeEl = this.el.querySelector(`[data-node-id="${id}"]`);
|
|
125
|
+
nodeEl?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
126
|
+
}, 60);
|
|
127
|
+
}
|
|
128
|
+
async expandByPath(path) {
|
|
129
|
+
this.internalNodes = this._expandPath(path, this.internalNodes);
|
|
130
|
+
}
|
|
131
|
+
async selectByPath(path) {
|
|
132
|
+
if (!path.length)
|
|
133
|
+
return;
|
|
134
|
+
this.internalNodes = this._expandPath(path.slice(0, -1), this.internalNodes);
|
|
135
|
+
this.internalNodes = this._selectById(path[path.length - 1], this.internalNodes);
|
|
136
|
+
}
|
|
137
|
+
async getSelectedNodes() {
|
|
138
|
+
return this._dfs(this.internalNodes).filter(n => this.selectedNodes.includes(n.id));
|
|
139
|
+
}
|
|
140
|
+
async dfsTraversal(startId, order = 'pre') {
|
|
141
|
+
const roots = startId ? [this._findNode(startId, this.internalNodes)].filter((n) => n !== null) : this.internalNodes;
|
|
142
|
+
return order === 'post' ? this._dfsPost(roots) : this._dfs(roots);
|
|
143
|
+
}
|
|
144
|
+
async bfsTraversal(startId) {
|
|
145
|
+
const roots = startId ? [this._findNode(startId, this.internalNodes)].filter((n) => n !== null) : this.internalNodes;
|
|
146
|
+
return this._bfs(roots);
|
|
147
|
+
}
|
|
148
|
+
async flattenTree(nodes = this.internalNodes) {
|
|
149
|
+
const result = [];
|
|
150
|
+
const walk = (nodes, parentId, depth, path) => {
|
|
151
|
+
nodes.forEach((node, index) => {
|
|
152
|
+
const { children, ...rest } = node;
|
|
153
|
+
const np = [...path, node.id];
|
|
154
|
+
result.push({ ...rest, parentId, depth, index, path: np, hasChildren: !!(children?.length) });
|
|
155
|
+
if (node.expanded && children)
|
|
156
|
+
walk(children, node.id, depth + 1, np);
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
walk(nodes, null, 0, []);
|
|
160
|
+
return result;
|
|
161
|
+
}
|
|
162
|
+
async addNode(parentId, node) {
|
|
163
|
+
this._saveUndo();
|
|
164
|
+
this.internalNodes = parentId === null
|
|
165
|
+
? [...this.internalNodes, node]
|
|
166
|
+
: this._addToParent(parentId, node, this.internalNodes);
|
|
167
|
+
this.nodeAdd.emit({ parentId, node });
|
|
168
|
+
}
|
|
169
|
+
async removeNode(id) {
|
|
170
|
+
this._saveUndo();
|
|
171
|
+
const node = this._findNode(id, this.internalNodes);
|
|
172
|
+
this.internalNodes = this._removeNode(id, this.internalNodes);
|
|
173
|
+
if (node)
|
|
174
|
+
this.nodeRemove.emit({ node });
|
|
175
|
+
}
|
|
176
|
+
async moveNode(nodeId, targetId, position) {
|
|
177
|
+
this._saveUndo();
|
|
178
|
+
this.internalNodes = this._moveNode(nodeId, targetId, position, this.internalNodes);
|
|
179
|
+
this.nodeMove.emit({ nodeId, targetId, position });
|
|
180
|
+
}
|
|
181
|
+
async undo() {
|
|
182
|
+
if (!this.undoStack.length)
|
|
183
|
+
return;
|
|
184
|
+
const prev = this.undoStack[this.undoStack.length - 1];
|
|
185
|
+
this.redoStack = [...this.redoStack, JSON.stringify(this.internalNodes)];
|
|
186
|
+
this.undoStack = this.undoStack.slice(0, -1);
|
|
187
|
+
this.internalNodes = JSON.parse(prev);
|
|
188
|
+
}
|
|
189
|
+
async redo() {
|
|
190
|
+
if (!this.redoStack.length)
|
|
191
|
+
return;
|
|
192
|
+
const next = this.redoStack[this.redoStack.length - 1];
|
|
193
|
+
this.undoStack = [...this.undoStack, JSON.stringify(this.internalNodes)];
|
|
194
|
+
this.redoStack = this.redoStack.slice(0, -1);
|
|
195
|
+
this.internalNodes = JSON.parse(next);
|
|
196
|
+
}
|
|
197
|
+
async diffTrees(oldNodes, newNodes) {
|
|
198
|
+
const oldFlat = new Map(this._dfs(oldNodes).map(n => [n.id, n]));
|
|
199
|
+
const newFlat = new Map(this._dfs(newNodes).map(n => [n.id, n]));
|
|
200
|
+
const added = [];
|
|
201
|
+
const removed = [];
|
|
202
|
+
const modified = [];
|
|
203
|
+
newFlat.forEach((node, id) => {
|
|
204
|
+
if (!oldFlat.has(id))
|
|
205
|
+
added.push(node);
|
|
206
|
+
else if (JSON.stringify(oldFlat.get(id)) !== JSON.stringify(node))
|
|
207
|
+
modified.push({ id, oldNode: oldFlat.get(id), newNode: node });
|
|
208
|
+
});
|
|
209
|
+
oldFlat.forEach((node, id) => {
|
|
210
|
+
if (!newFlat.has(id))
|
|
211
|
+
removed.push(node);
|
|
212
|
+
});
|
|
213
|
+
return { added, removed, modified };
|
|
214
|
+
}
|
|
215
|
+
async getState() {
|
|
216
|
+
const expanded = [];
|
|
217
|
+
this._dfs(this.internalNodes).forEach(n => {
|
|
218
|
+
if (n.expanded)
|
|
219
|
+
expanded.push(n.id);
|
|
220
|
+
});
|
|
221
|
+
return { nodes: this.internalNodes, selectedNodes: this.selectedNodes, expandedNodes: expanded };
|
|
222
|
+
}
|
|
223
|
+
async restoreState(state) {
|
|
224
|
+
this._saveUndo();
|
|
225
|
+
this.internalNodes = state.nodes;
|
|
226
|
+
this.selectedNodes = state.selectedNodes;
|
|
227
|
+
}
|
|
228
|
+
// ─── PRIVATE HELPERS ────────────────────────────────────────────────────────
|
|
229
|
+
_saveUndo() {
|
|
230
|
+
if (!this.undoRedoEnabled)
|
|
231
|
+
return;
|
|
232
|
+
this.undoStack = [...this.undoStack.slice(-49), JSON.stringify(this.internalNodes)];
|
|
233
|
+
this.redoStack = [];
|
|
234
|
+
}
|
|
235
|
+
_expandAllRecursive(nodes) {
|
|
236
|
+
return nodes.map(n => ({ ...n, expanded: true, children: n.children ? this._expandAllRecursive(n.children) : undefined }));
|
|
237
|
+
}
|
|
238
|
+
_collapseAllRecursive(nodes) {
|
|
239
|
+
return nodes.map(n => ({ ...n, expanded: false, children: n.children ? this._collapseAllRecursive(n.children) : undefined }));
|
|
240
|
+
}
|
|
241
|
+
_findNode(id, nodes) {
|
|
242
|
+
for (const n of nodes) {
|
|
243
|
+
if (n.id === id)
|
|
244
|
+
return n;
|
|
245
|
+
if (n.children) {
|
|
246
|
+
const f = this._findNode(id, n.children);
|
|
247
|
+
if (f)
|
|
248
|
+
return f;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
_findPath(id, nodes, path = []) {
|
|
254
|
+
for (const n of nodes) {
|
|
255
|
+
const cur = [...path, n.id];
|
|
256
|
+
if (n.id === id)
|
|
257
|
+
return cur;
|
|
258
|
+
if (n.children) {
|
|
259
|
+
const f = this._findPath(id, n.children, cur);
|
|
260
|
+
if (f)
|
|
261
|
+
return f;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
_expandPath(path, nodes) {
|
|
267
|
+
return nodes.map(n => {
|
|
268
|
+
if (path.includes(n.id))
|
|
269
|
+
return { ...n, expanded: true, children: n.children ? this._expandPath(path, n.children) : undefined };
|
|
270
|
+
if (n.children)
|
|
271
|
+
return { ...n, children: this._expandPath(path, n.children) };
|
|
272
|
+
return n;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
_selectById(id, nodes) {
|
|
276
|
+
return nodes.map(n => {
|
|
277
|
+
if (n.id === id) {
|
|
278
|
+
const sel = !n.selected;
|
|
279
|
+
if (this.multiSelect)
|
|
280
|
+
this.selectedNodes = sel ? [...this.selectedNodes, id] : this.selectedNodes.filter(s => s !== id);
|
|
281
|
+
else
|
|
282
|
+
this.selectedNodes = sel ? [id] : [];
|
|
283
|
+
this.nodeSelect.emit({ node: n, selected: sel });
|
|
284
|
+
this.treeChange.emit({ nodes: this.internalNodes, selectedNodes: this.selectedNodes });
|
|
285
|
+
return { ...n, selected: sel };
|
|
286
|
+
}
|
|
287
|
+
if (!this.multiSelect && n.selected && n.id !== id)
|
|
288
|
+
return { ...n, selected: false, children: n.children ? this._selectById(id, n.children) : undefined };
|
|
289
|
+
if (n.children)
|
|
290
|
+
return { ...n, children: this._selectById(id, n.children) };
|
|
291
|
+
return n;
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
_updateData(id, data, nodes) {
|
|
295
|
+
return nodes.map(n => {
|
|
296
|
+
if (n.id === id)
|
|
297
|
+
return { ...n, ...data };
|
|
298
|
+
if (n.children)
|
|
299
|
+
return { ...n, children: this._updateData(id, data, n.children) };
|
|
300
|
+
return n;
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
_addToParent(parentId, newNode, nodes) {
|
|
304
|
+
return nodes.map(n => {
|
|
305
|
+
if (n.id === parentId)
|
|
306
|
+
return { ...n, expanded: true, isLeaf: false, children: [...(n.children || []), newNode] };
|
|
307
|
+
if (n.children)
|
|
308
|
+
return { ...n, children: this._addToParent(parentId, newNode, n.children) };
|
|
309
|
+
return n;
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
_removeNode(id, nodes) {
|
|
313
|
+
return nodes.filter(n => n.id !== id).map(n => ({ ...n, children: n.children ? this._removeNode(id, n.children) : undefined }));
|
|
314
|
+
}
|
|
315
|
+
_moveNode(nodeId, targetId, position, nodes) {
|
|
316
|
+
const nodeToMove = this._findNode(nodeId, nodes);
|
|
317
|
+
if (!nodeToMove || nodeId === targetId)
|
|
318
|
+
return nodes;
|
|
319
|
+
const withoutNode = this._removeNode(nodeId, nodes);
|
|
320
|
+
if (position === 'inside')
|
|
321
|
+
return this._addToParent(targetId, nodeToMove, withoutNode);
|
|
322
|
+
return this._insertRelative(nodeToMove, targetId, position, withoutNode);
|
|
323
|
+
}
|
|
324
|
+
_insertRelative(node, targetId, pos, nodes) {
|
|
325
|
+
const result = [];
|
|
326
|
+
for (const n of nodes) {
|
|
327
|
+
if (n.id === targetId) {
|
|
328
|
+
if (pos === 'before') {
|
|
329
|
+
result.push(node);
|
|
330
|
+
result.push(n);
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
result.push(n);
|
|
334
|
+
result.push(node);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
result.push(n.children ? { ...n, children: this._insertRelative(node, targetId, pos, n.children) } : n);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return result;
|
|
342
|
+
}
|
|
343
|
+
_dfs(nodes, result = []) {
|
|
344
|
+
for (const n of nodes) {
|
|
345
|
+
result.push(n);
|
|
346
|
+
if (n.children)
|
|
347
|
+
this._dfs(n.children, result);
|
|
348
|
+
}
|
|
349
|
+
return result;
|
|
350
|
+
}
|
|
351
|
+
_dfsPost(nodes, result = []) {
|
|
352
|
+
for (const n of nodes) {
|
|
353
|
+
if (n.children)
|
|
354
|
+
this._dfsPost(n.children, result);
|
|
355
|
+
result.push(n);
|
|
356
|
+
}
|
|
357
|
+
return result;
|
|
358
|
+
}
|
|
359
|
+
_bfs(roots) {
|
|
360
|
+
const result = [];
|
|
361
|
+
const queue = [...roots];
|
|
362
|
+
while (queue.length) {
|
|
363
|
+
const n = queue.shift();
|
|
364
|
+
if (!n)
|
|
365
|
+
break;
|
|
366
|
+
result.push(n);
|
|
367
|
+
if (n.children)
|
|
368
|
+
queue.push(...n.children);
|
|
369
|
+
}
|
|
370
|
+
return result;
|
|
371
|
+
}
|
|
372
|
+
// Checkbox indeterminate sync
|
|
373
|
+
_syncChildren(node, checked) {
|
|
374
|
+
return { ...node, checked, indeterminate: false, children: node.children?.map(c => this._syncChildren(c, checked)) };
|
|
375
|
+
}
|
|
376
|
+
_syncParent(node) {
|
|
377
|
+
if (!node.children?.length)
|
|
378
|
+
return node;
|
|
379
|
+
const kids = node.children.map(c => this._syncParent(c));
|
|
380
|
+
const ck = kids.filter(c => c.checked && !c.indeterminate).length;
|
|
381
|
+
const ind = kids.filter(c => c.indeterminate).length;
|
|
382
|
+
const all = kids.length;
|
|
383
|
+
return { ...node, children: kids, checked: ck === all, indeterminate: ck > 0 && ck < all || ind > 0 };
|
|
384
|
+
}
|
|
385
|
+
_applyCheckbox(targetId, checked, nodes) {
|
|
386
|
+
return nodes.map(n => {
|
|
387
|
+
if (n.id === targetId)
|
|
388
|
+
return { ...this._syncChildren(n, checked), checked, indeterminate: false };
|
|
389
|
+
if (n.children) {
|
|
390
|
+
const updatedKids = this._applyCheckbox(targetId, checked, n.children);
|
|
391
|
+
const updNode = { ...n, children: updatedKids };
|
|
392
|
+
return this.checkboxSync ? this._syncParent(updNode) : updNode;
|
|
393
|
+
}
|
|
394
|
+
return n;
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
_getSelectionPathIds() {
|
|
398
|
+
const pathIds = new Set();
|
|
399
|
+
const walk = (nodes, path) => {
|
|
400
|
+
for (const n of nodes) {
|
|
401
|
+
const p = [...path, n.id];
|
|
402
|
+
if (this.selectedNodes.includes(n.id))
|
|
403
|
+
p.forEach(id => pathIds.add(id));
|
|
404
|
+
if (n.children)
|
|
405
|
+
walk(n.children, p);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
walk(this.internalNodes, []);
|
|
409
|
+
return pathIds;
|
|
410
|
+
}
|
|
411
|
+
_getVisibleNodes(nodes = this.internalNodes, result = []) {
|
|
412
|
+
for (const n of nodes) {
|
|
413
|
+
result.push(n);
|
|
414
|
+
if (n.expanded && n.children)
|
|
415
|
+
this._getVisibleNodes(n.children, result);
|
|
416
|
+
}
|
|
417
|
+
return result;
|
|
418
|
+
}
|
|
419
|
+
_findParent(id, nodes = this.internalNodes, parent = null) {
|
|
420
|
+
for (const n of nodes) {
|
|
421
|
+
if (n.id === id)
|
|
422
|
+
return parent;
|
|
423
|
+
if (n.children) {
|
|
424
|
+
const f = this._findParent(id, n.children, n);
|
|
425
|
+
if (f)
|
|
426
|
+
return f;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
_selectRange(startId, endId) {
|
|
432
|
+
const vis = this._getVisibleNodes();
|
|
433
|
+
const si = vis.findIndex(n => n.id === startId);
|
|
434
|
+
const ei = vis.findIndex(n => n.id === endId);
|
|
435
|
+
if (si === -1 || ei === -1)
|
|
436
|
+
return this.internalNodes;
|
|
437
|
+
const range = vis.slice(Math.min(si, ei), Math.max(si, ei) + 1).map(n => n.id);
|
|
438
|
+
this.selectedNodes = Array.from(new Set([...this.selectedNodes, ...range]));
|
|
439
|
+
return this._applySelection(this.internalNodes);
|
|
440
|
+
}
|
|
441
|
+
_applySelection(nodes) {
|
|
442
|
+
return nodes.map(n => ({ ...n, selected: this.selectedNodes.includes(n.id), children: n.children ? this._applySelection(n.children) : undefined }));
|
|
443
|
+
}
|
|
444
|
+
_toggleNode(nodeId, nodes = this.internalNodes) {
|
|
445
|
+
return nodes.map(n => {
|
|
446
|
+
if (n.id === nodeId) {
|
|
447
|
+
const newExp = !n.expanded;
|
|
448
|
+
this.nodeExpand.emit({ node: n, expanded: newExp });
|
|
449
|
+
if (newExp && this.lazyLoad && n.isLeaf === false && !n.children?.length) {
|
|
450
|
+
this.nodeLazyLoad.emit({ node: n });
|
|
451
|
+
return { ...n, expanded: newExp, loading: true };
|
|
452
|
+
}
|
|
453
|
+
return { ...n, expanded: newExp };
|
|
454
|
+
}
|
|
455
|
+
if (n.children)
|
|
456
|
+
return { ...n, children: this._toggleNode(nodeId, n.children) };
|
|
457
|
+
return n;
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
// ─── EVENT HANDLERS ─────────────────────────────────────────────────────────
|
|
461
|
+
handleNodeClick(node, path, event) {
|
|
462
|
+
if (node.disabled)
|
|
463
|
+
return;
|
|
464
|
+
const canExpand = !!(node.children?.length) || (this.lazyLoad && node.isLeaf === false);
|
|
465
|
+
if (this.expandable && canExpand)
|
|
466
|
+
this.internalNodes = this._toggleNode(node.id);
|
|
467
|
+
if (this.selectable) {
|
|
468
|
+
if (this.multiSelect && event) {
|
|
469
|
+
if (event.shiftKey && this.focusedNodeId)
|
|
470
|
+
this.internalNodes = this._selectRange(this.focusedNodeId, node.id);
|
|
471
|
+
else if (event.ctrlKey || event.metaKey)
|
|
472
|
+
this.internalNodes = this._selectById(node.id, this.internalNodes);
|
|
473
|
+
else {
|
|
474
|
+
this.selectedNodes = [node.id];
|
|
475
|
+
this.internalNodes = this._applySelection(this.internalNodes);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
this.internalNodes = this._selectById(node.id, this.internalNodes);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
this.focusedNodeId = node.id;
|
|
483
|
+
this.nodeClick.emit({ node, path });
|
|
484
|
+
}
|
|
485
|
+
handleCheckboxChange(node, event) {
|
|
486
|
+
const checked = event.detail.checked;
|
|
487
|
+
if (this.checkboxSync)
|
|
488
|
+
this.internalNodes = this._applyCheckbox(node.id, checked, this.internalNodes);
|
|
489
|
+
else
|
|
490
|
+
this.internalNodes = this._updateData(node.id, { checked }, this.internalNodes);
|
|
491
|
+
const updated = this._findNode(node.id, this.internalNodes);
|
|
492
|
+
this.nodeCheck.emit({ node: updated ?? node, checked, indeterminate: updated?.indeterminate ?? false });
|
|
493
|
+
this.treeChange.emit({ nodes: this.internalNodes, selectedNodes: this.selectedNodes });
|
|
494
|
+
}
|
|
495
|
+
handleDragStart(node, event) {
|
|
496
|
+
if (!this.enableDrag || node.disabled)
|
|
497
|
+
return;
|
|
498
|
+
this.draggedNode = node;
|
|
499
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
500
|
+
event.dataTransfer.setData('text/plain', String(node.id));
|
|
501
|
+
this.nodeDragStart.emit(node);
|
|
502
|
+
}
|
|
503
|
+
handleDragOver(targetNode, event) {
|
|
504
|
+
if (!this.enableDrag)
|
|
505
|
+
return;
|
|
506
|
+
event.preventDefault();
|
|
507
|
+
event.dataTransfer.dropEffect = 'move';
|
|
508
|
+
this.dragOverNodeId = targetNode.id;
|
|
509
|
+
const el = event.currentTarget;
|
|
510
|
+
const rect = el.getBoundingClientRect();
|
|
511
|
+
const pct = (event.clientY - rect.top) / rect.height;
|
|
512
|
+
this.dragPosition = pct < 0.25 ? 'before' : pct > 0.75 ? 'after' : 'inside';
|
|
513
|
+
}
|
|
514
|
+
handleDragLeave(event) {
|
|
515
|
+
const related = event.relatedTarget;
|
|
516
|
+
if (!this.el.contains(related))
|
|
517
|
+
this.dragOverNodeId = null;
|
|
518
|
+
}
|
|
519
|
+
handleDrop(targetNode, event) {
|
|
520
|
+
if (!this.enableDrag || !this.draggedNode)
|
|
521
|
+
return;
|
|
522
|
+
event.preventDefault();
|
|
523
|
+
const pos = this.dragPosition;
|
|
524
|
+
const src = this.draggedNode;
|
|
525
|
+
this.nodeDrop.emit({ draggedNode: src, targetNode, position: pos });
|
|
526
|
+
if (src.id !== targetNode.id) {
|
|
527
|
+
this._saveUndo();
|
|
528
|
+
this.internalNodes = this._moveNode(src.id, targetNode.id, pos, this.internalNodes);
|
|
529
|
+
}
|
|
530
|
+
this.draggedNode = null;
|
|
531
|
+
this.dragOverNodeId = null;
|
|
532
|
+
}
|
|
533
|
+
handleSearchInput(event) {
|
|
534
|
+
this.searchTerm = event.detail.toLowerCase();
|
|
535
|
+
}
|
|
536
|
+
handleDocumentClick = () => {
|
|
537
|
+
if (this.contextMenuVisible)
|
|
538
|
+
this.contextMenuVisible = false;
|
|
539
|
+
};
|
|
540
|
+
handleContextMenu(node, event) {
|
|
541
|
+
if (!this.contextMenuEnabled)
|
|
542
|
+
return;
|
|
543
|
+
event.preventDefault();
|
|
544
|
+
event.stopPropagation();
|
|
545
|
+
this.contextMenuNode = node;
|
|
546
|
+
this.contextMenuX = event.clientX;
|
|
547
|
+
this.contextMenuY = event.clientY;
|
|
548
|
+
this.contextMenuVisible = true;
|
|
549
|
+
this.nodeContextMenu.emit({ node, x: event.clientX, y: event.clientY });
|
|
550
|
+
}
|
|
551
|
+
startEditing(node) {
|
|
552
|
+
this.editingNodeId = node.id;
|
|
553
|
+
this.editingValue = node.label ?? '';
|
|
554
|
+
setTimeout(() => {
|
|
555
|
+
const input = this.el.querySelector('.tree-edit-input');
|
|
556
|
+
if (input) {
|
|
557
|
+
input.focus();
|
|
558
|
+
input.select();
|
|
559
|
+
}
|
|
560
|
+
}, 40);
|
|
561
|
+
}
|
|
562
|
+
cancelEditing() { this.editingNodeId = null; this.editingValue = ''; }
|
|
563
|
+
commitEditing(node) {
|
|
564
|
+
const val = this.editingValue.trim();
|
|
565
|
+
if (!val) {
|
|
566
|
+
this.cancelEditing();
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
const old = node.label;
|
|
570
|
+
this._saveUndo();
|
|
571
|
+
this.internalNodes = this._updateData(node.id, { label: val }, this.internalNodes);
|
|
572
|
+
this.nodeEdit.emit({ node, newLabel: val, oldLabel: old ?? '' });
|
|
573
|
+
this.cancelEditing();
|
|
574
|
+
}
|
|
575
|
+
handleKeyDown = (event) => {
|
|
576
|
+
const vis = this._getVisibleNodes();
|
|
577
|
+
const ci = vis.findIndex(n => n.id === this.focusedNodeId);
|
|
578
|
+
switch (event.key) {
|
|
579
|
+
case 'ArrowDown':
|
|
580
|
+
event.preventDefault();
|
|
581
|
+
if (ci === -1 && vis.length)
|
|
582
|
+
this.focusedNodeId = vis[0].id;
|
|
583
|
+
else if (ci < vis.length - 1)
|
|
584
|
+
this.focusedNodeId = vis[ci + 1].id;
|
|
585
|
+
break;
|
|
586
|
+
case 'ArrowUp':
|
|
587
|
+
event.preventDefault();
|
|
588
|
+
if (ci > 0)
|
|
589
|
+
this.focusedNodeId = vis[ci - 1].id;
|
|
590
|
+
break;
|
|
591
|
+
case 'ArrowRight': {
|
|
592
|
+
event.preventDefault();
|
|
593
|
+
const n = vis[ci];
|
|
594
|
+
if (n?.children?.length && !n.expanded)
|
|
595
|
+
this.internalNodes = this._toggleNode(n.id);
|
|
596
|
+
else if (n?.expanded && ci < vis.length - 1)
|
|
597
|
+
this.focusedNodeId = vis[ci + 1].id;
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
case 'ArrowLeft': {
|
|
601
|
+
event.preventDefault();
|
|
602
|
+
const n = vis[ci];
|
|
603
|
+
if (n?.expanded && n.children?.length)
|
|
604
|
+
this.internalNodes = this._toggleNode(n.id);
|
|
605
|
+
else {
|
|
606
|
+
const p = this._findParent(n?.id);
|
|
607
|
+
if (p)
|
|
608
|
+
this.focusedNodeId = p.id;
|
|
609
|
+
}
|
|
610
|
+
break;
|
|
611
|
+
}
|
|
612
|
+
case 'Enter':
|
|
613
|
+
case ' ':
|
|
614
|
+
event.preventDefault();
|
|
615
|
+
if (vis[ci])
|
|
616
|
+
this.handleNodeClick(vis[ci], []);
|
|
617
|
+
break;
|
|
618
|
+
case 'F2':
|
|
619
|
+
if (this.inlineEdit && this.focusedNodeId !== null) {
|
|
620
|
+
const n = this._findNode(this.focusedNodeId, this.internalNodes);
|
|
621
|
+
if (n && !n.disabled)
|
|
622
|
+
this.startEditing(n);
|
|
623
|
+
}
|
|
624
|
+
break;
|
|
625
|
+
case 'Escape':
|
|
626
|
+
this.cancelEditing();
|
|
627
|
+
this.contextMenuVisible = false;
|
|
628
|
+
break;
|
|
629
|
+
case 'Home':
|
|
630
|
+
event.preventDefault();
|
|
631
|
+
if (vis.length)
|
|
632
|
+
this.focusedNodeId = vis[0].id;
|
|
633
|
+
break;
|
|
634
|
+
case 'End':
|
|
635
|
+
event.preventDefault();
|
|
636
|
+
if (vis.length)
|
|
637
|
+
this.focusedNodeId = vis[vis.length - 1].id;
|
|
638
|
+
break;
|
|
639
|
+
case 'z':
|
|
640
|
+
case 'Z':
|
|
641
|
+
if ((event.ctrlKey || event.metaKey) && this.undoRedoEnabled) {
|
|
642
|
+
event.preventDefault();
|
|
643
|
+
if (event.shiftKey)
|
|
644
|
+
this.redo();
|
|
645
|
+
else
|
|
646
|
+
this.undo();
|
|
647
|
+
}
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
// ─── FILTER / HIGHLIGHT ─────────────────────────────────────────────────────
|
|
652
|
+
filterNodes(nodes) {
|
|
653
|
+
if (!this.searchTerm)
|
|
654
|
+
return nodes;
|
|
655
|
+
return nodes.filter(n => {
|
|
656
|
+
const match = (n.label ?? '').toLowerCase().includes(this.searchTerm);
|
|
657
|
+
const childMatch = n.children && this.filterNodes(n.children).length > 0;
|
|
658
|
+
return match || childMatch;
|
|
659
|
+
}).map(n => ({ ...n, expanded: true, children: n.children ? this.filterNodes(n.children) : undefined }));
|
|
660
|
+
}
|
|
661
|
+
renderLabel(label) {
|
|
662
|
+
if (!this.searchTerm || !label.toLowerCase().includes(this.searchTerm))
|
|
663
|
+
return label;
|
|
664
|
+
const lower = label.toLowerCase();
|
|
665
|
+
const idx = lower.indexOf(this.searchTerm);
|
|
666
|
+
return [
|
|
667
|
+
label.substring(0, idx),
|
|
668
|
+
h("mark", { class: "tree-highlight" }, label.substring(idx, idx + this.searchTerm.length)),
|
|
669
|
+
label.substring(idx + this.searchTerm.length),
|
|
670
|
+
];
|
|
671
|
+
}
|
|
672
|
+
_renderExpandIcon(isExpanded, node) {
|
|
673
|
+
let iconName = '';
|
|
674
|
+
let style = {};
|
|
675
|
+
const library = node.iconLibrary ?? this.iconLibrary;
|
|
676
|
+
if (this.expandIconType === 'custom') {
|
|
677
|
+
iconName = isExpanded ? (this.expandedIcon || 'chevron-down') : (this.collapsedIcon || 'chevron-right');
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
switch (this.expandIconType) {
|
|
681
|
+
case 'plus-minus':
|
|
682
|
+
iconName = isExpanded ? 'minus' : 'plus';
|
|
683
|
+
break;
|
|
684
|
+
case 'arrow':
|
|
685
|
+
iconName = isExpanded ? 'arrow-down' : 'arrow-right';
|
|
686
|
+
break;
|
|
687
|
+
case 'caret':
|
|
688
|
+
iconName = isExpanded ? 'caret-down' : 'caret-right';
|
|
689
|
+
break;
|
|
690
|
+
case 'chevron':
|
|
691
|
+
default:
|
|
692
|
+
iconName = 'chevron-right';
|
|
693
|
+
style = { transform: `rotate(${isExpanded ? '90deg' : '0deg'})`, transition: 'transform 0.2s ease' };
|
|
694
|
+
break;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
if (this.expandIconColor) {
|
|
698
|
+
style.color = this.expandIconColor;
|
|
699
|
+
}
|
|
700
|
+
return (h("div", { class: "tree-expand-icon", onClick: (e) => { e.stopPropagation(); this.internalNodes = this._toggleNode(node.id); } }, h("ui-icon", { name: iconName, library: library, size: this.expandIconSize, style: style })));
|
|
701
|
+
}
|
|
702
|
+
renderNode(node, level = 0, path = [], isLast = false, parentPath = [], index = 0, groupHasIcons = false) {
|
|
703
|
+
const hasChildren = !!(node.children?.length);
|
|
704
|
+
const canExpand = hasChildren || (this.lazyLoad && node.isLeaf === false);
|
|
705
|
+
const isExpanded = !!node.expanded;
|
|
706
|
+
const isSelected = node.selected || this.selectedNodes.includes(node.id);
|
|
707
|
+
const isEditing = this.editingNodeId === node.id;
|
|
708
|
+
const isDragOver = this.dragOverNodeId === node.id;
|
|
709
|
+
const currentPath = [...path, node.id];
|
|
710
|
+
const depth = level;
|
|
711
|
+
const baseWidth = this.connectorWidth || 1.8;
|
|
712
|
+
const selPathIds = this._selectionPathIds || new Set();
|
|
713
|
+
// SVG connectors
|
|
714
|
+
const connectors = [];
|
|
715
|
+
if (this.showLines && this.layout === 'tree' && depth > 0) {
|
|
716
|
+
const vLines = [];
|
|
717
|
+
const hJunctions = [];
|
|
718
|
+
for (let i = 0; i < depth; i++) {
|
|
719
|
+
const segW = Math.max(0.6, baseWidth - i * 0.3);
|
|
720
|
+
const lx = i * this.indent + 12;
|
|
721
|
+
const isHL = selPathIds.has(currentPath[i + 1] ?? '');
|
|
722
|
+
const color = node.connectorColor || this.connectorColor || 'var(--tree-line-color-default)';
|
|
723
|
+
const opacity = this.connectorOpacity;
|
|
724
|
+
const showV = i < depth - 1 ? !parentPath[i + 1] : !isLast;
|
|
725
|
+
if (showV) {
|
|
726
|
+
vLines.push(h("line", { x1: lx, y1: "0", x2: lx, y2: "100%", stroke: color, "stroke-width": segW, "stroke-opacity": isHL ? 1 : opacity, class: isHL ? 'path-highlight' : '', "vector-effect": "non-scaling-stroke" }));
|
|
727
|
+
}
|
|
728
|
+
if (i === depth - 1) {
|
|
729
|
+
const cr = this.connectorShape === 'square' ? 0 : 8;
|
|
730
|
+
const hy = this.nodeHeight / 2;
|
|
731
|
+
const hx = (i + 1) * this.indent;
|
|
732
|
+
const pd = cr > 0 ? `M ${lx} 0 L ${lx} ${hy - cr} Q ${lx} ${hy} ${lx + cr} ${hy} L ${hx} ${hy}` : `M ${lx} 0 L ${lx} ${hy} L ${hx} ${hy}`;
|
|
733
|
+
hJunctions.push(h("path", { d: pd, fill: "none", stroke: color, "stroke-width": segW, "stroke-opacity": isHL ? 1 : opacity, "stroke-linecap": "round", class: isHL ? 'path-highlight' : '', "vector-effect": "non-scaling-stroke" }), h("circle", { cx: hx, cy: hy, r: "2.5", fill: color, opacity: isHL ? 1 : 0.8 }));
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
connectors.push(h("div", { class: "tree-connector-harness-group", style: { '--tree-indent-full': `${depth * this.indent}px` } }, h("div", { class: "tree-v-line-container" }, h("svg", { class: "tree-connectors-svg", width: "100%", height: "100%", preserveAspectRatio: "none" }, vLines)), h("div", { class: "tree-hook-container", style: { height: `${this.nodeHeight}px` } }, h("svg", { class: "tree-connectors-svg", width: "100%", height: "100%", viewBox: `0 0 ${depth * this.indent} ${this.nodeHeight}`, preserveAspectRatio: "xMinYMin meet" }, hJunctions))));
|
|
737
|
+
}
|
|
738
|
+
const nodeIcon = node.icon ?? (this.showIcons ? (canExpand ? (isExpanded ? 'folder-open' : 'folder') : 'file-text') : null);
|
|
739
|
+
const nodeClasses = {
|
|
740
|
+
'tree-node': true,
|
|
741
|
+
'tree-node-expanded': isExpanded,
|
|
742
|
+
'tree-node-collapsed': !isExpanded,
|
|
743
|
+
'tree-node-selected': isSelected,
|
|
744
|
+
'tree-node-disabled': !!node.disabled,
|
|
745
|
+
'tree-node-leaf': !canExpand,
|
|
746
|
+
'tree-node-branch': canExpand,
|
|
747
|
+
'tree-node-focused': this.focusedNodeId === node.id,
|
|
748
|
+
'tree-node-editing': isEditing,
|
|
749
|
+
'tree-node-loading': !!node.loading,
|
|
750
|
+
'tree-node-drag-over': isDragOver,
|
|
751
|
+
[`tree-drop-${this.dragPosition}`]: isDragOver,
|
|
752
|
+
[`tree-node-${node.color ?? 'default'}`]: true,
|
|
753
|
+
[`tree-node-${this.size}`]: true,
|
|
754
|
+
'has-checkbox': this.checkboxes,
|
|
755
|
+
'group-has-icons': groupHasIcons,
|
|
756
|
+
};
|
|
757
|
+
const ariaAttrs = {
|
|
758
|
+
role: 'treeitem',
|
|
759
|
+
'aria-expanded': canExpand ? String(isExpanded) : undefined,
|
|
760
|
+
'aria-selected': String(isSelected),
|
|
761
|
+
'aria-level': String(level + 1),
|
|
762
|
+
'aria-disabled': node.disabled ? 'true' : undefined,
|
|
763
|
+
tabindex: (this.focusedNodeId === node.id || (this.focusedNodeId === null && level === 0 && index === 0)) ? '0' : '-1',
|
|
764
|
+
};
|
|
765
|
+
const nodeContent = (h("div", { class: nodeClasses, key: node.id, "data-node-id": node.id, "data-depth": depth, style: { '--depth': String(depth) } }, this.layout === 'tree' && connectors, isDragOver && this.dragPosition === 'before' && h("div", { class: "tree-drop-indicator tree-drop-before-line" }), h("div", { class: "tree-node-content", style: this.layout === 'tree' ? { paddingLeft: `${(depth + 1) * this.indent}px`, minHeight: `${this.nodeHeight}px` } : { minHeight: `${this.nodeHeight}px` }, onClick: (e) => !isEditing && this.handleNodeClick(node, currentPath, e), onDblClick: () => this.inlineEdit && !node.disabled && this.startEditing(node), onContextMenu: (e) => this.handleContextMenu(node, e), draggable: this.enableDrag && !node.disabled, onDragStart: (e) => this.handleDragStart(node, e), onDragOver: (e) => this.handleDragOver(node, e), onDragLeave: (e) => this.handleDragLeave(e), onDrop: (e) => this.handleDrop(node, e), ...ariaAttrs }, this.expandable && canExpand
|
|
766
|
+
? this._renderExpandIcon(isExpanded, node)
|
|
767
|
+
: h("div", { class: "tree-expand-spacer" }), this.checkboxes && (h("div", { class: "tree-checkbox" }, h("ui-checkbox", { checked: !!node.checked, disabled: !!node.disabled, indeterminate: !!node.indeterminate, onCheckboxChange: (e) => this.handleCheckboxChange(node, e), size: "sm" }))), this.showAvatars && (node.avatar || node.avatarInitials) && (h("div", { class: "tree-node-avatar" }, node.avatar
|
|
768
|
+
? h("img", { src: node.avatar, alt: node.label })
|
|
769
|
+
: h("span", { class: `tree-node-avatar-initials tree-node-avatar-${node.color ?? 'primary'}` }, node.avatarInitials))), (nodeIcon || groupHasIcons) && (h("div", { class: `tree-node-icon${!nodeIcon ? ' tree-node-icon-spacer' : ''}` }, nodeIcon && !node.loading && (h("ui-icon", { name: nodeIcon, library: node.iconLibrary ?? this.iconLibrary, size: "16px", style: { color: node.color ? `var(--tree-${node.color})` : undefined } })), node.loading && h("ui-icon", { name: "loader-2", library: "lucide", spin: true, size: "16px" }))), h("div", { class: "tree-node-text-group" }, isEditing
|
|
770
|
+
? (h("ui-input", { class: "tree-edit-input", type: "text", value: this.editingValue, onInputChange: (e) => { this.editingValue = e.detail; }, onInputKeydown: (e) => {
|
|
771
|
+
if (e.detail.key === 'Enter')
|
|
772
|
+
this.commitEditing(node);
|
|
773
|
+
else if (e.detail.key === 'Escape')
|
|
774
|
+
this.cancelEditing();
|
|
775
|
+
e.detail.stopPropagation();
|
|
776
|
+
}, onInputBlur: () => this.commitEditing(node), autoFocus: true, size: "sm", fullWidth: true }))
|
|
777
|
+
: h("div", { class: "tree-node-label" }, this.renderLabel(node.label ?? '')), node.description && !isEditing && h("div", { class: "tree-node-description" }, node.description)), node.tag && h("div", { class: "tree-node-tag" }, node.tag), node.badge && h("div", { class: `tree-node-badge tree-node-badge-${node.color ?? 'primary'}` }, node.badge), node.counter !== undefined && h("div", { class: "tree-node-counter" }, node.counter), node.locked && (h("div", { class: "tree-node-lock", title: node.lockTooltip ?? 'Locked' }, h("ui-icon", { name: "lock", library: "fontawesome", size: "12px" }))), this.showNodeActions && (node.actions?.length ?? 0) > 0 && (h("div", { class: "tree-node-actions" }, node.actions.map((action) => (h("ui-button", { variant: "ghost", size: "sm", class: `tree-action-btn${action.color ? ` tree-action-${action.color}` : ''}`, icon: action.icon, iconLibrary: action.library ?? this.iconLibrary, iconSize: "13px", ariaLabel: action.tooltip, disabled: !!action.disabled, onClick: (e) => { e.stopPropagation(); this.nodeAction.emit({ node, action: String(action.id ?? '') }); } })))))), isDragOver && this.dragPosition === 'after' && h("div", { class: "tree-drop-indicator tree-drop-after-line" }), canExpand && isExpanded && this.layout === 'tree' && (h("div", { class: `tree-children${isDragOver && this.dragPosition === 'inside' ? ' tree-children-drop-target' : ''}` }, hasChildren && node.children.map((child, idx) => {
|
|
778
|
+
const childHasIcons = node.children.some(c => c.icon || this.showIcons);
|
|
779
|
+
return this.renderNode(child, level + 1, currentPath, idx === node.children.length - 1, [...parentPath, isLast], idx, childHasIcons);
|
|
780
|
+
})))));
|
|
781
|
+
if (this.layout === 'org-chart') {
|
|
782
|
+
return (h("div", { class: "tree-node-wrapper" }, nodeContent, canExpand && isExpanded && (h("div", { class: "tree-children" }, hasChildren && node.children.map((child, idx) => {
|
|
783
|
+
const childHasIcons = node.children.some(c => c.icon || this.showIcons);
|
|
784
|
+
return this.renderNode(child, level + 1, currentPath, idx === node.children.length - 1, [...parentPath, isLast], idx, childHasIcons);
|
|
785
|
+
})))));
|
|
786
|
+
}
|
|
787
|
+
return nodeContent;
|
|
788
|
+
}
|
|
789
|
+
// ─── CONTEXT MENU ───────────────────────────────────────────────────────────
|
|
790
|
+
renderContextMenu() {
|
|
791
|
+
if (!this.contextMenuEnabled || !this.contextMenuVisible || !this.contextMenuNode)
|
|
792
|
+
return null;
|
|
793
|
+
const n = this.contextMenuNode;
|
|
794
|
+
return (h("div", { class: "tree-context-menu", style: { position: 'fixed', left: `${this.contextMenuX}px`, top: `${this.contextMenuY}px` }, onClick: (e) => e.stopPropagation() }, this.selectable && (h("div", { class: "tree-context-item", onClick: () => { this.handleNodeClick(n, []); this.contextMenuVisible = false; } }, h("ui-icon", { name: "check", library: "fontawesome", size: "13px" }), " Select")), this.expandable && (n.children?.length ?? 0) > 0 && (h("div", { class: "tree-context-item", onClick: () => { this.internalNodes = this._toggleNode(n.id); this.contextMenuVisible = false; } }, h("ui-icon", { name: n.expanded ? 'chevron-up' : 'chevron-down', library: "lucide", size: "13px" }), n.expanded ? 'Collapse' : 'Expand')), this.inlineEdit && !n.disabled && (h("div", { class: "tree-context-item", onClick: () => { this.startEditing(n); this.contextMenuVisible = false; } }, h("ui-icon", { name: "pen", library: "lucide", size: "13px" }), " Rename")), h("div", { class: "tree-context-separator" }), h("div", { class: "tree-context-item", onClick: () => { this.expandAllNodes(); this.contextMenuVisible = false; } }, "Expand All"), h("div", { class: "tree-context-item", onClick: () => { this.collapseAllNodes(); this.contextMenuVisible = false; } }, "Collapse All"), this.undoRedoEnabled && [
|
|
795
|
+
h("div", { class: "tree-context-separator" }),
|
|
796
|
+
h("div", { class: `tree-context-item${!this.undoStack.length ? ' disabled' : ''}`, onClick: () => { this.undo(); this.contextMenuVisible = false; } }, "Undo"),
|
|
797
|
+
h("div", { class: "tree-context-item tree-context-item-danger", onClick: () => {
|
|
798
|
+
this._saveUndo();
|
|
799
|
+
const node = this._findNode(n.id, this.internalNodes);
|
|
800
|
+
this.internalNodes = this._removeNode(n.id, this.internalNodes);
|
|
801
|
+
if (node)
|
|
802
|
+
this.nodeRemove.emit({ node });
|
|
803
|
+
this.contextMenuVisible = false;
|
|
804
|
+
} }, "Delete"),
|
|
805
|
+
]));
|
|
806
|
+
}
|
|
807
|
+
// ─── MAIN RENDER ────────────────────────────────────────────────────────────
|
|
808
|
+
render() {
|
|
809
|
+
this._selectionPathIds = this._getSelectionPathIds();
|
|
810
|
+
const filtered = this.searchable ? this.filterNodes(this.internalNodes) : this.internalNodes;
|
|
811
|
+
const topHasIcons = filtered.some(n => n.icon || this.showIcons);
|
|
812
|
+
const cls = {
|
|
813
|
+
'tree-container': true,
|
|
814
|
+
[`tree-orientation-${this.orientation}`]: true,
|
|
815
|
+
[`tree-layout-${this.layout}`]: true,
|
|
816
|
+
[`tree-variant-${this.variant}`]: true,
|
|
817
|
+
[`tree-theme-${this.theme}`]: true,
|
|
818
|
+
'tree-animated': this.animated,
|
|
819
|
+
'tree-show-lines': this.showLines,
|
|
820
|
+
'tree-hide-lines': !this.showLines,
|
|
821
|
+
'tree-selectable': this.selectable,
|
|
822
|
+
'tree-glow': this.showGlow,
|
|
823
|
+
};
|
|
824
|
+
return (h(Host, { key: 'dae18b9d9751a023555e848bb0b5aaebdd235770', class: cls, style: { '--tree-indent': `${this.indent}px`, '--tree-node-height': `${this.nodeHeight}px` }, onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("div", { key: '9b15d92f21722bcd345733cfa44206e3c83a2fa9', class: "tree-inner", role: "tree", "aria-multiselectable": this.multiSelect ? 'true' : 'false' }, this.searchable && (h("div", { key: 'be71bda4e65cfcf704616ef2ae563630bffde2fa', class: "tree-search" }, h("ui-icon", { key: '53d76e4229942408bf50ab0c72d3ce6d1811fbd2', name: "search", library: "fontawesome", size: "13px", class: "tree-search-icon" }), h("ui-input", { key: 'b8edf92c3dda73600fd0a653739aa1206be64698', type: "text", placeholder: "Search tree...", value: this.searchTerm, onInputChange: (e) => this.handleSearchInput(e), ariaLabel: "Search tree", size: "sm", fullWidth: true }), this.searchTerm && (h("ui-button", { key: '66800256ed8fc8139dab93bd920d25a2a6219cdf', variant: "ghost", size: "sm", class: "tree-search-clear", icon: "times", iconLibrary: "fontawesome", iconSize: "11px", ariaLabel: "Clear search", onClick: () => { this.searchTerm = ''; } })))), this.undoRedoEnabled && (h("div", { key: 'a391e1e016e422fbdd2781a09daf176bf8fe58df', class: "tree-toolbar" }, h("ui-button", { key: '73de8c1affc18220f94912f546c7e992d81850ed', variant: "ghost", size: "sm", icon: "undo", iconLibrary: "fontawesome", iconSize: "13px", label: "Undo", ariaLabel: "Undo (Ctrl+Z)", disabled: !this.undoStack.length, onClick: () => this.undo() }), h("ui-button", { key: '0aebc8cafd66fb273eb7e39b682a29a24f73bfcc', variant: "ghost", size: "sm", icon: "redo", iconLibrary: "fontawesome", iconSize: "13px", label: "Redo", ariaLabel: "Redo (Ctrl+Shift+Z)", disabled: !this.redoStack.length, onClick: () => this.redo() }), h("div", { key: '5bf0083e6ccd220d480a29f0fce27e220dba4231', class: "tree-toolbar-sep" }), h("ui-button", { key: '4aee1b4dfa0e8a99770e2ea55670cf17a3491bfb', variant: "ghost", size: "sm", icon: "expand", iconLibrary: "fontawesome", iconSize: "13px", ariaLabel: "Expand all", onClick: () => this.expandAllNodes() }), h("ui-button", { key: '31c8f23735e0aabb53bee60f63f823f0facbf4c2', variant: "ghost", size: "sm", icon: "compress", iconLibrary: "fontawesome", iconSize: "13px", ariaLabel: "Collapse all", onClick: () => this.collapseAllNodes() }))), h("div", { key: 'c635c7a4205a04d0fbb29bbbf666d82e3799e76e', class: "tree-content", style: this.virtualScroll ? { height: `${this.virtualScrollHeight}px`, overflowY: 'auto' } : {}, onScroll: () => this.virtualScroll && this.el.forceUpdate() }, this.virtualScroll && this.layout === 'tree' ? ((() => {
|
|
825
|
+
const visibleNodes = this._getVisibleNodes(filtered);
|
|
826
|
+
const scrollTop = this.el.shadowRoot?.querySelector('.tree-content')?.scrollTop || 0;
|
|
827
|
+
const startIndex = Math.max(0, Math.floor(scrollTop / this.nodeHeight) - 2);
|
|
828
|
+
const endIndex = Math.min(visibleNodes.length, startIndex + Math.ceil(this.virtualScrollHeight / this.nodeHeight) + 4);
|
|
829
|
+
return (h("div", { class: "tree-virtual-scroller", style: { height: `${visibleNodes.length * this.nodeHeight}px`, position: 'relative' } }, h("div", { class: "tree-virtual-offset", style: { transform: `translateY(${startIndex * this.nodeHeight}px)` } }, visibleNodes.slice(startIndex, endIndex).map((node, _idx) => {
|
|
830
|
+
const path = this._findPath(node.id, this.internalNodes) || [];
|
|
831
|
+
const isLast = false; // Hard to determine in flat list without extra metadata
|
|
832
|
+
return this.renderNode(node, path.length - 1, path.slice(0, -1), isLast, [], 0, false);
|
|
833
|
+
}))));
|
|
834
|
+
})()) : (filtered.length > 0
|
|
835
|
+
? filtered.map((node, idx) => this.renderNode(node, 0, [], idx === filtered.length - 1, [], idx, topHasIcons))
|
|
836
|
+
: (h("div", { class: "tree-empty" }, h("ui-icon", { name: "folder-open", library: "fontawesome", size: "40px" }), h("p", null, this.searchTerm ? 'No results found' : 'No items')))))), this.renderContextMenu()));
|
|
837
|
+
}
|
|
838
|
+
static get is() { return "ui-tree"; }
|
|
839
|
+
static get encapsulation() { return "shadow"; }
|
|
840
|
+
static get originalStyleUrls() {
|
|
841
|
+
return {
|
|
842
|
+
"$": ["tree.scss"]
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
static get styleUrls() {
|
|
846
|
+
return {
|
|
847
|
+
"$": ["tree.css"]
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
static get properties() {
|
|
851
|
+
return {
|
|
852
|
+
"nodes": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"mutable": false,
|
|
855
|
+
"complexType": {
|
|
856
|
+
"original": "TreeNode[] | string",
|
|
857
|
+
"resolved": "TreeNode[] | string",
|
|
858
|
+
"references": {
|
|
859
|
+
"TreeNode": {
|
|
860
|
+
"location": "import",
|
|
861
|
+
"path": "./types",
|
|
862
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
863
|
+
"referenceLocation": "TreeNode"
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"required": false,
|
|
868
|
+
"optional": false,
|
|
869
|
+
"docs": {
|
|
870
|
+
"tags": [],
|
|
871
|
+
"text": ""
|
|
872
|
+
},
|
|
873
|
+
"getter": false,
|
|
874
|
+
"setter": false,
|
|
875
|
+
"reflect": false,
|
|
876
|
+
"attribute": "nodes",
|
|
877
|
+
"defaultValue": "[]"
|
|
878
|
+
},
|
|
879
|
+
"orientation": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"mutable": false,
|
|
882
|
+
"complexType": {
|
|
883
|
+
"original": "Orientation",
|
|
884
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
885
|
+
"references": {
|
|
886
|
+
"Orientation": {
|
|
887
|
+
"location": "import",
|
|
888
|
+
"path": "../../types/common.type",
|
|
889
|
+
"id": "src/types/common.type.d.ts::Orientation",
|
|
890
|
+
"referenceLocation": "Orientation"
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
"required": false,
|
|
895
|
+
"optional": false,
|
|
896
|
+
"docs": {
|
|
897
|
+
"tags": [],
|
|
898
|
+
"text": ""
|
|
899
|
+
},
|
|
900
|
+
"getter": false,
|
|
901
|
+
"setter": false,
|
|
902
|
+
"reflect": false,
|
|
903
|
+
"attribute": "orientation",
|
|
904
|
+
"defaultValue": "'vertical'"
|
|
905
|
+
},
|
|
906
|
+
"showLines": {
|
|
907
|
+
"type": "boolean",
|
|
908
|
+
"mutable": false,
|
|
909
|
+
"complexType": {
|
|
910
|
+
"original": "boolean",
|
|
911
|
+
"resolved": "boolean",
|
|
912
|
+
"references": {}
|
|
913
|
+
},
|
|
914
|
+
"required": false,
|
|
915
|
+
"optional": false,
|
|
916
|
+
"docs": {
|
|
917
|
+
"tags": [],
|
|
918
|
+
"text": ""
|
|
919
|
+
},
|
|
920
|
+
"getter": false,
|
|
921
|
+
"setter": false,
|
|
922
|
+
"reflect": false,
|
|
923
|
+
"attribute": "show-lines",
|
|
924
|
+
"defaultValue": "true"
|
|
925
|
+
},
|
|
926
|
+
"showIcons": {
|
|
927
|
+
"type": "boolean",
|
|
928
|
+
"mutable": false,
|
|
929
|
+
"complexType": {
|
|
930
|
+
"original": "boolean",
|
|
931
|
+
"resolved": "boolean",
|
|
932
|
+
"references": {}
|
|
933
|
+
},
|
|
934
|
+
"required": false,
|
|
935
|
+
"optional": false,
|
|
936
|
+
"docs": {
|
|
937
|
+
"tags": [],
|
|
938
|
+
"text": ""
|
|
939
|
+
},
|
|
940
|
+
"getter": false,
|
|
941
|
+
"setter": false,
|
|
942
|
+
"reflect": false,
|
|
943
|
+
"attribute": "show-icons",
|
|
944
|
+
"defaultValue": "true"
|
|
945
|
+
},
|
|
946
|
+
"expandable": {
|
|
947
|
+
"type": "boolean",
|
|
948
|
+
"mutable": false,
|
|
949
|
+
"complexType": {
|
|
950
|
+
"original": "boolean",
|
|
951
|
+
"resolved": "boolean",
|
|
952
|
+
"references": {}
|
|
953
|
+
},
|
|
954
|
+
"required": false,
|
|
955
|
+
"optional": false,
|
|
956
|
+
"docs": {
|
|
957
|
+
"tags": [],
|
|
958
|
+
"text": ""
|
|
959
|
+
},
|
|
960
|
+
"getter": false,
|
|
961
|
+
"setter": false,
|
|
962
|
+
"reflect": false,
|
|
963
|
+
"attribute": "expandable",
|
|
964
|
+
"defaultValue": "true"
|
|
965
|
+
},
|
|
966
|
+
"selectable": {
|
|
967
|
+
"type": "boolean",
|
|
968
|
+
"mutable": false,
|
|
969
|
+
"complexType": {
|
|
970
|
+
"original": "boolean",
|
|
971
|
+
"resolved": "boolean",
|
|
972
|
+
"references": {}
|
|
973
|
+
},
|
|
974
|
+
"required": false,
|
|
975
|
+
"optional": false,
|
|
976
|
+
"docs": {
|
|
977
|
+
"tags": [],
|
|
978
|
+
"text": ""
|
|
979
|
+
},
|
|
980
|
+
"getter": false,
|
|
981
|
+
"setter": false,
|
|
982
|
+
"reflect": false,
|
|
983
|
+
"attribute": "selectable",
|
|
984
|
+
"defaultValue": "false"
|
|
985
|
+
},
|
|
986
|
+
"multiSelect": {
|
|
987
|
+
"type": "boolean",
|
|
988
|
+
"mutable": false,
|
|
989
|
+
"complexType": {
|
|
990
|
+
"original": "boolean",
|
|
991
|
+
"resolved": "boolean",
|
|
992
|
+
"references": {}
|
|
993
|
+
},
|
|
994
|
+
"required": false,
|
|
995
|
+
"optional": false,
|
|
996
|
+
"docs": {
|
|
997
|
+
"tags": [],
|
|
998
|
+
"text": ""
|
|
999
|
+
},
|
|
1000
|
+
"getter": false,
|
|
1001
|
+
"setter": false,
|
|
1002
|
+
"reflect": false,
|
|
1003
|
+
"attribute": "multi-select",
|
|
1004
|
+
"defaultValue": "false"
|
|
1005
|
+
},
|
|
1006
|
+
"checkboxes": {
|
|
1007
|
+
"type": "boolean",
|
|
1008
|
+
"mutable": false,
|
|
1009
|
+
"complexType": {
|
|
1010
|
+
"original": "boolean",
|
|
1011
|
+
"resolved": "boolean",
|
|
1012
|
+
"references": {}
|
|
1013
|
+
},
|
|
1014
|
+
"required": false,
|
|
1015
|
+
"optional": false,
|
|
1016
|
+
"docs": {
|
|
1017
|
+
"tags": [],
|
|
1018
|
+
"text": ""
|
|
1019
|
+
},
|
|
1020
|
+
"getter": false,
|
|
1021
|
+
"setter": false,
|
|
1022
|
+
"reflect": false,
|
|
1023
|
+
"attribute": "checkboxes",
|
|
1024
|
+
"defaultValue": "false"
|
|
1025
|
+
},
|
|
1026
|
+
"checkboxSync": {
|
|
1027
|
+
"type": "boolean",
|
|
1028
|
+
"mutable": false,
|
|
1029
|
+
"complexType": {
|
|
1030
|
+
"original": "boolean",
|
|
1031
|
+
"resolved": "boolean",
|
|
1032
|
+
"references": {}
|
|
1033
|
+
},
|
|
1034
|
+
"required": false,
|
|
1035
|
+
"optional": false,
|
|
1036
|
+
"docs": {
|
|
1037
|
+
"tags": [],
|
|
1038
|
+
"text": ""
|
|
1039
|
+
},
|
|
1040
|
+
"getter": false,
|
|
1041
|
+
"setter": false,
|
|
1042
|
+
"reflect": false,
|
|
1043
|
+
"attribute": "checkbox-sync",
|
|
1044
|
+
"defaultValue": "true"
|
|
1045
|
+
},
|
|
1046
|
+
"enableDrag": {
|
|
1047
|
+
"type": "boolean",
|
|
1048
|
+
"mutable": false,
|
|
1049
|
+
"complexType": {
|
|
1050
|
+
"original": "boolean",
|
|
1051
|
+
"resolved": "boolean",
|
|
1052
|
+
"references": {}
|
|
1053
|
+
},
|
|
1054
|
+
"required": false,
|
|
1055
|
+
"optional": false,
|
|
1056
|
+
"docs": {
|
|
1057
|
+
"tags": [],
|
|
1058
|
+
"text": ""
|
|
1059
|
+
},
|
|
1060
|
+
"getter": false,
|
|
1061
|
+
"setter": false,
|
|
1062
|
+
"reflect": false,
|
|
1063
|
+
"attribute": "enable-drag",
|
|
1064
|
+
"defaultValue": "false"
|
|
1065
|
+
},
|
|
1066
|
+
"searchable": {
|
|
1067
|
+
"type": "boolean",
|
|
1068
|
+
"mutable": false,
|
|
1069
|
+
"complexType": {
|
|
1070
|
+
"original": "boolean",
|
|
1071
|
+
"resolved": "boolean",
|
|
1072
|
+
"references": {}
|
|
1073
|
+
},
|
|
1074
|
+
"required": false,
|
|
1075
|
+
"optional": false,
|
|
1076
|
+
"docs": {
|
|
1077
|
+
"tags": [],
|
|
1078
|
+
"text": ""
|
|
1079
|
+
},
|
|
1080
|
+
"getter": false,
|
|
1081
|
+
"setter": false,
|
|
1082
|
+
"reflect": false,
|
|
1083
|
+
"attribute": "searchable",
|
|
1084
|
+
"defaultValue": "false"
|
|
1085
|
+
},
|
|
1086
|
+
"animated": {
|
|
1087
|
+
"type": "boolean",
|
|
1088
|
+
"mutable": false,
|
|
1089
|
+
"complexType": {
|
|
1090
|
+
"original": "boolean",
|
|
1091
|
+
"resolved": "boolean",
|
|
1092
|
+
"references": {}
|
|
1093
|
+
},
|
|
1094
|
+
"required": false,
|
|
1095
|
+
"optional": false,
|
|
1096
|
+
"docs": {
|
|
1097
|
+
"tags": [],
|
|
1098
|
+
"text": ""
|
|
1099
|
+
},
|
|
1100
|
+
"getter": false,
|
|
1101
|
+
"setter": false,
|
|
1102
|
+
"reflect": false,
|
|
1103
|
+
"attribute": "animated",
|
|
1104
|
+
"defaultValue": "true"
|
|
1105
|
+
},
|
|
1106
|
+
"indent": {
|
|
1107
|
+
"type": "number",
|
|
1108
|
+
"mutable": false,
|
|
1109
|
+
"complexType": {
|
|
1110
|
+
"original": "number",
|
|
1111
|
+
"resolved": "number",
|
|
1112
|
+
"references": {}
|
|
1113
|
+
},
|
|
1114
|
+
"required": false,
|
|
1115
|
+
"optional": false,
|
|
1116
|
+
"docs": {
|
|
1117
|
+
"tags": [],
|
|
1118
|
+
"text": ""
|
|
1119
|
+
},
|
|
1120
|
+
"getter": false,
|
|
1121
|
+
"setter": false,
|
|
1122
|
+
"reflect": false,
|
|
1123
|
+
"attribute": "indent",
|
|
1124
|
+
"defaultValue": "24"
|
|
1125
|
+
},
|
|
1126
|
+
"nodeHeight": {
|
|
1127
|
+
"type": "number",
|
|
1128
|
+
"mutable": false,
|
|
1129
|
+
"complexType": {
|
|
1130
|
+
"original": "number",
|
|
1131
|
+
"resolved": "number",
|
|
1132
|
+
"references": {}
|
|
1133
|
+
},
|
|
1134
|
+
"required": false,
|
|
1135
|
+
"optional": false,
|
|
1136
|
+
"docs": {
|
|
1137
|
+
"tags": [],
|
|
1138
|
+
"text": ""
|
|
1139
|
+
},
|
|
1140
|
+
"getter": false,
|
|
1141
|
+
"setter": false,
|
|
1142
|
+
"reflect": false,
|
|
1143
|
+
"attribute": "node-height",
|
|
1144
|
+
"defaultValue": "40"
|
|
1145
|
+
},
|
|
1146
|
+
"expandAll": {
|
|
1147
|
+
"type": "boolean",
|
|
1148
|
+
"mutable": false,
|
|
1149
|
+
"complexType": {
|
|
1150
|
+
"original": "boolean",
|
|
1151
|
+
"resolved": "boolean",
|
|
1152
|
+
"references": {}
|
|
1153
|
+
},
|
|
1154
|
+
"required": false,
|
|
1155
|
+
"optional": false,
|
|
1156
|
+
"docs": {
|
|
1157
|
+
"tags": [],
|
|
1158
|
+
"text": ""
|
|
1159
|
+
},
|
|
1160
|
+
"getter": false,
|
|
1161
|
+
"setter": false,
|
|
1162
|
+
"reflect": false,
|
|
1163
|
+
"attribute": "expand-all",
|
|
1164
|
+
"defaultValue": "false"
|
|
1165
|
+
},
|
|
1166
|
+
"collapseAll": {
|
|
1167
|
+
"type": "boolean",
|
|
1168
|
+
"mutable": false,
|
|
1169
|
+
"complexType": {
|
|
1170
|
+
"original": "boolean",
|
|
1171
|
+
"resolved": "boolean",
|
|
1172
|
+
"references": {}
|
|
1173
|
+
},
|
|
1174
|
+
"required": false,
|
|
1175
|
+
"optional": false,
|
|
1176
|
+
"docs": {
|
|
1177
|
+
"tags": [],
|
|
1178
|
+
"text": ""
|
|
1179
|
+
},
|
|
1180
|
+
"getter": false,
|
|
1181
|
+
"setter": false,
|
|
1182
|
+
"reflect": false,
|
|
1183
|
+
"attribute": "collapse-all",
|
|
1184
|
+
"defaultValue": "false"
|
|
1185
|
+
},
|
|
1186
|
+
"layout": {
|
|
1187
|
+
"type": "string",
|
|
1188
|
+
"mutable": false,
|
|
1189
|
+
"complexType": {
|
|
1190
|
+
"original": "'tree' | 'org-chart'",
|
|
1191
|
+
"resolved": "\"org-chart\" | \"tree\"",
|
|
1192
|
+
"references": {}
|
|
1193
|
+
},
|
|
1194
|
+
"required": false,
|
|
1195
|
+
"optional": false,
|
|
1196
|
+
"docs": {
|
|
1197
|
+
"tags": [],
|
|
1198
|
+
"text": ""
|
|
1199
|
+
},
|
|
1200
|
+
"getter": false,
|
|
1201
|
+
"setter": false,
|
|
1202
|
+
"reflect": false,
|
|
1203
|
+
"attribute": "layout",
|
|
1204
|
+
"defaultValue": "'tree'"
|
|
1205
|
+
},
|
|
1206
|
+
"variant": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"mutable": false,
|
|
1209
|
+
"complexType": {
|
|
1210
|
+
"original": "'default' | 'bordered' | 'rounded' | 'minimal' | 'glass' | 'compact' | 'directory' | 'cards' | 'git-graph'",
|
|
1211
|
+
"resolved": "\"bordered\" | \"cards\" | \"compact\" | \"default\" | \"directory\" | \"git-graph\" | \"glass\" | \"minimal\" | \"rounded\"",
|
|
1212
|
+
"references": {}
|
|
1213
|
+
},
|
|
1214
|
+
"required": false,
|
|
1215
|
+
"optional": false,
|
|
1216
|
+
"docs": {
|
|
1217
|
+
"tags": [],
|
|
1218
|
+
"text": ""
|
|
1219
|
+
},
|
|
1220
|
+
"getter": false,
|
|
1221
|
+
"setter": false,
|
|
1222
|
+
"reflect": false,
|
|
1223
|
+
"attribute": "variant",
|
|
1224
|
+
"defaultValue": "'default'"
|
|
1225
|
+
},
|
|
1226
|
+
"size": {
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"mutable": false,
|
|
1229
|
+
"complexType": {
|
|
1230
|
+
"original": "'sm' | 'md' | 'lg'",
|
|
1231
|
+
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
1232
|
+
"references": {}
|
|
1233
|
+
},
|
|
1234
|
+
"required": false,
|
|
1235
|
+
"optional": false,
|
|
1236
|
+
"docs": {
|
|
1237
|
+
"tags": [],
|
|
1238
|
+
"text": ""
|
|
1239
|
+
},
|
|
1240
|
+
"getter": false,
|
|
1241
|
+
"setter": false,
|
|
1242
|
+
"reflect": false,
|
|
1243
|
+
"attribute": "size",
|
|
1244
|
+
"defaultValue": "'md'"
|
|
1245
|
+
},
|
|
1246
|
+
"theme": {
|
|
1247
|
+
"type": "string",
|
|
1248
|
+
"mutable": false,
|
|
1249
|
+
"complexType": {
|
|
1250
|
+
"original": "'light' | 'dark'",
|
|
1251
|
+
"resolved": "\"dark\" | \"light\"",
|
|
1252
|
+
"references": {}
|
|
1253
|
+
},
|
|
1254
|
+
"required": false,
|
|
1255
|
+
"optional": false,
|
|
1256
|
+
"docs": {
|
|
1257
|
+
"tags": [],
|
|
1258
|
+
"text": ""
|
|
1259
|
+
},
|
|
1260
|
+
"getter": false,
|
|
1261
|
+
"setter": false,
|
|
1262
|
+
"reflect": false,
|
|
1263
|
+
"attribute": "theme",
|
|
1264
|
+
"defaultValue": "'light'"
|
|
1265
|
+
},
|
|
1266
|
+
"showGlow": {
|
|
1267
|
+
"type": "boolean",
|
|
1268
|
+
"mutable": false,
|
|
1269
|
+
"complexType": {
|
|
1270
|
+
"original": "boolean",
|
|
1271
|
+
"resolved": "boolean",
|
|
1272
|
+
"references": {}
|
|
1273
|
+
},
|
|
1274
|
+
"required": false,
|
|
1275
|
+
"optional": false,
|
|
1276
|
+
"docs": {
|
|
1277
|
+
"tags": [],
|
|
1278
|
+
"text": ""
|
|
1279
|
+
},
|
|
1280
|
+
"getter": false,
|
|
1281
|
+
"setter": false,
|
|
1282
|
+
"reflect": false,
|
|
1283
|
+
"attribute": "show-glow",
|
|
1284
|
+
"defaultValue": "false"
|
|
1285
|
+
},
|
|
1286
|
+
"connectorWidth": {
|
|
1287
|
+
"type": "number",
|
|
1288
|
+
"mutable": false,
|
|
1289
|
+
"complexType": {
|
|
1290
|
+
"original": "number",
|
|
1291
|
+
"resolved": "number",
|
|
1292
|
+
"references": {}
|
|
1293
|
+
},
|
|
1294
|
+
"required": false,
|
|
1295
|
+
"optional": false,
|
|
1296
|
+
"docs": {
|
|
1297
|
+
"tags": [],
|
|
1298
|
+
"text": ""
|
|
1299
|
+
},
|
|
1300
|
+
"getter": false,
|
|
1301
|
+
"setter": false,
|
|
1302
|
+
"reflect": false,
|
|
1303
|
+
"attribute": "connector-width",
|
|
1304
|
+
"defaultValue": "1"
|
|
1305
|
+
},
|
|
1306
|
+
"connectorColor": {
|
|
1307
|
+
"type": "string",
|
|
1308
|
+
"mutable": false,
|
|
1309
|
+
"complexType": {
|
|
1310
|
+
"original": "string",
|
|
1311
|
+
"resolved": "string",
|
|
1312
|
+
"references": {}
|
|
1313
|
+
},
|
|
1314
|
+
"required": false,
|
|
1315
|
+
"optional": false,
|
|
1316
|
+
"docs": {
|
|
1317
|
+
"tags": [],
|
|
1318
|
+
"text": ""
|
|
1319
|
+
},
|
|
1320
|
+
"getter": false,
|
|
1321
|
+
"setter": false,
|
|
1322
|
+
"reflect": false,
|
|
1323
|
+
"attribute": "connector-color",
|
|
1324
|
+
"defaultValue": "''"
|
|
1325
|
+
},
|
|
1326
|
+
"connectorOpacity": {
|
|
1327
|
+
"type": "number",
|
|
1328
|
+
"mutable": false,
|
|
1329
|
+
"complexType": {
|
|
1330
|
+
"original": "number",
|
|
1331
|
+
"resolved": "number",
|
|
1332
|
+
"references": {}
|
|
1333
|
+
},
|
|
1334
|
+
"required": false,
|
|
1335
|
+
"optional": false,
|
|
1336
|
+
"docs": {
|
|
1337
|
+
"tags": [],
|
|
1338
|
+
"text": ""
|
|
1339
|
+
},
|
|
1340
|
+
"getter": false,
|
|
1341
|
+
"setter": false,
|
|
1342
|
+
"reflect": false,
|
|
1343
|
+
"attribute": "connector-opacity",
|
|
1344
|
+
"defaultValue": "1"
|
|
1345
|
+
},
|
|
1346
|
+
"connectorShape": {
|
|
1347
|
+
"type": "string",
|
|
1348
|
+
"mutable": false,
|
|
1349
|
+
"complexType": {
|
|
1350
|
+
"original": "'rounded' | 'square'",
|
|
1351
|
+
"resolved": "\"rounded\" | \"square\"",
|
|
1352
|
+
"references": {}
|
|
1353
|
+
},
|
|
1354
|
+
"required": false,
|
|
1355
|
+
"optional": false,
|
|
1356
|
+
"docs": {
|
|
1357
|
+
"tags": [],
|
|
1358
|
+
"text": ""
|
|
1359
|
+
},
|
|
1360
|
+
"getter": false,
|
|
1361
|
+
"setter": false,
|
|
1362
|
+
"reflect": false,
|
|
1363
|
+
"attribute": "connector-shape",
|
|
1364
|
+
"defaultValue": "'rounded'"
|
|
1365
|
+
},
|
|
1366
|
+
"iconLibrary": {
|
|
1367
|
+
"type": "string",
|
|
1368
|
+
"mutable": false,
|
|
1369
|
+
"complexType": {
|
|
1370
|
+
"original": "string",
|
|
1371
|
+
"resolved": "string",
|
|
1372
|
+
"references": {}
|
|
1373
|
+
},
|
|
1374
|
+
"required": false,
|
|
1375
|
+
"optional": false,
|
|
1376
|
+
"docs": {
|
|
1377
|
+
"tags": [],
|
|
1378
|
+
"text": ""
|
|
1379
|
+
},
|
|
1380
|
+
"getter": false,
|
|
1381
|
+
"setter": false,
|
|
1382
|
+
"reflect": false,
|
|
1383
|
+
"attribute": "icon-library",
|
|
1384
|
+
"defaultValue": "'lucide'"
|
|
1385
|
+
},
|
|
1386
|
+
"inlineEdit": {
|
|
1387
|
+
"type": "boolean",
|
|
1388
|
+
"mutable": false,
|
|
1389
|
+
"complexType": {
|
|
1390
|
+
"original": "boolean",
|
|
1391
|
+
"resolved": "boolean",
|
|
1392
|
+
"references": {}
|
|
1393
|
+
},
|
|
1394
|
+
"required": false,
|
|
1395
|
+
"optional": false,
|
|
1396
|
+
"docs": {
|
|
1397
|
+
"tags": [],
|
|
1398
|
+
"text": ""
|
|
1399
|
+
},
|
|
1400
|
+
"getter": false,
|
|
1401
|
+
"setter": false,
|
|
1402
|
+
"reflect": false,
|
|
1403
|
+
"attribute": "inline-edit",
|
|
1404
|
+
"defaultValue": "false"
|
|
1405
|
+
},
|
|
1406
|
+
"contextMenuEnabled": {
|
|
1407
|
+
"type": "boolean",
|
|
1408
|
+
"mutable": false,
|
|
1409
|
+
"complexType": {
|
|
1410
|
+
"original": "boolean",
|
|
1411
|
+
"resolved": "boolean",
|
|
1412
|
+
"references": {}
|
|
1413
|
+
},
|
|
1414
|
+
"required": false,
|
|
1415
|
+
"optional": false,
|
|
1416
|
+
"docs": {
|
|
1417
|
+
"tags": [],
|
|
1418
|
+
"text": ""
|
|
1419
|
+
},
|
|
1420
|
+
"getter": false,
|
|
1421
|
+
"setter": false,
|
|
1422
|
+
"reflect": false,
|
|
1423
|
+
"attribute": "context-menu-enabled",
|
|
1424
|
+
"defaultValue": "false"
|
|
1425
|
+
},
|
|
1426
|
+
"undoRedoEnabled": {
|
|
1427
|
+
"type": "boolean",
|
|
1428
|
+
"mutable": false,
|
|
1429
|
+
"complexType": {
|
|
1430
|
+
"original": "boolean",
|
|
1431
|
+
"resolved": "boolean",
|
|
1432
|
+
"references": {}
|
|
1433
|
+
},
|
|
1434
|
+
"required": false,
|
|
1435
|
+
"optional": false,
|
|
1436
|
+
"docs": {
|
|
1437
|
+
"tags": [],
|
|
1438
|
+
"text": ""
|
|
1439
|
+
},
|
|
1440
|
+
"getter": false,
|
|
1441
|
+
"setter": false,
|
|
1442
|
+
"reflect": false,
|
|
1443
|
+
"attribute": "undo-redo-enabled",
|
|
1444
|
+
"defaultValue": "false"
|
|
1445
|
+
},
|
|
1446
|
+
"lazyLoad": {
|
|
1447
|
+
"type": "boolean",
|
|
1448
|
+
"mutable": false,
|
|
1449
|
+
"complexType": {
|
|
1450
|
+
"original": "boolean",
|
|
1451
|
+
"resolved": "boolean",
|
|
1452
|
+
"references": {}
|
|
1453
|
+
},
|
|
1454
|
+
"required": false,
|
|
1455
|
+
"optional": false,
|
|
1456
|
+
"docs": {
|
|
1457
|
+
"tags": [],
|
|
1458
|
+
"text": ""
|
|
1459
|
+
},
|
|
1460
|
+
"getter": false,
|
|
1461
|
+
"setter": false,
|
|
1462
|
+
"reflect": false,
|
|
1463
|
+
"attribute": "lazy-load",
|
|
1464
|
+
"defaultValue": "false"
|
|
1465
|
+
},
|
|
1466
|
+
"virtualScroll": {
|
|
1467
|
+
"type": "boolean",
|
|
1468
|
+
"mutable": false,
|
|
1469
|
+
"complexType": {
|
|
1470
|
+
"original": "boolean",
|
|
1471
|
+
"resolved": "boolean",
|
|
1472
|
+
"references": {}
|
|
1473
|
+
},
|
|
1474
|
+
"required": false,
|
|
1475
|
+
"optional": false,
|
|
1476
|
+
"docs": {
|
|
1477
|
+
"tags": [],
|
|
1478
|
+
"text": ""
|
|
1479
|
+
},
|
|
1480
|
+
"getter": false,
|
|
1481
|
+
"setter": false,
|
|
1482
|
+
"reflect": false,
|
|
1483
|
+
"attribute": "virtual-scroll",
|
|
1484
|
+
"defaultValue": "false"
|
|
1485
|
+
},
|
|
1486
|
+
"virtualScrollHeight": {
|
|
1487
|
+
"type": "number",
|
|
1488
|
+
"mutable": false,
|
|
1489
|
+
"complexType": {
|
|
1490
|
+
"original": "number",
|
|
1491
|
+
"resolved": "number",
|
|
1492
|
+
"references": {}
|
|
1493
|
+
},
|
|
1494
|
+
"required": false,
|
|
1495
|
+
"optional": false,
|
|
1496
|
+
"docs": {
|
|
1497
|
+
"tags": [],
|
|
1498
|
+
"text": ""
|
|
1499
|
+
},
|
|
1500
|
+
"getter": false,
|
|
1501
|
+
"setter": false,
|
|
1502
|
+
"reflect": false,
|
|
1503
|
+
"attribute": "virtual-scroll-height",
|
|
1504
|
+
"defaultValue": "400"
|
|
1505
|
+
},
|
|
1506
|
+
"showNodeActions": {
|
|
1507
|
+
"type": "boolean",
|
|
1508
|
+
"mutable": false,
|
|
1509
|
+
"complexType": {
|
|
1510
|
+
"original": "boolean",
|
|
1511
|
+
"resolved": "boolean",
|
|
1512
|
+
"references": {}
|
|
1513
|
+
},
|
|
1514
|
+
"required": false,
|
|
1515
|
+
"optional": false,
|
|
1516
|
+
"docs": {
|
|
1517
|
+
"tags": [],
|
|
1518
|
+
"text": ""
|
|
1519
|
+
},
|
|
1520
|
+
"getter": false,
|
|
1521
|
+
"setter": false,
|
|
1522
|
+
"reflect": false,
|
|
1523
|
+
"attribute": "show-node-actions",
|
|
1524
|
+
"defaultValue": "true"
|
|
1525
|
+
},
|
|
1526
|
+
"showAvatars": {
|
|
1527
|
+
"type": "boolean",
|
|
1528
|
+
"mutable": false,
|
|
1529
|
+
"complexType": {
|
|
1530
|
+
"original": "boolean",
|
|
1531
|
+
"resolved": "boolean",
|
|
1532
|
+
"references": {}
|
|
1533
|
+
},
|
|
1534
|
+
"required": false,
|
|
1535
|
+
"optional": false,
|
|
1536
|
+
"docs": {
|
|
1537
|
+
"tags": [],
|
|
1538
|
+
"text": ""
|
|
1539
|
+
},
|
|
1540
|
+
"getter": false,
|
|
1541
|
+
"setter": false,
|
|
1542
|
+
"reflect": false,
|
|
1543
|
+
"attribute": "show-avatars",
|
|
1544
|
+
"defaultValue": "true"
|
|
1545
|
+
},
|
|
1546
|
+
"expandIconType": {
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"mutable": false,
|
|
1549
|
+
"complexType": {
|
|
1550
|
+
"original": "'chevron' | 'plus-minus' | 'arrow' | 'caret' | 'custom'",
|
|
1551
|
+
"resolved": "\"arrow\" | \"caret\" | \"chevron\" | \"custom\" | \"plus-minus\"",
|
|
1552
|
+
"references": {}
|
|
1553
|
+
},
|
|
1554
|
+
"required": false,
|
|
1555
|
+
"optional": false,
|
|
1556
|
+
"docs": {
|
|
1557
|
+
"tags": [],
|
|
1558
|
+
"text": ""
|
|
1559
|
+
},
|
|
1560
|
+
"getter": false,
|
|
1561
|
+
"setter": false,
|
|
1562
|
+
"reflect": false,
|
|
1563
|
+
"attribute": "expand-icon-type",
|
|
1564
|
+
"defaultValue": "'chevron'"
|
|
1565
|
+
},
|
|
1566
|
+
"expandedIcon": {
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"mutable": false,
|
|
1569
|
+
"complexType": {
|
|
1570
|
+
"original": "string",
|
|
1571
|
+
"resolved": "string",
|
|
1572
|
+
"references": {}
|
|
1573
|
+
},
|
|
1574
|
+
"required": false,
|
|
1575
|
+
"optional": false,
|
|
1576
|
+
"docs": {
|
|
1577
|
+
"tags": [],
|
|
1578
|
+
"text": ""
|
|
1579
|
+
},
|
|
1580
|
+
"getter": false,
|
|
1581
|
+
"setter": false,
|
|
1582
|
+
"reflect": false,
|
|
1583
|
+
"attribute": "expanded-icon",
|
|
1584
|
+
"defaultValue": "''"
|
|
1585
|
+
},
|
|
1586
|
+
"collapsedIcon": {
|
|
1587
|
+
"type": "string",
|
|
1588
|
+
"mutable": false,
|
|
1589
|
+
"complexType": {
|
|
1590
|
+
"original": "string",
|
|
1591
|
+
"resolved": "string",
|
|
1592
|
+
"references": {}
|
|
1593
|
+
},
|
|
1594
|
+
"required": false,
|
|
1595
|
+
"optional": false,
|
|
1596
|
+
"docs": {
|
|
1597
|
+
"tags": [],
|
|
1598
|
+
"text": ""
|
|
1599
|
+
},
|
|
1600
|
+
"getter": false,
|
|
1601
|
+
"setter": false,
|
|
1602
|
+
"reflect": false,
|
|
1603
|
+
"attribute": "collapsed-icon",
|
|
1604
|
+
"defaultValue": "''"
|
|
1605
|
+
},
|
|
1606
|
+
"expandIconSize": {
|
|
1607
|
+
"type": "string",
|
|
1608
|
+
"mutable": false,
|
|
1609
|
+
"complexType": {
|
|
1610
|
+
"original": "string",
|
|
1611
|
+
"resolved": "string",
|
|
1612
|
+
"references": {}
|
|
1613
|
+
},
|
|
1614
|
+
"required": false,
|
|
1615
|
+
"optional": false,
|
|
1616
|
+
"docs": {
|
|
1617
|
+
"tags": [],
|
|
1618
|
+
"text": ""
|
|
1619
|
+
},
|
|
1620
|
+
"getter": false,
|
|
1621
|
+
"setter": false,
|
|
1622
|
+
"reflect": false,
|
|
1623
|
+
"attribute": "expand-icon-size",
|
|
1624
|
+
"defaultValue": "'14px'"
|
|
1625
|
+
},
|
|
1626
|
+
"expandIconColor": {
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"mutable": false,
|
|
1629
|
+
"complexType": {
|
|
1630
|
+
"original": "string",
|
|
1631
|
+
"resolved": "string",
|
|
1632
|
+
"references": {}
|
|
1633
|
+
},
|
|
1634
|
+
"required": false,
|
|
1635
|
+
"optional": false,
|
|
1636
|
+
"docs": {
|
|
1637
|
+
"tags": [],
|
|
1638
|
+
"text": ""
|
|
1639
|
+
},
|
|
1640
|
+
"getter": false,
|
|
1641
|
+
"setter": false,
|
|
1642
|
+
"reflect": false,
|
|
1643
|
+
"attribute": "expand-icon-color",
|
|
1644
|
+
"defaultValue": "''"
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
static get states() {
|
|
1649
|
+
return {
|
|
1650
|
+
"internalNodes": {},
|
|
1651
|
+
"selectedNodes": {},
|
|
1652
|
+
"searchTerm": {},
|
|
1653
|
+
"draggedNode": {},
|
|
1654
|
+
"focusedNodeId": {},
|
|
1655
|
+
"editingNodeId": {},
|
|
1656
|
+
"editingValue": {},
|
|
1657
|
+
"contextMenuVisible": {},
|
|
1658
|
+
"contextMenuNode": {},
|
|
1659
|
+
"contextMenuX": {},
|
|
1660
|
+
"contextMenuY": {},
|
|
1661
|
+
"undoStack": {},
|
|
1662
|
+
"redoStack": {},
|
|
1663
|
+
"dragOverNodeId": {},
|
|
1664
|
+
"dragPosition": {}
|
|
1665
|
+
};
|
|
1666
|
+
}
|
|
1667
|
+
static get events() {
|
|
1668
|
+
return [{
|
|
1669
|
+
"method": "nodeClick",
|
|
1670
|
+
"name": "nodeClick",
|
|
1671
|
+
"bubbles": true,
|
|
1672
|
+
"cancelable": true,
|
|
1673
|
+
"composed": true,
|
|
1674
|
+
"docs": {
|
|
1675
|
+
"tags": [],
|
|
1676
|
+
"text": ""
|
|
1677
|
+
},
|
|
1678
|
+
"complexType": {
|
|
1679
|
+
"original": "{ node: TreeNode; path: (string | number)[] }",
|
|
1680
|
+
"resolved": "{ node: TreeNode; path: (string | number)[]; }",
|
|
1681
|
+
"references": {
|
|
1682
|
+
"TreeNode": {
|
|
1683
|
+
"location": "import",
|
|
1684
|
+
"path": "./types",
|
|
1685
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1686
|
+
"referenceLocation": "TreeNode"
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}, {
|
|
1691
|
+
"method": "nodeExpand",
|
|
1692
|
+
"name": "nodeExpand",
|
|
1693
|
+
"bubbles": true,
|
|
1694
|
+
"cancelable": true,
|
|
1695
|
+
"composed": true,
|
|
1696
|
+
"docs": {
|
|
1697
|
+
"tags": [],
|
|
1698
|
+
"text": ""
|
|
1699
|
+
},
|
|
1700
|
+
"complexType": {
|
|
1701
|
+
"original": "{ node: TreeNode; expanded: boolean }",
|
|
1702
|
+
"resolved": "{ node: TreeNode; expanded: boolean; }",
|
|
1703
|
+
"references": {
|
|
1704
|
+
"TreeNode": {
|
|
1705
|
+
"location": "import",
|
|
1706
|
+
"path": "./types",
|
|
1707
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1708
|
+
"referenceLocation": "TreeNode"
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
}, {
|
|
1713
|
+
"method": "nodeSelect",
|
|
1714
|
+
"name": "nodeSelect",
|
|
1715
|
+
"bubbles": true,
|
|
1716
|
+
"cancelable": true,
|
|
1717
|
+
"composed": true,
|
|
1718
|
+
"docs": {
|
|
1719
|
+
"tags": [],
|
|
1720
|
+
"text": ""
|
|
1721
|
+
},
|
|
1722
|
+
"complexType": {
|
|
1723
|
+
"original": "{ node: TreeNode; selected: boolean }",
|
|
1724
|
+
"resolved": "{ node: TreeNode; selected: boolean; }",
|
|
1725
|
+
"references": {
|
|
1726
|
+
"TreeNode": {
|
|
1727
|
+
"location": "import",
|
|
1728
|
+
"path": "./types",
|
|
1729
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1730
|
+
"referenceLocation": "TreeNode"
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}, {
|
|
1735
|
+
"method": "nodeCheck",
|
|
1736
|
+
"name": "nodeCheck",
|
|
1737
|
+
"bubbles": true,
|
|
1738
|
+
"cancelable": true,
|
|
1739
|
+
"composed": true,
|
|
1740
|
+
"docs": {
|
|
1741
|
+
"tags": [],
|
|
1742
|
+
"text": ""
|
|
1743
|
+
},
|
|
1744
|
+
"complexType": {
|
|
1745
|
+
"original": "{ node: TreeNode; checked: boolean; indeterminate: boolean }",
|
|
1746
|
+
"resolved": "{ node: TreeNode; checked: boolean; indeterminate: boolean; }",
|
|
1747
|
+
"references": {
|
|
1748
|
+
"TreeNode": {
|
|
1749
|
+
"location": "import",
|
|
1750
|
+
"path": "./types",
|
|
1751
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1752
|
+
"referenceLocation": "TreeNode"
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}, {
|
|
1757
|
+
"method": "nodeDragStart",
|
|
1758
|
+
"name": "nodeDragStart",
|
|
1759
|
+
"bubbles": true,
|
|
1760
|
+
"cancelable": true,
|
|
1761
|
+
"composed": true,
|
|
1762
|
+
"docs": {
|
|
1763
|
+
"tags": [],
|
|
1764
|
+
"text": ""
|
|
1765
|
+
},
|
|
1766
|
+
"complexType": {
|
|
1767
|
+
"original": "TreeNode",
|
|
1768
|
+
"resolved": "TreeNode",
|
|
1769
|
+
"references": {
|
|
1770
|
+
"TreeNode": {
|
|
1771
|
+
"location": "import",
|
|
1772
|
+
"path": "./types",
|
|
1773
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1774
|
+
"referenceLocation": "TreeNode"
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
}, {
|
|
1779
|
+
"method": "nodeDrop",
|
|
1780
|
+
"name": "nodeDrop",
|
|
1781
|
+
"bubbles": true,
|
|
1782
|
+
"cancelable": true,
|
|
1783
|
+
"composed": true,
|
|
1784
|
+
"docs": {
|
|
1785
|
+
"tags": [],
|
|
1786
|
+
"text": ""
|
|
1787
|
+
},
|
|
1788
|
+
"complexType": {
|
|
1789
|
+
"original": "TreeDropEvent",
|
|
1790
|
+
"resolved": "TreeDropEvent",
|
|
1791
|
+
"references": {
|
|
1792
|
+
"TreeDropEvent": {
|
|
1793
|
+
"location": "import",
|
|
1794
|
+
"path": "./types",
|
|
1795
|
+
"id": "src/components/tree/types.ts::TreeDropEvent",
|
|
1796
|
+
"referenceLocation": "TreeDropEvent"
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}, {
|
|
1801
|
+
"method": "treeChange",
|
|
1802
|
+
"name": "treeChange",
|
|
1803
|
+
"bubbles": true,
|
|
1804
|
+
"cancelable": true,
|
|
1805
|
+
"composed": true,
|
|
1806
|
+
"docs": {
|
|
1807
|
+
"tags": [],
|
|
1808
|
+
"text": ""
|
|
1809
|
+
},
|
|
1810
|
+
"complexType": {
|
|
1811
|
+
"original": "{ nodes: TreeNode[]; selectedNodes: (string | number)[] }",
|
|
1812
|
+
"resolved": "{ nodes: TreeNode[]; selectedNodes: (string | number)[]; }",
|
|
1813
|
+
"references": {
|
|
1814
|
+
"TreeNode": {
|
|
1815
|
+
"location": "import",
|
|
1816
|
+
"path": "./types",
|
|
1817
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1818
|
+
"referenceLocation": "TreeNode"
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
}, {
|
|
1823
|
+
"method": "nodeAction",
|
|
1824
|
+
"name": "nodeAction",
|
|
1825
|
+
"bubbles": true,
|
|
1826
|
+
"cancelable": true,
|
|
1827
|
+
"composed": true,
|
|
1828
|
+
"docs": {
|
|
1829
|
+
"tags": [],
|
|
1830
|
+
"text": ""
|
|
1831
|
+
},
|
|
1832
|
+
"complexType": {
|
|
1833
|
+
"original": "{ node: TreeNode; action: string }",
|
|
1834
|
+
"resolved": "{ node: TreeNode; action: string; }",
|
|
1835
|
+
"references": {
|
|
1836
|
+
"TreeNode": {
|
|
1837
|
+
"location": "import",
|
|
1838
|
+
"path": "./types",
|
|
1839
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1840
|
+
"referenceLocation": "TreeNode"
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}, {
|
|
1845
|
+
"method": "nodeEdit",
|
|
1846
|
+
"name": "nodeEdit",
|
|
1847
|
+
"bubbles": true,
|
|
1848
|
+
"cancelable": true,
|
|
1849
|
+
"composed": true,
|
|
1850
|
+
"docs": {
|
|
1851
|
+
"tags": [],
|
|
1852
|
+
"text": ""
|
|
1853
|
+
},
|
|
1854
|
+
"complexType": {
|
|
1855
|
+
"original": "{ node: TreeNode; newLabel: string; oldLabel: string }",
|
|
1856
|
+
"resolved": "{ node: TreeNode; newLabel: string; oldLabel: string; }",
|
|
1857
|
+
"references": {
|
|
1858
|
+
"TreeNode": {
|
|
1859
|
+
"location": "import",
|
|
1860
|
+
"path": "./types",
|
|
1861
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1862
|
+
"referenceLocation": "TreeNode"
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}, {
|
|
1867
|
+
"method": "nodeContextMenu",
|
|
1868
|
+
"name": "nodeContextMenu",
|
|
1869
|
+
"bubbles": true,
|
|
1870
|
+
"cancelable": true,
|
|
1871
|
+
"composed": true,
|
|
1872
|
+
"docs": {
|
|
1873
|
+
"tags": [],
|
|
1874
|
+
"text": ""
|
|
1875
|
+
},
|
|
1876
|
+
"complexType": {
|
|
1877
|
+
"original": "{ node: TreeNode; x: number; y: number }",
|
|
1878
|
+
"resolved": "{ node: TreeNode; x: number; y: number; }",
|
|
1879
|
+
"references": {
|
|
1880
|
+
"TreeNode": {
|
|
1881
|
+
"location": "import",
|
|
1882
|
+
"path": "./types",
|
|
1883
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1884
|
+
"referenceLocation": "TreeNode"
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
}, {
|
|
1889
|
+
"method": "nodeLazyLoad",
|
|
1890
|
+
"name": "nodeLazyLoad",
|
|
1891
|
+
"bubbles": true,
|
|
1892
|
+
"cancelable": true,
|
|
1893
|
+
"composed": true,
|
|
1894
|
+
"docs": {
|
|
1895
|
+
"tags": [],
|
|
1896
|
+
"text": ""
|
|
1897
|
+
},
|
|
1898
|
+
"complexType": {
|
|
1899
|
+
"original": "{ node: TreeNode }",
|
|
1900
|
+
"resolved": "{ node: TreeNode; }",
|
|
1901
|
+
"references": {
|
|
1902
|
+
"TreeNode": {
|
|
1903
|
+
"location": "import",
|
|
1904
|
+
"path": "./types",
|
|
1905
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1906
|
+
"referenceLocation": "TreeNode"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}, {
|
|
1911
|
+
"method": "nodeAdd",
|
|
1912
|
+
"name": "nodeAdd",
|
|
1913
|
+
"bubbles": true,
|
|
1914
|
+
"cancelable": true,
|
|
1915
|
+
"composed": true,
|
|
1916
|
+
"docs": {
|
|
1917
|
+
"tags": [],
|
|
1918
|
+
"text": ""
|
|
1919
|
+
},
|
|
1920
|
+
"complexType": {
|
|
1921
|
+
"original": "{ parentId: string | number | null; node: TreeNode }",
|
|
1922
|
+
"resolved": "{ parentId: string | number; node: TreeNode; }",
|
|
1923
|
+
"references": {
|
|
1924
|
+
"TreeNode": {
|
|
1925
|
+
"location": "import",
|
|
1926
|
+
"path": "./types",
|
|
1927
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1928
|
+
"referenceLocation": "TreeNode"
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
}, {
|
|
1933
|
+
"method": "nodeRemove",
|
|
1934
|
+
"name": "nodeRemove",
|
|
1935
|
+
"bubbles": true,
|
|
1936
|
+
"cancelable": true,
|
|
1937
|
+
"composed": true,
|
|
1938
|
+
"docs": {
|
|
1939
|
+
"tags": [],
|
|
1940
|
+
"text": ""
|
|
1941
|
+
},
|
|
1942
|
+
"complexType": {
|
|
1943
|
+
"original": "{ node: TreeNode }",
|
|
1944
|
+
"resolved": "{ node: TreeNode; }",
|
|
1945
|
+
"references": {
|
|
1946
|
+
"TreeNode": {
|
|
1947
|
+
"location": "import",
|
|
1948
|
+
"path": "./types",
|
|
1949
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
1950
|
+
"referenceLocation": "TreeNode"
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
}, {
|
|
1955
|
+
"method": "nodeMove",
|
|
1956
|
+
"name": "nodeMove",
|
|
1957
|
+
"bubbles": true,
|
|
1958
|
+
"cancelable": true,
|
|
1959
|
+
"composed": true,
|
|
1960
|
+
"docs": {
|
|
1961
|
+
"tags": [],
|
|
1962
|
+
"text": ""
|
|
1963
|
+
},
|
|
1964
|
+
"complexType": {
|
|
1965
|
+
"original": "{ nodeId: string | number; targetId: string | number; position: 'before' | 'inside' | 'after' }",
|
|
1966
|
+
"resolved": "{ nodeId: string | number; targetId: string | number; position: \"after\" | \"before\" | \"inside\"; }",
|
|
1967
|
+
"references": {}
|
|
1968
|
+
}
|
|
1969
|
+
}];
|
|
1970
|
+
}
|
|
1971
|
+
static get methods() {
|
|
1972
|
+
return {
|
|
1973
|
+
"expandAllNodes": {
|
|
1974
|
+
"complexType": {
|
|
1975
|
+
"signature": "() => Promise<void>",
|
|
1976
|
+
"parameters": [],
|
|
1977
|
+
"references": {
|
|
1978
|
+
"Promise": {
|
|
1979
|
+
"location": "global",
|
|
1980
|
+
"id": "global::Promise"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
"return": "Promise<void>"
|
|
1984
|
+
},
|
|
1985
|
+
"docs": {
|
|
1986
|
+
"text": "",
|
|
1987
|
+
"tags": []
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
"collapseAllNodes": {
|
|
1991
|
+
"complexType": {
|
|
1992
|
+
"signature": "() => Promise<void>",
|
|
1993
|
+
"parameters": [],
|
|
1994
|
+
"references": {
|
|
1995
|
+
"Promise": {
|
|
1996
|
+
"location": "global",
|
|
1997
|
+
"id": "global::Promise"
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
"return": "Promise<void>"
|
|
2001
|
+
},
|
|
2002
|
+
"docs": {
|
|
2003
|
+
"text": "",
|
|
2004
|
+
"tags": []
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
"selectNode": {
|
|
2008
|
+
"complexType": {
|
|
2009
|
+
"signature": "(id: string | number) => Promise<void>",
|
|
2010
|
+
"parameters": [{
|
|
2011
|
+
"name": "id",
|
|
2012
|
+
"type": "string | number",
|
|
2013
|
+
"docs": ""
|
|
2014
|
+
}],
|
|
2015
|
+
"references": {
|
|
2016
|
+
"Promise": {
|
|
2017
|
+
"location": "global",
|
|
2018
|
+
"id": "global::Promise"
|
|
2019
|
+
}
|
|
2020
|
+
},
|
|
2021
|
+
"return": "Promise<void>"
|
|
2022
|
+
},
|
|
2023
|
+
"docs": {
|
|
2024
|
+
"text": "",
|
|
2025
|
+
"tags": []
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
"getNodePath": {
|
|
2029
|
+
"complexType": {
|
|
2030
|
+
"signature": "(id: string | number) => Promise<(string | number)[]>",
|
|
2031
|
+
"parameters": [{
|
|
2032
|
+
"name": "id",
|
|
2033
|
+
"type": "string | number",
|
|
2034
|
+
"docs": ""
|
|
2035
|
+
}],
|
|
2036
|
+
"references": {
|
|
2037
|
+
"Promise": {
|
|
2038
|
+
"location": "global",
|
|
2039
|
+
"id": "global::Promise"
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"return": "Promise<(string | number)[]>"
|
|
2043
|
+
},
|
|
2044
|
+
"docs": {
|
|
2045
|
+
"text": "",
|
|
2046
|
+
"tags": []
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
"getBreadcrumb": {
|
|
2050
|
+
"complexType": {
|
|
2051
|
+
"signature": "(id: string | number) => Promise<TreeNodePath[]>",
|
|
2052
|
+
"parameters": [{
|
|
2053
|
+
"name": "id",
|
|
2054
|
+
"type": "string | number",
|
|
2055
|
+
"docs": ""
|
|
2056
|
+
}],
|
|
2057
|
+
"references": {
|
|
2058
|
+
"Promise": {
|
|
2059
|
+
"location": "global",
|
|
2060
|
+
"id": "global::Promise"
|
|
2061
|
+
},
|
|
2062
|
+
"TreeNodePath": {
|
|
2063
|
+
"location": "import",
|
|
2064
|
+
"path": "./types",
|
|
2065
|
+
"id": "src/components/tree/types.ts::TreeNodePath",
|
|
2066
|
+
"referenceLocation": "TreeNodePath"
|
|
2067
|
+
}
|
|
2068
|
+
},
|
|
2069
|
+
"return": "Promise<TreeNodePath[]>"
|
|
2070
|
+
},
|
|
2071
|
+
"docs": {
|
|
2072
|
+
"text": "",
|
|
2073
|
+
"tags": []
|
|
2074
|
+
}
|
|
2075
|
+
},
|
|
2076
|
+
"updateNode": {
|
|
2077
|
+
"complexType": {
|
|
2078
|
+
"signature": "(id: string | number, data: Partial<TreeNode>) => Promise<void>",
|
|
2079
|
+
"parameters": [{
|
|
2080
|
+
"name": "id",
|
|
2081
|
+
"type": "string | number",
|
|
2082
|
+
"docs": ""
|
|
2083
|
+
}, {
|
|
2084
|
+
"name": "data",
|
|
2085
|
+
"type": "{ id?: string | number; label?: string; key?: string | number; tag?: string; badge?: string; counter?: number; color?: StatusColor; expanded?: boolean; selected?: boolean; checked?: boolean; locked?: boolean; lockTooltip?: string; iconDate?: IconItem; avatar?: string; avatarInitials?: string; avatars?: { src?: string; label?: string; initials?: string; color?: string; }[]; isLeaf?: boolean; className?: string; customContent?: string; loading?: boolean; indeterminate?: boolean; actions?: TreeAction[]; connectorColor?: string; description?: string; href?: string; level?: number; path?: (string | number)[]; disabled?: boolean; icon?: string; iconLibrary?: IconLibrary; metadata?: Record<string, any>; children?: TreeNode[]; }",
|
|
2086
|
+
"docs": ""
|
|
2087
|
+
}],
|
|
2088
|
+
"references": {
|
|
2089
|
+
"Promise": {
|
|
2090
|
+
"location": "global",
|
|
2091
|
+
"id": "global::Promise"
|
|
2092
|
+
},
|
|
2093
|
+
"Partial": {
|
|
2094
|
+
"location": "global",
|
|
2095
|
+
"id": "global::Partial"
|
|
2096
|
+
},
|
|
2097
|
+
"TreeNode": {
|
|
2098
|
+
"location": "import",
|
|
2099
|
+
"path": "./types",
|
|
2100
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2101
|
+
"referenceLocation": "TreeNode"
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
"return": "Promise<void>"
|
|
2105
|
+
},
|
|
2106
|
+
"docs": {
|
|
2107
|
+
"text": "",
|
|
2108
|
+
"tags": []
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
"scrollToNode": {
|
|
2112
|
+
"complexType": {
|
|
2113
|
+
"signature": "(id: string | number) => Promise<void>",
|
|
2114
|
+
"parameters": [{
|
|
2115
|
+
"name": "id",
|
|
2116
|
+
"type": "string | number",
|
|
2117
|
+
"docs": ""
|
|
2118
|
+
}],
|
|
2119
|
+
"references": {
|
|
2120
|
+
"Promise": {
|
|
2121
|
+
"location": "global",
|
|
2122
|
+
"id": "global::Promise"
|
|
2123
|
+
},
|
|
2124
|
+
"HTMLElement": {
|
|
2125
|
+
"location": "global",
|
|
2126
|
+
"id": "global::HTMLElement"
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
"return": "Promise<void>"
|
|
2130
|
+
},
|
|
2131
|
+
"docs": {
|
|
2132
|
+
"text": "",
|
|
2133
|
+
"tags": []
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
"expandByPath": {
|
|
2137
|
+
"complexType": {
|
|
2138
|
+
"signature": "(path: (string | number)[]) => Promise<void>",
|
|
2139
|
+
"parameters": [{
|
|
2140
|
+
"name": "path",
|
|
2141
|
+
"type": "(string | number)[]",
|
|
2142
|
+
"docs": ""
|
|
2143
|
+
}],
|
|
2144
|
+
"references": {
|
|
2145
|
+
"Promise": {
|
|
2146
|
+
"location": "global",
|
|
2147
|
+
"id": "global::Promise"
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
"return": "Promise<void>"
|
|
2151
|
+
},
|
|
2152
|
+
"docs": {
|
|
2153
|
+
"text": "",
|
|
2154
|
+
"tags": []
|
|
2155
|
+
}
|
|
2156
|
+
},
|
|
2157
|
+
"selectByPath": {
|
|
2158
|
+
"complexType": {
|
|
2159
|
+
"signature": "(path: (string | number)[]) => Promise<void>",
|
|
2160
|
+
"parameters": [{
|
|
2161
|
+
"name": "path",
|
|
2162
|
+
"type": "(string | number)[]",
|
|
2163
|
+
"docs": ""
|
|
2164
|
+
}],
|
|
2165
|
+
"references": {
|
|
2166
|
+
"Promise": {
|
|
2167
|
+
"location": "global",
|
|
2168
|
+
"id": "global::Promise"
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
"return": "Promise<void>"
|
|
2172
|
+
},
|
|
2173
|
+
"docs": {
|
|
2174
|
+
"text": "",
|
|
2175
|
+
"tags": []
|
|
2176
|
+
}
|
|
2177
|
+
},
|
|
2178
|
+
"getSelectedNodes": {
|
|
2179
|
+
"complexType": {
|
|
2180
|
+
"signature": "() => Promise<TreeNode[]>",
|
|
2181
|
+
"parameters": [],
|
|
2182
|
+
"references": {
|
|
2183
|
+
"Promise": {
|
|
2184
|
+
"location": "global",
|
|
2185
|
+
"id": "global::Promise"
|
|
2186
|
+
},
|
|
2187
|
+
"TreeNode": {
|
|
2188
|
+
"location": "import",
|
|
2189
|
+
"path": "./types",
|
|
2190
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2191
|
+
"referenceLocation": "TreeNode"
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
"return": "Promise<TreeNode[]>"
|
|
2195
|
+
},
|
|
2196
|
+
"docs": {
|
|
2197
|
+
"text": "",
|
|
2198
|
+
"tags": []
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
"dfsTraversal": {
|
|
2202
|
+
"complexType": {
|
|
2203
|
+
"signature": "(startId?: string | number, order?: \"pre\" | \"post\") => Promise<TreeNode[]>",
|
|
2204
|
+
"parameters": [{
|
|
2205
|
+
"name": "startId",
|
|
2206
|
+
"type": "string | number",
|
|
2207
|
+
"docs": ""
|
|
2208
|
+
}, {
|
|
2209
|
+
"name": "order",
|
|
2210
|
+
"type": "\"pre\" | \"post\"",
|
|
2211
|
+
"docs": ""
|
|
2212
|
+
}],
|
|
2213
|
+
"references": {
|
|
2214
|
+
"Promise": {
|
|
2215
|
+
"location": "global",
|
|
2216
|
+
"id": "global::Promise"
|
|
2217
|
+
},
|
|
2218
|
+
"TreeNode": {
|
|
2219
|
+
"location": "import",
|
|
2220
|
+
"path": "./types",
|
|
2221
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2222
|
+
"referenceLocation": "TreeNode"
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
"return": "Promise<TreeNode[]>"
|
|
2226
|
+
},
|
|
2227
|
+
"docs": {
|
|
2228
|
+
"text": "",
|
|
2229
|
+
"tags": []
|
|
2230
|
+
}
|
|
2231
|
+
},
|
|
2232
|
+
"bfsTraversal": {
|
|
2233
|
+
"complexType": {
|
|
2234
|
+
"signature": "(startId?: string | number) => Promise<TreeNode[]>",
|
|
2235
|
+
"parameters": [{
|
|
2236
|
+
"name": "startId",
|
|
2237
|
+
"type": "string | number",
|
|
2238
|
+
"docs": ""
|
|
2239
|
+
}],
|
|
2240
|
+
"references": {
|
|
2241
|
+
"Promise": {
|
|
2242
|
+
"location": "global",
|
|
2243
|
+
"id": "global::Promise"
|
|
2244
|
+
},
|
|
2245
|
+
"TreeNode": {
|
|
2246
|
+
"location": "import",
|
|
2247
|
+
"path": "./types",
|
|
2248
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2249
|
+
"referenceLocation": "TreeNode"
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
"return": "Promise<TreeNode[]>"
|
|
2253
|
+
},
|
|
2254
|
+
"docs": {
|
|
2255
|
+
"text": "",
|
|
2256
|
+
"tags": []
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
"flattenTree": {
|
|
2260
|
+
"complexType": {
|
|
2261
|
+
"signature": "(nodes?: TreeNode[]) => Promise<FlatNode[]>",
|
|
2262
|
+
"parameters": [{
|
|
2263
|
+
"name": "nodes",
|
|
2264
|
+
"type": "TreeNode[]",
|
|
2265
|
+
"docs": ""
|
|
2266
|
+
}],
|
|
2267
|
+
"references": {
|
|
2268
|
+
"Promise": {
|
|
2269
|
+
"location": "global",
|
|
2270
|
+
"id": "global::Promise"
|
|
2271
|
+
},
|
|
2272
|
+
"FlatNode": {
|
|
2273
|
+
"location": "import",
|
|
2274
|
+
"path": "./types",
|
|
2275
|
+
"id": "src/components/tree/types.ts::FlatNode",
|
|
2276
|
+
"referenceLocation": "FlatNode"
|
|
2277
|
+
},
|
|
2278
|
+
"TreeNode": {
|
|
2279
|
+
"location": "import",
|
|
2280
|
+
"path": "./types",
|
|
2281
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2282
|
+
"referenceLocation": "TreeNode"
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"return": "Promise<FlatNode[]>"
|
|
2286
|
+
},
|
|
2287
|
+
"docs": {
|
|
2288
|
+
"text": "",
|
|
2289
|
+
"tags": []
|
|
2290
|
+
}
|
|
2291
|
+
},
|
|
2292
|
+
"addNode": {
|
|
2293
|
+
"complexType": {
|
|
2294
|
+
"signature": "(parentId: string | number | null, node: TreeNode) => Promise<void>",
|
|
2295
|
+
"parameters": [{
|
|
2296
|
+
"name": "parentId",
|
|
2297
|
+
"type": "string | number",
|
|
2298
|
+
"docs": ""
|
|
2299
|
+
}, {
|
|
2300
|
+
"name": "node",
|
|
2301
|
+
"type": "TreeNode",
|
|
2302
|
+
"docs": ""
|
|
2303
|
+
}],
|
|
2304
|
+
"references": {
|
|
2305
|
+
"Promise": {
|
|
2306
|
+
"location": "global",
|
|
2307
|
+
"id": "global::Promise"
|
|
2308
|
+
},
|
|
2309
|
+
"TreeNode": {
|
|
2310
|
+
"location": "import",
|
|
2311
|
+
"path": "./types",
|
|
2312
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2313
|
+
"referenceLocation": "TreeNode"
|
|
2314
|
+
}
|
|
2315
|
+
},
|
|
2316
|
+
"return": "Promise<void>"
|
|
2317
|
+
},
|
|
2318
|
+
"docs": {
|
|
2319
|
+
"text": "",
|
|
2320
|
+
"tags": []
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
"removeNode": {
|
|
2324
|
+
"complexType": {
|
|
2325
|
+
"signature": "(id: string | number) => Promise<void>",
|
|
2326
|
+
"parameters": [{
|
|
2327
|
+
"name": "id",
|
|
2328
|
+
"type": "string | number",
|
|
2329
|
+
"docs": ""
|
|
2330
|
+
}],
|
|
2331
|
+
"references": {
|
|
2332
|
+
"Promise": {
|
|
2333
|
+
"location": "global",
|
|
2334
|
+
"id": "global::Promise"
|
|
2335
|
+
}
|
|
2336
|
+
},
|
|
2337
|
+
"return": "Promise<void>"
|
|
2338
|
+
},
|
|
2339
|
+
"docs": {
|
|
2340
|
+
"text": "",
|
|
2341
|
+
"tags": []
|
|
2342
|
+
}
|
|
2343
|
+
},
|
|
2344
|
+
"moveNode": {
|
|
2345
|
+
"complexType": {
|
|
2346
|
+
"signature": "(nodeId: string | number, targetId: string | number, position: \"before\" | \"inside\" | \"after\") => Promise<void>",
|
|
2347
|
+
"parameters": [{
|
|
2348
|
+
"name": "nodeId",
|
|
2349
|
+
"type": "string | number",
|
|
2350
|
+
"docs": ""
|
|
2351
|
+
}, {
|
|
2352
|
+
"name": "targetId",
|
|
2353
|
+
"type": "string | number",
|
|
2354
|
+
"docs": ""
|
|
2355
|
+
}, {
|
|
2356
|
+
"name": "position",
|
|
2357
|
+
"type": "\"after\" | \"before\" | \"inside\"",
|
|
2358
|
+
"docs": ""
|
|
2359
|
+
}],
|
|
2360
|
+
"references": {
|
|
2361
|
+
"Promise": {
|
|
2362
|
+
"location": "global",
|
|
2363
|
+
"id": "global::Promise"
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2366
|
+
"return": "Promise<void>"
|
|
2367
|
+
},
|
|
2368
|
+
"docs": {
|
|
2369
|
+
"text": "",
|
|
2370
|
+
"tags": []
|
|
2371
|
+
}
|
|
2372
|
+
},
|
|
2373
|
+
"undo": {
|
|
2374
|
+
"complexType": {
|
|
2375
|
+
"signature": "() => Promise<void>",
|
|
2376
|
+
"parameters": [],
|
|
2377
|
+
"references": {
|
|
2378
|
+
"Promise": {
|
|
2379
|
+
"location": "global",
|
|
2380
|
+
"id": "global::Promise"
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
"return": "Promise<void>"
|
|
2384
|
+
},
|
|
2385
|
+
"docs": {
|
|
2386
|
+
"text": "",
|
|
2387
|
+
"tags": []
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"redo": {
|
|
2391
|
+
"complexType": {
|
|
2392
|
+
"signature": "() => Promise<void>",
|
|
2393
|
+
"parameters": [],
|
|
2394
|
+
"references": {
|
|
2395
|
+
"Promise": {
|
|
2396
|
+
"location": "global",
|
|
2397
|
+
"id": "global::Promise"
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
"return": "Promise<void>"
|
|
2401
|
+
},
|
|
2402
|
+
"docs": {
|
|
2403
|
+
"text": "",
|
|
2404
|
+
"tags": []
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2407
|
+
"diffTrees": {
|
|
2408
|
+
"complexType": {
|
|
2409
|
+
"signature": "(oldNodes: TreeNode[], newNodes: TreeNode[]) => Promise<TreeDiffResult>",
|
|
2410
|
+
"parameters": [{
|
|
2411
|
+
"name": "oldNodes",
|
|
2412
|
+
"type": "TreeNode[]",
|
|
2413
|
+
"docs": ""
|
|
2414
|
+
}, {
|
|
2415
|
+
"name": "newNodes",
|
|
2416
|
+
"type": "TreeNode[]",
|
|
2417
|
+
"docs": ""
|
|
2418
|
+
}],
|
|
2419
|
+
"references": {
|
|
2420
|
+
"Promise": {
|
|
2421
|
+
"location": "global",
|
|
2422
|
+
"id": "global::Promise"
|
|
2423
|
+
},
|
|
2424
|
+
"TreeDiffResult": {
|
|
2425
|
+
"location": "import",
|
|
2426
|
+
"path": "./types",
|
|
2427
|
+
"id": "src/components/tree/types.ts::TreeDiffResult",
|
|
2428
|
+
"referenceLocation": "TreeDiffResult"
|
|
2429
|
+
},
|
|
2430
|
+
"TreeNode": {
|
|
2431
|
+
"location": "import",
|
|
2432
|
+
"path": "./types",
|
|
2433
|
+
"id": "src/components/tree/types.ts::TreeNode",
|
|
2434
|
+
"referenceLocation": "TreeNode"
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
"return": "Promise<TreeDiffResult>"
|
|
2438
|
+
},
|
|
2439
|
+
"docs": {
|
|
2440
|
+
"text": "",
|
|
2441
|
+
"tags": []
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
"getState": {
|
|
2445
|
+
"complexType": {
|
|
2446
|
+
"signature": "() => Promise<TreeState>",
|
|
2447
|
+
"parameters": [],
|
|
2448
|
+
"references": {
|
|
2449
|
+
"Promise": {
|
|
2450
|
+
"location": "global",
|
|
2451
|
+
"id": "global::Promise"
|
|
2452
|
+
},
|
|
2453
|
+
"TreeState": {
|
|
2454
|
+
"location": "import",
|
|
2455
|
+
"path": "./types",
|
|
2456
|
+
"id": "src/components/tree/types.ts::TreeState",
|
|
2457
|
+
"referenceLocation": "TreeState"
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
"return": "Promise<TreeState>"
|
|
2461
|
+
},
|
|
2462
|
+
"docs": {
|
|
2463
|
+
"text": "",
|
|
2464
|
+
"tags": []
|
|
2465
|
+
}
|
|
2466
|
+
},
|
|
2467
|
+
"restoreState": {
|
|
2468
|
+
"complexType": {
|
|
2469
|
+
"signature": "(state: TreeState) => Promise<void>",
|
|
2470
|
+
"parameters": [{
|
|
2471
|
+
"name": "state",
|
|
2472
|
+
"type": "TreeState",
|
|
2473
|
+
"docs": ""
|
|
2474
|
+
}],
|
|
2475
|
+
"references": {
|
|
2476
|
+
"Promise": {
|
|
2477
|
+
"location": "global",
|
|
2478
|
+
"id": "global::Promise"
|
|
2479
|
+
},
|
|
2480
|
+
"TreeState": {
|
|
2481
|
+
"location": "import",
|
|
2482
|
+
"path": "./types",
|
|
2483
|
+
"id": "src/components/tree/types.ts::TreeState",
|
|
2484
|
+
"referenceLocation": "TreeState"
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
"return": "Promise<void>"
|
|
2488
|
+
},
|
|
2489
|
+
"docs": {
|
|
2490
|
+
"text": "",
|
|
2491
|
+
"tags": []
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2496
|
+
static get elementRef() { return "el"; }
|
|
2497
|
+
static get watchers() {
|
|
2498
|
+
return [{
|
|
2499
|
+
"propName": "nodes",
|
|
2500
|
+
"methodName": "parseNodes"
|
|
2501
|
+
}, {
|
|
2502
|
+
"propName": "expandAll",
|
|
2503
|
+
"methodName": "parseNodes"
|
|
2504
|
+
}, {
|
|
2505
|
+
"propName": "collapseAll",
|
|
2506
|
+
"methodName": "parseNodes"
|
|
2507
|
+
}];
|
|
2508
|
+
}
|
|
2509
|
+
}
|