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,2033 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ariaLive } from "../../utils/aria-live";
|
|
3
|
+
import { calculateUniversalPlacement } from "../../utils/dom";
|
|
4
|
+
export class Dropdown {
|
|
5
|
+
hostElement;
|
|
6
|
+
/**
|
|
7
|
+
* Options as JSON string or DropdownOption array
|
|
8
|
+
*/
|
|
9
|
+
options = [];
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder text
|
|
12
|
+
*/
|
|
13
|
+
placeholder = 'Select an option';
|
|
14
|
+
/**
|
|
15
|
+
* Enable multi-select mode
|
|
16
|
+
*/
|
|
17
|
+
multiSelect = false;
|
|
18
|
+
/**
|
|
19
|
+
* Enable cascading/hierarchical selection
|
|
20
|
+
*/
|
|
21
|
+
cascading = false;
|
|
22
|
+
/**
|
|
23
|
+
* Selected value(s) - string for single, comma-separated for multi
|
|
24
|
+
*/
|
|
25
|
+
value = '';
|
|
26
|
+
/**
|
|
27
|
+
* Disabled state
|
|
28
|
+
*/
|
|
29
|
+
disabled = false;
|
|
30
|
+
/**
|
|
31
|
+
* Show search/filter input
|
|
32
|
+
*/
|
|
33
|
+
searchable = false;
|
|
34
|
+
/**
|
|
35
|
+
* Maximum height of dropdown (in pixels)
|
|
36
|
+
*/
|
|
37
|
+
maxHeight = 300;
|
|
38
|
+
/**
|
|
39
|
+
* Size variant
|
|
40
|
+
*/
|
|
41
|
+
size = 'md';
|
|
42
|
+
/**
|
|
43
|
+
* Appearance: default dropdown or button-like (no arrow)
|
|
44
|
+
*/
|
|
45
|
+
appearance = 'dropdown';
|
|
46
|
+
/**
|
|
47
|
+
* Aesthetic variant
|
|
48
|
+
*/
|
|
49
|
+
variant = 'default';
|
|
50
|
+
/**
|
|
51
|
+
* Use chips for multi-select display
|
|
52
|
+
*/
|
|
53
|
+
chipView = false;
|
|
54
|
+
/**
|
|
55
|
+
* Controls visibility of the arrow icon. If false, no arrow is shown.
|
|
56
|
+
* Defaults to true for dropdown appearance; false when appearance is 'button'.
|
|
57
|
+
*/
|
|
58
|
+
showArrow;
|
|
59
|
+
/**
|
|
60
|
+
* If true, dropdown positioning ignores transformed/positioned parent offsets.
|
|
61
|
+
* Use this when the menu is portaled and should stay anchored to viewport coordinates.
|
|
62
|
+
*/
|
|
63
|
+
ignoreParentPosition = true;
|
|
64
|
+
/**
|
|
65
|
+
* Show clear (✕) button when a value is selected.
|
|
66
|
+
* - When not set (default): automatically shown for multi-select, hidden for single-select.
|
|
67
|
+
* - Set to `true` : always show the clear button (both single & multi).
|
|
68
|
+
* - Set to `false` : always hide the clear button (both single & multi).
|
|
69
|
+
*/
|
|
70
|
+
clearable;
|
|
71
|
+
/**
|
|
72
|
+
* If true, the dropdown will take up the full width of its container.
|
|
73
|
+
*/
|
|
74
|
+
fullWidth = false;
|
|
75
|
+
/**
|
|
76
|
+
* If true, the dropdown width fits its longest option (max-content).
|
|
77
|
+
*/
|
|
78
|
+
fitContent = false;
|
|
79
|
+
/**
|
|
80
|
+
* Optional width for the dropdown options panel.
|
|
81
|
+
* Accepts a number (pixels) or any valid CSS width value such as `320px`, `24rem`, or `min(28rem, 90vw)`.
|
|
82
|
+
* By default, the menu matches the trigger width.
|
|
83
|
+
*/
|
|
84
|
+
menuWidth;
|
|
85
|
+
/**
|
|
86
|
+
* Loading state
|
|
87
|
+
*/
|
|
88
|
+
loading = false;
|
|
89
|
+
/**
|
|
90
|
+
* Validation state
|
|
91
|
+
*/
|
|
92
|
+
invalid = false;
|
|
93
|
+
/**
|
|
94
|
+
* Helper text / validation message
|
|
95
|
+
*/
|
|
96
|
+
helperText;
|
|
97
|
+
/**
|
|
98
|
+
* Error message to show when invalid
|
|
99
|
+
*/
|
|
100
|
+
errorMessage;
|
|
101
|
+
/**
|
|
102
|
+
* Placeholder for the search input
|
|
103
|
+
*/
|
|
104
|
+
searchPlaceholder = 'Search...';
|
|
105
|
+
/**
|
|
106
|
+
* Default icon library for option icons (e.g. 'lucide', 'ionicons')
|
|
107
|
+
*/
|
|
108
|
+
iconLibrary = 'ionicons';
|
|
109
|
+
/**
|
|
110
|
+
* If true, show the full hierarchy path in selected value (for cascading)
|
|
111
|
+
*/
|
|
112
|
+
showPath = false;
|
|
113
|
+
/** Use high-fidelity animation (Framer-like physics) */
|
|
114
|
+
highFidelity = true;
|
|
115
|
+
/** RTL support */
|
|
116
|
+
rtl = false;
|
|
117
|
+
/**
|
|
118
|
+
* Shape variant (inherits from design system or parent)
|
|
119
|
+
*/
|
|
120
|
+
shape = 'default';
|
|
121
|
+
/**
|
|
122
|
+
* If true, shows a checkmark (tick) next to the selected item in single-select mode.
|
|
123
|
+
*/
|
|
124
|
+
showSelectedMarker = true;
|
|
125
|
+
/**
|
|
126
|
+
* Custom icon for the selection marker
|
|
127
|
+
*/
|
|
128
|
+
selectedMarkerIcon = 'check';
|
|
129
|
+
/**
|
|
130
|
+
* Icon library for the selection marker icon
|
|
131
|
+
*/
|
|
132
|
+
selectedMarkerLibrary = 'lucide';
|
|
133
|
+
/**
|
|
134
|
+
* Optional label text shown after the checkmark on the selected item.
|
|
135
|
+
*/
|
|
136
|
+
selectedMarkerLabel = '';
|
|
137
|
+
/**
|
|
138
|
+
* Color for the selection marker icon. Defaults to the selected state color token.
|
|
139
|
+
*/
|
|
140
|
+
selectedMarkerColor = '';
|
|
141
|
+
isOpen = false;
|
|
142
|
+
parsedOptions = [];
|
|
143
|
+
selectedValues = new Set();
|
|
144
|
+
searchQuery = '';
|
|
145
|
+
expandedNodes = new Set();
|
|
146
|
+
dropdownPosition = 'bottom';
|
|
147
|
+
menuLeft = 0;
|
|
148
|
+
menuTop = 0;
|
|
149
|
+
computedMenuWidth = 0;
|
|
150
|
+
menuMaxHeight = 0;
|
|
151
|
+
highlightedIndex = -1;
|
|
152
|
+
nestedPath = [];
|
|
153
|
+
optionsRef = [];
|
|
154
|
+
searchInputRef;
|
|
155
|
+
searchDebounce;
|
|
156
|
+
menuElement;
|
|
157
|
+
rafId = null;
|
|
158
|
+
isPortaled = false;
|
|
159
|
+
handleDocumentClick = (event) => {
|
|
160
|
+
if (!this.isOpen)
|
|
161
|
+
return;
|
|
162
|
+
const path = event.composedPath();
|
|
163
|
+
const isInsideHost = path.some(node => node === this.hostElement);
|
|
164
|
+
const isInsideMenu = this.menuElement && path.some(node => node === this.menuElement || (node instanceof Node && this.menuElement.contains(node)));
|
|
165
|
+
if (!isInsideHost && !isInsideMenu) {
|
|
166
|
+
this.closeDropdown();
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* If true, all nodes in a cascading dropdown will be expanded by default.
|
|
171
|
+
*/
|
|
172
|
+
expandAll = false;
|
|
173
|
+
/**
|
|
174
|
+
* If true, shows a skeleton loading state for the trigger
|
|
175
|
+
*/
|
|
176
|
+
skeleton = false;
|
|
177
|
+
/**
|
|
178
|
+
* If true, shows a "Select All" option in multi-select mode
|
|
179
|
+
*/
|
|
180
|
+
showSelectAll = false;
|
|
181
|
+
/**
|
|
182
|
+
* Label for the Select All option
|
|
183
|
+
*/
|
|
184
|
+
selectAllLabel = 'Select All';
|
|
185
|
+
/**
|
|
186
|
+
* Custom text color for the dropdown display
|
|
187
|
+
*/
|
|
188
|
+
textColor = '';
|
|
189
|
+
/**
|
|
190
|
+
* If true, enables virtual scrolling (renders only a subset of items for performance)
|
|
191
|
+
*/
|
|
192
|
+
virtualScroll = false;
|
|
193
|
+
/**
|
|
194
|
+
* If true, search filtering is case-sensitive
|
|
195
|
+
*/
|
|
196
|
+
caseSensitive = false;
|
|
197
|
+
/**
|
|
198
|
+
* Label text shown above the dropdown
|
|
199
|
+
*/
|
|
200
|
+
label = '';
|
|
201
|
+
/**
|
|
202
|
+
* Emitted when value changes
|
|
203
|
+
*/
|
|
204
|
+
valueChange;
|
|
205
|
+
/**
|
|
206
|
+
* Emitted when dropdown opens
|
|
207
|
+
*/
|
|
208
|
+
dropdownOpen;
|
|
209
|
+
/**
|
|
210
|
+
* Emitted when dropdown closes
|
|
211
|
+
*/
|
|
212
|
+
dropdownClose;
|
|
213
|
+
handleOptionsChange(newValue) {
|
|
214
|
+
this.parseOptions(newValue);
|
|
215
|
+
this.syncNestedPath();
|
|
216
|
+
}
|
|
217
|
+
handleValueChange(newValue) {
|
|
218
|
+
this.updateSelectedValues(newValue);
|
|
219
|
+
this.syncNestedPath();
|
|
220
|
+
}
|
|
221
|
+
handleSearchQueryChange() {
|
|
222
|
+
clearTimeout(this.searchDebounce);
|
|
223
|
+
this.searchDebounce = setTimeout(() => {
|
|
224
|
+
const count = this.getVisibleOptionCount();
|
|
225
|
+
ariaLive.announce(`${count} option${count !== 1 ? 's' : ''} found`);
|
|
226
|
+
}, 300);
|
|
227
|
+
}
|
|
228
|
+
componentWillLoad() {
|
|
229
|
+
this.parseOptions(this.options);
|
|
230
|
+
this.updateSelectedValues(this.value);
|
|
231
|
+
this.syncNestedPath();
|
|
232
|
+
if (this.expandAll && this.cascading) {
|
|
233
|
+
this.expandAllNodes(this.parsedOptions);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
expandAllNodes(options) {
|
|
237
|
+
options.forEach(opt => {
|
|
238
|
+
if (opt.children) {
|
|
239
|
+
this.expandedNodes.add(opt.value.toString());
|
|
240
|
+
this.expandAllNodes(opt.children);
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
this.expandedNodes = new Set(this.expandedNodes);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Programmatically open the dropdown menu
|
|
247
|
+
*/
|
|
248
|
+
async open() {
|
|
249
|
+
if (!this.isOpen) {
|
|
250
|
+
this.toggleDropdown();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
componentDidUpdate() {
|
|
254
|
+
if (this.isOpen && this.menuElement) {
|
|
255
|
+
this.calculateDropdownPosition();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
connectedCallback() {
|
|
259
|
+
this.handleViewportChange = this.handleViewportChange.bind(this);
|
|
260
|
+
window.addEventListener('scroll', this.handleViewportChange, true);
|
|
261
|
+
window.addEventListener('resize', this.handleViewportChange);
|
|
262
|
+
document.addEventListener('click', this.handleDocumentClick, true);
|
|
263
|
+
window.addEventListener('popstate', this.closeDropdown);
|
|
264
|
+
window.addEventListener('hashchange', this.closeDropdown);
|
|
265
|
+
}
|
|
266
|
+
disconnectedCallback() {
|
|
267
|
+
window.removeEventListener('scroll', this.handleViewportChange, true);
|
|
268
|
+
window.removeEventListener('resize', this.handleViewportChange);
|
|
269
|
+
document.removeEventListener('click', this.handleDocumentClick, true);
|
|
270
|
+
window.removeEventListener('popstate', this.closeDropdown);
|
|
271
|
+
window.removeEventListener('hashchange', this.closeDropdown);
|
|
272
|
+
this.cleanupPortal();
|
|
273
|
+
}
|
|
274
|
+
getOptionId(index) {
|
|
275
|
+
return `dropdown-option-${index}`;
|
|
276
|
+
}
|
|
277
|
+
handleKeyDown = (event) => {
|
|
278
|
+
if (this.disabled)
|
|
279
|
+
return;
|
|
280
|
+
if (!this.searchable && event.key.length === 1 && this.isOpen) {
|
|
281
|
+
const char = event.key.toLowerCase();
|
|
282
|
+
const flatOptions = this.getVisibleOptions();
|
|
283
|
+
const startIndex = this.highlightedIndex + 1;
|
|
284
|
+
const searchList = [...flatOptions.slice(startIndex), ...flatOptions.slice(0, startIndex)];
|
|
285
|
+
const matchIndex = searchList.findIndex(o => (o.label ?? '').toLowerCase().startsWith(char));
|
|
286
|
+
if (matchIndex !== -1) {
|
|
287
|
+
let trueIndex = startIndex + matchIndex;
|
|
288
|
+
if (trueIndex >= flatOptions.length)
|
|
289
|
+
trueIndex -= flatOptions.length;
|
|
290
|
+
this.highlightedIndex = trueIndex;
|
|
291
|
+
this.scrollToHighlighted();
|
|
292
|
+
ariaLive.announce(flatOptions[trueIndex].label ?? '');
|
|
293
|
+
}
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
switch (event.key) {
|
|
297
|
+
case 'Enter':
|
|
298
|
+
case ' ':
|
|
299
|
+
if (!this.isOpen) {
|
|
300
|
+
event.preventDefault();
|
|
301
|
+
this.toggleDropdown();
|
|
302
|
+
}
|
|
303
|
+
else if (this.highlightedIndex >= 0) {
|
|
304
|
+
event.preventDefault();
|
|
305
|
+
const flatOptions = this.getVisibleOptions();
|
|
306
|
+
if (flatOptions[this.highlightedIndex]) {
|
|
307
|
+
this.handleOptionClick(flatOptions[this.highlightedIndex], event);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
break;
|
|
311
|
+
case 'ArrowDown':
|
|
312
|
+
event.preventDefault();
|
|
313
|
+
if (!this.isOpen) {
|
|
314
|
+
this.toggleDropdown();
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
const count = this.getVisibleOptionCount();
|
|
318
|
+
this.highlightedIndex = Math.min(this.highlightedIndex + 1, count - 1);
|
|
319
|
+
this.scrollToHighlighted();
|
|
320
|
+
}
|
|
321
|
+
break;
|
|
322
|
+
case 'ArrowUp':
|
|
323
|
+
event.preventDefault();
|
|
324
|
+
if (this.isOpen) {
|
|
325
|
+
this.highlightedIndex = Math.max(this.highlightedIndex - 1, 0);
|
|
326
|
+
this.scrollToHighlighted();
|
|
327
|
+
}
|
|
328
|
+
break;
|
|
329
|
+
case 'Escape':
|
|
330
|
+
if (this.isOpen) {
|
|
331
|
+
event.preventDefault();
|
|
332
|
+
this.closeDropdown();
|
|
333
|
+
this.hostElement.shadowRoot?.querySelector('.dropdown-trigger')?.focus();
|
|
334
|
+
}
|
|
335
|
+
break;
|
|
336
|
+
case 'Tab':
|
|
337
|
+
if (this.isOpen) {
|
|
338
|
+
this.closeDropdown();
|
|
339
|
+
}
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
getVisibleOptions() {
|
|
344
|
+
if (this.isNestedMenuVariant()) {
|
|
345
|
+
return this.getNestedMenuLevels(this.filterOptions(this.parsedOptions)).flat();
|
|
346
|
+
}
|
|
347
|
+
const flatOptions = [];
|
|
348
|
+
const flatten = (opts) => {
|
|
349
|
+
opts.forEach(o => {
|
|
350
|
+
flatOptions.push(o);
|
|
351
|
+
if (o.children && (this.expandedNodes.has(o.value?.toString() ?? '') || this.searchQuery)) {
|
|
352
|
+
flatten(o.children);
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
if (this.cascading)
|
|
357
|
+
flatten(this.filterOptions(this.parsedOptions));
|
|
358
|
+
else {
|
|
359
|
+
const filtered = this.filterOptions(this.parsedOptions);
|
|
360
|
+
filtered.forEach(o => flatOptions.push(o));
|
|
361
|
+
}
|
|
362
|
+
return flatOptions;
|
|
363
|
+
}
|
|
364
|
+
getVisibleOptionCount() {
|
|
365
|
+
return this.getVisibleOptions().length;
|
|
366
|
+
}
|
|
367
|
+
scrollToHighlighted() {
|
|
368
|
+
const optionEl = this.optionsRef[this.highlightedIndex];
|
|
369
|
+
if (optionEl) {
|
|
370
|
+
optionEl.scrollIntoView({ block: 'nearest' });
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
isNestedMenuVariant() {
|
|
374
|
+
return this.variant === 'nested-menu' && this.cascading && !this.searchQuery;
|
|
375
|
+
}
|
|
376
|
+
findOptionPathByValue(options, targetValue, path = []) {
|
|
377
|
+
for (const option of options) {
|
|
378
|
+
const currentValue = option.value?.toString() ?? '';
|
|
379
|
+
const nextPath = currentValue ? [...path, currentValue] : [...path];
|
|
380
|
+
if (currentValue === targetValue) {
|
|
381
|
+
return nextPath;
|
|
382
|
+
}
|
|
383
|
+
if (option.children) {
|
|
384
|
+
const childPath = this.findOptionPathByValue(option.children, targetValue, nextPath);
|
|
385
|
+
if (childPath) {
|
|
386
|
+
return childPath;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
syncNestedPath() {
|
|
393
|
+
if (this.variant !== 'nested-menu' || !this.cascading) {
|
|
394
|
+
this.nestedPath = [];
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
const selectedValue = Array.from(this.selectedValues)[0];
|
|
398
|
+
if (!selectedValue) {
|
|
399
|
+
this.nestedPath = [];
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
this.nestedPath = this.findOptionPathByValue(this.parsedOptions, selectedValue) ?? [];
|
|
403
|
+
}
|
|
404
|
+
setNestedPath(level, value) {
|
|
405
|
+
const nextPath = this.nestedPath.slice(0, level);
|
|
406
|
+
nextPath[level] = value;
|
|
407
|
+
this.nestedPath = nextPath;
|
|
408
|
+
}
|
|
409
|
+
getNestedMenuLevels(options) {
|
|
410
|
+
const levels = [];
|
|
411
|
+
let currentOptions = options;
|
|
412
|
+
if (currentOptions.length > 0) {
|
|
413
|
+
levels.push(currentOptions);
|
|
414
|
+
}
|
|
415
|
+
for (let level = 0; level < this.nestedPath.length; level++) {
|
|
416
|
+
const activeValue = this.nestedPath[level];
|
|
417
|
+
const activeOption = currentOptions.find(option => (option.value?.toString() ?? '') === activeValue);
|
|
418
|
+
if (!activeOption?.children?.length) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
currentOptions = activeOption.children;
|
|
422
|
+
levels.push(currentOptions);
|
|
423
|
+
}
|
|
424
|
+
return levels;
|
|
425
|
+
}
|
|
426
|
+
getNestedMenuEstimatedWidth() {
|
|
427
|
+
const perPanelWidth = this.size === 'sm' ? 190 : this.size === 'lg' ? 260 : 220;
|
|
428
|
+
const levelCount = Math.max(1, this.getNestedMenuLevels(this.filterOptions(this.parsedOptions)).length);
|
|
429
|
+
return perPanelWidth * levelCount;
|
|
430
|
+
}
|
|
431
|
+
parseOptions(options) {
|
|
432
|
+
let rawOptions = [];
|
|
433
|
+
if (typeof options === 'string' && options.length > 0) {
|
|
434
|
+
try {
|
|
435
|
+
rawOptions = JSON.parse(options);
|
|
436
|
+
}
|
|
437
|
+
catch (error) {
|
|
438
|
+
console.error('Invalid JSON for dropdown options:', error);
|
|
439
|
+
rawOptions = [];
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
else if (Array.isArray(options) && options.length > 0) {
|
|
443
|
+
rawOptions = options;
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
// Fallback: Parse native <option> tags from children
|
|
447
|
+
const nativeOptions = Array.from(this.hostElement.querySelectorAll('option'));
|
|
448
|
+
if (nativeOptions.length > 0) {
|
|
449
|
+
rawOptions = nativeOptions.map(opt => ({
|
|
450
|
+
label: opt.textContent || '',
|
|
451
|
+
value: opt.value || opt.textContent || '',
|
|
452
|
+
disabled: opt.disabled,
|
|
453
|
+
...(opt.dataset.icon ? { icon: opt.dataset.icon } : {}),
|
|
454
|
+
...(opt.dataset.subtitle ? { subtitle: opt.dataset.subtitle } : {}),
|
|
455
|
+
...(opt.dataset.description ? { description: opt.dataset.description } : {}),
|
|
456
|
+
...(opt.dataset.group ? { group: opt.dataset.group } : {}),
|
|
457
|
+
}));
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
rawOptions = [];
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
// Transform DropdownGroup to flat list with 'group' property if detected
|
|
464
|
+
const transformed = [];
|
|
465
|
+
rawOptions.forEach(opt => {
|
|
466
|
+
if (opt.options && Array.isArray(opt.options)) {
|
|
467
|
+
// This is a group
|
|
468
|
+
opt.options.forEach((child) => {
|
|
469
|
+
transformed.push({ ...child, group: opt.label });
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
// This is a direct option
|
|
474
|
+
transformed.push(opt);
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
this.parsedOptions = transformed;
|
|
478
|
+
}
|
|
479
|
+
updateSelectedValues(valueString) {
|
|
480
|
+
if (!valueString) {
|
|
481
|
+
this.selectedValues = new Set();
|
|
482
|
+
}
|
|
483
|
+
else if (this.multiSelect) {
|
|
484
|
+
this.selectedValues = new Set(valueString.split(',').filter(v => v));
|
|
485
|
+
}
|
|
486
|
+
else {
|
|
487
|
+
this.selectedValues = new Set([valueString]);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
toggleDropdown = () => {
|
|
491
|
+
if (this.disabled)
|
|
492
|
+
return;
|
|
493
|
+
// Only open if trigger is visible
|
|
494
|
+
const trigger = (this.hostElement.shadowRoot?.querySelector('.dropdown-trigger') || this.hostElement.querySelector('.dropdown-trigger'));
|
|
495
|
+
if (!trigger)
|
|
496
|
+
return;
|
|
497
|
+
const rect = trigger.getBoundingClientRect();
|
|
498
|
+
if (rect.width === 0 && rect.height === 0)
|
|
499
|
+
return;
|
|
500
|
+
this.isOpen = !this.isOpen;
|
|
501
|
+
if (this.isOpen) {
|
|
502
|
+
this.dropdownOpen.emit();
|
|
503
|
+
this.highlightedIndex = -1;
|
|
504
|
+
if (this.variant === 'nested-menu' && this.cascading) {
|
|
505
|
+
this.syncNestedPath();
|
|
506
|
+
}
|
|
507
|
+
this.schedulePositionUpdate();
|
|
508
|
+
if (!this.multiSelect && this.selectedValues.size > 0) {
|
|
509
|
+
const visible = this.getVisibleOptions();
|
|
510
|
+
const idx = visible.findIndex(o => this.selectedValues.has(o.value?.toString() ?? ''));
|
|
511
|
+
if (idx !== -1)
|
|
512
|
+
this.highlightedIndex = idx;
|
|
513
|
+
}
|
|
514
|
+
setTimeout(() => {
|
|
515
|
+
this.calculateDropdownPosition(); // Force recalculation after paint
|
|
516
|
+
if (this.searchable && this.searchInputRef) {
|
|
517
|
+
this.searchInputRef.focus();
|
|
518
|
+
}
|
|
519
|
+
}, 50);
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
this.closeDropdown();
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Schedule position updates after the menu element renders.
|
|
527
|
+
* Since the trigger has a CSS transition (0.2s), we re-calculate for 250ms
|
|
528
|
+
* to ensure the menu stays perfectly aligned as the transition progresses.
|
|
529
|
+
*/
|
|
530
|
+
schedulePositionUpdate() {
|
|
531
|
+
if (this.rafId !== null) {
|
|
532
|
+
cancelAnimationFrame(this.rafId);
|
|
533
|
+
}
|
|
534
|
+
const startTime = performance.now();
|
|
535
|
+
const update = (now) => {
|
|
536
|
+
if (!this.isOpen) {
|
|
537
|
+
this.rafId = null;
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
this.calculateDropdownPosition();
|
|
541
|
+
// Continue updating during the transition period (250ms)
|
|
542
|
+
if (now - startTime < 250) {
|
|
543
|
+
this.rafId = requestAnimationFrame(update);
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
this.rafId = null;
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
this.rafId = requestAnimationFrame(update);
|
|
550
|
+
}
|
|
551
|
+
cleanupPortal() {
|
|
552
|
+
if (this.rafId !== null) {
|
|
553
|
+
cancelAnimationFrame(this.rafId);
|
|
554
|
+
this.rafId = null;
|
|
555
|
+
}
|
|
556
|
+
if (this.isPortaled && this.menuElement && this.menuElement.parentElement === document.body) {
|
|
557
|
+
this.hostElement.appendChild(this.menuElement);
|
|
558
|
+
this.isPortaled = false;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
handleViewportChange() {
|
|
562
|
+
if (this.isOpen) {
|
|
563
|
+
this.calculateDropdownPosition();
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
parseConfiguredMenuWidth() {
|
|
567
|
+
if (this.menuWidth === undefined || this.menuWidth === null) {
|
|
568
|
+
return {};
|
|
569
|
+
}
|
|
570
|
+
if (typeof this.menuWidth === 'number' && Number.isFinite(this.menuWidth)) {
|
|
571
|
+
return {
|
|
572
|
+
cssWidth: `${this.menuWidth}px`,
|
|
573
|
+
pixelWidth: this.menuWidth,
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
const rawWidth = String(this.menuWidth).trim();
|
|
577
|
+
if (!rawWidth) {
|
|
578
|
+
return {};
|
|
579
|
+
}
|
|
580
|
+
if (/^\d+(?:\.\d+)?$/.test(rawWidth)) {
|
|
581
|
+
const pxValue = Number(rawWidth);
|
|
582
|
+
return {
|
|
583
|
+
cssWidth: `${pxValue}px`,
|
|
584
|
+
pixelWidth: pxValue,
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
if (/^\d+(?:\.\d+)?px$/i.test(rawWidth)) {
|
|
588
|
+
return {
|
|
589
|
+
cssWidth: rawWidth,
|
|
590
|
+
pixelWidth: parseFloat(rawWidth),
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
return { cssWidth: rawWidth };
|
|
594
|
+
}
|
|
595
|
+
getMenuStyle(usesLocalMenuPosition) {
|
|
596
|
+
const configuredWidth = this.parseConfiguredMenuWidth();
|
|
597
|
+
const measuredWidth = this.computedMenuWidth > 0 ? `${this.computedMenuWidth}px` : undefined;
|
|
598
|
+
const effectiveMaxHeight = this.menuMaxHeight > 0 ? this.menuMaxHeight : (this.maxHeight || 300);
|
|
599
|
+
const baseStyles = {
|
|
600
|
+
left: `${this.menuLeft}px`,
|
|
601
|
+
maxWidth: 'calc(100vw - 16px)',
|
|
602
|
+
maxHeight: `${effectiveMaxHeight}px`,
|
|
603
|
+
visibility: usesLocalMenuPosition ? 'visible' : (this.menuLeft === 0 && this.menuTop === 0 ? 'hidden' : 'visible'),
|
|
604
|
+
top: `${this.menuTop}px`,
|
|
605
|
+
};
|
|
606
|
+
// User explicitly set a width via menuWidth prop — honour it exactly.
|
|
607
|
+
if (configuredWidth.cssWidth) {
|
|
608
|
+
return {
|
|
609
|
+
...baseStyles,
|
|
610
|
+
width: configuredWidth.cssWidth,
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
// fullWidth — stretch to 100% of the container/viewport.
|
|
614
|
+
if (this.fullWidth) {
|
|
615
|
+
return {
|
|
616
|
+
...baseStyles,
|
|
617
|
+
width: measuredWidth,
|
|
618
|
+
minWidth: measuredWidth,
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
// All other cases: size to content (widest option + reserved tick space).
|
|
622
|
+
return {
|
|
623
|
+
...baseStyles,
|
|
624
|
+
width: 'max-content',
|
|
625
|
+
minWidth: measuredWidth,
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
shouldPortalMenu() {
|
|
629
|
+
// Always portal to document.body so the panel is positioned with fixed
|
|
630
|
+
// coordinates and never clipped by overflow:hidden on ancestor containers
|
|
631
|
+
// (e.g. ui-toolbar shadow host, demo cards, etc.)
|
|
632
|
+
return true;
|
|
633
|
+
}
|
|
634
|
+
calculateDropdownPosition() {
|
|
635
|
+
if (!this.hostElement || !this.isOpen || !this.menuElement)
|
|
636
|
+
return;
|
|
637
|
+
const trigger = (this.hostElement.shadowRoot?.querySelector('.dropdown-trigger') || this.hostElement.querySelector('.dropdown-trigger'));
|
|
638
|
+
if (!trigger)
|
|
639
|
+
return;
|
|
640
|
+
// Guard: Only position if trigger is visible and has size
|
|
641
|
+
const rect = trigger.getBoundingClientRect();
|
|
642
|
+
if (rect.width === 0 && rect.height === 0) {
|
|
643
|
+
// Hide menu if trigger is not visible
|
|
644
|
+
this.menuLeft = 0;
|
|
645
|
+
this.menuTop = 0;
|
|
646
|
+
this.computedMenuWidth = 0;
|
|
647
|
+
this.dropdownPosition = 'bottom';
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
const configuredWidth = this.parseConfiguredMenuWidth();
|
|
651
|
+
const triggerWidth = trigger.offsetWidth || rect.width;
|
|
652
|
+
const placementWidth = !this.fitContent && configuredWidth.pixelWidth
|
|
653
|
+
? configuredWidth.pixelWidth
|
|
654
|
+
: this.isNestedMenuVariant()
|
|
655
|
+
? Math.max(triggerWidth, this.getNestedMenuEstimatedWidth())
|
|
656
|
+
: triggerWidth;
|
|
657
|
+
const shouldPortal = this.shouldPortalMenu();
|
|
658
|
+
if (shouldPortal && this.menuElement.parentElement !== document.body) {
|
|
659
|
+
document.body.appendChild(this.menuElement);
|
|
660
|
+
this.isPortaled = true;
|
|
661
|
+
}
|
|
662
|
+
else if (!shouldPortal && this.isPortaled) {
|
|
663
|
+
this.cleanupPortal();
|
|
664
|
+
}
|
|
665
|
+
const gap = 4;
|
|
666
|
+
const { left, top, placement: finalPlacement, availableHeight: spaceHeight } = calculateUniversalPlacement(trigger, {
|
|
667
|
+
menuWidth: placementWidth,
|
|
668
|
+
menuHeight: this.maxHeight || 300,
|
|
669
|
+
gap,
|
|
670
|
+
placement: 'auto',
|
|
671
|
+
useTransformedAncestorOffset: shouldPortal ? !this.ignoreParentPosition : true,
|
|
672
|
+
});
|
|
673
|
+
// Compute how much vertical space is actually available so the options list
|
|
674
|
+
// can be constrained and will show a scrollbar instead of overflowing.
|
|
675
|
+
const nextMaxHeight = Math.max(80, Math.min(this.maxHeight || 300, spaceHeight));
|
|
676
|
+
let nextLeft = left;
|
|
677
|
+
let nextTop = top;
|
|
678
|
+
if (!shouldPortal) {
|
|
679
|
+
// If not portaling, we need relative coordinates to host
|
|
680
|
+
// However, calculateUniversalPlacement already handles offsetParent.
|
|
681
|
+
// If host is the offsetParent, then left/top are already relative.
|
|
682
|
+
// If NOT, we might need adjustments.
|
|
683
|
+
// Re-check the previous logic: it subtracted hostRect.left.
|
|
684
|
+
nextLeft = left;
|
|
685
|
+
nextTop = top;
|
|
686
|
+
}
|
|
687
|
+
if (this.menuLeft !== nextLeft ||
|
|
688
|
+
this.menuTop !== nextTop ||
|
|
689
|
+
this.computedMenuWidth !== triggerWidth ||
|
|
690
|
+
this.dropdownPosition !== finalPlacement ||
|
|
691
|
+
this.menuMaxHeight !== nextMaxHeight) {
|
|
692
|
+
this.menuLeft = nextLeft;
|
|
693
|
+
this.menuTop = nextTop;
|
|
694
|
+
this.computedMenuWidth = triggerWidth;
|
|
695
|
+
this.dropdownPosition = finalPlacement;
|
|
696
|
+
this.menuMaxHeight = nextMaxHeight;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
closeDropdown = () => {
|
|
700
|
+
if (this.isOpen) {
|
|
701
|
+
this.isOpen = false;
|
|
702
|
+
this.dropdownClose.emit();
|
|
703
|
+
this.searchQuery = '';
|
|
704
|
+
this.cleanupPortal();
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
handleOptionClick = (option, event) => {
|
|
708
|
+
event.stopPropagation();
|
|
709
|
+
if (option.disabled)
|
|
710
|
+
return;
|
|
711
|
+
if (this.cascading && option.children && option.children.length > 0) {
|
|
712
|
+
if (this.isNestedMenuVariant()) {
|
|
713
|
+
const visibleLevels = this.getNestedMenuLevels(this.filterOptions(this.parsedOptions));
|
|
714
|
+
const level = visibleLevels.findIndex(levelOptions => levelOptions.some(levelOption => (levelOption.value?.toString() ?? '') === (option.value?.toString() ?? '')));
|
|
715
|
+
this.setNestedPath(level === -1 ? 0 : level, option.value?.toString() ?? '');
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
this.toggleNode(option.value?.toString() ?? '');
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
if (this.multiSelect) {
|
|
722
|
+
const newSelected = new Set(this.selectedValues);
|
|
723
|
+
const stringValue = option.value?.toString() ?? '';
|
|
724
|
+
if (newSelected.has(stringValue)) {
|
|
725
|
+
newSelected.delete(stringValue);
|
|
726
|
+
ariaLive.announce(`Deselected ${option.label}`);
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
newSelected.add(stringValue);
|
|
730
|
+
ariaLive.announce(`Selected ${option.label}`);
|
|
731
|
+
}
|
|
732
|
+
this.selectedValues = newSelected;
|
|
733
|
+
this.value = Array.from(newSelected).join(',');
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
const val = option.value?.toString() ?? '';
|
|
737
|
+
this.selectedValues = new Set([val]);
|
|
738
|
+
this.value = val;
|
|
739
|
+
this.closeDropdown();
|
|
740
|
+
this.hostElement.shadowRoot?.querySelector('.dropdown-trigger')?.focus();
|
|
741
|
+
ariaLive.announce(`Selected ${option.label}`);
|
|
742
|
+
}
|
|
743
|
+
this.emitChangeEvent();
|
|
744
|
+
};
|
|
745
|
+
toggleNode = (value) => {
|
|
746
|
+
const newExpanded = new Set(this.expandedNodes);
|
|
747
|
+
if (newExpanded.has(value)) {
|
|
748
|
+
newExpanded.delete(value);
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
newExpanded.add(value);
|
|
752
|
+
}
|
|
753
|
+
this.expandedNodes = newExpanded;
|
|
754
|
+
};
|
|
755
|
+
handleClear = (event) => {
|
|
756
|
+
event.stopPropagation();
|
|
757
|
+
this.selectedValues = new Set();
|
|
758
|
+
this.value = '';
|
|
759
|
+
this.emitChangeEvent();
|
|
760
|
+
this.hostElement.shadowRoot?.querySelector('.dropdown-trigger')?.focus();
|
|
761
|
+
};
|
|
762
|
+
handleSearchInput = (event) => {
|
|
763
|
+
const input = event.target;
|
|
764
|
+
this.searchQuery = input.value.toLowerCase();
|
|
765
|
+
};
|
|
766
|
+
emitChangeEvent() {
|
|
767
|
+
const selectedOptions = this.getSelectedOptions();
|
|
768
|
+
this.valueChange.emit({
|
|
769
|
+
value: this.value,
|
|
770
|
+
selectedOptions,
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
getSelectedOptions() {
|
|
774
|
+
const selected = [];
|
|
775
|
+
const findSelected = (options) => {
|
|
776
|
+
options.forEach(option => {
|
|
777
|
+
if (this.selectedValues.has(option.value?.toString() ?? '')) {
|
|
778
|
+
selected.push(option);
|
|
779
|
+
}
|
|
780
|
+
if (option.children) {
|
|
781
|
+
findSelected(option.children);
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
};
|
|
785
|
+
findSelected(this.parsedOptions);
|
|
786
|
+
return selected;
|
|
787
|
+
}
|
|
788
|
+
getSelectedDescendantCount(option) {
|
|
789
|
+
if (!option.children)
|
|
790
|
+
return 0;
|
|
791
|
+
let count = 0;
|
|
792
|
+
const countSelected = (options) => {
|
|
793
|
+
options.forEach(o => {
|
|
794
|
+
if (this.selectedValues.has(o.value?.toString() ?? ''))
|
|
795
|
+
count++;
|
|
796
|
+
if (o.children)
|
|
797
|
+
countSelected(o.children);
|
|
798
|
+
});
|
|
799
|
+
};
|
|
800
|
+
countSelected(option.children);
|
|
801
|
+
return count;
|
|
802
|
+
}
|
|
803
|
+
filterOptions(options) {
|
|
804
|
+
if (!this.searchQuery)
|
|
805
|
+
return options;
|
|
806
|
+
return options
|
|
807
|
+
.filter(option => {
|
|
808
|
+
const query = this.caseSensitive ? this.searchQuery : this.searchQuery.toLowerCase();
|
|
809
|
+
const label = this.caseSensitive ? (option.label ?? '') : (option.label ?? '').toLowerCase();
|
|
810
|
+
const subtitle = this.caseSensitive ? (option.subtitle || '') : (option.subtitle || '').toLowerCase();
|
|
811
|
+
const description = this.caseSensitive ? (option.description || '') : (option.description || '').toLowerCase();
|
|
812
|
+
const group = this.caseSensitive ? (option.group || '') : (option.group || '').toLowerCase();
|
|
813
|
+
const matchesLabel = label.includes(query);
|
|
814
|
+
const matchesSubtitle = subtitle.includes(query);
|
|
815
|
+
const matchesDesc = description.includes(query);
|
|
816
|
+
const matchesGroup = group.includes(query);
|
|
817
|
+
const hasMatchingChildren = option.children && this.filterOptions(option.children).length > 0;
|
|
818
|
+
return matchesLabel || matchesSubtitle || matchesDesc || matchesGroup || hasMatchingChildren;
|
|
819
|
+
})
|
|
820
|
+
.map(option => ({
|
|
821
|
+
...option,
|
|
822
|
+
children: option.children ? this.filterOptions(option.children) : undefined,
|
|
823
|
+
}));
|
|
824
|
+
}
|
|
825
|
+
getIconSize(type) {
|
|
826
|
+
const sizes = {
|
|
827
|
+
sm: { main: '14px', sub: '12px', marker: '16px' },
|
|
828
|
+
md: { main: '16px', sub: '14px', marker: '18px' },
|
|
829
|
+
lg: { main: '18px', sub: '16px', marker: '20px' },
|
|
830
|
+
};
|
|
831
|
+
// Defensive: fallback to 'md' if size is not a key
|
|
832
|
+
let safeSize = 'md';
|
|
833
|
+
if (this.size === 'sm' || this.size === 'md' || this.size === 'lg') {
|
|
834
|
+
safeSize = this.size;
|
|
835
|
+
}
|
|
836
|
+
return sizes[safeSize][type];
|
|
837
|
+
}
|
|
838
|
+
highlightMatches(text) {
|
|
839
|
+
if (!this.searchQuery || !text)
|
|
840
|
+
return text;
|
|
841
|
+
const query = this.searchQuery.toLowerCase();
|
|
842
|
+
const index = text.toLowerCase().indexOf(query);
|
|
843
|
+
if (index === -1)
|
|
844
|
+
return text;
|
|
845
|
+
return (h("span", null, text.substring(0, index), h("span", { class: "dropdown-search-highlight" }, text.substring(index, index + query.length)), text.substring(index + query.length)));
|
|
846
|
+
}
|
|
847
|
+
renderOption(option, level = 0, indexObj = { current: 0 }) {
|
|
848
|
+
if (option.isSeparator) {
|
|
849
|
+
return h("div", { class: "dropdown-separator" });
|
|
850
|
+
}
|
|
851
|
+
const isSelected = this.selectedValues.has(option.value?.toString() ?? '');
|
|
852
|
+
const hasChildren = !!(this.cascading && option.children && option.children.length > 0);
|
|
853
|
+
const myIndex = indexObj.current;
|
|
854
|
+
indexObj.current++;
|
|
855
|
+
const isHighlighted = myIndex === this.highlightedIndex;
|
|
856
|
+
const optionId = this.getOptionId(myIndex);
|
|
857
|
+
return (h("div", { class: "dropdown-option-wrapper", key: option.value?.toString() ?? '', role: "option", id: optionId, "aria-selected": isSelected ? 'true' : 'false' }, h("div", { class: {
|
|
858
|
+
'ui-dropdown-option': true,
|
|
859
|
+
'dropdowndata': true,
|
|
860
|
+
'ui-dropdown-option-selected': isSelected,
|
|
861
|
+
'dropdown-option-highlighted': isHighlighted,
|
|
862
|
+
'dropdown-option-disabled': !!option.disabled,
|
|
863
|
+
'dropdown-option-parent': hasChildren
|
|
864
|
+
}, style: {
|
|
865
|
+
paddingLeft: `${16}px`,
|
|
866
|
+
display: 'flex',
|
|
867
|
+
flexDirection: 'row',
|
|
868
|
+
alignItems: 'center',
|
|
869
|
+
justifyContent: 'space-between',
|
|
870
|
+
gap: '12px',
|
|
871
|
+
boxSizing: 'border-box',
|
|
872
|
+
width: '100%',
|
|
873
|
+
whiteSpace: 'nowrap',
|
|
874
|
+
...(isSelected ? { backgroundColor: 'var(--dd-selected-bg)', color: 'var(--dd-selected-text)', borderRadius: '12px' } : {})
|
|
875
|
+
}, onClick: (e) => this.handleOptionClick(option, e), ref: (el) => {
|
|
876
|
+
if (el)
|
|
877
|
+
this.optionsRef[myIndex] = el;
|
|
878
|
+
} }, ((this.multiSelect && !hasChildren) || option.icon) && (h("div", { class: "dropdown-option-left" }, this.multiSelect && !hasChildren && (h("div", { class: { 'dropdown-checkbox': true, 'checked': isSelected, 'dropdown-checkbox-selected': isSelected } }, isSelected && h("ui-icon", { name: "check", library: "lucide", size: this.getIconSize('sub'), color: "white" }))), option.icon && (h("span", { class: "dropdown-option-icon" }, typeof option.icon === 'string' ? (h("ui-icon", { name: option.icon, library: option.iconLibrary, size: this.getIconSize('main') })) : (option.icon))))), h("div", { class: "dropdown-option-text" }, h("div", { class: { 'dropdown-option-content': true, 'dropdown-content-parent': hasChildren } }, h("div", { class: "dropdown-option-label" }, this.highlightMatches(option.label ?? '')), (option.subtitle || option.description) && (h("div", { class: "dropdown-option-subtitle" }, this.highlightMatches(option.subtitle ?? option.description ?? ''))))), h("div", { class: "dropdown-option-right" }, option.rightTag && (h("ui-tag", { label: option.rightTag, color: option.rightTagColor || 'default', size: "sm", variant: "light", class: "dropdown-option-tag" })), option.rightIcon && (h("span", { class: "dropdown-option-right-icon" }, h("ui-icon", { name: option.rightIcon, library: option.rightIconLibrary, size: this.getIconSize('sub') }))), hasChildren && (h("div", { class: "dropdown-expand-group" }, this.multiSelect && ((() => {
|
|
879
|
+
const count = this.getSelectedDescendantCount(option);
|
|
880
|
+
return count > 0 ? h("span", { class: "dropdown-badge" }, count) : null;
|
|
881
|
+
})()), h("ui-icon", { name: "chevron-right", library: "lucide", size: this.getIconSize('sub'), class: { 'dropdown-expand-icon': true, 'expanded': this.expandedNodes.has(option.value?.toString() ?? '') } }))), !this.multiSelect && !hasChildren && this.showSelectedMarker && (h("span", { class: "ui-dropdown-selected-marker-wrap", style: !isSelected ? { visibility: 'hidden' } : {} }, h("ui-icon", { name: this.selectedMarkerIcon, library: this.selectedMarkerLibrary, size: this.getIconSize('marker'), class: "ui-dropdown-selected-marker", color: this.selectedMarkerColor || 'var(--dd-selected-icon)' }), this.selectedMarkerLabel && h("span", { class: "ui-dropdown-selected-marker-label" }, this.selectedMarkerLabel))))), hasChildren && this.expandedNodes.has(option.value?.toString() ?? '') && (h("div", { class: "dropdown-children" }, option.children?.map(child => this.renderOption(child, level + 1, indexObj))))));
|
|
882
|
+
}
|
|
883
|
+
renderChips() {
|
|
884
|
+
const selectedOptions = this.getSelectedOptions();
|
|
885
|
+
if (selectedOptions.length === 0)
|
|
886
|
+
return this.placeholder;
|
|
887
|
+
return (h("div", { class: "dropdown-chips" }, selectedOptions.map(option => (h("ui-tag", { label: option.label ?? '', size: "sm", color: "primary", variant: "light", removable: true, animation: "slide", onTagRemove: (e) => {
|
|
888
|
+
e.stopPropagation();
|
|
889
|
+
this.handleOptionClick(option, e);
|
|
890
|
+
} })))));
|
|
891
|
+
}
|
|
892
|
+
getDisplayText() {
|
|
893
|
+
if (this.selectedValues.size === 0) {
|
|
894
|
+
return this.placeholder;
|
|
895
|
+
}
|
|
896
|
+
if (this.multiSelect) {
|
|
897
|
+
if (this.chipView)
|
|
898
|
+
return this.renderChips();
|
|
899
|
+
const selectedOptions = this.getSelectedOptions();
|
|
900
|
+
if (selectedOptions.length === 1) {
|
|
901
|
+
return selectedOptions[0].label;
|
|
902
|
+
}
|
|
903
|
+
return `${selectedOptions.length} items selected`;
|
|
904
|
+
}
|
|
905
|
+
else {
|
|
906
|
+
const selectedOptions = this.getSelectedOptions();
|
|
907
|
+
if (selectedOptions.length > 0) {
|
|
908
|
+
const option = selectedOptions[0];
|
|
909
|
+
if (this.variant === 'detailed' && option.icon) {
|
|
910
|
+
return (h("div", { class: "dropdown-trigger-content" }, h("ui-icon", { name: option.icon, library: option.iconLibrary || this.iconLibrary, size: "18px", class: "dropdown-trigger-icon" }), h("span", { class: "dropdown-trigger-label" }, option.label)));
|
|
911
|
+
}
|
|
912
|
+
return option.label;
|
|
913
|
+
}
|
|
914
|
+
return this.placeholder;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
renderValidationSubstrate() {
|
|
918
|
+
if (this.invalid && this.errorMessage) {
|
|
919
|
+
return (h("div", { class: "dropdown-helper-text dropdown-error-text" }, h("ui-icon", { name: "alert-circle", library: "lucide", size: "12px" }), h("span", null, this.errorMessage)));
|
|
920
|
+
}
|
|
921
|
+
if (this.helperText) {
|
|
922
|
+
return h("div", { class: "dropdown-helper-text" }, this.helperText);
|
|
923
|
+
}
|
|
924
|
+
return null;
|
|
925
|
+
}
|
|
926
|
+
render() {
|
|
927
|
+
if (this.skeleton) {
|
|
928
|
+
return (h("div", { class: { 'dropdown-container': true, 'dropdown-skeleton': true, [`dropdown-${this.size}`]: true, 'dropdown-full-width': this.fullWidth, 'dropdown-fit-content': this.fitContent, [`variant-${this.variant}`]: true } }, h("div", { class: "dropdown-trigger" }, h("div", { class: "dropdown-skeleton-text" }), h("div", { class: "dropdown-skeleton-icon" }))));
|
|
929
|
+
}
|
|
930
|
+
const filteredOptions = this.filterOptions(this.parsedOptions);
|
|
931
|
+
const hasSelection = this.selectedValues.size > 0;
|
|
932
|
+
const showArrow = this.showArrow !== undefined ? this.showArrow : this.appearance !== 'button';
|
|
933
|
+
const effectiveClearable = this.clearable !== undefined ? this.clearable : (this.multiSelect && !this.chipView);
|
|
934
|
+
const indexObj = { current: 0 };
|
|
935
|
+
const activeDescendantId = this.isOpen && this.highlightedIndex >= 0 ? this.getOptionId(this.highlightedIndex) : undefined;
|
|
936
|
+
const usesLocalMenuPosition = !this.shouldPortalMenu();
|
|
937
|
+
// Always use theme variable for text color unless textColor is set and not placeholder
|
|
938
|
+
let displayStyle = {};
|
|
939
|
+
if (this.textColor && hasSelection) {
|
|
940
|
+
displayStyle.color = this.textColor;
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
displayStyle.color = 'var(--dd-text, var(--color-on-surface, #10213a))';
|
|
944
|
+
}
|
|
945
|
+
return (h("div", { class: {
|
|
946
|
+
'dropdown-container': true,
|
|
947
|
+
[`dropdown-${this.size}`]: true,
|
|
948
|
+
[`variant-${this.variant}`]: true,
|
|
949
|
+
'dropdown-disabled': this.disabled,
|
|
950
|
+
'dropdown-open': this.isOpen,
|
|
951
|
+
'dropdown-invalid': this.invalid,
|
|
952
|
+
'dropdown-appearance-button': this.appearance === 'button',
|
|
953
|
+
'dropdown-full-width': this.fullWidth,
|
|
954
|
+
'dropdown-fit-content': this.fitContent,
|
|
955
|
+
'dropdown-has-chips': this.chipView && this.multiSelect && hasSelection,
|
|
956
|
+
'dropdown-rtl': this.rtl,
|
|
957
|
+
[`dropdown-shape-${this.shape}`]: this.shape !== 'default',
|
|
958
|
+
}, dir: this.rtl ? 'rtl' : 'ltr' }, this.label && h("label", { class: "dropdown-label" }, this.label), h("div", { class: "dropdown-trigger", onClick: this.toggleDropdown, onKeyDown: this.handleKeyDown, tabIndex: this.disabled ? -1 : 0, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": "dropdown-list", "aria-label": this.placeholder, "aria-activedescendant": activeDescendantId }, h("slot", { name: "prefix" }), h("div", { class: {
|
|
959
|
+
'dropdown-display': true,
|
|
960
|
+
'dropdown-placeholder': !hasSelection,
|
|
961
|
+
}, style: displayStyle }, this.getDisplayText()), h("div", { class: "dropdown-icons" }, this.loading && h("span", { class: "dropdown-spinner" }, h("ui-icon", { name: "loader-2", library: "lucide", spin: true, size: "16px" })), hasSelection && effectiveClearable && !this.disabled && (h("span", { class: "dropdown-clear", onClick: this.handleClear, tabIndex: 0, role: "button", "aria-label": "Clear selection", onKeyDown: e => {
|
|
962
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
963
|
+
e.stopPropagation();
|
|
964
|
+
this.handleClear(e);
|
|
965
|
+
}
|
|
966
|
+
} }, h("ui-icon", { name: "x", library: "lucide", size: this.getIconSize('sub') }))), showArrow && (h("ui-icon", { name: "chevron-down", library: "lucide", size: this.getIconSize('sub'), class: { 'dropdown-arrow': true, 'open': this.isOpen } })))), this.renderValidationSubstrate(), this.isOpen && (h("div", { class: {
|
|
967
|
+
'ui-dropdown-menu': true,
|
|
968
|
+
'ui-dropdown-menu--local': usesLocalMenuPosition,
|
|
969
|
+
'dropdown-menu-top': this.dropdownPosition === 'top',
|
|
970
|
+
[`dropdown-menu-${this.size}`]: true,
|
|
971
|
+
[`dropdown-menu-variant-${this.variant}`]: true,
|
|
972
|
+
'dropdown-menu-searchable': this.searchable,
|
|
973
|
+
'dropdown-menu-cascading': this.cascading,
|
|
974
|
+
}, id: "dropdown-list", role: "listbox", "aria-multiselectable": this.multiSelect ? 'true' : 'false', ref: el => {
|
|
975
|
+
if (el)
|
|
976
|
+
this.menuElement = el;
|
|
977
|
+
}, style: this.getMenuStyle(usesLocalMenuPosition) }, this.searchable && (h("div", { class: "dropdown-search" }, h("div", { class: "dropdown-search-container" }, h("ui-icon", { name: "search", library: "lucide", size: "16px", class: "dropdown-search-icon" }), h("input", { type: "text", class: "dropdown-search-input", placeholder: this.searchPlaceholder, value: this.searchQuery, onInput: this.handleSearchInput, ref: el => {
|
|
978
|
+
if (el)
|
|
979
|
+
this.searchInputRef = el;
|
|
980
|
+
}, onKeyDown: this.handleKeyDown, "aria-activedescendant": activeDescendantId })))), h("div", { class: "dropdown-options" }, this.renderBulkActions(filteredOptions), filteredOptions.length > 0 ? this.renderMenuContents(filteredOptions, indexObj) : (h("div", { class: "dropdown-empty" }, h("slot", { name: "empty-state" }, "No options found"))))))));
|
|
981
|
+
}
|
|
982
|
+
isAllSelected(options) {
|
|
983
|
+
const flattenOptions = (opts) => {
|
|
984
|
+
let result = [];
|
|
985
|
+
opts.forEach(o => {
|
|
986
|
+
result.push(o.value?.toString() ?? '');
|
|
987
|
+
if (o.children)
|
|
988
|
+
result = [...result, ...flattenOptions(o.children)];
|
|
989
|
+
});
|
|
990
|
+
return result;
|
|
991
|
+
};
|
|
992
|
+
const allValues = flattenOptions(options);
|
|
993
|
+
if (allValues.length === 0)
|
|
994
|
+
return false;
|
|
995
|
+
return allValues.every(v => this.selectedValues.has(v));
|
|
996
|
+
}
|
|
997
|
+
toggleSelectAll(options) {
|
|
998
|
+
const flattenOptions = (opts) => {
|
|
999
|
+
let result = [];
|
|
1000
|
+
opts.forEach(o => {
|
|
1001
|
+
result.push(o.value?.toString() ?? '');
|
|
1002
|
+
if (o.children)
|
|
1003
|
+
result = [...result, ...flattenOptions(o.children)];
|
|
1004
|
+
});
|
|
1005
|
+
return result;
|
|
1006
|
+
};
|
|
1007
|
+
const allValues = flattenOptions(options);
|
|
1008
|
+
const isAll = this.isAllSelected(options);
|
|
1009
|
+
if (isAll) {
|
|
1010
|
+
allValues.forEach(v => this.selectedValues.delete(v));
|
|
1011
|
+
}
|
|
1012
|
+
else {
|
|
1013
|
+
allValues.forEach(v => this.selectedValues.add(v));
|
|
1014
|
+
}
|
|
1015
|
+
this.selectedValues = new Set(this.selectedValues);
|
|
1016
|
+
this.value = Array.from(this.selectedValues).join(',');
|
|
1017
|
+
this.emitChangeEvent();
|
|
1018
|
+
}
|
|
1019
|
+
clearAllSelections() {
|
|
1020
|
+
this.selectedValues = new Set();
|
|
1021
|
+
this.value = ''; // Assuming value should also be cleared
|
|
1022
|
+
this.emitChangeEvent();
|
|
1023
|
+
}
|
|
1024
|
+
renderBulkActions(filteredOptions) {
|
|
1025
|
+
if (!this.multiSelect || this.searchQuery)
|
|
1026
|
+
return null; // Only show bulk actions for multi-select when not searching
|
|
1027
|
+
const allSelected = this.isAllSelected(filteredOptions);
|
|
1028
|
+
const hasAnySelection = this.selectedValues.size > 0;
|
|
1029
|
+
const showSelectAllAction = this.showSelectAll && filteredOptions.length > 0;
|
|
1030
|
+
if (!showSelectAllAction && !hasAnySelection) {
|
|
1031
|
+
return null;
|
|
1032
|
+
}
|
|
1033
|
+
return (h("div", { class: "dropdown-bulk-actions" }, showSelectAllAction && (h("div", { class: { 'dropdown-select-all': true, 'dropdown-select-all-with-clear': hasAnySelection }, onClick: e => { e.stopPropagation(); this.toggleSelectAll(filteredOptions); } }, h("div", { class: { 'dropdown-checkbox': true, 'dropdown-checkbox-selected': allSelected } }, allSelected && h("ui-icon", { name: "check", library: "lucide", size: "12px" })), h("span", null, this.selectAllLabel))), hasAnySelection && (h("div", { class: "dropdown-clear-all", onClick: e => { e.stopPropagation(); this.clearAllSelections(); } }, h("ui-icon", { name: "trash-2", library: "lucide", size: "14px" }), h("span", null, "Clear All")))));
|
|
1034
|
+
}
|
|
1035
|
+
renderNestedMenuContents(options, indexObj) {
|
|
1036
|
+
const levels = this.getNestedMenuLevels(options);
|
|
1037
|
+
return (h("div", { class: "dropdown-nested-columns" }, levels.map((levelOptions, levelIndex) => (h("div", { class: "dropdown-nested-panel", key: `nested-level-${levelIndex}` }, levelOptions.map(option => {
|
|
1038
|
+
const hasChildren = !!option.children?.length;
|
|
1039
|
+
const value = option.value?.toString() ?? '';
|
|
1040
|
+
const isSelected = this.selectedValues.has(value);
|
|
1041
|
+
const isActive = this.nestedPath[levelIndex] === value;
|
|
1042
|
+
const myIndex = indexObj.current;
|
|
1043
|
+
indexObj.current++;
|
|
1044
|
+
const isHighlighted = myIndex === this.highlightedIndex;
|
|
1045
|
+
const optionId = this.getOptionId(myIndex);
|
|
1046
|
+
return (h("div", { class: "dropdown-option-wrapper", key: `${value}-${levelIndex}`, role: "option", id: optionId, "aria-selected": isSelected ? 'true' : 'false' }, h("div", { class: {
|
|
1047
|
+
'ui-dropdown-option': true,
|
|
1048
|
+
'dropdowndata': true,
|
|
1049
|
+
'dropdown-nested-option': true,
|
|
1050
|
+
'ui-dropdown-option-selected': isSelected,
|
|
1051
|
+
'dropdown-option-highlighted': isHighlighted,
|
|
1052
|
+
'dropdown-option-disabled': !!option.disabled,
|
|
1053
|
+
'dropdown-option-parent': hasChildren,
|
|
1054
|
+
'dropdown-nested-option-active': isActive,
|
|
1055
|
+
}, onMouseEnter: () => {
|
|
1056
|
+
if (hasChildren) {
|
|
1057
|
+
this.setNestedPath(levelIndex, value);
|
|
1058
|
+
}
|
|
1059
|
+
}, onClick: (e) => this.handleOptionClick(option, e), ref: (el) => {
|
|
1060
|
+
if (el)
|
|
1061
|
+
this.optionsRef[myIndex] = el;
|
|
1062
|
+
} }, ((this.multiSelect && !hasChildren) || option.icon) && (h("div", { class: "dropdown-option-left" }, this.multiSelect && !hasChildren && (h("div", { class: { 'dropdown-checkbox': true, 'checked': isSelected, 'dropdown-checkbox-selected': isSelected } }, isSelected && h("ui-icon", { name: "check", library: "lucide", size: this.getIconSize('sub'), color: "white" }))), option.icon && (h("span", { class: "dropdown-option-icon" }, typeof option.icon === 'string' ? (h("ui-icon", { name: option.icon, library: option.iconLibrary, size: this.getIconSize('main') })) : (option.icon))))), h("div", { class: "dropdown-option-text" }, h("div", { class: "dropdown-option-content" }, h("div", { class: "dropdown-option-label" }, this.highlightMatches(option.label ?? '')), (option.subtitle || option.description) && (h("div", { class: "dropdown-option-subtitle" }, this.highlightMatches(option.subtitle ?? option.description ?? ''))))), h("div", { class: "dropdown-option-right" }, option.rightTag && (h("ui-tag", { label: option.rightTag, color: option.rightTagColor || 'default', size: "sm", variant: "light", class: "dropdown-option-tag" })), hasChildren && (h("ui-icon", { name: "chevron-right", library: "lucide", size: this.getIconSize('sub'), class: { 'dropdown-expand-icon': true, 'expanded': isActive } })), !this.multiSelect && !hasChildren && this.showSelectedMarker && (h("span", { class: "ui-dropdown-selected-marker-wrap", style: !isSelected ? { visibility: 'hidden' } : {} }, h("ui-icon", { name: this.selectedMarkerIcon, library: this.selectedMarkerLibrary, size: this.getIconSize('marker'), class: "ui-dropdown-selected-marker", color: this.selectedMarkerColor || 'var(--dd-selected-icon)' }), this.selectedMarkerLabel && h("span", { class: "ui-dropdown-selected-marker-label" }, this.selectedMarkerLabel)))))));
|
|
1063
|
+
}))))));
|
|
1064
|
+
}
|
|
1065
|
+
renderMenuContents(options, indexObj) {
|
|
1066
|
+
if (this.isNestedMenuVariant()) {
|
|
1067
|
+
return this.renderNestedMenuContents(options, indexObj);
|
|
1068
|
+
}
|
|
1069
|
+
const rendered = [];
|
|
1070
|
+
let lastGroup = null;
|
|
1071
|
+
const displayOptions = this.virtualScroll ? options.slice(0, 50) : options;
|
|
1072
|
+
displayOptions.forEach(option => {
|
|
1073
|
+
if (option.group && option.group !== lastGroup) {
|
|
1074
|
+
rendered.push(h("div", { class: "dropdown-group-header" }, option.group));
|
|
1075
|
+
lastGroup = option.group;
|
|
1076
|
+
}
|
|
1077
|
+
rendered.push(this.renderOption(option, 0, indexObj));
|
|
1078
|
+
});
|
|
1079
|
+
if (this.virtualScroll && options.length > 50) {
|
|
1080
|
+
rendered.push(h("div", { class: "dropdown-more-info" }, "Showing 50 of ", options.length, " items. Use search to find more."));
|
|
1081
|
+
}
|
|
1082
|
+
return rendered;
|
|
1083
|
+
}
|
|
1084
|
+
static get is() { return "ui-dropdown"; }
|
|
1085
|
+
static get originalStyleUrls() {
|
|
1086
|
+
return {
|
|
1087
|
+
"$": ["./dropdown.scss"]
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
static get styleUrls() {
|
|
1091
|
+
return {
|
|
1092
|
+
"$": ["dropdown.css"]
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
static get properties() {
|
|
1096
|
+
return {
|
|
1097
|
+
"options": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"mutable": false,
|
|
1100
|
+
"complexType": {
|
|
1101
|
+
"original": "string | DropdownOption[]",
|
|
1102
|
+
"resolved": "DropdownOption[] | string",
|
|
1103
|
+
"references": {
|
|
1104
|
+
"DropdownOption": {
|
|
1105
|
+
"location": "import",
|
|
1106
|
+
"path": "./types",
|
|
1107
|
+
"id": "src/components/dropdown/types.ts::DropdownOption",
|
|
1108
|
+
"referenceLocation": "DropdownOption"
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"required": false,
|
|
1113
|
+
"optional": false,
|
|
1114
|
+
"docs": {
|
|
1115
|
+
"tags": [],
|
|
1116
|
+
"text": "Options as JSON string or DropdownOption array"
|
|
1117
|
+
},
|
|
1118
|
+
"getter": false,
|
|
1119
|
+
"setter": false,
|
|
1120
|
+
"reflect": false,
|
|
1121
|
+
"attribute": "options",
|
|
1122
|
+
"defaultValue": "[]"
|
|
1123
|
+
},
|
|
1124
|
+
"placeholder": {
|
|
1125
|
+
"type": "string",
|
|
1126
|
+
"mutable": false,
|
|
1127
|
+
"complexType": {
|
|
1128
|
+
"original": "string",
|
|
1129
|
+
"resolved": "string",
|
|
1130
|
+
"references": {}
|
|
1131
|
+
},
|
|
1132
|
+
"required": false,
|
|
1133
|
+
"optional": false,
|
|
1134
|
+
"docs": {
|
|
1135
|
+
"tags": [],
|
|
1136
|
+
"text": "Placeholder text"
|
|
1137
|
+
},
|
|
1138
|
+
"getter": false,
|
|
1139
|
+
"setter": false,
|
|
1140
|
+
"reflect": false,
|
|
1141
|
+
"attribute": "placeholder",
|
|
1142
|
+
"defaultValue": "'Select an option'"
|
|
1143
|
+
},
|
|
1144
|
+
"multiSelect": {
|
|
1145
|
+
"type": "boolean",
|
|
1146
|
+
"mutable": false,
|
|
1147
|
+
"complexType": {
|
|
1148
|
+
"original": "boolean",
|
|
1149
|
+
"resolved": "boolean",
|
|
1150
|
+
"references": {}
|
|
1151
|
+
},
|
|
1152
|
+
"required": false,
|
|
1153
|
+
"optional": false,
|
|
1154
|
+
"docs": {
|
|
1155
|
+
"tags": [],
|
|
1156
|
+
"text": "Enable multi-select mode"
|
|
1157
|
+
},
|
|
1158
|
+
"getter": false,
|
|
1159
|
+
"setter": false,
|
|
1160
|
+
"reflect": false,
|
|
1161
|
+
"attribute": "multi-select",
|
|
1162
|
+
"defaultValue": "false"
|
|
1163
|
+
},
|
|
1164
|
+
"cascading": {
|
|
1165
|
+
"type": "boolean",
|
|
1166
|
+
"mutable": false,
|
|
1167
|
+
"complexType": {
|
|
1168
|
+
"original": "boolean",
|
|
1169
|
+
"resolved": "boolean",
|
|
1170
|
+
"references": {}
|
|
1171
|
+
},
|
|
1172
|
+
"required": false,
|
|
1173
|
+
"optional": false,
|
|
1174
|
+
"docs": {
|
|
1175
|
+
"tags": [],
|
|
1176
|
+
"text": "Enable cascading/hierarchical selection"
|
|
1177
|
+
},
|
|
1178
|
+
"getter": false,
|
|
1179
|
+
"setter": false,
|
|
1180
|
+
"reflect": false,
|
|
1181
|
+
"attribute": "cascading",
|
|
1182
|
+
"defaultValue": "false"
|
|
1183
|
+
},
|
|
1184
|
+
"value": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"mutable": true,
|
|
1187
|
+
"complexType": {
|
|
1188
|
+
"original": "string",
|
|
1189
|
+
"resolved": "string",
|
|
1190
|
+
"references": {}
|
|
1191
|
+
},
|
|
1192
|
+
"required": false,
|
|
1193
|
+
"optional": false,
|
|
1194
|
+
"docs": {
|
|
1195
|
+
"tags": [],
|
|
1196
|
+
"text": "Selected value(s) - string for single, comma-separated for multi"
|
|
1197
|
+
},
|
|
1198
|
+
"getter": false,
|
|
1199
|
+
"setter": false,
|
|
1200
|
+
"reflect": false,
|
|
1201
|
+
"attribute": "value",
|
|
1202
|
+
"defaultValue": "''"
|
|
1203
|
+
},
|
|
1204
|
+
"disabled": {
|
|
1205
|
+
"type": "boolean",
|
|
1206
|
+
"mutable": false,
|
|
1207
|
+
"complexType": {
|
|
1208
|
+
"original": "boolean",
|
|
1209
|
+
"resolved": "boolean",
|
|
1210
|
+
"references": {}
|
|
1211
|
+
},
|
|
1212
|
+
"required": false,
|
|
1213
|
+
"optional": false,
|
|
1214
|
+
"docs": {
|
|
1215
|
+
"tags": [],
|
|
1216
|
+
"text": "Disabled state"
|
|
1217
|
+
},
|
|
1218
|
+
"getter": false,
|
|
1219
|
+
"setter": false,
|
|
1220
|
+
"reflect": false,
|
|
1221
|
+
"attribute": "disabled",
|
|
1222
|
+
"defaultValue": "false"
|
|
1223
|
+
},
|
|
1224
|
+
"searchable": {
|
|
1225
|
+
"type": "boolean",
|
|
1226
|
+
"mutable": false,
|
|
1227
|
+
"complexType": {
|
|
1228
|
+
"original": "boolean",
|
|
1229
|
+
"resolved": "boolean",
|
|
1230
|
+
"references": {}
|
|
1231
|
+
},
|
|
1232
|
+
"required": false,
|
|
1233
|
+
"optional": false,
|
|
1234
|
+
"docs": {
|
|
1235
|
+
"tags": [],
|
|
1236
|
+
"text": "Show search/filter input"
|
|
1237
|
+
},
|
|
1238
|
+
"getter": false,
|
|
1239
|
+
"setter": false,
|
|
1240
|
+
"reflect": false,
|
|
1241
|
+
"attribute": "searchable",
|
|
1242
|
+
"defaultValue": "false"
|
|
1243
|
+
},
|
|
1244
|
+
"maxHeight": {
|
|
1245
|
+
"type": "number",
|
|
1246
|
+
"mutable": false,
|
|
1247
|
+
"complexType": {
|
|
1248
|
+
"original": "number",
|
|
1249
|
+
"resolved": "number",
|
|
1250
|
+
"references": {}
|
|
1251
|
+
},
|
|
1252
|
+
"required": false,
|
|
1253
|
+
"optional": false,
|
|
1254
|
+
"docs": {
|
|
1255
|
+
"tags": [],
|
|
1256
|
+
"text": "Maximum height of dropdown (in pixels)"
|
|
1257
|
+
},
|
|
1258
|
+
"getter": false,
|
|
1259
|
+
"setter": false,
|
|
1260
|
+
"reflect": false,
|
|
1261
|
+
"attribute": "max-height",
|
|
1262
|
+
"defaultValue": "300"
|
|
1263
|
+
},
|
|
1264
|
+
"size": {
|
|
1265
|
+
"type": "string",
|
|
1266
|
+
"mutable": false,
|
|
1267
|
+
"complexType": {
|
|
1268
|
+
"original": "BasicSize",
|
|
1269
|
+
"resolved": "\"default\" | \"large\" | \"lg\" | \"md\" | \"medium\" | \"sm\" | \"small\"",
|
|
1270
|
+
"references": {
|
|
1271
|
+
"BasicSize": {
|
|
1272
|
+
"location": "import",
|
|
1273
|
+
"path": "../../types",
|
|
1274
|
+
"id": "src/types/index.ts::BasicSize",
|
|
1275
|
+
"referenceLocation": "BasicSize"
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"required": false,
|
|
1280
|
+
"optional": false,
|
|
1281
|
+
"docs": {
|
|
1282
|
+
"tags": [],
|
|
1283
|
+
"text": "Size variant"
|
|
1284
|
+
},
|
|
1285
|
+
"getter": false,
|
|
1286
|
+
"setter": false,
|
|
1287
|
+
"reflect": false,
|
|
1288
|
+
"attribute": "size",
|
|
1289
|
+
"defaultValue": "'md'"
|
|
1290
|
+
},
|
|
1291
|
+
"appearance": {
|
|
1292
|
+
"type": "string",
|
|
1293
|
+
"mutable": false,
|
|
1294
|
+
"complexType": {
|
|
1295
|
+
"original": "'dropdown' | 'button'",
|
|
1296
|
+
"resolved": "\"button\" | \"dropdown\"",
|
|
1297
|
+
"references": {}
|
|
1298
|
+
},
|
|
1299
|
+
"required": false,
|
|
1300
|
+
"optional": false,
|
|
1301
|
+
"docs": {
|
|
1302
|
+
"tags": [],
|
|
1303
|
+
"text": "Appearance: default dropdown or button-like (no arrow)"
|
|
1304
|
+
},
|
|
1305
|
+
"getter": false,
|
|
1306
|
+
"setter": false,
|
|
1307
|
+
"reflect": false,
|
|
1308
|
+
"attribute": "appearance",
|
|
1309
|
+
"defaultValue": "'dropdown'"
|
|
1310
|
+
},
|
|
1311
|
+
"variant": {
|
|
1312
|
+
"type": "string",
|
|
1313
|
+
"mutable": false,
|
|
1314
|
+
"complexType": {
|
|
1315
|
+
"original": "'default' | 'glass' | 'detailed' | 'nested-menu' | 'toggle'",
|
|
1316
|
+
"resolved": "\"default\" | \"detailed\" | \"glass\" | \"nested-menu\" | \"toggle\"",
|
|
1317
|
+
"references": {}
|
|
1318
|
+
},
|
|
1319
|
+
"required": false,
|
|
1320
|
+
"optional": false,
|
|
1321
|
+
"docs": {
|
|
1322
|
+
"tags": [],
|
|
1323
|
+
"text": "Aesthetic variant"
|
|
1324
|
+
},
|
|
1325
|
+
"getter": false,
|
|
1326
|
+
"setter": false,
|
|
1327
|
+
"reflect": false,
|
|
1328
|
+
"attribute": "variant",
|
|
1329
|
+
"defaultValue": "'default'"
|
|
1330
|
+
},
|
|
1331
|
+
"chipView": {
|
|
1332
|
+
"type": "boolean",
|
|
1333
|
+
"mutable": false,
|
|
1334
|
+
"complexType": {
|
|
1335
|
+
"original": "boolean",
|
|
1336
|
+
"resolved": "boolean",
|
|
1337
|
+
"references": {}
|
|
1338
|
+
},
|
|
1339
|
+
"required": false,
|
|
1340
|
+
"optional": false,
|
|
1341
|
+
"docs": {
|
|
1342
|
+
"tags": [],
|
|
1343
|
+
"text": "Use chips for multi-select display"
|
|
1344
|
+
},
|
|
1345
|
+
"getter": false,
|
|
1346
|
+
"setter": false,
|
|
1347
|
+
"reflect": false,
|
|
1348
|
+
"attribute": "chip-view",
|
|
1349
|
+
"defaultValue": "false"
|
|
1350
|
+
},
|
|
1351
|
+
"showArrow": {
|
|
1352
|
+
"type": "boolean",
|
|
1353
|
+
"mutable": false,
|
|
1354
|
+
"complexType": {
|
|
1355
|
+
"original": "boolean",
|
|
1356
|
+
"resolved": "boolean",
|
|
1357
|
+
"references": {}
|
|
1358
|
+
},
|
|
1359
|
+
"required": false,
|
|
1360
|
+
"optional": true,
|
|
1361
|
+
"docs": {
|
|
1362
|
+
"tags": [],
|
|
1363
|
+
"text": "Controls visibility of the arrow icon. If false, no arrow is shown.\r\nDefaults to true for dropdown appearance; false when appearance is 'button'."
|
|
1364
|
+
},
|
|
1365
|
+
"getter": false,
|
|
1366
|
+
"setter": false,
|
|
1367
|
+
"reflect": false,
|
|
1368
|
+
"attribute": "show-arrow"
|
|
1369
|
+
},
|
|
1370
|
+
"ignoreParentPosition": {
|
|
1371
|
+
"type": "boolean",
|
|
1372
|
+
"mutable": false,
|
|
1373
|
+
"complexType": {
|
|
1374
|
+
"original": "boolean",
|
|
1375
|
+
"resolved": "boolean",
|
|
1376
|
+
"references": {}
|
|
1377
|
+
},
|
|
1378
|
+
"required": false,
|
|
1379
|
+
"optional": false,
|
|
1380
|
+
"docs": {
|
|
1381
|
+
"tags": [],
|
|
1382
|
+
"text": "If true, dropdown positioning ignores transformed/positioned parent offsets.\r\nUse this when the menu is portaled and should stay anchored to viewport coordinates."
|
|
1383
|
+
},
|
|
1384
|
+
"getter": false,
|
|
1385
|
+
"setter": false,
|
|
1386
|
+
"reflect": false,
|
|
1387
|
+
"attribute": "ignore-parent-position",
|
|
1388
|
+
"defaultValue": "true"
|
|
1389
|
+
},
|
|
1390
|
+
"clearable": {
|
|
1391
|
+
"type": "boolean",
|
|
1392
|
+
"mutable": false,
|
|
1393
|
+
"complexType": {
|
|
1394
|
+
"original": "boolean",
|
|
1395
|
+
"resolved": "boolean",
|
|
1396
|
+
"references": {}
|
|
1397
|
+
},
|
|
1398
|
+
"required": false,
|
|
1399
|
+
"optional": true,
|
|
1400
|
+
"docs": {
|
|
1401
|
+
"tags": [],
|
|
1402
|
+
"text": "Show clear (\u2715) button when a value is selected.\r\n- When not set (default): automatically shown for multi-select, hidden for single-select.\r\n- Set to `true` : always show the clear button (both single & multi).\r\n- Set to `false` : always hide the clear button (both single & multi)."
|
|
1403
|
+
},
|
|
1404
|
+
"getter": false,
|
|
1405
|
+
"setter": false,
|
|
1406
|
+
"reflect": false,
|
|
1407
|
+
"attribute": "clearable"
|
|
1408
|
+
},
|
|
1409
|
+
"fullWidth": {
|
|
1410
|
+
"type": "boolean",
|
|
1411
|
+
"mutable": false,
|
|
1412
|
+
"complexType": {
|
|
1413
|
+
"original": "boolean",
|
|
1414
|
+
"resolved": "boolean",
|
|
1415
|
+
"references": {}
|
|
1416
|
+
},
|
|
1417
|
+
"required": false,
|
|
1418
|
+
"optional": false,
|
|
1419
|
+
"docs": {
|
|
1420
|
+
"tags": [],
|
|
1421
|
+
"text": "If true, the dropdown will take up the full width of its container."
|
|
1422
|
+
},
|
|
1423
|
+
"getter": false,
|
|
1424
|
+
"setter": false,
|
|
1425
|
+
"reflect": false,
|
|
1426
|
+
"attribute": "full-width",
|
|
1427
|
+
"defaultValue": "false"
|
|
1428
|
+
},
|
|
1429
|
+
"fitContent": {
|
|
1430
|
+
"type": "boolean",
|
|
1431
|
+
"mutable": false,
|
|
1432
|
+
"complexType": {
|
|
1433
|
+
"original": "boolean",
|
|
1434
|
+
"resolved": "boolean",
|
|
1435
|
+
"references": {}
|
|
1436
|
+
},
|
|
1437
|
+
"required": false,
|
|
1438
|
+
"optional": false,
|
|
1439
|
+
"docs": {
|
|
1440
|
+
"tags": [],
|
|
1441
|
+
"text": "If true, the dropdown width fits its longest option (max-content)."
|
|
1442
|
+
},
|
|
1443
|
+
"getter": false,
|
|
1444
|
+
"setter": false,
|
|
1445
|
+
"reflect": false,
|
|
1446
|
+
"attribute": "fit-content",
|
|
1447
|
+
"defaultValue": "false"
|
|
1448
|
+
},
|
|
1449
|
+
"menuWidth": {
|
|
1450
|
+
"type": "any",
|
|
1451
|
+
"mutable": false,
|
|
1452
|
+
"complexType": {
|
|
1453
|
+
"original": "string | number",
|
|
1454
|
+
"resolved": "number | string",
|
|
1455
|
+
"references": {}
|
|
1456
|
+
},
|
|
1457
|
+
"required": false,
|
|
1458
|
+
"optional": true,
|
|
1459
|
+
"docs": {
|
|
1460
|
+
"tags": [],
|
|
1461
|
+
"text": "Optional width for the dropdown options panel.\r\nAccepts a number (pixels) or any valid CSS width value such as `320px`, `24rem`, or `min(28rem, 90vw)`.\r\nBy default, the menu matches the trigger width."
|
|
1462
|
+
},
|
|
1463
|
+
"getter": false,
|
|
1464
|
+
"setter": false,
|
|
1465
|
+
"reflect": false,
|
|
1466
|
+
"attribute": "menu-width"
|
|
1467
|
+
},
|
|
1468
|
+
"loading": {
|
|
1469
|
+
"type": "boolean",
|
|
1470
|
+
"mutable": false,
|
|
1471
|
+
"complexType": {
|
|
1472
|
+
"original": "boolean",
|
|
1473
|
+
"resolved": "boolean",
|
|
1474
|
+
"references": {}
|
|
1475
|
+
},
|
|
1476
|
+
"required": false,
|
|
1477
|
+
"optional": false,
|
|
1478
|
+
"docs": {
|
|
1479
|
+
"tags": [],
|
|
1480
|
+
"text": "Loading state"
|
|
1481
|
+
},
|
|
1482
|
+
"getter": false,
|
|
1483
|
+
"setter": false,
|
|
1484
|
+
"reflect": false,
|
|
1485
|
+
"attribute": "loading",
|
|
1486
|
+
"defaultValue": "false"
|
|
1487
|
+
},
|
|
1488
|
+
"invalid": {
|
|
1489
|
+
"type": "boolean",
|
|
1490
|
+
"mutable": false,
|
|
1491
|
+
"complexType": {
|
|
1492
|
+
"original": "boolean",
|
|
1493
|
+
"resolved": "boolean",
|
|
1494
|
+
"references": {}
|
|
1495
|
+
},
|
|
1496
|
+
"required": false,
|
|
1497
|
+
"optional": false,
|
|
1498
|
+
"docs": {
|
|
1499
|
+
"tags": [],
|
|
1500
|
+
"text": "Validation state"
|
|
1501
|
+
},
|
|
1502
|
+
"getter": false,
|
|
1503
|
+
"setter": false,
|
|
1504
|
+
"reflect": false,
|
|
1505
|
+
"attribute": "invalid",
|
|
1506
|
+
"defaultValue": "false"
|
|
1507
|
+
},
|
|
1508
|
+
"helperText": {
|
|
1509
|
+
"type": "string",
|
|
1510
|
+
"mutable": false,
|
|
1511
|
+
"complexType": {
|
|
1512
|
+
"original": "string",
|
|
1513
|
+
"resolved": "string",
|
|
1514
|
+
"references": {}
|
|
1515
|
+
},
|
|
1516
|
+
"required": false,
|
|
1517
|
+
"optional": true,
|
|
1518
|
+
"docs": {
|
|
1519
|
+
"tags": [],
|
|
1520
|
+
"text": "Helper text / validation message"
|
|
1521
|
+
},
|
|
1522
|
+
"getter": false,
|
|
1523
|
+
"setter": false,
|
|
1524
|
+
"reflect": false,
|
|
1525
|
+
"attribute": "helper-text"
|
|
1526
|
+
},
|
|
1527
|
+
"errorMessage": {
|
|
1528
|
+
"type": "string",
|
|
1529
|
+
"mutable": false,
|
|
1530
|
+
"complexType": {
|
|
1531
|
+
"original": "string",
|
|
1532
|
+
"resolved": "string",
|
|
1533
|
+
"references": {}
|
|
1534
|
+
},
|
|
1535
|
+
"required": false,
|
|
1536
|
+
"optional": true,
|
|
1537
|
+
"docs": {
|
|
1538
|
+
"tags": [],
|
|
1539
|
+
"text": "Error message to show when invalid"
|
|
1540
|
+
},
|
|
1541
|
+
"getter": false,
|
|
1542
|
+
"setter": false,
|
|
1543
|
+
"reflect": false,
|
|
1544
|
+
"attribute": "error-message"
|
|
1545
|
+
},
|
|
1546
|
+
"searchPlaceholder": {
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"mutable": false,
|
|
1549
|
+
"complexType": {
|
|
1550
|
+
"original": "string",
|
|
1551
|
+
"resolved": "string",
|
|
1552
|
+
"references": {}
|
|
1553
|
+
},
|
|
1554
|
+
"required": false,
|
|
1555
|
+
"optional": false,
|
|
1556
|
+
"docs": {
|
|
1557
|
+
"tags": [],
|
|
1558
|
+
"text": "Placeholder for the search input"
|
|
1559
|
+
},
|
|
1560
|
+
"getter": false,
|
|
1561
|
+
"setter": false,
|
|
1562
|
+
"reflect": false,
|
|
1563
|
+
"attribute": "search-placeholder",
|
|
1564
|
+
"defaultValue": "'Search...'"
|
|
1565
|
+
},
|
|
1566
|
+
"iconLibrary": {
|
|
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": "Default icon library for option icons (e.g. 'lucide', 'ionicons')"
|
|
1579
|
+
},
|
|
1580
|
+
"getter": false,
|
|
1581
|
+
"setter": false,
|
|
1582
|
+
"reflect": false,
|
|
1583
|
+
"attribute": "icon-library",
|
|
1584
|
+
"defaultValue": "'ionicons'"
|
|
1585
|
+
},
|
|
1586
|
+
"showPath": {
|
|
1587
|
+
"type": "boolean",
|
|
1588
|
+
"mutable": false,
|
|
1589
|
+
"complexType": {
|
|
1590
|
+
"original": "boolean",
|
|
1591
|
+
"resolved": "boolean",
|
|
1592
|
+
"references": {}
|
|
1593
|
+
},
|
|
1594
|
+
"required": false,
|
|
1595
|
+
"optional": false,
|
|
1596
|
+
"docs": {
|
|
1597
|
+
"tags": [],
|
|
1598
|
+
"text": "If true, show the full hierarchy path in selected value (for cascading)"
|
|
1599
|
+
},
|
|
1600
|
+
"getter": false,
|
|
1601
|
+
"setter": false,
|
|
1602
|
+
"reflect": false,
|
|
1603
|
+
"attribute": "show-path",
|
|
1604
|
+
"defaultValue": "false"
|
|
1605
|
+
},
|
|
1606
|
+
"highFidelity": {
|
|
1607
|
+
"type": "boolean",
|
|
1608
|
+
"mutable": false,
|
|
1609
|
+
"complexType": {
|
|
1610
|
+
"original": "boolean",
|
|
1611
|
+
"resolved": "boolean",
|
|
1612
|
+
"references": {}
|
|
1613
|
+
},
|
|
1614
|
+
"required": false,
|
|
1615
|
+
"optional": false,
|
|
1616
|
+
"docs": {
|
|
1617
|
+
"tags": [],
|
|
1618
|
+
"text": "Use high-fidelity animation (Framer-like physics)"
|
|
1619
|
+
},
|
|
1620
|
+
"getter": false,
|
|
1621
|
+
"setter": false,
|
|
1622
|
+
"reflect": false,
|
|
1623
|
+
"attribute": "high-fidelity",
|
|
1624
|
+
"defaultValue": "true"
|
|
1625
|
+
},
|
|
1626
|
+
"rtl": {
|
|
1627
|
+
"type": "boolean",
|
|
1628
|
+
"mutable": false,
|
|
1629
|
+
"complexType": {
|
|
1630
|
+
"original": "boolean",
|
|
1631
|
+
"resolved": "boolean",
|
|
1632
|
+
"references": {}
|
|
1633
|
+
},
|
|
1634
|
+
"required": false,
|
|
1635
|
+
"optional": false,
|
|
1636
|
+
"docs": {
|
|
1637
|
+
"tags": [],
|
|
1638
|
+
"text": "RTL support"
|
|
1639
|
+
},
|
|
1640
|
+
"getter": false,
|
|
1641
|
+
"setter": false,
|
|
1642
|
+
"reflect": false,
|
|
1643
|
+
"attribute": "rtl",
|
|
1644
|
+
"defaultValue": "false"
|
|
1645
|
+
},
|
|
1646
|
+
"shape": {
|
|
1647
|
+
"type": "string",
|
|
1648
|
+
"mutable": false,
|
|
1649
|
+
"complexType": {
|
|
1650
|
+
"original": "'default' | 'square' | 'rounded' | 'pill'",
|
|
1651
|
+
"resolved": "\"default\" | \"pill\" | \"rounded\" | \"square\"",
|
|
1652
|
+
"references": {}
|
|
1653
|
+
},
|
|
1654
|
+
"required": false,
|
|
1655
|
+
"optional": false,
|
|
1656
|
+
"docs": {
|
|
1657
|
+
"tags": [],
|
|
1658
|
+
"text": "Shape variant (inherits from design system or parent)"
|
|
1659
|
+
},
|
|
1660
|
+
"getter": false,
|
|
1661
|
+
"setter": false,
|
|
1662
|
+
"reflect": false,
|
|
1663
|
+
"attribute": "shape",
|
|
1664
|
+
"defaultValue": "'default'"
|
|
1665
|
+
},
|
|
1666
|
+
"showSelectedMarker": {
|
|
1667
|
+
"type": "boolean",
|
|
1668
|
+
"mutable": false,
|
|
1669
|
+
"complexType": {
|
|
1670
|
+
"original": "boolean",
|
|
1671
|
+
"resolved": "boolean",
|
|
1672
|
+
"references": {}
|
|
1673
|
+
},
|
|
1674
|
+
"required": false,
|
|
1675
|
+
"optional": false,
|
|
1676
|
+
"docs": {
|
|
1677
|
+
"tags": [],
|
|
1678
|
+
"text": "If true, shows a checkmark (tick) next to the selected item in single-select mode."
|
|
1679
|
+
},
|
|
1680
|
+
"getter": false,
|
|
1681
|
+
"setter": false,
|
|
1682
|
+
"reflect": false,
|
|
1683
|
+
"attribute": "show-selected-marker",
|
|
1684
|
+
"defaultValue": "true"
|
|
1685
|
+
},
|
|
1686
|
+
"selectedMarkerIcon": {
|
|
1687
|
+
"type": "string",
|
|
1688
|
+
"mutable": false,
|
|
1689
|
+
"complexType": {
|
|
1690
|
+
"original": "string",
|
|
1691
|
+
"resolved": "string",
|
|
1692
|
+
"references": {}
|
|
1693
|
+
},
|
|
1694
|
+
"required": false,
|
|
1695
|
+
"optional": false,
|
|
1696
|
+
"docs": {
|
|
1697
|
+
"tags": [],
|
|
1698
|
+
"text": "Custom icon for the selection marker"
|
|
1699
|
+
},
|
|
1700
|
+
"getter": false,
|
|
1701
|
+
"setter": false,
|
|
1702
|
+
"reflect": false,
|
|
1703
|
+
"attribute": "selected-marker-icon",
|
|
1704
|
+
"defaultValue": "'check'"
|
|
1705
|
+
},
|
|
1706
|
+
"selectedMarkerLibrary": {
|
|
1707
|
+
"type": "string",
|
|
1708
|
+
"mutable": false,
|
|
1709
|
+
"complexType": {
|
|
1710
|
+
"original": "string",
|
|
1711
|
+
"resolved": "string",
|
|
1712
|
+
"references": {}
|
|
1713
|
+
},
|
|
1714
|
+
"required": false,
|
|
1715
|
+
"optional": false,
|
|
1716
|
+
"docs": {
|
|
1717
|
+
"tags": [],
|
|
1718
|
+
"text": "Icon library for the selection marker icon"
|
|
1719
|
+
},
|
|
1720
|
+
"getter": false,
|
|
1721
|
+
"setter": false,
|
|
1722
|
+
"reflect": false,
|
|
1723
|
+
"attribute": "selected-marker-library",
|
|
1724
|
+
"defaultValue": "'lucide'"
|
|
1725
|
+
},
|
|
1726
|
+
"selectedMarkerLabel": {
|
|
1727
|
+
"type": "string",
|
|
1728
|
+
"mutable": false,
|
|
1729
|
+
"complexType": {
|
|
1730
|
+
"original": "string",
|
|
1731
|
+
"resolved": "string",
|
|
1732
|
+
"references": {}
|
|
1733
|
+
},
|
|
1734
|
+
"required": false,
|
|
1735
|
+
"optional": false,
|
|
1736
|
+
"docs": {
|
|
1737
|
+
"tags": [],
|
|
1738
|
+
"text": "Optional label text shown after the checkmark on the selected item."
|
|
1739
|
+
},
|
|
1740
|
+
"getter": false,
|
|
1741
|
+
"setter": false,
|
|
1742
|
+
"reflect": false,
|
|
1743
|
+
"attribute": "selected-marker-label",
|
|
1744
|
+
"defaultValue": "''"
|
|
1745
|
+
},
|
|
1746
|
+
"selectedMarkerColor": {
|
|
1747
|
+
"type": "string",
|
|
1748
|
+
"mutable": false,
|
|
1749
|
+
"complexType": {
|
|
1750
|
+
"original": "string",
|
|
1751
|
+
"resolved": "string",
|
|
1752
|
+
"references": {}
|
|
1753
|
+
},
|
|
1754
|
+
"required": false,
|
|
1755
|
+
"optional": false,
|
|
1756
|
+
"docs": {
|
|
1757
|
+
"tags": [],
|
|
1758
|
+
"text": "Color for the selection marker icon. Defaults to the selected state color token."
|
|
1759
|
+
},
|
|
1760
|
+
"getter": false,
|
|
1761
|
+
"setter": false,
|
|
1762
|
+
"reflect": false,
|
|
1763
|
+
"attribute": "selected-marker-color",
|
|
1764
|
+
"defaultValue": "''"
|
|
1765
|
+
},
|
|
1766
|
+
"expandAll": {
|
|
1767
|
+
"type": "boolean",
|
|
1768
|
+
"mutable": false,
|
|
1769
|
+
"complexType": {
|
|
1770
|
+
"original": "boolean",
|
|
1771
|
+
"resolved": "boolean",
|
|
1772
|
+
"references": {}
|
|
1773
|
+
},
|
|
1774
|
+
"required": false,
|
|
1775
|
+
"optional": false,
|
|
1776
|
+
"docs": {
|
|
1777
|
+
"tags": [],
|
|
1778
|
+
"text": "If true, all nodes in a cascading dropdown will be expanded by default."
|
|
1779
|
+
},
|
|
1780
|
+
"getter": false,
|
|
1781
|
+
"setter": false,
|
|
1782
|
+
"reflect": false,
|
|
1783
|
+
"attribute": "expand-all",
|
|
1784
|
+
"defaultValue": "false"
|
|
1785
|
+
},
|
|
1786
|
+
"skeleton": {
|
|
1787
|
+
"type": "boolean",
|
|
1788
|
+
"mutable": false,
|
|
1789
|
+
"complexType": {
|
|
1790
|
+
"original": "boolean",
|
|
1791
|
+
"resolved": "boolean",
|
|
1792
|
+
"references": {}
|
|
1793
|
+
},
|
|
1794
|
+
"required": false,
|
|
1795
|
+
"optional": false,
|
|
1796
|
+
"docs": {
|
|
1797
|
+
"tags": [],
|
|
1798
|
+
"text": "If true, shows a skeleton loading state for the trigger"
|
|
1799
|
+
},
|
|
1800
|
+
"getter": false,
|
|
1801
|
+
"setter": false,
|
|
1802
|
+
"reflect": false,
|
|
1803
|
+
"attribute": "skeleton",
|
|
1804
|
+
"defaultValue": "false"
|
|
1805
|
+
},
|
|
1806
|
+
"showSelectAll": {
|
|
1807
|
+
"type": "boolean",
|
|
1808
|
+
"mutable": false,
|
|
1809
|
+
"complexType": {
|
|
1810
|
+
"original": "boolean",
|
|
1811
|
+
"resolved": "boolean",
|
|
1812
|
+
"references": {}
|
|
1813
|
+
},
|
|
1814
|
+
"required": false,
|
|
1815
|
+
"optional": false,
|
|
1816
|
+
"docs": {
|
|
1817
|
+
"tags": [],
|
|
1818
|
+
"text": "If true, shows a \"Select All\" option in multi-select mode"
|
|
1819
|
+
},
|
|
1820
|
+
"getter": false,
|
|
1821
|
+
"setter": false,
|
|
1822
|
+
"reflect": false,
|
|
1823
|
+
"attribute": "show-select-all",
|
|
1824
|
+
"defaultValue": "false"
|
|
1825
|
+
},
|
|
1826
|
+
"selectAllLabel": {
|
|
1827
|
+
"type": "string",
|
|
1828
|
+
"mutable": false,
|
|
1829
|
+
"complexType": {
|
|
1830
|
+
"original": "string",
|
|
1831
|
+
"resolved": "string",
|
|
1832
|
+
"references": {}
|
|
1833
|
+
},
|
|
1834
|
+
"required": false,
|
|
1835
|
+
"optional": false,
|
|
1836
|
+
"docs": {
|
|
1837
|
+
"tags": [],
|
|
1838
|
+
"text": "Label for the Select All option"
|
|
1839
|
+
},
|
|
1840
|
+
"getter": false,
|
|
1841
|
+
"setter": false,
|
|
1842
|
+
"reflect": false,
|
|
1843
|
+
"attribute": "select-all-label",
|
|
1844
|
+
"defaultValue": "'Select All'"
|
|
1845
|
+
},
|
|
1846
|
+
"textColor": {
|
|
1847
|
+
"type": "string",
|
|
1848
|
+
"mutable": false,
|
|
1849
|
+
"complexType": {
|
|
1850
|
+
"original": "string",
|
|
1851
|
+
"resolved": "string",
|
|
1852
|
+
"references": {}
|
|
1853
|
+
},
|
|
1854
|
+
"required": false,
|
|
1855
|
+
"optional": false,
|
|
1856
|
+
"docs": {
|
|
1857
|
+
"tags": [],
|
|
1858
|
+
"text": "Custom text color for the dropdown display"
|
|
1859
|
+
},
|
|
1860
|
+
"getter": false,
|
|
1861
|
+
"setter": false,
|
|
1862
|
+
"reflect": false,
|
|
1863
|
+
"attribute": "text-color",
|
|
1864
|
+
"defaultValue": "''"
|
|
1865
|
+
},
|
|
1866
|
+
"virtualScroll": {
|
|
1867
|
+
"type": "boolean",
|
|
1868
|
+
"mutable": false,
|
|
1869
|
+
"complexType": {
|
|
1870
|
+
"original": "boolean",
|
|
1871
|
+
"resolved": "boolean",
|
|
1872
|
+
"references": {}
|
|
1873
|
+
},
|
|
1874
|
+
"required": false,
|
|
1875
|
+
"optional": false,
|
|
1876
|
+
"docs": {
|
|
1877
|
+
"tags": [],
|
|
1878
|
+
"text": "If true, enables virtual scrolling (renders only a subset of items for performance)"
|
|
1879
|
+
},
|
|
1880
|
+
"getter": false,
|
|
1881
|
+
"setter": false,
|
|
1882
|
+
"reflect": false,
|
|
1883
|
+
"attribute": "virtual-scroll",
|
|
1884
|
+
"defaultValue": "false"
|
|
1885
|
+
},
|
|
1886
|
+
"caseSensitive": {
|
|
1887
|
+
"type": "boolean",
|
|
1888
|
+
"mutable": false,
|
|
1889
|
+
"complexType": {
|
|
1890
|
+
"original": "boolean",
|
|
1891
|
+
"resolved": "boolean",
|
|
1892
|
+
"references": {}
|
|
1893
|
+
},
|
|
1894
|
+
"required": false,
|
|
1895
|
+
"optional": false,
|
|
1896
|
+
"docs": {
|
|
1897
|
+
"tags": [],
|
|
1898
|
+
"text": "If true, search filtering is case-sensitive"
|
|
1899
|
+
},
|
|
1900
|
+
"getter": false,
|
|
1901
|
+
"setter": false,
|
|
1902
|
+
"reflect": false,
|
|
1903
|
+
"attribute": "case-sensitive",
|
|
1904
|
+
"defaultValue": "false"
|
|
1905
|
+
},
|
|
1906
|
+
"label": {
|
|
1907
|
+
"type": "string",
|
|
1908
|
+
"mutable": false,
|
|
1909
|
+
"complexType": {
|
|
1910
|
+
"original": "string",
|
|
1911
|
+
"resolved": "string",
|
|
1912
|
+
"references": {}
|
|
1913
|
+
},
|
|
1914
|
+
"required": false,
|
|
1915
|
+
"optional": false,
|
|
1916
|
+
"docs": {
|
|
1917
|
+
"tags": [],
|
|
1918
|
+
"text": "Label text shown above the dropdown"
|
|
1919
|
+
},
|
|
1920
|
+
"getter": false,
|
|
1921
|
+
"setter": false,
|
|
1922
|
+
"reflect": false,
|
|
1923
|
+
"attribute": "label",
|
|
1924
|
+
"defaultValue": "''"
|
|
1925
|
+
}
|
|
1926
|
+
};
|
|
1927
|
+
}
|
|
1928
|
+
static get states() {
|
|
1929
|
+
return {
|
|
1930
|
+
"isOpen": {},
|
|
1931
|
+
"parsedOptions": {},
|
|
1932
|
+
"selectedValues": {},
|
|
1933
|
+
"searchQuery": {},
|
|
1934
|
+
"expandedNodes": {},
|
|
1935
|
+
"dropdownPosition": {},
|
|
1936
|
+
"menuLeft": {},
|
|
1937
|
+
"menuTop": {},
|
|
1938
|
+
"computedMenuWidth": {},
|
|
1939
|
+
"menuMaxHeight": {},
|
|
1940
|
+
"highlightedIndex": {},
|
|
1941
|
+
"nestedPath": {}
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
static get events() {
|
|
1945
|
+
return [{
|
|
1946
|
+
"method": "valueChange",
|
|
1947
|
+
"name": "valueChange",
|
|
1948
|
+
"bubbles": true,
|
|
1949
|
+
"cancelable": true,
|
|
1950
|
+
"composed": true,
|
|
1951
|
+
"docs": {
|
|
1952
|
+
"tags": [],
|
|
1953
|
+
"text": "Emitted when value changes"
|
|
1954
|
+
},
|
|
1955
|
+
"complexType": {
|
|
1956
|
+
"original": "DropdownChangeEvent",
|
|
1957
|
+
"resolved": "DropdownChangeEvent",
|
|
1958
|
+
"references": {
|
|
1959
|
+
"DropdownChangeEvent": {
|
|
1960
|
+
"location": "import",
|
|
1961
|
+
"path": "./types",
|
|
1962
|
+
"id": "src/components/dropdown/types.ts::DropdownChangeEvent",
|
|
1963
|
+
"referenceLocation": "DropdownChangeEvent"
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}, {
|
|
1968
|
+
"method": "dropdownOpen",
|
|
1969
|
+
"name": "dropdownOpen",
|
|
1970
|
+
"bubbles": true,
|
|
1971
|
+
"cancelable": true,
|
|
1972
|
+
"composed": true,
|
|
1973
|
+
"docs": {
|
|
1974
|
+
"tags": [],
|
|
1975
|
+
"text": "Emitted when dropdown opens"
|
|
1976
|
+
},
|
|
1977
|
+
"complexType": {
|
|
1978
|
+
"original": "void",
|
|
1979
|
+
"resolved": "void",
|
|
1980
|
+
"references": {}
|
|
1981
|
+
}
|
|
1982
|
+
}, {
|
|
1983
|
+
"method": "dropdownClose",
|
|
1984
|
+
"name": "dropdownClose",
|
|
1985
|
+
"bubbles": true,
|
|
1986
|
+
"cancelable": true,
|
|
1987
|
+
"composed": true,
|
|
1988
|
+
"docs": {
|
|
1989
|
+
"tags": [],
|
|
1990
|
+
"text": "Emitted when dropdown closes"
|
|
1991
|
+
},
|
|
1992
|
+
"complexType": {
|
|
1993
|
+
"original": "void",
|
|
1994
|
+
"resolved": "void",
|
|
1995
|
+
"references": {}
|
|
1996
|
+
}
|
|
1997
|
+
}];
|
|
1998
|
+
}
|
|
1999
|
+
static get methods() {
|
|
2000
|
+
return {
|
|
2001
|
+
"open": {
|
|
2002
|
+
"complexType": {
|
|
2003
|
+
"signature": "() => Promise<void>",
|
|
2004
|
+
"parameters": [],
|
|
2005
|
+
"references": {
|
|
2006
|
+
"Promise": {
|
|
2007
|
+
"location": "global",
|
|
2008
|
+
"id": "global::Promise"
|
|
2009
|
+
}
|
|
2010
|
+
},
|
|
2011
|
+
"return": "Promise<void>"
|
|
2012
|
+
},
|
|
2013
|
+
"docs": {
|
|
2014
|
+
"text": "Programmatically open the dropdown menu",
|
|
2015
|
+
"tags": []
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
static get elementRef() { return "hostElement"; }
|
|
2021
|
+
static get watchers() {
|
|
2022
|
+
return [{
|
|
2023
|
+
"propName": "options",
|
|
2024
|
+
"methodName": "handleOptionsChange"
|
|
2025
|
+
}, {
|
|
2026
|
+
"propName": "value",
|
|
2027
|
+
"methodName": "handleValueChange"
|
|
2028
|
+
}, {
|
|
2029
|
+
"propName": "searchQuery",
|
|
2030
|
+
"methodName": "handleSearchQueryChange"
|
|
2031
|
+
}];
|
|
2032
|
+
}
|
|
2033
|
+
}
|