atomicuilibrary 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/cjs/category-section.cjs.entry.js +30 -0
- package/dist/cjs/component-size-DsYFUZcz.js +29 -0
- package/dist/cjs/dom-oP1E4Rd3.js +267 -0
- package/dist/cjs/event-bus-B6M2f8CQ.js +23 -0
- package/dist/cjs/exploration-project-tailwind.cjs.js +24 -0
- package/dist/cjs/focus-trap-i9T6oXLc.js +139 -0
- package/dist/cjs/index-ClkOYpT8.js +2275 -0
- package/dist/cjs/index.cjs.js +260 -0
- package/dist/cjs/layout-manager.cjs.entry.js +616 -0
- package/dist/cjs/library-card.cjs.entry.js +63 -0
- package/dist/cjs/lm-container_2.cjs.entry.js +79 -0
- package/dist/cjs/lm-panel_3.cjs.entry.js +108 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/my-component.cjs.entry.js +33 -0
- package/dist/cjs/my-step.cjs.entry.js +29 -0
- package/dist/cjs/nav-bar.cjs.entry.js +247 -0
- package/dist/cjs/security-E1JcwxGc.js +1547 -0
- package/dist/cjs/smart-step.cjs.entry.js +47 -0
- package/dist/cjs/timeline-item.cjs.entry.js +29 -0
- package/dist/cjs/ui-accordion_10.cjs.entry.js +5733 -0
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2684 -0
- package/dist/cjs/ui-anchor.cjs.entry.js +558 -0
- package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +285 -0
- package/dist/cjs/ui-aside-panel.cjs.entry.js +638 -0
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +634 -0
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +56 -0
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +201 -0
- package/dist/cjs/ui-callout-banner.cjs.entry.js +291 -0
- package/dist/cjs/ui-card.cjs.entry.js +411 -0
- package/dist/cjs/ui-carousel.cjs.entry.js +547 -0
- package/dist/cjs/ui-checkbox-group.cjs.entry.js +330 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +260 -0
- package/dist/cjs/ui-code-editor.cjs.entry.js +961 -0
- package/dist/cjs/ui-code-preview.cjs.entry.js +315 -0
- package/dist/cjs/ui-color-controller.cjs.entry.js +150 -0
- package/dist/cjs/ui-color-picker.cjs.entry.js +658 -0
- package/dist/cjs/ui-command-palette.cjs.entry.js +178 -0
- package/dist/cjs/ui-dialog-box.cjs.entry.js +1808 -0
- package/dist/cjs/ui-dialog-content.cjs.entry.js +31 -0
- package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +193 -0
- package/dist/cjs/ui-divider.cjs.entry.js +481 -0
- package/dist/cjs/ui-dock-host.cjs.entry.js +128 -0
- package/dist/cjs/ui-dock.cjs.entry.js +221 -0
- package/dist/cjs/ui-drag-drop.cjs.entry.js +172 -0
- package/dist/cjs/ui-dropdown_2.cjs.entry.js +1552 -0
- package/dist/cjs/ui-empty-state.cjs.entry.js +398 -0
- package/dist/cjs/ui-fab-item.cjs.entry.js +39 -0
- package/dist/cjs/ui-fab.cjs.entry.js +277 -0
- package/dist/cjs/ui-file-upload.cjs.entry.js +418 -0
- package/dist/cjs/ui-horizontal-nav.cjs.entry.js +135 -0
- package/dist/cjs/ui-image-button.cjs.entry.js +67 -0
- package/dist/cjs/ui-input-pair.cjs.entry.js +44 -0
- package/dist/cjs/ui-knob.cjs.entry.js +447 -0
- package/dist/cjs/ui-library.cjs.entry.js +134 -0
- package/dist/cjs/ui-list-group_2.cjs.entry.js +586 -0
- package/dist/cjs/ui-list.cjs.entry.js +732 -0
- package/dist/cjs/ui-masonry.cjs.entry.js +478 -0
- package/dist/cjs/ui-meter-group.cjs.entry.js +173 -0
- package/dist/cjs/ui-navigation-item.cjs.entry.js +104 -0
- package/dist/cjs/ui-number-input.cjs.entry.js +191 -0
- package/dist/cjs/ui-otp-input.cjs.entry.js +246 -0
- package/dist/cjs/ui-pagination_3.cjs.entry.js +1621 -0
- package/dist/cjs/ui-panel.cjs.entry.js +614 -0
- package/dist/cjs/ui-pattern-input.cjs.entry.js +278 -0
- package/dist/cjs/ui-popover.cjs.entry.js +517 -0
- package/dist/cjs/ui-progress.cjs.entry.js +516 -0
- package/dist/cjs/ui-radio-group.cjs.entry.js +205 -0
- package/dist/cjs/ui-radio.cjs.entry.js +206 -0
- package/dist/cjs/ui-range-slider.cjs.entry.js +637 -0
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +484 -0
- package/dist/cjs/ui-scroll-top.cjs.entry.js +459 -0
- package/dist/cjs/ui-smart-context-menu.cjs.entry.js +376 -0
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +565 -0
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +137 -0
- package/dist/cjs/ui-snackbar.cjs.entry.js +863 -0
- package/dist/cjs/ui-speed-dial.cjs.entry.js +520 -0
- package/dist/cjs/ui-speedometer.cjs.entry.js +428 -0
- package/dist/cjs/ui-splitter.cjs.entry.js +282 -0
- package/dist/cjs/ui-step.cjs.entry.js +30 -0
- package/dist/cjs/ui-stepper.cjs.entry.js +640 -0
- package/dist/cjs/ui-switch.cjs.entry.js +405 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +703 -0
- package/dist/cjs/ui-tag.cjs.entry.js +299 -0
- package/dist/cjs/ui-timeline.cjs.entry.js +267 -0
- package/dist/cjs/ui-timer.cjs.entry.js +502 -0
- package/dist/cjs/ui-toolbar.cjs.entry.js +619 -0
- package/dist/cjs/ui-tooltip.cjs.entry.js +697 -0
- package/dist/cjs/ui-top-bar.cjs.entry.js +121 -0
- package/dist/cjs/ui-transfer-list.cjs.entry.js +592 -0
- package/dist/cjs/ui-tree.cjs.entry.js +874 -0
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +1201 -0
- package/dist/cjs/utils-DVZ6gul6.js +26 -0
- package/dist/collection/assets/js/component-config.js +41 -0
- package/dist/collection/assets/js/demo-loader.js +147 -0
- package/dist/collection/assets/js/demo-nav.js +273 -0
- package/dist/collection/assets/js/demos/about-demo.js +60 -0
- package/dist/collection/assets/js/demos/accordion-demo.js +1954 -0
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +2952 -0
- package/dist/collection/assets/js/demos/anchor-demo.js +527 -0
- package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +174 -0
- package/dist/collection/assets/js/demos/aside-panel-demo.js +1109 -0
- package/dist/collection/assets/js/demos/avatar-demo.js +508 -0
- package/dist/collection/assets/js/demos/badge-demo.js +620 -0
- package/dist/collection/assets/js/demos/breadcrumb-demo.js +365 -0
- package/dist/collection/assets/js/demos/button-demo.js +1223 -0
- package/dist/collection/assets/js/demos/button-toggle-demo.js +978 -0
- package/dist/collection/assets/js/demos/callout-banner-demo.js +366 -0
- package/dist/collection/assets/js/demos/card-demo.js +427 -0
- package/dist/collection/assets/js/demos/carousel-demo.js +360 -0
- package/dist/collection/assets/js/demos/checkbox-demo.js +489 -0
- package/dist/collection/assets/js/demos/code-preview-demo.js +216 -0
- package/dist/collection/assets/js/demos/color-picker-demo.js +117 -0
- package/dist/collection/assets/js/demos/command-palette-demo.js +105 -0
- package/dist/collection/assets/js/demos/complex-form-demo.js +45 -0
- package/dist/collection/assets/js/demos/context-menu-data.js +436 -0
- package/dist/collection/assets/js/demos/context-menu-demo.js +829 -0
- package/dist/collection/assets/js/demos/dashboard-demo.js +5 -0
- package/dist/collection/assets/js/demos/dialog-demo-temp.js +411 -0
- package/dist/collection/assets/js/demos/dialog-demo.js +2567 -0
- package/dist/collection/assets/js/demos/divider-demo.js +853 -0
- package/dist/collection/assets/js/demos/dock-demo.js +422 -0
- package/dist/collection/assets/js/demos/dock-host-init.js +117 -0
- package/dist/collection/assets/js/demos/dock-host-playground.js +59 -0
- package/dist/collection/assets/js/demos/documentation-demo.js +34 -0
- package/dist/collection/assets/js/demos/drag-drop-demo.js +132 -0
- package/dist/collection/assets/js/demos/dropdown-demo.js +1410 -0
- package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +18 -0
- package/dist/collection/assets/js/demos/empty-state-demo.js +580 -0
- package/dist/collection/assets/js/demos/fab-demo.js +374 -0
- package/dist/collection/assets/js/demos/file-upload-demo.js +171 -0
- package/dist/collection/assets/js/demos/home-components.js +750 -0
- package/dist/collection/assets/js/demos/home-demo.js +441 -0
- package/dist/collection/assets/js/demos/horizontal-nav-demo.js +277 -0
- package/dist/collection/assets/js/demos/icon-demo.js +380 -0
- package/dist/collection/assets/js/demos/input-demo.js +1932 -0
- package/dist/collection/assets/js/demos/knob-demo.js +570 -0
- package/dist/collection/assets/js/demos/layout-manager-demo.js +918 -0
- package/dist/collection/assets/js/demos/list-demo.js +1402 -0
- package/dist/collection/assets/js/demos/loader-demo.js +453 -0
- package/dist/collection/assets/js/demos/meter-group-demo.js +499 -0
- package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +924 -0
- package/dist/collection/assets/js/demos/my-profile-demo.js +237 -0
- package/dist/collection/assets/js/demos/nav-bar-demo.js +187 -0
- package/dist/collection/assets/js/demos/number-input-demo.js +242 -0
- package/dist/collection/assets/js/demos/overview-demo.js +11 -0
- package/dist/collection/assets/js/demos/pagination-demo.js +1042 -0
- package/dist/collection/assets/js/demos/panel-demo.js +789 -0
- package/dist/collection/assets/js/demos/pattern-input-demo.js +241 -0
- package/dist/collection/assets/js/demos/popover-demo.js +882 -0
- package/dist/collection/assets/js/demos/progress-demo.js +462 -0
- package/dist/collection/assets/js/demos/radio-demo.js +413 -0
- package/dist/collection/assets/js/demos/range-slider-demo.js +1217 -0
- package/dist/collection/assets/js/demos/rating-demo.js +383 -0
- package/dist/collection/assets/js/demos/scroll-top-demo.js +353 -0
- package/dist/collection/assets/js/demos/skeleton-demo.js +490 -0
- package/dist/collection/assets/js/demos/skeleton-performance-demo.js +26 -0
- package/dist/collection/assets/js/demos/smart-dialog-demo.js +552 -0
- package/dist/collection/assets/js/demos/smart-menu-demo.js +375 -0
- package/dist/collection/assets/js/demos/smart-stepper-demo.js +50 -0
- package/dist/collection/assets/js/demos/snackbar-demo.js +1040 -0
- package/dist/collection/assets/js/demos/speed-dial-demo.js +764 -0
- package/dist/collection/assets/js/demos/speedometer-demo.js +425 -0
- package/dist/collection/assets/js/demos/split-button-demo.js +201 -0
- package/dist/collection/assets/js/demos/stack-demo.js +228 -0
- package/dist/collection/assets/js/demos/stepper-demo.js +798 -0
- package/dist/collection/assets/js/demos/switch-demo.js +849 -0
- package/dist/collection/assets/js/demos/tabs-demo.js +1032 -0
- package/dist/collection/assets/js/demos/tag-demo.js +842 -0
- package/dist/collection/assets/js/demos/theme-selector-demo.js +466 -0
- package/dist/collection/assets/js/demos/timeline-demo.js +365 -0
- package/dist/collection/assets/js/demos/timeline-playground.js +59 -0
- package/dist/collection/assets/js/demos/timer-demo.js +313 -0
- package/dist/collection/assets/js/demos/toolbar-demo.js +643 -0
- package/dist/collection/assets/js/demos/tooltip-demo.js +730 -0
- package/dist/collection/assets/js/demos/top-bar-demo.js +417 -0
- package/dist/collection/assets/js/demos/transfer-list-demo.js +555 -0
- package/dist/collection/assets/js/demos/tree-demo.js +693 -0
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +241 -0
- package/dist/collection/assets/js/index-boot.js +104 -0
- package/dist/collection/assets/js/nav-bar-demo.js +20 -0
- package/dist/collection/assets/js/nav-bar-init.js +119 -0
- package/dist/collection/assets/js/utils/layout-loader.js +80 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/accordion/accordion.css +2090 -0
- package/dist/collection/components/accordion/accordion.js +2955 -0
- package/dist/collection/components/accordion/types.js +1 -0
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +2606 -0
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +5394 -0
- package/dist/collection/components/advanced-data-table/types.js +1 -0
- package/dist/collection/components/anchor/anchor.css +395 -0
- package/dist/collection/components/anchor/anchor.js +1404 -0
- package/dist/collection/components/anchor/types.js +1 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.css +804 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +696 -0
- package/dist/collection/components/aside-panel/aside-panel.css +472 -0
- package/dist/collection/components/aside-panel/aside-panel.js +1697 -0
- package/dist/collection/components/avatar/avatar.css +696 -0
- package/dist/collection/components/avatar/avatar.js +2007 -0
- package/dist/collection/components/avatar/types.js +1 -0
- package/dist/collection/components/avatar-group/avatar-group.css +253 -0
- package/dist/collection/components/avatar-group/avatar-group.js +405 -0
- package/dist/collection/components/avatar-group/types.js +1 -0
- package/dist/collection/components/badge/badge.css +580 -0
- package/dist/collection/components/badge/badge.js +723 -0
- package/dist/collection/components/badge/types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +231 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +313 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +510 -0
- package/dist/collection/components/breadcrumb/types.js +1 -0
- package/dist/collection/components/button/button.css +1862 -0
- package/dist/collection/components/button/button.js +1380 -0
- package/dist/collection/components/button/types.js +1 -0
- package/dist/collection/components/button-toggle/button-toggle.css +97 -0
- package/dist/collection/components/button-toggle/button-toggle.js +620 -0
- package/dist/collection/components/button-toggle-group/button-toggle-group.css +401 -0
- package/dist/collection/components/button-toggle-group/button-toggle-group.js +1572 -0
- package/dist/collection/components/button-toggle-group/types.js +1 -0
- package/dist/collection/components/callout-banner/callout-banner.css +684 -0
- package/dist/collection/components/callout-banner/callout-banner.js +1076 -0
- package/dist/collection/components/callout-banner/types.js +1 -0
- package/dist/collection/components/card/card.css +663 -0
- package/dist/collection/components/card/card.js +1697 -0
- package/dist/collection/components/card/types.js +1 -0
- package/dist/collection/components/carousel/carousel.css +549 -0
- package/dist/collection/components/carousel/carousel.js +1512 -0
- package/dist/collection/components/carousel/types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +863 -0
- package/dist/collection/components/checkbox/checkbox.js +1201 -0
- package/dist/collection/components/checkbox/types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +223 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +1001 -0
- package/dist/collection/components/checkbox-group/types.js +1 -0
- package/dist/collection/components/code-editor/code-editor.css +1081 -0
- package/dist/collection/components/code-editor/code-editor.js +1211 -0
- package/dist/collection/components/code-editor/types.js +1 -0
- package/dist/collection/components/code-preview/types.js +1 -0
- package/dist/collection/components/code-preview/ui-code-preview.css +209 -0
- package/dist/collection/components/code-preview/ui-code-preview.js +548 -0
- package/dist/collection/components/color-controller/color-controller.css +108 -0
- package/dist/collection/components/color-controller/color-controller.js +224 -0
- package/dist/collection/components/color-picker/color-picker.css +323 -0
- package/dist/collection/components/color-picker/color-picker.js +1139 -0
- package/dist/collection/components/color-picker/types.js +1 -0
- package/dist/collection/components/command-palette/command-palette.css +260 -0
- package/dist/collection/components/command-palette/command-palette.js +429 -0
- package/dist/collection/components/command-palette/types.js +1 -0
- package/dist/collection/components/context-menu/context-menu.css +388 -0
- package/dist/collection/components/context-menu/context-menu.js +1412 -0
- package/dist/collection/components/context-menu/types.js +1 -0
- package/dist/collection/components/dialog-box/dialog-box.css +1261 -0
- package/dist/collection/components/dialog-box/dialog-box.js +4314 -0
- package/dist/collection/components/dialog-box/dialog-tray.css +268 -0
- package/dist/collection/components/dialog-box/types.js +1 -0
- package/dist/collection/components/dialog-content/dialog-content.css +83 -0
- package/dist/collection/components/dialog-content/dialog-content.js +96 -0
- package/dist/collection/components/dialog-footer/dialog-footer.css +89 -0
- package/dist/collection/components/dialog-footer/dialog-footer.js +94 -0
- package/dist/collection/components/dialog-footer/types.js +1 -0
- package/dist/collection/components/dialog-header/dialog-header.css +203 -0
- package/dist/collection/components/dialog-header/dialog-header.js +630 -0
- package/dist/collection/components/dialog-header/types.js +1 -0
- package/dist/collection/components/divider/divider.css +948 -0
- package/dist/collection/components/divider/divider.js +1612 -0
- package/dist/collection/components/divider/types.js +1 -0
- package/dist/collection/components/dock/dock.css +348 -0
- package/dist/collection/components/dock/dock.js +464 -0
- package/dist/collection/components/dock/types.js +1 -0
- package/dist/collection/components/dock-host/index.js +1 -0
- package/dist/collection/components/dock-host/types.js +1 -0
- package/dist/collection/components/dock-host/ui-dock-host.css +155 -0
- package/dist/collection/components/dock-host/ui-dock-host.js +226 -0
- package/dist/collection/components/drag-drop/drag-drop.css +103 -0
- package/dist/collection/components/drag-drop/drag-drop.js +385 -0
- package/dist/collection/components/drag-drop/types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1142 -0
- package/dist/collection/components/dropdown/dropdown.js +2033 -0
- package/dist/collection/components/dropdown/types.js +1 -0
- package/dist/collection/components/empty-state/empty-state.css +712 -0
- package/dist/collection/components/empty-state/empty-state.js +1256 -0
- package/dist/collection/components/empty-state/types.js +1 -0
- package/dist/collection/components/fab/fab.css +601 -0
- package/dist/collection/components/fab/fab.js +1124 -0
- package/dist/collection/components/fab-item/fab-item.css +107 -0
- package/dist/collection/components/fab-item/fab-item.js +177 -0
- package/dist/collection/components/fab-item/types.js +1 -0
- package/dist/collection/components/file-upload/file-upload.css +243 -0
- package/dist/collection/components/file-upload/file-upload.js +1022 -0
- package/dist/collection/components/file-upload/types.js +1 -0
- package/dist/collection/components/horizontal-nav/horizontal-nav.css +394 -0
- package/dist/collection/components/horizontal-nav/horizontal-nav.js +375 -0
- package/dist/collection/components/icon/icon.css +113 -0
- package/dist/collection/components/icon/icon.js +583 -0
- package/dist/collection/components/image-button/image-button.css +154 -0
- package/dist/collection/components/image-button/image-button.js +310 -0
- package/dist/collection/components/image-button/types.js +1 -0
- package/dist/collection/components/input/input.css +1544 -0
- package/dist/collection/components/input/input.js +3690 -0
- package/dist/collection/components/input/types.js +1 -0
- package/dist/collection/components/input-pair/input-pair.css +72 -0
- package/dist/collection/components/input-pair/input-pair.js +309 -0
- package/dist/collection/components/knob/knob.css +162 -0
- package/dist/collection/components/knob/knob.js +986 -0
- package/dist/collection/components/knob/types.js +1 -0
- package/dist/collection/components/layout-manager/layout-manager.css +41 -0
- package/dist/collection/components/layout-manager/layout-manager.js +525 -0
- package/dist/collection/components/layout-manager/lm-container/lm-container.css +117 -0
- package/dist/collection/components/layout-manager/lm-container/lm-container.js +110 -0
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.css +0 -0
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +49 -0
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.css +97 -0
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +58 -0
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.css +57 -0
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +120 -0
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.css +149 -0
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +130 -0
- package/dist/collection/components/layout-manager/types.js +1 -0
- package/dist/collection/components/library/category-section.css +147 -0
- package/dist/collection/components/library/category-section.js +139 -0
- package/dist/collection/components/library/data.js +74 -0
- package/dist/collection/components/library/library-card.css +181 -0
- package/dist/collection/components/library/library-card.js +203 -0
- package/dist/collection/components/library/library.css +358 -0
- package/dist/collection/components/library/library.js +91 -0
- package/dist/collection/components/list/list.css +1029 -0
- package/dist/collection/components/list/list.js +2167 -0
- package/dist/collection/components/list-group/list-group.css +275 -0
- package/dist/collection/components/list-group/list-group.js +356 -0
- package/dist/collection/components/list-item/list-item.css +1491 -0
- package/dist/collection/components/list-item/list-item.js +2184 -0
- package/dist/collection/components/masonry/masonry.css +414 -0
- package/dist/collection/components/masonry/masonry.js +1104 -0
- package/dist/collection/components/masonry/types.js +1 -0
- package/dist/collection/components/meter-group/meter-group.css +184 -0
- package/dist/collection/components/meter-group/meter-group.js +471 -0
- package/dist/collection/components/meter-group/types.js +1 -0
- package/dist/collection/components/my-component/my-component.css +27 -0
- package/dist/collection/components/my-component/my-component.js +95 -0
- package/dist/collection/components/my-step/my-step.css +25 -0
- package/dist/collection/components/my-step/my-step.js +237 -0
- package/dist/collection/components/nav-bar/nav-bar.css +448 -0
- package/dist/collection/components/nav-bar/nav-bar.js +608 -0
- package/dist/collection/components/number-input/number-input.css +200 -0
- package/dist/collection/components/number-input/number-input.js +695 -0
- package/dist/collection/components/otp-input/otp-input.css +243 -0
- package/dist/collection/components/otp-input/otp-input.js +761 -0
- package/dist/collection/components/otp-input/types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1399 -0
- package/dist/collection/components/pagination/pagination.js +2033 -0
- package/dist/collection/components/pagination/types.js +1 -0
- package/dist/collection/components/panel/panel.css +837 -0
- package/dist/collection/components/panel/panel.js +1842 -0
- package/dist/collection/components/panel/types.js +1 -0
- package/dist/collection/components/pattern-input/pattern-input.css +252 -0
- package/dist/collection/components/pattern-input/pattern-input.js +788 -0
- package/dist/collection/components/popover/popover.css +399 -0
- package/dist/collection/components/popover/popover.js +1449 -0
- package/dist/collection/components/popover/types.js +1 -0
- package/dist/collection/components/progress/progress.css +588 -0
- package/dist/collection/components/progress/progress.js +1414 -0
- package/dist/collection/components/progress/types.js +1 -0
- package/dist/collection/components/radio/radio.css +773 -0
- package/dist/collection/components/radio/radio.js +1059 -0
- package/dist/collection/components/radio/types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +202 -0
- package/dist/collection/components/radio-group/radio-group.js +903 -0
- package/dist/collection/components/radio-group/types.js +1 -0
- package/dist/collection/components/range-slider/range-slider.css +602 -0
- package/dist/collection/components/range-slider/range-slider.js +1369 -0
- package/dist/collection/components/range-slider/types.js +1 -0
- package/dist/collection/components/rating/rating.css +768 -0
- package/dist/collection/components/rating/rating.js +1062 -0
- package/dist/collection/components/rating/types.js +1 -0
- package/dist/collection/components/resizable-panel/resizable-panel.css +247 -0
- package/dist/collection/components/resizable-panel/resizable-panel.js +874 -0
- package/dist/collection/components/resizable-panel/types.js +1 -0
- package/dist/collection/components/scroll-top/scroll-top.css +397 -0
- package/dist/collection/components/scroll-top/scroll-top.js +1178 -0
- package/dist/collection/components/scroll-top/types.js +1 -0
- package/dist/collection/components/skeleton/skeleton-loader.css +429 -0
- package/dist/collection/components/skeleton/skeleton-loader.js +1193 -0
- package/dist/collection/components/skeleton/types.js +1 -0
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +357 -0
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +1190 -0
- package/dist/collection/components/smart-location-dropdown/types.js +1 -0
- package/dist/collection/components/smart-menu/menu-item.interface.js +1 -0
- package/dist/collection/components/smart-menu/smart-menu.css +119 -0
- package/dist/collection/components/smart-menu/smart-menu.js +544 -0
- package/dist/collection/components/smart-stepper/smart-step.css +213 -0
- package/dist/collection/components/smart-stepper/smart-step.js +170 -0
- package/dist/collection/components/smart-stepper/smart-stepper.css +146 -0
- package/dist/collection/components/smart-stepper/smart-stepper.js +338 -0
- package/dist/collection/components/snackbar/snackbar.css +1480 -0
- package/dist/collection/components/snackbar/snackbar.js +1759 -0
- package/dist/collection/components/snackbar/types.js +1 -0
- package/dist/collection/components/speed-dial/speed-dial.css +478 -0
- package/dist/collection/components/speed-dial/speed-dial.js +1183 -0
- package/dist/collection/components/speed-dial/types.js +1 -0
- package/dist/collection/components/speedometer/speedometer.css +95 -0
- package/dist/collection/components/speedometer/speedometer.js +868 -0
- package/dist/collection/components/speedometer/types.js +1 -0
- package/dist/collection/components/splitter/splitter.css +269 -0
- package/dist/collection/components/splitter/splitter.js +713 -0
- package/dist/collection/components/splitter/types.js +1 -0
- package/dist/collection/components/stack/stack.css +269 -0
- package/dist/collection/components/stack/stack.js +297 -0
- package/dist/collection/components/stack/types.js +1 -0
- package/dist/collection/components/step/step.css +77 -0
- package/dist/collection/components/step/step.js +214 -0
- package/dist/collection/components/step/types.js +1 -0
- package/dist/collection/components/stepper/stepper.css +1079 -0
- package/dist/collection/components/stepper/stepper.js +1850 -0
- package/dist/collection/components/stepper/types.js +1 -0
- package/dist/collection/components/switch/switch.css +1099 -0
- package/dist/collection/components/switch/switch.js +1578 -0
- package/dist/collection/components/tabs/tabs.css +1355 -0
- package/dist/collection/components/tabs/tabs.js +1474 -0
- package/dist/collection/components/tabs/types.js +1 -0
- package/dist/collection/components/tag/tag.css +893 -0
- package/dist/collection/components/tag/tag.js +1119 -0
- package/dist/collection/components/tag/types.js +1 -0
- package/dist/collection/components/tag-group/tag-group.css +144 -0
- package/dist/collection/components/tag-group/tag-group.js +887 -0
- package/dist/collection/components/tag-group/types.js +1 -0
- package/dist/collection/components/timeline/timeline.css +1850 -0
- package/dist/collection/components/timeline/timeline.js +889 -0
- package/dist/collection/components/timeline/types.js +1 -0
- package/dist/collection/components/timeline/ui-timeline.stories.js +19 -0
- package/dist/collection/components/timeline-item/timeline-item.css +75 -0
- package/dist/collection/components/timeline-item/timeline-item.js +91 -0
- package/dist/collection/components/timer/timer.css +367 -0
- package/dist/collection/components/timer/timer.js +1292 -0
- package/dist/collection/components/timer/types.js +1 -0
- package/dist/collection/components/timer/ui-timer.stories.js +19 -0
- package/dist/collection/components/toggle-group/toggle-group.css +361 -0
- package/dist/collection/components/toggle-group/toggle-group.js +1212 -0
- package/dist/collection/components/toggle-group/types.js +1 -0
- package/dist/collection/components/toolbar/toolbar-types.js +1 -0
- package/dist/collection/components/toolbar/toolbar.css +1186 -0
- package/dist/collection/components/toolbar/toolbar.js +1635 -0
- package/dist/collection/components/tooltip/tooltip.css +609 -0
- package/dist/collection/components/tooltip/tooltip.js +1882 -0
- package/dist/collection/components/tooltip/types.js +1 -0
- package/dist/collection/components/top-bar/top-bar.css +274 -0
- package/dist/collection/components/top-bar/top-bar.js +383 -0
- package/dist/collection/components/transfer-list/transfer-list.css +520 -0
- package/dist/collection/components/transfer-list/transfer-list.js +1225 -0
- package/dist/collection/components/transfer-list/types.js +1 -0
- package/dist/collection/components/tree/tree.css +1197 -0
- package/dist/collection/components/tree/tree.js +2509 -0
- package/dist/collection/components/tree/types.js +1 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +830 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +1231 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-types.js +1 -0
- package/dist/collection/components/ui-navigation-bar/navigation-item.css +679 -0
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +385 -0
- package/dist/collection/components/ui-navigation-bar/navigation-types.js +1 -0
- package/dist/collection/components/workspace-manager/types.js +1 -0
- package/dist/collection/components/workspace-manager/workspace-manager.css +1094 -0
- package/dist/collection/components/workspace-manager/workspace-manager.js +1914 -0
- package/dist/collection/components.js +51 -0
- package/dist/collection/index.js +108 -0
- package/dist/collection/service/drag-manager.js +23 -0
- package/dist/collection/service/event-bus.js +19 -0
- package/dist/collection/service/serialization.js +8 -0
- package/dist/collection/service/state-engine.js +247 -0
- package/dist/collection/service/theme-switcher.js +146 -0
- package/dist/collection/stories/Button.stories.js +15 -0
- package/dist/collection/types/common.js +1 -0
- package/dist/collection/types/index.js +4 -0
- package/dist/collection/utils/aria-live.js +60 -0
- package/dist/collection/utils/component-size.js +25 -0
- package/dist/collection/utils/dom.js +260 -0
- package/dist/collection/utils/focus-trap.js +135 -0
- package/dist/collection/utils/security.js +10 -0
- package/dist/collection/utils/test/setup-component-test-env.js +92 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/collection/utils/validation.js +74 -0
- package/dist/components/avatar-group.js +1 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/badge.js +1 -0
- package/dist/components/button-toggle.js +1 -0
- package/dist/components/category-section.d.ts +11 -0
- package/dist/components/category-section.js +1 -0
- package/dist/components/category-section2.js +1 -0
- package/dist/components/checkbox.js +1 -0
- package/dist/components/context-menu.js +1 -0
- package/dist/components/dialog-footer.js +1 -0
- package/dist/components/dialog-header.js +1 -0
- package/dist/components/dom.js +1 -0
- package/dist/components/dropdown.js +1 -0
- package/dist/components/event-bus.js +1 -0
- package/dist/components/focus-trap.js +1 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/input.js +1 -0
- package/dist/components/layout-manager.d.ts +11 -0
- package/dist/components/layout-manager.js +1 -0
- package/dist/components/library-card.d.ts +11 -0
- package/dist/components/library-card.js +1 -0
- package/dist/components/library-card2.js +1 -0
- package/dist/components/list-group.js +1 -0
- package/dist/components/list-item.js +1 -0
- package/dist/components/lm-container.d.ts +11 -0
- package/dist/components/lm-container.js +1 -0
- package/dist/components/lm-container2.js +1 -0
- package/dist/components/lm-floating-window.d.ts +11 -0
- package/dist/components/lm-floating-window.js +1 -0
- package/dist/components/lm-floating-window2.js +1 -0
- package/dist/components/lm-panel.d.ts +11 -0
- package/dist/components/lm-panel.js +1 -0
- package/dist/components/lm-panel2.js +1 -0
- package/dist/components/lm-splitter.d.ts +11 -0
- package/dist/components/lm-splitter.js +1 -0
- package/dist/components/lm-splitter2.js +1 -0
- package/dist/components/lm-tabs.d.ts +11 -0
- package/dist/components/lm-tabs.js +1 -0
- package/dist/components/lm-tabs2.js +1 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +1 -0
- package/dist/components/my-step.d.ts +11 -0
- package/dist/components/my-step.js +1 -0
- package/dist/components/nav-bar.d.ts +11 -0
- package/dist/components/nav-bar.js +1 -0
- package/dist/components/pagination.js +1 -0
- package/dist/components/radio.js +1 -0
- package/dist/components/range-slider.js +1 -0
- package/dist/components/rating.js +1 -0
- package/dist/components/resizable-panel.js +1 -0
- package/dist/components/skeleton-loader.js +1 -0
- package/dist/components/smart-step.d.ts +11 -0
- package/dist/components/smart-step.js +1 -0
- package/dist/components/stack.js +1 -0
- package/dist/components/switch.js +1 -0
- package/dist/components/tag-group.js +1 -0
- package/dist/components/tag.js +1 -0
- package/dist/components/timeline-item.d.ts +11 -0
- package/dist/components/timeline-item.js +1 -0
- package/dist/components/toggle-group.js +1 -0
- package/dist/components/tooltip.js +1 -0
- package/dist/components/ui-accordion.d.ts +11 -0
- package/dist/components/ui-accordion.js +1 -0
- package/dist/components/ui-advanced-data-table.d.ts +11 -0
- package/dist/components/ui-advanced-data-table.js +1 -0
- package/dist/components/ui-anchor.d.ts +11 -0
- package/dist/components/ui-anchor.js +1 -0
- package/dist/components/ui-animate-on-scroll.d.ts +11 -0
- package/dist/components/ui-animate-on-scroll.js +1 -0
- package/dist/components/ui-aside-panel.d.ts +11 -0
- package/dist/components/ui-aside-panel.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.d.ts +11 -0
- package/dist/components/ui-avatar.js +1 -0
- package/dist/components/ui-badge.d.ts +11 -0
- package/dist/components/ui-badge.js +1 -0
- package/dist/components/ui-breadcrumb-item.d.ts +11 -0
- package/dist/components/ui-breadcrumb-item.js +1 -0
- package/dist/components/ui-breadcrumb.d.ts +11 -0
- package/dist/components/ui-breadcrumb.js +1 -0
- package/dist/components/ui-button-toggle-group.d.ts +11 -0
- package/dist/components/ui-button-toggle-group.js +1 -0
- package/dist/components/ui-button-toggle.d.ts +11 -0
- package/dist/components/ui-button-toggle.js +1 -0
- package/dist/components/ui-button.d.ts +11 -0
- package/dist/components/ui-button.js +1 -0
- package/dist/components/ui-callout-banner.d.ts +11 -0
- package/dist/components/ui-callout-banner.js +1 -0
- package/dist/components/ui-card.d.ts +11 -0
- package/dist/components/ui-card.js +1 -0
- package/dist/components/ui-carousel.d.ts +11 -0
- package/dist/components/ui-carousel.js +1 -0
- package/dist/components/ui-checkbox-group.d.ts +11 -0
- package/dist/components/ui-checkbox-group.js +1 -0
- package/dist/components/ui-checkbox.d.ts +11 -0
- package/dist/components/ui-checkbox.js +1 -0
- package/dist/components/ui-code-editor.d.ts +11 -0
- package/dist/components/ui-code-editor.js +1 -0
- package/dist/components/ui-code-preview.d.ts +11 -0
- package/dist/components/ui-code-preview.js +1 -0
- package/dist/components/ui-color-controller.d.ts +11 -0
- package/dist/components/ui-color-controller.js +1 -0
- package/dist/components/ui-color-picker.d.ts +11 -0
- package/dist/components/ui-color-picker.js +1 -0
- package/dist/components/ui-command-palette.d.ts +11 -0
- package/dist/components/ui-command-palette.js +1 -0
- package/dist/components/ui-context-menu.d.ts +11 -0
- package/dist/components/ui-context-menu.js +1 -0
- package/dist/components/ui-dialog-box.d.ts +11 -0
- package/dist/components/ui-dialog-box.js +1 -0
- package/dist/components/ui-dialog-content.d.ts +11 -0
- package/dist/components/ui-dialog-content.js +1 -0
- package/dist/components/ui-dialog-footer.d.ts +11 -0
- package/dist/components/ui-dialog-footer.js +1 -0
- package/dist/components/ui-dialog-header.d.ts +11 -0
- package/dist/components/ui-dialog-header.js +1 -0
- package/dist/components/ui-divider.d.ts +11 -0
- package/dist/components/ui-divider.js +1 -0
- package/dist/components/ui-dock-host.d.ts +11 -0
- package/dist/components/ui-dock-host.js +1 -0
- package/dist/components/ui-dock.d.ts +11 -0
- package/dist/components/ui-dock.js +1 -0
- package/dist/components/ui-drag-drop.d.ts +11 -0
- package/dist/components/ui-drag-drop.js +1 -0
- package/dist/components/ui-dropdown.d.ts +11 -0
- package/dist/components/ui-dropdown.js +1 -0
- package/dist/components/ui-empty-state.d.ts +11 -0
- package/dist/components/ui-empty-state.js +1 -0
- package/dist/components/ui-fab-item.d.ts +11 -0
- package/dist/components/ui-fab-item.js +1 -0
- package/dist/components/ui-fab.d.ts +11 -0
- package/dist/components/ui-fab.js +1 -0
- package/dist/components/ui-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-horizontal-nav.d.ts +11 -0
- package/dist/components/ui-horizontal-nav.js +1 -0
- package/dist/components/ui-icon.d.ts +11 -0
- package/dist/components/ui-icon.js +1 -0
- package/dist/components/ui-image-button.d.ts +11 -0
- package/dist/components/ui-image-button.js +1 -0
- package/dist/components/ui-input-pair.d.ts +11 -0
- package/dist/components/ui-input-pair.js +1 -0
- package/dist/components/ui-input.d.ts +11 -0
- package/dist/components/ui-input.js +1 -0
- package/dist/components/ui-knob.d.ts +11 -0
- package/dist/components/ui-knob.js +1 -0
- package/dist/components/ui-library.d.ts +11 -0
- package/dist/components/ui-library.js +1 -0
- package/dist/components/ui-list-group.d.ts +11 -0
- package/dist/components/ui-list-group.js +1 -0
- package/dist/components/ui-list-item.d.ts +11 -0
- package/dist/components/ui-list-item.js +1 -0
- package/dist/components/ui-list.d.ts +11 -0
- package/dist/components/ui-list.js +1 -0
- package/dist/components/ui-masonry.d.ts +11 -0
- package/dist/components/ui-masonry.js +1 -0
- package/dist/components/ui-meter-group.d.ts +11 -0
- package/dist/components/ui-meter-group.js +1 -0
- package/dist/components/ui-navigation-bar.d.ts +11 -0
- package/dist/components/ui-navigation-bar.js +1 -0
- package/dist/components/ui-navigation-item.d.ts +11 -0
- package/dist/components/ui-navigation-item.js +1 -0
- package/dist/components/ui-number-input.d.ts +11 -0
- package/dist/components/ui-number-input.js +1 -0
- package/dist/components/ui-otp-input.d.ts +11 -0
- package/dist/components/ui-otp-input.js +1 -0
- package/dist/components/ui-pagination.d.ts +11 -0
- package/dist/components/ui-pagination.js +1 -0
- package/dist/components/ui-panel.d.ts +11 -0
- package/dist/components/ui-panel.js +1 -0
- package/dist/components/ui-pattern-input.d.ts +11 -0
- package/dist/components/ui-pattern-input.js +1 -0
- package/dist/components/ui-popover.d.ts +11 -0
- package/dist/components/ui-popover.js +1 -0
- package/dist/components/ui-progress.d.ts +11 -0
- package/dist/components/ui-progress.js +1 -0
- package/dist/components/ui-radio-group.d.ts +11 -0
- package/dist/components/ui-radio-group.js +1 -0
- package/dist/components/ui-radio.d.ts +11 -0
- package/dist/components/ui-radio.js +1 -0
- package/dist/components/ui-range-slider.d.ts +11 -0
- package/dist/components/ui-range-slider.js +1 -0
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- package/dist/components/ui-resizable-panel.d.ts +11 -0
- package/dist/components/ui-resizable-panel.js +1 -0
- package/dist/components/ui-scroll-top.d.ts +11 -0
- package/dist/components/ui-scroll-top.js +1 -0
- package/dist/components/ui-skeleton.d.ts +11 -0
- package/dist/components/ui-skeleton.js +1 -0
- package/dist/components/ui-smart-context-menu.d.ts +11 -0
- package/dist/components/ui-smart-context-menu.js +1 -0
- package/dist/components/ui-smart-location-dropdown.d.ts +11 -0
- package/dist/components/ui-smart-location-dropdown.js +1 -0
- package/dist/components/ui-smart-stepper.d.ts +11 -0
- package/dist/components/ui-smart-stepper.js +1 -0
- package/dist/components/ui-snackbar.d.ts +11 -0
- package/dist/components/ui-snackbar.js +1 -0
- package/dist/components/ui-speed-dial.d.ts +11 -0
- package/dist/components/ui-speed-dial.js +1 -0
- package/dist/components/ui-speedometer.d.ts +11 -0
- package/dist/components/ui-speedometer.js +1 -0
- package/dist/components/ui-splitter.d.ts +11 -0
- package/dist/components/ui-splitter.js +1 -0
- package/dist/components/ui-stack.d.ts +11 -0
- package/dist/components/ui-stack.js +1 -0
- package/dist/components/ui-step.d.ts +11 -0
- package/dist/components/ui-step.js +1 -0
- package/dist/components/ui-stepper.d.ts +11 -0
- package/dist/components/ui-stepper.js +1 -0
- package/dist/components/ui-switch.d.ts +11 -0
- package/dist/components/ui-switch.js +1 -0
- package/dist/components/ui-tabs.d.ts +11 -0
- package/dist/components/ui-tabs.js +1 -0
- package/dist/components/ui-tag-group.d.ts +11 -0
- package/dist/components/ui-tag-group.js +1 -0
- package/dist/components/ui-tag.d.ts +11 -0
- package/dist/components/ui-tag.js +1 -0
- package/dist/components/ui-timeline.d.ts +11 -0
- package/dist/components/ui-timeline.js +1 -0
- package/dist/components/ui-timer.d.ts +11 -0
- package/dist/components/ui-timer.js +1 -0
- package/dist/components/ui-toggle-group.d.ts +11 -0
- package/dist/components/ui-toggle-group.js +1 -0
- package/dist/components/ui-toolbar.d.ts +11 -0
- package/dist/components/ui-toolbar.js +1 -0
- package/dist/components/ui-tooltip.d.ts +11 -0
- package/dist/components/ui-tooltip.js +1 -0
- package/dist/components/ui-top-bar.d.ts +11 -0
- package/dist/components/ui-top-bar.js +1 -0
- package/dist/components/ui-transfer-list.d.ts +11 -0
- package/dist/components/ui-transfer-list.js +1 -0
- package/dist/components/ui-tree.d.ts +11 -0
- package/dist/components/ui-tree.js +1 -0
- package/dist/components/ui-workspace-manager.d.ts +11 -0
- package/dist/components/ui-workspace-manager.js +1 -0
- package/dist/components/utils.js +1 -0
- package/dist/esm/category-section.entry.js +28 -0
- package/dist/esm/component-size-C7gf39HE.js +27 -0
- package/dist/esm/dom-BMFah5q3.js +262 -0
- package/dist/esm/event-bus-vwwmWKs9.js +21 -0
- package/dist/esm/exploration-project-tailwind.js +20 -0
- package/dist/esm/focus-trap-BSQ8klD4.js +137 -0
- package/dist/esm/index-DUsoYu9r.js +2264 -0
- package/dist/esm/index.js +256 -0
- package/dist/esm/layout-manager.entry.js +614 -0
- package/dist/esm/library-card.entry.js +61 -0
- package/dist/esm/lm-container_2.entry.js +76 -0
- package/dist/esm/lm-panel_3.entry.js +104 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/my-component.entry.js +31 -0
- package/dist/esm/my-step.entry.js +27 -0
- package/dist/esm/nav-bar.entry.js +245 -0
- package/dist/esm/security-D2WzX6vR.js +1545 -0
- package/dist/esm/smart-step.entry.js +45 -0
- package/dist/esm/timeline-item.entry.js +27 -0
- package/dist/esm/ui-accordion_10.entry.js +5722 -0
- package/dist/esm/ui-advanced-data-table.entry.js +2682 -0
- package/dist/esm/ui-anchor.entry.js +556 -0
- package/dist/esm/ui-animate-on-scroll.entry.js +283 -0
- package/dist/esm/ui-aside-panel.entry.js +636 -0
- package/dist/esm/ui-avatar-group_3.entry.js +630 -0
- package/dist/esm/ui-breadcrumb-item.entry.js +54 -0
- package/dist/esm/ui-breadcrumb.entry.js +199 -0
- package/dist/esm/ui-callout-banner.entry.js +289 -0
- package/dist/esm/ui-card.entry.js +409 -0
- package/dist/esm/ui-carousel.entry.js +545 -0
- package/dist/esm/ui-checkbox-group.entry.js +328 -0
- package/dist/esm/ui-checkbox.entry.js +258 -0
- package/dist/esm/ui-code-editor.entry.js +959 -0
- package/dist/esm/ui-code-preview.entry.js +313 -0
- package/dist/esm/ui-color-controller.entry.js +148 -0
- package/dist/esm/ui-color-picker.entry.js +656 -0
- package/dist/esm/ui-command-palette.entry.js +176 -0
- package/dist/esm/ui-dialog-box.entry.js +1806 -0
- package/dist/esm/ui-dialog-content.entry.js +29 -0
- package/dist/esm/ui-dialog-footer_2.entry.js +190 -0
- package/dist/esm/ui-divider.entry.js +479 -0
- package/dist/esm/ui-dock-host.entry.js +126 -0
- package/dist/esm/ui-dock.entry.js +219 -0
- package/dist/esm/ui-drag-drop.entry.js +170 -0
- package/dist/esm/ui-dropdown_2.entry.js +1549 -0
- package/dist/esm/ui-empty-state.entry.js +396 -0
- package/dist/esm/ui-fab-item.entry.js +37 -0
- package/dist/esm/ui-fab.entry.js +275 -0
- package/dist/esm/ui-file-upload.entry.js +416 -0
- package/dist/esm/ui-horizontal-nav.entry.js +133 -0
- package/dist/esm/ui-image-button.entry.js +65 -0
- package/dist/esm/ui-input-pair.entry.js +42 -0
- package/dist/esm/ui-knob.entry.js +445 -0
- package/dist/esm/ui-library.entry.js +132 -0
- package/dist/esm/ui-list-group_2.entry.js +583 -0
- package/dist/esm/ui-list.entry.js +730 -0
- package/dist/esm/ui-masonry.entry.js +476 -0
- package/dist/esm/ui-meter-group.entry.js +171 -0
- package/dist/esm/ui-navigation-item.entry.js +102 -0
- package/dist/esm/ui-number-input.entry.js +189 -0
- package/dist/esm/ui-otp-input.entry.js +244 -0
- package/dist/esm/ui-pagination_3.entry.js +1617 -0
- package/dist/esm/ui-panel.entry.js +612 -0
- package/dist/esm/ui-pattern-input.entry.js +276 -0
- package/dist/esm/ui-popover.entry.js +515 -0
- package/dist/esm/ui-progress.entry.js +514 -0
- package/dist/esm/ui-radio-group.entry.js +203 -0
- package/dist/esm/ui-radio.entry.js +204 -0
- package/dist/esm/ui-range-slider.entry.js +635 -0
- package/dist/esm/ui-resizable-panel.entry.js +482 -0
- package/dist/esm/ui-scroll-top.entry.js +457 -0
- package/dist/esm/ui-smart-context-menu.entry.js +374 -0
- package/dist/esm/ui-smart-location-dropdown.entry.js +563 -0
- package/dist/esm/ui-smart-stepper.entry.js +135 -0
- package/dist/esm/ui-snackbar.entry.js +861 -0
- package/dist/esm/ui-speed-dial.entry.js +518 -0
- package/dist/esm/ui-speedometer.entry.js +426 -0
- package/dist/esm/ui-splitter.entry.js +280 -0
- package/dist/esm/ui-step.entry.js +28 -0
- package/dist/esm/ui-stepper.entry.js +638 -0
- package/dist/esm/ui-switch.entry.js +403 -0
- package/dist/esm/ui-tabs.entry.js +701 -0
- package/dist/esm/ui-tag.entry.js +297 -0
- package/dist/esm/ui-timeline.entry.js +265 -0
- package/dist/esm/ui-timer.entry.js +500 -0
- package/dist/esm/ui-toolbar.entry.js +617 -0
- package/dist/esm/ui-tooltip.entry.js +695 -0
- package/dist/esm/ui-top-bar.entry.js +119 -0
- package/dist/esm/ui-transfer-list.entry.js +590 -0
- package/dist/esm/ui-tree.entry.js +872 -0
- package/dist/esm/ui-workspace-manager.entry.js +1199 -0
- package/dist/esm/utils-Ck6jDuhz.js +23 -0
- package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -0
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -0
- package/dist/exploration-project-tailwind/index.esm.js +1 -0
- package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-049744f9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-06f0c679.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-0b004861.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-148e81df.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-200241f8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-287dbf09.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2d273118.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2f1aebb3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2f961934.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-35296877.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-36861546.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3d3d48fd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-41cd6bf0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-45482d86.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-46596a28.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-46efdea3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4d73c143.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4de419d5.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4f6bba75.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5508874f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5e3e80ae.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-61717490.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-62352ef2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-64e3a484.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-70d82d79.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7376ac95.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-73d29a4a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7515b1e3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77124686.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77a21491.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77cc333a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7f91d949.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-807c6555.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-81961fb1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-85bf89fd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-85e36111.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-875be805.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-898dd0fa.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-8d951aef.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9d0c8760.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9fa70359.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-BMFah5q3.js +1 -0
- package/dist/exploration-project-tailwind/p-BSQ8klD4.js +1 -0
- package/dist/exploration-project-tailwind/p-C7gf39HE.js +1 -0
- package/dist/exploration-project-tailwind/p-Ck6jDuhz.js +1 -0
- package/dist/exploration-project-tailwind/p-D2WzX6vR.js +2 -0
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +2 -0
- package/dist/exploration-project-tailwind/p-a1ad32a2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a3f465d9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a42fdc33.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-aa85ff78.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ab752761.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c174a372.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c4ba7e52.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c5ddc817.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c6fd72e1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c7e87fbb.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c87aeab6.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c90722ec.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ccb5c737.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d16c9635.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d2308a00.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d30e24bd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d419eaf0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-debede45.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e5322e59.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e8ba0c95.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e90d5307.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f0830120.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f5719913.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ffb1754a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-vwwmWKs9.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +352 -0
- package/dist/types/components/accordion/types.d.ts +69 -0
- package/dist/types/components/advanced-data-table/advanced-data-table.d.ts +697 -0
- package/dist/types/components/advanced-data-table/types.d.ts +120 -0
- package/dist/types/components/anchor/anchor.d.ts +133 -0
- package/dist/types/components/anchor/types.d.ts +17 -0
- package/dist/types/components/animate-on-scroll/animate-on-scroll.d.ts +101 -0
- package/dist/types/components/aside-panel/aside-panel.d.ts +249 -0
- package/dist/types/components/avatar/avatar.d.ts +201 -0
- package/dist/types/components/avatar/types.d.ts +132 -0
- package/dist/types/components/avatar-group/avatar-group.d.ts +52 -0
- package/dist/types/components/avatar-group/types.d.ts +31 -0
- package/dist/types/components/badge/badge.d.ts +109 -0
- package/dist/types/components/badge/types.d.ts +6 -0
- package/dist/types/components/breadcrumb/breadcrumb-item.d.ts +36 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +73 -0
- package/dist/types/components/breadcrumb/types.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +133 -0
- package/dist/types/components/button/types.d.ts +1 -0
- package/dist/types/components/button-toggle/button-toggle.d.ts +64 -0
- package/dist/types/components/button-toggle-group/button-toggle-group.d.ts +141 -0
- package/dist/types/components/button-toggle-group/types.d.ts +7 -0
- package/dist/types/components/callout-banner/callout-banner.d.ts +115 -0
- package/dist/types/components/callout-banner/types.d.ts +7 -0
- package/dist/types/components/card/card.d.ts +160 -0
- package/dist/types/components/card/types.d.ts +13 -0
- package/dist/types/components/carousel/carousel.d.ts +150 -0
- package/dist/types/components/carousel/types.d.ts +8 -0
- package/dist/types/components/checkbox/checkbox.d.ts +92 -0
- package/dist/types/components/checkbox/types.d.ts +5 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +87 -0
- package/dist/types/components/checkbox-group/types.d.ts +8 -0
- package/dist/types/components/code-editor/code-editor.d.ts +147 -0
- package/dist/types/components/code-editor/types.d.ts +20 -0
- package/dist/types/components/code-preview/types.d.ts +5 -0
- package/dist/types/components/code-preview/ui-code-preview.d.ts +69 -0
- package/dist/types/components/color-controller/color-controller.d.ts +24 -0
- package/dist/types/components/color-picker/color-picker.d.ts +116 -0
- package/dist/types/components/color-picker/types.d.ts +24 -0
- package/dist/types/components/command-palette/command-palette.d.ts +41 -0
- package/dist/types/components/command-palette/types.d.ts +7 -0
- package/dist/types/components/context-menu/context-menu.d.ts +135 -0
- package/dist/types/components/context-menu/types.d.ts +20 -0
- package/dist/types/components/dialog-box/dialog-box.d.ts +648 -0
- package/dist/types/components/dialog-box/types.d.ts +1 -0
- package/dist/types/components/dialog-content/dialog-content.d.ts +9 -0
- package/dist/types/components/dialog-footer/dialog-footer.d.ts +9 -0
- package/dist/types/components/dialog-footer/types.d.ts +1 -0
- package/dist/types/components/dialog-header/dialog-header.d.ts +102 -0
- package/dist/types/components/dialog-header/types.d.ts +2 -0
- package/dist/types/components/divider/divider.d.ts +245 -0
- package/dist/types/components/divider/types.d.ts +14 -0
- package/dist/types/components/dock/dock.d.ts +37 -0
- package/dist/types/components/dock/types.d.ts +11 -0
- package/dist/types/components/dock-host/index.d.ts +1 -0
- package/dist/types/components/dock-host/types.d.ts +1 -0
- package/dist/types/components/dock-host/ui-dock-host.d.ts +23 -0
- package/dist/types/components/drag-drop/drag-drop.d.ts +52 -0
- package/dist/types/components/drag-drop/types.d.ts +9 -0
- package/dist/types/components/dropdown/dropdown.d.ts +264 -0
- package/dist/types/components/dropdown/types.d.ts +19 -0
- package/dist/types/components/empty-state/empty-state.d.ts +74 -0
- package/dist/types/components/empty-state/types.d.ts +13 -0
- package/dist/types/components/fab/fab.d.ts +73 -0
- package/dist/types/components/fab-item/fab-item.d.ts +14 -0
- package/dist/types/components/fab-item/types.d.ts +3 -0
- package/dist/types/components/file-upload/file-upload.d.ts +91 -0
- package/dist/types/components/file-upload/types.d.ts +15 -0
- package/dist/types/components/horizontal-nav/horizontal-nav.d.ts +68 -0
- package/dist/types/components/icon/icon.d.ts +66 -0
- package/dist/types/components/image-button/image-button.d.ts +31 -0
- package/dist/types/components/image-button/types.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +217 -0
- package/dist/types/components/input/types.d.ts +6 -0
- package/dist/types/components/input-pair/input-pair.d.ts +28 -0
- package/dist/types/components/knob/knob.d.ts +147 -0
- package/dist/types/components/knob/types.d.ts +4 -0
- package/dist/types/components/layout-manager/layout-manager.d.ts +32 -0
- package/dist/types/components/layout-manager/lm-container/lm-container.d.ts +7 -0
- package/dist/types/components/layout-manager/lm-floating-window/lm-floating-window.d.ts +6 -0
- package/dist/types/components/layout-manager/lm-panel/lm-panel.d.ts +7 -0
- package/dist/types/components/layout-manager/lm-splitter/lm-splitter.d.ts +12 -0
- package/dist/types/components/layout-manager/lm-tabs/lm-tabs.d.ts +12 -0
- package/dist/types/components/layout-manager/types.d.ts +1 -0
- package/dist/types/components/library/category-section.d.ts +15 -0
- package/dist/types/components/library/data.d.ts +11 -0
- package/dist/types/components/library/library-card.d.ts +19 -0
- package/dist/types/components/library/library.d.ts +9 -0
- package/dist/types/components/list/list.d.ts +183 -0
- package/dist/types/components/list-group/list-group.d.ts +28 -0
- package/dist/types/components/list-item/list-item.d.ts +200 -0
- package/dist/types/components/masonry/masonry.d.ts +105 -0
- package/dist/types/components/masonry/types.d.ts +5 -0
- package/dist/types/components/meter-group/meter-group.d.ts +66 -0
- package/dist/types/components/meter-group/types.d.ts +12 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-step/index.d.ts +12 -0
- package/dist/types/components/my-step/my-step.d.ts +13 -0
- package/dist/types/components/nav-bar/nav-bar.d.ts +119 -0
- package/dist/types/components/number-input/number-input.d.ts +72 -0
- package/dist/types/components/otp-input/otp-input.d.ts +64 -0
- package/dist/types/components/otp-input/types.d.ts +3 -0
- package/dist/types/components/pagination/pagination.d.ts +295 -0
- package/dist/types/components/pagination/types.d.ts +1 -0
- package/dist/types/components/panel/panel.d.ts +275 -0
- package/dist/types/components/panel/types.d.ts +7 -0
- package/dist/types/components/pattern-input/pattern-input.d.ts +88 -0
- package/dist/types/components/popover/popover.d.ts +161 -0
- package/dist/types/components/popover/types.d.ts +3 -0
- package/dist/types/components/progress/progress.d.ts +224 -0
- package/dist/types/components/progress/types.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +87 -0
- package/dist/types/components/radio/types.d.ts +7 -0
- package/dist/types/components/radio-group/radio-group.d.ts +74 -0
- package/dist/types/components/radio-group/types.d.ts +2 -0
- package/dist/types/components/range-slider/range-slider.d.ts +201 -0
- package/dist/types/components/range-slider/types.d.ts +4 -0
- package/dist/types/components/rating/rating.d.ts +127 -0
- package/dist/types/components/rating/types.d.ts +1 -0
- package/dist/types/components/resizable-panel/resizable-panel.d.ts +59 -0
- package/dist/types/components/resizable-panel/types.d.ts +11 -0
- package/dist/types/components/scroll-top/scroll-top.d.ts +186 -0
- package/dist/types/components/scroll-top/types.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton-loader.d.ts +149 -0
- package/dist/types/components/skeleton/types.d.ts +1 -0
- package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +119 -0
- package/dist/types/components/smart-location-dropdown/types.d.ts +37 -0
- package/dist/types/components/smart-menu/menu-item.interface.d.ts +10 -0
- package/dist/types/components/smart-menu/smart-menu.d.ts +64 -0
- package/dist/types/components/smart-stepper/smart-step.d.ts +29 -0
- package/dist/types/components/smart-stepper/smart-stepper.d.ts +53 -0
- package/dist/types/components/snackbar/snackbar.d.ts +223 -0
- package/dist/types/components/snackbar/types.d.ts +104 -0
- package/dist/types/components/speed-dial/speed-dial.d.ts +171 -0
- package/dist/types/components/speed-dial/types.d.ts +11 -0
- package/dist/types/components/speedometer/speedometer.d.ts +125 -0
- package/dist/types/components/speedometer/types.d.ts +8 -0
- package/dist/types/components/splitter/splitter.d.ts +63 -0
- package/dist/types/components/splitter/types.d.ts +9 -0
- package/dist/types/components/stack/stack.d.ts +34 -0
- package/dist/types/components/stack/types.d.ts +3 -0
- package/dist/types/components/step/step.d.ts +16 -0
- package/dist/types/components/step/types.d.ts +1 -0
- package/dist/types/components/stepper/stepper.d.ts +218 -0
- package/dist/types/components/stepper/types.d.ts +39 -0
- package/dist/types/components/switch/switch.d.ts +162 -0
- package/dist/types/components/tabs/tabs.d.ts +182 -0
- package/dist/types/components/tabs/types.d.ts +17 -0
- package/dist/types/components/tag/tag.d.ts +172 -0
- package/dist/types/components/tag/types.d.ts +4 -0
- package/dist/types/components/tag-group/tag-group.d.ts +107 -0
- package/dist/types/components/tag-group/types.d.ts +2 -0
- package/dist/types/components/timeline/timeline.d.ts +73 -0
- package/dist/types/components/timeline/types.d.ts +28 -0
- package/dist/types/components/timeline/ui-timeline.stories.d.ts +9 -0
- package/dist/types/components/timeline-item/timeline-item.d.ts +15 -0
- package/dist/types/components/timer/timer.d.ts +123 -0
- package/dist/types/components/timer/types.d.ts +18 -0
- package/dist/types/components/timer/ui-timer.stories.d.ts +9 -0
- package/dist/types/components/toggle-group/toggle-group.d.ts +136 -0
- package/dist/types/components/toggle-group/types.d.ts +5 -0
- package/dist/types/components/toolbar/toolbar-types.d.ts +189 -0
- package/dist/types/components/toolbar/toolbar.d.ts +150 -0
- package/dist/types/components/tooltip/tooltip.d.ts +166 -0
- package/dist/types/components/tooltip/types.d.ts +3 -0
- package/dist/types/components/top-bar/top-bar.d.ts +76 -0
- package/dist/types/components/transfer-list/transfer-list.d.ts +137 -0
- package/dist/types/components/transfer-list/types.d.ts +13 -0
- package/dist/types/components/tree/tree.d.ts +180 -0
- package/dist/types/components/tree/types.d.ts +76 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +108 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-types.d.ts +17 -0
- package/dist/types/components/ui-navigation-bar/navigation-item.d.ts +26 -0
- package/dist/types/components/ui-navigation-bar/navigation-types.d.ts +19 -0
- package/dist/types/components/workspace-manager/types.d.ts +48 -0
- package/dist/types/components/workspace-manager/workspace-manager.d.ts +211 -0
- package/dist/types/components.d.ts +29634 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/service/drag-manager.d.ts +8 -0
- package/dist/types/service/event-bus.d.ts +9 -0
- package/dist/types/service/serialization.d.ts +5 -0
- package/dist/types/service/state-engine.d.ts +25 -0
- package/dist/types/service/theme-switcher.d.ts +46 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types/animation.type.d.ts +96 -0
- package/dist/types/types/common.d.ts +52 -0
- package/dist/types/types/common.type.d.ts +608 -0
- package/dist/types/types/index.d.ts +37 -0
- package/dist/types/types/text.type.d.ts +32 -0
- package/dist/types/utils/aria-live.d.ts +20 -0
- package/dist/types/utils/component-size.d.ts +2 -0
- package/dist/types/utils/dom.d.ts +58 -0
- package/dist/types/utils/focus-trap.d.ts +35 -0
- package/dist/types/utils/security.d.ts +5 -0
- package/dist/types/utils/test/setup-component-test-env.d.ts +14 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/dist/types/utils/validation.d.ts +43 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +77 -0
|
@@ -0,0 +1,1808 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-ClkOYpT8.js');
|
|
4
|
+
var security = require('./security-E1JcwxGc.js');
|
|
5
|
+
var focusTrap = require('./focus-trap-i9T6oXLc.js');
|
|
6
|
+
|
|
7
|
+
const dialogBoxCss = () => `@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:block}.ui-dialog-backdrop.minimized-backdrop,.ui-dialog-backdrop[data-minimized-backdrop]{display:none !important}.ui-dialog-backdrop{position:fixed;inset:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.5);display:flex;z-index:10000;opacity:1;transition:background-color 0.2s;animation:fadeIn 0.2s ease-out}:global(body.dialog-blur-active)>*:not(ui-dialog-box){filter:blur(8px) grayscale(20%);transition:filter 0.4s ease;pointer-events:none}.ui-dialog-backdrop.backdrop-none{background-color:transparent;pointer-events:none;}.ui-dialog-backdrop.backdrop-none .ui-dialog-box{pointer-events:auto;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);border:1px solid var(--border-default, #e5e7eb)}.ui-dialog-backdrop.closing{animation:fadeOut 0.2s ease-in forwards}.ui-dialog-backdrop.hidden-mounted{display:none !important;pointer-events:none !important}.position-center{align-items:center;justify-content:center}.position-top{align-items:flex-start;justify-content:center;padding-top:3rem}.position-bottom{align-items:flex-end;justify-content:center;padding-bottom:3rem}.position-left{align-items:center;justify-content:flex-start;padding-left:3rem}.position-right{align-items:center;justify-content:flex-end;padding-right:3rem}.position-top-right{align-items:flex-start;justify-content:flex-end;padding-top:3rem;padding-right:3rem}.position-top-left{align-items:flex-start;justify-content:flex-start;padding-top:3rem;padding-left:3rem}.position-bottom-right{align-items:flex-end;justify-content:flex-end;padding-bottom:3rem;padding-right:3rem}.position-bottom-left{align-items:flex-end;justify-content:flex-start;padding-bottom:3rem;padding-left:3rem}.ui-dialog-box{background-color:var(--bg-primary, #ffffff);border-radius:var(--ui-dialog-border-radius, 8px);box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);display:flex;flex-direction:column;max-width:90vw;max-height:90vh;position:relative;animation:scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);outline:none;}.ui-dialog-box.is-nested{box-shadow:0 30px 60px -10px rgba(0, 0, 0, 0.3), 0 15px 15px -10px rgba(0, 0, 0, 0.08);border:1px solid var(--ui-color-primary, #10b981);z-index:10001;transform-origin:center center}.ui-dialog-box.is-nested .ui-dialog-header-wrapper{background-color:var(--ui-bg-muted)}.ui-dialog-box{}@media (prefers-reduced-motion: reduce){.ui-dialog-box{animation:none !important;transition:none !important}}.ui-dialog-box{}.ui-dialog-box.density-compact{--dh-padding:8px 16px;--dc-padding:16px;--df-padding:8px 16px;font-size:0.875rem}.ui-dialog-box.density-compact .ui-dialog-content-wrapper{padding:16px !important}.ui-dialog-box.density-compact .ui-dialog-header-wrapper{padding:8px 16px !important}.ui-dialog-box.density-comfortable{--dh-padding:32px 32px 16px;--dc-padding:32px;--df-padding:24px 32px}.ui-dialog-box.density-comfortable .ui-dialog-content-wrapper{padding:32px !important}.ui-dialog-box{}.ui-dialog-box.variant-glass{background:rgba(255, 255, 255, 0.72) !important;backdrop-filter:blur(28px) saturate(180%) !important;-webkit-backdrop-filter:blur(28px) saturate(180%) !important;border:1px solid rgba(255, 255, 255, 0.4) !important}.ui-dialog-box.variant-minimal{border-color:transparent !important;box-shadow:0 4px 12px rgba(0, 0, 0, 0.08) !important}.ui-dialog-box.variant-ghost{background:transparent !important;box-shadow:none !important;border-color:transparent !important}.ui-dialog-box{}.ui-dialog-box.status-info{border-top:3px solid #10b981 !important}.ui-dialog-box.status-success{border-top:3px solid #10b981 !important}.ui-dialog-box.status-warning{border-top:3px solid #f59e0b !important}.ui-dialog-box.status-error{border-top:3px solid #ef4444 !important}.ui-dialog-box{}.ui-dialog-box.animation-fade{animation:fadeIn 0.25s ease-out}.ui-dialog-box.animation-slide-up{animation:slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-box.animation-slide-down{animation:slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-box.animation-flip{animation:flipIn 0.4s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-box.animation-scale{animation:scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-box.closing{animation:scaleOut 0.2s ease-in forwards}.ui-dialog-box.closing.animation-fade{animation-name:fadeOut}.ui-dialog-box.closing.animation-slide-up{animation-name:slideOutDown}.ui-dialog-box.closing.animation-slide-down{animation-name:slideOutUp}.ui-dialog-box{}.ui-dialog-box.type-drawer{border-radius:0;max-width:none;max-height:none;position:fixed !important;margin:0 !important;box-shadow:var(--elevation-navigation, 0 10px 40px rgba(0, 0, 0, 0.2))}.ui-dialog-box{}.ui-dialog-backdrop.position-left .ui-dialog-box.type-drawer{height:100% !important;left:0 !important;top:0 !important;width:400px;animation:slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-backdrop.position-right .ui-dialog-box.type-drawer{height:100% !important;right:0 !important;top:0 !important;left:auto !important;width:400px;animation:slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-backdrop.position-top .ui-dialog-box.type-drawer{width:100% !important;top:0 !important;left:0 !important;height:auto;max-height:80vh;animation:slideInTop 0.3s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-backdrop.position-bottom .ui-dialog-box.type-drawer{width:100% !important;bottom:0 !important;top:auto !important;left:0 !important;height:auto;max-height:80vh;animation:slideInBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1)}.ui-dialog-box{}.ui-dialog-box.type-fullscreen{width:100vw !important;height:100vh !important;max-width:none !important;max-height:none !important;border-radius:0;position:fixed !important;inset:0 !important;margin:0 !important;animation:fadeIn 0.3s ease-out}.ui-dialog-box{}.ui-dialog-box.type-messagebox{width:auto;min-width:320px;max-width:650px;text-align:center;border-radius:12px}.ui-dialog-box.type-messagebox .ui-dialog-content-wrapper{padding:32px 24px;display:flex;flex-direction:column;align-items:center;gap:16px}.ui-dialog-box.type-messagebox .ui-dialog-header-wrapper{justify-content:flex-start;border-bottom:none !important}.ui-dialog-box.type-messagebox .ui-dialog-footer-wrapper{justify-content:flex-end !important;display:flex !important;width:100% !important;margin:0 !important}.ui-dialog-box.type-messagebox .ui-dialog-footer-wrapper .footer-right{justify-content:flex-end !important;width:100% !important}.ui-dialog-box.debug-mode{outline:2px dashed var(--color-success, #10b981);outline-offset:4px}.ui-dialog-box.debug-mode::after{content:"DEBUG: " attr(id) " [" attr(status) "]";position:absolute;top:-12px;right:12px;background:var(--bg-secondary, #111827);color:var(--color-success, #10b981);font-family:"JetBrains Mono", monospace;font-size:10px;padding:2px 8px;border-radius:4px;z-index:99999;border:1px solid var(--color-success, #10b981);pointer-events:none}.ui-dialog-box *:focus-visible{outline:2px solid var(--ui-primary-color, var(--color-primary, #10b981));outline-offset:2px}.ui-dialog-box-container{display:flex;flex-direction:column;height:100%;width:100%;padding:0;gap:0;box-sizing:border-box;overflow:hidden}.ui-dialog-divider-line{height:1px;width:100%;background-color:var(--border-default, #e5e7eb);margin:0;padding:0;flex-shrink:0;display:block}.ui-dialog-box.is-dragging{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);z-index:100000 !important;transition:none !important}.ui-dialog-box.loading-active .ui-dialog-content-wrapper,.ui-dialog-box.loading-active .ui-dialog-side-nav{pointer-events:none}.ui-dialog-box.loading-active .ui-dialog-content-wrapper *,.ui-dialog-box.loading-active .ui-dialog-side-nav *{color:transparent !important;background:linear-gradient(90deg, var(--bg-primary, #f0f0f0) 25%, var(--bg-primary, #f7f7f7) 50%, var(--bg-primary, #f0f0f0) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:4px;border:none !important}.ui-dialog-box.loading-active .ui-dialog-content-wrapper img,.ui-dialog-box.loading-active .ui-dialog-content-wrapper svg,.ui-dialog-box.loading-active .ui-dialog-content-wrapper button,.ui-dialog-box.loading-active .ui-dialog-side-nav img,.ui-dialog-box.loading-active .ui-dialog-side-nav svg,.ui-dialog-box.loading-active .ui-dialog-side-nav button{visibility:hidden}@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}.ui-dialog-progress-container{height:4px;background:rgba(0, 0, 0, 0.05);width:100%;position:relative;overflow:hidden;margin-top:-20px;margin-bottom:10px}.ui-dialog-progress-bar{height:100%;background:var(--ui-color-primary, var(--color-primary, #10b981));transition:width 0.3s ease-out}.ui-dialog-taskbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);background:rgba(255, 255, 255, 0.8);backdrop-filter:blur(10px);padding:8px 16px;border-radius:12px 12px 0 0;border:1px solid var(--ui-border-default);border-bottom:none;display:flex;gap:12px;z-index:1000000;box-shadow:0 -10px 30px rgba(0, 0, 0, 0.1);animation:slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)}.ui-dialog-taskbar .taskbar-item{padding:6px 14px;background:var(--bg-primary, #ffffff);border:1px solid var(--border-default, #ddd);border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.2s;display:flex;align-items:center;gap:8px}.ui-dialog-taskbar .taskbar-item:hover{background:var(--bg-primary, #f9f9f9);transform:translateY(-2px)}.ui-dialog-taskbar .taskbar-item.active{border-color:var(--ui-color-primary);color:var(--ui-color-primary)}@keyframes slideUp{from{transform:translate(-50%, 100%)}to{transform:translate(-50%, 0)}}.ui-dialog-stepper{display:flex;justify-content:space-around;padding:16px;background:var(--ui-bg-muted);border-bottom:1px solid var(--ui-border-default)}.ui-dialog-stepper .step-item{display:flex;flex-direction:column;align-items:center;position:relative;flex:1}.ui-dialog-stepper .step-item .step-dot{width:24px;height:24px;border-radius:50%;background:var(--bg-primary, #e5e7eb);color:var(--text-muted, #9ca3af);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;z-index:2;transition:all 0.3s}.ui-dialog-stepper .step-item .step-label{font-size:11px;margin-top:6px;color:var(--text-muted, #6b7280);transition:all 0.3s}.ui-dialog-stepper .step-item .step-line{position:absolute;top:12px;left:50%;width:100%;height:2px;background:var(--bg-primary, #e5e7eb);z-index:1}.ui-dialog-stepper .step-item.active .step-dot{background:var(--ui-color-primary);color:var(--text-standard, #ffffff);transform:scale(1.2);box-shadow:0 0 0 4px rgba(var(--color-primary-rgb, 59, 130, 246), 0.1)}.ui-dialog-stepper .step-item.active .step-label{color:var(--ui-color-primary);font-weight:600}.ui-dialog-stepper .step-item.completed .step-dot{background:var(--color-success, #10b981);color:var(--text-standard, #ffffff)}.ui-dialog-stepper .step-item.completed .step-line{background:var(--color-success, #10b981)}.ui-dialog-box.hidden-mounted{display:none !important}.ui-dialog-box.scroll-paper{overflow:hidden;display:flex;flex-direction:column}.ui-dialog-main-container{display:flex;flex:1;min-height:0;overflow:hidden}.ui-dialog-main-container.has-side-nav{flex-direction:row}.ui-dialog-side-nav{width:240px;background:var(--ui-bg-muted, var(--bg-primary, #f9fafb));border-right:1px solid var(--ui-border-default, var(--border-default, #e5e7eb));overflow-y:auto;flex-shrink:0}.ui-dialog-toolbar{padding:8px 16px;background:var(--ui-bg-default);border-bottom:1px solid var(--ui-border-default);display:flex;align-items:center;gap:12px}.ui-dialog-status-bar{padding:4px 16px;background:var(--ui-bg-muted);border-top:1px solid var(--ui-border-default);font-size:11px;color:var(--ui-text-secondary)}.ui-dialog-box.scroll-paper .ui-dialog-content-wrapper{flex:1;overflow-y:auto;font-size:16px;line-height:1.5;color:var(--text-secondary, #374151);min-height:150px;max-height:70vh;padding:24px}.ui-dialog-backdrop.scroll-body-active{position:absolute !important;top:0 !important;left:0 !important;right:0 !important;bottom:auto !important;height:auto !important;min-height:100%;overflow:visible;display:block;padding:80px 0;background-color:rgba(0, 0, 0, 0.4)}.ui-dialog-box.scroll-body{display:block !important;max-height:none !important;height:auto !important;min-height:min-content;margin:0 auto;}.ui-dialog-box.scroll-body .ui-dialog-box-container{display:block !important;height:auto !important;overflow:visible !important}.ui-dialog-box.scroll-body{}.ui-dialog-box.scroll-body .ui-dialog-main-container{display:block !important;height:auto !important;min-height:0 !important;overflow:visible !important;flex:none !important}.ui-dialog-box.scroll-body .ui-dialog-content-wrapper{overflow:visible !important;max-height:none !important;height:auto !important;padding:24px;display:block !important}.ui-dialog-prompt-container{margin-top:16px;display:flex;flex-direction:column;gap:8px}.ui-dialog-prompt-container .prompt-label{font-size:14px;font-weight:600;color:var(--text-standard)}.ui-dialog-prompt-container .ui-dialog-prompt-input{width:100%;padding:10px 12px;border:1px solid var(--border-default, #d1d5db);border-radius:6px;font-size:14px;transition:border-color 0.2s, box-shadow 0.2s;background:var(--bg-primary);color:var(--text-standard);box-sizing:border-box}.ui-dialog-prompt-container .ui-dialog-prompt-input:focus{outline:none;border-color:var(--color-primary, #10b981);box-shadow:0 0 0 3px rgba(59, 130, 246, 0.1)}.ui-dialog-header-wrapper{min-height:fit-content;flex-shrink:0}.ui-dialog-footer-wrapper{min-height:fit-content;flex-shrink:0;width:100%}.ui-dialog-box.closing{animation:scaleOut 0.2s ease-in forwards}@keyframes shake{0%,100%{transform:translateX(0) rotate(0deg)}12.5%{transform:translateX(-6px) rotate(-1deg)}25%{transform:translateX(5px) rotate(1deg)}37.5%{transform:translateX(-4px) rotate(-0.8deg)}50%{transform:translateX(3px) rotate(0.6deg)}62.5%{transform:translateX(-2px) rotate(-0.4deg)}75%{transform:translateX(1px) rotate(0.2deg)}}.ui-dialog-box.shake .ui-dialog-box-container{animation:shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform-origin:center;will-change:transform}.ui-dialog-box.variant-outlined{border:2px solid var(--border-default, #e5e7eb)}.ui-dialog-box.variant-outlined.status-info{border-color:var(--color-primary, #10b981)}.ui-dialog-box.variant-outlined.status-success{border-color:var(--color-success, #10b981)}.ui-dialog-box.variant-outlined.status-warning{border-color:var(--color-warning, #f59e0b)}.ui-dialog-box.variant-outlined.status-error{border-color:var(--color-danger, #ef4444)}.ui-dialog-box.variant-filled.status-info{background:linear-gradient(to bottom, var(--bg-primary, #dbeafe) 0%, var(--bg-primary, #ffffff) 100%);border-left:4px solid var(--color-primary, #10b981)}.ui-dialog-box.variant-filled.status-success{background:linear-gradient(to bottom, var(--bg-primary, #d1fae5) 0%, var(--bg-primary, #ffffff) 100%);border-left:4px solid var(--color-success, #10b981)}.ui-dialog-box.variant-filled.status-warning{background:linear-gradient(to bottom, var(--bg-primary, #fef3c7) 0%, var(--bg-primary, #ffffff) 100%);border-left:4px solid var(--color-warning, #f59e0b)}.ui-dialog-box.variant-filled.status-error{background:linear-gradient(to bottom, var(--bg-primary, #fee2e2) 0%, var(--bg-primary, #ffffff) 100%);border-left:4px solid var(--color-danger, #ef4444)}.ui-dialog-box.maximized{width:90vw !important;height:90vh !important;max-width:90vw;max-height:90vh;border-radius:8px;position:fixed;top:5vh !important;left:5vw !important;transform:none !important;}.ui-dialog-box.minimized{display:flex !important;flex-shrink:0;width:192px !important;height:48px !important;align-self:stretch;position:relative !important;inset:auto !important;transform:none !important;margin:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;border:none !important;overflow:hidden;animation:trayTabIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards}.ui-dialog-box.minimized .ui-dialog-box-container{height:100%;width:100%}.ui-dialog-box.minimized .ui-tray-tab{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0 24px;gap:12px;cursor:pointer;background:transparent;border-right:1px solid rgba(255, 255, 255, 0.12);color:#ffffff !important;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);position:relative;font-weight:600;font-size:13.5px;min-width:160px;max-width:260px;letter-spacing:0.01em}.ui-dialog-box.minimized .ui-tray-tab:hover{background:rgba(255, 255, 255, 0.04)}.ui-dialog-box.minimized .ui-tray-tab .tab-label{color:rgba(255, 255, 255, 0.9);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;text-align:center}.ui-dialog-box.minimized .ui-tray-tab .tab-close{background:rgba(255, 255, 255, 0.1);border:none;color:#fff;font-size:16px;padding:2px 6px;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all 0.2s;margin-left:4px}.ui-dialog-box.minimized .ui-tray-tab .tab-close:hover{background:#ef4444;color:#fff}.ui-dialog-box.minimized .ui-tray-tab:hover{background:rgba(255, 255, 255, 0.12);color:#fff}.ui-peek-panel{position:fixed;bottom:50px;left:50%;transform:translateX(-50%);width:500px;max-width:90vw;max-height:70vh;background:var(--bg-primary, #fff);border-radius:12px 12px 0 0;border:1px solid var(--border-default, #eee);box-shadow:0 -10px 40px rgba(0, 0, 0, 0.25);display:flex;flex-direction:column;overflow:hidden;z-index:1000002;animation:peekIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards}.ui-peek-panel.status-info{border-top:3px solid #10b981}.ui-peek-panel.status-success{border-top:3px solid #10b981}.ui-peek-panel.status-warning{border-top:3px solid #f59e0b}.ui-peek-panel.status-error{border-top:3px solid #ef4444}.ui-peek-panel .ui-dialog-content-wrapper{overflow-y:auto;flex:1;padding:20px}@keyframes trayTabIn{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes peekIn{from{opacity:0;transform:translateX(-50%) translateY(20px) scale(0.98)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}@keyframes slideInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideOutUp{to{opacity:0;transform:translateY(-30px)}}@keyframes slideOutDown{to{opacity:0;transform:translateY(30px)}}@keyframes flipIn{from{opacity:0;transform:perspective(1000px) rotateX(-15deg)}to{opacity:1;transform:perspective(1000px) rotateX(0)}}.resize-handle{position:absolute;bottom:0;right:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg, transparent 50%, var(--color-primary, #9ca3af) 50%);background-size:10px 10px;clip-path:polygon(100% 0, 100% 100%, 0 100%);margin:2px}.ui-dialog-box.draggable .ui-dialog-header-wrapper{cursor:move}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes scaleIn{from{opacity:0;transform:scale(0.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes slideInLeft{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}@keyframes slideInRight{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}@keyframes slideInTop{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}@keyframes slideInBottom{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes scaleOut{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.95)}}@media (max-width: 768px){.ui-dialog-box{width:95vw;max-width:95vw}}.ui-dialog-box.size-xs{width:320px}.ui-dialog-box.size-sm{width:480px}.ui-dialog-box.size-md{width:768px}.ui-dialog-box.size-lg{width:1024px}.ui-dialog-box.size-xl{width:1280px}.ui-dialog-box.size-fill{width:90vw;height:90vh}.ui-dialog-footer-wrapper{padding:0;display:flex;justify-content:flex-end;align-items:center;background-color:transparent}.footer-left,.footer-right{display:flex;gap:12px;align-items:center}.footer-right{margin-left:auto}.ui-dialog-confirmation{display:flex;align-items:center;padding:0 8px}.snap-indicator{position:fixed;background:rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);border:2px solid var(--ui-color-primary, var(--color-primary, #10b981));pointer-events:none;z-index:9999;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);border-radius:8px}.snap-indicator.snap-left{left:0;top:0;bottom:0;width:50vw}.snap-indicator.snap-right{right:0;top:0;bottom:0;width:50vw}.snap-indicator.snap-top{left:0;top:0;right:0;height:100vh}.snap-indicator.snap-bottom{left:0;bottom:0;right:0;height:50vh}.ui-dialog-sub-overlay{position:absolute;inset:0;background:rgba(0, 0, 0, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:50;animation:fadeIn 0.3s ease-out}.ui-dialog-sub-overlay .sub-overlay-card{background:var(--bg-primary, #ffffff);padding:24px;border-radius:12px;box-shadow:var(--ui-shadow-lg);max-width:80%;animation:scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)}.ui-dialog-sub-overlay .sub-overlay-card h4{margin:0 0 10px;font-size:18px}.ui-dialog-sub-overlay .sub-overlay-card p{margin:0 0 20px;color:var(--ui-text-secondary);line-height:1.5}.ui-dialog-sub-overlay .sub-overlay-actions{display:flex;justify-content:flex-end;gap:12px}.ui-dialog-sub-overlay .sub-overlay-actions button{padding:8px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all 0.2s}.ui-dialog-sub-overlay .sub-overlay-actions .btn-ghost{background:transparent;border:1px solid var(--ui-border-default);color:var(--ui-text-primary)}.ui-dialog-sub-overlay .sub-overlay-actions .btn-ghost:hover{background:rgba(0, 0, 0, 0.05)}.ui-dialog-sub-overlay .sub-overlay-actions .btn-primary{background:var(--ui-color-primary, var(--color-primary, #10b981));border:1px solid var(--ui-color-primary, var(--color-primary, #10b981));color:var(--text-standard, #ffffff)}.ui-dialog-sub-overlay .sub-overlay-actions .btn-primary:hover{background:var(--ui-color-primary-dark, var(--color-primary-hover, #2563eb))}.ui-dialog-box.glass-effect{background:rgba(255, 255, 255, 0.7);backdrop-filter:blur(20px);border-color:rgba(255, 255, 255, 0.4)}.spinner{width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--bg-primary, #ffffff);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}`;
|
|
8
|
+
|
|
9
|
+
const dialogTrayCss = () => `.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}#db-tray-dock{position:fixed;bottom:0;left:0;right:0;height:48px;z-index:1000000;pointer-events:none;display:none;flex-direction:row;align-items:flex-end;justify-content:center}#db-tray-bar{max-width:92vw;height:52px;display:flex;flex-direction:row;align-items:stretch;pointer-events:auto;overflow:hidden;border-radius:16px 16px 0 0;background:rgba(13, 17, 23, 0.98);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(200px) saturate(180%);border:1px solid rgba(255, 255, 255, 0.08);border-bottom:none;box-shadow:0 -8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05)}#db-tray-bar .db-dock-row{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1;min-width:0;overflow-x:auto;scroll-behavior:smooth;justify-content:flex-start;-ms-overflow-style:none;scrollbar-width:none;}#db-tray-bar .db-dock-row::-webkit-scrollbar{display:none}.db-dock-arrow{display:flex;align-items:center;justify-content:center;width:36px;background:transparent;border:none;cursor:pointer;color:rgba(255, 255, 255, 0.4);opacity:0;pointer-events:none;transition:opacity 0.2s, color 0.15s, background 0.15s;font-size:20px}.db-dock-arrow.visible{opacity:1;pointer-events:auto}.db-dock-arrow:hover{color:#fff;background:rgba(255, 255, 255, 0.06)}.db-dock-arrow-left{border-right:1px solid rgba(255, 255, 255, 0.08)}.db-dock-arrow-right{border-left:1px solid rgba(255, 255, 255, 0.08)}#db-dock-menu-btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:0 12px;background:rgba(255, 255, 255, 0.03);margin:8px;border-radius:10px;border:1px solid rgba(255, 255, 255, 0.05);cursor:pointer;color:rgba(255, 255, 255, 0.5);transition:all 0.2s ease;min-width:64px}#db-dock-menu-btn:hover,#db-dock-menu-btn.open{background:rgba(255, 255, 255, 0.08);color:#fff;border-color:rgba(255, 255, 255, 0.1)}#db-dock-menu-btn .db-badge{min-width:20px;height:20px;border-radius:10px;background:#4f46e5;color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 12px rgba(79, 70, 229, 0.4)}#db-tray-menu-panel{position:fixed;z-index:1000003;min-width:252px;max-width:310px;background:rgba(8, 14, 30, 0.97);backdrop-filter:blur(28px) saturate(200%);-webkit-backdrop-filter:blur(28px) saturate(200%);border:1px solid rgba(255, 255, 255, 0.11);border-radius:10px;box-shadow:0 -4px 32px rgba(0, 0, 0, 0.55), 0 16px 48px rgba(0, 0, 0, 0.4);display:none;flex-direction:column;overflow:hidden;transform-origin:bottom right;animation:sdMenuIn 0.17s cubic-bezier(0.16, 1, 0.3, 1) forwards}#db-tray-menu-panel.open{display:flex}#db-tray-menu-hdr{display:flex;align-items:center;justify-content:space-between;padding:9px 13px 7px;font-size:10px;font-weight:700;letter-spacing:0.07em;text-transform:uppercase;color:rgba(255, 255, 255, 0.28);border-bottom:1px solid rgba(255, 255, 255, 0.06)}#db-tray-menu-list{max-height:320px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255, 255, 255, 0.12) transparent}.db-mi{display:flex;align-items:center;gap:10px;padding:10px 16px;cursor:pointer;transition:all 0.2s;border-bottom:1px solid rgba(255, 255, 255, 0.04)}.db-mi:last-child{border-bottom:none}.db-mi:hover{background:rgba(255, 255, 255, 0.07)}.db-mi-dot{width:7px;height:7px;border-radius:50%;background:rgba(255, 255, 255, 0.18)}.db-mi-dot.info{background:#10b981}.db-mi-dot.success{background:#10b981;box-shadow:0 0 5px rgba(16, 185, 129, 0.5)}.db-mi-dot.warning{background:#f59e0b}.db-mi-dot.error{background:#ef4444;box-shadow:0 0 5px rgba(239, 68, 68, 0.5)}.db-mi-label{flex:1;font-size:12.5px;font-weight:500;color:rgba(255, 255, 255, 0.72);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#db-tray-overlay{position:fixed;inset:0;z-index:1000002;display:none}#db-tray-overlay.open{display:block}@keyframes sdMenuIn{from{opacity:0;transform:translateY(8px) scale(0.96)}to{opacity:1;transform:translateY(0) scale(1)}}`;
|
|
10
|
+
|
|
11
|
+
// ─── Global tray registry ────────────────────────────────────────────────────
|
|
12
|
+
// Dock bar: [‹ arrow] [scrollable tab row] [› arrow] [≡ all-tabs menu]
|
|
13
|
+
const DialogTray = new class {
|
|
14
|
+
_items = [];
|
|
15
|
+
_outer = null;
|
|
16
|
+
_row = null;
|
|
17
|
+
_menuBtn = null;
|
|
18
|
+
_menuPanel = null;
|
|
19
|
+
_menuList = null;
|
|
20
|
+
_menuOpen = false;
|
|
21
|
+
_originals = new Map();
|
|
22
|
+
_moving = new Set();
|
|
23
|
+
_injectStyles() {
|
|
24
|
+
if (document.getElementById('db-tray-dynamic-styles'))
|
|
25
|
+
return;
|
|
26
|
+
const s = document.createElement('style');
|
|
27
|
+
s.id = 'db-tray-dynamic-styles';
|
|
28
|
+
s.textContent = `
|
|
29
|
+
#db-tray-dock { position: fixed; bottom: 0; left: 0; right: 0; height: 52px; z-index: 1000000; pointer-events: none; display: flex; flex-direction: row; align-items: flex-end; justify-content: center; }
|
|
30
|
+
#db-tray-bar { max-width: 95vw; height: 52px; display: flex; flex-direction: row; align-items: stretch; pointer-events: auto; overflow: hidden; border-radius: 16px 16px 0 0; background: rgba(13, 17, 23, 0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: none; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6); }
|
|
31
|
+
#db-tray-bar .db-dock-row { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; flex: 1; min-width: 0; overflow-x: hidden; scroll-behavior: smooth; justify-content: center; }
|
|
32
|
+
#db-tray-bar .db-dock-row::-webkit-scrollbar { display: none; }
|
|
33
|
+
.db-dock-arrow { display: flex; align-items: center; justify-content: center; width: 36px; background: transparent; border: none; cursor: pointer; color: #fff; opacity: 0; pointer-events: none; transition: all 0.2s; font-size: 20px; }
|
|
34
|
+
.db-dock-arrow.visible { opacity: 1; pointer-events: auto; }
|
|
35
|
+
#db-dock-menu-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: rgba(255, 255, 255, 0.05); margin: 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; color: #fff; transition: all 0.2s; min-width: 64px; }
|
|
36
|
+
#db-dock-menu-btn .db-badge { min-width: 20px; height: 20px; border-radius: 10px; background: #4f46e5; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
|
|
37
|
+
.ui-tray-tab { min-width: 160px; max-width: 300px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 32px; gap: 12px; cursor: pointer; border-right: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; color: #fff !important; }
|
|
38
|
+
.ui-tray-tab * { color: #fff !important; }
|
|
39
|
+
.ui-tray-tab:hover { background: rgba(255,255,255,0.08); }
|
|
40
|
+
.ui-tray-tab .tab-label { font-size: 13.5px; font-weight: 600; color:red; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; margin: 0 4px; }
|
|
41
|
+
.ui-tray-btn { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; border: none; background: rgba(255,255,255,0.12); cursor: pointer; }
|
|
42
|
+
.ui-tray-btn:hover { background: #ef4444; }
|
|
43
|
+
`;
|
|
44
|
+
document.head.appendChild(s);
|
|
45
|
+
}
|
|
46
|
+
_ensureDock() {
|
|
47
|
+
if (this._outer)
|
|
48
|
+
return;
|
|
49
|
+
this._injectStyles(); // Fail-safe injection
|
|
50
|
+
const outer = document.createElement('div');
|
|
51
|
+
outer.id = 'db-tray-dock';
|
|
52
|
+
// Use JS for critical layout to ensure it doesn't impact page height even if CSS is delayed
|
|
53
|
+
Object.assign(outer.style, {
|
|
54
|
+
position: 'fixed',
|
|
55
|
+
bottom: '0',
|
|
56
|
+
left: '0',
|
|
57
|
+
right: '0',
|
|
58
|
+
zIndex: '1000000',
|
|
59
|
+
display: 'none',
|
|
60
|
+
pointerEvents: 'none'
|
|
61
|
+
});
|
|
62
|
+
const bar = document.createElement('div');
|
|
63
|
+
bar.id = 'db-tray-bar';
|
|
64
|
+
const btnL = document.createElement('button');
|
|
65
|
+
btnL.className = 'db-dock-arrow db-dock-arrow-left';
|
|
66
|
+
btnL.textContent = '\u2039'; // ‹
|
|
67
|
+
const row = document.createElement('div');
|
|
68
|
+
row.className = 'db-dock-row';
|
|
69
|
+
const btnR = document.createElement('button');
|
|
70
|
+
btnR.className = 'db-dock-arrow db-dock-arrow-right';
|
|
71
|
+
btnR.textContent = '\u203A'; // ›
|
|
72
|
+
const menuBtn = document.createElement('button');
|
|
73
|
+
menuBtn.id = 'db-dock-menu-btn';
|
|
74
|
+
const menuIcon = document.createElement('span');
|
|
75
|
+
menuIcon.textContent = '\u2630'; // ☰
|
|
76
|
+
const badge = document.createElement('span');
|
|
77
|
+
badge.className = 'db-badge';
|
|
78
|
+
badge.textContent = '0';
|
|
79
|
+
menuBtn.append(menuIcon, badge);
|
|
80
|
+
bar.append(btnL, row, btnR, menuBtn);
|
|
81
|
+
outer.appendChild(bar);
|
|
82
|
+
document.body.appendChild(outer);
|
|
83
|
+
const overlay = document.createElement('div');
|
|
84
|
+
overlay.id = 'db-tray-overlay';
|
|
85
|
+
const panel = document.createElement('div');
|
|
86
|
+
panel.id = 'db-tray-menu-panel';
|
|
87
|
+
// Safety position for panel too
|
|
88
|
+
Object.assign(panel.style, {
|
|
89
|
+
position: 'fixed',
|
|
90
|
+
zIndex: '1000003',
|
|
91
|
+
display: 'none'
|
|
92
|
+
});
|
|
93
|
+
const hdr = document.createElement('div');
|
|
94
|
+
hdr.id = 'db-tray-menu-hdr';
|
|
95
|
+
hdr.textContent = 'Minimized Windows';
|
|
96
|
+
const list = document.createElement('div');
|
|
97
|
+
list.id = 'db-tray-menu-list';
|
|
98
|
+
panel.append(hdr, list);
|
|
99
|
+
document.body.append(overlay, panel);
|
|
100
|
+
btnL.onclick = () => { row.scrollLeft -= 180; };
|
|
101
|
+
btnR.onclick = () => { row.scrollLeft += 180; };
|
|
102
|
+
menuBtn.onclick = () => { this._menuOpen ? this._closeMenu() : this._openMenu(); };
|
|
103
|
+
overlay.onclick = () => this._closeMenu();
|
|
104
|
+
const syncArrows = () => {
|
|
105
|
+
btnL.classList.toggle('visible', row.scrollLeft > 5);
|
|
106
|
+
btnR.classList.toggle('visible', row.scrollLeft < row.scrollWidth - row.clientWidth - 5);
|
|
107
|
+
};
|
|
108
|
+
row.onscroll = syncArrows;
|
|
109
|
+
if (window.ResizeObserver)
|
|
110
|
+
new ResizeObserver(syncArrows).observe(row);
|
|
111
|
+
this._outer = outer;
|
|
112
|
+
this._row = row;
|
|
113
|
+
this._menuBtn = menuBtn;
|
|
114
|
+
this._menuPanel = panel;
|
|
115
|
+
this._menuList = list;
|
|
116
|
+
}
|
|
117
|
+
_openMenu() {
|
|
118
|
+
if (!this._menuBtn || !this._menuPanel)
|
|
119
|
+
return;
|
|
120
|
+
this._menuOpen = true;
|
|
121
|
+
this._syncMenu();
|
|
122
|
+
const r = this._menuBtn.getBoundingClientRect();
|
|
123
|
+
const p = this._menuPanel;
|
|
124
|
+
p.style.display = 'flex'; // Ensure it's rendered to get dimensions
|
|
125
|
+
const pr = p.getBoundingClientRect();
|
|
126
|
+
// Position fixed at bottom-right based on button position
|
|
127
|
+
p.style.left = `${r.right - pr.width}px`;
|
|
128
|
+
p.style.top = `${r.top - pr.height - 12}px`;
|
|
129
|
+
p.classList.add('open');
|
|
130
|
+
document.getElementById('db-tray-overlay')?.classList.add('open');
|
|
131
|
+
}
|
|
132
|
+
_closeMenu() {
|
|
133
|
+
this._menuOpen = false;
|
|
134
|
+
this._menuPanel?.classList.remove('open');
|
|
135
|
+
document.getElementById('db-tray-overlay')?.classList.remove('open');
|
|
136
|
+
}
|
|
137
|
+
_syncMenu() {
|
|
138
|
+
if (!this._menuList || !this._menuBtn)
|
|
139
|
+
return;
|
|
140
|
+
const items = this.minimized();
|
|
141
|
+
const badge = this._menuBtn.querySelector('.db-badge');
|
|
142
|
+
if (badge)
|
|
143
|
+
badge.textContent = String(items.length);
|
|
144
|
+
while (this._menuList.firstChild)
|
|
145
|
+
this._menuList.removeChild(this._menuList.firstChild);
|
|
146
|
+
if (!items.length) {
|
|
147
|
+
const empty = document.createElement('div');
|
|
148
|
+
empty.style.cssText = 'padding:16px;font-size:11px;color:#666;text-align:center;';
|
|
149
|
+
empty.textContent = 'No minimized windows';
|
|
150
|
+
this._menuList.appendChild(empty);
|
|
151
|
+
}
|
|
152
|
+
items.forEach(d => {
|
|
153
|
+
const row = document.createElement('div');
|
|
154
|
+
row.className = 'db-mi';
|
|
155
|
+
const dot = document.createElement('span');
|
|
156
|
+
dot.className = `db-mi-dot ${d.status}`;
|
|
157
|
+
const label = document.createElement('span');
|
|
158
|
+
label.className = 'db-mi-label';
|
|
159
|
+
label.textContent = d.dockLabel || d.dialogTitle || 'Dialog';
|
|
160
|
+
row.append(dot, label);
|
|
161
|
+
row.onclick = () => { this.openPeekFor(d); this._closeMenu(); };
|
|
162
|
+
this._menuList?.appendChild(row);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
openPeekFor(d) {
|
|
166
|
+
const wasPeek = d._dockPeek;
|
|
167
|
+
this.minimized().forEach(i => i._dockPeek = false);
|
|
168
|
+
if (wasPeek) {
|
|
169
|
+
d.restore(); // If was already peeking, clicking again restores it
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
d._dockPeek = true;
|
|
173
|
+
}
|
|
174
|
+
this._syncMenu();
|
|
175
|
+
requestAnimationFrame(() => d.el.scrollIntoView({ behavior: 'smooth', inline: 'center' }));
|
|
176
|
+
}
|
|
177
|
+
register(d) {
|
|
178
|
+
if (!this._items.includes(d)) {
|
|
179
|
+
this._items.push(d);
|
|
180
|
+
this._reflow(); // Update counter when added
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
unregister(d) {
|
|
184
|
+
if (this._moving.has(d))
|
|
185
|
+
return;
|
|
186
|
+
this._originals.forEach((orig, item) => {
|
|
187
|
+
if (item === d && this._row && d.el.parentElement === this._row) {
|
|
188
|
+
orig.parent.insertBefore(d.el, orig.nextSibling);
|
|
189
|
+
this._originals.delete(d);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
this._items = this._items.filter(i => i !== d);
|
|
193
|
+
this._reflow();
|
|
194
|
+
}
|
|
195
|
+
minimized() { return this._items.filter(d => d.minimized && d.open); }
|
|
196
|
+
// Only items that should physically live inside the tray bar row (non-peeked tabs)
|
|
197
|
+
inTray() { return this.minimized().filter(d => !d._dockPeek); }
|
|
198
|
+
reflow() { this._reflow(); }
|
|
199
|
+
get() { return this; }
|
|
200
|
+
getAll() { return this._items; }
|
|
201
|
+
getMinimized() { return this.minimized(); }
|
|
202
|
+
_reflow() {
|
|
203
|
+
const allMin = this.minimized();
|
|
204
|
+
const itemsInTray = this.inTray();
|
|
205
|
+
if (allMin.length > 0)
|
|
206
|
+
this._ensureDock();
|
|
207
|
+
const row = this._row;
|
|
208
|
+
if (!row)
|
|
209
|
+
return;
|
|
210
|
+
itemsInTray.forEach(d => {
|
|
211
|
+
if (d.el.parentElement !== row) {
|
|
212
|
+
// Only save original parent if it's NOT the tray bar itself
|
|
213
|
+
const parent = d.el.parentNode;
|
|
214
|
+
if (parent && parent !== row) {
|
|
215
|
+
this._originals.set(d, { parent: parent, nextSibling: d.el.nextSibling });
|
|
216
|
+
}
|
|
217
|
+
else if (!this._originals.has(d)) {
|
|
218
|
+
this._originals.set(d, { parent: document.body, nextSibling: null });
|
|
219
|
+
}
|
|
220
|
+
this._moving.add(d);
|
|
221
|
+
row.appendChild(d.el);
|
|
222
|
+
this._moving.delete(d);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
this._originals.forEach((orig, d) => {
|
|
226
|
+
const shouldBeInTray = itemsInTray.includes(d);
|
|
227
|
+
if (!shouldBeInTray && d.el.parentElement === row) {
|
|
228
|
+
// Safe restoration: check if nextSibling is still valid/attached
|
|
229
|
+
if (orig.nextSibling && orig.nextSibling.parentNode === orig.parent) {
|
|
230
|
+
orig.parent.insertBefore(d.el, orig.nextSibling);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
// Fallback to append if sibling is gone or parent is inconsistent
|
|
234
|
+
orig.parent.appendChild(d.el);
|
|
235
|
+
}
|
|
236
|
+
this._originals.delete(d);
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
if (this._outer)
|
|
240
|
+
this._outer.style.display = allMin.length > 0 ? 'flex' : 'none';
|
|
241
|
+
this._syncMenu();
|
|
242
|
+
}
|
|
243
|
+
}();
|
|
244
|
+
const DialogBox = class {
|
|
245
|
+
constructor(hostRef) {
|
|
246
|
+
index.registerInstance(this, hostRef);
|
|
247
|
+
this.dialogClosed = index.createEvent(this, "dialogClosed");
|
|
248
|
+
this.undo = index.createEvent(this, "undo");
|
|
249
|
+
this.redo = index.createEvent(this, "redo");
|
|
250
|
+
this.dialogOpened = index.createEvent(this, "dialogOpened");
|
|
251
|
+
this.toastRequest = index.createEvent(this, "toastRequest");
|
|
252
|
+
this.auditLog = index.createEvent(this, "auditLog");
|
|
253
|
+
this.beforeOpen = index.createEvent(this, "beforeOpen");
|
|
254
|
+
this.openStarted = index.createEvent(this, "openStarted");
|
|
255
|
+
this.afterOpen = index.createEvent(this, "afterOpen");
|
|
256
|
+
this.beforeCloseEvent = index.createEvent(this, "beforeCloseEvent");
|
|
257
|
+
this.closeStarted = index.createEvent(this, "closeStarted");
|
|
258
|
+
this.afterClose = index.createEvent(this, "afterClose");
|
|
259
|
+
this.menuAction = index.createEvent(this, "menuAction");
|
|
260
|
+
this.ok = index.createEvent(this, "ok");
|
|
261
|
+
this.cancel = index.createEvent(this, "cancel");
|
|
262
|
+
this.dialogReset = index.createEvent(this, "dialogReset");
|
|
263
|
+
this.dialogMaximized = index.createEvent(this, "dialogMaximized");
|
|
264
|
+
this.dialogMinimized = index.createEvent(this, "dialogMinimized");
|
|
265
|
+
this.menu = index.createEvent(this, "menu");
|
|
266
|
+
}
|
|
267
|
+
_defaultDialogTitle = '';
|
|
268
|
+
_defaultOkText = '';
|
|
269
|
+
get el() { return index.getElement(this); }
|
|
270
|
+
_restoredLayout = undefined;
|
|
271
|
+
_isShaking = false;
|
|
272
|
+
_sessionTimedOut = false;
|
|
273
|
+
/**
|
|
274
|
+
* Whether the dialog is open
|
|
275
|
+
*/
|
|
276
|
+
open = false;
|
|
277
|
+
/**
|
|
278
|
+
* Dialog title
|
|
279
|
+
*/
|
|
280
|
+
dialogTitle = '';
|
|
281
|
+
/**
|
|
282
|
+
* Dialog subtitle
|
|
283
|
+
*/
|
|
284
|
+
subtitle = '';
|
|
285
|
+
/**
|
|
286
|
+
* Whether the dialog is maximized
|
|
287
|
+
*/
|
|
288
|
+
maximized = false;
|
|
289
|
+
/**
|
|
290
|
+
* Whether the dialog is minimized
|
|
291
|
+
*/
|
|
292
|
+
minimized = false;
|
|
293
|
+
/**
|
|
294
|
+
* Dialog width. Explicit width takes precedence over size if size is 'custom'.
|
|
295
|
+
*/
|
|
296
|
+
width = '500px';
|
|
297
|
+
/**
|
|
298
|
+
* Dialog height
|
|
299
|
+
*/
|
|
300
|
+
height = 'auto';
|
|
301
|
+
/**
|
|
302
|
+
* Path to header image
|
|
303
|
+
*/
|
|
304
|
+
headerImage;
|
|
305
|
+
/**
|
|
306
|
+
* Icon name to show in the header
|
|
307
|
+
*/
|
|
308
|
+
icon = '';
|
|
309
|
+
/**
|
|
310
|
+
* User avatar URL to show in the header
|
|
311
|
+
*/
|
|
312
|
+
avatar = '';
|
|
313
|
+
/**
|
|
314
|
+
* Whether to show maximize button
|
|
315
|
+
*/
|
|
316
|
+
showMaximize = false;
|
|
317
|
+
/**
|
|
318
|
+
* Whether to show minimize button
|
|
319
|
+
*/
|
|
320
|
+
showMinimize = false;
|
|
321
|
+
/**
|
|
322
|
+
* Whether to show close button
|
|
323
|
+
*/
|
|
324
|
+
showClose = true;
|
|
325
|
+
/**
|
|
326
|
+
* Whether to show menu button (Action Menu)
|
|
327
|
+
*/
|
|
328
|
+
showMenu = false;
|
|
329
|
+
/**
|
|
330
|
+
* Icon for the menu trigger button in the header.
|
|
331
|
+
* Defaults to 'more-horizontal' (⋯). Use 'settings' for a gear, 'sliders-horizontal' for filters, etc.
|
|
332
|
+
*/
|
|
333
|
+
menuIcon = 'more-horizontal';
|
|
334
|
+
/**
|
|
335
|
+
* Tooltip text for the menu trigger button.
|
|
336
|
+
*/
|
|
337
|
+
menuTitle = 'Menu';
|
|
338
|
+
/**
|
|
339
|
+
* Whether to show the header
|
|
340
|
+
*/
|
|
341
|
+
showHeader = true;
|
|
342
|
+
/**
|
|
343
|
+
* Whether to show the footer
|
|
344
|
+
*/
|
|
345
|
+
showFooter = true;
|
|
346
|
+
/**
|
|
347
|
+
* Dialog variant style
|
|
348
|
+
*/
|
|
349
|
+
variant = 'outlined';
|
|
350
|
+
/**
|
|
351
|
+
* Dialog status/type
|
|
352
|
+
*/
|
|
353
|
+
status = 'default';
|
|
354
|
+
/**
|
|
355
|
+
* Backdrop Behavior. 'default' (closes on click), 'static' (no close), 'none' (no backdrop).
|
|
356
|
+
*/
|
|
357
|
+
backdrop = 'default';
|
|
358
|
+
/**
|
|
359
|
+
* Scroll behavior. 'paper' (scroll inside content), 'body' (scroll whole dialog).
|
|
360
|
+
*/
|
|
361
|
+
scrollArea = 'paper';
|
|
362
|
+
/**
|
|
363
|
+
* Dialog functional type.
|
|
364
|
+
* - 'modal': Standard centered modal.
|
|
365
|
+
* - 'drawer': Slides from an edge (determined by position).
|
|
366
|
+
* - 'fullscreen': Occupies entire screen.
|
|
367
|
+
* - 'alert': Emphasis on the message, simple actions.
|
|
368
|
+
* - 'confirm': Standard confirmation with OK/Cancel flow.
|
|
369
|
+
* - 'prompt': Modal with an input field for user entry.
|
|
370
|
+
* - 'messagebox': Simplified modal for informational messages.
|
|
371
|
+
* - (Legacy): 'default' | 'delete' | 'upload' | 'session' | 'terms'
|
|
372
|
+
*/
|
|
373
|
+
type = 'modal';
|
|
374
|
+
/**
|
|
375
|
+
* Label for the input field (only for 'prompt' type).
|
|
376
|
+
*/
|
|
377
|
+
promptLabel = '';
|
|
378
|
+
/**
|
|
379
|
+
* Placeholder text for the prompt input.
|
|
380
|
+
*/
|
|
381
|
+
promptPlaceholder = '';
|
|
382
|
+
/**
|
|
383
|
+
* Input type for the prompt (text, password, etc.).
|
|
384
|
+
*/
|
|
385
|
+
promptType = 'text';
|
|
386
|
+
/**
|
|
387
|
+
* Initial value for the prompt input.
|
|
388
|
+
*/
|
|
389
|
+
promptInitialValue = '';
|
|
390
|
+
/**
|
|
391
|
+
* Session timeout duration in seconds (only for 'session' type).
|
|
392
|
+
*/
|
|
393
|
+
sessionTimeout = 60;
|
|
394
|
+
/**
|
|
395
|
+
* Whether to automatically submit 'session' dialog on timeout.
|
|
396
|
+
* If false, it will just close (cancel).
|
|
397
|
+
*/
|
|
398
|
+
autoSubmitOnTimeout = false;
|
|
399
|
+
/**
|
|
400
|
+
* Position of the dialog.
|
|
401
|
+
* For 'drawer' type, these determine the slide direction.
|
|
402
|
+
*/
|
|
403
|
+
position = 'center';
|
|
404
|
+
/**
|
|
405
|
+
* Predefined horizontal sizing.
|
|
406
|
+
*/
|
|
407
|
+
size = 'md';
|
|
408
|
+
/**
|
|
409
|
+
* Visual density mode.
|
|
410
|
+
*/
|
|
411
|
+
density = 'cozy';
|
|
412
|
+
/**
|
|
413
|
+
* Whether clicking the backdrop closes the dialog.
|
|
414
|
+
*/
|
|
415
|
+
closeOnBackdrop = true;
|
|
416
|
+
/**
|
|
417
|
+
* Whether the ESC key closes the dialog.
|
|
418
|
+
*/
|
|
419
|
+
closeOnEsc = true;
|
|
420
|
+
/**
|
|
421
|
+
* Draggable dialog (only for 'modal' type).
|
|
422
|
+
*/
|
|
423
|
+
isDraggable = false;
|
|
424
|
+
/**
|
|
425
|
+
* Resizable dialog.
|
|
426
|
+
*/
|
|
427
|
+
resizable = false;
|
|
428
|
+
/**
|
|
429
|
+
* Stepper steps for Wizard mode. Either an array of strings or a number.
|
|
430
|
+
*/
|
|
431
|
+
steps = 0;
|
|
432
|
+
/**
|
|
433
|
+
* Current step in Wizard mode (1-indexed).
|
|
434
|
+
*/
|
|
435
|
+
currentStep = 1;
|
|
436
|
+
_currentStep = 1;
|
|
437
|
+
currentStepChanged(newValue) {
|
|
438
|
+
this._currentStep = newValue;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Whether to blur the entire webpage behind this dialog.
|
|
442
|
+
*/
|
|
443
|
+
globalBlur = false;
|
|
444
|
+
/**
|
|
445
|
+
* Dialog layout mode.
|
|
446
|
+
* 'default': Standard dialog
|
|
447
|
+
* 'side-nav': Includes a sidebar for master/detail views
|
|
448
|
+
*/
|
|
449
|
+
layout = 'default';
|
|
450
|
+
/**
|
|
451
|
+
* Whether to show a toolbar below the header
|
|
452
|
+
*/
|
|
453
|
+
showToolbar = false;
|
|
454
|
+
/**
|
|
455
|
+
* Whether to show a status bar above the footer
|
|
456
|
+
*/
|
|
457
|
+
showStatusBar = false;
|
|
458
|
+
/**
|
|
459
|
+
* Snap to screen edges when dragging
|
|
460
|
+
*/
|
|
461
|
+
snapToEdges = true;
|
|
462
|
+
/**
|
|
463
|
+
* Skeleton loading state. Transforms the dialog UI into placeholders.
|
|
464
|
+
*/
|
|
465
|
+
loading = false;
|
|
466
|
+
/**
|
|
467
|
+
* Enable OS-level shortcuts (Ctrl+Enter to OK, Esc to Close).
|
|
468
|
+
*/
|
|
469
|
+
shortcuts = true;
|
|
470
|
+
/**
|
|
471
|
+
* Whether the dialog contents are "dirty" (unsaved changes).
|
|
472
|
+
* Triggers the confirmation prompt on close.
|
|
473
|
+
*/
|
|
474
|
+
dirty = false;
|
|
475
|
+
/**
|
|
476
|
+
* Animation duration in ms.
|
|
477
|
+
*/
|
|
478
|
+
animationDuration = 250;
|
|
479
|
+
/**
|
|
480
|
+
* CSS selector for the element to focus initially when opened.
|
|
481
|
+
*/
|
|
482
|
+
initialFocus;
|
|
483
|
+
/**
|
|
484
|
+
* Show a "pop-out" button to open content in a separate browser window.
|
|
485
|
+
*/
|
|
486
|
+
allowPopOut = false;
|
|
487
|
+
/**
|
|
488
|
+
* Whether the dialog is starred/favorited
|
|
489
|
+
*/
|
|
490
|
+
starred = false;
|
|
491
|
+
/**
|
|
492
|
+
* Label for the dock when minimized.
|
|
493
|
+
*/
|
|
494
|
+
dockLabel = '';
|
|
495
|
+
/**
|
|
496
|
+
* Confirmation text for checkbox (e.g. "I accept the Terms & Conditions").
|
|
497
|
+
* If provided, the OK button will be disabled until checked.
|
|
498
|
+
*/
|
|
499
|
+
confirmationText = '';
|
|
500
|
+
promptValue = '';
|
|
501
|
+
isConfirmed = false;
|
|
502
|
+
_sessionTimeLeft = 0;
|
|
503
|
+
_termsScrolled = false;
|
|
504
|
+
/**
|
|
505
|
+
* Header size.
|
|
506
|
+
*/
|
|
507
|
+
headerSize = 'md';
|
|
508
|
+
/**
|
|
509
|
+
* Header background color override.
|
|
510
|
+
*/
|
|
511
|
+
headerColor;
|
|
512
|
+
/**
|
|
513
|
+
* Whether the dialog should have a more pronounced border.
|
|
514
|
+
*/
|
|
515
|
+
bordered = false;
|
|
516
|
+
/**
|
|
517
|
+
* Text for the OK button. If provided, renders an OK button in the footer.
|
|
518
|
+
*/
|
|
519
|
+
okText;
|
|
520
|
+
/**
|
|
521
|
+
* Preset button set for confirmation dialogs.
|
|
522
|
+
* - `'ok-cancel'` → OK / Cancel
|
|
523
|
+
* - `'yes-no'` → Yes / No
|
|
524
|
+
* - `'yes-no-cancel'` → Yes / No / Cancel (No maps to resetText slot, left-aligned)
|
|
525
|
+
* - `'save-discard'` → Save / Discard
|
|
526
|
+
* - `'retry-cancel'` → Retry / Cancel
|
|
527
|
+
* Explicit `okText` / `cancelText` / `resetText` props always override the preset labels.
|
|
528
|
+
*/
|
|
529
|
+
buttonSet = 'custom';
|
|
530
|
+
/**
|
|
531
|
+
* Text for the Cancel button. If provided, renders a Cancel button in the footer.
|
|
532
|
+
*/
|
|
533
|
+
/**
|
|
534
|
+
* Text for the Cancel button.
|
|
535
|
+
*/
|
|
536
|
+
cancelText;
|
|
537
|
+
/**
|
|
538
|
+
* Whether to portal the dialog to body
|
|
539
|
+
*/
|
|
540
|
+
portal = false;
|
|
541
|
+
/**
|
|
542
|
+
* Loading state for the OK button.
|
|
543
|
+
*/
|
|
544
|
+
okLoading = false;
|
|
545
|
+
/**
|
|
546
|
+
* Disable the OK button.
|
|
547
|
+
*/
|
|
548
|
+
okDisabled = false;
|
|
549
|
+
/**
|
|
550
|
+
* Text for the Reset button (left-aligned).
|
|
551
|
+
*/
|
|
552
|
+
resetText;
|
|
553
|
+
/**
|
|
554
|
+
* Disable the Cancel button.
|
|
555
|
+
*/
|
|
556
|
+
cancelDisabled = false;
|
|
557
|
+
// ── Button-set resolution ─────────────────────────────────────────────────
|
|
558
|
+
// Returns the effective {okLabel, cancelLabel, resetLabel} for the footer,
|
|
559
|
+
// merging the `buttonSet` preset with any explicit text prop overrides.
|
|
560
|
+
_resolveButtons() {
|
|
561
|
+
const presets = {
|
|
562
|
+
'ok-cancel': { ok: 'OK', cancel: 'Cancel', reset: '' },
|
|
563
|
+
'yes-no': { ok: 'Yes', cancel: 'No', reset: '' },
|
|
564
|
+
'yes-no-cancel': { ok: 'Yes', cancel: 'Cancel', reset: 'No' },
|
|
565
|
+
'save-discard': { ok: 'Save', cancel: 'Discard', reset: '' },
|
|
566
|
+
'retry-cancel': { ok: 'Retry', cancel: 'Cancel', reset: '' },
|
|
567
|
+
'custom': { ok: '', cancel: '', reset: '' },
|
|
568
|
+
};
|
|
569
|
+
const p = presets[this.buttonSet] ?? presets['custom'];
|
|
570
|
+
return {
|
|
571
|
+
okLabel: this.okText ?? p.ok,
|
|
572
|
+
cancelLabel: this.cancelText ?? p.cancel,
|
|
573
|
+
resetLabel: this.resetText ?? p.reset,
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Fullscreen on mobile devices automatically.
|
|
578
|
+
*/
|
|
579
|
+
fullscreenOnMobile = true;
|
|
580
|
+
/**
|
|
581
|
+
* Keep content mounted when closed.
|
|
582
|
+
*/
|
|
583
|
+
keepMounted = false;
|
|
584
|
+
/**
|
|
585
|
+
* Custom animation name.
|
|
586
|
+
*/
|
|
587
|
+
animation = 'scale';
|
|
588
|
+
/**
|
|
589
|
+
* Return focus to trigger element on close.
|
|
590
|
+
*/
|
|
591
|
+
returnFocus = true;
|
|
592
|
+
/**
|
|
593
|
+
* Z-Index for the dialog. Useful for nested dialogs.
|
|
594
|
+
*/
|
|
595
|
+
zIndex = 10000;
|
|
596
|
+
/**
|
|
597
|
+
* Minimum Width
|
|
598
|
+
*/
|
|
599
|
+
minWidth;
|
|
600
|
+
/**
|
|
601
|
+
* Minimum Height
|
|
602
|
+
*/
|
|
603
|
+
minHeight;
|
|
604
|
+
/**
|
|
605
|
+
* Maximum Width
|
|
606
|
+
*/
|
|
607
|
+
maxWidth;
|
|
608
|
+
/**
|
|
609
|
+
* Maximum Height
|
|
610
|
+
*/
|
|
611
|
+
maxHeight;
|
|
612
|
+
/**
|
|
613
|
+
* Remember dialog position and size between sessions (requires id).
|
|
614
|
+
*/
|
|
615
|
+
remember = false;
|
|
616
|
+
/**
|
|
617
|
+
* Allow swipe-to-close gesture on mobile devices.
|
|
618
|
+
*/
|
|
619
|
+
swipeToClose = false;
|
|
620
|
+
/**
|
|
621
|
+
* Fire confetti when the dialog opens.
|
|
622
|
+
*/
|
|
623
|
+
confetti = false;
|
|
624
|
+
/**
|
|
625
|
+
* Enable glassmorphism effect (blur) on backdrop.
|
|
626
|
+
*/
|
|
627
|
+
glass = false;
|
|
628
|
+
/**
|
|
629
|
+
* Background color of the dialog panel
|
|
630
|
+
*/
|
|
631
|
+
backgroundColor = 'white';
|
|
632
|
+
/**
|
|
633
|
+
* Visual progress bar percentage (0-100).
|
|
634
|
+
*/
|
|
635
|
+
progress = -1;
|
|
636
|
+
/**
|
|
637
|
+
* Whether the dialog is nested (inside another dialog).
|
|
638
|
+
* Triggers visual differentiation (smer size, deeper shadow).
|
|
639
|
+
*/
|
|
640
|
+
isNested = false;
|
|
641
|
+
/**
|
|
642
|
+
* Whether the primary action is sensitive (requires double-confirmation).
|
|
643
|
+
*/
|
|
644
|
+
sensitive = false;
|
|
645
|
+
/**
|
|
646
|
+
* Auto-close timeout in milliseconds.
|
|
647
|
+
*/
|
|
648
|
+
autoClose = 0;
|
|
649
|
+
/**
|
|
650
|
+
* Alias for autoClose.
|
|
651
|
+
*/
|
|
652
|
+
timeout = 0;
|
|
653
|
+
/**
|
|
654
|
+
* Enable subtle sound feedback for interactions.
|
|
655
|
+
*/
|
|
656
|
+
sound = false;
|
|
657
|
+
/**
|
|
658
|
+
* Enable haptic feedback for mobile devices.
|
|
659
|
+
*/
|
|
660
|
+
haptics = false;
|
|
661
|
+
/**
|
|
662
|
+
* Required permissions to view this dialog.
|
|
663
|
+
*/
|
|
664
|
+
permissions = [];
|
|
665
|
+
/**
|
|
666
|
+
* Enable debug mode (shows layout boundaries and metadata).
|
|
667
|
+
*/
|
|
668
|
+
debug = false;
|
|
669
|
+
/**
|
|
670
|
+
* Optional callback function to execute before closing.
|
|
671
|
+
* Return false or a Promise resolving to false to prevent closing.
|
|
672
|
+
*/
|
|
673
|
+
beforeClose;
|
|
674
|
+
/**
|
|
675
|
+
* Library to use for icons
|
|
676
|
+
*/
|
|
677
|
+
iconLibrary = 'default';
|
|
678
|
+
/**
|
|
679
|
+
* Semantic tag for the title (h1-h6)
|
|
680
|
+
*/
|
|
681
|
+
titleTag = 'h3';
|
|
682
|
+
/**
|
|
683
|
+
* Position of the icon/avatar relative to the title
|
|
684
|
+
*/
|
|
685
|
+
iconPosition = 'left';
|
|
686
|
+
/**
|
|
687
|
+
* Event emitted when dialog is closed
|
|
688
|
+
*/
|
|
689
|
+
dialogClosed;
|
|
690
|
+
/**
|
|
691
|
+
* Event emitted for undo action
|
|
692
|
+
*/
|
|
693
|
+
undo;
|
|
694
|
+
/**
|
|
695
|
+
* Event emitted for redo action
|
|
696
|
+
*/
|
|
697
|
+
redo;
|
|
698
|
+
/**
|
|
699
|
+
* Event emitted when the dialog is opened.
|
|
700
|
+
*/
|
|
701
|
+
dialogOpened;
|
|
702
|
+
/**
|
|
703
|
+
* Event emitted to request a toast notification.
|
|
704
|
+
*/
|
|
705
|
+
toastRequest;
|
|
706
|
+
/**
|
|
707
|
+
* Event emitted for security audit logging.
|
|
708
|
+
*/
|
|
709
|
+
auditLog;
|
|
710
|
+
/**
|
|
711
|
+
* Emitted before the dialog opens. Can be cancelled via event.preventDefault().
|
|
712
|
+
*/
|
|
713
|
+
beforeOpen;
|
|
714
|
+
/**
|
|
715
|
+
* Emitted when opening animation starts.
|
|
716
|
+
*/
|
|
717
|
+
openStarted;
|
|
718
|
+
/**
|
|
719
|
+
* Emitted when opening animation finishes.
|
|
720
|
+
*/
|
|
721
|
+
afterOpen;
|
|
722
|
+
/**
|
|
723
|
+
* Emitted before the dialog closes. Can be cancelled by event.preventDefault().
|
|
724
|
+
*/
|
|
725
|
+
beforeCloseEvent;
|
|
726
|
+
/**
|
|
727
|
+
* Emitted when closing animation starts.
|
|
728
|
+
*/
|
|
729
|
+
closeStarted;
|
|
730
|
+
/**
|
|
731
|
+
* Emitted when closing animation finishes.
|
|
732
|
+
*/
|
|
733
|
+
afterClose;
|
|
734
|
+
/**
|
|
735
|
+
* Menu items for the built-in context menu.
|
|
736
|
+
* Can be a JSON string or an array of objects.
|
|
737
|
+
* If provided, clicking the menu button automatically opens a context menu.
|
|
738
|
+
*/
|
|
739
|
+
menuItems = [];
|
|
740
|
+
/**
|
|
741
|
+
* Event emitted when a menu item is clicked (if using built-in menuItems)
|
|
742
|
+
*/
|
|
743
|
+
menuAction;
|
|
744
|
+
/**
|
|
745
|
+
* Event emitted when OK button is clicked
|
|
746
|
+
*/
|
|
747
|
+
ok;
|
|
748
|
+
/**
|
|
749
|
+
* Event emitted when Cancel button is clicked
|
|
750
|
+
*/
|
|
751
|
+
cancel;
|
|
752
|
+
/**
|
|
753
|
+
* Event emitted when Reset button is clicked
|
|
754
|
+
*/
|
|
755
|
+
dialogReset;
|
|
756
|
+
/**
|
|
757
|
+
* Event emitted when dialog is maximized
|
|
758
|
+
*/
|
|
759
|
+
dialogMaximized;
|
|
760
|
+
/**
|
|
761
|
+
* Event emitted when dialog is minimized
|
|
762
|
+
*/
|
|
763
|
+
dialogMinimized;
|
|
764
|
+
/**
|
|
765
|
+
* Event emitted when menu button is clicked
|
|
766
|
+
*/
|
|
767
|
+
menu;
|
|
768
|
+
dragStartX = 0;
|
|
769
|
+
dragStartY = 0;
|
|
770
|
+
isDragging = false;
|
|
771
|
+
dragAnchored = false;
|
|
772
|
+
isClosing = false;
|
|
773
|
+
snappedEdge = 'none';
|
|
774
|
+
subOverlay = null;
|
|
775
|
+
minimizedToDock = false;
|
|
776
|
+
_dockPeek = false;
|
|
777
|
+
_autoCloseTimer = null;
|
|
778
|
+
resultResolver;
|
|
779
|
+
resultRejecter;
|
|
780
|
+
returnValue = null;
|
|
781
|
+
// Previously saved position before minimization
|
|
782
|
+
lastPosition = null;
|
|
783
|
+
// Resize state
|
|
784
|
+
isResizing = false;
|
|
785
|
+
resizeStartX = 0;
|
|
786
|
+
resizeStartY = 0;
|
|
787
|
+
initialWidth = 0;
|
|
788
|
+
initialHeight = 0;
|
|
789
|
+
initialLeft = 0;
|
|
790
|
+
initialTop = 0;
|
|
791
|
+
dialogElement;
|
|
792
|
+
backdropElement;
|
|
793
|
+
// Gmail Style Organizer for minimized tabs
|
|
794
|
+
minimizedChanged(newValue) {
|
|
795
|
+
if (newValue) {
|
|
796
|
+
this._dockPeek = false;
|
|
797
|
+
// Saving current position state
|
|
798
|
+
if (this.dialogElement) {
|
|
799
|
+
this.lastPosition = {
|
|
800
|
+
left: this.dialogElement.style.left,
|
|
801
|
+
top: this.dialogElement.style.top,
|
|
802
|
+
transform: this.dialogElement.style.transform,
|
|
803
|
+
position: this.dialogElement.style.position,
|
|
804
|
+
margin: this.dialogElement.style.margin
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
this.unlockScroll();
|
|
808
|
+
if (this.focusTrap)
|
|
809
|
+
this.focusTrap.deactivate();
|
|
810
|
+
DialogTray.reflow();
|
|
811
|
+
this.dialogMinimized.emit({ minimized: true });
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
this._dockPeek = false;
|
|
815
|
+
DialogTray.reflow();
|
|
816
|
+
this.dialogMinimized.emit({ minimized: false });
|
|
817
|
+
requestAnimationFrame(() => {
|
|
818
|
+
// Restoring position (deferred until DOM is rendered and ref is ready)
|
|
819
|
+
if (this.lastPosition && this.dialogElement) {
|
|
820
|
+
Object.assign(this.dialogElement.style, this.lastPosition);
|
|
821
|
+
}
|
|
822
|
+
else if (this.remember && this.el.id) {
|
|
823
|
+
this.loadLayout();
|
|
824
|
+
}
|
|
825
|
+
this.initFocusTrap();
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
onDockPeekChange(val) {
|
|
830
|
+
if (val) {
|
|
831
|
+
document.addEventListener('pointerdown', this._onDocPeekOutside, true);
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
document.removeEventListener('pointerdown', this._onDocPeekOutside, true);
|
|
835
|
+
}
|
|
836
|
+
// Sync the tray menu badge etc
|
|
837
|
+
DialogTray.reflow();
|
|
838
|
+
}
|
|
839
|
+
_onDocPeekOutside = (e) => {
|
|
840
|
+
if (!e.composedPath().includes(this.el)) {
|
|
841
|
+
this._dockPeek = false;
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
focusTrap;
|
|
845
|
+
ignoreBackdropClick = false;
|
|
846
|
+
componentWillLoad() {
|
|
847
|
+
this._currentStep = this.currentStep;
|
|
848
|
+
// Detect nesting
|
|
849
|
+
this.isNested = !!this.el.parentElement?.closest('ui-dialog-box');
|
|
850
|
+
// Presets: set local defaults, do not mutate props
|
|
851
|
+
this._defaultDialogTitle = '';
|
|
852
|
+
this._defaultOkText = '';
|
|
853
|
+
if (this.type === 'delete') {
|
|
854
|
+
this._defaultDialogTitle = 'Confirm Deletion';
|
|
855
|
+
this._defaultOkText = 'Delete';
|
|
856
|
+
this.headerColor = '#fee2e2'; // Light red background (for header component)
|
|
857
|
+
this.bordered = true;
|
|
858
|
+
}
|
|
859
|
+
else if (this.type === 'session') {
|
|
860
|
+
this._defaultDialogTitle = 'Session Timeout';
|
|
861
|
+
this._defaultOkText = 'Extend Session';
|
|
862
|
+
}
|
|
863
|
+
else if (this.type === 'terms') {
|
|
864
|
+
this._defaultDialogTitle = 'Terms & Conditions';
|
|
865
|
+
this._defaultOkText = 'Accept & Continue';
|
|
866
|
+
this.scrollArea = 'paper';
|
|
867
|
+
// Do NOT mutate this.size here
|
|
868
|
+
}
|
|
869
|
+
// Automatic Z-Index for Nested Dialogs
|
|
870
|
+
const openDialogs = DialogTray.get().getAll().filter(w => w.open).length;
|
|
871
|
+
if (this.zIndex === 10000) { // If default
|
|
872
|
+
this.zIndex = 10000 + (openDialogs * 10);
|
|
873
|
+
}
|
|
874
|
+
// Check Widget drag compatibility
|
|
875
|
+
if (this.el.getAttribute('draggable') === 'true' && !this.isDraggable) {
|
|
876
|
+
this.isDraggable = true;
|
|
877
|
+
}
|
|
878
|
+
// Restore layout if needed
|
|
879
|
+
if (this.remember && this.el.id) {
|
|
880
|
+
this.loadLayout();
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
connectedCallback() {
|
|
884
|
+
// Fires on initial connect AND after a tray reflow move.
|
|
885
|
+
DialogTray.register(this);
|
|
886
|
+
}
|
|
887
|
+
disconnectedCallback() {
|
|
888
|
+
DialogTray.unregister(this);
|
|
889
|
+
}
|
|
890
|
+
componentDidLoad() {
|
|
891
|
+
// register() already called by connectedCallback above;
|
|
892
|
+
// just handle open/layout init here.
|
|
893
|
+
if (this.open) {
|
|
894
|
+
this.lockScroll();
|
|
895
|
+
this.initFocusTrap();
|
|
896
|
+
if (this.portal) {
|
|
897
|
+
document.body.appendChild(this.el);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
saveLayout() {
|
|
902
|
+
if (!this.el.id || !this.dialogElement)
|
|
903
|
+
return;
|
|
904
|
+
const rect = this.dialogElement.getBoundingClientRect();
|
|
905
|
+
const state = {
|
|
906
|
+
left: rect.left,
|
|
907
|
+
top: rect.top,
|
|
908
|
+
width: rect.width,
|
|
909
|
+
height: rect.height,
|
|
910
|
+
maximized: this.maximized
|
|
911
|
+
};
|
|
912
|
+
this._restoredLayout = state;
|
|
913
|
+
localStorage.setItem(`ui-dialog-layout-${this.el.id}`, JSON.stringify(state));
|
|
914
|
+
}
|
|
915
|
+
loadLayout() {
|
|
916
|
+
if (!this.el.id)
|
|
917
|
+
return;
|
|
918
|
+
const saved = localStorage.getItem(`ui-dialog-layout-${this.el.id}`);
|
|
919
|
+
if (saved) {
|
|
920
|
+
try {
|
|
921
|
+
const state = JSON.parse(saved);
|
|
922
|
+
if (state.maximized) {
|
|
923
|
+
this.maximized = true;
|
|
924
|
+
}
|
|
925
|
+
else {
|
|
926
|
+
this._restoredLayout = state;
|
|
927
|
+
if (state.width)
|
|
928
|
+
this.width = `${state.width}px`;
|
|
929
|
+
if (state.height)
|
|
930
|
+
this.height = `${state.height}px`;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
catch (e) { /* ignore */ }
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
async openChanged(newValue) {
|
|
937
|
+
if (newValue) {
|
|
938
|
+
if (typeof this.beforeOpen?.emit === 'function') {
|
|
939
|
+
const { defaultPrevented } = this.beforeOpen.emit();
|
|
940
|
+
if (defaultPrevented) {
|
|
941
|
+
this.open = false;
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
this.isClosing = false;
|
|
946
|
+
this.openStarted.emit();
|
|
947
|
+
// Always rise above all currently open dialogs
|
|
948
|
+
this.handleDialogClick();
|
|
949
|
+
if (this.remember && this.el.id) {
|
|
950
|
+
this.loadLayout();
|
|
951
|
+
}
|
|
952
|
+
this.lockScroll();
|
|
953
|
+
// Elite/Security Hooks
|
|
954
|
+
if (this.permissions && this.permissions.length > 0) {
|
|
955
|
+
this.auditLog.emit({ action: 'permission_check', timestamp: Date.now(), metadata: { required: this.permissions } });
|
|
956
|
+
}
|
|
957
|
+
if (this.type === 'prompt') {
|
|
958
|
+
this.promptValue = this.promptInitialValue;
|
|
959
|
+
}
|
|
960
|
+
this.dialogOpened.emit();
|
|
961
|
+
this.auditLog.emit({ action: 'dialog_open', timestamp: Date.now() });
|
|
962
|
+
const delay = this.autoClose || this.timeout;
|
|
963
|
+
if (delay > 0) {
|
|
964
|
+
if (this._autoCloseTimer)
|
|
965
|
+
clearTimeout(this._autoCloseTimer);
|
|
966
|
+
this._autoCloseTimer = setTimeout(() => this.hide('timeout'), delay);
|
|
967
|
+
}
|
|
968
|
+
if (this.sound) {
|
|
969
|
+
// Accessibility/UX Audio Hook
|
|
970
|
+
this.auditLog.emit({ action: 'sound_feedback', timestamp: Date.now() });
|
|
971
|
+
}
|
|
972
|
+
// Initialize/Activate Focus Trap
|
|
973
|
+
if (this.type === 'session') {
|
|
974
|
+
this.startSessionTimer();
|
|
975
|
+
}
|
|
976
|
+
if (this.type === 'terms') {
|
|
977
|
+
this._termsScrolled = false;
|
|
978
|
+
}
|
|
979
|
+
requestAnimationFrame(() => {
|
|
980
|
+
setTimeout(() => {
|
|
981
|
+
if (!this.minimized) {
|
|
982
|
+
this.initFocusTrap();
|
|
983
|
+
this.autoFocusFirstElement();
|
|
984
|
+
}
|
|
985
|
+
if (this.globalBlur)
|
|
986
|
+
this.updateBodyBlur();
|
|
987
|
+
if (this.confetti)
|
|
988
|
+
this.triggerConfetti();
|
|
989
|
+
this.afterOpen.emit();
|
|
990
|
+
}, 50);
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
else {
|
|
994
|
+
if (!this.isClosing) {
|
|
995
|
+
await this.hide('programmatic');
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
DialogTray.reflow();
|
|
999
|
+
}
|
|
1000
|
+
updateBodyBlur() {
|
|
1001
|
+
if (this.globalBlur && this.open) {
|
|
1002
|
+
document.body.classList.add('dialog-blur-active');
|
|
1003
|
+
}
|
|
1004
|
+
else {
|
|
1005
|
+
document.body.classList.remove('dialog-blur-active');
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
initFocusTrap() {
|
|
1009
|
+
if (!this.dialogElement)
|
|
1010
|
+
return;
|
|
1011
|
+
if (!this.focusTrap) {
|
|
1012
|
+
this.focusTrap = new focusTrap.FocusTrap(this.dialogElement, {
|
|
1013
|
+
returnFocus: this.returnFocus,
|
|
1014
|
+
escapeDeactivates: false, // We handle Escape manually
|
|
1015
|
+
clickOutsideDeactivates: false
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
this.focusTrap.activate();
|
|
1019
|
+
}
|
|
1020
|
+
autoFocusFirstElement() {
|
|
1021
|
+
if (!this.dialogElement)
|
|
1022
|
+
return;
|
|
1023
|
+
// 1. Check explicit initialFocus selector
|
|
1024
|
+
if (this.initialFocus) {
|
|
1025
|
+
const el = this.dialogElement.querySelector(this.initialFocus);
|
|
1026
|
+
if (el) {
|
|
1027
|
+
el.focus();
|
|
1028
|
+
return;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
// 2. Look for autofocus attribute first, then common inputs
|
|
1032
|
+
const el = this.dialogElement.querySelector('[autofocus]') ||
|
|
1033
|
+
this.dialogElement.querySelector('input:not([disabled]), textarea:not([disabled]), select:not([disabled]), .ui-dialog-btn-ok');
|
|
1034
|
+
if (el)
|
|
1035
|
+
el.focus();
|
|
1036
|
+
}
|
|
1037
|
+
lockScroll() {
|
|
1038
|
+
if (this.scrollArea !== 'body') {
|
|
1039
|
+
document.body.style.overflow = 'hidden';
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
unlockScroll() {
|
|
1043
|
+
document.body.style.overflow = '';
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Open the dialog
|
|
1047
|
+
*/
|
|
1048
|
+
/**
|
|
1049
|
+
* Open the dialog and return a promise that resolves to true when OK is clicked, false on Cancel/Close.
|
|
1050
|
+
*/
|
|
1051
|
+
async openDialog() {
|
|
1052
|
+
this.open = true;
|
|
1053
|
+
return new Promise((resolve) => {
|
|
1054
|
+
this.resultResolver = (val) => resolve(!!val);
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Show dialog and return a promise that resolves with data when closed via OK.
|
|
1059
|
+
* Standardizes the return value as { data: any, canceled: boolean }.
|
|
1060
|
+
*/
|
|
1061
|
+
async showWithResult() {
|
|
1062
|
+
this.returnValue = null;
|
|
1063
|
+
this.open = true;
|
|
1064
|
+
return new Promise((resolve) => {
|
|
1065
|
+
// Use resultResolver as a way to send the final object back
|
|
1066
|
+
this.resultResolver = (data) => resolve({ data, canceled: false });
|
|
1067
|
+
this.resultRejecter = () => resolve({ data: null, canceled: true });
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Set the value to be returned when showWithResult resolves.
|
|
1072
|
+
*/
|
|
1073
|
+
async setReturnValue(value) {
|
|
1074
|
+
this.returnValue = value;
|
|
1075
|
+
}
|
|
1076
|
+
async show() {
|
|
1077
|
+
this.returnValue = null;
|
|
1078
|
+
this.open = true;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Close the dialog
|
|
1082
|
+
*/
|
|
1083
|
+
async hide(source = 'programmatic') {
|
|
1084
|
+
if (this.resultResolver || this.resultRejecter) {
|
|
1085
|
+
if (this.resultRejecter)
|
|
1086
|
+
this.resultRejecter('Closed');
|
|
1087
|
+
this.resultResolver = undefined;
|
|
1088
|
+
this.resultRejecter = undefined;
|
|
1089
|
+
}
|
|
1090
|
+
if (this.dirty && !this.subOverlay?.visible) {
|
|
1091
|
+
this.showConfirmation("Unsaved Changes", "You have unsaved changes. Are you sure you want to close?", () => { this.dirty = false; this.hide(source); });
|
|
1092
|
+
return;
|
|
1093
|
+
}
|
|
1094
|
+
const { defaultPrevented } = this.beforeCloseEvent.emit({ source });
|
|
1095
|
+
if (defaultPrevented)
|
|
1096
|
+
return;
|
|
1097
|
+
if (this.beforeClose) {
|
|
1098
|
+
const shouldClose = await this.beforeClose();
|
|
1099
|
+
if (shouldClose === false)
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1102
|
+
this.isClosing = true;
|
|
1103
|
+
this.closeStarted.emit();
|
|
1104
|
+
this.stopSessionTimer();
|
|
1105
|
+
if (this.focusTrap)
|
|
1106
|
+
this.focusTrap.deactivate();
|
|
1107
|
+
setTimeout(() => {
|
|
1108
|
+
this.open = false;
|
|
1109
|
+
this.isClosing = false;
|
|
1110
|
+
this.unlockScroll();
|
|
1111
|
+
this.updateBodyBlur(); // remove blur
|
|
1112
|
+
this.dialogClosed.emit();
|
|
1113
|
+
if (this.el.isConnected) {
|
|
1114
|
+
this.afterClose.emit();
|
|
1115
|
+
}
|
|
1116
|
+
}, this.animationDuration);
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Maximize the dialog
|
|
1120
|
+
*/
|
|
1121
|
+
async maximize() {
|
|
1122
|
+
this.maximized = !this.maximized;
|
|
1123
|
+
if (this.maximized) {
|
|
1124
|
+
this.minimized = false;
|
|
1125
|
+
}
|
|
1126
|
+
if (this.remember)
|
|
1127
|
+
this.saveLayout();
|
|
1128
|
+
this.dialogMaximized.emit({ maximized: this.maximized });
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Show an internal sub-overlay prompt (e.g., for diskard changes).
|
|
1132
|
+
*/
|
|
1133
|
+
async showConfirmation(title, message, onConfirm) {
|
|
1134
|
+
this.subOverlay = { visible: true, title, message, onConfirm };
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Cascade all open dialogs
|
|
1138
|
+
*/
|
|
1139
|
+
static async cascade() {
|
|
1140
|
+
const wins = DialogTray.get().getAll().filter(w => w.open && !w.minimized);
|
|
1141
|
+
wins.forEach((win, i) => {
|
|
1142
|
+
win.dialogElement.style.left = `${50 + (i * 30)}px`;
|
|
1143
|
+
win.dialogElement.style.top = `${50 + (i * 30)}px`;
|
|
1144
|
+
win.dialogElement.style.margin = '0';
|
|
1145
|
+
win.dialogElement.style.position = 'fixed';
|
|
1146
|
+
if (win.remember)
|
|
1147
|
+
win.saveLayout();
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* Tile all open dialogs
|
|
1152
|
+
*/
|
|
1153
|
+
static async tile() {
|
|
1154
|
+
const wins = DialogTray.get().getAll().filter(w => w.open && !w.minimized);
|
|
1155
|
+
if (wins.length === 0)
|
|
1156
|
+
return;
|
|
1157
|
+
const cols = Math.ceil(Math.sqrt(wins.length));
|
|
1158
|
+
const rows = Math.ceil(wins.length / cols);
|
|
1159
|
+
const winW = window.innerWidth / cols;
|
|
1160
|
+
const winH = window.innerHeight / rows;
|
|
1161
|
+
wins.forEach((win, i) => {
|
|
1162
|
+
const r = Math.floor(i / cols);
|
|
1163
|
+
const c = i % cols;
|
|
1164
|
+
win.dialogElement.style.left = `${c * winW}px`;
|
|
1165
|
+
win.dialogElement.style.top = `${r * winH}px`;
|
|
1166
|
+
win.dialogElement.style.width = `${winW}px`;
|
|
1167
|
+
win.dialogElement.style.height = `${winH}px`;
|
|
1168
|
+
win.dialogElement.style.margin = '0';
|
|
1169
|
+
win.dialogElement.style.position = 'fixed';
|
|
1170
|
+
if (win.remember)
|
|
1171
|
+
win.saveLayout();
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Detach the dialog content to a separate browser window
|
|
1176
|
+
*/
|
|
1177
|
+
async popOut() {
|
|
1178
|
+
const popup = window.open('', '_blank', 'width=600,height=400');
|
|
1179
|
+
if (popup) {
|
|
1180
|
+
popup.document.title = this.dialogTitle || 'DreamUI Detached Window';
|
|
1181
|
+
popup.document.body.innerHTML = security.sanitizeHTML(this.el.innerHTML);
|
|
1182
|
+
// Copy styles
|
|
1183
|
+
document.querySelectorAll('style, link[rel="stylesheet"]').forEach(s => {
|
|
1184
|
+
popup.document.head.appendChild(s.cloneNode(true));
|
|
1185
|
+
});
|
|
1186
|
+
this.hide();
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Minimize the dialog
|
|
1191
|
+
*/
|
|
1192
|
+
async minimize() {
|
|
1193
|
+
this.minimized = !this.minimized;
|
|
1194
|
+
if (this.minimized) {
|
|
1195
|
+
this._dockPeek = false;
|
|
1196
|
+
this.minimizedToDock = true;
|
|
1197
|
+
}
|
|
1198
|
+
else {
|
|
1199
|
+
this.restore();
|
|
1200
|
+
}
|
|
1201
|
+
this.dialogMinimized.emit({ minimized: this.minimized });
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Restore the dialog from minimized or maximized state
|
|
1205
|
+
*/
|
|
1206
|
+
async restore() {
|
|
1207
|
+
this.minimized = false;
|
|
1208
|
+
this.maximized = false;
|
|
1209
|
+
this._dockPeek = false;
|
|
1210
|
+
this.minimizedToDock = false;
|
|
1211
|
+
if (this.remember) {
|
|
1212
|
+
setTimeout(() => this.loadLayout(), 50);
|
|
1213
|
+
}
|
|
1214
|
+
this.dialogMinimized.emit({ minimized: false });
|
|
1215
|
+
this.dialogMaximized.emit({ maximized: false });
|
|
1216
|
+
DialogTray.reflow();
|
|
1217
|
+
}
|
|
1218
|
+
handleMenu = (e) => {
|
|
1219
|
+
// If we have built-in menu items, handle opening the context menu
|
|
1220
|
+
// Ensure we parse if it's a string looking like an array
|
|
1221
|
+
let items = this.menuItems;
|
|
1222
|
+
if (typeof items === 'string') {
|
|
1223
|
+
try {
|
|
1224
|
+
items = JSON.parse(items);
|
|
1225
|
+
}
|
|
1226
|
+
catch (ex) { /* ignore */ }
|
|
1227
|
+
}
|
|
1228
|
+
if (items && Array.isArray(items) && items.length > 0) {
|
|
1229
|
+
e.stopPropagation();
|
|
1230
|
+
// Pass parsed items if possible, or reliance on original prop
|
|
1231
|
+
this.openContextMenu(e);
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
this.menu.emit(e.detail);
|
|
1235
|
+
};
|
|
1236
|
+
openContextMenu(e, explicitItems) {
|
|
1237
|
+
let menu = document.getElementById(`ctx-menu-${this.el.id}`);
|
|
1238
|
+
if (!menu) {
|
|
1239
|
+
menu = document.createElement('ui-context-menu');
|
|
1240
|
+
menu.id = `ctx-menu-${this.el.id}`;
|
|
1241
|
+
menu.style.zIndex = (this.zIndex + 10).toString();
|
|
1242
|
+
document.body.appendChild(menu);
|
|
1243
|
+
menu.addEventListener('menuItemClick', (ev) => {
|
|
1244
|
+
const detail = ev.detail;
|
|
1245
|
+
this.menuAction.emit(detail);
|
|
1246
|
+
// Also emit standard menu event with action details for convenience
|
|
1247
|
+
this.menu.emit(detail);
|
|
1248
|
+
// Handle specialized built-in actions if we want (like 'close', 'minimize')
|
|
1249
|
+
if (detail && detail.item && detail.item.id) {
|
|
1250
|
+
if (detail.item.id === 'close')
|
|
1251
|
+
this.hide();
|
|
1252
|
+
if (detail.item.id === 'minimize')
|
|
1253
|
+
this.minimize();
|
|
1254
|
+
if (detail.item.id === 'maximize')
|
|
1255
|
+
this.maximize();
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
// Update items
|
|
1260
|
+
// Parse again to be safe or use what we know
|
|
1261
|
+
const itemsVal = explicitItems ? JSON.stringify(explicitItems) : (typeof this.menuItems === 'string' ? this.menuItems : JSON.stringify(this.menuItems));
|
|
1262
|
+
menu.items = itemsVal;
|
|
1263
|
+
// Position at trigger
|
|
1264
|
+
let rect;
|
|
1265
|
+
if (e.detail && e.detail.trigger) {
|
|
1266
|
+
rect = e.detail.trigger.getBoundingClientRect();
|
|
1267
|
+
}
|
|
1268
|
+
else if (e.detail && e.detail.originalEvent && e.detail.originalEvent.target) {
|
|
1269
|
+
rect = e.detail.originalEvent.target.getBoundingClientRect();
|
|
1270
|
+
}
|
|
1271
|
+
else {
|
|
1272
|
+
// Fallback to searching for the menu button
|
|
1273
|
+
const header = this.el.shadowRoot?.querySelector('ui-dialog-header');
|
|
1274
|
+
const btn = header?.shadowRoot?.querySelector('.dialog-btn-menu')
|
|
1275
|
+
|| header?.querySelector('.dialog-btn-menu');
|
|
1276
|
+
rect = btn ? btn.getBoundingClientRect() : this.dialogElement.getBoundingClientRect();
|
|
1277
|
+
}
|
|
1278
|
+
// Slight offset
|
|
1279
|
+
if (rect) {
|
|
1280
|
+
menu.openAt({ x: rect.left, y: rect.bottom + 5 });
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
collectFormValues() {
|
|
1284
|
+
const result = {};
|
|
1285
|
+
const processedNames = new Set();
|
|
1286
|
+
/**
|
|
1287
|
+
* Recursively scan elements for named inputs/selects/textareas.
|
|
1288
|
+
* This piercings into slots by looking at the Host element's Light DOM children.
|
|
1289
|
+
*/
|
|
1290
|
+
const scan = (root) => {
|
|
1291
|
+
if (!root || typeof root.tagName !== 'string')
|
|
1292
|
+
return;
|
|
1293
|
+
const tagName = root.tagName.toUpperCase();
|
|
1294
|
+
const el = root;
|
|
1295
|
+
if (el.name && (tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA')) {
|
|
1296
|
+
const input = root;
|
|
1297
|
+
const type = (input.type || '').toLowerCase();
|
|
1298
|
+
if (type === 'checkbox') {
|
|
1299
|
+
if (!result[el.name])
|
|
1300
|
+
result[el.name] = [];
|
|
1301
|
+
if (input.checked)
|
|
1302
|
+
result[el.name].push(input.value);
|
|
1303
|
+
}
|
|
1304
|
+
else if (type === 'radio') {
|
|
1305
|
+
if (input.checked)
|
|
1306
|
+
result[el.name] = input.value;
|
|
1307
|
+
}
|
|
1308
|
+
else if (type === 'submit' || type === 'button' || type === 'reset') ;
|
|
1309
|
+
else {
|
|
1310
|
+
result[el.name] = el.value;
|
|
1311
|
+
}
|
|
1312
|
+
processedNames.add(el.name);
|
|
1313
|
+
}
|
|
1314
|
+
// Recurse light-DOM children
|
|
1315
|
+
if (root.children) {
|
|
1316
|
+
for (const child of Array.from(root.children)) {
|
|
1317
|
+
scan(child);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
// Begin scan from the host element (captures all Light DOM descendants in slots)
|
|
1322
|
+
scan(this.el);
|
|
1323
|
+
// If we found nothing in Light DOM, check Shadow DOM (for built-in prompts)
|
|
1324
|
+
if (processedNames.size === 0 && this.el.shadowRoot) {
|
|
1325
|
+
scan(this.el.shadowRoot);
|
|
1326
|
+
}
|
|
1327
|
+
return processedNames.size > 0 ? result : null;
|
|
1328
|
+
}
|
|
1329
|
+
_sessionInterval;
|
|
1330
|
+
startSessionTimer() {
|
|
1331
|
+
this._sessionTimeLeft = this.sessionTimeout;
|
|
1332
|
+
clearInterval(this._sessionInterval);
|
|
1333
|
+
this._sessionInterval = setInterval(() => {
|
|
1334
|
+
this._sessionTimeLeft--;
|
|
1335
|
+
if (this._sessionTimeLeft <= 0) {
|
|
1336
|
+
clearInterval(this._sessionInterval);
|
|
1337
|
+
this._sessionTimedOut = true;
|
|
1338
|
+
this.dialogTitle = "Session Expired";
|
|
1339
|
+
this.status = "error";
|
|
1340
|
+
// Do NOT auto-close if we want to show the logout message
|
|
1341
|
+
if (this.autoSubmitOnTimeout)
|
|
1342
|
+
this.handleOk();
|
|
1343
|
+
}
|
|
1344
|
+
}, 1000);
|
|
1345
|
+
}
|
|
1346
|
+
stopSessionTimer() {
|
|
1347
|
+
clearInterval(this._sessionInterval);
|
|
1348
|
+
}
|
|
1349
|
+
handleTermsScroll = (e) => {
|
|
1350
|
+
if (this.type !== 'terms' || this._termsScrolled)
|
|
1351
|
+
return;
|
|
1352
|
+
const el = e.target;
|
|
1353
|
+
if (el.scrollHeight - el.scrollTop <= el.clientHeight + 20) {
|
|
1354
|
+
this._termsScrolled = true;
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
handleOk = () => {
|
|
1358
|
+
if (this.sensitive && !this.subOverlay?.visible) {
|
|
1359
|
+
this.showConfirmation("Sensitive Action", "This action has security implications. Are you sure you want to proceed?", () => { this.sensitive = false; this.handleOk(); });
|
|
1360
|
+
return;
|
|
1361
|
+
}
|
|
1362
|
+
if (this.haptics && window.navigator.vibrate) {
|
|
1363
|
+
window.navigator.vibrate(50);
|
|
1364
|
+
}
|
|
1365
|
+
if (this.resultResolver) {
|
|
1366
|
+
// Auto-collect form values when no explicit returnValue was set
|
|
1367
|
+
if (this.returnValue === null) {
|
|
1368
|
+
this.returnValue = this.collectFormValues();
|
|
1369
|
+
}
|
|
1370
|
+
this.ok.emit(this.returnValue);
|
|
1371
|
+
// Pass the collected data to the specific resolver format
|
|
1372
|
+
this.resultResolver(this.returnValue);
|
|
1373
|
+
this.resultResolver = undefined;
|
|
1374
|
+
this.resultRejecter = undefined;
|
|
1375
|
+
}
|
|
1376
|
+
else {
|
|
1377
|
+
this.ok.emit(this.returnValue);
|
|
1378
|
+
}
|
|
1379
|
+
this.hide();
|
|
1380
|
+
};
|
|
1381
|
+
/**
|
|
1382
|
+
* Programmatically submit the dialog (resolves the promise).
|
|
1383
|
+
* Optional value overrides auto-collection.
|
|
1384
|
+
*/
|
|
1385
|
+
async submit(value) {
|
|
1386
|
+
if (value !== undefined) {
|
|
1387
|
+
this.returnValue = value;
|
|
1388
|
+
}
|
|
1389
|
+
this.handleOk();
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Programmatically cancel the dialog (rejects the promise).
|
|
1393
|
+
*/
|
|
1394
|
+
async cancelDialog() {
|
|
1395
|
+
this.handleCancel();
|
|
1396
|
+
}
|
|
1397
|
+
handleCancel = () => {
|
|
1398
|
+
if (this.resultRejecter) {
|
|
1399
|
+
this.resultRejecter(); // Triggers the resolver with {canceled: true} logic inside showWithResult
|
|
1400
|
+
this.resultRejecter = undefined;
|
|
1401
|
+
this.resultResolver = undefined;
|
|
1402
|
+
}
|
|
1403
|
+
this.cancel.emit();
|
|
1404
|
+
this.hide();
|
|
1405
|
+
};
|
|
1406
|
+
handleReset = () => {
|
|
1407
|
+
this.auditLog.emit({ action: 'reset_clicked', timestamp: Date.now() });
|
|
1408
|
+
this.dialogReset.emit();
|
|
1409
|
+
};
|
|
1410
|
+
handleGlobalShortcuts(e) {
|
|
1411
|
+
if (!this.open || !this.shortcuts)
|
|
1412
|
+
return;
|
|
1413
|
+
// Ctrl+Enter = OK (Global)
|
|
1414
|
+
if (e.ctrlKey && e.key === 'Enter' && this.okText) {
|
|
1415
|
+
this.handleOk();
|
|
1416
|
+
return;
|
|
1417
|
+
}
|
|
1418
|
+
// Enter in Input = OK (Standard Form behavior)
|
|
1419
|
+
if (e.key === 'Enter' && this.okText) {
|
|
1420
|
+
const target = e.target;
|
|
1421
|
+
if (['INPUT', 'SELECT'].includes(target.tagName) && !target.classList.contains('no-submit')) {
|
|
1422
|
+
this.handleOk();
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
handleBackdropClick = (e) => {
|
|
1427
|
+
if (this.ignoreBackdropClick)
|
|
1428
|
+
return;
|
|
1429
|
+
if (this.backdrop === 'default' && e.target === this.backdropElement) {
|
|
1430
|
+
this.hide();
|
|
1431
|
+
}
|
|
1432
|
+
else if (this.backdrop === 'static' && e.target === this.backdropElement) {
|
|
1433
|
+
e.preventDefault();
|
|
1434
|
+
e.stopPropagation();
|
|
1435
|
+
this._isShaking = true;
|
|
1436
|
+
setTimeout(() => {
|
|
1437
|
+
this._isShaking = false;
|
|
1438
|
+
}, 400); // Match SCSS duration (0.4s)
|
|
1439
|
+
}
|
|
1440
|
+
};
|
|
1441
|
+
handleKeyDown(e) {
|
|
1442
|
+
// If minimized, don't trap focus or handle escape close immediately
|
|
1443
|
+
if (this.minimized)
|
|
1444
|
+
return;
|
|
1445
|
+
if (e.key === 'Escape' && this.open && this.closeOnEsc) {
|
|
1446
|
+
this.hide('esc');
|
|
1447
|
+
return;
|
|
1448
|
+
}
|
|
1449
|
+
// FocusTrap handles Tab
|
|
1450
|
+
}
|
|
1451
|
+
// Bring to front on any click inside the dialog
|
|
1452
|
+
handleDialogClick = () => {
|
|
1453
|
+
// Wrap in microtask to avoid "changed during rendering" warning if called from Watchers/render-adjacent paths
|
|
1454
|
+
requestAnimationFrame(() => {
|
|
1455
|
+
// Logic to increment zIndex among currently open dialogs
|
|
1456
|
+
const allOpened = DialogTray.get().getAll()
|
|
1457
|
+
.filter(w => w.open)
|
|
1458
|
+
.sort((a, b) => a.zIndex - b.zIndex);
|
|
1459
|
+
const maxZ = allOpened.length > 0 ? allOpened[allOpened.length - 1].zIndex : 10000;
|
|
1460
|
+
if (this.zIndex <= maxZ) {
|
|
1461
|
+
this.zIndex = maxZ + 1;
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1464
|
+
};
|
|
1465
|
+
// Dragging Logic
|
|
1466
|
+
handlePointerDown = (e) => {
|
|
1467
|
+
this.handleDialogClick();
|
|
1468
|
+
if (this.maximized || !this.isDraggable || this.minimized)
|
|
1469
|
+
return;
|
|
1470
|
+
// Ignore if clicking on interactive elements
|
|
1471
|
+
const path = e.composedPath();
|
|
1472
|
+
const isInteractive = path.some(el => el instanceof HTMLElement &&
|
|
1473
|
+
(['BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'A', 'UI-ICON'].includes(el.tagName) || el.classList.contains('dialog-btn')));
|
|
1474
|
+
if (isInteractive)
|
|
1475
|
+
return;
|
|
1476
|
+
// Only allow drag from header
|
|
1477
|
+
const header = this.dialogElement.querySelector('ui-dialog-header');
|
|
1478
|
+
const isHeaderClick = path.some(p => p === header || (p instanceof HTMLElement && p.localName === 'ui-dialog-header'));
|
|
1479
|
+
if (!isHeaderClick)
|
|
1480
|
+
return;
|
|
1481
|
+
e.preventDefault(); // Prevent scrolling on touch
|
|
1482
|
+
e.stopPropagation();
|
|
1483
|
+
this.isDragging = true;
|
|
1484
|
+
this.dragAnchored = false;
|
|
1485
|
+
// Handle Touch/Pointer coordinates
|
|
1486
|
+
this.dragStartX = e.clientX;
|
|
1487
|
+
this.dragStartY = e.clientY;
|
|
1488
|
+
const rect = this.dialogElement.getBoundingClientRect();
|
|
1489
|
+
this.initialLeft = rect.left;
|
|
1490
|
+
this.initialTop = rect.top;
|
|
1491
|
+
this.dragStartX = e.clientX;
|
|
1492
|
+
this.dragStartY = e.clientY;
|
|
1493
|
+
// Do NOT modify styles here — wait until movement threshold is crossed
|
|
1494
|
+
// to avoid snapping the dialog on a plain click.
|
|
1495
|
+
// Capture pointer
|
|
1496
|
+
if (this.dialogElement.setPointerCapture) {
|
|
1497
|
+
try {
|
|
1498
|
+
this.dialogElement.setPointerCapture(e.pointerId);
|
|
1499
|
+
}
|
|
1500
|
+
catch (ex) { }
|
|
1501
|
+
}
|
|
1502
|
+
document.addEventListener('pointermove', this.handlePointerMove);
|
|
1503
|
+
document.addEventListener('pointerup', this.handlePointerUp);
|
|
1504
|
+
document.body.style.userSelect = 'none';
|
|
1505
|
+
document.body.style.cursor = 'grabbing';
|
|
1506
|
+
};
|
|
1507
|
+
checkSnapping = (clientX, clientY) => {
|
|
1508
|
+
const threshold = 50;
|
|
1509
|
+
const winW = window.innerWidth;
|
|
1510
|
+
const winH = window.innerHeight;
|
|
1511
|
+
if (clientX < threshold) {
|
|
1512
|
+
this.snappedEdge = 'left';
|
|
1513
|
+
}
|
|
1514
|
+
else if (clientX > winW - threshold) {
|
|
1515
|
+
this.snappedEdge = 'right';
|
|
1516
|
+
}
|
|
1517
|
+
else if (clientY < threshold) {
|
|
1518
|
+
this.snappedEdge = 'top';
|
|
1519
|
+
}
|
|
1520
|
+
else if (clientY > winH - threshold) {
|
|
1521
|
+
this.snappedEdge = 'bottom';
|
|
1522
|
+
}
|
|
1523
|
+
else {
|
|
1524
|
+
this.snappedEdge = 'none';
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
handlePointerMove = (e) => {
|
|
1528
|
+
if (!this.dialogElement)
|
|
1529
|
+
return;
|
|
1530
|
+
if (this.isDragging) {
|
|
1531
|
+
const dx = e.clientX - this.dragStartX;
|
|
1532
|
+
const dy = e.clientY - this.dragStartY;
|
|
1533
|
+
// Anti-jitter: Avoid resetting styles until true movement occurs
|
|
1534
|
+
if (!this.dragAnchored) {
|
|
1535
|
+
if (Math.abs(dx) < 5 && Math.abs(dy) < 5)
|
|
1536
|
+
return;
|
|
1537
|
+
this.dragAnchored = true;
|
|
1538
|
+
this.dialogElement.style.margin = '0';
|
|
1539
|
+
this.dialogElement.style.position = 'fixed';
|
|
1540
|
+
this.dialogElement.style.left = `${this.initialLeft}px`;
|
|
1541
|
+
this.dialogElement.style.top = `${this.initialTop}px`;
|
|
1542
|
+
this.dialogElement.style.transform = 'none';
|
|
1543
|
+
this.dialogElement.style.width = `${this.dialogElement.offsetWidth}px`; // Lock width
|
|
1544
|
+
this.dialogElement.classList.add('is-dragging');
|
|
1545
|
+
}
|
|
1546
|
+
this.dialogElement.style.left = `${this.initialLeft + dx}px`;
|
|
1547
|
+
this.dialogElement.style.top = `${this.initialTop + dy}px`;
|
|
1548
|
+
if (this.snapToEdges) {
|
|
1549
|
+
this.checkSnapping(e.clientX, e.clientY);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
else if (this.isResizing) {
|
|
1553
|
+
const dx = e.clientX - this.resizeStartX;
|
|
1554
|
+
const dy = e.clientY - this.resizeStartY;
|
|
1555
|
+
let newWidth = this.initialWidth + dx;
|
|
1556
|
+
let newHeight = this.initialHeight + dy;
|
|
1557
|
+
// Helper to parse pixel values safely
|
|
1558
|
+
const parseVal = (v) => v ? parseInt(v, 10) : null;
|
|
1559
|
+
if (this.minWidth)
|
|
1560
|
+
newWidth = Math.max(newWidth, parseVal(this.minWidth) || 0);
|
|
1561
|
+
if (this.minHeight)
|
|
1562
|
+
newHeight = Math.max(newHeight, parseVal(this.minHeight) || 0);
|
|
1563
|
+
if (this.maxWidth)
|
|
1564
|
+
newWidth = Math.min(newWidth, parseVal(this.maxWidth) || 9999);
|
|
1565
|
+
if (this.maxHeight)
|
|
1566
|
+
newHeight = Math.min(newHeight, parseVal(this.maxHeight) || 9999);
|
|
1567
|
+
this.dialogElement.style.width = `${newWidth}px`;
|
|
1568
|
+
this.dialogElement.style.height = `${newHeight}px`;
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
handlePointerUp = (e) => {
|
|
1572
|
+
if (!this.dialogElement) {
|
|
1573
|
+
this.isDragging = false;
|
|
1574
|
+
this.isResizing = false;
|
|
1575
|
+
return;
|
|
1576
|
+
}
|
|
1577
|
+
// Release capture
|
|
1578
|
+
if (this.isDragging && this.dialogElement.releasePointerCapture) {
|
|
1579
|
+
try {
|
|
1580
|
+
this.dialogElement.releasePointerCapture(e.pointerId);
|
|
1581
|
+
}
|
|
1582
|
+
catch (ex) { }
|
|
1583
|
+
}
|
|
1584
|
+
if (this.isResizing && e.target.releasePointerCapture) {
|
|
1585
|
+
try {
|
|
1586
|
+
e.target.releasePointerCapture(e.pointerId);
|
|
1587
|
+
}
|
|
1588
|
+
catch (ex) { }
|
|
1589
|
+
}
|
|
1590
|
+
if (this.isDragging || this.isResizing) {
|
|
1591
|
+
this.ignoreBackdropClick = true;
|
|
1592
|
+
setTimeout(() => {
|
|
1593
|
+
this.ignoreBackdropClick = false;
|
|
1594
|
+
}, 100);
|
|
1595
|
+
}
|
|
1596
|
+
if (this.isDragging && this.snapToEdges && this.snappedEdge !== 'none') {
|
|
1597
|
+
this.maximize(); // Changed from applySnap to maximize as per user edit
|
|
1598
|
+
}
|
|
1599
|
+
// Reset global styles
|
|
1600
|
+
if (this.isDragging) {
|
|
1601
|
+
document.body.style.userSelect = '';
|
|
1602
|
+
document.body.style.cursor = '';
|
|
1603
|
+
}
|
|
1604
|
+
// Commit final position so next drag starts cleanly from the landed location
|
|
1605
|
+
if (this.isDragging && this.dragAnchored && this.dialogElement) {
|
|
1606
|
+
const rect = this.dialogElement.getBoundingClientRect();
|
|
1607
|
+
this.dialogElement.style.left = `${rect.left}px`;
|
|
1608
|
+
this.dialogElement.style.top = `${rect.top}px`;
|
|
1609
|
+
this.dialogElement.style.transform = 'none';
|
|
1610
|
+
}
|
|
1611
|
+
this.isDragging = false;
|
|
1612
|
+
this.dragAnchored = false;
|
|
1613
|
+
this.isResizing = false;
|
|
1614
|
+
this.snappedEdge = 'none';
|
|
1615
|
+
// Persistence
|
|
1616
|
+
if (this.remember)
|
|
1617
|
+
this.saveLayout();
|
|
1618
|
+
// Swipe to Close detection
|
|
1619
|
+
if (this.swipeToClose && !this.isResizing && !this.isDragging) {
|
|
1620
|
+
const dx = e.clientX - this.dragStartX;
|
|
1621
|
+
if (Math.abs(dx) > 150) { // Swipe threshold
|
|
1622
|
+
this.hide();
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
document.removeEventListener('pointermove', this.handlePointerMove);
|
|
1626
|
+
document.removeEventListener('pointerup', this.handlePointerUp);
|
|
1627
|
+
};
|
|
1628
|
+
handleResizePointerDown = (e) => {
|
|
1629
|
+
if (!this.resizable || this.maximized)
|
|
1630
|
+
return;
|
|
1631
|
+
e.stopPropagation();
|
|
1632
|
+
e.preventDefault();
|
|
1633
|
+
this.isResizing = true;
|
|
1634
|
+
this.resizeStartX = e.clientX;
|
|
1635
|
+
this.resizeStartY = e.clientY;
|
|
1636
|
+
const rect = this.dialogElement.getBoundingClientRect();
|
|
1637
|
+
this.initialWidth = rect.width;
|
|
1638
|
+
this.initialHeight = rect.height;
|
|
1639
|
+
// Lock position
|
|
1640
|
+
this.dialogElement.style.margin = '0';
|
|
1641
|
+
this.dialogElement.style.position = 'fixed';
|
|
1642
|
+
this.dialogElement.style.left = `${rect.left}px`;
|
|
1643
|
+
this.dialogElement.style.top = `${rect.top}px`;
|
|
1644
|
+
// Capture pointer
|
|
1645
|
+
try {
|
|
1646
|
+
e.target.setPointerCapture(e.pointerId);
|
|
1647
|
+
}
|
|
1648
|
+
catch (ex) { }
|
|
1649
|
+
// Alternatively capture on dialog if handle is sm
|
|
1650
|
+
// try { this.dialogElement.setPointerCapture(e.pointerId); } catch(ex) {}
|
|
1651
|
+
document.addEventListener('pointermove', this.handlePointerMove);
|
|
1652
|
+
document.addEventListener('pointerup', this.handlePointerUp);
|
|
1653
|
+
};
|
|
1654
|
+
renderHeader(isPeek = false) {
|
|
1655
|
+
if (!this.showHeader)
|
|
1656
|
+
return null;
|
|
1657
|
+
// Provide default cancelText for session/terms types if not set
|
|
1658
|
+
let cancelLabel = this.cancelText;
|
|
1659
|
+
if (!cancelLabel) {
|
|
1660
|
+
if (this.type === 'session')
|
|
1661
|
+
cancelLabel = 'Logout';
|
|
1662
|
+
else if (this.type === 'terms')
|
|
1663
|
+
cancelLabel = 'Decline';
|
|
1664
|
+
else
|
|
1665
|
+
cancelLabel = this._resolveButtons().cancelLabel;
|
|
1666
|
+
}
|
|
1667
|
+
// Use local defaults for okLabel and dialogTitle
|
|
1668
|
+
let okLabel = this.okText;
|
|
1669
|
+
if (!okLabel) {
|
|
1670
|
+
okLabel = this._defaultOkText || this._resolveButtons().okLabel;
|
|
1671
|
+
}
|
|
1672
|
+
let dialogTitle = this.dialogTitle;
|
|
1673
|
+
if (!dialogTitle) {
|
|
1674
|
+
dialogTitle = this._defaultDialogTitle;
|
|
1675
|
+
}
|
|
1676
|
+
return (index.h("ui-dialog-header", { part: "header", dialogTitle: dialogTitle, subtitle: this.subtitle, showMinimize: !isPeek && this.showMinimize && !this.maximized && this.type !== 'messagebox', showMaximize: !isPeek && this.showMaximize && this.type !== 'messagebox', showClose: this.showClose, showMenu: !isPeek && (this.showMenu || (Array.isArray(this.menuItems) ? this.menuItems.length > 0 : !!this.menuItems)), menuItems: this.menuItems, menuIcon: this.menuIcon, menuTitle: this.menuTitle, titleTag: this.titleTag, iconPosition: this.iconPosition, type: this.type, variant: this.variant, status: this.status, icon: this.icon, avatar: this.avatar, onMinimize: (e) => { e.stopImmediatePropagation(); this.minimize(); }, onMaximize: (e) => { e.stopImmediatePropagation(); this.maximize(); }, onClose: (e) => { e.stopImmediatePropagation(); this.hide('close-btn'); }, onMenu: (e) => { e.stopImmediatePropagation(); this.handleMenu(e); }, iconLibrary: this.iconLibrary, style: this.headerColor ? { backgroundColor: this.headerColor, color: '#fff' } : {} }, (this.headerImage || this.el.querySelector('[slot="header-icon"]')) && (index.h("div", { slot: "icon", style: { display: 'flex', alignItems: 'center', gap: '8px' } }, this.headerImage && index.h("img", { src: this.headerImage, alt: "", style: { width: '20px', height: '20px', borderRadius: '4px' } }), index.h("slot", { name: "header-icon" }))), index.h("slot", { name: "title", slot: "title" }), index.h("slot", { name: "subtitle", slot: "subtitle" }), index.h("slot", { name: "header-actions", slot: "actions" }), index.h("slot", { name: "menu-list", slot: "menu-list" }), this.allowPopOut && !isPeek && (index.h("ui-button", { variant: "ghost", size: "sm", icon: "external-link", iconLibrary: this.iconLibrary, iconSize: "1.2em", ariaLabel: "Pop out Window", onClick: () => this.popOut(), slot: "actions", part: "popout-btn" }))));
|
|
1677
|
+
}
|
|
1678
|
+
renderStepper() {
|
|
1679
|
+
if (!this.steps || (typeof this.steps === 'number' ? this.steps <= 0 : this.steps.length <= 0))
|
|
1680
|
+
return null;
|
|
1681
|
+
return (index.h("div", { class: "ui-dialog-stepper" }, Array.from({ length: typeof this.steps === 'number' ? this.steps : this.steps.length }).map((_, i) => (index.h("div", { class: {
|
|
1682
|
+
'step-item': true,
|
|
1683
|
+
'active': this._currentStep === i + 1,
|
|
1684
|
+
'completed': this._currentStep > i + 1
|
|
1685
|
+
} }, index.h("div", { class: "step-dot" }, i + 1), Array.isArray(this.steps) && index.h("div", { class: "step-label" }, this.steps[i]), i < (typeof this.steps === 'number' ? this.steps : this.steps.length) - 1 && index.h("div", { class: "step-line" }))))));
|
|
1686
|
+
}
|
|
1687
|
+
renderBodyContent() {
|
|
1688
|
+
return (index.h("div", { class: { 'ui-dialog-main-container': true, 'has-side-nav': this.layout === 'side-nav' } }, this.layout === 'side-nav' && (index.h("div", { class: "ui-dialog-side-nav" }, index.h("slot", { name: "side-nav" }))), index.h("div", { class: { 'ui-dialog-content-wrapper': true, 'type-messagebox': this.type === 'messagebox' }, part: "body", onScroll: this.handleTermsScroll }, this.type === 'session' && (index.h("div", { class: `ui-dialog-session-alert ${this._sessionTimedOut ? 'is-timeout' : ''}` }, index.h("ui-icon", { name: this._sessionTimedOut ? 'log-out' : 'clock', library: "lucide" }), this._sessionTimedOut ? (index.h("div", { class: "timeout-content" }, index.h("p", { style: { fontWeight: '600', color: '#ef4444', margin: '0 0 8px' } }, "Due to inactivity, you have been logged out."), index.h("p", { style: { fontSize: '13px', color: '#666', margin: '0' } }, "Please log in again to continue working on your tasks."))) : (index.h("span", null, "Session expiring in ", index.h("strong", null, this._sessionTimeLeft, "s"))))), index.h("slot", { name: "body" }, index.h("slot", null), this.type === 'prompt' && (index.h("div", { class: "ui-dialog-prompt-container" }, index.h("ui-input", { type: this.promptType, name: "prompt", class: "ui-dialog-prompt-input", value: this.promptValue, placeholder: this.promptPlaceholder, label: this.promptLabel, onInputChange: (e) => {
|
|
1689
|
+
this.promptValue = e.detail;
|
|
1690
|
+
this.returnValue = this.promptValue;
|
|
1691
|
+
}, autofocus: true, fullWidth: true })))))));
|
|
1692
|
+
}
|
|
1693
|
+
renderFooterContent() {
|
|
1694
|
+
if (!this.showFooter)
|
|
1695
|
+
return null;
|
|
1696
|
+
const { okLabel, cancelLabel, resetLabel } = this._resolveButtons();
|
|
1697
|
+
// If no buttons at all and no slots, skip the footer entirely
|
|
1698
|
+
const hasButtons = okLabel || cancelLabel || resetLabel;
|
|
1699
|
+
const hasSlots = !!this.confirmationText;
|
|
1700
|
+
if (!hasButtons && !hasSlots)
|
|
1701
|
+
return null;
|
|
1702
|
+
return (index.h("ui-dialog-footer", { class: "ui-dialog-footer-wrapper", part: "footer" }, index.h("div", { class: "footer-left" }, this.confirmationText && (index.h("div", { class: "ui-dialog-confirmation" }, index.h("ui-checkbox", { class: "confirmation-checkbox", checked: this.isConfirmed, label: this.confirmationText, onCheckboxChange: (e) => {
|
|
1703
|
+
this.isConfirmed = e.detail.checked;
|
|
1704
|
+
} }))), index.h("slot", { name: "footer-left" })), index.h("div", { class: "footer-right", part: "footer-actions" }, index.h("slot", { name: "actions" }, resetLabel && (index.h("ui-button", { variant: "outline", size: "md", onButtonClick: this.handleReset }, resetLabel)), cancelLabel && (index.h("ui-button", { variant: "outline", size: "md", onButtonClick: this.handleCancel, disabled: this.cancelDisabled }, cancelLabel)), okLabel && (index.h("ui-button", { variant: (this.status === 'default' || this.status === 'info') ? 'primary' : this.status, size: "md", onButtonClick: this._sessionTimedOut ? () => window.location.href = '/login' : this.handleOk, loading: this.okLoading, disabled: this.okDisabled || (!!this.confirmationText && !this.isConfirmed) || (this.type === 'terms' && !this._termsScrolled) }, this._sessionTimedOut ? "Go to Login" : okLabel))), index.h("div", { class: "footer-custom-slot" }, index.h("slot", { name: "footer" })))));
|
|
1705
|
+
}
|
|
1706
|
+
render() {
|
|
1707
|
+
if (!this.open && !this.isClosing && !this.keepMounted)
|
|
1708
|
+
return null;
|
|
1709
|
+
// ── Minimized tray render ──────────────────────────────────────────────
|
|
1710
|
+
if (this.minimized && this.open && !this._dockPeek) {
|
|
1711
|
+
return (index.h(index.Host, { class: { 'minimized': true, 'open': this.open } }, index.h("div", { class: `ui-tray-tab status-${this.status} ${this.variant === 'glass' ? 'variant-glass' : ''}`, onClick: () => this.restore(), onDblClick: () => this.restore(), title: `Click to Restore ${this.dialogTitle}`, style: {
|
|
1712
|
+
color: '#ffffff',
|
|
1713
|
+
display: 'flex',
|
|
1714
|
+
alignItems: 'center',
|
|
1715
|
+
justifyContent: 'center',
|
|
1716
|
+
padding: '0 8px',
|
|
1717
|
+
gap: '12px',
|
|
1718
|
+
height: '100%',
|
|
1719
|
+
width: '100%',
|
|
1720
|
+
minWidth: '100px',
|
|
1721
|
+
fontWeight: '600'
|
|
1722
|
+
} }, this.icon && index.h("ui-icon", { name: this.icon, color: "white", library: this.iconLibrary, size: "1rem", style: { flexShrink: '0' } }), index.h("span", { class: "tab-label", style: { color: '#ffffff', flex: '0 1 auto', whiteSpace: 'nowrap' } }, this.dockLabel || this.dialogTitle || 'Dialog'), index.h("ui-button", { variant: "ghost", size: "sm", class: "ui-tray-btn", icon: "x", iconLibrary: "lucide", iconSize: "14px", ariaLabel: "Close", onClick: (e) => { e.stopPropagation(); this.hide(); } }))));
|
|
1723
|
+
}
|
|
1724
|
+
const isHidden = !this.open && !this.isClosing && this.keepMounted;
|
|
1725
|
+
// Use a local variable for effective size (do not mutate prop)
|
|
1726
|
+
const effectiveSize = this.type === 'terms' && this.size === 'md' ? 'lg' : this.size;
|
|
1727
|
+
const dialogClasses = {
|
|
1728
|
+
'ui-dialog-box': true,
|
|
1729
|
+
'closing': this.isClosing,
|
|
1730
|
+
'maximized': this.maximized,
|
|
1731
|
+
'minimized': this.minimized,
|
|
1732
|
+
[`variant-${this.variant}`]: true,
|
|
1733
|
+
[`status-${this.status}`]: this.status !== 'default',
|
|
1734
|
+
[`size-${effectiveSize}`]: effectiveSize !== 'custom',
|
|
1735
|
+
'scroll-paper': this.scrollArea === 'paper',
|
|
1736
|
+
'scroll-body': this.scrollArea === 'body',
|
|
1737
|
+
[`animation-${this.animation}`]: true,
|
|
1738
|
+
'fullscreen-mobile': this.fullscreenOnMobile,
|
|
1739
|
+
'hidden-mounted': isHidden,
|
|
1740
|
+
'draggable': this.isDraggable,
|
|
1741
|
+
'is-dragging': this.isDragging,
|
|
1742
|
+
'loading-active': this.loading,
|
|
1743
|
+
'is-bordered': this.bordered,
|
|
1744
|
+
'is-nested': this.isNested,
|
|
1745
|
+
'debug-mode': this.debug,
|
|
1746
|
+
'glass-effect': this.glass || this.variant === 'glass',
|
|
1747
|
+
[`type-${this.type}`]: true,
|
|
1748
|
+
[`density-${this.density}`]: true,
|
|
1749
|
+
'shake': this._isShaking
|
|
1750
|
+
};
|
|
1751
|
+
const dialogStyles = {
|
|
1752
|
+
'--dialog-bg': this.backgroundColor || 'white',
|
|
1753
|
+
backgroundColor: 'var(--dialog-bg, #ffffff)'
|
|
1754
|
+
};
|
|
1755
|
+
if (!this.maximized) {
|
|
1756
|
+
const isDefaultWidth = this.width === '500px';
|
|
1757
|
+
const isDefaultHeight = this.height === 'auto';
|
|
1758
|
+
if (effectiveSize === 'custom' || !isDefaultWidth || !isDefaultHeight || this._restoredLayout) {
|
|
1759
|
+
if (this.width)
|
|
1760
|
+
dialogStyles.width = this.width;
|
|
1761
|
+
if (this.height && this.scrollArea !== 'body')
|
|
1762
|
+
dialogStyles.height = this.height;
|
|
1763
|
+
}
|
|
1764
|
+
if (this._restoredLayout) {
|
|
1765
|
+
dialogStyles.position = 'fixed';
|
|
1766
|
+
dialogStyles.margin = '0';
|
|
1767
|
+
dialogStyles.left = `${this._restoredLayout.left}px`;
|
|
1768
|
+
dialogStyles.top = `${this._restoredLayout.top}px`;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
const dialogId = this.el.id || `dialog-idx-${Math.random().toString(36).substr(2, 5)}`;
|
|
1772
|
+
const posClass = `position-${this.position}`;
|
|
1773
|
+
return (index.h(index.Host, { class: { 'open': this.open, 'minimized': this.minimized, 'dock-peek': this._dockPeek } }, this.minimized && this._dockPeek && (index.h("div", { class: `ui-peek-panel variant-${this.variant} status-${this.status}`, onClick: (e) => e.stopPropagation() }, this.renderHeader(true), index.h("div", { class: "ui-dialog-content-wrapper" }, index.h("slot", { name: "body" }, index.h("slot", null))))), (!this.minimized || this._dockPeek) && (index.h("div", { class: `ui-dialog-backdrop ${this.backdrop === 'none' ? 'backdrop-none' : ''} ${this.scrollArea === 'body' ? 'scroll-body-active' : ''} ${posClass} ${this.isClosing ? 'closing' : ''} ${this.glass ? 'glass-backdrop' : ''} ${isHidden ? 'hidden-mounted' : ''}`, onClick: this.handleBackdropClick, part: "backdrop", ref: (el) => (this.backdropElement = el), style: { zIndex: `${this.zIndex}` } }, index.h("div", { ref: (el) => (this.dialogElement = el), class: dialogClasses, style: dialogStyles, part: "panel", onPointerDown: this.handlePointerDown, tabIndex: -1, role: "dialog", "aria-modal": "true", id: dialogId }, index.h("div", { class: "ui-dialog-box-container", onPointerUp: this.handlePointerUp }, this.renderHeader(), this.showHeader && index.h("div", { class: "ui-dialog-divider-line" }), this.progress >= 0 && (index.h("div", { class: "ui-dialog-progress-container", title: `Progress: ${this.progress}%` }, index.h("div", { class: "ui-dialog-progress-bar", style: { width: `${this.progress}%` } }))), this.renderStepper(), this.showToolbar && (index.h("div", { class: "ui-dialog-toolbar" }, index.h("slot", { name: "toolbar" }))), this.renderBodyContent(), this.showStatusBar && (index.h("div", { class: "ui-dialog-status-bar" }, index.h("slot", { name: "status-bar" }))), this.showFooter && index.h("div", { class: "ui-dialog-divider-line" }), this.renderFooterContent(), this.resizable && !this.maximized && (index.h("div", { class: "resize-handle", onPointerDown: this.handleResizePointerDown })), this.subOverlay?.visible && (index.h("div", { class: "ui-dialog-sub-overlay" }, index.h("div", { class: "sub-overlay-card" }, index.h("h4", null, this.subOverlay.title), index.h("p", null, this.subOverlay.message), index.h("div", { class: "sub-overlay-actions" }, index.h("ui-button", { variant: "outline", onButtonClick: () => this.subOverlay = null }, "Cancel"), index.h("ui-button", { variant: "primary", onButtonClick: () => { this.subOverlay.onConfirm(); this.subOverlay = null; } }, "Confirm")))))))))));
|
|
1774
|
+
}
|
|
1775
|
+
triggerConfetti() {
|
|
1776
|
+
const count = 200;
|
|
1777
|
+
const defaults = { origin: { y: 0.7 }, zIndex: this.zIndex + 10 };
|
|
1778
|
+
function fire(particleRatio, opts) {
|
|
1779
|
+
if (window.confetti) {
|
|
1780
|
+
window.confetti(Object.assign({}, defaults, opts, {
|
|
1781
|
+
particleCount: Math.floor(count * particleRatio)
|
|
1782
|
+
}));
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
fire(0.25, { spread: 26, startVelocity: 55 });
|
|
1786
|
+
fire(0.2, { spread: 60 });
|
|
1787
|
+
fire(0.35, { spread: 100, decay: 0.91, scalar: 0.8 });
|
|
1788
|
+
fire(0.1, { spread: 120, startVelocity: 25, decay: 0.92, scalar: 1.2 });
|
|
1789
|
+
fire(0.1, { spread: 120, startVelocity: 45 });
|
|
1790
|
+
}
|
|
1791
|
+
static get watchers() { return {
|
|
1792
|
+
"currentStep": [{
|
|
1793
|
+
"currentStepChanged": 0
|
|
1794
|
+
}],
|
|
1795
|
+
"minimized": [{
|
|
1796
|
+
"minimizedChanged": 0
|
|
1797
|
+
}],
|
|
1798
|
+
"_dockPeek": [{
|
|
1799
|
+
"onDockPeekChange": 0
|
|
1800
|
+
}],
|
|
1801
|
+
"open": [{
|
|
1802
|
+
"openChanged": 0
|
|
1803
|
+
}]
|
|
1804
|
+
}; }
|
|
1805
|
+
};
|
|
1806
|
+
DialogBox.style = dialogBoxCss() + dialogTrayCss();
|
|
1807
|
+
|
|
1808
|
+
exports.ui_dialog_box = DialogBox;
|