atomicuilibrary 0.0.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/category-section.cjs.entry.js +2 -2
- package/dist/cjs/dom-BvBb0kmW.js +267 -0
- package/dist/cjs/exploration-project-tailwind.cjs.js +2 -2
- package/dist/cjs/{index-ClkOYpT8.js → index-C32cWsm5.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +3 -3
- package/dist/cjs/library-card.cjs.entry.js +2 -2
- package/dist/cjs/lm-container_2.cjs.entry.js +2 -2
- package/dist/cjs/lm-panel_3.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/my-step.cjs.entry.js +2 -2
- package/dist/cjs/nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/{security-E1JcwxGc.js → security-CNaNip8F.js} +88 -154
- package/dist/cjs/smart-step.cjs.entry.js +3 -3
- package/dist/cjs/timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/{ui-accordion_10.cjs.entry.js → ui-accordion_11.cjs.entry.js} +730 -61
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2 -2
- package/dist/cjs/ui-anchor.cjs.entry.js +2 -2
- package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +3 -3
- package/dist/cjs/ui-aside-panel.cjs.entry.js +11 -12
- package/dist/cjs/ui-avatar-group_5.cjs.entry.js +1694 -0
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ui-callout-banner.cjs.entry.js +3 -3
- package/dist/cjs/ui-card.cjs.entry.js +28 -5
- package/dist/cjs/ui-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/ui-code-editor.cjs.entry.js +3 -3
- package/dist/cjs/ui-code-preview.cjs.entry.js +2 -2
- package/dist/cjs/ui-color-picker.cjs.entry.js +256 -22
- package/dist/cjs/ui-command-palette.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-box.cjs.entry.js +86 -12
- package/dist/cjs/ui-dialog-content.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +1 -1
- package/dist/cjs/ui-divider.cjs.entry.js +1 -1
- package/dist/cjs/ui-dock-host.cjs.entry.js +4 -4
- package/dist/cjs/ui-dock.cjs.entry.js +2 -2
- package/dist/cjs/ui-drag-drop.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown_2.cjs.entry.js +104 -34
- package/dist/cjs/ui-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ui-fab-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-fab.cjs.entry.js +4 -4
- package/dist/cjs/ui-file-upload.cjs.entry.js +143 -44
- package/dist/cjs/ui-horizontal-nav.cjs.entry.js +2 -2
- package/dist/cjs/ui-knob.cjs.entry.js +1 -1
- package/dist/cjs/ui-label.cjs.entry.js +473 -0
- package/dist/cjs/ui-library.cjs.entry.js +2 -2
- package/dist/cjs/ui-list-group_2.cjs.entry.js +351 -58
- package/dist/cjs/ui-list.cjs.entry.js +76 -42
- package/dist/cjs/ui-masonry.cjs.entry.js +1 -1
- package/dist/cjs/ui-meter-group.cjs.entry.js +5 -4
- package/dist/cjs/ui-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/ui-number-input.cjs.entry.js +7 -3
- package/dist/cjs/ui-otp-input.cjs.entry.js +5 -5
- package/dist/cjs/ui-pagination_3.cjs.entry.js +235 -504
- package/dist/cjs/ui-panel.cjs.entry.js +1 -1
- package/dist/cjs/ui-pattern-input.cjs.entry.js +46 -11
- package/dist/cjs/ui-progress.cjs.entry.js +164 -23
- package/dist/cjs/ui-range-slider.cjs.entry.js +2 -2
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +2 -2
- package/dist/cjs/ui-scroll-top.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ui-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/ui-speed-dial.cjs.entry.js +1 -1
- package/dist/cjs/ui-speedometer.cjs.entry.js +28 -17
- package/dist/cjs/ui-splitter.cjs.entry.js +1 -1
- package/dist/cjs/ui-step.cjs.entry.js +2 -2
- package/dist/cjs/ui-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ui-switch.cjs.entry.js +14 -13
- package/dist/cjs/ui-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ui-tag.cjs.entry.js +58 -13
- package/dist/cjs/ui-timeline.cjs.entry.js +11 -3
- package/dist/cjs/ui-timer.cjs.entry.js +2 -2
- package/dist/cjs/ui-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/ui-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-transfer-list.cjs.entry.js +7 -7
- package/dist/cjs/ui-tree.cjs.entry.js +30 -15
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +3 -3
- package/dist/collection/assets/js/component-config.js +1 -0
- package/dist/collection/assets/js/demo-loader.js +2 -1
- package/dist/collection/assets/js/demos/about-demo.js +13 -13
- package/dist/collection/assets/js/demos/accordion-demo.js +238 -49
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +315 -316
- package/dist/collection/assets/js/demos/anchor-demo.js +27 -28
- package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +12 -12
- package/dist/collection/assets/js/demos/aside-panel-demo.js +57 -57
- package/dist/collection/assets/js/demos/avatar-demo.js +433 -95
- package/dist/collection/assets/js/demos/badge-demo.js +51 -52
- package/dist/collection/assets/js/demos/breadcrumb-demo.js +7 -7
- package/dist/collection/assets/js/demos/button-demo.js +175 -106
- package/dist/collection/assets/js/demos/button-toggle-demo.js +199 -96
- package/dist/collection/assets/js/demos/callout-banner-demo.js +332 -42
- package/dist/collection/assets/js/demos/card-demo.js +122 -74
- package/dist/collection/assets/js/demos/carousel-demo.js +632 -360
- package/dist/collection/assets/js/demos/checkbox-demo.js +124 -7
- package/dist/collection/assets/js/demos/color-picker-demo.js +394 -100
- package/dist/collection/assets/js/demos/command-palette-demo.js +182 -65
- package/dist/collection/assets/js/demos/complex-form-demo.js +5 -5
- package/dist/collection/assets/js/demos/context-menu-demo.js +476 -55
- package/dist/collection/assets/js/demos/dialog-demo-temp.js +3 -3
- package/dist/collection/assets/js/demos/dialog-demo.js +336 -230
- package/dist/collection/assets/js/demos/divider-demo.js +59 -62
- package/dist/collection/assets/js/demos/dock-demo.js +92 -72
- package/dist/collection/assets/js/demos/dock-host-init.js +31 -31
- package/dist/collection/assets/js/demos/documentation-demo.js +227 -22
- package/dist/collection/assets/js/demos/drag-drop-demo.js +2 -2
- package/dist/collection/assets/js/demos/dropdown-demo.js +140 -136
- package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +2 -2
- package/dist/collection/assets/js/demos/empty-state-demo.js +304 -88
- package/dist/collection/assets/js/demos/fab-demo.js +95 -11
- package/dist/collection/assets/js/demos/file-upload-demo.js +641 -171
- package/dist/collection/assets/js/demos/home-components.js +2 -2
- package/dist/collection/assets/js/demos/horizontal-nav-demo.js +6 -6
- package/dist/collection/assets/js/demos/icon-demo.js +17 -17
- package/dist/collection/assets/js/demos/input-demo.js +147 -143
- package/dist/collection/assets/js/demos/knob-demo.js +29 -30
- package/dist/collection/assets/js/demos/label-demo.js +697 -0
- package/dist/collection/assets/js/demos/layout-manager-demo.js +55 -55
- package/dist/collection/assets/js/demos/list-demo.js +226 -140
- package/dist/collection/assets/js/demos/loader-demo.js +48 -48
- package/dist/collection/assets/js/demos/masonry-demo.js +592 -0
- package/dist/collection/assets/js/demos/meter-group-demo.js +14 -16
- package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +25 -25
- package/dist/collection/assets/js/demos/my-profile-demo.js +27 -27
- package/dist/collection/assets/js/demos/nav-bar-demo.js +1 -1
- package/dist/collection/assets/js/demos/number-input-demo.js +262 -211
- package/dist/collection/assets/js/demos/pagination-demo.js +29 -29
- package/dist/collection/assets/js/demos/panel-demo.js +18 -25
- package/dist/collection/assets/js/demos/pattern-input-demo.js +278 -40
- package/dist/collection/assets/js/demos/popover-demo.js +240 -149
- package/dist/collection/assets/js/demos/progress-demo.js +768 -61
- package/dist/collection/assets/js/demos/radio-demo.js +73 -12
- package/dist/collection/assets/js/demos/range-slider-demo.js +33 -33
- package/dist/collection/assets/js/demos/rating-demo.js +19 -19
- package/dist/collection/assets/js/demos/scroll-top-demo.js +8 -9
- package/dist/collection/assets/js/demos/skeleton-demo.js +110 -52
- package/dist/collection/assets/js/demos/skeleton-performance-demo.js +2 -2
- package/dist/collection/assets/js/demos/smart-dialog-demo.js +12 -12
- package/dist/collection/assets/js/demos/smart-menu-demo.js +17 -17
- package/dist/collection/assets/js/demos/snackbar-demo.js +53 -53
- package/dist/collection/assets/js/demos/speed-dial-demo.js +14 -14
- package/dist/collection/assets/js/demos/speedometer-demo.js +40 -32
- package/dist/collection/assets/js/demos/split-button-demo.js +2 -2
- package/dist/collection/assets/js/demos/splitter-demo.js +137 -0
- package/dist/collection/assets/js/demos/stack-demo.js +27 -27
- package/dist/collection/assets/js/demos/stepper-demo.js +49 -49
- package/dist/collection/assets/js/demos/switch-demo.js +561 -125
- package/dist/collection/assets/js/demos/tabs-demo.js +22 -22
- package/dist/collection/assets/js/demos/tag-demo.js +110 -80
- package/dist/collection/assets/js/demos/theme-selector-demo.js +27 -27
- package/dist/collection/assets/js/demos/timeline-demo.js +27 -14
- package/dist/collection/assets/js/demos/timeline-playground.js +2 -2
- package/dist/collection/assets/js/demos/timer-demo.js +10 -10
- package/dist/collection/assets/js/demos/toolbar-demo.js +17 -17
- package/dist/collection/assets/js/demos/tooltip-demo.js +116 -114
- package/dist/collection/assets/js/demos/top-bar-demo.js +6 -6
- package/dist/collection/assets/js/demos/transfer-list-demo.js +20 -20
- package/dist/collection/assets/js/demos/tree-demo.js +72 -70
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +20 -20
- package/dist/collection/collection-manifest.json +2 -6
- package/dist/collection/components/accordion/accordion.css +576 -9
- package/dist/collection/components/accordion/accordion.js +47 -14
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +24 -10
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +2 -2
- package/dist/collection/components/anchor/anchor.css +0 -1
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +2 -2
- package/dist/collection/components/aside-panel/aside-panel.css +3 -5
- package/dist/collection/components/aside-panel/aside-panel.js +12 -13
- package/dist/collection/components/avatar/avatar.css +6 -6
- package/dist/collection/components/avatar/avatar.js +64 -12
- package/dist/collection/components/badge/badge.css +28 -17
- package/dist/collection/components/badge/badge.js +7 -4
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/button/button.css +132 -0
- package/dist/collection/components/button/button.js +130 -11
- package/dist/collection/components/button-toggle/button-toggle.js +2 -2
- package/dist/collection/components/button-toggle-group/button-toggle-group.css +161 -14
- package/dist/collection/components/button-toggle-group/button-toggle-group.js +2 -2
- package/dist/collection/components/callout-banner/callout-banner.css +75 -0
- package/dist/collection/components/callout-banner/callout-banner.js +1 -1
- package/dist/collection/components/card/card.css +304 -40
- package/dist/collection/components/card/card.js +48 -4
- package/dist/collection/components/checkbox/checkbox.css +8 -10
- package/dist/collection/components/checkbox/checkbox.js +5 -5
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/code-preview/ui-code-preview.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +110 -6
- package/dist/collection/components/color-picker/color-picker.js +302 -26
- package/dist/collection/components/context-menu/context-menu.css +8 -8
- package/dist/collection/components/dialog-box/dialog-box.js +117 -15
- package/dist/collection/components/dialog-header/dialog-header.js +2 -2
- package/dist/collection/components/dock/dock.css +116 -3
- package/dist/collection/components/dock-host/ui-dock-host.js +3 -3
- package/dist/collection/components/drag-drop/drag-drop.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +101 -8
- package/dist/collection/components/dropdown/dropdown.js +94 -28
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/fab/fab.css +87 -15
- package/dist/collection/components/fab/fab.js +3 -3
- package/dist/collection/components/fab-item/fab-item.js +1 -1
- package/dist/collection/components/file-upload/file-upload.css +1362 -31
- package/dist/collection/components/file-upload/file-upload.js +171 -50
- package/dist/collection/components/horizontal-nav/horizontal-nav.css +9 -9
- package/dist/collection/components/horizontal-nav/horizontal-nav.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.css +9 -0
- package/dist/collection/components/input/input.js +21 -10
- package/dist/collection/components/label/label.css +583 -0
- package/dist/collection/components/label/label.js +1669 -0
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +1 -1
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +1 -1
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +1 -1
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +1 -1
- package/dist/collection/components/library/category-section.js +1 -1
- package/dist/collection/components/library/library-card.js +1 -1
- package/dist/collection/components/library/library.js +1 -1
- package/dist/collection/components/list/list.css +46 -5
- package/dist/collection/components/list/list.js +76 -42
- package/dist/collection/components/list-group/list-group.css +0 -2
- package/dist/collection/components/list-group/list-group.js +11 -5
- package/dist/collection/components/list-item/list-item.css +427 -131
- package/dist/collection/components/list-item/list-item.js +373 -58
- package/dist/collection/components/loader/loader.css +1635 -0
- package/dist/collection/components/loader/loader.js +1120 -0
- package/dist/collection/components/meter-group/meter-group.css +5 -0
- package/dist/collection/components/meter-group/meter-group.js +3 -2
- package/dist/collection/components/my-step/my-step.js +1 -1
- package/dist/collection/components/nav-bar/nav-bar.css +4 -4
- package/dist/collection/components/nav-bar/nav-bar.js +6 -6
- package/dist/collection/components/number-input/number-input.js +6 -2
- package/dist/collection/components/otp-input/otp-input.css +10 -0
- package/dist/collection/components/otp-input/otp-input.js +3 -3
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pattern-input/pattern-input.css +0 -1
- package/dist/collection/components/pattern-input/pattern-input.js +44 -9
- package/dist/collection/components/popover/popover.css +35 -7
- package/dist/collection/components/popover/popover.js +64 -9
- package/dist/collection/components/progress/progress.css +307 -28
- package/dist/collection/components/progress/progress.js +244 -24
- package/dist/collection/components/radio/radio.css +5 -3
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/range-slider/range-slider.css +284 -31
- package/dist/collection/components/range-slider/range-slider.js +5 -5
- package/dist/collection/components/rating/rating.css +151 -65
- package/dist/collection/components/rating/rating.js +31 -13
- package/dist/collection/components/resizable-panel/resizable-panel.js +1 -1
- package/dist/collection/components/skeleton/skeleton-loader.css +144 -44
- package/dist/collection/components/skeleton/skeleton-loader.js +11 -7
- package/dist/collection/components/smart-stepper/smart-step.js +2 -2
- package/dist/collection/components/smart-stepper/smart-stepper.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +1 -1
- package/dist/collection/components/speed-dial/speed-dial.js +1 -1
- package/dist/collection/components/speedometer/speedometer.css +26 -6
- package/dist/collection/components/speedometer/speedometer.js +26 -15
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/step/step.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/switch/switch.css +367 -8
- package/dist/collection/components/switch/switch.js +14 -13
- package/dist/collection/components/tag/tag.css +38 -12
- package/dist/collection/components/tag/tag.js +58 -13
- package/dist/collection/components/tag-group/tag-group.css +0 -1
- package/dist/collection/components/tag-group/tag-group.js +3 -3
- package/dist/collection/components/timeline/timeline.css +380 -317
- package/dist/collection/components/timeline/timeline.js +8 -0
- package/dist/collection/components/timeline-item/timeline-item.js +1 -1
- package/dist/collection/components/timer/timer.js +1 -1
- package/dist/collection/components/toggle-group/toggle-group.css +7 -3
- package/dist/collection/components/toggle-group/toggle-group.js +7 -3
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/top-bar/top-bar.js +2 -2
- package/dist/collection/components/transfer-list/transfer-list.css +13 -13
- package/dist/collection/components/transfer-list/transfer-list.js +4 -4
- package/dist/collection/components/tree/tree.css +35 -21
- package/dist/collection/components/tree/tree.js +28 -13
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +53 -20
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +48 -13
- package/dist/collection/components/ui-navigation-bar/navigation-item.css +7 -7
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +3 -3
- package/dist/collection/components.js +1 -0
- package/dist/collection/utils/dom.js +151 -151
- package/dist/components/avatar-group.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button-toggle.js +1 -1
- package/dist/components/button.js +1 -0
- package/dist/components/category-section2.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/library-card2.js +1 -1
- package/dist/components/list-group.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/lm-container2.js +1 -1
- package/dist/components/lm-floating-window2.js +1 -1
- package/dist/components/lm-panel2.js +1 -1
- package/dist/components/lm-splitter2.js +1 -1
- package/dist/components/lm-tabs2.js +1 -1
- package/dist/components/loader.js +1 -0
- package/dist/components/my-step.js +1 -1
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -0
- package/dist/components/radio.js +1 -1
- package/dist/components/range-slider.js +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/resizable-panel.js +1 -1
- package/dist/components/skeleton-loader.js +1 -1
- package/dist/components/smart-step.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag-group.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/timeline-item.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-advanced-data-table.js +1 -1
- package/dist/components/ui-anchor.js +1 -1
- package/dist/components/ui-animate-on-scroll.js +1 -1
- package/dist/components/ui-aside-panel.js +1 -1
- package/dist/components/ui-badge.js +1 -1
- package/dist/components/ui-breadcrumb-item.js +1 -1
- package/dist/components/ui-breadcrumb.js +1 -1
- package/dist/components/ui-button-toggle-group.js +1 -1
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-callout-banner.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-carousel.js +1 -1
- package/dist/components/ui-code-editor.js +1 -1
- package/dist/components/ui-code-preview.js +1 -1
- package/dist/components/ui-color-picker.js +1 -1
- package/dist/components/ui-command-palette.js +1 -1
- package/dist/components/ui-dialog-box.js +1 -1
- package/dist/components/ui-divider.js +1 -1
- package/dist/components/ui-dock-host.js +1 -1
- package/dist/components/ui-dock.js +1 -1
- package/dist/components/ui-drag-drop.js +1 -1
- package/dist/components/ui-empty-state.js +1 -1
- package/dist/components/ui-fab-item.js +1 -1
- package/dist/components/ui-fab.js +1 -1
- package/dist/components/ui-file-upload.js +1 -1
- package/dist/components/ui-horizontal-nav.js +1 -1
- package/dist/components/ui-knob.js +1 -1
- package/dist/components/{ui-input-pair.d.ts → ui-label.d.ts} +4 -4
- package/dist/components/ui-label.js +1 -0
- package/dist/components/ui-library.js +1 -1
- package/dist/components/ui-list.js +1 -1
- package/dist/components/{ui-radio-group.d.ts → ui-loader.d.ts} +4 -4
- package/dist/components/ui-loader.js +1 -0
- package/dist/components/ui-masonry.js +1 -1
- package/dist/components/ui-meter-group.js +1 -1
- package/dist/components/ui-navigation-bar.js +1 -1
- package/dist/components/ui-navigation-item.js +1 -1
- package/dist/components/ui-number-input.js +1 -1
- package/dist/components/ui-otp-input.js +1 -1
- package/dist/components/ui-panel.js +1 -1
- package/dist/components/ui-pattern-input.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-scroll-top.js +1 -1
- package/dist/components/ui-smart-context-menu.js +1 -1
- package/dist/components/ui-smart-stepper.js +1 -1
- package/dist/components/ui-snackbar.js +1 -1
- package/dist/components/ui-speed-dial.js +1 -1
- package/dist/components/ui-speedometer.js +1 -1
- package/dist/components/ui-splitter.js +1 -1
- package/dist/components/ui-step.js +1 -1
- package/dist/components/ui-stepper.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-timeline.js +1 -1
- package/dist/components/ui-timer.js +1 -1
- package/dist/components/ui-toolbar.js +1 -1
- package/dist/components/ui-top-bar.js +1 -1
- package/dist/components/ui-transfer-list.js +1 -1
- package/dist/components/ui-tree.js +1 -1
- package/dist/components/ui-workspace-manager.js +1 -1
- package/dist/esm/category-section.entry.js +2 -2
- package/dist/esm/dom-DFBTWhGw.js +262 -0
- package/dist/esm/exploration-project-tailwind.js +3 -3
- package/dist/esm/{index-DUsoYu9r.js → index-Dqu2zaH1.js} +1 -1
- package/dist/esm/layout-manager.entry.js +3 -3
- package/dist/esm/library-card.entry.js +2 -2
- package/dist/esm/lm-container_2.entry.js +2 -2
- package/dist/esm/lm-panel_3.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/my-step.entry.js +2 -2
- package/dist/esm/nav-bar.entry.js +4 -4
- package/dist/esm/{security-D2WzX6vR.js → security-Dyu3Nplq.js} +88 -154
- package/dist/esm/smart-step.entry.js +3 -3
- package/dist/esm/timeline-item.entry.js +2 -2
- package/dist/esm/{ui-accordion_10.entry.js → ui-accordion_11.entry.js} +730 -62
- package/dist/esm/ui-advanced-data-table.entry.js +2 -2
- package/dist/esm/ui-anchor.entry.js +2 -2
- package/dist/esm/ui-animate-on-scroll.entry.js +3 -3
- package/dist/esm/ui-aside-panel.entry.js +11 -12
- package/dist/esm/ui-avatar-group_5.entry.js +1688 -0
- package/dist/esm/ui-breadcrumb-item.entry.js +3 -3
- package/dist/esm/ui-breadcrumb.entry.js +1 -1
- package/dist/esm/ui-callout-banner.entry.js +3 -3
- package/dist/esm/ui-card.entry.js +28 -5
- package/dist/esm/ui-carousel.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +5 -5
- package/dist/esm/ui-code-editor.entry.js +3 -3
- package/dist/esm/ui-code-preview.entry.js +2 -2
- package/dist/esm/ui-color-picker.entry.js +256 -22
- package/dist/esm/ui-command-palette.entry.js +1 -1
- package/dist/esm/ui-dialog-box.entry.js +86 -12
- package/dist/esm/ui-dialog-content.entry.js +1 -1
- package/dist/esm/ui-dialog-footer_2.entry.js +1 -1
- package/dist/esm/ui-divider.entry.js +1 -1
- package/dist/esm/ui-dock-host.entry.js +4 -4
- package/dist/esm/ui-dock.entry.js +2 -2
- package/dist/esm/ui-drag-drop.entry.js +2 -2
- package/dist/esm/ui-dropdown_2.entry.js +104 -34
- package/dist/esm/ui-empty-state.entry.js +2 -2
- package/dist/esm/ui-fab-item.entry.js +2 -2
- package/dist/esm/ui-fab.entry.js +4 -4
- package/dist/esm/ui-file-upload.entry.js +143 -44
- package/dist/esm/ui-horizontal-nav.entry.js +2 -2
- package/dist/esm/ui-knob.entry.js +1 -1
- package/dist/esm/ui-label.entry.js +471 -0
- package/dist/esm/ui-library.entry.js +2 -2
- package/dist/esm/ui-list-group_2.entry.js +351 -58
- package/dist/esm/ui-list.entry.js +76 -42
- package/dist/esm/ui-masonry.entry.js +1 -1
- package/dist/esm/ui-meter-group.entry.js +5 -4
- package/dist/esm/ui-navigation-item.entry.js +5 -5
- package/dist/esm/ui-number-input.entry.js +7 -3
- package/dist/esm/ui-otp-input.entry.js +5 -5
- package/dist/esm/ui-pagination_3.entry.js +235 -504
- package/dist/esm/ui-panel.entry.js +1 -1
- package/dist/esm/ui-pattern-input.entry.js +46 -11
- package/dist/esm/ui-progress.entry.js +164 -23
- package/dist/esm/ui-range-slider.entry.js +2 -2
- package/dist/esm/ui-resizable-panel.entry.js +2 -2
- package/dist/esm/ui-scroll-top.entry.js +1 -1
- package/dist/esm/ui-smart-context-menu.entry.js +1 -1
- package/dist/esm/ui-smart-stepper.entry.js +2 -2
- package/dist/esm/ui-snackbar.entry.js +2 -2
- package/dist/esm/ui-speed-dial.entry.js +1 -1
- package/dist/esm/ui-speedometer.entry.js +28 -17
- package/dist/esm/ui-splitter.entry.js +1 -1
- package/dist/esm/ui-step.entry.js +2 -2
- package/dist/esm/ui-stepper.entry.js +2 -2
- package/dist/esm/ui-switch.entry.js +14 -13
- package/dist/esm/ui-tabs.entry.js +3 -3
- package/dist/esm/ui-tag.entry.js +58 -13
- package/dist/esm/ui-timeline.entry.js +11 -3
- package/dist/esm/ui-timer.entry.js +2 -2
- package/dist/esm/ui-toolbar.entry.js +2 -2
- package/dist/esm/ui-tooltip.entry.js +5 -5
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-transfer-list.entry.js +7 -7
- package/dist/esm/ui-tree.entry.js +30 -15
- package/dist/esm/ui-workspace-manager.entry.js +3 -3
- package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -1
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -1
- package/dist/exploration-project-tailwind/{p-f5719913.entry.js → p-024a299a.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-0a71896a.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-35296877.entry.js → p-0cdeb8d8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a42fdc33.entry.js → p-139cefbc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c7e87fbb.entry.js → p-198c83e5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-236f47b1.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-81961fb1.entry.js → p-25530d0d.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-41cd6bf0.entry.js → p-298f2057.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-85e36111.entry.js → p-2b5a8e3e.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-2b6aa7bc.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-7515b1e3.entry.js → p-2cfba753.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c90722ec.entry.js → p-2fe22958.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-85bf89fd.entry.js → p-3012e780.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-321c3f46.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-3d3d48fd.entry.js → p-3ab43638.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-3ad7e47e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3b1ca826.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3ee8ddae.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-4f6bba75.entry.js → p-3efb44c8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-36861546.entry.js → p-42e3bc28.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-4360331a.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-2f961934.entry.js → p-443de32b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-898dd0fa.entry.js → p-44d15451.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-e5322e59.entry.js → p-46071679.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a3f465d9.entry.js → p-497d6182.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-4ad8c55c.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-73d29a4a.entry.js → p-4c46ac0b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-f0830120.entry.js → p-5042ddaa.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-60190e0e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-60530874.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-200241f8.entry.js → p-6108565d.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-77124686.entry.js → p-62889cfe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-9d0c8760.entry.js → p-66f71613.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-2d273118.entry.js → p-67c440b2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d419eaf0.entry.js → p-6f09503f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-721bdbc3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-747b02ea.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c6fd72e1.entry.js → p-754cb046.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-ffb1754a.entry.js → p-7ed3bba2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-77cc333a.entry.js → p-864cebb7.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4d73c143.entry.js → p-96ee3196.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c5ddc817.entry.js → p-97086868.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-287dbf09.entry.js → p-9c5ced88.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-9d3044d4.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9e079be6.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-0b004861.entry.js → p-9e4c45f5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-9eee7394.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-DFBTWhGw.js +1 -0
- package/dist/exploration-project-tailwind/p-Dqu2zaH1.js +2 -0
- package/dist/exploration-project-tailwind/p-Dyu3Nplq.js +2 -0
- package/dist/exploration-project-tailwind/p-a7bdedc2.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c87aeab6.entry.js → p-a8ec29de.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c174a372.entry.js → p-ae617f62.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-62352ef2.entry.js → p-aef76052.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-b5f043fa.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-b637b91b.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-8d951aef.entry.js → p-bc49a088.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4de419d5.entry.js → p-bd9a631f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-e8ba0c95.entry.js → p-bf4b6767.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c0fa400e.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-5e3e80ae.entry.js → p-c4f3d990.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c68ddb2f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c79574c4.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c840098d.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-a1ad32a2.entry.js → p-c8663cbe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-7f91d949.entry.js → p-cb6e38a6.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-cb9f2df1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-cfe8b696.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d00e13ae.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c4ba7e52.entry.js → p-d01ed934.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-aa85ff78.entry.js → p-d4e57d94.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-ccb5c737.entry.js → p-d5bd3a3f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-45482d86.entry.js → p-d987cebe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-d9ae77c0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e9bae5c7.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f516fabc.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f68e2794.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-d30e24bd.entry.js → p-fa034f69.entry.js} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +10 -2
- package/dist/types/components/aside-panel/aside-panel.d.ts +0 -3
- package/dist/types/components/avatar/avatar.d.ts +3 -0
- package/dist/types/components/avatar/types.d.ts +2 -0
- package/dist/types/components/badge/badge.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +9 -0
- package/dist/types/components/card/card.d.ts +4 -0
- package/dist/types/components/color-picker/color-picker.d.ts +35 -2
- package/dist/types/components/dialog-box/dialog-box.d.ts +10 -0
- package/dist/types/components/dropdown/dropdown.d.ts +5 -0
- package/dist/types/components/file-upload/file-upload.d.ts +23 -6
- package/dist/types/components/label/label.d.ts +290 -0
- package/dist/types/components/label/types.d.ts +39 -0
- package/dist/types/components/list/list.d.ts +2 -1
- package/dist/types/components/list-group/list-group.d.ts +1 -0
- package/dist/types/components/list-item/list-item.d.ts +46 -17
- package/dist/types/components/loader/loader.d.ts +145 -0
- package/dist/types/components/pattern-input/pattern-input.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +3 -0
- package/dist/types/components/progress/progress.d.ts +41 -2
- package/dist/types/components/range-slider/range-slider.d.ts +2 -2
- package/dist/types/components/rating/rating.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton-loader.d.ts +1 -1
- package/dist/types/components/speedometer/speedometer.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +4 -0
- package/dist/types/components/tree/tree.d.ts +1 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +1 -1
- package/dist/types/components.d.ts +1214 -1381
- package/dist/types/types/common.d.ts +2 -2
- package/dist/types/types/common.type.d.ts +3 -1
- package/dist/types/utils/dom.d.ts +4 -4
- package/package.json +4 -4
- package/dist/cjs/dom-oP1E4Rd3.js +0 -267
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +0 -634
- package/dist/cjs/ui-checkbox-group.cjs.entry.js +0 -330
- package/dist/cjs/ui-color-controller.cjs.entry.js +0 -150
- package/dist/cjs/ui-image-button.cjs.entry.js +0 -67
- package/dist/cjs/ui-input-pair.cjs.entry.js +0 -44
- package/dist/cjs/ui-popover.cjs.entry.js +0 -517
- package/dist/cjs/ui-radio-group.cjs.entry.js +0 -205
- package/dist/cjs/ui-radio.cjs.entry.js +0 -206
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +0 -565
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -223
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -1001
- package/dist/collection/components/color-controller/color-controller.css +0 -108
- package/dist/collection/components/color-controller/color-controller.js +0 -224
- package/dist/collection/components/image-button/image-button.css +0 -154
- package/dist/collection/components/image-button/image-button.js +0 -310
- package/dist/collection/components/image-button/types.js +0 -1
- package/dist/collection/components/input-pair/input-pair.css +0 -72
- package/dist/collection/components/input-pair/input-pair.js +0 -309
- package/dist/collection/components/radio-group/radio-group.css +0 -202
- package/dist/collection/components/radio-group/radio-group.js +0 -903
- package/dist/collection/components/radio-group/types.js +0 -1
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +0 -357
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +0 -1190
- package/dist/collection/components/smart-location-dropdown/types.js +0 -1
- package/dist/components/ui-checkbox-group.d.ts +0 -11
- package/dist/components/ui-checkbox-group.js +0 -1
- package/dist/components/ui-color-controller.d.ts +0 -11
- package/dist/components/ui-color-controller.js +0 -1
- package/dist/components/ui-image-button.d.ts +0 -11
- package/dist/components/ui-image-button.js +0 -1
- package/dist/components/ui-input-pair.js +0 -1
- package/dist/components/ui-radio-group.js +0 -1
- package/dist/components/ui-smart-location-dropdown.d.ts +0 -11
- package/dist/components/ui-smart-location-dropdown.js +0 -1
- package/dist/esm/dom-BMFah5q3.js +0 -262
- package/dist/esm/ui-avatar-group_3.entry.js +0 -630
- package/dist/esm/ui-checkbox-group.entry.js +0 -328
- package/dist/esm/ui-color-controller.entry.js +0 -148
- package/dist/esm/ui-image-button.entry.js +0 -65
- package/dist/esm/ui-input-pair.entry.js +0 -42
- package/dist/esm/ui-popover.entry.js +0 -515
- package/dist/esm/ui-radio-group.entry.js +0 -203
- package/dist/esm/ui-radio.entry.js +0 -204
- package/dist/esm/ui-smart-location-dropdown.entry.js +0 -563
- package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-049744f9.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-06f0c679.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-148e81df.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-2f1aebb3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-46596a28.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-46efdea3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5508874f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-61717490.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-64e3a484.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-70d82d79.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-7376ac95.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-77a21491.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-807c6555.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-875be805.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9fa70359.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-BMFah5q3.js +0 -1
- package/dist/exploration-project-tailwind/p-D2WzX6vR.js +0 -2
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +0 -2
- package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ab752761.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d16c9635.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d2308a00.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-debede45.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-e90d5307.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +0 -1
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -87
- package/dist/types/components/checkbox-group/types.d.ts +0 -8
- package/dist/types/components/color-controller/color-controller.d.ts +0 -24
- package/dist/types/components/image-button/image-button.d.ts +0 -31
- package/dist/types/components/image-button/types.d.ts +0 -1
- package/dist/types/components/input-pair/input-pair.d.ts +0 -28
- package/dist/types/components/radio-group/radio-group.d.ts +0 -74
- package/dist/types/components/radio-group/types.d.ts +0 -2
- package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +0 -119
- package/dist/types/components/smart-location-dropdown/types.d.ts +0 -37
- /package/dist/collection/components/{checkbox-group → label}/types.js +0 -0
|
@@ -1,563 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DUsoYu9r.js';
|
|
2
|
-
import { c as calculateUniversalPlacement } from './dom-BMFah5q3.js';
|
|
3
|
-
|
|
4
|
-
const smartLocationDropdownCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block;width:100%;--sld-border:#cfd8e3;--sld-border-strong:#b4c1d1;--sld-focus:#2563eb;--sld-text:#10213a;--sld-muted:#62748a;--sld-bg:#ffffff;--sld-panel:rgba(255, 255, 255, 0.98);--sld-panel-solid:#ffffff;--sld-hover:#f3f8ff;--sld-selected:#e8f1ff;--sld-chip:#edf4ff;--sld-shadow:0 18px 40px rgba(15, 23, 42, 0.16)}.location-dropdown{position:relative;width:100%;font-family:"Segoe UI", Roboto, sans-serif}.location-trigger{border:1px solid var(--sld-border);border-radius:14px;min-height:48px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);color:var(--sld-text);cursor:pointer;box-shadow:0 2px 8px rgba(15, 23, 42, 0.04);transition:border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease}.location-trigger:hover{border-color:var(--sld-border-strong);box-shadow:0 10px 22px rgba(37, 99, 235, 0.08)}.location-trigger:focus,.location-dropdown.open .location-trigger{border-color:var(--sld-focus);box-shadow:0 0 0 4px rgba(37, 99, 235, 0.14), 0 16px 32px rgba(37, 99, 235, 0.14);outline:none}.location-dropdown.disabled .location-trigger{opacity:0.72;cursor:not-allowed}.trigger-text{flex:1;font-size:14px;font-weight:500;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trigger-text.placeholder{color:#91a0b4}.trigger-icons{display:inline-flex;align-items:center;gap:6px}.arrow{transition:transform 0.18s ease;color:var(--sld-muted)}.arrow.open{transform:rotate(180deg)}.clear-btn,.fav-btn,.chip-remove{border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--sld-muted);padding:0}.clear-btn:hover,.fav-btn:hover,.chip-remove:hover{color:var(--sld-text)}.clear-btn{width:24px;height:24px;border-radius:999px;background:#eef4fb}.clear-btn:hover{background:#e2ecf8}.fav-btn.active{color:#d97706}.selected-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.selected-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;border:1px solid #d7e7ff;background:var(--sld-chip);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.9);max-width:100%}.chip-label{font-size:12px;color:#1c3657;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-more{font-size:12px;color:#37557b;align-self:center}.menu{border:1px solid rgba(180, 193, 209, 0.72);border-radius:18px;background:var(--sld-panel-solid);background-color:var(--sld-panel-solid);backdrop-filter:blur(18px);box-shadow:var(--sld-shadow);overflow:hidden;isolation:isolate}.search-row{position:sticky;top:0;z-index:1;padding:12px;border-bottom:1px solid #edf2f7;background:var(--sld-panel)}.search-input{width:100%;border:1px solid #d4deea;border-radius:12px;padding:11px 13px;font-size:14px;outline:none;background:#f9fbfe;color:var(--sld-text);transition:border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease}.search-input:focus{border-color:var(--sld-focus);background:#ffffff;box-shadow:0 0 0 4px rgba(37, 99, 235, 0.1)}.options-list{padding:8px;overflow-y:auto;max-height:inherit;background:var(--sld-panel-solid)}.location-option{padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;border:1px solid transparent;border-radius:14px;background:var(--sld-panel-solid);transition:background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease}.location-option:hover,.location-option-highlighted{background:var(--sld-hover);border-color:#d7e7ff;box-shadow:0 10px 24px rgba(37, 99, 235, 0.08);transform:translateY(-1px)}.location-option-selected{background:var(--sld-selected);border-color:#b9d4ff;box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.85)}.location-option-disabled{opacity:0.5;cursor:not-allowed}.location-option-main{min-width:0;display:flex;align-items:center;gap:8px;flex:1}.location-option-text{min-width:0;display:flex;flex-direction:column}.location-label{font-size:13px;font-weight:600;color:var(--sld-text);white-space:normal;overflow:hidden;text-overflow:ellipsis}.location-code{font-size:11px;color:var(--sld-muted)}.location-option-meta{display:inline-flex;align-items:center;gap:8px}.location-type{font-size:10px;border:1px solid #d8e5f3;border-radius:999px;padding:4px 8px;color:#55708f;background:#f7fbff;text-transform:uppercase;letter-spacing:0.08em;font-weight:700}.fav-btn{width:28px;height:28px;border-radius:999px;background:#f6f9fc}.fav-btn:hover{background:#ebf2f8}.status{padding:14px;font-size:13px;background:var(--sld-panel-solid)}.status.loading,.status.empty{color:var(--sld-muted)}.status.error{color:#b91c1c;background:#fef2f2}.create-btn{width:100%;border:none;border-top:1px solid #edf2f7;background:#f7fbff;color:var(--sld-text);font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px;padding:13px;cursor:pointer;font-weight:600}.create-btn:hover{background:#eef6ff}.footer-meta{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #edf2f7;padding:10px 12px 12px;font-size:11px;color:var(--sld-muted);background:var(--sld-panel)}`;
|
|
5
|
-
|
|
6
|
-
const SmartLocationDropdown = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.locationChange = createEvent(this, "locationChange");
|
|
10
|
-
this.locationSearch = createEvent(this, "locationSearch");
|
|
11
|
-
this.locationOpen = createEvent(this, "locationOpen");
|
|
12
|
-
this.locationClose = createEvent(this, "locationClose");
|
|
13
|
-
this.locationLoadError = createEvent(this, "locationLoadError");
|
|
14
|
-
this.locationCreate = createEvent(this, "locationCreate");
|
|
15
|
-
}
|
|
16
|
-
get hostElement() { return getElement(this); }
|
|
17
|
-
/** Location options as JSON string or array */
|
|
18
|
-
options = [];
|
|
19
|
-
/** Selected value(s): single => 'id', multi => comma-separated ids */
|
|
20
|
-
value = '';
|
|
21
|
-
/** Enables multiple location selection */
|
|
22
|
-
multiSelect = false;
|
|
23
|
-
/** Placeholder text for trigger */
|
|
24
|
-
placeholder = 'Select location';
|
|
25
|
-
/** Enables searching */
|
|
26
|
-
searchable = true;
|
|
27
|
-
/** Search placeholder */
|
|
28
|
-
searchPlaceholder = 'Search country, state, city, postal code...';
|
|
29
|
-
/** Disables control */
|
|
30
|
-
disabled = false;
|
|
31
|
-
/** Show clear action */
|
|
32
|
-
clearable = true;
|
|
33
|
-
/** Maximum dropdown height in px */
|
|
34
|
-
maxHeight = 360;
|
|
35
|
-
/** Search debounce in ms */
|
|
36
|
-
debounceMs = 250;
|
|
37
|
-
/** Max selected items in multi mode (0 = no limit) */
|
|
38
|
-
maxSelections = 0;
|
|
39
|
-
/** Max results rendered */
|
|
40
|
-
resultLimit = 250;
|
|
41
|
-
/** Show recent selections section */
|
|
42
|
-
showRecent = true;
|
|
43
|
-
/** Show favorites section */
|
|
44
|
-
showFavorites = true;
|
|
45
|
-
/** Persist recent/favorites in local storage */
|
|
46
|
-
persistState = true;
|
|
47
|
-
/** Storage key for persistent state */
|
|
48
|
-
storageKey = 'ui-smart-location-dropdown-state';
|
|
49
|
-
/** Display full hierarchy path in options and selected tags */
|
|
50
|
-
showPath = true;
|
|
51
|
-
/** Show location type badges */
|
|
52
|
-
showTypeBadge = true;
|
|
53
|
-
/** Allow custom value creation from search */
|
|
54
|
-
allowCustomValue = false;
|
|
55
|
-
/** Force menu position to ignore transformed/positioned parent offsets */
|
|
56
|
-
ignoreParentPosition = true;
|
|
57
|
-
/** Portal menu to document.body (off by default to preserve shadow styling) */
|
|
58
|
-
portal = false;
|
|
59
|
-
/** Optional async remote location loader */
|
|
60
|
-
loadLocations;
|
|
61
|
-
/** Minimum characters required before async loader executes */
|
|
62
|
-
remoteMinChars = 2;
|
|
63
|
-
isOpen = false;
|
|
64
|
-
parsedOptions = [];
|
|
65
|
-
remoteOptions = [];
|
|
66
|
-
selectedIds = new Set();
|
|
67
|
-
searchQuery = '';
|
|
68
|
-
loading = false;
|
|
69
|
-
loadError = '';
|
|
70
|
-
highlightedIndex = -1;
|
|
71
|
-
menuLeft = 0;
|
|
72
|
-
menuTop = 0;
|
|
73
|
-
menuWidth = 0;
|
|
74
|
-
dropdownPosition = 'bottom';
|
|
75
|
-
recentIds = [];
|
|
76
|
-
favoriteIds = [];
|
|
77
|
-
locationChange;
|
|
78
|
-
locationSearch;
|
|
79
|
-
locationOpen;
|
|
80
|
-
locationClose;
|
|
81
|
-
locationLoadError;
|
|
82
|
-
locationCreate;
|
|
83
|
-
searchDebounceTimer;
|
|
84
|
-
searchInputRef;
|
|
85
|
-
menuElement;
|
|
86
|
-
optionsRefs = [];
|
|
87
|
-
rafId;
|
|
88
|
-
isPortaled = false;
|
|
89
|
-
searchToken = 0;
|
|
90
|
-
watchOptions(newValue) {
|
|
91
|
-
this.parsedOptions = this.normalizeOptions(newValue);
|
|
92
|
-
}
|
|
93
|
-
watchValue(newValue) {
|
|
94
|
-
this.selectedIds = this.parseSelectedIds(newValue);
|
|
95
|
-
}
|
|
96
|
-
componentWillLoad() {
|
|
97
|
-
this.parsedOptions = this.normalizeOptions(this.options);
|
|
98
|
-
this.selectedIds = this.parseSelectedIds(this.value);
|
|
99
|
-
this.restorePersistentState();
|
|
100
|
-
}
|
|
101
|
-
disconnectedCallback() {
|
|
102
|
-
if (this.searchDebounceTimer) {
|
|
103
|
-
clearTimeout(this.searchDebounceTimer);
|
|
104
|
-
}
|
|
105
|
-
this.cleanupPortal();
|
|
106
|
-
if (this.rafId) {
|
|
107
|
-
cancelAnimationFrame(this.rafId);
|
|
108
|
-
this.rafId = 0;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
handleOutsideClick(event) {
|
|
112
|
-
const path = typeof event.composedPath === 'function' ? event.composedPath() : [];
|
|
113
|
-
const clickedHost = path.includes(this.hostElement) || this.hostElement.contains(event.target);
|
|
114
|
-
const clickedMenu = !!this.menuElement && (path.includes(this.menuElement) || this.menuElement.contains(event.target));
|
|
115
|
-
if (!clickedHost && !clickedMenu) {
|
|
116
|
-
this.closeDropdown();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
handleResize() {
|
|
120
|
-
if (this.isOpen) {
|
|
121
|
-
this.calculatePosition();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
handleScroll() {
|
|
125
|
-
if (this.isOpen) {
|
|
126
|
-
this.calculatePosition();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
normalizeOptions(raw) {
|
|
130
|
-
const parsed = typeof raw === 'string' ? this.tryParse(raw) : raw || [];
|
|
131
|
-
const output = [];
|
|
132
|
-
const walk = (items, depth, parentId, parentPath = []) => {
|
|
133
|
-
items.forEach(item => {
|
|
134
|
-
if (item == null || item.id == null || !item.label)
|
|
135
|
-
return;
|
|
136
|
-
const idStr = String(item.id);
|
|
137
|
-
const type = item.type || this.inferType(depth);
|
|
138
|
-
const path = [...parentPath, item.label];
|
|
139
|
-
const searchText = [item.label, item.code || '', type, path.join(' '), (item.tags || []).join(' ')].join(' ').toLowerCase();
|
|
140
|
-
output.push({
|
|
141
|
-
...item,
|
|
142
|
-
idStr,
|
|
143
|
-
parentIdStr: parentId,
|
|
144
|
-
type,
|
|
145
|
-
depth,
|
|
146
|
-
pathLabels: path,
|
|
147
|
-
searchText,
|
|
148
|
-
});
|
|
149
|
-
if (item.children && item.children.length > 0) {
|
|
150
|
-
walk(item.children, depth + 1, idStr, path);
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
walk(parsed, 0);
|
|
155
|
-
return output;
|
|
156
|
-
}
|
|
157
|
-
tryParse(value) {
|
|
158
|
-
if (!value)
|
|
159
|
-
return [];
|
|
160
|
-
try {
|
|
161
|
-
const parsed = JSON.parse(value);
|
|
162
|
-
return Array.isArray(parsed) ? parsed : [];
|
|
163
|
-
}
|
|
164
|
-
catch (error) {
|
|
165
|
-
console.error('Invalid JSON for location options', error);
|
|
166
|
-
return [];
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
inferType(depth) {
|
|
170
|
-
if (depth <= 0)
|
|
171
|
-
return 'country';
|
|
172
|
-
if (depth === 1)
|
|
173
|
-
return 'state';
|
|
174
|
-
if (depth === 2)
|
|
175
|
-
return 'city';
|
|
176
|
-
if (depth === 3)
|
|
177
|
-
return 'district';
|
|
178
|
-
return 'custom';
|
|
179
|
-
}
|
|
180
|
-
parseSelectedIds(value) {
|
|
181
|
-
if (!value)
|
|
182
|
-
return new Set();
|
|
183
|
-
if (this.multiSelect) {
|
|
184
|
-
return new Set(value.split(',').map(v => v.trim()).filter(Boolean));
|
|
185
|
-
}
|
|
186
|
-
return new Set([value]);
|
|
187
|
-
}
|
|
188
|
-
get selectedOptions() {
|
|
189
|
-
const map = new Map(this.getMergedOptions().map(o => [o.idStr, o]));
|
|
190
|
-
return Array.from(this.selectedIds)
|
|
191
|
-
.map(id => map.get(id))
|
|
192
|
-
.filter((o) => !!o);
|
|
193
|
-
}
|
|
194
|
-
getMergedOptions() {
|
|
195
|
-
const merged = [...this.parsedOptions];
|
|
196
|
-
const existing = new Set(merged.map(o => o.idStr));
|
|
197
|
-
this.remoteOptions.forEach(o => {
|
|
198
|
-
if (!existing.has(o.idStr)) {
|
|
199
|
-
merged.push(o);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
return merged;
|
|
203
|
-
}
|
|
204
|
-
get filteredOptions() {
|
|
205
|
-
const all = this.getMergedOptions();
|
|
206
|
-
const query = this.searchQuery.trim().toLowerCase();
|
|
207
|
-
let list = query ? all.filter(option => option.searchText.includes(query)) : all;
|
|
208
|
-
if (!query) {
|
|
209
|
-
const pinned = this.favoriteIds
|
|
210
|
-
.map(id => list.find(o => o.idStr === id))
|
|
211
|
-
.filter((o) => !!o);
|
|
212
|
-
const recent = this.recentIds
|
|
213
|
-
.map(id => list.find(o => o.idStr === id && !this.favoriteIds.includes(id)))
|
|
214
|
-
.filter((o) => !!o);
|
|
215
|
-
const used = new Set([...pinned.map(o => o.idStr), ...recent.map(o => o.idStr)]);
|
|
216
|
-
const rest = list.filter(o => !used.has(o.idStr));
|
|
217
|
-
list = [...pinned, ...recent, ...rest];
|
|
218
|
-
}
|
|
219
|
-
return list.slice(0, this.resultLimit);
|
|
220
|
-
}
|
|
221
|
-
get typeLabelMap() {
|
|
222
|
-
return {
|
|
223
|
-
country: 'Country',
|
|
224
|
-
state: 'State',
|
|
225
|
-
province: 'Province',
|
|
226
|
-
city: 'City',
|
|
227
|
-
district: 'District',
|
|
228
|
-
postal: 'Postal',
|
|
229
|
-
custom: 'Custom',
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
toggleDropdown = () => {
|
|
233
|
-
if (this.disabled)
|
|
234
|
-
return;
|
|
235
|
-
if (this.isOpen) {
|
|
236
|
-
this.closeDropdown();
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
this.isOpen = true;
|
|
240
|
-
this.locationOpen.emit();
|
|
241
|
-
this.highlightedIndex = this.filteredOptions.length > 0 ? 0 : -1;
|
|
242
|
-
this.schedulePositionUpdate();
|
|
243
|
-
if (this.searchable) {
|
|
244
|
-
window.setTimeout(() => this.searchInputRef?.focus(), 25);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
closeDropdown = () => {
|
|
248
|
-
if (!this.isOpen)
|
|
249
|
-
return;
|
|
250
|
-
this.isOpen = false;
|
|
251
|
-
this.locationClose.emit();
|
|
252
|
-
this.highlightedIndex = -1;
|
|
253
|
-
this.searchQuery = '';
|
|
254
|
-
this.remoteOptions = [];
|
|
255
|
-
this.loadError = '';
|
|
256
|
-
this.cleanupPortal();
|
|
257
|
-
};
|
|
258
|
-
schedulePositionUpdate() {
|
|
259
|
-
if (this.rafId) {
|
|
260
|
-
cancelAnimationFrame(this.rafId);
|
|
261
|
-
}
|
|
262
|
-
this.rafId = requestAnimationFrame(() => {
|
|
263
|
-
this.calculatePosition();
|
|
264
|
-
this.rafId = 0;
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
calculatePosition() {
|
|
268
|
-
if (!this.isOpen || !this.menuElement)
|
|
269
|
-
return;
|
|
270
|
-
const trigger = this.hostElement.shadowRoot?.querySelector('.location-trigger');
|
|
271
|
-
if (!trigger)
|
|
272
|
-
return;
|
|
273
|
-
if (this.portal && !this.isPortaled && this.menuElement.parentElement !== document.body) {
|
|
274
|
-
document.body.appendChild(this.menuElement);
|
|
275
|
-
this.isPortaled = true;
|
|
276
|
-
}
|
|
277
|
-
const placement = calculateUniversalPlacement(trigger, {
|
|
278
|
-
menuWidth: trigger.offsetWidth,
|
|
279
|
-
menuHeight: this.maxHeight,
|
|
280
|
-
gap: 4,
|
|
281
|
-
placement: 'auto',
|
|
282
|
-
useTransformedAncestorOffset: !this.ignoreParentPosition,
|
|
283
|
-
});
|
|
284
|
-
this.menuLeft = placement.left;
|
|
285
|
-
this.menuTop = placement.top;
|
|
286
|
-
this.menuWidth = placement.width;
|
|
287
|
-
this.dropdownPosition = placement.placement;
|
|
288
|
-
}
|
|
289
|
-
cleanupPortal() {
|
|
290
|
-
if (this.portal && this.isPortaled && this.menuElement && this.menuElement.parentElement === document.body) {
|
|
291
|
-
this.hostElement.appendChild(this.menuElement);
|
|
292
|
-
this.isPortaled = false;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
onSearchInput_Custom = (value) => {
|
|
296
|
-
this.searchQuery = value || '';
|
|
297
|
-
if (this.searchDebounceTimer) {
|
|
298
|
-
clearTimeout(this.searchDebounceTimer);
|
|
299
|
-
}
|
|
300
|
-
this.searchDebounceTimer = window.setTimeout(() => {
|
|
301
|
-
this.runRemoteSearch(this.searchQuery);
|
|
302
|
-
this.emitSearchEvent();
|
|
303
|
-
this.highlightedIndex = this.filteredOptions.length > 0 ? 0 : -1;
|
|
304
|
-
}, this.debounceMs);
|
|
305
|
-
};
|
|
306
|
-
async runRemoteSearch(query) {
|
|
307
|
-
if (!this.loadLocations)
|
|
308
|
-
return;
|
|
309
|
-
if ((query || '').trim().length < this.remoteMinChars) {
|
|
310
|
-
this.remoteOptions = [];
|
|
311
|
-
this.loading = false;
|
|
312
|
-
this.loadError = '';
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
const token = ++this.searchToken;
|
|
316
|
-
this.loading = true;
|
|
317
|
-
this.loadError = '';
|
|
318
|
-
try {
|
|
319
|
-
const remote = await this.loadLocations(query.trim());
|
|
320
|
-
if (token !== this.searchToken)
|
|
321
|
-
return;
|
|
322
|
-
this.remoteOptions = this.normalizeOptions(remote || []);
|
|
323
|
-
}
|
|
324
|
-
catch (error) {
|
|
325
|
-
if (token !== this.searchToken)
|
|
326
|
-
return;
|
|
327
|
-
const message = error instanceof Error ? error.message : 'Failed to load locations';
|
|
328
|
-
this.remoteOptions = [];
|
|
329
|
-
this.loadError = message;
|
|
330
|
-
this.locationLoadError.emit({ query, message });
|
|
331
|
-
}
|
|
332
|
-
finally {
|
|
333
|
-
if (token === this.searchToken) {
|
|
334
|
-
this.loading = false;
|
|
335
|
-
this.emitSearchEvent();
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
emitSearchEvent() {
|
|
340
|
-
this.locationSearch.emit({
|
|
341
|
-
query: this.searchQuery,
|
|
342
|
-
localResults: this.parsedOptions.filter(o => o.searchText.includes(this.searchQuery.toLowerCase())).length,
|
|
343
|
-
remoteResults: this.remoteOptions.length,
|
|
344
|
-
loading: this.loading,
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
handleKeyDown = (event) => {
|
|
348
|
-
if (this.disabled)
|
|
349
|
-
return;
|
|
350
|
-
const options = this.filteredOptions;
|
|
351
|
-
switch (event.key) {
|
|
352
|
-
case 'Enter':
|
|
353
|
-
case ' ': {
|
|
354
|
-
if (!this.isOpen) {
|
|
355
|
-
event.preventDefault();
|
|
356
|
-
this.toggleDropdown();
|
|
357
|
-
return;
|
|
358
|
-
}
|
|
359
|
-
if (this.highlightedIndex >= 0 && options[this.highlightedIndex]) {
|
|
360
|
-
event.preventDefault();
|
|
361
|
-
this.selectOption(options[this.highlightedIndex], 'select');
|
|
362
|
-
return;
|
|
363
|
-
}
|
|
364
|
-
if (this.allowCustomValue && this.searchQuery.trim()) {
|
|
365
|
-
event.preventDefault();
|
|
366
|
-
this.createCustomLocation(this.searchQuery.trim());
|
|
367
|
-
}
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
case 'ArrowDown':
|
|
371
|
-
event.preventDefault();
|
|
372
|
-
if (!this.isOpen) {
|
|
373
|
-
this.toggleDropdown();
|
|
374
|
-
}
|
|
375
|
-
else if (options.length > 0) {
|
|
376
|
-
this.highlightedIndex = Math.min(options.length - 1, this.highlightedIndex + 1);
|
|
377
|
-
this.scrollToHighlighted();
|
|
378
|
-
}
|
|
379
|
-
return;
|
|
380
|
-
case 'ArrowUp':
|
|
381
|
-
event.preventDefault();
|
|
382
|
-
if (this.isOpen && options.length > 0) {
|
|
383
|
-
this.highlightedIndex = Math.max(0, this.highlightedIndex - 1);
|
|
384
|
-
this.scrollToHighlighted();
|
|
385
|
-
}
|
|
386
|
-
return;
|
|
387
|
-
case 'Escape':
|
|
388
|
-
if (this.isOpen) {
|
|
389
|
-
event.preventDefault();
|
|
390
|
-
this.closeDropdown();
|
|
391
|
-
}
|
|
392
|
-
return;
|
|
393
|
-
case 'Backspace':
|
|
394
|
-
if (this.multiSelect && !this.searchQuery && this.selectedIds.size > 0) {
|
|
395
|
-
const last = Array.from(this.selectedIds).at(-1);
|
|
396
|
-
if (last) {
|
|
397
|
-
this.removeSelectedId(last, 'remove');
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return;
|
|
401
|
-
default:
|
|
402
|
-
return;
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
scrollToHighlighted() {
|
|
406
|
-
const optionElement = this.optionsRefs[this.highlightedIndex];
|
|
407
|
-
optionElement?.scrollIntoView({ block: 'nearest' });
|
|
408
|
-
}
|
|
409
|
-
selectOption(option, trigger) {
|
|
410
|
-
if (option.disabled)
|
|
411
|
-
return;
|
|
412
|
-
if (this.multiSelect) {
|
|
413
|
-
const next = new Set(this.selectedIds);
|
|
414
|
-
if (next.has(option.idStr)) {
|
|
415
|
-
next.delete(option.idStr);
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
if (this.maxSelections > 0 && next.size >= this.maxSelections) {
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
next.add(option.idStr);
|
|
422
|
-
}
|
|
423
|
-
this.selectedIds = next;
|
|
424
|
-
}
|
|
425
|
-
else {
|
|
426
|
-
this.selectedIds = new Set([option.idStr]);
|
|
427
|
-
this.closeDropdown();
|
|
428
|
-
}
|
|
429
|
-
this.touchRecent(option.idStr);
|
|
430
|
-
this.syncValueAndEmit(trigger);
|
|
431
|
-
}
|
|
432
|
-
removeSelectedId(id, trigger) {
|
|
433
|
-
if (!this.selectedIds.has(id))
|
|
434
|
-
return;
|
|
435
|
-
const next = new Set(this.selectedIds);
|
|
436
|
-
next.delete(id);
|
|
437
|
-
this.selectedIds = next;
|
|
438
|
-
this.syncValueAndEmit(trigger);
|
|
439
|
-
}
|
|
440
|
-
clearSelection = (event) => {
|
|
441
|
-
event?.stopPropagation();
|
|
442
|
-
if (this.selectedIds.size === 0)
|
|
443
|
-
return;
|
|
444
|
-
this.selectedIds = new Set();
|
|
445
|
-
this.syncValueAndEmit('clear');
|
|
446
|
-
};
|
|
447
|
-
toggleFavorite = (id, event) => {
|
|
448
|
-
event.stopPropagation();
|
|
449
|
-
const exists = this.favoriteIds.includes(id);
|
|
450
|
-
this.favoriteIds = exists ? this.favoriteIds.filter(x => x !== id) : [id, ...this.favoriteIds].slice(0, 50);
|
|
451
|
-
this.persistCurrentState();
|
|
452
|
-
};
|
|
453
|
-
touchRecent(id) {
|
|
454
|
-
this.recentIds = [id, ...this.recentIds.filter(x => x !== id)].slice(0, 50);
|
|
455
|
-
this.persistCurrentState();
|
|
456
|
-
}
|
|
457
|
-
persistCurrentState() {
|
|
458
|
-
if (!this.persistState || typeof localStorage === 'undefined')
|
|
459
|
-
return;
|
|
460
|
-
try {
|
|
461
|
-
localStorage.setItem(this.storageKey, JSON.stringify({ recentIds: this.recentIds, favoriteIds: this.favoriteIds }));
|
|
462
|
-
}
|
|
463
|
-
catch {
|
|
464
|
-
// ignore storage errors
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
restorePersistentState() {
|
|
468
|
-
if (!this.persistState || typeof localStorage === 'undefined')
|
|
469
|
-
return;
|
|
470
|
-
try {
|
|
471
|
-
const raw = localStorage.getItem(this.storageKey);
|
|
472
|
-
if (!raw)
|
|
473
|
-
return;
|
|
474
|
-
const parsed = JSON.parse(raw);
|
|
475
|
-
this.recentIds = Array.isArray(parsed?.recentIds) ? parsed.recentIds.map((x) => String(x)).slice(0, 50) : [];
|
|
476
|
-
this.favoriteIds = Array.isArray(parsed?.favoriteIds) ? parsed.favoriteIds.map((x) => String(x)).slice(0, 50) : [];
|
|
477
|
-
}
|
|
478
|
-
catch {
|
|
479
|
-
this.recentIds = [];
|
|
480
|
-
this.favoriteIds = [];
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
syncValueAndEmit(trigger) {
|
|
484
|
-
const selectedIds = Array.from(this.selectedIds);
|
|
485
|
-
this.value = this.multiSelect ? selectedIds.join(',') : selectedIds[0] || '';
|
|
486
|
-
this.locationChange.emit({
|
|
487
|
-
value: this.value,
|
|
488
|
-
selected: this.selectedOptions,
|
|
489
|
-
trigger,
|
|
490
|
-
query: this.searchQuery,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
createCustomLocation(label) {
|
|
494
|
-
const id = `custom:${label.toLowerCase().replace(/\s+/g, '-')}`;
|
|
495
|
-
const custom = {
|
|
496
|
-
id,
|
|
497
|
-
label,
|
|
498
|
-
type: 'custom',
|
|
499
|
-
};
|
|
500
|
-
this.locationCreate.emit(custom);
|
|
501
|
-
const normalized = this.normalizeOptions([custom]);
|
|
502
|
-
this.remoteOptions = [...normalized, ...this.remoteOptions.filter(o => o.idStr !== id)];
|
|
503
|
-
if (normalized[0]) {
|
|
504
|
-
this.selectOption(normalized[0], 'select');
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
getDisplayText() {
|
|
508
|
-
const selected = this.selectedOptions;
|
|
509
|
-
if (selected.length === 0)
|
|
510
|
-
return this.placeholder;
|
|
511
|
-
if (!this.multiSelect) {
|
|
512
|
-
return this.showPath ? selected[0].pathLabels.join(' / ') : selected[0].label;
|
|
513
|
-
}
|
|
514
|
-
if (selected.length === 1) {
|
|
515
|
-
return this.showPath ? selected[0].pathLabels.join(' / ') : selected[0].label;
|
|
516
|
-
}
|
|
517
|
-
return `${selected.length} locations selected`;
|
|
518
|
-
}
|
|
519
|
-
renderSelectedChips() {
|
|
520
|
-
if (!this.multiSelect || this.selectedOptions.length === 0)
|
|
521
|
-
return null;
|
|
522
|
-
const maxVisible = 3;
|
|
523
|
-
const visible = this.selectedOptions.slice(0, maxVisible);
|
|
524
|
-
const remaining = this.selectedOptions.length - visible.length;
|
|
525
|
-
return (h("div", { class: "selected-chips" }, visible.map(option => (h("span", { class: "selected-chip", key: `chip-${option.idStr}` }, h("span", { class: "chip-label" }, this.showPath ? option.pathLabels.join(' / ') : option.label), h("ui-button", { class: "chip-remove", onButtonClick: () => this.removeSelectedId(option.idStr, 'remove'), "aria-label": `Remove ${option.label}`, variant: "plain", icon: "x", iconLibrary: "lucide", iconOnly: true })))), remaining > 0 && h("span", { class: "selected-more" }, "+", remaining)));
|
|
526
|
-
}
|
|
527
|
-
renderOption(option, index) {
|
|
528
|
-
const selected = this.selectedIds.has(option.idStr);
|
|
529
|
-
const highlighted = this.highlightedIndex === index;
|
|
530
|
-
const favorite = this.favoriteIds.includes(option.idStr);
|
|
531
|
-
const label = this.showPath ? option.pathLabels.join(' / ') : option.label;
|
|
532
|
-
return (h("div", { class: {
|
|
533
|
-
'location-option': true,
|
|
534
|
-
'location-option-selected': selected,
|
|
535
|
-
'location-option-highlighted': highlighted,
|
|
536
|
-
'location-option-disabled': !!option.disabled,
|
|
537
|
-
}, role: "option", "aria-selected": selected ? 'true' : 'false', onMouseEnter: () => (this.highlightedIndex = index), onClick: () => this.selectOption(option, 'select'), ref: el => (this.optionsRefs[index] = el) }, h("div", { class: "location-option-main" }, this.multiSelect && h("ui-icon", { name: selected ? 'check-square' : 'square', library: "lucide", size: "18px" }), h("div", { class: "location-option-text" }, h("span", { class: "location-label" }, label), option.code && h("span", { class: "location-code" }, option.code))), h("div", { class: "location-option-meta" }, this.showTypeBadge && h("span", { class: "location-type" }, this.typeLabelMap[option.type]), this.showFavorites && (h("ui-button", { class: { 'fav-btn': true, active: favorite }, onButtonClick: e => this.toggleFavorite(option.idStr, e.detail), "aria-label": favorite ? `Remove ${option.label} from favorites` : `Add ${option.label} to favorites`, variant: "plain", icon: "star", iconLibrary: "lucide", iconOnly: true })))));
|
|
538
|
-
}
|
|
539
|
-
render() {
|
|
540
|
-
const filtered = this.filteredOptions;
|
|
541
|
-
const hasSelection = this.selectedIds.size > 0;
|
|
542
|
-
const canCreate = this.allowCustomValue && !!this.searchQuery.trim() && filtered.length === 0;
|
|
543
|
-
return (h("div", { key: '0d1270c7b8941a54d23f12b336a40248127a9515', class: { 'location-dropdown': true, open: this.isOpen, disabled: this.disabled } }, h("div", { key: '454a4fb32bdfcbb31f61ab24f69dd720f1d7975c', class: "location-trigger", role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", tabIndex: this.disabled ? -1 : 0, onClick: this.toggleDropdown, onKeyDown: this.handleKeyDown }, h("span", { key: '06e96ca6b9ce142e1c6eb4145d75de7c6753d0aa', class: { 'trigger-text': true, placeholder: !hasSelection } }, this.getDisplayText()), h("div", { key: '75bf60390f1983473a30b6c7fa6906d7bd39a99d', class: "trigger-icons" }, hasSelection && this.clearable && !this.disabled && (h("ui-button", { key: '274b970b60c84e37ba60ef76a226d8dffd21f85b', class: "clear-btn", onButtonClick: this.clearSelection, "aria-label": "Clear selected locations", variant: "plain", icon: "x", iconLibrary: "lucide", iconOnly: true })), h("ui-icon", { key: '872eb5b33bb7c84ebdf68d0685af115d78b893ba', name: "chevron-down", library: "lucide", size: "16px", class: { arrow: true, open: this.isOpen } }))), this.renderSelectedChips(), this.isOpen && (h("div", { key: '5285b7a36ec106df13afbfde4bae0127567dd459', class: { menu: true, top: this.dropdownPosition === 'top' }, role: "listbox", ref: el => (this.menuElement = el), style: {
|
|
544
|
-
maxHeight: `${this.maxHeight}px`,
|
|
545
|
-
left: `${this.menuLeft}px`,
|
|
546
|
-
width: `${this.menuWidth}px`,
|
|
547
|
-
position: 'fixed',
|
|
548
|
-
zIndex: '10020',
|
|
549
|
-
top: `${this.menuTop}px`,
|
|
550
|
-
} }, this.searchable && (h("div", { key: '96c9247325ad38fa7ad1378141a8de53fe23c062', class: "search-row" }, h("ui-input", { key: '16e6a0e35ae37de129b1812ecd7ed7c46c3b84c3', ref: el => (this.searchInputRef = el), class: "search-input", value: this.searchQuery, placeholder: this.searchPlaceholder, onInputChange: (e) => this.onSearchInput_Custom(e.detail), onKeyDown: this.handleKeyDown, variant: "plain" }))), this.loading && h("div", { key: '8be3bb6ff2b546d4b77dedea4efdced3cf456a73', class: "status loading" }, "Loading locations..."), !this.loading && this.loadError && h("div", { key: '2990bc4eb6413fc9ad02ec4214af9701f3ddb63f', class: "status error" }, this.loadError), !this.loading && filtered.length > 0 && (h("div", { key: 'cc1da47a2b1e0703c8f9cf3b12f66c53f4c72215', class: "options-list" }, filtered.map((option, index) => this.renderOption(option, index)))), !this.loading && filtered.length === 0 && !canCreate && h("div", { key: '74871de825014986333f513ab8a78eee94efffca', class: "status empty" }, "No locations found"), canCreate && (h("ui-button", { key: '0fd041bedf71502bea54a09d658669ccd3bcc68f', class: "create-btn", onButtonClick: () => this.createCustomLocation(this.searchQuery.trim()), variant: "plain", align: "start", fullWidth: true, icon: "plus", iconLibrary: "lucide", label: `Create "${this.searchQuery.trim()}"` })), (this.showFavorites || this.showRecent) && !this.searchQuery && (h("div", { key: '5a4c6ecc6768d6a6ee8b3731e4d12b845c936a8f', class: "footer-meta" }, this.showFavorites && h("span", { key: 'e2cac6f8adb895ba9f262be9924ea9a5619c95e3' }, "Favorites: ", this.favoriteIds.length), this.showRecent && h("span", { key: 'f541571f8f6dd69ce531f7a54cc8cd6d06b3d8a8' }, "Recent: ", this.recentIds.length)))))));
|
|
551
|
-
}
|
|
552
|
-
static get watchers() { return {
|
|
553
|
-
"options": [{
|
|
554
|
-
"watchOptions": 0
|
|
555
|
-
}],
|
|
556
|
-
"value": [{
|
|
557
|
-
"watchValue": 0
|
|
558
|
-
}]
|
|
559
|
-
}; }
|
|
560
|
-
};
|
|
561
|
-
SmartLocationDropdown.style = smartLocationDropdownCss();
|
|
562
|
-
|
|
563
|
-
export { SmartLocationDropdown as ui_smart_location_dropdown };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as i,a,h as t,H as s}from"./p-DUsoYu9r.js";const r=class{constructor(a){e(this,a),this.asideClosed=i(this,"asideClosed"),this.asideOpened=i(this,"asideOpened"),this.asideResized=i(this,"asideResized"),this.asideActionClick=i(this,"asideActionClick"),this.asideStateChange=i(this,"asideStateChange")}open=!1;direction="right";size="320px";mini=!1;miniSize="64px";pinned=!1;variant="default";theme="default";haptic=!1;enableParallax=!1;enableVoiceControl=!1;syncGroup="";maximized=!1;autoMini=!0;toggleShortcut="";showActions=!1;actionItems=[];stackOffset=0;scope="body";closeable=!0;closeOnOverlayClick=!0;showOverlay=!1;closeOnEscape=!0;resizable=!1;resizeHandleColor="";showResizeIndicator=!0;minSize=200;rtl=!1;maxSize=1200;backdropBlur="0";transitionDuration="1s";animationType="slide-in-out";loading=!1;progress=-1;badge="";persistKey;floatingOffset="20px";secondarySize="auto";floatingAlign="stretch";backgroundColor="white";asideClosed;asideOpened;asideResized;asideActionClick;asideStateChange;currentSize;isResizing=!1;isListening=!1;mouseRotation={x:0,y:0};get hostElement(){return a(this)}startPos=0;startSize=0;firstFocusableEl;lastFocusableEl;watchOpenHandler(e){e?(this.playHaptic("open"),this.asideOpened.emit(),this.handleFocusTrap(),this.saveState(),this.broadcastState(),"body"===this.scope&&document.body.classList.add("ui-aside-open")):(this.playHaptic("close"),this.asideClosed.emit(),this.saveState(),this.broadcastState(),"body"===this.scope&&document.body.classList.remove("ui-aside-open")),this.asideStateChange.emit({open:this.open,mini:this.mini})}watchMiniHandler(){this.playHaptic("toggle"),this.asideStateChange.emit({open:this.open,mini:this.mini}),this.saveState()}handleWindowResize(){this.autoMini&&window.innerWidth<1024&&(this.mini=!0)}componentWillLoad(){this.loadState(),this.currentSize||(this.currentSize=parseInt(this.size)),this.autoMini&&window.innerWidth<1024&&(this.mini=!0)}handleRemoteSync(e){this.syncGroup&&e.detail.group===this.syncGroup&&e.detail.sourceId!==this.hostElement.id&&(this.open=e.detail.open,this.mini=e.detail.mini)}broadcastState(){this.syncGroup&&window.dispatchEvent(new CustomEvent("asideRemoteState",{detail:{group:this.syncGroup,sourceId:this.hostElement.id,open:this.open,mini:this.mini}}))}playHaptic(e){if(this.haptic)try{const i=new(window.AudioContext||window.webkitAudioContext),a=i.createOscillator(),t=i.createGain();a.connect(t),t.connect(i.destination);const s=i.currentTime;"open"===e?(a.frequency.setValueAtTime(440,s),a.frequency.exponentialRampToValueAtTime(880,s+.1)):"close"===e?(a.frequency.setValueAtTime(880,s),a.frequency.exponentialRampToValueAtTime(220,s+.15)):(a.frequency.setValueAtTime(660,s),a.frequency.exponentialRampToValueAtTime(440,s+.1)),t.gain.setValueAtTime(.1,s),t.gain.exponentialRampToValueAtTime(.01,s+.15),a.start(),a.stop(s+.15)}catch(e){}}disconnectedCallback(){"body"===this.scope&&document.body.classList.remove("ui-aside-open")}watchSizeHandler(e){e&&(this.currentSize=parseInt(e))}componentDidLoad(){this.open&&this.handleFocusTrap()}loadState(){if(this.persistKey){const e=localStorage.getItem(`aside-panel-${this.persistKey}`);if(e)try{const{open:i,mini:a,size:t}=JSON.parse(e);this.open=i,this.mini=a,this.currentSize=t}catch(e){console.warn("Failed to load aside-panel state",e)}}}saveState(){this.persistKey&&localStorage.setItem(`aside-panel-${this.persistKey}`,JSON.stringify({open:this.open,mini:this.mini,size:this.currentSize}))}handleFocusTrap(){this.open&&!this.mini&&setTimeout((()=>{const e=this.hostElement.shadowRoot?.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]');e&&e.length>0&&(this.firstFocusableEl=e[0],this.lastFocusableEl=e[e.length-1],this.firstFocusableEl.focus())}),100)}handleKeyDown(e){if(this.toggleShortcut&&e.ctrlKey&&e.key.toLowerCase()===this.toggleShortcut.toLowerCase())return e.preventDefault(),void this.toggle();if(this.open){if(this.closeOnEscape&&"Escape"===e.key&&!this.pinned&&this.handleClose(),this.resizable&&e.altKey){const i=e.shiftKey?50:10;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)){e.preventDefault();let a=0;"ArrowLeft"===e.key&&(a="left"===this.direction?-i:"right"===this.direction?i:0),"ArrowRight"===e.key&&(a="left"===this.direction?i:"right"===this.direction?-i:0),"ArrowUp"===e.key&&(a="top"===this.direction?-i:"bottom"===this.direction?i:0),"ArrowDown"===e.key&&(a="top"===this.direction?i:"bottom"===this.direction?-i:0),this.currentSize=Math.max(this.minSize,Math.min(this.maxSize,this.currentSize+a)),this.asideResized.emit({size:this.currentSize}),this.saveState(),this.playHaptic("toggle")}}if("Tab"===e.key){const i=this.hostElement.shadowRoot,a=i?i.activeElement:document.activeElement;e.shiftKey?a===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault()):a===this.lastFocusableEl&&(this.firstFocusableEl.focus(),e.preventDefault())}}}async toggleMaximize(){this.maximized=!this.maximized,this.playHaptic("toggle")}async toggle(){this.open=!this.open}async toggleMini(){this.mini=!this.mini}async show(){this.open=!0}async hide(){this.pinned||(this.open=!1)}async initVoice(){if(!this.enableVoiceControl||!("webkitSpeechRecognition"in window))return;const e=new window.webkitSpeechRecognition;e.continuous=!1,e.interimResults=!1,e.lang="en-US",e.onstart=()=>{this.isListening=!0},e.onend=()=>{this.isListening=!1},e.onresult=e=>{const i=e.results[0][0].transcript.toLowerCase();(i.includes("side")||i.includes("panel"))&&((i.includes("open")||i.includes("show"))&&this.show(),(i.includes("close")||i.includes("hide"))&&this.hide(),(i.includes("mini")||i.includes("collapse"))&&(this.mini=!0),i.includes("expand")&&(this.mini=!1))},e.start()}handleResizeStart=e=>{this.resizable&&!this.mini&&(e.preventDefault(),this.isResizing=!0,this.startPos="left"===this.direction||"right"===this.direction?e.clientX:e.clientY,this.startSize=this.currentSize,document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))};handleResizeMove=e=>{if(!this.isResizing)return;let i=0,a=0;"left"===this.direction||"right"===this.direction?(a=.9*window.innerWidth,i="left"===this.direction?e.clientX-this.startPos:this.startPos-e.clientX):(a=.9*window.innerHeight,i="top"===this.direction?e.clientY-this.startPos:this.startPos-e.clientY);let t=this.startSize+i;const s=Math.min(this.maxSize,a);t=Math.max(this.minSize,Math.min(s,t)),this.currentSize=t};handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.asideResized.emit({size:this.currentSize}),this.saveState()};handleClose=()=>{this.pinned||(this.open=!1)};handleOverlayClick=()=>{this.closeOnOverlayClick&&!this.pinned&&this.handleClose()};handleParallax=e=>{if(!this.enableParallax||!this.open||this.mini)return;const i=this.hostElement.getBoundingClientRect();this.mouseRotation={x:5*((e.clientY-i.top)/i.height-.5),y:5*-((e.clientX-i.left)/i.width-.5)}};resetParallax=()=>{this.mouseRotation={x:0,y:0}};hostStyle(){const e={},i=this.maximized?"90%":this.mini?this.miniSize:this.currentSize?`${this.currentSize}px`:this.size,a="floating"===this.variant,t=a?this.floatingOffset:this.stackOffset?`${this.stackOffset}px`:"0";let s="none";return"left"===this.direction||"right"===this.direction?(e.width=i,e[this.direction]=t,a?"stretch"===this.floatingAlign?(e.top=t,e.bottom=t,e.height=`calc(100vh - 2 * ${t})`):(e.height="auto"===this.secondarySize?"60%":this.secondarySize,"start"===this.floatingAlign?(e.top=t,e.bottom="auto"):"end"===this.floatingAlign?(e.bottom=t,e.top="auto"):(e.top="50%",s="translateY(-50%)")):(e.height="100vh",e.top="0",e.bottom="0")):(e.height=i,e[this.direction]=t,a?"stretch"===this.floatingAlign?(e.left=t,e.right=t,e.width=`calc(100vw - 2 * ${t})`):(e.width="auto"===this.secondarySize?"60%":this.secondarySize,"start"===this.floatingAlign?(e.left=t,e.right="auto"):"end"===this.floatingAlign?(e.right=t,e.left="auto"):(e.left="50%",s="translateX(-50%)")):(e.width="100vw",e.left="0",e.right="0")),!this.enableParallax||this.mini||this.maximized||(s="none"===s?"":s,s+=` perspective(1000px) rotateX(${this.mouseRotation.x}deg) rotateY(${this.mouseRotation.y}deg)`),e["--aside-center-transform"]=s.trim(),e["--aside-transition-duration"]=this.transitionDuration,e["--aside-bg"]=this.backgroundColor||"white",e.backgroundColor="var(--aside-bg, #ffffff)",e}render(){const e="default"!==this.theme?this.theme:this.variant;return t(s,{key:"96228f17ee1f0fab8f11427ee6055f42234418cb",class:{"aside-container":!0,open:this.open,mini:this.mini,maximized:this.maximized,[`theme-${e}`]:!0,[`variant-${e}`]:!0,[`dir-${this.direction}`]:!0,[`animation-${this.animationType}`]:!0,"is-pinned":this.pinned,rtl:this.rtl},style:this.hostStyle(),role:"complementary","aria-expanded":this.open.toString(),"aria-hidden":(!this.open).toString()},this.showOverlay&&!this.mini&&t("div",{key:"5dae19f30e04a7fc18cb0fef62a8319f79296160",class:{overlay:!0,visible:this.open},style:{backdropFilter:"0"!==this.backdropBlur?`blur(${this.backdropBlur})`:"none"},onClick:this.handleOverlayClick}),t("div",{key:"688ced9dccc2bfe6ee489e8283146f8863044224",class:{panel:!0,[`panel-${this.direction}`]:!0,open:this.open,mini:this.mini,resizing:this.isResizing,loading:this.loading,"parallax-active":this.enableParallax},style:this.hostStyle(),onMouseMove:this.handleParallax,onMouseLeave:this.resetParallax},this.loading&&t("div",{key:"e78d13a733dbd6e9b2949634c8b107cab6225d24",class:"loading-overlay"},t("div",{key:"c7db0694fba52bfbc8d6a90440976556a85056c6",class:"spinner"})),this.resizable&&!this.mini&&t("div",{key:"ecc06e0c68c743eff86b12e2bb978369743924d7",class:`resize-handle resize-handle-${this.direction}`,style:this.resizeHandleColor?{backgroundColor:this.resizeHandleColor}:{},onMouseDown:this.handleResizeStart},this.showResizeIndicator&&t("div",{key:"28156c16815117726861da00bb93165c174fc1fe",class:"resize-indicator"},t("span",{key:"6b4e06e9ae3935a5a68dfbd2a51b53b1172fdd0f"}),t("span",{key:"82558b01333dff587f0afd3d723a7e592a757ede"}),t("span",{key:"c8e3a7ab11462c951e1477b5abcae131e2019129"}))),t("div",{key:"ab67f36b3f4dd65dffdb6fd4e12bb09d04fa4d59",class:"panel-header-toolbar"},t("div",{key:"627055ac7880157e1ccdb43587832fb151800202",class:"toolbar-left"},this.mini?t("ui-button",{variant:"ghost",size:"sm",icon:"chevron-right",iconLibrary:"lucide",iconSize:"14px",ariaLabel:"Expand",onClick:()=>this.toggleMini()}):t("div",{style:{display:"flex",gap:"4px"}},t("ui-button",{variant:"ghost",size:"sm",icon:"chevron-left",iconLibrary:"lucide",iconSize:"14px",ariaLabel:"Collapse to Mini",onClick:()=>this.toggleMini()}),!this.mini&&t("ui-button",{variant:"ghost",size:"sm",icon:this.maximized?"minimize":"maximize",iconLibrary:"lucide",iconSize:"14px",ariaLabel:this.maximized?"Restore":"Maximize",onClick:()=>this.toggleMaximize()})),this.enableVoiceControl&&t("ui-button",{key:"67bd0e21f1411391f2ee3bfc9d752ce267012401",variant:"ghost",size:"sm",icon:"mic",iconLibrary:"lucide",iconSize:"14px",ariaLabel:"Voice Interaction",class:this.isListening?"active":"",onClick:()=>this.initVoice()})),t("div",{key:"fa9bad7d620cab7d18cf9234f50f985378b472f5",class:"toolbar-right"},this.showActions&&t("ui-button",{key:"7688f94038ec6a27423be56b787873631614cdc2",id:"aside-actions-trigger",variant:"ghost",size:"sm",icon:"ellipsis-vertical",iconLibrary:"lucide",iconSize:"16px",ariaLabel:"More Actions",onClick:()=>this.asideActionClick.emit()}),this.showActions&&t("ui-context-menu",{key:"32daa2cbf1311059c80058a3ad587946f24b8e59",items:this.actionItems,target:"#aside-actions-trigger",openOn:"click",placement:"bottom",onItemSelect:e=>this.asideActionClick.emit(e.detail)}),this.pinned&&t("ui-icon",{key:"a3e70a59b575c0376c151e0c6a1db1553a9dd1e9",name:"pin",library:"lucide",size:"14px",class:"pin-status"}),this.closeable&&!this.pinned&&t("ui-button",{key:"c686337c8755a0375b4c87239bf95d2838f8bd36",variant:"ghost",size:"sm",icon:"x",iconLibrary:"lucide",iconSize:"16px",ariaLabel:"Close panel",onClick:this.handleClose}))),t("div",{key:"b4c1294140c10f94287ba98fa86f16627c61bb5b",class:"panel-header"},t("div",{key:"cd0533b0730d96b11136e68ce6a1e0372885ff4f",class:"header-main"},t("slot",{key:"687c43c34a171ff4351e8a41778da102826ce2f8",name:"header"}),this.badge&&t("span",{key:"830f3cb27cf809029f686bacbd488a6dcbcedad3",class:"header-badge"},this.badge)),this.progress>-1&&t("div",{key:"6c37bd10a8d7bfac71cc7aa619c44b4145400681",class:"header-progress"},t("div",{key:"07fbdc20712c119f1e345fcd070f2eb33f7380e6",class:"progress-bar",style:{width:`${Math.min(100,Math.max(0,this.progress))}%`}}))),t("div",{key:"569c75c3b02918bb22d3ffc4322a882267b92bb9",class:"panel-content"},t("slot",{key:"9255c9b298178ae03bae04acd856d8b528ddf808",name:"content"}),t("slot",{key:"0c071717c63c6baabfd5350cad38f57621989c6c"})),!this.mini&&t("div",{key:"d2a629a5864e57d917ca7a5a8256125a8a8ec0a4",class:"panel-footer"},t("slot",{key:"9b79d14c480eefa03ef84e73e5363bca9cd63e6e",name:"footer"}))))}static get watchers(){return{open:[{watchOpenHandler:0}],mini:[{watchMiniHandler:0}],size:[{watchSizeHandler:0}]}}};r.style='@charset "UTF-8";.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:contents;--aside-overlay-bg:rgba(0, 0, 0, 0.4);--aside-panel-bg:var(--aside-bg, var(--bg-primary, #ffffff));--aside-panel-shadow:0 10px 40px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.06);--aside-panel-text:var(--text-primary, #0f172a);--aside-close-btn-color:var(--text-muted, #64748b);--aside-close-btn-hover-color:var(--text-primary, #0f172a);--aside-close-btn-hover-bg:var(--bg-secondary, #f1f5f9);--aside-close-btn-focus:var(--color-primary, #10b981);--aside-resize-handle-hover:var(--color-primary, #10b981);--aside-resize-handle-active:var(--color-primary-hover, #2563eb);--aside-panel-padding:32px;--aside-transition-duration:1s;--aside-ease:cubic-bezier(0.65, 0, 0.35, 1);--aside-z-index-overlay:1500;--aside-z-index-panel:1501;--aside-mini-size:64px}.aside-container{display:block}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--aside-overlay-bg);opacity:0;visibility:hidden;transition:opacity var(--aside-transition-duration) var(--aside-ease), visibility var(--aside-transition-duration) var(--aside-ease);transition-delay:var(--aside-transition-duration);z-index:var(--aside-z-index-overlay)}.overlay.visible{opacity:1;visibility:visible;transition-delay:0s}.panel{position:fixed;background-color:var(--aside-panel-bg);color:var(--aside-panel-text);box-shadow:var(--aside-panel-shadow);transition:transform var(--aside-transition-duration) var(--aside-ease), width var(--aside-transition-duration) var(--aside-ease), height var(--aside-transition-duration) var(--aside-ease), opacity var(--aside-transition-duration) var(--aside-ease), visibility var(--aside-transition-duration) var(--aside-ease);z-index:var(--aside-z-index-panel);display:flex;flex-direction:column;overflow:hidden;visibility:hidden;pointer-events:none;transform-style:preserve-3d;--aside-dir-transform:translate(0, 0);transform:var(--aside-center-transform, none) var(--aside-dir-transform)}.panel-left{--aside-dir-transform:translateX(-110%)}.panel-right{--aside-dir-transform:translateX(110%)}.panel-top{--aside-dir-transform:translateY(-110%)}.panel-bottom{--aside-dir-transform:translateY(110%)}.panel.open{visibility:visible;pointer-events:auto;--aside-dir-transform:translate(0, 0)}.panel.maximized{width:90% !important;height:90% !important;border-radius:16px;z-index:1550;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.5);margin:1%}.panel.maximized .resize-handle{display:none !important}.panel.resizing{transition:none !important;user-select:none}.parallax-active{transition:transform var(--aside-transition-duration) var(--aside-ease), width var(--aside-transition-duration) var(--aside-ease), height var(--aside-transition-duration) var(--aside-ease), opacity var(--aside-transition-duration) var(--aside-ease)}.panel.mini .panel-header,.panel.mini .panel-footer,.panel.mini .toolbar-right,.panel.mini .close-btn{display:none !important}.panel.mini .panel-content{opacity:0.1;filter:blur(4px);pointer-events:none}.panel-header-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:rgba(0, 0, 0, 0.02);border-bottom:1px solid rgba(0, 0, 0, 0.05)}.panel-header-toolbar .toolbar-left,.panel-header-toolbar .toolbar-right{display:flex;align-items:center;gap:8px}.toolbar-btn{background:transparent;border:none;width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--aside-close-btn-color);transition:all 0.2s ease}.toolbar-btn:hover{background:var(--aside-close-btn-hover-bg);color:var(--aside-close-btn-hover-color)}.voice-btn.active{color:var(--color-danger, #ef4444);animation:voice-breathing 1.5s infinite ease-in-out}.panel-header{padding:24px var(--aside-panel-padding);border-bottom:1px solid var(--border-subtle, #e2e8f0);position:relative}.panel-header .header-main{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.panel-header .header-badge{background:var(--border-subtle, #e2e8f0);color:var(--color-primary, #475569);padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em}.panel-header .header-progress{position:absolute;bottom:0;left:0;right:0;height:2px;background:rgba(0, 0, 0, 0.05)}.panel-header .header-progress .progress-bar{height:100%;background:var(--color-primary, #10b981);transition:width 0.3s ease}.theme-zenith .header-badge{background:rgba(var(--color-success-rgb, 16, 185, 129), 0.2);color:var(--color-success, #10b981)}.theme-zenith .header-progress .progress-bar{background:var(--color-success, #10b981);box-shadow:0 0 5px var(--color-success, #10b981)}.panel-content{flex:1;padding:var(--aside-panel-padding);overflow-y:auto}.panel-footer{padding:20px var(--aside-panel-padding);border-top:1px solid var(--border-subtle, #e2e8f0);background-color:var(--bg-primary, #f8fafc)}.variant-glass .panel,.theme-glass .panel{background:rgba(255, 255, 255, 0.7);backdrop-filter:blur(16px) saturate(180%);border:1px solid rgba(255, 255, 255, 0.3)}.variant-glass.panel-left{border-right:1px solid rgba(255, 255, 255, 0.3)}.variant-floating .panel{border-radius:16px;border:1px solid rgba(0, 0, 0, 0.08);box-shadow:0 20px 40px -10px rgba(0, 0, 0, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.1)}.variant-floating .panel.panel-right:not(.open){--aside-dir-transform:translateX(calc(100% + 80px))}.variant-floating .panel.panel-left:not(.open){--aside-dir-transform:translateX(calc(-100% - 80px))}.variant-floating .panel.panel-top:not(.open){--aside-dir-transform:translateY(calc(-100% - 80px))}.variant-floating .panel.panel-bottom:not(.open){--aside-dir-transform:translateY(calc(100% + 80px))}.theme-radiant .panel{background:linear-gradient(135deg, var(--bg-primary, #ffffff), var(--bg-primary, #f8fafc));border:2px solid transparent;background-clip:padding-box;box-shadow:0 20px 50px rgba(0, 0, 0, 0.15)}.theme-zenith .panel{background:var(--bg-secondary, #0f172a);color:var(--bg-primary, #ffffff);border-color:var(--bg-primary, var(--border-subtle, #1e293b))}.theme-zenith .panel .panel-header,.theme-zenith .panel .panel-footer{border-color:var(--bg-primary, var(--border-subtle, #1e293b));background:var(--bg-primary, var(--border-subtle, #1e293b))}.resize-handle{position:absolute;background-color:transparent;z-index:1510;transition:background-color 0.2s ease, opacity 0.2s ease;display:flex;align-items:center;justify-content:center}.resize-handle:hover{background-color:var(--aside-resize-handle-hover)}.resize-indicator{display:flex;gap:2px;pointer-events:none;opacity:0.5}.resize-handle:hover .resize-indicator{opacity:1}.resize-handle-left,.resize-handle-right{flex-direction:column}.resize-handle-left .resize-indicator,.resize-handle-right .resize-indicator{flex-direction:column}.resize-indicator span{width:3px;height:3px;background-color:currentColor;border-radius:50%;box-shadow:0 0 2px rgba(0, 0, 0, 0.2)}.resize-handle-left{right:0;top:0;bottom:0;width:6px;cursor:ew-resize}.resize-handle-right{left:0;top:0;bottom:0;width:6px;cursor:ew-resize}.resize-handle-top{bottom:0;left:0;right:0;height:6px;cursor:ns-resize}.resize-handle-bottom{top:0;left:0;right:0;height:6px;cursor:ns-resize}.loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255, 255, 255, 0.7);display:flex;align-items:center;justify-content:center;z-index:1600;backdrop-filter:blur(4px);overflow:hidden}.loading-overlay::after{content:"";position:absolute;top:0;left:-100%;width:50%;height:100%;background:linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb, 59, 130, 246), 0.1), transparent);animation:aside-shimmer 2s infinite}.spinner{width:48px;height:48px;border:4px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.1);border-top-color:var(--color-primary, #10b981);border-radius:50%;animation:aside-spin 1s infinite linear}@keyframes aside-spin{to{transform:rotate(360deg)}}@keyframes aside-shimmer{100%{left:200%}}.theme-zenith .panel.open{animation:zenith-heartbeat 4s ease-in-out infinite}@keyframes zenith-heartbeat{0%,100%{box-shadow:0 0 0 0 rgba(var(--color-success-rgb, 16, 185, 129), 0)}50%{box-shadow:0 0 20px 2px rgba(var(--color-success-rgb, 16, 185, 129), 0.2)}}@media (prefers-color-scheme: dark){:host{--aside-panel-bg:var(--bg-primary, #1e293b);--aside-panel-text:var(--bg-secondary, #f1f5f9)}.panel-header,.panel-footer{border-color:var(--color-primary, #334155)}.panel-footer{background:var(--bg-secondary, #0f172a)}.loading-overlay{background:rgba(15, 23, 42, 0.7)}}.aside-container.animation-slide-in-out .panel{opacity:1}.aside-container.animation-fade .panel:not(.open){opacity:0;visibility:hidden;--aside-dir-transform:translate(0, 0) !important}.aside-container.animation-fade .panel.open{opacity:1;visibility:visible}.aside-container.animation-scale .panel:not(.open){opacity:0;visibility:hidden;--aside-dir-transform:scale(0.95)}.aside-container.animation-scale .panel.open{opacity:1;visibility:visible;--aside-dir-transform:scale(1)}.variant-none .panel,.theme-none .panel{background:transparent !important;box-shadow:none !important;border:none !important}';export{r as ui_aside_panel}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as a,h as e,H as c}from"./p-DUsoYu9r.js";const i=class{constructor(e){t(this,e),this.colorChange=a(this,"colorChange")}value="#10b981";label="";colorChange;r=16;g=185;b=129;h=159;s=91;v=73;hex="10B981";handleValueUpdate(t){this.updateAllFromHex(t)}componentWillLoad(){this.updateAllFromHex(this.value)}updateAllFromHex(t){if(!t)return;const a=t.startsWith("#")?t.slice(1):t;this.hex=a.toUpperCase();const e=parseInt(a,16);this.r=e>>16&255,this.g=e>>8&255,this.b=255&e;const c=this.r/255,i=this.g/255,r=this.b/255,l=Math.max(c,i,r),s=l-Math.min(c,i,r);let n=0;0===s?n=0:l===c?n=(i-r)/s%6:l===i?n=(r-c)/s+2:l===r&&(n=(c-i)/s+4),n=Math.round(60*n),n<0&&(n+=360);const o=0===l?0:s/l,p=l;this.h=n,this.s=Math.round(100*o),this.v=Math.round(100*p)}emitChange(){this.value=`#${this.hex}`,this.colorChange.emit(this.value)}handleHexInput=t=>{const a=t.detail.value||"";6!==a.length&&3!==a.length||/^[0-9A-Fa-f]+$/.test(a)&&(this.hex=a.toUpperCase(),this.updateAllFromHex(this.hex),this.emitChange())};handleRgbChange(t,a){isNaN(a)||(this[t]=Math.max(0,Math.min(255,a)),this.hex=((1<<24)+(this.r<<16)+(this.g<<8)+this.b).toString(16).slice(1).toUpperCase(),this.updateAllFromHex(this.hex),this.emitChange())}handleHsvChange(t,a){if(isNaN(a))return;"h"===t&&(this.h=Math.max(0,Math.min(360,a))),"s"===t&&(this.s=Math.max(0,Math.min(100,a))),"v"===t&&(this.v=Math.max(0,Math.min(100,a)));const e=this.h,c=this.v/100,i=c*(this.s/100),r=i*(1-Math.abs(e/60%2-1)),l=c-i;let s=0,n=0,o=0;e<60?(s=i,n=r,o=0):e<120?(s=r,n=i,o=0):e<180?(s=0,n=i,o=r):e<240?(s=0,n=r,o=i):e<300?(s=r,n=0,o=i):(s=i,n=0,o=r),this.r=Math.round(255*(s+l)),this.g=Math.round(255*(n+l)),this.b=Math.round(255*(o+l)),this.hex=((1<<24)+(this.r<<16)+(this.g<<8)+this.b).toString(16).slice(1).toUpperCase(),this.emitChange()}render(){return e(c,{key:"b3bf272d34509127138914724e36b188edd43d6e"},this.label&&e("div",{key:"36ebf9de294642b1d67135b6c8c452fb47c612e6",class:"col-ctrl-label"},this.label),e("div",{key:"59133d3793607ff7168906dbddd0e7e40c7244a9",class:"col-ctrl-grid"},e("div",{key:"44b1a8ae8bbc3faaf5c9b009eab5580297761c2d",class:"col-ctrl-row"},e("span",{key:"d5fe3fe12e6a116569b2939a0d63f8ff5599184f",class:"col-ctrl-key"},"H"),e("div",{key:"69bb7842109760c51e1122963cb56f0eba8454a0",class:"col-ctrl-input-wrapper"},e("ui-input",{key:"f6a133615ab877293398de65f3b0004c0234f161",class:"col-ctrl-input",type:"number",value:this.h,onInputChange:t=>this.handleHsvChange("h",parseInt(t.detail)),variant:"plain"}),e("span",{key:"e00ac8771d5c0f6a08d93fd3f1c1b85b6014edca",class:"col-ctrl-unit"},"°"))),e("div",{key:"2fd071bc5741f47cbf40b6664332c6f63e684091",class:"col-ctrl-row"},e("span",{key:"375c1767c1631f1f5aa0095606c9e50b350443f2",class:"col-ctrl-key"},"S"),e("div",{key:"3c41e3f98fc37ab7a2af5f3a57dfa7bb05427744",class:"col-ctrl-input-wrapper"},e("ui-input",{key:"3f2a4a152681231156b1b82091fd08b78d6cba2f",class:"col-ctrl-input",type:"number",value:this.s,onInputChange:t=>this.handleHsvChange("s",parseInt(t.detail)),variant:"plain"}),e("span",{key:"3c33faf1a4ffe99ebe5cde064c024034b691ad1f",class:"col-ctrl-unit"},"%"))),e("div",{key:"2e49ebd592ade20e0e7660b10416b656312347e0",class:"col-ctrl-row",style:{marginBottom:"12px"}},e("span",{key:"874e0da90ed96b03c7955ac6650c75b039ea886a",class:"col-ctrl-key"},"V"),e("div",{key:"7ef1fd0da2ea55c460643e464a0a06bd4ae2d280",class:"col-ctrl-input-wrapper"},e("ui-input",{key:"11cb688038ce67cee9c29b091498b7967674b7fa",class:"col-ctrl-input",type:"number",value:this.v,onInputChange:t=>this.handleHsvChange("v",parseInt(t.detail)),variant:"plain"}),e("span",{key:"09449462dbba86a0fd33b862f42590209218b9e2",class:"col-ctrl-unit"},"%"))),e("div",{key:"c16ecc86f52bbb01edea970400c2128d86384a70",class:"col-ctrl-row"},e("span",{key:"53fa2cd839dc048567e3aed4fe6ce766d7005577",class:"col-ctrl-key"},"R"),e("div",{key:"bcf8bf7833c0dc0030d99b28af56b0bc430fd708",class:"col-ctrl-input-wrapper"},e("ui-input",{key:"a498ca548a2529505bae7161659f50b4e5641678",class:"col-ctrl-input",type:"number",value:this.r,onInputChange:t=>this.handleRgbChange("r",parseInt(t.detail)),variant:"plain"}))),e("div",{key:"516aff05554aad71cc012a9905dad96d5e03b91e",class:"col-ctrl-row"},e("span",{key:"2c234e6e2f2111724cf603a76303a965b2277c17",class:"col-ctrl-key"},"G"),e("div",{key:"85339e47bcd95bf20f6e7ae42ac5d29739e8d05a",class:"col-ctrl-input-wrapper"},e("ui-input",{key:"d705b336aaceb110e92a9a63c000bfc19c9bdb17",class:"col-ctrl-input",type:"number",value:this.g,onInputChange:t=>this.handleRgbChange("g",parseInt(t.detail)),variant:"plain"}))),e("div",{key:"033523f4276729ee119fe4ad793e02850c288831",class:"col-ctrl-row",style:{marginBottom:"12px"}},e("span",{key:"66fd8bdd0d2dd540fb591d02ebc3240913477b52",class:"col-ctrl-key"},"B"),e("div",{key:"1cfa29786007a7c1292817b914cb573f0a69f1b8",class:"col-ctrl-input-wrapper"},e("ui-input",{key:"b6c51663d914adb081819c23fb8e7915be7b50cb",class:"col-ctrl-input",type:"number",value:this.b,onInputChange:t=>this.handleRgbChange("b",parseInt(t.detail)),variant:"plain"}))),e("div",{key:"4c43173acd72a63dcb2e3ea5759d05bceebd6087",class:"col-ctrl-row hex-row"},e("span",{key:"3d742b9ca0c5956498a6787171a22fbdb0e87a12",class:"col-ctrl-key"},"#"),e("div",{key:"294d48fc7bb69c9dda1a36788b6e712725fda674",class:"col-ctrl-input-wrapper hex-wrapper"},e("ui-input",{key:"051e90c5e2814ba7a5ae6cb542e379f343cf29ea",class:"col-ctrl-input hex-input",value:this.hex,onInputChange:t=>this.handleHexInput({detail:{value:t.detail}}),variant:"plain"})))))}static get watchers(){return{value:[{handleValueUpdate:0}]}}};i.style=".sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block;font-family:inherit;width:100%;max-width:2a0px}.col-ctrl-label{font-size:13px;font-weight:700;color:var(--color-primary, #6366f1);margin-bottom:12px;text-transform:uppercase;letter-spacing:0.05em}.col-ctrl-grid{display:flex;flex-direction:column;gap:6px}.col-ctrl-row{display:flex;align-items:center;gap:8px}.col-ctrl-key{flex:0 0 20px;font-size:12px;font-weight:500;color:var(--text-secondary, #4b5563)}.col-ctrl-input-wrapper{flex:1;display:flex;align-items:center;border:1px solid var(--border-default, #e5e7eb);border-radius:4px;background:var(--bg-primary, #ffffff);padding:2px 6px;transition:all 0.2s}.col-ctrl-input-wrapper:focus-within{border-color:var(--color-primary, #6366f1);box-shadow:0 0 0 2px rgba(var(--color-primary-rgb, 99, 102, 241), 0.1)}.col-ctrl-input{flex:1;border:none;background:transparent;outline:none;font-size:13px;padding:4px;width:100%;color:var(--text-primary, #111827);font-family:monospace;text-align:right}.col-ctrl-input::-webkit-outer-spin-button,.col-ctrl-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.hex-row .col-ctrl-key{font-family:monospace;font-weight:700}.col-ctrl-unit{font-size:12px;color:var(--text-muted, #9ca3af);margin-left:4px;min-width:12px}.hex-input{text-align:left;letter-spacing:0.05em;font-weight:600}";export{i as ui_color_controller}
|