atomicuilibrary 0.1.0 → 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 +4 -4
- 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/smart-step.cjs.entry.js +3 -3
- package/dist/cjs/timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion_11.cjs.entry.js +132 -50
- 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 +10 -11
- 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 +2 -2
- package/dist/cjs/ui-card.cjs.entry.js +4 -3
- package/dist/cjs/ui-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ui-code-editor.cjs.entry.js +2 -2
- 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 +85 -11
- 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 +349 -60
- 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_4.cjs.entry.js → ui-pagination_3.cjs.entry.js} +35 -506
- 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 +66 -9
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +14 -13
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-tag.cjs.entry.js +58 -13
- package/dist/cjs/ui-timeline.cjs.entry.js +10 -2
- 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 +4 -4
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-transfer-list.cjs.entry.js +6 -6
- package/dist/cjs/ui-tree.cjs.entry.js +30 -15
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +2 -2
- package/dist/collection/assets/js/component-config.js +1 -0
- package/dist/collection/assets/js/demo-loader.js +2 -0
- package/dist/collection/assets/js/demos/about-demo.js +13 -13
- package/dist/collection/assets/js/demos/accordion-demo.js +66 -66
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +102 -102
- 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 +51 -51
- 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 +117 -107
- package/dist/collection/assets/js/demos/button-toggle-demo.js +199 -96
- package/dist/collection/assets/js/demos/callout-banner-demo.js +23 -23
- package/dist/collection/assets/js/demos/card-demo.js +23 -22
- 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 +43 -43
- 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 +12 -12
- package/dist/collection/assets/js/demos/dock-host-init.js +31 -31
- package/dist/collection/assets/js/demos/documentation-demo.js +34 -34
- 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 +294 -78
- 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 +185 -122
- package/dist/collection/assets/js/demos/loader-demo.js +48 -48
- package/dist/collection/assets/js/demos/masonry-demo.js +568 -140
- 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 +170 -156
- 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 +14 -14
- 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 +62 -62
- package/dist/collection/assets/js/demos/theme-selector-demo.js +27 -27
- package/dist/collection/assets/js/demos/timeline-demo.js +10 -10
- 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 +92 -90
- 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 +50 -66
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +20 -20
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/accordion/accordion.css +275 -9
- package/dist/collection/components/accordion/accordion.js +7 -6
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +5 -5
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +2 -2
- package/dist/collection/components/anchor/anchor.css +1 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +2 -2
- package/dist/collection/components/aside-panel/aside-panel.css +2 -2
- package/dist/collection/components/aside-panel/aside-panel.js +10 -11
- package/dist/collection/components/avatar/avatar.css +6 -6
- package/dist/collection/components/avatar/avatar.js +63 -11
- package/dist/collection/components/badge/badge.css +27 -17
- package/dist/collection/components/badge/badge.js +6 -3
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +2 -2
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +3 -3
- 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 +221 -9
- package/dist/collection/components/card/card.js +3 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- 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 +9 -9
- package/dist/collection/components/dialog-box/dialog-box.js +116 -14
- package/dist/collection/components/dialog-header/dialog-header.js +1 -1
- 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 +20 -9
- 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 +403 -131
- package/dist/collection/components/list-item/list-item.js +345 -61
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +2 -2
- 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 +176 -32
- package/dist/collection/components/progress/progress.js +66 -8
- package/dist/collection/components/radio/radio.css +2 -0
- 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/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 +13 -12
- 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 +34 -16
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +46 -11
- 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/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 -1
- 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-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-color-controller.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-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-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 +4 -4
- 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/smart-step.entry.js +3 -3
- package/dist/esm/timeline-item.entry.js +2 -2
- package/dist/esm/ui-accordion_11.entry.js +132 -50
- 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 +10 -11
- 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 +2 -2
- package/dist/esm/ui-card.entry.js +4 -3
- package/dist/esm/ui-carousel.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +3 -3
- package/dist/esm/ui-code-editor.entry.js +2 -2
- 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 +85 -11
- 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 +349 -60
- 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_4.entry.js → ui-pagination_3.entry.js} +36 -506
- 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 +66 -9
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/ui-switch.entry.js +14 -13
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-tag.entry.js +58 -13
- package/dist/esm/ui-timeline.entry.js +10 -2
- 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 +4 -4
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-transfer-list.entry.js +6 -6
- package/dist/esm/ui-tree.entry.js +30 -15
- package/dist/esm/ui-workspace-manager.entry.js +2 -2
- 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-7ba2258a.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-036d2a44.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-81ebba11.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-e8c6d395.entry.js → p-2b6aa7bc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-70bacda8.entry.js → p-2cfba753.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-cbee2607.entry.js → p-2fe22958.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-20ecc116.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-8b57fe4e.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-e22317c1.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-4288c158.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-4aaa8e40.entry.js → p-4c46ac0b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-98e91da5.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-fb4aca69.entry.js → p-62889cfe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c02284ea.entry.js → p-66f71613.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-7889bfc4.entry.js → p-67c440b2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c1c8ac28.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-97af03cc.entry.js → p-7ed3bba2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d59da767.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-54965530.entry.js → p-97086868.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d114a347.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-790556f0.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-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-6ddbee42.entry.js → p-ae617f62.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-05a436d3.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-d2e45c5e.entry.js → p-bc49a088.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-6b838549.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-8578b616.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-cb6e38a6.entry.js +1 -0
- 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/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/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 +45 -17
- 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 +7 -0
- 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 +742 -425
- package/dist/types/types/common.d.ts +2 -2
- package/dist/types/types/common.type.d.ts +2 -0
- package/dist/types/utils/dom.d.ts +4 -4
- package/package.json +4 -5
- package/dist/cjs/dom-oP1E4Rd3.js +0 -267
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +0 -634
- package/dist/cjs/ui-color-controller.cjs.entry.js +0 -150
- package/dist/cjs/ui-popover.cjs.entry.js +0 -517
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +0 -565
- 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/smart-location-dropdown/smart-location-dropdown.css +0 -357
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +0 -1190
- package/dist/components/ui-color-controller.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-color-controller.entry.js +0 -148
- package/dist/esm/ui-popover.entry.js +0 -515
- package/dist/esm/ui-smart-location-dropdown.entry.js +0 -563
- 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-16bdd162.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-2347d21b.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-3d381f75.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4417a9d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-44742ddd.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4bef8bed.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4efd63ce.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5c835d90.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-61717490.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-71d95bb1.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9bd14f69.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-DUsoYu9r.js +0 -2
- package/dist/exploration-project-tailwind/p-a27f59d2.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-a7b07cf4.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-bd89d060.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c63c522e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d6ce9721.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-dc92a343.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-debede45.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-e76318c7.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-eab5ad36.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f0bc5d7e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f1beee72.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f543392f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f61cfb7c.entry.js +0 -1
- package/dist/types/components/color-controller/color-controller.d.ts +0 -24
- 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/{smart-location-dropdown → label}/types.js +0 -0
|
@@ -184,11 +184,15 @@ export class Timeline {
|
|
|
184
184
|
const isEven = this.isRtl ? index % 2 !== 0 : index % 2 === 0;
|
|
185
185
|
const side = this.align === 'alternate' ? (isEven ? 'left' : 'right') : this.align;
|
|
186
186
|
const hSide = this.align === 'alternate' ? (isEven ? 'top' : 'bottom') : (this.align === 'top' ? 'top' : 'bottom');
|
|
187
|
+
const itemSideClass = side === 'left' || side === 'right' ? `timeline-item-${side}` : undefined;
|
|
188
|
+
const itemHorizontalClass = hSide === 'top' || hSide === 'bottom' ? `timeline-item-${hSide}` : undefined;
|
|
187
189
|
return (h("div", { class: {
|
|
188
190
|
'timeline-item': true,
|
|
189
191
|
'timeline-item-pending': true,
|
|
190
192
|
[`side-${side}`]: this.mode === 'vertical',
|
|
191
193
|
[`side-${hSide}`]: this.mode === 'horizontal',
|
|
194
|
+
[itemSideClass]: !!itemSideClass,
|
|
195
|
+
[itemHorizontalClass]: !!itemHorizontalClass,
|
|
192
196
|
'is-multiline': isMultiline
|
|
193
197
|
} }, h("div", { class: "timeline-item-line" }), h("div", { class: "timeline-item-dot" }, h("span", { class: "dot-inner" })), h("div", { class: "timeline-item-details" }, h("div", { class: "timeline-item-content" }, h("div", { class: "timeline-item-title" }, "Pending...")))));
|
|
194
198
|
}
|
|
@@ -201,6 +205,8 @@ export class Timeline {
|
|
|
201
205
|
const hSide = isAlternate
|
|
202
206
|
? (isEven ? 'top' : 'bottom')
|
|
203
207
|
: (this.align === 'top' ? 'top' : 'bottom');
|
|
208
|
+
const itemSideClass = side === 'left' || side === 'right' ? `timeline-item-${side}` : undefined;
|
|
209
|
+
const itemHorizontalClass = hSide === 'top' || hSide === 'bottom' ? `timeline-item-${hSide}` : undefined;
|
|
204
210
|
let dotContent;
|
|
205
211
|
const dotStyle = {};
|
|
206
212
|
if (event.dotColor)
|
|
@@ -234,6 +240,8 @@ export class Timeline {
|
|
|
234
240
|
index % 2 === 0 ? 'timeline-item-even' : 'timeline-item-odd',
|
|
235
241
|
`side-${side}`,
|
|
236
242
|
`side-${hSide}`,
|
|
243
|
+
itemSideClass,
|
|
244
|
+
itemHorizontalClass,
|
|
237
245
|
isMultiline && isLastInRow && 'is-last-in-row',
|
|
238
246
|
!!event.image && 'has-image',
|
|
239
247
|
!!event.icon && 'has-icon',
|
|
@@ -13,7 +13,7 @@ export class TimelineItem {
|
|
|
13
13
|
*/
|
|
14
14
|
itemDate;
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: 'd95b2638f4ddd5cfe6123e0dca0573d50f7a9b12', class: "timeline-item-container" }, h("div", { key: '1af79e9d89d34c86588dde5f8a17a3d858818eca', class: "timeline-item-content" }, h("h2", { key: '20b3627366401ffcbeb5ec3673ff54960b86b87d' }, this.itemTitle), h("p", { key: '830ff3c7ee8eab68977b343a5fa275eb8f4e9df5' }, this.itemDescription), h("span", { key: 'e349ec06b84933f61fb194dde37e12624694a981' }, this.itemDate))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "timeline-item"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -442,7 +442,7 @@ export class Timer {
|
|
|
442
442
|
}
|
|
443
443
|
render() {
|
|
444
444
|
const showCompact = this.variant === 'compact' || (this.collapse && this.isNarrow);
|
|
445
|
-
return (h(Host, { key: '
|
|
445
|
+
return (h(Host, { key: '33774816a46769a5d4de514a1f91a73c5eb5ccc1', class: {
|
|
446
446
|
'timer-has-shadow': this.useShadow,
|
|
447
447
|
'timer-no-shadow': !this.useShadow,
|
|
448
448
|
'timer-collapsed': this.collapse && this.isNarrow
|
|
@@ -239,13 +239,17 @@
|
|
|
239
239
|
}
|
|
240
240
|
.toggle-list.is-segmented .segmented-indicator {
|
|
241
241
|
position: absolute;
|
|
242
|
-
top:
|
|
243
|
-
left:
|
|
242
|
+
top: 0px;
|
|
243
|
+
left: 0px;
|
|
244
244
|
bottom: 6px;
|
|
245
245
|
border-radius: 12px;
|
|
246
246
|
transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.4s ease, background-color 0.4s ease;
|
|
247
247
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
248
|
-
|
|
248
|
+
}
|
|
249
|
+
.toggle-list.is-segmented.is-multiple .toggle-item-wrapper.is-active {
|
|
250
|
+
background: var(--active-bg, var(--toggle-group-primary)) !important;
|
|
251
|
+
border-radius: 12px;
|
|
252
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
249
253
|
}
|
|
250
254
|
|
|
251
255
|
.toggle-item-wrapper {
|
|
@@ -345,8 +345,12 @@ export class UIToggleGroup {
|
|
|
345
345
|
}, onKeyDown: this.handleKeyDown }, this.renderLabel(), this.renderSearch(), this.renderControls(), (this.loading || this.showSkeleton) ? this.renderLoading() : (!this.isCollapsed && (h("div", { class: {
|
|
346
346
|
'toggle-list': true,
|
|
347
347
|
[`layout-${this.layout}`]: true,
|
|
348
|
-
'is-segmented': this.variant === 'segmented'
|
|
349
|
-
|
|
348
|
+
'is-segmented': this.variant === 'segmented',
|
|
349
|
+
'is-multiple': this.selectionMode === 'multiple'
|
|
350
|
+
}, style: {
|
|
351
|
+
...(this.layout === 'grid' ? { 'grid-template-columns': `repeat(${this.columns}, 1fr)` } : {}),
|
|
352
|
+
'--active-bg': `var(--toggle-group-${this.color})`
|
|
353
|
+
}, ref: (el) => this.listEl = el }, this.variant === 'segmented' && (h("div", { class: "segmented-indicator", style: {
|
|
350
354
|
transform: `translate3d(${this.indicatorRect.left}px, ${this.indicatorRect.top}px, 0)`,
|
|
351
355
|
width: `${this.indicatorRect.width}px`,
|
|
352
356
|
height: `${this.indicatorRect.height}px`,
|
|
@@ -661,7 +665,7 @@ export class UIToggleGroup {
|
|
|
661
665
|
"mutable": false,
|
|
662
666
|
"complexType": {
|
|
663
667
|
"original": "StatusColor",
|
|
664
|
-
"resolved": "\"borderless\" | \"danger\" | \"default\" | \"elevated\" | \"error\" | \"flat\" | \"ghost\" | \"glass\" | \"info\" | \"inverse\" | \"loading\" | \"neutral\" | \"none\" | \"outline\" | \"plain\" | \"primary\" | \"raised\" | \"secondary\" | \"soft\" | \"sovereign\" | \"success\" | \"surface\" | \"tertiary\" | \"warning\"",
|
|
668
|
+
"resolved": "\"black\" | \"borderless\" | \"danger\" | \"default\" | \"elevated\" | \"error\" | \"flat\" | \"ghost\" | \"glass\" | \"info\" | \"inverse\" | \"loading\" | \"neutral\" | \"none\" | \"outline\" | \"plain\" | \"primary\" | \"raised\" | \"secondary\" | \"soft\" | \"sovereign\" | \"success\" | \"surface\" | \"tertiary\" | \"warning\" | \"white\"",
|
|
665
669
|
"references": {
|
|
666
670
|
"StatusColor": {
|
|
667
671
|
"location": "import",
|
|
@@ -591,7 +591,7 @@ export class Toolbar {
|
|
|
591
591
|
if (this.maxSize) {
|
|
592
592
|
stickyStyle[this.orientation === 'horizontal' ? 'maxWidth' : 'maxHeight'] = this.maxSize;
|
|
593
593
|
}
|
|
594
|
-
return (h(Host, { key: '
|
|
594
|
+
return (h(Host, { key: '036f6c8d9b98ab609f212929d6f55f0fde7cc074', class: hostClasses, style: stickyStyle, role: "toolbar", "aria-label": this.toolbarAriaLabel, "aria-disabled": this.disabled ? 'true' : null }, this.isMobile && (h("ui-button", { key: '4332c51f7597bd1be7da3841236b5807c79f56e3', class: "toolbar-mobile-toggle", "aria-expanded": String(!this.isCollapsed), "aria-label": this.isCollapsed ? 'Expand toolbar' : 'Collapse toolbar', onButtonClick: () => { this.isCollapsed = !this.isCollapsed; }, variant: "ghost", icon: this.isCollapsed ? 'menu' : 'x', "icon-library": this.iconLibrary, iconOnly: true })), (!this.isMobile || !this.isCollapsed) && (h("div", { key: '721bc0717cac042661c3e0752fd9908b0c1052e5', class: "toolbar-body", style: bodyStyle, ref: el => this.toolbarBodyRef = el }, h("slot", { key: '021a9b2a763cba4dd80066d31f858dc6517630a7', name: "before" }), hasSchema ? (h("div", { class: "toolbar-zones" }, this.renderZone(this.parsedSchema.left ?? [], 'left'), this.zoneDividers && (this.parsedSchema.left?.length > 0) && (this.parsedSchema.center?.length > 0) && this.renderSeparator(), this.renderZone(this.parsedSchema.center ?? [], 'center'), this.zoneDividers && (this.parsedSchema.center?.length > 0) && (this.parsedSchema.right?.length > 0) && this.renderSeparator(), this.renderZone(this.parsedSchema.right ?? [], 'right'))) : (this.parsedItems.map(item => this.renderItem(item))), h("slot", { key: '4cbff6aede8517e2bee4c8bdf388831d9268796f', name: "left" }), h("slot", { key: '00836db35af163fe591451ec2dde1bbce0e74d9b', name: "center" }), h("slot", { key: '7a6a2a43511cf7798a1b99d8a2f1f95fb47f66fb', name: "right" }), h("slot", { key: '9f789b3b3a6f5ee83470b625452024deecba3fd8' }), this.overflowStrategy === 'dropdown' && this.renderOverflowMenu(), h("slot", { key: 'bc777e8b94344da25d05000eee4090a5959f57c6', name: "after" })))));
|
|
595
595
|
}
|
|
596
596
|
static get is() { return "ui-toolbar"; }
|
|
597
597
|
static get encapsulation() { return "shadow"; }
|
|
@@ -662,7 +662,7 @@ export class Tooltip {
|
|
|
662
662
|
[`tooltip-shape-${this.shape}`]: true,
|
|
663
663
|
...(this.customClass ? { [this.customClass]: true } : {}),
|
|
664
664
|
};
|
|
665
|
-
const tooltipContent = (h("div", { key: '
|
|
665
|
+
const tooltipContent = (h("div", { key: '8f1f9b9c8df2fa1d1b835dd339588329fa42fabb', class: tooltipClasses, style: {
|
|
666
666
|
'--tooltip-max-width': `${this.maxWidth}px`,
|
|
667
667
|
'--tooltip-z-index': this.zIndex.toString(),
|
|
668
668
|
'--tooltip-transition-duration': `${this.transitionDuration}ms`,
|
|
@@ -670,8 +670,8 @@ export class Tooltip {
|
|
|
670
670
|
'--tooltip-arrow-size': `${this.arrowSize}px`,
|
|
671
671
|
...(this.customColor ? { '--tooltip-bg-color': this.customColor } : {}),
|
|
672
672
|
...(this.textColor ? { '--tooltip-text-color': this.textColor } : {}),
|
|
673
|
-
}, ref: el => this.tooltipElement = el, onMouseEnter: this.handleTooltipMouseEnter, onMouseLeave: this.handleTooltipMouseLeave, role: "tooltip", "aria-live": "polite" }, this.closable && (h("ui-button", { key: '
|
|
674
|
-
return (h(Host, { key: '
|
|
673
|
+
}, ref: el => this.tooltipElement = el, onMouseEnter: this.handleTooltipMouseEnter, onMouseLeave: this.handleTooltipMouseLeave, role: "tooltip", "aria-live": "polite" }, this.closable && (h("ui-button", { key: 'e384dec2ebdc9fd7b7087ff9c4bf4c4ae3a98ae7', variant: "ghost", class: "tooltip-close", onClick: this.handleClose, ariaLabel: "Close tooltip", icon: "x", iconLibrary: "lucide", iconOnly: true, size: "sm" })), this.showHeader && (h("div", { key: 'b00552306d674fce854ea272c4e2aef14cf5db20', class: "tooltip-header" }, h("div", { key: 'cc0e8fc44d3af24ad68b4373f3b6e69a85fbf133', ref: el => this.headerSlotTarget = el }))), h("div", { key: '907a00f18eba5a5f75b719addfcf28d02775b33d', class: "tooltip-content" }, this.loading ? (h("div", { class: "tooltip-loading-spinner" }, h("ui-icon", { name: "loader", library: "lucide", spin: true }), h("span", null, "Loading..."))) : (this.html ? (h("div", { innerHTML: sanitizeHTML(this.content) })) : (h("span", null, this.content))), h("div", { key: 'c164836ecfc1289304ba3ba58f650e6788b4c88c', class: "tooltip-slot-content", ref: el => this.defaultSlotTarget = el })), this.showFooter && (h("div", { key: '1e59e1c7bcd606f4dafbb9552b41820f86ff7e0b', class: "tooltip-footer" }, h("div", { key: '5822507a3c373caf240ad3fa1192985ad4e32325', ref: el => this.footerSlotTarget = el }))), this.arrow && h("div", { key: '93c2f3ad8b75d9d5107eefc0470c9a56202d265b', class: "tooltip-arrow" })));
|
|
674
|
+
return (h(Host, { key: 'a3b89e2ca5f7485b2472287927afb259da835c1f' }, h("div", { key: '3317d76132c0e01199f03c927539ba6d6b44bfbc', class: "tooltip-wrapper" }, h("slot", { key: '93a6facacc00058a53bb83de4e37e836741d7b42', name: "target" })), this.isVisible && tooltipContent, h("div", { key: 'a07f61c4fadf478ef647964e8b86f9bdc57299d8', class: "tooltip-slot-source", style: { display: 'none' }, "aria-hidden": "true" }, h("div", { key: '96b5c2be37eac9c5c6fb60e16d63cf46c294c540', ref: el => this.defaultSlotSource = el }, h("slot", { key: '7e13e89470a73981e412f5016fd7dd8ec00e2d03' })), h("div", { key: '75a180465f3bac9ce4a3c24dbeca4ab98dc4be5b', ref: el => this.headerSlotSource = el }, h("slot", { key: 'e79f03abfa7485a8336cf576ecaf04ed48c7203d', name: "header" })), h("div", { key: '2b74af20c38016fbeda92bae42c65bf4b365369d', ref: el => this.footerSlotSource = el }, h("slot", { key: '3ed95162a73fde60fea6a96b6a13de5beb4054de', name: "footer" })))));
|
|
675
675
|
}
|
|
676
676
|
static get is() { return "ui-tooltip"; }
|
|
677
677
|
static get encapsulation() { return "scoped"; }
|
|
@@ -772,7 +772,7 @@ export class Tooltip {
|
|
|
772
772
|
"mutable": false,
|
|
773
773
|
"complexType": {
|
|
774
774
|
"original": "TooltipVariant",
|
|
775
|
-
"resolved": "\"borderless\" | \"danger\" | \"dark\" | \"default\" | \"elevated\" | \"error\" | \"flat\" | \"ghost\" | \"glass\" | \"info\" | \"inverse\" | \"light\" | \"loading\" | \"neutral\" | \"none\" | \"outline\" | \"plain\" | \"primary\" | \"raised\" | \"secondary\" | \"soft\" | \"sovereign\" | \"success\" | \"surface\" | \"tertiary\" | \"warning\"",
|
|
775
|
+
"resolved": "\"black\" | \"borderless\" | \"danger\" | \"dark\" | \"default\" | \"elevated\" | \"error\" | \"flat\" | \"ghost\" | \"glass\" | \"info\" | \"inverse\" | \"light\" | \"loading\" | \"neutral\" | \"none\" | \"outline\" | \"plain\" | \"primary\" | \"raised\" | \"secondary\" | \"soft\" | \"sovereign\" | \"success\" | \"surface\" | \"tertiary\" | \"warning\" | \"white\"",
|
|
776
776
|
"references": {
|
|
777
777
|
"TooltipVariant": {
|
|
778
778
|
"location": "import",
|
|
@@ -270,7 +270,7 @@ export class TopBar {
|
|
|
270
270
|
"references": {
|
|
271
271
|
"TopBarAction": {
|
|
272
272
|
"location": "local",
|
|
273
|
-
"path": "C:/
|
|
273
|
+
"path": "C:/Naveen/PersonalRepo/atomicUILibrary/library/src/components/top-bar/top-bar.tsx",
|
|
274
274
|
"id": "src/components/top-bar/top-bar.tsx::TopBarAction"
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -296,7 +296,7 @@ export class TopBar {
|
|
|
296
296
|
"references": {
|
|
297
297
|
"UserMenuItem": {
|
|
298
298
|
"location": "local",
|
|
299
|
-
"path": "C:/
|
|
299
|
+
"path": "C:/Naveen/PersonalRepo/atomicUILibrary/library/src/components/top-bar/top-bar.tsx",
|
|
300
300
|
"id": "src/components/top-bar/top-bar.tsx::UserMenuItem"
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
--tl-radius: 12px;
|
|
29
29
|
--tl-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
30
|
-
--tl-active-gradient: linear-gradient(135deg, var(--
|
|
30
|
+
--tl-active-gradient: linear-gradient(135deg, var(--color-primary, #3b82f6) 0%, var(--color-primary-hover, #6366f1) 100%);
|
|
31
31
|
--tl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
transition: var(--tl-transition);
|
|
82
82
|
}
|
|
83
83
|
.transfer-list-box:focus-within {
|
|
84
|
-
border-color: var(--
|
|
84
|
+
border-color: var(--color-primary, #3b82f6);
|
|
85
85
|
box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb, 59, 130, 246), 0.1), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
.action-btn:hover {
|
|
118
118
|
background: rgba(0, 0, 0, 0.05);
|
|
119
|
-
color: var(--
|
|
119
|
+
color: var(--color-primary, #3b82f6);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.header-title {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
.header-count.pop-anim {
|
|
138
138
|
transform: scale(1.4);
|
|
139
|
-
background: var(--
|
|
139
|
+
background: var(--color-primary, #3b82f6);
|
|
140
140
|
color: var(--text-standard, #ffffff);
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
transition: var(--tl-transition);
|
|
160
160
|
}
|
|
161
161
|
.transfer-search input:focus {
|
|
162
|
-
border-color: var(--
|
|
162
|
+
border-color: var(--color-primary, #3b82f6);
|
|
163
163
|
background: var(--bg-primary, #ffffff);
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
}
|
|
199
199
|
.transfer-item.selected {
|
|
200
200
|
background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.06);
|
|
201
|
-
color: var(--
|
|
201
|
+
color: var(--color-primary, #3b82f6);
|
|
202
202
|
font-weight: 500;
|
|
203
203
|
}
|
|
204
204
|
.transfer-item.selected::after {
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.selected-check {
|
|
227
|
-
color: var(--
|
|
227
|
+
color: var(--color-primary, #3b82f6);
|
|
228
228
|
opacity: 0.8;
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
transform: translate(-50%, -50%);
|
|
306
306
|
}
|
|
307
307
|
.transfer-controls.resizable-divider:hover::after {
|
|
308
|
-
background: var(--
|
|
308
|
+
background: var(--color-primary, #3b82f6);
|
|
309
309
|
}
|
|
310
310
|
.transfer-controls.resizable-divider .control-buttons {
|
|
311
311
|
pointer-events: auto;
|
|
@@ -332,8 +332,8 @@
|
|
|
332
332
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
|
|
333
333
|
}
|
|
334
334
|
.transfer-button:hover:not(:disabled) {
|
|
335
|
-
border-color: var(--
|
|
336
|
-
color: var(--
|
|
335
|
+
border-color: var(--color-primary, #3b82f6);
|
|
336
|
+
color: var(--color-primary, #3b82f6);
|
|
337
337
|
transform: scale(1.1);
|
|
338
338
|
box-shadow: 0 4px 12px rgba(var(--color-primary-rgb, 59, 130, 246), 0.15);
|
|
339
339
|
}
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
|
|
375
375
|
.transfer-item.dragging {
|
|
376
376
|
opacity: 0.4;
|
|
377
|
-
border: 1px dashed var(--
|
|
377
|
+
border: 1px dashed var(--color-primary, #3b82f6);
|
|
378
378
|
transform: scale(0.98);
|
|
379
379
|
}
|
|
380
380
|
|
|
@@ -408,11 +408,11 @@
|
|
|
408
408
|
}
|
|
409
409
|
.transfer-table tr.selected {
|
|
410
410
|
background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.06);
|
|
411
|
-
color: var(--
|
|
411
|
+
color: var(--color-primary, #3b82f6);
|
|
412
412
|
}
|
|
413
413
|
.transfer-table tr.selected td {
|
|
414
414
|
font-weight: 500;
|
|
415
|
-
color: var(--
|
|
415
|
+
color: var(--color-primary, #3b82f6);
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
/* Tree Mode */
|
|
@@ -476,17 +476,17 @@ export class TransferList {
|
|
|
476
476
|
'transfer-container': true,
|
|
477
477
|
'is-vertical': isVertical,
|
|
478
478
|
'variant-glass': this.variant === 'glass'
|
|
479
|
-
} }, h("div", { key: '1de4ee40158e28ed1d71c20a0a2a28d73bf405ad', class: "transfer-section source", style: !isVertical && this.resizable ? { flex: `0 0 ${this.dividerPosition}%` } : undefined }, this.renderList('source')), h("div", { key: 'b36335fd3bb837fc5432e4a2cac969524c24c60b', class: { 'transfer-controls': true, 'resizable-divider': this.resizable && !isVertical }, onMouseDown: this.handleDividerMouseDown }, h("div", { key: 'e5e630b8898a19837a232ec24522237fa9b1ca29', class: "control-buttons" }, h("ui-button", { key: '723baf7ebada286062844d9b1bc429f5d8d66312', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "play-skip-back" : "play-skip-forward", iconLibrary: "lucide", iconStyle: { transform: isVertical ? 'rotate(90deg)' : '' }, disabled: this.disabled || this.getSourceItems().length === 0, onClick: this.moveAllToTarget, ariaLabel: "Move All Right", class: "transfer-button" }), h("ui-button", { key: 'f389d40c0e38846515a302d15523b896a3df6c3e', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "chevron-down" : "chevron-right", iconLibrary: "lucide", disabled: this.disabled || this.sourceSelected.size === 0, onClick: this.moveToTarget, ariaLabel: "Move Selected Right", class: "transfer-button" }), h("ui-button", { key: '0c7e67f6871a9327a4c95798650dee907448b496', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "chevron-up" : "chevron-left", iconLibrary: "lucide", disabled: this.disabled || this.targetSelected.size === 0, onClick: this.moveToSource, ariaLabel: "Move Selected Left", class: "transfer-button" }), h("ui-button", { key: 'e6afc1e4a60648e63e4c02a413e359f75a743583', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "play-skip-forward" : "play-skip-back", iconLibrary: "lucide", iconStyle: { transform: isVertical ? 'rotate(90deg)' : '' }, disabled: this.disabled || this.getTargetItems().length === 0, onClick: this.moveAllToSource, ariaLabel: "Move All Left", class: "transfer-button" }))), h("div", { key: '4626e6393402ecbf3e5f4c919081ac690105a7f8', class: "transfer-section target", style: !isVertical && this.resizable ? { flex: '1' } : undefined }, this.renderList('target')
|
|
479
|
+
} }, h("div", { key: '1de4ee40158e28ed1d71c20a0a2a28d73bf405ad', class: "transfer-section source", style: !isVertical && this.resizable ? { flex: `0 0 ${this.dividerPosition}%` } : undefined }, this.renderList('source')), h("div", { key: 'b36335fd3bb837fc5432e4a2cac969524c24c60b', class: { 'transfer-controls': true, 'resizable-divider': this.resizable && !isVertical }, onMouseDown: this.handleDividerMouseDown }, h("div", { key: 'e5e630b8898a19837a232ec24522237fa9b1ca29', class: "control-buttons" }, h("ui-button", { key: '723baf7ebada286062844d9b1bc429f5d8d66312', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "play-skip-back" : "play-skip-forward", iconLibrary: "lucide", iconStyle: { transform: isVertical ? 'rotate(90deg)' : '' }, disabled: this.disabled || this.getSourceItems().length === 0, onClick: this.moveAllToTarget, ariaLabel: "Move All Right", class: "transfer-button" }), h("ui-button", { key: 'f389d40c0e38846515a302d15523b896a3df6c3e', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "chevron-down" : "chevron-right", iconLibrary: "lucide", disabled: this.disabled || this.sourceSelected.size === 0, onClick: this.moveToTarget, ariaLabel: "Move Selected Right", class: "transfer-button" }), h("ui-button", { key: '0c7e67f6871a9327a4c95798650dee907448b496', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "chevron-up" : "chevron-left", iconLibrary: "lucide", disabled: this.disabled || this.targetSelected.size === 0, onClick: this.moveToSource, ariaLabel: "Move Selected Left", class: "transfer-button" }), h("ui-button", { key: 'e6afc1e4a60648e63e4c02a413e359f75a743583', variant: "ghost", size: "md", iconOnly: true, icon: isVertical ? "play-skip-forward" : "play-skip-back", iconLibrary: "lucide", iconStyle: { transform: isVertical ? 'rotate(90deg)' : '' }, disabled: this.disabled || this.getTargetItems().length === 0, onClick: this.moveAllToSource, ariaLabel: "Move All Left", class: "transfer-button" }))), h("div", { key: '4626e6393402ecbf3e5f4c919081ac690105a7f8', class: "transfer-section target", style: !isVertical && this.resizable ? { flex: '1' } : undefined }, this.renderList('target')), this.contextMenu.visible && (h("div", { key: 'a90fd262a82990352a56a6dfef39f1d98bb44f0e', class: "transfer-context-menu", style: { top: `${this.contextMenu.y}px`, left: `${this.contextMenu.x}px` } }, h("div", { key: '6fd6a2550ad514d55c4affdf071c8d7f2ffd4946', class: "menu-item", onClick: () => {
|
|
480
480
|
if (this.contextMenu.side === 'source')
|
|
481
481
|
this.moveToTarget();
|
|
482
482
|
else
|
|
483
483
|
this.moveToSource();
|
|
484
|
-
} }, h("ui-icon", { key: '
|
|
484
|
+
} }, h("ui-icon", { key: '86eecd5a3ed23ce8f104c425d7a04925f6e2af04', name: "send", library: "lucide", size: "14" }), " Move to ", this.contextMenu.side === 'source' ? 'Selected' : 'Available'), h("div", { key: '33d77968be2dcbd35f62ea53e544a0645c1dc2a0', class: "menu-item danger", onClick: () => {
|
|
485
485
|
if (this.contextMenu.side === 'source')
|
|
486
486
|
this.sourceSelected.delete(this.contextMenu.item.key);
|
|
487
487
|
else
|
|
488
488
|
this.targetSelected.delete(this.contextMenu.item.key);
|
|
489
|
-
} }, h("ui-icon", { key: '
|
|
489
|
+
} }, h("ui-icon", { key: '7a7026114825cc48d13f34906387eb8a13c7e771', name: "x", library: "lucide", size: "14" }), " Deselect"))))));
|
|
490
490
|
}
|
|
491
491
|
renderList(side) {
|
|
492
492
|
const items = side === 'source' ? this.getSourceItems() : this.getTargetItems();
|
|
@@ -519,7 +519,7 @@ export class TransferList {
|
|
|
519
519
|
else {
|
|
520
520
|
content = this.renderListView(displayItems, selected, side);
|
|
521
521
|
}
|
|
522
|
-
return (h("div", { class: "transfer-list-box" }, h("div", { class: "transfer-list-header" }, this.showSelectAll && this.mode !== 'tree' && (h("ui-checkbox", { checked: allSelected, indeterminate: indeterminate, onCheckboxChange: (e) => this.toggleSelectAll(side, e.detail.checked), disabled: this.disabled || filteredItems.length === 0, size: "sm" })), h("span", { class: "header-title" }, title), this.sortable && (h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: order === 'asc' ? "arrow-up-z-a" : "arrow-down-a-z", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.toggleSort(side), ariaLabel: "Toggle Sort" })), h("div", { class: "header-actions" }, h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "check-check", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.bulkAction(side, 'all'), ariaLabel: "Select All Search Results" }), h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "x", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.bulkAction(side, 'none'), ariaLabel: "Clear Selection" }), h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "list-restart", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.bulkAction(side, 'invert'), ariaLabel: "Invert Selection" })), h("span", { class: { 'header-count': true, 'pop-anim': side === 'source' ? this.badgeAnimating.source : this.badgeAnimating.target } }, filteredItems.filter(i => selected.has(i.key)).length, "/", filteredItems.length)), this.searchable && (h("div", { class: "transfer-search" }, h("ui-input", { type: "text", placeholder: this.searchPlaceholder, value: search, onInputChange: (e) => {
|
|
522
|
+
return (h("div", { class: "transfer-list-box" }, h("div", { class: "transfer-list-header" }, this.showSelectAll && this.mode !== 'tree' && (h("ui-checkbox", { checked: allSelected, indeterminate: indeterminate, onCheckboxChange: (e) => this.toggleSelectAll(side, e.detail.checked), disabled: this.disabled || filteredItems.length === 0, size: "sm" })), h("span", { class: "header-title" }, title), this.sortable && (h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: order === 'asc' ? "arrow-up-z-a" : "arrow-down-a-z", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.toggleSort(side), ariaLabel: "Toggle Sort" })), h("div", { class: "header-actions" }, side === 'target' && this.allowReorder && (h("div", { class: "header-reorder-actions", style: { display: 'flex', gap: '4px', marginRight: '8px', paddingRight: '8px', borderRight: '1px solid var(--ui-border-default, var(--border-default, #e5e7eb))' } }, h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "arrow-up", iconLibrary: "lucide", iconSize: "14px", disabled: this.targetSelected.size === 0, onClick: () => this.reorder('up'), ariaLabel: "Move Up" }), h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "arrow-down", iconLibrary: "lucide", iconSize: "14px", disabled: this.targetSelected.size === 0, onClick: () => this.reorder('down'), ariaLabel: "Move Down" }))), h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "check-check", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.bulkAction(side, 'all'), ariaLabel: "Select All Search Results" }), h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "x", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.bulkAction(side, 'none'), ariaLabel: "Clear Selection" }), h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "list-restart", iconLibrary: "lucide", iconSize: "14px", onClick: () => this.bulkAction(side, 'invert'), ariaLabel: "Invert Selection" })), h("span", { class: { 'header-count': true, 'pop-anim': side === 'source' ? this.badgeAnimating.source : this.badgeAnimating.target } }, filteredItems.filter(i => selected.has(i.key)).length, "/", filteredItems.length)), this.searchable && (h("div", { class: "transfer-search" }, h("ui-input", { type: "text", placeholder: this.searchPlaceholder, value: search, onInputChange: (e) => {
|
|
523
523
|
const val = e.detail;
|
|
524
524
|
if (side === 'source') {
|
|
525
525
|
this.sourceSearch = val;
|
|
@@ -30,17 +30,19 @@
|
|
|
30
30
|
/* Core Color Tokens (Light Theme Default) */
|
|
31
31
|
--tree-bg: var(--bg-primary, #ffffff);
|
|
32
32
|
--tree-text: var(--text-primary, #1f2937);
|
|
33
|
-
--tree-text-muted: var(--
|
|
33
|
+
--tree-text-muted: var(--text-muted, #6b7280);
|
|
34
34
|
--tree-border-color: var(--border-default, #e5e7eb);
|
|
35
|
-
--tree-primary: var(--color-
|
|
36
|
-
--tree-primary-50: rgba(var(--color-
|
|
37
|
-
--tree-primary-100: rgba(var(--color-
|
|
38
|
-
--tree-primary-200: rgba(var(--color-
|
|
39
|
-
--tree-
|
|
35
|
+
--tree-primary: var(--color-primary, #3b82f6);
|
|
36
|
+
--tree-primary-50: rgba(var(--color-primary-rgb, 59, 130, 246), 0.08);
|
|
37
|
+
--tree-primary-100: rgba(var(--color-primary-rgb, 59, 130, 246), 0.15);
|
|
38
|
+
--tree-primary-200: rgba(var(--color-primary-rgb, 59, 130, 246), 0.25);
|
|
39
|
+
--tree-black: #111827;
|
|
40
|
+
--tree-white: #ffffff;
|
|
41
|
+
--tree-muted: var(--text-muted, #9ca3af);
|
|
40
42
|
--tree-node-hover-bg: rgba(0, 0, 0, 0.02);
|
|
41
|
-
--tree-line-color-default:
|
|
43
|
+
--tree-line-color-default: var(--tree-text);
|
|
42
44
|
--tree-error: var(--color-danger, #ef4444);
|
|
43
|
-
--tree-info: var(--color-
|
|
45
|
+
--tree-info: var(--color-info, #3b82f6);
|
|
44
46
|
--tree-success: var(--color-success, #10b981);
|
|
45
47
|
--tree-warning: var(--color-warning, #f59e0b);
|
|
46
48
|
}
|
|
@@ -54,11 +56,11 @@
|
|
|
54
56
|
}
|
|
55
57
|
.tree-container.tree-theme-dark {
|
|
56
58
|
--tree-bg: var(--bg-primary, #1f2937);
|
|
57
|
-
--tree-text: var(--
|
|
58
|
-
--tree-text-muted: var(--
|
|
59
|
+
--tree-text: var(--tree-white);
|
|
60
|
+
--tree-text-muted: var(--text-muted, #9ca3af);
|
|
59
61
|
--tree-border-color: var(--border-default, #374151);
|
|
60
62
|
--tree-node-hover-bg: rgba(255, 255, 255, 0.05);
|
|
61
|
-
--tree-line-color-default:
|
|
63
|
+
--tree-line-color-default: var(--tree-text);
|
|
62
64
|
background: var(--tree-bg);
|
|
63
65
|
color: var(--tree-text);
|
|
64
66
|
}
|
|
@@ -238,13 +240,13 @@
|
|
|
238
240
|
width: 24px;
|
|
239
241
|
height: 24px;
|
|
240
242
|
flex-shrink: 0;
|
|
241
|
-
color: var(--tree-text
|
|
243
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
242
244
|
font-size: 11px;
|
|
243
245
|
cursor: pointer;
|
|
244
246
|
z-index: 2;
|
|
245
247
|
}
|
|
246
248
|
.tree-expand-icon:hover {
|
|
247
|
-
color: var(--tree-
|
|
249
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
248
250
|
}
|
|
249
251
|
.tree-expand-icon {
|
|
250
252
|
margin-right: 8px;
|
|
@@ -287,7 +289,10 @@
|
|
|
287
289
|
height: 20px;
|
|
288
290
|
flex-shrink: 0;
|
|
289
291
|
font-size: 16px;
|
|
290
|
-
color: var(--tree-
|
|
292
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
293
|
+
}
|
|
294
|
+
.tree-node-icon ui-icon {
|
|
295
|
+
color: inherit;
|
|
291
296
|
}
|
|
292
297
|
.tree-node-icon.tree-node-icon-spacer {
|
|
293
298
|
visibility: hidden;
|
|
@@ -311,6 +316,7 @@
|
|
|
311
316
|
position: relative;
|
|
312
317
|
z-index: 2;
|
|
313
318
|
cursor: pointer;
|
|
319
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
314
320
|
transition: background-color 0.2s ease;
|
|
315
321
|
}
|
|
316
322
|
.tree-node-content:hover {
|
|
@@ -329,11 +335,11 @@
|
|
|
329
335
|
text-overflow: ellipsis;
|
|
330
336
|
white-space: nowrap;
|
|
331
337
|
font-size: 14px;
|
|
332
|
-
color: var(--tree-text);
|
|
338
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
333
339
|
}
|
|
334
340
|
|
|
335
341
|
.tree-theme-dark .tree-node-label {
|
|
336
|
-
color: var(--tree-text);
|
|
342
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
337
343
|
}
|
|
338
344
|
|
|
339
345
|
.tree-node-spinner {
|
|
@@ -675,7 +681,7 @@
|
|
|
675
681
|
box-shadow: 0 0 0 3px var(--tree-primary-100);
|
|
676
682
|
}
|
|
677
683
|
.tree-variant-modern-green .tree-node-icon {
|
|
678
|
-
color:
|
|
684
|
+
color: inherit;
|
|
679
685
|
}
|
|
680
686
|
.tree-variant-modern-green .tree-expand-icon {
|
|
681
687
|
color: var(--tree-primary);
|
|
@@ -948,7 +954,7 @@
|
|
|
948
954
|
/* ── Description ─────────────────────────────────────────────────────────── */
|
|
949
955
|
.tree-node-description {
|
|
950
956
|
font-size: 11px;
|
|
951
|
-
color: var(--tree-text
|
|
957
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
952
958
|
white-space: nowrap;
|
|
953
959
|
overflow: hidden;
|
|
954
960
|
text-overflow: ellipsis;
|
|
@@ -970,7 +976,7 @@
|
|
|
970
976
|
.tree-node-lock {
|
|
971
977
|
display: flex;
|
|
972
978
|
align-items: center;
|
|
973
|
-
color: var(--tree-text
|
|
979
|
+
color: var(--tree-node-content-color, var(--tree-text));
|
|
974
980
|
flex-shrink: 0;
|
|
975
981
|
margin-left: 4px;
|
|
976
982
|
}
|
|
@@ -1020,10 +1026,10 @@
|
|
|
1020
1026
|
--tree-primary: var(--color-warning, #f59e0b);
|
|
1021
1027
|
}
|
|
1022
1028
|
.tree-variant-directory .tree-node-branch > .tree-node-content .tree-node-icon ui-icon {
|
|
1023
|
-
color:
|
|
1029
|
+
color: inherit;
|
|
1024
1030
|
}
|
|
1025
1031
|
.tree-variant-directory .tree-node-leaf > .tree-node-content .tree-node-icon ui-icon {
|
|
1026
|
-
color:
|
|
1032
|
+
color: inherit;
|
|
1027
1033
|
}
|
|
1028
1034
|
.tree-variant-directory .tree-node-selected > .tree-node-content {
|
|
1029
1035
|
background: rgba(var(--color-warning-rgb, 245, 158, 11), 0.08);
|
|
@@ -1180,6 +1186,14 @@
|
|
|
1180
1186
|
color: var(--tree-info);
|
|
1181
1187
|
}
|
|
1182
1188
|
|
|
1189
|
+
.tree-node-black > .tree-node-content .tree-node-label {
|
|
1190
|
+
color: var(--tree-black);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.tree-node-white > .tree-node-content .tree-node-label {
|
|
1194
|
+
color: var(--tree-white);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1183
1197
|
/* ── Transition for children collapse ────────────────────────────────────── */
|
|
1184
1198
|
.tree-animated .tree-children {
|
|
1185
1199
|
animation: treeSlideIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -669,6 +669,13 @@ export class Tree {
|
|
|
669
669
|
label.substring(idx + this.searchTerm.length),
|
|
670
670
|
];
|
|
671
671
|
}
|
|
672
|
+
getNodeVisualColor(node) {
|
|
673
|
+
if (node.color)
|
|
674
|
+
return `var(--tree-${node.color})`;
|
|
675
|
+
if (this.expandIconColor)
|
|
676
|
+
return this.expandIconColor;
|
|
677
|
+
return 'var(--tree-text)';
|
|
678
|
+
}
|
|
672
679
|
_renderExpandIcon(isExpanded, node) {
|
|
673
680
|
let iconName = '';
|
|
674
681
|
let style = {};
|
|
@@ -694,12 +701,10 @@ export class Tree {
|
|
|
694
701
|
break;
|
|
695
702
|
}
|
|
696
703
|
}
|
|
697
|
-
|
|
698
|
-
style.color = this.expandIconColor;
|
|
699
|
-
}
|
|
704
|
+
style.color = this.getNodeVisualColor(node);
|
|
700
705
|
return (h("div", { class: "tree-expand-icon", onClick: (e) => { e.stopPropagation(); this.internalNodes = this._toggleNode(node.id); } }, h("ui-icon", { name: iconName, library: library, size: this.expandIconSize, style: style })));
|
|
701
706
|
}
|
|
702
|
-
renderNode(node, level = 0, path = [], isLast = false, parentPath = [], index = 0, groupHasIcons = false) {
|
|
707
|
+
renderNode(node, level = 0, path = [], isLast = false, parentPath = [], index = 0, groupHasIcons = false, ancestorColors = []) {
|
|
703
708
|
const hasChildren = !!(node.children?.length);
|
|
704
709
|
const canExpand = hasChildren || (this.lazyLoad && node.isLeaf === false);
|
|
705
710
|
const isExpanded = !!node.expanded;
|
|
@@ -710,6 +715,10 @@ export class Tree {
|
|
|
710
715
|
const depth = level;
|
|
711
716
|
const baseWidth = this.connectorWidth || 1.8;
|
|
712
717
|
const selPathIds = this._selectionPathIds || new Set();
|
|
718
|
+
const nodeVisualColor = this.getNodeVisualColor(node);
|
|
719
|
+
// Determine the color for the branch coming out of this node
|
|
720
|
+
const nodeBranchColor = node.connectorColor || (node.color ? `var(--tree-${node.color})` : null) || this.connectorColor || 'var(--tree-line-color-default)';
|
|
721
|
+
const currentAncestorColors = [...ancestorColors, nodeBranchColor];
|
|
713
722
|
// SVG connectors
|
|
714
723
|
const connectors = [];
|
|
715
724
|
if (this.showLines && this.layout === 'tree' && depth > 0) {
|
|
@@ -719,7 +728,7 @@ export class Tree {
|
|
|
719
728
|
const segW = Math.max(0.6, baseWidth - i * 0.3);
|
|
720
729
|
const lx = i * this.indent + 12;
|
|
721
730
|
const isHL = selPathIds.has(currentPath[i + 1] ?? '');
|
|
722
|
-
const color =
|
|
731
|
+
const color = ancestorColors[i] || 'var(--tree-line-color-default)';
|
|
723
732
|
const opacity = this.connectorOpacity;
|
|
724
733
|
const showV = i < depth - 1 ? !parentPath[i + 1] : !isLast;
|
|
725
734
|
if (showV) {
|
|
@@ -762,11 +771,13 @@ export class Tree {
|
|
|
762
771
|
'aria-disabled': node.disabled ? 'true' : undefined,
|
|
763
772
|
tabindex: (this.focusedNodeId === node.id || (this.focusedNodeId === null && level === 0 && index === 0)) ? '0' : '-1',
|
|
764
773
|
};
|
|
765
|
-
const nodeContent = (h("div", { class: nodeClasses, key: node.id, "data-node-id": node.id, "data-depth": depth, style: { '--depth': String(depth) } }, this.layout === 'tree' && connectors, isDragOver && this.dragPosition === 'before' && h("div", { class: "tree-drop-indicator tree-drop-before-line" }), h("div", { class: "tree-node-content", style: this.layout === 'tree'
|
|
774
|
+
const nodeContent = (h("div", { class: nodeClasses, key: node.id, "data-node-id": node.id, "data-depth": depth, style: { '--depth': String(depth) } }, this.layout === 'tree' && connectors, isDragOver && this.dragPosition === 'before' && h("div", { class: "tree-drop-indicator tree-drop-before-line" }), h("div", { class: "tree-node-content", style: this.layout === 'tree'
|
|
775
|
+
? { paddingLeft: `${(depth + 1) * this.indent}px`, minHeight: `${this.nodeHeight}px`, '--tree-node-content-color': nodeVisualColor }
|
|
776
|
+
: { minHeight: `${this.nodeHeight}px`, '--tree-node-content-color': nodeVisualColor }, onClick: (e) => !isEditing && this.handleNodeClick(node, currentPath, e), onDblClick: () => this.inlineEdit && !node.disabled && this.startEditing(node), onContextMenu: (e) => this.handleContextMenu(node, e), draggable: this.enableDrag && !node.disabled, onDragStart: (e) => this.handleDragStart(node, e), onDragOver: (e) => this.handleDragOver(node, e), onDragLeave: (e) => this.handleDragLeave(e), onDrop: (e) => this.handleDrop(node, e), ...ariaAttrs }, this.expandable && canExpand
|
|
766
777
|
? this._renderExpandIcon(isExpanded, node)
|
|
767
|
-
: h("div", { class: "tree-expand-spacer" }), this.checkboxes && (h("div", { class: "tree-checkbox" }, h("ui-checkbox", { checked: !!node.checked, disabled: !!node.disabled, indeterminate: !!node.indeterminate, onCheckboxChange: (e) => this.handleCheckboxChange(node, e), size: "sm" }))), this.showAvatars && (node.avatar || node.avatarInitials) && (h("div", { class: "tree-node-avatar" }, node.avatar
|
|
778
|
+
: h("div", { class: "tree-expand-spacer" }), this.checkboxes && (h("div", { class: "tree-checkbox", onClick: (e) => e.stopPropagation(), onMouseDown: (e) => e.stopPropagation() }, h("ui-checkbox", { checked: !!node.checked, disabled: !!node.disabled, indeterminate: !!node.indeterminate, onCheckboxChange: (e) => this.handleCheckboxChange(node, e), size: "sm" }))), this.showAvatars && (node.avatar || node.avatarInitials) && (h("div", { class: "tree-node-avatar" }, node.avatar
|
|
768
779
|
? h("img", { src: node.avatar, alt: node.label })
|
|
769
|
-
: h("span", { class: `tree-node-avatar-initials tree-node-avatar-${node.color ?? 'primary'}` }, node.avatarInitials))), (nodeIcon || groupHasIcons) && (h("div", { class: `tree-node-icon${!nodeIcon ? ' tree-node-icon-spacer' : ''}` }, nodeIcon && !node.loading && (h("ui-icon", { name: nodeIcon, library: node.iconLibrary ?? this.iconLibrary, size: "16px"
|
|
780
|
+
: h("span", { class: `tree-node-avatar-initials tree-node-avatar-${node.color ?? 'primary'}` }, node.avatarInitials))), (nodeIcon || groupHasIcons) && (h("div", { class: `tree-node-icon${!nodeIcon ? ' tree-node-icon-spacer' : ''}` }, nodeIcon && !node.loading && (h("ui-icon", { name: nodeIcon, library: node.iconLibrary ?? this.iconLibrary, size: "16px" })), node.loading && h("ui-icon", { name: "loader-2", library: "lucide", spin: true, size: "16px" }))), h("div", { class: "tree-node-text-group" }, isEditing
|
|
770
781
|
? (h("ui-input", { class: "tree-edit-input", type: "text", value: this.editingValue, onInputChange: (e) => { this.editingValue = e.detail; }, onInputKeydown: (e) => {
|
|
771
782
|
if (e.detail.key === 'Enter')
|
|
772
783
|
this.commitEditing(node);
|
|
@@ -776,12 +787,12 @@ export class Tree {
|
|
|
776
787
|
}, onInputBlur: () => this.commitEditing(node), autoFocus: true, size: "sm", fullWidth: true }))
|
|
777
788
|
: h("div", { class: "tree-node-label" }, this.renderLabel(node.label ?? '')), node.description && !isEditing && h("div", { class: "tree-node-description" }, node.description)), node.tag && h("div", { class: "tree-node-tag" }, node.tag), node.badge && h("div", { class: `tree-node-badge tree-node-badge-${node.color ?? 'primary'}` }, node.badge), node.counter !== undefined && h("div", { class: "tree-node-counter" }, node.counter), node.locked && (h("div", { class: "tree-node-lock", title: node.lockTooltip ?? 'Locked' }, h("ui-icon", { name: "lock", library: "fontawesome", size: "12px" }))), this.showNodeActions && (node.actions?.length ?? 0) > 0 && (h("div", { class: "tree-node-actions" }, node.actions.map((action) => (h("ui-button", { variant: "ghost", size: "sm", class: `tree-action-btn${action.color ? ` tree-action-${action.color}` : ''}`, icon: action.icon, iconLibrary: action.library ?? this.iconLibrary, iconSize: "13px", ariaLabel: action.tooltip, disabled: !!action.disabled, onClick: (e) => { e.stopPropagation(); this.nodeAction.emit({ node, action: String(action.id ?? '') }); } })))))), isDragOver && this.dragPosition === 'after' && h("div", { class: "tree-drop-indicator tree-drop-after-line" }), canExpand && isExpanded && this.layout === 'tree' && (h("div", { class: `tree-children${isDragOver && this.dragPosition === 'inside' ? ' tree-children-drop-target' : ''}` }, hasChildren && node.children.map((child, idx) => {
|
|
778
789
|
const childHasIcons = node.children.some(c => c.icon || this.showIcons);
|
|
779
|
-
return this.renderNode(child, level + 1, currentPath, idx === node.children.length - 1, [...parentPath, isLast], idx, childHasIcons);
|
|
790
|
+
return this.renderNode(child, level + 1, currentPath, idx === node.children.length - 1, [...parentPath, isLast], idx, childHasIcons, currentAncestorColors);
|
|
780
791
|
})))));
|
|
781
792
|
if (this.layout === 'org-chart') {
|
|
782
793
|
return (h("div", { class: "tree-node-wrapper" }, nodeContent, canExpand && isExpanded && (h("div", { class: "tree-children" }, hasChildren && node.children.map((child, idx) => {
|
|
783
794
|
const childHasIcons = node.children.some(c => c.icon || this.showIcons);
|
|
784
|
-
return this.renderNode(child, level + 1, currentPath, idx === node.children.length - 1, [...parentPath, isLast], idx, childHasIcons);
|
|
795
|
+
return this.renderNode(child, level + 1, currentPath, idx === node.children.length - 1, [...parentPath, isLast], idx, childHasIcons, currentAncestorColors);
|
|
785
796
|
})))));
|
|
786
797
|
}
|
|
787
798
|
return nodeContent;
|
|
@@ -821,7 +832,7 @@ export class Tree {
|
|
|
821
832
|
'tree-selectable': this.selectable,
|
|
822
833
|
'tree-glow': this.showGlow,
|
|
823
834
|
};
|
|
824
|
-
return (h(Host, { key: '
|
|
835
|
+
return (h(Host, { key: '59147cb567d01f4e12449fa3cd109eca5210ee1f', class: cls, style: { '--tree-indent': `${this.indent}px`, '--tree-node-height': `${this.nodeHeight}px` }, onKeyDown: this.handleKeyDown, tabIndex: 0 }, h("div", { key: '6cb12a3325b553dd316b424e21aa022b99ce0874', class: "tree-inner", role: "tree", "aria-multiselectable": this.multiSelect ? 'true' : 'false' }, this.searchable && (h("div", { key: '8ad616baffd4342b933c0081ea7119ca980ecc3e', class: "tree-search" }, h("ui-icon", { key: 'eb797f0781e9a8327c8a8637c6e9a3a3ab311280', name: "search", library: "fontawesome", size: "13px", class: "tree-search-icon" }), h("ui-input", { key: '0aea765a1be6e7896a84515f9956e53203f3621a', type: "text", placeholder: "Search tree...", value: this.searchTerm, onInputChange: (e) => this.handleSearchInput(e), ariaLabel: "Search tree", size: "sm", fullWidth: true }), this.searchTerm && (h("ui-button", { key: 'ae8a8d96cd5652801b1a87dd736adf12225ed599', variant: "ghost", size: "sm", class: "tree-search-clear", icon: "times", iconLibrary: "fontawesome", iconSize: "11px", ariaLabel: "Clear search", onClick: () => { this.searchTerm = ''; } })))), this.undoRedoEnabled && (h("div", { key: '273b197684072616b1593a140f7f3e18d254c8e4', class: "tree-toolbar" }, h("ui-button", { key: 'd852d87dafa4ddf297d30d4abbc0fb33c535eeba', variant: "ghost", size: "sm", icon: "undo", iconLibrary: "fontawesome", iconSize: "13px", label: "Undo", ariaLabel: "Undo (Ctrl+Z)", disabled: !this.undoStack.length, onClick: () => this.undo() }), h("ui-button", { key: '3947cdc4e5d97a53f2fbeafdf6eaa1d2b17db732', variant: "ghost", size: "sm", icon: "redo", iconLibrary: "fontawesome", iconSize: "13px", label: "Redo", ariaLabel: "Redo (Ctrl+Shift+Z)", disabled: !this.redoStack.length, onClick: () => this.redo() }), h("div", { key: 'ed355126526964054489a73c2499dbc7a9ed4ac2', class: "tree-toolbar-sep" }), h("ui-button", { key: '782ebfa66fb49ecfa93b88d72d3b4f5b32063909', variant: "ghost", size: "sm", icon: "expand", iconLibrary: "fontawesome", iconSize: "13px", ariaLabel: "Expand all", onClick: () => this.expandAllNodes() }), h("ui-button", { key: '17b5a4ca2c4d8a8bc9789774b69a2495faec0b47', variant: "ghost", size: "sm", icon: "compress", iconLibrary: "fontawesome", iconSize: "13px", ariaLabel: "Collapse all", onClick: () => this.collapseAllNodes() }))), h("div", { key: '42a81f5678c64d660a61bece182cc9a58937448c', class: "tree-content", style: this.virtualScroll ? { height: `${this.virtualScrollHeight}px`, overflowY: 'auto' } : {}, onScroll: () => this.virtualScroll && this.el.forceUpdate() }, this.virtualScroll && this.layout === 'tree' ? ((() => {
|
|
825
836
|
const visibleNodes = this._getVisibleNodes(filtered);
|
|
826
837
|
const scrollTop = this.el.shadowRoot?.querySelector('.tree-content')?.scrollTop || 0;
|
|
827
838
|
const startIndex = Math.max(0, Math.floor(scrollTop / this.nodeHeight) - 2);
|
|
@@ -829,10 +840,14 @@ export class Tree {
|
|
|
829
840
|
return (h("div", { class: "tree-virtual-scroller", style: { height: `${visibleNodes.length * this.nodeHeight}px`, position: 'relative' } }, h("div", { class: "tree-virtual-offset", style: { transform: `translateY(${startIndex * this.nodeHeight}px)` } }, visibleNodes.slice(startIndex, endIndex).map((node, _idx) => {
|
|
830
841
|
const path = this._findPath(node.id, this.internalNodes) || [];
|
|
831
842
|
const isLast = false; // Hard to determine in flat list without extra metadata
|
|
832
|
-
|
|
843
|
+
const ancestorColors = path.map(pid => {
|
|
844
|
+
const pNode = this._findNode(pid, this.internalNodes);
|
|
845
|
+
return pNode?.connectorColor || (pNode?.color ? `var(--tree-${pNode.color})` : null) || this.connectorColor || 'var(--tree-line-color-default)';
|
|
846
|
+
});
|
|
847
|
+
return this.renderNode(node, path.length - 1, path.slice(0, -1), isLast, [], 0, false, ancestorColors);
|
|
833
848
|
}))));
|
|
834
849
|
})()) : (filtered.length > 0
|
|
835
|
-
? filtered.map((node, idx) => this.renderNode(node, 0, [], idx === filtered.length - 1, [], idx, topHasIcons))
|
|
850
|
+
? filtered.map((node, idx) => this.renderNode(node, 0, [], idx === filtered.length - 1, [], idx, topHasIcons, []))
|
|
836
851
|
: (h("div", { class: "tree-empty" }, h("ui-icon", { name: "folder-open", library: "fontawesome", size: "40px" }), h("p", null, this.searchTerm ? 'No results found' : 'No items')))))), this.renderContextMenu()));
|
|
837
852
|
}
|
|
838
853
|
static get is() { return "ui-tree"; }
|