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,1759 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { sanitizeHTML } from "../../utils/security";
|
|
3
|
+
export class Snackbar {
|
|
4
|
+
element;
|
|
5
|
+
/**
|
|
6
|
+
* Position of the snackbar container
|
|
7
|
+
*/
|
|
8
|
+
position = 'top-right';
|
|
9
|
+
/**
|
|
10
|
+
* Maximum number of visible snackbars
|
|
11
|
+
*/
|
|
12
|
+
maxVisible = 5;
|
|
13
|
+
/**
|
|
14
|
+
* Stack mode for snackbars (only applies when maxVisible > 1)
|
|
15
|
+
*/
|
|
16
|
+
stackMode = 'stack';
|
|
17
|
+
/**
|
|
18
|
+
* Open animation mode for snackbars
|
|
19
|
+
*/
|
|
20
|
+
openMode = 'slide-down';
|
|
21
|
+
/**
|
|
22
|
+
* Default variant for snackbars
|
|
23
|
+
*/
|
|
24
|
+
variant = 'filled';
|
|
25
|
+
/**
|
|
26
|
+
* Default size for snackbars
|
|
27
|
+
*/
|
|
28
|
+
size = 'md';
|
|
29
|
+
/**
|
|
30
|
+
* Default theme for notifications
|
|
31
|
+
*/
|
|
32
|
+
theme = 'auto';
|
|
33
|
+
/**
|
|
34
|
+
* Enable card stacking mode - notifications stack like cards and expand on hover
|
|
35
|
+
*/
|
|
36
|
+
cardStack = false;
|
|
37
|
+
/**
|
|
38
|
+
* Default group threshold (ms) - identical messages within this window are coalesced
|
|
39
|
+
*/
|
|
40
|
+
groupThreshold = 3000;
|
|
41
|
+
/**
|
|
42
|
+
* Global default duration (ms) for notifications. 0 is infinite.
|
|
43
|
+
*/
|
|
44
|
+
duration = 5000;
|
|
45
|
+
/**
|
|
46
|
+
* Enable smart grouping (coalescing) of identical messages
|
|
47
|
+
*/
|
|
48
|
+
coalesce = false;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum duration cap (ms). Any item duration above this value is clamped. 0 = no cap.
|
|
51
|
+
*/
|
|
52
|
+
maxDuration = 0;
|
|
53
|
+
/**
|
|
54
|
+
* Show a live countdown chip (e.g. "3s") inside the notification before it closes.
|
|
55
|
+
* Only visible when duration > 0 and progress is set to 'bar' or 'ring'.
|
|
56
|
+
*/
|
|
57
|
+
showCountdown = false;
|
|
58
|
+
/**
|
|
59
|
+
* Explicit text direction for this notification instance only.
|
|
60
|
+
* 'auto' reads the CSS computed direction of the element.
|
|
61
|
+
* 'rtl' / 'ltr' override immediately without touching the page layout.
|
|
62
|
+
*/
|
|
63
|
+
textDirection = 'auto';
|
|
64
|
+
onTextDirectionChange() {
|
|
65
|
+
this.updateDir();
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Default library for icons
|
|
69
|
+
*/
|
|
70
|
+
iconLibrary = 'lucide';
|
|
71
|
+
/**
|
|
72
|
+
* Move snackbar to the bottom of the body automatically on load
|
|
73
|
+
*/
|
|
74
|
+
portal = true;
|
|
75
|
+
/**
|
|
76
|
+
* Pause timers when the cursor hovers over the snackbar
|
|
77
|
+
*/
|
|
78
|
+
pauseOnHover = true;
|
|
79
|
+
/**
|
|
80
|
+
* Pause timers when the window loses focus (e.g. tab switch)
|
|
81
|
+
*/
|
|
82
|
+
pauseOnFocusLoss = true;
|
|
83
|
+
/**
|
|
84
|
+
* Sound mode: 'none' | 'synth' | 'custom'
|
|
85
|
+
*/
|
|
86
|
+
soundMode = 'synth';
|
|
87
|
+
/**
|
|
88
|
+
* Enable CSS particle burst on 'sovereign' type notifications.
|
|
89
|
+
* Set to false to disable all particle effects.
|
|
90
|
+
*/
|
|
91
|
+
particles = true;
|
|
92
|
+
/**
|
|
93
|
+
* Enable slot support for custom notification layouts
|
|
94
|
+
*/
|
|
95
|
+
enableSlots = false;
|
|
96
|
+
/**
|
|
97
|
+
* Event emitted when a snackbar is closed
|
|
98
|
+
*/
|
|
99
|
+
snackbarClosed;
|
|
100
|
+
/**
|
|
101
|
+
* Event emitted when a snackbar is added
|
|
102
|
+
*/
|
|
103
|
+
snackbarAdded;
|
|
104
|
+
/**
|
|
105
|
+
* Event emitted when a snackbar is updated
|
|
106
|
+
*/
|
|
107
|
+
snackbarUpdated;
|
|
108
|
+
/**
|
|
109
|
+
* Event emitted when a snackbar link is clicked
|
|
110
|
+
*/
|
|
111
|
+
snackbarLinkClicked;
|
|
112
|
+
/**
|
|
113
|
+
* Event emitted when a snackbar action button is clicked
|
|
114
|
+
*/
|
|
115
|
+
snackbarActionClicked;
|
|
116
|
+
snackbars = [];
|
|
117
|
+
visibleSnackbars = [];
|
|
118
|
+
animatedItems = new Set();
|
|
119
|
+
isHovered = false;
|
|
120
|
+
expandedSnackbars = new Set();
|
|
121
|
+
dragX = {};
|
|
122
|
+
isDragging = null;
|
|
123
|
+
dir = 'ltr';
|
|
124
|
+
/** Per-notification remaining seconds for the countdown chip (reactive) */
|
|
125
|
+
countdownSeconds = {};
|
|
126
|
+
timers = {};
|
|
127
|
+
startX = 0;
|
|
128
|
+
componentWillLoad() {
|
|
129
|
+
this.updateVisibleSnackbars();
|
|
130
|
+
// Detect RTL direction from ancestral context
|
|
131
|
+
this.updateDir();
|
|
132
|
+
// Add global key listener
|
|
133
|
+
window.addEventListener('keydown', this.handleGlobalKeyDown);
|
|
134
|
+
// Portal to body if requested
|
|
135
|
+
if (this.portal && document.body && this.element.parentElement !== document.body) {
|
|
136
|
+
document.body.appendChild(this.element);
|
|
137
|
+
}
|
|
138
|
+
window.addEventListener('blur', () => this.handleWindowBlur());
|
|
139
|
+
window.addEventListener('focus', () => this.handleWindowFocus());
|
|
140
|
+
}
|
|
141
|
+
updateDir() {
|
|
142
|
+
// Explicit prop takes priority — never reads nor touches the page dir
|
|
143
|
+
if (this.textDirection === 'rtl') {
|
|
144
|
+
this.dir = 'rtl';
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (this.textDirection === 'ltr') {
|
|
148
|
+
this.dir = 'ltr';
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
// 'auto': respect only the element's own CSS computed direction
|
|
152
|
+
// (inherited from a parent that has dir set — NOT the global html element)
|
|
153
|
+
const computed = getComputedStyle(this.element).direction;
|
|
154
|
+
this.dir = (computed === 'rtl') ? 'rtl' : 'ltr';
|
|
155
|
+
}
|
|
156
|
+
disconnectedCallback() {
|
|
157
|
+
window.removeEventListener('keydown', this.handleGlobalKeyDown);
|
|
158
|
+
window.removeEventListener('blur', () => this.handleWindowBlur());
|
|
159
|
+
window.removeEventListener('focus', () => this.handleWindowFocus());
|
|
160
|
+
}
|
|
161
|
+
handleGlobalKeyDown = (e) => {
|
|
162
|
+
if (e.key === 'Escape' && this.snackbars.length > 0) {
|
|
163
|
+
e.preventDefault();
|
|
164
|
+
e.stopPropagation();
|
|
165
|
+
this.closeAll();
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
positionChanged() {
|
|
169
|
+
this.updateVisibleSnackbars();
|
|
170
|
+
}
|
|
171
|
+
maxVisibleChanged() {
|
|
172
|
+
this.updateVisibleSnackbars();
|
|
173
|
+
}
|
|
174
|
+
stackModeChanged() {
|
|
175
|
+
this.updateVisibleSnackbars();
|
|
176
|
+
}
|
|
177
|
+
handleWindowBlur() {
|
|
178
|
+
if (this.pauseOnFocusLoss)
|
|
179
|
+
this.isHovered = true;
|
|
180
|
+
}
|
|
181
|
+
handleWindowFocus() {
|
|
182
|
+
if (this.pauseOnFocusLoss) {
|
|
183
|
+
this.isHovered = false;
|
|
184
|
+
// Reset times to avoid jumps
|
|
185
|
+
const now = Date.now();
|
|
186
|
+
Object.values(this.timers).forEach(timer => {
|
|
187
|
+
timer.lastTime = now;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
updateVisibleSnackbars() {
|
|
192
|
+
this.visibleSnackbars = [...this.snackbars]
|
|
193
|
+
.sort((a, b) => {
|
|
194
|
+
if (a.priority === 'urgent' && b.priority !== 'urgent')
|
|
195
|
+
return -1;
|
|
196
|
+
if (a.priority !== 'urgent' && b.priority === 'urgent')
|
|
197
|
+
return 1;
|
|
198
|
+
return 0;
|
|
199
|
+
})
|
|
200
|
+
.slice(0, this.maxVisible);
|
|
201
|
+
}
|
|
202
|
+
async add(item) {
|
|
203
|
+
if (this.coalesce) {
|
|
204
|
+
const existingIndex = this.snackbars.findIndex(it => it.message === item.message &&
|
|
205
|
+
it.type === item.type);
|
|
206
|
+
if (existingIndex !== -1) {
|
|
207
|
+
const existingId = this.snackbars[existingIndex].id;
|
|
208
|
+
const history = this.snackbars[existingIndex].history || [];
|
|
209
|
+
this.update(existingId, {
|
|
210
|
+
count: (this.snackbars[existingIndex].count || 1) + 1,
|
|
211
|
+
duration: item.duration || this.snackbars[existingIndex].duration || this.duration,
|
|
212
|
+
history: [...history, { message: item.message, title: item.title, timestamp: Date.now() }]
|
|
213
|
+
});
|
|
214
|
+
return existingId;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
const id = this.generateId();
|
|
218
|
+
const snackbarItem = {
|
|
219
|
+
id,
|
|
220
|
+
type: item.type || 'info',
|
|
221
|
+
title: item.title,
|
|
222
|
+
message: item.message,
|
|
223
|
+
html: item.html || false,
|
|
224
|
+
avatar: item.avatar,
|
|
225
|
+
icon: item.icon,
|
|
226
|
+
iconLibrary: item.iconLibrary || this.iconLibrary,
|
|
227
|
+
link: item.link,
|
|
228
|
+
action: item.action,
|
|
229
|
+
actions: item.actions || [],
|
|
230
|
+
duration: item.duration === 0 ? 0 : this.clampDuration(item.duration || this.duration),
|
|
231
|
+
variant: item.variant || this.variant,
|
|
232
|
+
size: item.size || this.size,
|
|
233
|
+
customClass: item.customClass,
|
|
234
|
+
closable: item.closable !== false,
|
|
235
|
+
count: 1,
|
|
236
|
+
haptic: item.haptic || (item.type === 'error'),
|
|
237
|
+
sound: item.sound,
|
|
238
|
+
progress: item.progress || 'bar',
|
|
239
|
+
priority: item.priority || (item.type === 'error' ? 'urgent' : 'high'),
|
|
240
|
+
theme: item.theme || this.theme,
|
|
241
|
+
input: item.input,
|
|
242
|
+
sticky: !!item.sticky,
|
|
243
|
+
onClose: item.onClose,
|
|
244
|
+
slot: item.slot,
|
|
245
|
+
history: [{ message: item.message, title: item.title, timestamp: Date.now() }]
|
|
246
|
+
};
|
|
247
|
+
if (snackbarItem.type === 'sovereign' && this.particles) {
|
|
248
|
+
this.spawnParticles(id);
|
|
249
|
+
}
|
|
250
|
+
if (snackbarItem.haptic && 'vibrate' in navigator) {
|
|
251
|
+
if (snackbarItem.type === 'sovereign') {
|
|
252
|
+
navigator.vibrate([100, 30, 100, 30, 100]);
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
navigator.vibrate(snackbarItem.type === 'error' ? [50, 50, 50] : 30);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (this.soundMode === 'synth') {
|
|
259
|
+
this.playSynthSound(snackbarItem.type);
|
|
260
|
+
}
|
|
261
|
+
else if (snackbarItem.sound) {
|
|
262
|
+
new Audio(snackbarItem.sound).play().catch(() => { });
|
|
263
|
+
}
|
|
264
|
+
if (this.stackMode === 'stack' || this.stackMode === 'lifo') {
|
|
265
|
+
this.snackbars = [snackbarItem, ...this.snackbars];
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
this.snackbars = [...this.snackbars, snackbarItem];
|
|
269
|
+
}
|
|
270
|
+
if (this.snackbars.length > this.maxVisible) {
|
|
271
|
+
const toRemove = this.snackbars[this.snackbars.length - 1];
|
|
272
|
+
this.close(toRemove.id);
|
|
273
|
+
}
|
|
274
|
+
this.updateVisibleSnackbars();
|
|
275
|
+
this.startTimer(id, snackbarItem.duration ?? 0);
|
|
276
|
+
this.snackbarAdded.emit({ id, item: snackbarItem });
|
|
277
|
+
return id;
|
|
278
|
+
}
|
|
279
|
+
clampDuration(ms) {
|
|
280
|
+
if (this.maxDuration > 0 && ms > this.maxDuration)
|
|
281
|
+
return this.maxDuration;
|
|
282
|
+
return ms;
|
|
283
|
+
}
|
|
284
|
+
async close(id) {
|
|
285
|
+
const index = this.snackbars.findIndex(item => item.id === id);
|
|
286
|
+
if (index === -1)
|
|
287
|
+
return;
|
|
288
|
+
if (this.timers[id]) {
|
|
289
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
290
|
+
delete this.timers[id];
|
|
291
|
+
}
|
|
292
|
+
this.animatedItems.add(`${id}-closing`);
|
|
293
|
+
// Immediate removal to keep UI responsive as requested
|
|
294
|
+
if (this.snackbars[index]?.onClose)
|
|
295
|
+
this.snackbars[index].onClose();
|
|
296
|
+
this.snackbarClosed.emit({ id, item: this.snackbars[index] });
|
|
297
|
+
this.snackbars = this.snackbars.filter(item => item.id !== id);
|
|
298
|
+
this.animatedItems.delete(id);
|
|
299
|
+
this.animatedItems.delete(`${id}-closing`);
|
|
300
|
+
// Clean up countdown state for this item
|
|
301
|
+
if (this.countdownSeconds[id] !== undefined) {
|
|
302
|
+
const { [id]: _removed, ...rest } = this.countdownSeconds;
|
|
303
|
+
this.countdownSeconds = rest;
|
|
304
|
+
}
|
|
305
|
+
this.updateVisibleSnackbars();
|
|
306
|
+
}
|
|
307
|
+
async closeAll() {
|
|
308
|
+
Object.values(this.timers).forEach(t => cancelAnimationFrame(t.id));
|
|
309
|
+
this.timers = {};
|
|
310
|
+
this.snackbars.forEach(item => {
|
|
311
|
+
if (item.onClose)
|
|
312
|
+
item.onClose();
|
|
313
|
+
this.snackbarClosed.emit({ id: item.id, item });
|
|
314
|
+
});
|
|
315
|
+
this.snackbars = [];
|
|
316
|
+
this.visibleSnackbars = [];
|
|
317
|
+
this.animatedItems.clear();
|
|
318
|
+
}
|
|
319
|
+
async closeNext() {
|
|
320
|
+
if (this.snackbars.length === 0)
|
|
321
|
+
return;
|
|
322
|
+
let idToClose;
|
|
323
|
+
if (this.stackMode === 'queue') {
|
|
324
|
+
// FIFO: close the oldest item (last in array since newest is first)
|
|
325
|
+
idToClose = this.snackbars[this.snackbars.length - 1].id;
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
// stack / lifo: close the top-most (first in array = newest)
|
|
329
|
+
idToClose = this.snackbars[0].id;
|
|
330
|
+
}
|
|
331
|
+
await this.close(idToClose);
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Returns all current notifications
|
|
335
|
+
*/
|
|
336
|
+
async getAll() {
|
|
337
|
+
return [...this.snackbars];
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Pause timer for a specific notification
|
|
341
|
+
*/
|
|
342
|
+
async pause(id) {
|
|
343
|
+
if (this.timers[id]) {
|
|
344
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
345
|
+
this.timers[id].id = 0;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Resume timer for a specific notification
|
|
350
|
+
*/
|
|
351
|
+
async resume(id) {
|
|
352
|
+
if (this.timers[id] && this.timers[id].id === 0 && this.timers[id].remaining > 0) {
|
|
353
|
+
this.timers[id].lastTime = Date.now();
|
|
354
|
+
const loop = () => {
|
|
355
|
+
if (!this.timers[id])
|
|
356
|
+
return;
|
|
357
|
+
const now = Date.now();
|
|
358
|
+
const delta = now - this.timers[id].lastTime;
|
|
359
|
+
this.timers[id].lastTime = now;
|
|
360
|
+
if (!this.isHovered)
|
|
361
|
+
this.timers[id].remaining -= delta;
|
|
362
|
+
if (this.timers[id].remaining <= 0) {
|
|
363
|
+
this.close(id);
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Replace an existing notification completely
|
|
374
|
+
*/
|
|
375
|
+
async replace(id, newItem) {
|
|
376
|
+
const index = this.snackbars.findIndex(it => it.id === id);
|
|
377
|
+
if (index === -1)
|
|
378
|
+
return;
|
|
379
|
+
const replacedItem = { ...newItem, id };
|
|
380
|
+
const newSnackbars = [...this.snackbars];
|
|
381
|
+
newSnackbars[index] = replacedItem;
|
|
382
|
+
this.snackbars = newSnackbars;
|
|
383
|
+
this.updateVisibleSnackbars();
|
|
384
|
+
// Restart timer
|
|
385
|
+
if (this.timers[id]) {
|
|
386
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
387
|
+
delete this.timers[id];
|
|
388
|
+
}
|
|
389
|
+
if ((replacedItem.duration ?? 0) > 0)
|
|
390
|
+
this.startTimer(id, replacedItem.duration);
|
|
391
|
+
this.snackbarUpdated.emit({ id, item: replacedItem });
|
|
392
|
+
}
|
|
393
|
+
async promise(promise, data) {
|
|
394
|
+
const id = await this.add({
|
|
395
|
+
type: 'loading',
|
|
396
|
+
message: data.loading,
|
|
397
|
+
duration: 0,
|
|
398
|
+
closable: true
|
|
399
|
+
});
|
|
400
|
+
try {
|
|
401
|
+
const res = await (typeof promise === 'function' ? promise() : promise);
|
|
402
|
+
const successMsg = typeof data.success === 'function' ? data.success(res) : data.success;
|
|
403
|
+
this.update(id, {
|
|
404
|
+
type: 'success',
|
|
405
|
+
message: successMsg,
|
|
406
|
+
duration: data.duration || 4000,
|
|
407
|
+
closable: true
|
|
408
|
+
});
|
|
409
|
+
return res;
|
|
410
|
+
}
|
|
411
|
+
catch (err) {
|
|
412
|
+
const errorMsg = typeof data.error === 'function' ? data.error(err) : data.error;
|
|
413
|
+
this.update(id, {
|
|
414
|
+
type: 'error',
|
|
415
|
+
message: errorMsg,
|
|
416
|
+
duration: data.duration || 5000,
|
|
417
|
+
closable: true
|
|
418
|
+
});
|
|
419
|
+
throw err;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
async undoable(data) {
|
|
423
|
+
const id = await this.add({
|
|
424
|
+
message: data.message,
|
|
425
|
+
title: data.title,
|
|
426
|
+
type: data.type || 'neutral',
|
|
427
|
+
duration: data.duration || 6000,
|
|
428
|
+
action: data.action || {
|
|
429
|
+
label: 'UNDO',
|
|
430
|
+
onClick: () => {
|
|
431
|
+
data.onUndo();
|
|
432
|
+
this.close(id);
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
link: data.link
|
|
436
|
+
});
|
|
437
|
+
const listener = (event) => {
|
|
438
|
+
if (event.detail.id === id) {
|
|
439
|
+
if (data.onDismiss)
|
|
440
|
+
data.onDismiss();
|
|
441
|
+
this.element.removeEventListener('snackbarClosed', listener);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
this.element.addEventListener('snackbarClosed', listener);
|
|
445
|
+
return id;
|
|
446
|
+
}
|
|
447
|
+
async update(id, updates) {
|
|
448
|
+
const index = this.snackbars.findIndex(it => it.id === id);
|
|
449
|
+
if (index !== -1) {
|
|
450
|
+
const countChanged = updates.count !== undefined && updates.count !== this.snackbars[index].count;
|
|
451
|
+
const updatedItem = { ...this.snackbars[index], ...updates };
|
|
452
|
+
const newSnackbars = [...this.snackbars];
|
|
453
|
+
newSnackbars[index] = updatedItem;
|
|
454
|
+
this.snackbars = newSnackbars;
|
|
455
|
+
this.updateVisibleSnackbars();
|
|
456
|
+
if (countChanged) {
|
|
457
|
+
this.triggerBadgePulse(id);
|
|
458
|
+
}
|
|
459
|
+
if (updates.duration !== undefined) {
|
|
460
|
+
if (this.timers[id]) {
|
|
461
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
462
|
+
delete this.timers[id];
|
|
463
|
+
}
|
|
464
|
+
if (updates.duration > 0) {
|
|
465
|
+
this.startTimer(id, updates.duration);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
this.snackbarUpdated.emit({ id, item: updatedItem });
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
generateId() {
|
|
472
|
+
return `snackbar-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
473
|
+
}
|
|
474
|
+
startTimer(id, duration) {
|
|
475
|
+
const item = this.snackbars.find(s => s.id === id);
|
|
476
|
+
if (duration <= 0 || (item && item.sticky))
|
|
477
|
+
return;
|
|
478
|
+
this.timers[id] = {
|
|
479
|
+
remaining: duration,
|
|
480
|
+
lastTime: Date.now(),
|
|
481
|
+
duration: duration,
|
|
482
|
+
id: 0
|
|
483
|
+
};
|
|
484
|
+
const loop = () => {
|
|
485
|
+
if (!this.timers[id])
|
|
486
|
+
return;
|
|
487
|
+
const now = Date.now();
|
|
488
|
+
const delta = now - this.timers[id].lastTime;
|
|
489
|
+
this.timers[id].lastTime = now;
|
|
490
|
+
if (!this.isHovered) {
|
|
491
|
+
this.timers[id].remaining -= delta;
|
|
492
|
+
}
|
|
493
|
+
const progress = Math.min(100, Math.max(0, 100 - (this.timers[id].remaining / this.timers[id].duration) * 100));
|
|
494
|
+
const progressBar = this.getProgressBarElement(id);
|
|
495
|
+
if (progressBar) {
|
|
496
|
+
progressBar.style.width = `${progress}%`;
|
|
497
|
+
}
|
|
498
|
+
const progressRing = this.getProgressRingElement(id);
|
|
499
|
+
if (progressRing) {
|
|
500
|
+
const offset = 56.5 - (progress / 100) * 56.5;
|
|
501
|
+
progressRing.style.strokeDashoffset = `${offset}`;
|
|
502
|
+
}
|
|
503
|
+
// Countdown chip — update reactive state once per second so Stencil
|
|
504
|
+
// re-renders the value without direct DOM manipulation (which would be
|
|
505
|
+
// overwritten on the next virtual-DOM reconciliation).
|
|
506
|
+
if (this.showCountdown) {
|
|
507
|
+
const newSecs = Math.ceil(this.timers[id].remaining / 1000);
|
|
508
|
+
if (this.countdownSeconds[id] !== newSecs) {
|
|
509
|
+
this.countdownSeconds = { ...this.countdownSeconds, [id]: newSecs };
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
if (this.timers[id].remaining <= 0) {
|
|
513
|
+
this.close(id);
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
520
|
+
}
|
|
521
|
+
getProgressBarElement(id) {
|
|
522
|
+
return this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"] .snackbar-progress`);
|
|
523
|
+
}
|
|
524
|
+
getProgressRingElement(id) {
|
|
525
|
+
return this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"] .snackbar-progress-ring circle`);
|
|
526
|
+
}
|
|
527
|
+
handleCloseClick = (id) => {
|
|
528
|
+
this.close(id);
|
|
529
|
+
};
|
|
530
|
+
handleLinkClick = (id, item) => {
|
|
531
|
+
if (item.link) {
|
|
532
|
+
this.snackbarLinkClicked.emit({ id, item, link: item.link });
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
playSynthSound(type) {
|
|
536
|
+
try {
|
|
537
|
+
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
|
|
538
|
+
const oscillator = audioCtx.createOscillator();
|
|
539
|
+
const gainNode = audioCtx.createGain();
|
|
540
|
+
oscillator.connect(gainNode);
|
|
541
|
+
gainNode.connect(audioCtx.destination);
|
|
542
|
+
if (type === 'success' || type === 'sovereign') {
|
|
543
|
+
oscillator.type = 'sine';
|
|
544
|
+
oscillator.frequency.setValueAtTime(880, audioCtx.currentTime);
|
|
545
|
+
oscillator.frequency.exponentialRampToValueAtTime(1320, audioCtx.currentTime + 0.1);
|
|
546
|
+
gainNode.gain.setValueAtTime(0.05, audioCtx.currentTime);
|
|
547
|
+
gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.3);
|
|
548
|
+
}
|
|
549
|
+
else if (type === 'error' || type === 'warning') {
|
|
550
|
+
oscillator.type = 'square';
|
|
551
|
+
oscillator.frequency.setValueAtTime(220, audioCtx.currentTime);
|
|
552
|
+
oscillator.frequency.exponentialRampToValueAtTime(110, audioCtx.currentTime + 0.1);
|
|
553
|
+
gainNode.gain.setValueAtTime(0.05, audioCtx.currentTime);
|
|
554
|
+
gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.4);
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
oscillator.type = 'sine';
|
|
558
|
+
oscillator.frequency.setValueAtTime(440, audioCtx.currentTime);
|
|
559
|
+
gainNode.gain.setValueAtTime(0.03, audioCtx.currentTime);
|
|
560
|
+
gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.2);
|
|
561
|
+
}
|
|
562
|
+
oscillator.start();
|
|
563
|
+
oscillator.stop(audioCtx.currentTime + 0.5);
|
|
564
|
+
}
|
|
565
|
+
catch (e) { }
|
|
566
|
+
}
|
|
567
|
+
toggleExpand(id) {
|
|
568
|
+
const newExpanded = new Set(this.expandedSnackbars);
|
|
569
|
+
if (newExpanded.has(id)) {
|
|
570
|
+
newExpanded.delete(id);
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
newExpanded.add(id);
|
|
574
|
+
}
|
|
575
|
+
this.expandedSnackbars = newExpanded;
|
|
576
|
+
}
|
|
577
|
+
triggerBadgePulse(id) {
|
|
578
|
+
const badge = this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"] .snackbar-badge`);
|
|
579
|
+
if (badge) {
|
|
580
|
+
badge.classList.remove('pulse');
|
|
581
|
+
void badge.offsetWidth;
|
|
582
|
+
badge.classList.add('pulse');
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
spawnParticles(id) {
|
|
586
|
+
if (typeof window === 'undefined')
|
|
587
|
+
return;
|
|
588
|
+
// Lightweight CSS-only particle burst.
|
|
589
|
+
// All motion is handled by @keyframes in snackbar.scss — no WAAPI needed.
|
|
590
|
+
const EMOJIS = ['✨', '⭐', '💫', '🌟'];
|
|
591
|
+
const COUNTS = { burst: 10, float: 8, glint: 6 };
|
|
592
|
+
setTimeout(() => {
|
|
593
|
+
const container = this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"]`);
|
|
594
|
+
if (!container)
|
|
595
|
+
return;
|
|
596
|
+
if (getComputedStyle(container).position === 'static') {
|
|
597
|
+
container.style.position = 'relative';
|
|
598
|
+
container.style.overflow = 'visible';
|
|
599
|
+
}
|
|
600
|
+
const spawn = (type, index, total) => {
|
|
601
|
+
const p = document.createElement('span');
|
|
602
|
+
p.className = `sb-particle sb-particle--${type}`;
|
|
603
|
+
const angle = (Math.PI * 2 * index) / total;
|
|
604
|
+
const velocity = 80 + Math.random() * 120;
|
|
605
|
+
const tx = Math.round(Math.cos(angle) * velocity);
|
|
606
|
+
const ty = Math.round(Math.sin(angle) * velocity);
|
|
607
|
+
const rotation = Math.round(Math.random() * 1080 - 540);
|
|
608
|
+
const duration = (1.0 + Math.random() * 0.8).toFixed(2);
|
|
609
|
+
const delay = (Math.random() * 0.15).toFixed(2);
|
|
610
|
+
if (type === 'burst') {
|
|
611
|
+
const size = (6 + Math.random() * 6).toFixed(1);
|
|
612
|
+
p.style.cssText = `--tx:${tx};--ty:${ty};--r:${rotation};--d:${duration}s;--delay:${delay}s;--size:${size}px`;
|
|
613
|
+
}
|
|
614
|
+
else if (type === 'float') {
|
|
615
|
+
const size = (12 + Math.random() * 10).toFixed(1);
|
|
616
|
+
p.textContent = EMOJIS[Math.floor(Math.random() * EMOJIS.length)];
|
|
617
|
+
p.style.cssText = `--tx:${tx};--ty:${ty};--r:${rotation};--d:${duration}s;--delay:${delay}s;--size:${size}px`;
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
const size = (4 + Math.random() * 5).toFixed(1);
|
|
621
|
+
const ox = Math.round((Math.random() - 0.5) * 60);
|
|
622
|
+
const oy = Math.round((Math.random() - 0.5) * 30);
|
|
623
|
+
p.style.cssText = `top:calc(50% + ${oy}px);left:calc(50% + ${ox}px);--d:${(0.6 + Math.random() * 0.5).toFixed(2)}s;--delay:${delay}s;--size:${size}px`;
|
|
624
|
+
}
|
|
625
|
+
container.appendChild(p);
|
|
626
|
+
// Remove after the animation finishes (duration + delay + 50ms grace)
|
|
627
|
+
const cleanupMs = (parseFloat(duration) + parseFloat(delay)) * 1000 + 50;
|
|
628
|
+
setTimeout(() => p.remove(), cleanupMs);
|
|
629
|
+
};
|
|
630
|
+
let bi = 0, fi = 0, gi = 0;
|
|
631
|
+
const total = COUNTS.burst + COUNTS.float + COUNTS.glint;
|
|
632
|
+
for (let i = 0; i < total; i++) {
|
|
633
|
+
const roll = i % 3;
|
|
634
|
+
if (roll === 0 && bi < COUNTS.burst) {
|
|
635
|
+
spawn('burst', bi++, COUNTS.burst);
|
|
636
|
+
}
|
|
637
|
+
else if (roll === 1 && fi < COUNTS.float) {
|
|
638
|
+
spawn('float', fi++, COUNTS.float);
|
|
639
|
+
}
|
|
640
|
+
else if (gi < COUNTS.glint) {
|
|
641
|
+
spawn('glint', gi++, COUNTS.glint);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}, 80);
|
|
645
|
+
}
|
|
646
|
+
handleKeyDown = (e, id, index) => {
|
|
647
|
+
if (e.key === 'Delete' || e.key === 'Backspace') {
|
|
648
|
+
this.close(id);
|
|
649
|
+
}
|
|
650
|
+
else if (e.key === 'ArrowDown') {
|
|
651
|
+
const next = this.element.shadowRoot?.querySelector(`[data-stack-index="${index + 1}"]`);
|
|
652
|
+
if (next)
|
|
653
|
+
next.focus();
|
|
654
|
+
}
|
|
655
|
+
else if (e.key === 'ArrowUp') {
|
|
656
|
+
const prev = this.element.shadowRoot?.querySelector(`[data-stack-index="${index - 1}"]`);
|
|
657
|
+
if (prev)
|
|
658
|
+
prev.focus();
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
handleActionClick = (id, item) => {
|
|
662
|
+
this.snackbarActionClicked.emit({ id, item });
|
|
663
|
+
if (item.action && item.action.onClick) {
|
|
664
|
+
item.action.onClick();
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
handleMouseDown = (e, id) => {
|
|
668
|
+
this.isDragging = id;
|
|
669
|
+
this.startX = e.clientX;
|
|
670
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
671
|
+
document.addEventListener('mousemove', this.handleMouseMove);
|
|
672
|
+
document.addEventListener('mouseup', this.handleMouseUp);
|
|
673
|
+
};
|
|
674
|
+
handleMouseMove = (e) => {
|
|
675
|
+
if (!this.isDragging)
|
|
676
|
+
return;
|
|
677
|
+
const currentX = e.clientX;
|
|
678
|
+
const diff = currentX - this.startX;
|
|
679
|
+
this.dragX = { ...this.dragX, [this.isDragging]: diff };
|
|
680
|
+
};
|
|
681
|
+
handleMouseUp = () => {
|
|
682
|
+
if (!this.isDragging)
|
|
683
|
+
return;
|
|
684
|
+
const id = this.isDragging;
|
|
685
|
+
const offset = this.dragX[id] || 0;
|
|
686
|
+
if (Math.abs(offset) > 120) {
|
|
687
|
+
this.dragX = { ...this.dragX, [id]: offset > 0 ? 500 : -500 };
|
|
688
|
+
setTimeout(() => this.close(id), 200);
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
692
|
+
}
|
|
693
|
+
this.isDragging = null;
|
|
694
|
+
document.removeEventListener('mousemove', this.handleMouseMove);
|
|
695
|
+
document.removeEventListener('mouseup', this.handleMouseUp);
|
|
696
|
+
};
|
|
697
|
+
handleMouseEnter = () => {
|
|
698
|
+
if (!this.pauseOnHover)
|
|
699
|
+
return;
|
|
700
|
+
this.isHovered = true;
|
|
701
|
+
const now = Date.now();
|
|
702
|
+
Object.values(this.timers).forEach(timer => {
|
|
703
|
+
timer.lastTime = now;
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
handleTouchStart = (e, id) => {
|
|
707
|
+
this.isDragging = id;
|
|
708
|
+
this.startX = e.touches[0].clientX;
|
|
709
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
710
|
+
};
|
|
711
|
+
handleTouchMove = (e, id) => {
|
|
712
|
+
if (this.isDragging !== id)
|
|
713
|
+
return;
|
|
714
|
+
const currentX = e.touches[0].clientX;
|
|
715
|
+
const diff = currentX - this.startX;
|
|
716
|
+
// RTL: invert resistance direction
|
|
717
|
+
const isRight = this.dir === 'rtl' ? this.position.includes('left') : this.position.includes('right');
|
|
718
|
+
const isLeft = this.dir === 'rtl' ? this.position.includes('right') : this.position.includes('left');
|
|
719
|
+
const resistance = (isRight && diff < 0) || (isLeft && diff > 0) ? 0.2 : 1;
|
|
720
|
+
this.dragX = { ...this.dragX, [id]: diff * resistance };
|
|
721
|
+
if (Math.abs(diff) > 10)
|
|
722
|
+
e.preventDefault();
|
|
723
|
+
};
|
|
724
|
+
handleTouchEnd = (id) => {
|
|
725
|
+
if (this.isDragging !== id)
|
|
726
|
+
return;
|
|
727
|
+
const offset = this.dragX[id] || 0;
|
|
728
|
+
const threshold = 100;
|
|
729
|
+
// RTL: mirror the dismiss direction for left/right anchored positions
|
|
730
|
+
const isRight = this.dir === 'rtl' ? this.position.includes('left') : this.position.includes('right');
|
|
731
|
+
const isLeft = this.dir === 'rtl' ? this.position.includes('right') : this.position.includes('left');
|
|
732
|
+
const shouldDismiss = (isRight && offset > threshold) ||
|
|
733
|
+
(isLeft && offset < -threshold) ||
|
|
734
|
+
(this.position.includes('center') && Math.abs(offset) > threshold);
|
|
735
|
+
if (shouldDismiss) {
|
|
736
|
+
this.dragX = { ...this.dragX, [id]: offset > 0 ? 500 : -500 };
|
|
737
|
+
setTimeout(() => this.close(id), 200);
|
|
738
|
+
}
|
|
739
|
+
else {
|
|
740
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
741
|
+
}
|
|
742
|
+
this.isDragging = null;
|
|
743
|
+
};
|
|
744
|
+
handleMouseLeave = () => {
|
|
745
|
+
if (!this.pauseOnHover)
|
|
746
|
+
return;
|
|
747
|
+
this.isHovered = false;
|
|
748
|
+
const now = Date.now();
|
|
749
|
+
Object.values(this.timers).forEach(timer => {
|
|
750
|
+
timer.lastTime = now;
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
handleInputSubmit = (id, item, value) => {
|
|
754
|
+
if (item.input && item.input.onSubmit) {
|
|
755
|
+
item.input.onSubmit(value);
|
|
756
|
+
this.close(id);
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
renderIcon(item) {
|
|
760
|
+
if (item.avatar) {
|
|
761
|
+
return (h("div", { class: "snackbar-avatar" }, h("img", { src: item.avatar, alt: "" })));
|
|
762
|
+
}
|
|
763
|
+
if (item.icon) {
|
|
764
|
+
return (h("div", { class: "snackbar-custom-icon" }, h("ui-icon", { name: item.icon, library: item.iconLibrary || this.iconLibrary, size: "1.5rem" })));
|
|
765
|
+
}
|
|
766
|
+
const type = item.type;
|
|
767
|
+
if (type === 'success') {
|
|
768
|
+
return (h("div", { class: `snackbar-icon-draw ${type}` }, h("svg", { viewBox: "0 0 52 52" }, h("circle", { class: "circle", cx: "26", cy: "26", r: "25", fill: "none" }), h("path", { class: "check", fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" }))));
|
|
769
|
+
}
|
|
770
|
+
if (type === 'error') {
|
|
771
|
+
return (h("div", { class: `snackbar-icon-draw ${type}` }, h("svg", { viewBox: "0 0 52 52" }, h("circle", { class: "circle", cx: "26", cy: "26", r: "25", fill: "none" }), h("path", { class: "cross", fill: "none", d: "M16 16 36 36 M36 16 16 36" }))));
|
|
772
|
+
}
|
|
773
|
+
const icons = {
|
|
774
|
+
success: h("ui-icon", { name: "check-circle", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-success-600)' } }),
|
|
775
|
+
error: h("ui-icon", { name: "alert-circle", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-danger-600)' } }),
|
|
776
|
+
warning: h("ui-icon", { name: "alert-triangle", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-warning-600)' } }),
|
|
777
|
+
info: h("ui-icon", { name: "info", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-info-600)' } }),
|
|
778
|
+
neutral: h("ui-icon", { name: "bell", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-neutral-600, #6b7280)' } }),
|
|
779
|
+
loading: h("span", { class: "snackbar-loading-spinner" }),
|
|
780
|
+
sovereign: h("ui-icon", { name: "crown", library: this.iconLibrary, size: "1.25em", style: { color: '#fbbf24' } })
|
|
781
|
+
};
|
|
782
|
+
return h("div", { class: `snackbar-icon ${type}` }, icons[type]);
|
|
783
|
+
}
|
|
784
|
+
getAriaLive(item) {
|
|
785
|
+
if (item.priority === 'urgent')
|
|
786
|
+
return 'assertive';
|
|
787
|
+
return (item.priority === 'high' || item.type === 'error') ? 'polite' : 'off';
|
|
788
|
+
}
|
|
789
|
+
render() {
|
|
790
|
+
const containerClasses = `snackbar-container ${this.position} ${this.cardStack ? 'card-stack' : ''} ${this.isHovered ? 'hovered' : ''} ${this.dir === 'rtl' ? 'rtl' : ''}`;
|
|
791
|
+
return (h("div", { key: '2ca2794f89a74dc183c6490ffcc65e493eaaea30', class: containerClasses, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, role: (this.visibleSnackbars.some(s => s.type === 'error' || s.priority === 'urgent')) ? 'alert' : 'status', "aria-atomic": "true" }, this.snackbars.length > 1 && (h("ui-button", { key: 'e8288b58adc2f402e120dcacbb3d88993d535123', variant: "ghost", size: "sm", icon: "list-x", iconLibrary: this.iconLibrary, iconSize: "14px", onClick: () => this.closeAll(), ariaLabel: "Clear all notifications", class: "snackbar-clear-all", label: `Clear All (${this.snackbars.length})` }, h("span", { key: '608cb677315ac751d626e2d615ca4636e9d4a11e', class: "kb-hint", slot: "end" }, "Esc"))), this.cardStack && !this.isHovered && this.snackbars.length > 1 && (h("div", { key: '63bfc95aa5d3b7b5daa77cd286eadf2a57fcfcb4', class: "stack-count-badge", onClick: () => { this.isHovered = true; }, title: "Click to expand all notifications" }, h("span", { key: '1b3e099e53747efe22a51b6d27aacf7e7b2ad069', class: "stack-count-number" }, this.snackbars.length), h("span", { key: 'e2c05e3e0334dfe39043a0bdbc05680de497f473', class: "stack-count-label" }, "notifications"))), this.visibleSnackbars.map((item, index) => {
|
|
792
|
+
const stackOffset = this.cardStack && !this.isHovered ? index : 0;
|
|
793
|
+
const isClosing = this.animatedItems.has(`${item.id}-closing`);
|
|
794
|
+
return (h("div", { key: item.id, "data-snackbar-id": item.id, "data-stack-index": index, class: `snackbar-item ${item.type} ${item.variant || 'filled'} ${item.size || 'md'} ${this.openMode} ${item.customClass || ''} ${this.isDragging === item.id ? 'dragging' : ''} ${isClosing ? 'closing' : ''} theme-${item.theme || this.theme}`, style: {
|
|
795
|
+
animationDelay: `${index * 0.1}s`,
|
|
796
|
+
'--stack-index': `${stackOffset}`,
|
|
797
|
+
'transform': this.dragX[item.id] ? `translateX(${this.dragX[item.id]}px) rotate(${this.dragX[item.id] / 20}deg)` : undefined,
|
|
798
|
+
'opacity': this.dragX[item.id] ? `${Math.max(0, 1 - Math.abs(this.dragX[item.id]) / 400)}` : undefined,
|
|
799
|
+
'cursor': this.isDragging === item.id ? 'grabbing' : undefined
|
|
800
|
+
}, role: this.getAriaLive(item) !== 'off' ? 'log' : undefined, "aria-live": this.getAriaLive(item), onMouseDown: (e) => this.handleMouseDown(e, item.id), onKeyDown: (e) => this.handleKeyDown(e, item.id, index), onTouchStart: (e) => this.handleTouchStart(e, item.id), onTouchMove: (e) => this.handleTouchMove(e, item.id), onTouchEnd: () => this.handleTouchEnd(item.id), tabIndex: 0 }, h("div", { class: "item-main-row" }, this.renderIcon(item), h("div", { class: "snackbar-content" }, h("div", { style: { display: 'flex', alignItems: 'center', gap: '8px' } }, item.title && h("div", { class: "snackbar-title", "aria-label": `Title: ${item.title}` }, item.title), (item.count ?? 0) > 1 && (h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.toggleExpand(item.id), ariaLabel: `${item.count} occurrences. Click to toggle history.`, label: `${item.count}`, icon: this.expandedSnackbars.has(item.id) ? 'chevron-up' : 'chevron-down', iconLibrary: this.iconLibrary, iconSize: "10px", iconPosition: "right" }))), this.expandedSnackbars.has(item.id) && item.history && (h("div", { class: "snackbar-history" }, item.history.map((historyEntry, i) => (h("div", { class: "history-item", key: i }, h("span", { class: "history-time" }, new Date(historyEntry.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })), h("span", { class: "history-msg" }, historyEntry.message)))))), item.html ? (h("div", { class: "snackbar-message", innerHTML: sanitizeHTML(item.message), role: "document" })) : item.slot ? (h("div", { class: "snackbar-slot-content" }, h("slot", { name: item.slot }))) : (h("p", { class: "snackbar-message", "aria-label": `Message: ${item.message}` }, item.message))), item.closable !== false && (h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "x", iconLibrary: this.iconLibrary, iconSize: "1.2em", onButtonClick: () => this.handleCloseClick(item.id), ariaLabel: "Close snackbar", class: "snackbar-close" }))), item.input && (h("div", { class: "snackbar-quick-input" }, h("ui-input", { type: item.input.type || 'text', placeholder: item.input.placeholder, onInputKeydown: (e) => {
|
|
801
|
+
if (e.detail.key === 'Enter')
|
|
802
|
+
this.handleInputSubmit(item.id, item, e.detail.target.value);
|
|
803
|
+
}, autoFocus: true, size: "sm", fullWidth: true }))), (item.link || item.action || (item.actions && item.actions.length > 0)) && (h("div", { class: "snackbar-actions" }, item.action && (h("ui-button", { variant: "ghost", size: "sm", onButtonClick: () => this.handleActionClick(item.id, item), icon: item.action.icon, iconLibrary: this.iconLibrary, iconSize: "12px", label: item.action.label })), item.actions && item.actions.map(action => (h("ui-button", { variant: action.variant, size: "sm", onButtonClick: () => {
|
|
804
|
+
if (action.onClick)
|
|
805
|
+
action.onClick();
|
|
806
|
+
this.handleActionClick(item.id, item);
|
|
807
|
+
},
|
|
808
|
+
// class={`snackbar-action-btn variant-${action.variant || 'secondary'}`}
|
|
809
|
+
icon: action.icon, iconLibrary: this.iconLibrary, iconSize: "12px", label: action.label }))), item.link && (h("a", { class: "snackbar-link", href: item.link.url, onClick: (e) => {
|
|
810
|
+
e.preventDefault();
|
|
811
|
+
this.handleLinkClick(item.id, item);
|
|
812
|
+
} }, item.link.text)))), (item.duration ?? 0) > 0 && item.progress === 'ring' && (h("svg", { class: "snackbar-progress-ring", viewBox: "0 0 20 20", "aria-hidden": "true" }, h("circle", { cx: "10", cy: "10", r: "9" }))), (item.duration ?? 0) > 0 && item.progress !== 'ring' && (h("div", { class: `snackbar-progress ${item.type}`, "aria-hidden": "true" })), (item.duration ?? 0) > 0 && this.showCountdown && !item.sticky && (h("span", { class: "snackbar-countdown", "aria-hidden": "true" }, this.countdownSeconds[item.id] ?? Math.ceil((item.duration ?? 0) / 1000), "s")), item.history && item.history.length > 1 && (h("div", { class: "snackbar-history-indicator" }, h("ui-button", { variant: "ghost", size: "sm", onButtonClick: (e) => {
|
|
813
|
+
const originalEvent = e.detail; // Get the native event from CustomEvent detail
|
|
814
|
+
originalEvent.stopPropagation();
|
|
815
|
+
const itemEl = originalEvent.currentTarget.closest('.snackbar-item');
|
|
816
|
+
const isExpanded = itemEl?.classList.toggle('history-expanded');
|
|
817
|
+
const btn = originalEvent.currentTarget;
|
|
818
|
+
btn.label = isExpanded ? `Hide history` : `View previous history (${(item.history ?? []).length - 1})`;
|
|
819
|
+
}, label: `View previous history (${(item.history ?? []).length - 1})` }), h("div", { class: "snackbar-history-list" }, item.history.slice(0, -1).reverse().map(historyEntry => (h("div", { class: "history-item" }, h("span", { class: "history-time" }, new Date(historyEntry.timestamp).toLocaleTimeString()), h("span", { class: "history-msg" }, historyEntry.message)))))))));
|
|
820
|
+
}), this.enableSlots && h("slot", { key: '5a2fd1ebe5ba293ecf8dae3e83cbfe40ce25c995' })));
|
|
821
|
+
}
|
|
822
|
+
componentDidRender() {
|
|
823
|
+
this.visibleSnackbars.forEach(item => {
|
|
824
|
+
if (!this.animatedItems.has(item.id)) {
|
|
825
|
+
this.animatedItems.add(item.id);
|
|
826
|
+
setTimeout(() => {
|
|
827
|
+
const element = this.element.shadowRoot?.querySelector(`[data-snackbar-id="${item.id}"]`);
|
|
828
|
+
if (element)
|
|
829
|
+
element.classList.add('show');
|
|
830
|
+
}, 10);
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
static get is() { return "ui-snackbar"; }
|
|
835
|
+
static get encapsulation() { return "shadow"; }
|
|
836
|
+
static get originalStyleUrls() {
|
|
837
|
+
return {
|
|
838
|
+
"$": ["snackbar.scss"]
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
static get styleUrls() {
|
|
842
|
+
return {
|
|
843
|
+
"$": ["snackbar.css"]
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
static get properties() {
|
|
847
|
+
return {
|
|
848
|
+
"position": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"mutable": false,
|
|
851
|
+
"complexType": {
|
|
852
|
+
"original": "SnackbarPosition",
|
|
853
|
+
"resolved": "\"bottom-center\" | \"bottom-left\" | \"bottom-right\" | \"top-center\" | \"top-left\" | \"top-right\"",
|
|
854
|
+
"references": {
|
|
855
|
+
"SnackbarPosition": {
|
|
856
|
+
"location": "import",
|
|
857
|
+
"path": "./types",
|
|
858
|
+
"id": "src/components/snackbar/types.ts::SnackbarPosition",
|
|
859
|
+
"referenceLocation": "SnackbarPosition"
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
"required": false,
|
|
864
|
+
"optional": false,
|
|
865
|
+
"docs": {
|
|
866
|
+
"tags": [],
|
|
867
|
+
"text": "Position of the snackbar container"
|
|
868
|
+
},
|
|
869
|
+
"getter": false,
|
|
870
|
+
"setter": false,
|
|
871
|
+
"reflect": false,
|
|
872
|
+
"attribute": "position",
|
|
873
|
+
"defaultValue": "'top-right'"
|
|
874
|
+
},
|
|
875
|
+
"maxVisible": {
|
|
876
|
+
"type": "number",
|
|
877
|
+
"mutable": false,
|
|
878
|
+
"complexType": {
|
|
879
|
+
"original": "number",
|
|
880
|
+
"resolved": "number",
|
|
881
|
+
"references": {}
|
|
882
|
+
},
|
|
883
|
+
"required": false,
|
|
884
|
+
"optional": false,
|
|
885
|
+
"docs": {
|
|
886
|
+
"tags": [],
|
|
887
|
+
"text": "Maximum number of visible snackbars"
|
|
888
|
+
},
|
|
889
|
+
"getter": false,
|
|
890
|
+
"setter": false,
|
|
891
|
+
"reflect": false,
|
|
892
|
+
"attribute": "max-visible",
|
|
893
|
+
"defaultValue": "5"
|
|
894
|
+
},
|
|
895
|
+
"stackMode": {
|
|
896
|
+
"type": "string",
|
|
897
|
+
"mutable": false,
|
|
898
|
+
"complexType": {
|
|
899
|
+
"original": "SnackbarStackMode",
|
|
900
|
+
"resolved": "\"lifo\" | \"queue\" | \"stack\"",
|
|
901
|
+
"references": {
|
|
902
|
+
"SnackbarStackMode": {
|
|
903
|
+
"location": "import",
|
|
904
|
+
"path": "./types",
|
|
905
|
+
"id": "src/components/snackbar/types.ts::SnackbarStackMode",
|
|
906
|
+
"referenceLocation": "SnackbarStackMode"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"required": false,
|
|
911
|
+
"optional": false,
|
|
912
|
+
"docs": {
|
|
913
|
+
"tags": [],
|
|
914
|
+
"text": "Stack mode for snackbars (only applies when maxVisible > 1)"
|
|
915
|
+
},
|
|
916
|
+
"getter": false,
|
|
917
|
+
"setter": false,
|
|
918
|
+
"reflect": false,
|
|
919
|
+
"attribute": "stack-mode",
|
|
920
|
+
"defaultValue": "'stack'"
|
|
921
|
+
},
|
|
922
|
+
"openMode": {
|
|
923
|
+
"type": "string",
|
|
924
|
+
"mutable": false,
|
|
925
|
+
"complexType": {
|
|
926
|
+
"original": "SnackbarOpenMode",
|
|
927
|
+
"resolved": "\"bounce\" | \"fade\" | \"scale\" | \"slide-down\" | \"slide-left\" | \"slide-right\" | \"slide-up\" | \"spring\"",
|
|
928
|
+
"references": {
|
|
929
|
+
"SnackbarOpenMode": {
|
|
930
|
+
"location": "import",
|
|
931
|
+
"path": "./types",
|
|
932
|
+
"id": "src/components/snackbar/types.ts::SnackbarOpenMode",
|
|
933
|
+
"referenceLocation": "SnackbarOpenMode"
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
"required": false,
|
|
938
|
+
"optional": false,
|
|
939
|
+
"docs": {
|
|
940
|
+
"tags": [],
|
|
941
|
+
"text": "Open animation mode for snackbars"
|
|
942
|
+
},
|
|
943
|
+
"getter": false,
|
|
944
|
+
"setter": false,
|
|
945
|
+
"reflect": false,
|
|
946
|
+
"attribute": "open-mode",
|
|
947
|
+
"defaultValue": "'slide-down'"
|
|
948
|
+
},
|
|
949
|
+
"variant": {
|
|
950
|
+
"type": "string",
|
|
951
|
+
"mutable": false,
|
|
952
|
+
"complexType": {
|
|
953
|
+
"original": "ComponentVariant",
|
|
954
|
+
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
955
|
+
"references": {
|
|
956
|
+
"ComponentVariant": {
|
|
957
|
+
"location": "import",
|
|
958
|
+
"path": "../../types",
|
|
959
|
+
"id": "src/types/index.ts::ComponentVariant",
|
|
960
|
+
"referenceLocation": "ComponentVariant"
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
"required": false,
|
|
965
|
+
"optional": false,
|
|
966
|
+
"docs": {
|
|
967
|
+
"tags": [],
|
|
968
|
+
"text": "Default variant for snackbars"
|
|
969
|
+
},
|
|
970
|
+
"getter": false,
|
|
971
|
+
"setter": false,
|
|
972
|
+
"reflect": false,
|
|
973
|
+
"attribute": "variant",
|
|
974
|
+
"defaultValue": "'filled'"
|
|
975
|
+
},
|
|
976
|
+
"size": {
|
|
977
|
+
"type": "string",
|
|
978
|
+
"mutable": false,
|
|
979
|
+
"complexType": {
|
|
980
|
+
"original": "BasicSize",
|
|
981
|
+
"resolved": "\"default\" | \"large\" | \"lg\" | \"md\" | \"medium\" | \"sm\" | \"small\"",
|
|
982
|
+
"references": {
|
|
983
|
+
"BasicSize": {
|
|
984
|
+
"location": "import",
|
|
985
|
+
"path": "../../types",
|
|
986
|
+
"id": "src/types/index.ts::BasicSize",
|
|
987
|
+
"referenceLocation": "BasicSize"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
"required": false,
|
|
992
|
+
"optional": false,
|
|
993
|
+
"docs": {
|
|
994
|
+
"tags": [],
|
|
995
|
+
"text": "Default size for snackbars"
|
|
996
|
+
},
|
|
997
|
+
"getter": false,
|
|
998
|
+
"setter": false,
|
|
999
|
+
"reflect": false,
|
|
1000
|
+
"attribute": "size",
|
|
1001
|
+
"defaultValue": "'md'"
|
|
1002
|
+
},
|
|
1003
|
+
"theme": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"mutable": false,
|
|
1006
|
+
"complexType": {
|
|
1007
|
+
"original": "Theme",
|
|
1008
|
+
"resolved": "\"auto\" | \"dark\" | \"default\" | \"green\" | \"light\"",
|
|
1009
|
+
"references": {
|
|
1010
|
+
"Theme": {
|
|
1011
|
+
"location": "import",
|
|
1012
|
+
"path": "../../types",
|
|
1013
|
+
"id": "src/types/index.ts::Theme",
|
|
1014
|
+
"referenceLocation": "Theme"
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"required": false,
|
|
1019
|
+
"optional": false,
|
|
1020
|
+
"docs": {
|
|
1021
|
+
"tags": [],
|
|
1022
|
+
"text": "Default theme for notifications"
|
|
1023
|
+
},
|
|
1024
|
+
"getter": false,
|
|
1025
|
+
"setter": false,
|
|
1026
|
+
"reflect": false,
|
|
1027
|
+
"attribute": "theme",
|
|
1028
|
+
"defaultValue": "'auto'"
|
|
1029
|
+
},
|
|
1030
|
+
"cardStack": {
|
|
1031
|
+
"type": "boolean",
|
|
1032
|
+
"mutable": false,
|
|
1033
|
+
"complexType": {
|
|
1034
|
+
"original": "boolean",
|
|
1035
|
+
"resolved": "boolean",
|
|
1036
|
+
"references": {}
|
|
1037
|
+
},
|
|
1038
|
+
"required": false,
|
|
1039
|
+
"optional": false,
|
|
1040
|
+
"docs": {
|
|
1041
|
+
"tags": [],
|
|
1042
|
+
"text": "Enable card stacking mode - notifications stack like cards and expand on hover"
|
|
1043
|
+
},
|
|
1044
|
+
"getter": false,
|
|
1045
|
+
"setter": false,
|
|
1046
|
+
"reflect": false,
|
|
1047
|
+
"attribute": "card-stack",
|
|
1048
|
+
"defaultValue": "false"
|
|
1049
|
+
},
|
|
1050
|
+
"groupThreshold": {
|
|
1051
|
+
"type": "number",
|
|
1052
|
+
"mutable": false,
|
|
1053
|
+
"complexType": {
|
|
1054
|
+
"original": "number",
|
|
1055
|
+
"resolved": "number",
|
|
1056
|
+
"references": {}
|
|
1057
|
+
},
|
|
1058
|
+
"required": false,
|
|
1059
|
+
"optional": false,
|
|
1060
|
+
"docs": {
|
|
1061
|
+
"tags": [],
|
|
1062
|
+
"text": "Default group threshold (ms) - identical messages within this window are coalesced"
|
|
1063
|
+
},
|
|
1064
|
+
"getter": false,
|
|
1065
|
+
"setter": false,
|
|
1066
|
+
"reflect": false,
|
|
1067
|
+
"attribute": "group-threshold",
|
|
1068
|
+
"defaultValue": "3000"
|
|
1069
|
+
},
|
|
1070
|
+
"duration": {
|
|
1071
|
+
"type": "number",
|
|
1072
|
+
"mutable": false,
|
|
1073
|
+
"complexType": {
|
|
1074
|
+
"original": "number",
|
|
1075
|
+
"resolved": "number",
|
|
1076
|
+
"references": {}
|
|
1077
|
+
},
|
|
1078
|
+
"required": false,
|
|
1079
|
+
"optional": false,
|
|
1080
|
+
"docs": {
|
|
1081
|
+
"tags": [],
|
|
1082
|
+
"text": "Global default duration (ms) for notifications. 0 is infinite."
|
|
1083
|
+
},
|
|
1084
|
+
"getter": false,
|
|
1085
|
+
"setter": false,
|
|
1086
|
+
"reflect": false,
|
|
1087
|
+
"attribute": "duration",
|
|
1088
|
+
"defaultValue": "5000"
|
|
1089
|
+
},
|
|
1090
|
+
"coalesce": {
|
|
1091
|
+
"type": "boolean",
|
|
1092
|
+
"mutable": false,
|
|
1093
|
+
"complexType": {
|
|
1094
|
+
"original": "boolean",
|
|
1095
|
+
"resolved": "boolean",
|
|
1096
|
+
"references": {}
|
|
1097
|
+
},
|
|
1098
|
+
"required": false,
|
|
1099
|
+
"optional": false,
|
|
1100
|
+
"docs": {
|
|
1101
|
+
"tags": [],
|
|
1102
|
+
"text": "Enable smart grouping (coalescing) of identical messages"
|
|
1103
|
+
},
|
|
1104
|
+
"getter": false,
|
|
1105
|
+
"setter": false,
|
|
1106
|
+
"reflect": false,
|
|
1107
|
+
"attribute": "coalesce",
|
|
1108
|
+
"defaultValue": "false"
|
|
1109
|
+
},
|
|
1110
|
+
"maxDuration": {
|
|
1111
|
+
"type": "number",
|
|
1112
|
+
"mutable": false,
|
|
1113
|
+
"complexType": {
|
|
1114
|
+
"original": "number",
|
|
1115
|
+
"resolved": "number",
|
|
1116
|
+
"references": {}
|
|
1117
|
+
},
|
|
1118
|
+
"required": false,
|
|
1119
|
+
"optional": false,
|
|
1120
|
+
"docs": {
|
|
1121
|
+
"tags": [],
|
|
1122
|
+
"text": "Maximum duration cap (ms). Any item duration above this value is clamped. 0 = no cap."
|
|
1123
|
+
},
|
|
1124
|
+
"getter": false,
|
|
1125
|
+
"setter": false,
|
|
1126
|
+
"reflect": false,
|
|
1127
|
+
"attribute": "max-duration",
|
|
1128
|
+
"defaultValue": "0"
|
|
1129
|
+
},
|
|
1130
|
+
"showCountdown": {
|
|
1131
|
+
"type": "boolean",
|
|
1132
|
+
"mutable": false,
|
|
1133
|
+
"complexType": {
|
|
1134
|
+
"original": "boolean",
|
|
1135
|
+
"resolved": "boolean",
|
|
1136
|
+
"references": {}
|
|
1137
|
+
},
|
|
1138
|
+
"required": false,
|
|
1139
|
+
"optional": false,
|
|
1140
|
+
"docs": {
|
|
1141
|
+
"tags": [],
|
|
1142
|
+
"text": "Show a live countdown chip (e.g. \"3s\") inside the notification before it closes.\r\nOnly visible when duration > 0 and progress is set to 'bar' or 'ring'."
|
|
1143
|
+
},
|
|
1144
|
+
"getter": false,
|
|
1145
|
+
"setter": false,
|
|
1146
|
+
"reflect": false,
|
|
1147
|
+
"attribute": "show-countdown",
|
|
1148
|
+
"defaultValue": "false"
|
|
1149
|
+
},
|
|
1150
|
+
"textDirection": {
|
|
1151
|
+
"type": "string",
|
|
1152
|
+
"mutable": false,
|
|
1153
|
+
"complexType": {
|
|
1154
|
+
"original": "TextDirection",
|
|
1155
|
+
"resolved": "\"auto\" | \"ltr\" | \"rtl\"",
|
|
1156
|
+
"references": {
|
|
1157
|
+
"TextDirection": {
|
|
1158
|
+
"location": "import",
|
|
1159
|
+
"path": "../../types",
|
|
1160
|
+
"id": "src/types/index.ts::TextDirection",
|
|
1161
|
+
"referenceLocation": "TextDirection"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
"required": false,
|
|
1166
|
+
"optional": false,
|
|
1167
|
+
"docs": {
|
|
1168
|
+
"tags": [],
|
|
1169
|
+
"text": "Explicit text direction for this notification instance only.\r\n'auto' reads the CSS computed direction of the element.\r\n'rtl' / 'ltr' override immediately without touching the page layout."
|
|
1170
|
+
},
|
|
1171
|
+
"getter": false,
|
|
1172
|
+
"setter": false,
|
|
1173
|
+
"reflect": false,
|
|
1174
|
+
"attribute": "text-direction",
|
|
1175
|
+
"defaultValue": "'auto'"
|
|
1176
|
+
},
|
|
1177
|
+
"iconLibrary": {
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"mutable": false,
|
|
1180
|
+
"complexType": {
|
|
1181
|
+
"original": "IconLibrary",
|
|
1182
|
+
"resolved": "\"bootstrap\" | \"default\" | \"emoji\" | \"fontawesome\" | \"google\" | \"iconoir\" | \"icons8\" | \"ionicons\" | \"lucide\" | \"remixicon\" | \"se\"",
|
|
1183
|
+
"references": {
|
|
1184
|
+
"IconLibrary": {
|
|
1185
|
+
"location": "import",
|
|
1186
|
+
"path": "../../types",
|
|
1187
|
+
"id": "src/types/index.ts::IconLibrary",
|
|
1188
|
+
"referenceLocation": "IconLibrary"
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"required": false,
|
|
1193
|
+
"optional": false,
|
|
1194
|
+
"docs": {
|
|
1195
|
+
"tags": [],
|
|
1196
|
+
"text": "Default library for icons"
|
|
1197
|
+
},
|
|
1198
|
+
"getter": false,
|
|
1199
|
+
"setter": false,
|
|
1200
|
+
"reflect": false,
|
|
1201
|
+
"attribute": "icon-library",
|
|
1202
|
+
"defaultValue": "'lucide'"
|
|
1203
|
+
},
|
|
1204
|
+
"portal": {
|
|
1205
|
+
"type": "boolean",
|
|
1206
|
+
"mutable": false,
|
|
1207
|
+
"complexType": {
|
|
1208
|
+
"original": "boolean",
|
|
1209
|
+
"resolved": "boolean",
|
|
1210
|
+
"references": {}
|
|
1211
|
+
},
|
|
1212
|
+
"required": false,
|
|
1213
|
+
"optional": false,
|
|
1214
|
+
"docs": {
|
|
1215
|
+
"tags": [],
|
|
1216
|
+
"text": "Move snackbar to the bottom of the body automatically on load"
|
|
1217
|
+
},
|
|
1218
|
+
"getter": false,
|
|
1219
|
+
"setter": false,
|
|
1220
|
+
"reflect": false,
|
|
1221
|
+
"attribute": "portal",
|
|
1222
|
+
"defaultValue": "true"
|
|
1223
|
+
},
|
|
1224
|
+
"pauseOnHover": {
|
|
1225
|
+
"type": "boolean",
|
|
1226
|
+
"mutable": false,
|
|
1227
|
+
"complexType": {
|
|
1228
|
+
"original": "boolean",
|
|
1229
|
+
"resolved": "boolean",
|
|
1230
|
+
"references": {}
|
|
1231
|
+
},
|
|
1232
|
+
"required": false,
|
|
1233
|
+
"optional": false,
|
|
1234
|
+
"docs": {
|
|
1235
|
+
"tags": [],
|
|
1236
|
+
"text": "Pause timers when the cursor hovers over the snackbar"
|
|
1237
|
+
},
|
|
1238
|
+
"getter": false,
|
|
1239
|
+
"setter": false,
|
|
1240
|
+
"reflect": false,
|
|
1241
|
+
"attribute": "pause-on-hover",
|
|
1242
|
+
"defaultValue": "true"
|
|
1243
|
+
},
|
|
1244
|
+
"pauseOnFocusLoss": {
|
|
1245
|
+
"type": "boolean",
|
|
1246
|
+
"mutable": false,
|
|
1247
|
+
"complexType": {
|
|
1248
|
+
"original": "boolean",
|
|
1249
|
+
"resolved": "boolean",
|
|
1250
|
+
"references": {}
|
|
1251
|
+
},
|
|
1252
|
+
"required": false,
|
|
1253
|
+
"optional": false,
|
|
1254
|
+
"docs": {
|
|
1255
|
+
"tags": [],
|
|
1256
|
+
"text": "Pause timers when the window loses focus (e.g. tab switch)"
|
|
1257
|
+
},
|
|
1258
|
+
"getter": false,
|
|
1259
|
+
"setter": false,
|
|
1260
|
+
"reflect": false,
|
|
1261
|
+
"attribute": "pause-on-focus-loss",
|
|
1262
|
+
"defaultValue": "true"
|
|
1263
|
+
},
|
|
1264
|
+
"soundMode": {
|
|
1265
|
+
"type": "string",
|
|
1266
|
+
"mutable": false,
|
|
1267
|
+
"complexType": {
|
|
1268
|
+
"original": "'none' | 'synth' | 'custom'",
|
|
1269
|
+
"resolved": "\"custom\" | \"none\" | \"synth\"",
|
|
1270
|
+
"references": {}
|
|
1271
|
+
},
|
|
1272
|
+
"required": false,
|
|
1273
|
+
"optional": false,
|
|
1274
|
+
"docs": {
|
|
1275
|
+
"tags": [],
|
|
1276
|
+
"text": "Sound mode: 'none' | 'synth' | 'custom'"
|
|
1277
|
+
},
|
|
1278
|
+
"getter": false,
|
|
1279
|
+
"setter": false,
|
|
1280
|
+
"reflect": false,
|
|
1281
|
+
"attribute": "sound-mode",
|
|
1282
|
+
"defaultValue": "'synth'"
|
|
1283
|
+
},
|
|
1284
|
+
"particles": {
|
|
1285
|
+
"type": "boolean",
|
|
1286
|
+
"mutable": false,
|
|
1287
|
+
"complexType": {
|
|
1288
|
+
"original": "boolean",
|
|
1289
|
+
"resolved": "boolean",
|
|
1290
|
+
"references": {}
|
|
1291
|
+
},
|
|
1292
|
+
"required": false,
|
|
1293
|
+
"optional": false,
|
|
1294
|
+
"docs": {
|
|
1295
|
+
"tags": [],
|
|
1296
|
+
"text": "Enable CSS particle burst on 'sovereign' type notifications.\r\nSet to false to disable all particle effects."
|
|
1297
|
+
},
|
|
1298
|
+
"getter": false,
|
|
1299
|
+
"setter": false,
|
|
1300
|
+
"reflect": false,
|
|
1301
|
+
"attribute": "particles",
|
|
1302
|
+
"defaultValue": "true"
|
|
1303
|
+
},
|
|
1304
|
+
"enableSlots": {
|
|
1305
|
+
"type": "boolean",
|
|
1306
|
+
"mutable": false,
|
|
1307
|
+
"complexType": {
|
|
1308
|
+
"original": "boolean",
|
|
1309
|
+
"resolved": "boolean",
|
|
1310
|
+
"references": {}
|
|
1311
|
+
},
|
|
1312
|
+
"required": false,
|
|
1313
|
+
"optional": false,
|
|
1314
|
+
"docs": {
|
|
1315
|
+
"tags": [],
|
|
1316
|
+
"text": "Enable slot support for custom notification layouts"
|
|
1317
|
+
},
|
|
1318
|
+
"getter": false,
|
|
1319
|
+
"setter": false,
|
|
1320
|
+
"reflect": false,
|
|
1321
|
+
"attribute": "enable-slots",
|
|
1322
|
+
"defaultValue": "false"
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
static get states() {
|
|
1327
|
+
return {
|
|
1328
|
+
"snackbars": {},
|
|
1329
|
+
"visibleSnackbars": {},
|
|
1330
|
+
"animatedItems": {},
|
|
1331
|
+
"isHovered": {},
|
|
1332
|
+
"expandedSnackbars": {},
|
|
1333
|
+
"dragX": {},
|
|
1334
|
+
"isDragging": {},
|
|
1335
|
+
"dir": {},
|
|
1336
|
+
"countdownSeconds": {}
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
static get events() {
|
|
1340
|
+
return [{
|
|
1341
|
+
"method": "snackbarClosed",
|
|
1342
|
+
"name": "snackbarClosed",
|
|
1343
|
+
"bubbles": true,
|
|
1344
|
+
"cancelable": true,
|
|
1345
|
+
"composed": true,
|
|
1346
|
+
"docs": {
|
|
1347
|
+
"tags": [],
|
|
1348
|
+
"text": "Event emitted when a snackbar is closed"
|
|
1349
|
+
},
|
|
1350
|
+
"complexType": {
|
|
1351
|
+
"original": "{ id: string; item: SnackbarItem }",
|
|
1352
|
+
"resolved": "{ id: string; item: SnackbarItem; }",
|
|
1353
|
+
"references": {
|
|
1354
|
+
"SnackbarItem": {
|
|
1355
|
+
"location": "import",
|
|
1356
|
+
"path": "./types",
|
|
1357
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1358
|
+
"referenceLocation": "SnackbarItem"
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}, {
|
|
1363
|
+
"method": "snackbarAdded",
|
|
1364
|
+
"name": "snackbarAdded",
|
|
1365
|
+
"bubbles": true,
|
|
1366
|
+
"cancelable": true,
|
|
1367
|
+
"composed": true,
|
|
1368
|
+
"docs": {
|
|
1369
|
+
"tags": [],
|
|
1370
|
+
"text": "Event emitted when a snackbar is added"
|
|
1371
|
+
},
|
|
1372
|
+
"complexType": {
|
|
1373
|
+
"original": "{ id: string; item: SnackbarItem }",
|
|
1374
|
+
"resolved": "{ id: string; item: SnackbarItem; }",
|
|
1375
|
+
"references": {
|
|
1376
|
+
"SnackbarItem": {
|
|
1377
|
+
"location": "import",
|
|
1378
|
+
"path": "./types",
|
|
1379
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1380
|
+
"referenceLocation": "SnackbarItem"
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
}, {
|
|
1385
|
+
"method": "snackbarUpdated",
|
|
1386
|
+
"name": "snackbarUpdated",
|
|
1387
|
+
"bubbles": true,
|
|
1388
|
+
"cancelable": true,
|
|
1389
|
+
"composed": true,
|
|
1390
|
+
"docs": {
|
|
1391
|
+
"tags": [],
|
|
1392
|
+
"text": "Event emitted when a snackbar is updated"
|
|
1393
|
+
},
|
|
1394
|
+
"complexType": {
|
|
1395
|
+
"original": "{ id: string; item: SnackbarItem }",
|
|
1396
|
+
"resolved": "{ id: string; item: SnackbarItem; }",
|
|
1397
|
+
"references": {
|
|
1398
|
+
"SnackbarItem": {
|
|
1399
|
+
"location": "import",
|
|
1400
|
+
"path": "./types",
|
|
1401
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1402
|
+
"referenceLocation": "SnackbarItem"
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
}, {
|
|
1407
|
+
"method": "snackbarLinkClicked",
|
|
1408
|
+
"name": "snackbarLinkClicked",
|
|
1409
|
+
"bubbles": true,
|
|
1410
|
+
"cancelable": true,
|
|
1411
|
+
"composed": true,
|
|
1412
|
+
"docs": {
|
|
1413
|
+
"tags": [],
|
|
1414
|
+
"text": "Event emitted when a snackbar link is clicked"
|
|
1415
|
+
},
|
|
1416
|
+
"complexType": {
|
|
1417
|
+
"original": "{ id: string; item: SnackbarItem; link: { text: string; url: string } }",
|
|
1418
|
+
"resolved": "{ id: string; item: SnackbarItem; link: { text: string; url: string; }; }",
|
|
1419
|
+
"references": {
|
|
1420
|
+
"SnackbarItem": {
|
|
1421
|
+
"location": "import",
|
|
1422
|
+
"path": "./types",
|
|
1423
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1424
|
+
"referenceLocation": "SnackbarItem"
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}, {
|
|
1429
|
+
"method": "snackbarActionClicked",
|
|
1430
|
+
"name": "snackbarActionClicked",
|
|
1431
|
+
"bubbles": true,
|
|
1432
|
+
"cancelable": true,
|
|
1433
|
+
"composed": true,
|
|
1434
|
+
"docs": {
|
|
1435
|
+
"tags": [],
|
|
1436
|
+
"text": "Event emitted when a snackbar action button is clicked"
|
|
1437
|
+
},
|
|
1438
|
+
"complexType": {
|
|
1439
|
+
"original": "{ id: string; item: SnackbarItem }",
|
|
1440
|
+
"resolved": "{ id: string; item: SnackbarItem; }",
|
|
1441
|
+
"references": {
|
|
1442
|
+
"SnackbarItem": {
|
|
1443
|
+
"location": "import",
|
|
1444
|
+
"path": "./types",
|
|
1445
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1446
|
+
"referenceLocation": "SnackbarItem"
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}];
|
|
1451
|
+
}
|
|
1452
|
+
static get methods() {
|
|
1453
|
+
return {
|
|
1454
|
+
"add": {
|
|
1455
|
+
"complexType": {
|
|
1456
|
+
"signature": "(item: Omit<SnackbarItem, \"id\">) => Promise<string>",
|
|
1457
|
+
"parameters": [{
|
|
1458
|
+
"name": "item",
|
|
1459
|
+
"type": "{ slot?: string; html?: boolean; input?: { placeholder?: string; label?: string; type?: \"number\" | \"text\" | \"password\" | \"email\"; onSubmit: (value: string) => void; }; link?: { text: string; url: string; }; progress?: \"bar\" | \"ring\"; title?: string; type: StatusColor; onClose?: () => void; action?: { label: string; icon?: string; onClick?: () => void; }; size?: BasicSize; history?: { message: string; title?: string; timestamp: number; }[]; sticky?: boolean; icon?: string; iconLibrary?: string; avatar?: string; theme?: Theme; variant?: ComponentVariant; message: string; actions?: { label: string; icon?: string; onClick?: () => void; variant?: StatusColor; }[]; haptic?: boolean; count?: number; closable?: boolean; sound?: string; customClass?: string; duration?: number; priority?: \"low\" | \"high\" | \"normal\" | \"urgent\"; }",
|
|
1460
|
+
"docs": ""
|
|
1461
|
+
}],
|
|
1462
|
+
"references": {
|
|
1463
|
+
"Promise": {
|
|
1464
|
+
"location": "global",
|
|
1465
|
+
"id": "global::Promise"
|
|
1466
|
+
},
|
|
1467
|
+
"Omit": {
|
|
1468
|
+
"location": "global",
|
|
1469
|
+
"id": "global::Omit"
|
|
1470
|
+
},
|
|
1471
|
+
"SnackbarItem": {
|
|
1472
|
+
"location": "import",
|
|
1473
|
+
"path": "./types",
|
|
1474
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1475
|
+
"referenceLocation": "SnackbarItem"
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
"return": "Promise<string>"
|
|
1479
|
+
},
|
|
1480
|
+
"docs": {
|
|
1481
|
+
"text": "",
|
|
1482
|
+
"tags": []
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
"close": {
|
|
1486
|
+
"complexType": {
|
|
1487
|
+
"signature": "(id: string) => Promise<void>",
|
|
1488
|
+
"parameters": [{
|
|
1489
|
+
"name": "id",
|
|
1490
|
+
"type": "string",
|
|
1491
|
+
"docs": ""
|
|
1492
|
+
}],
|
|
1493
|
+
"references": {
|
|
1494
|
+
"Promise": {
|
|
1495
|
+
"location": "global",
|
|
1496
|
+
"id": "global::Promise"
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
"return": "Promise<void>"
|
|
1500
|
+
},
|
|
1501
|
+
"docs": {
|
|
1502
|
+
"text": "",
|
|
1503
|
+
"tags": []
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
"closeAll": {
|
|
1507
|
+
"complexType": {
|
|
1508
|
+
"signature": "() => Promise<void>",
|
|
1509
|
+
"parameters": [],
|
|
1510
|
+
"references": {
|
|
1511
|
+
"Promise": {
|
|
1512
|
+
"location": "global",
|
|
1513
|
+
"id": "global::Promise"
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
"return": "Promise<void>"
|
|
1517
|
+
},
|
|
1518
|
+
"docs": {
|
|
1519
|
+
"text": "",
|
|
1520
|
+
"tags": []
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
"closeNext": {
|
|
1524
|
+
"complexType": {
|
|
1525
|
+
"signature": "() => Promise<void>",
|
|
1526
|
+
"parameters": [],
|
|
1527
|
+
"references": {
|
|
1528
|
+
"Promise": {
|
|
1529
|
+
"location": "global",
|
|
1530
|
+
"id": "global::Promise"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"return": "Promise<void>"
|
|
1534
|
+
},
|
|
1535
|
+
"docs": {
|
|
1536
|
+
"text": "",
|
|
1537
|
+
"tags": []
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
"getAll": {
|
|
1541
|
+
"complexType": {
|
|
1542
|
+
"signature": "() => Promise<SnackbarItem[]>",
|
|
1543
|
+
"parameters": [],
|
|
1544
|
+
"references": {
|
|
1545
|
+
"Promise": {
|
|
1546
|
+
"location": "global",
|
|
1547
|
+
"id": "global::Promise"
|
|
1548
|
+
},
|
|
1549
|
+
"SnackbarItem": {
|
|
1550
|
+
"location": "import",
|
|
1551
|
+
"path": "./types",
|
|
1552
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1553
|
+
"referenceLocation": "SnackbarItem"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"return": "Promise<SnackbarItem[]>"
|
|
1557
|
+
},
|
|
1558
|
+
"docs": {
|
|
1559
|
+
"text": "Returns all current notifications",
|
|
1560
|
+
"tags": []
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
"pause": {
|
|
1564
|
+
"complexType": {
|
|
1565
|
+
"signature": "(id: string) => Promise<void>",
|
|
1566
|
+
"parameters": [{
|
|
1567
|
+
"name": "id",
|
|
1568
|
+
"type": "string",
|
|
1569
|
+
"docs": ""
|
|
1570
|
+
}],
|
|
1571
|
+
"references": {
|
|
1572
|
+
"Promise": {
|
|
1573
|
+
"location": "global",
|
|
1574
|
+
"id": "global::Promise"
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"return": "Promise<void>"
|
|
1578
|
+
},
|
|
1579
|
+
"docs": {
|
|
1580
|
+
"text": "Pause timer for a specific notification",
|
|
1581
|
+
"tags": []
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
"resume": {
|
|
1585
|
+
"complexType": {
|
|
1586
|
+
"signature": "(id: string) => Promise<void>",
|
|
1587
|
+
"parameters": [{
|
|
1588
|
+
"name": "id",
|
|
1589
|
+
"type": "string",
|
|
1590
|
+
"docs": ""
|
|
1591
|
+
}],
|
|
1592
|
+
"references": {
|
|
1593
|
+
"Promise": {
|
|
1594
|
+
"location": "global",
|
|
1595
|
+
"id": "global::Promise"
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
"return": "Promise<void>"
|
|
1599
|
+
},
|
|
1600
|
+
"docs": {
|
|
1601
|
+
"text": "Resume timer for a specific notification",
|
|
1602
|
+
"tags": []
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
"replace": {
|
|
1606
|
+
"complexType": {
|
|
1607
|
+
"signature": "(id: string, newItem: Omit<SnackbarItem, \"id\">) => Promise<void>",
|
|
1608
|
+
"parameters": [{
|
|
1609
|
+
"name": "id",
|
|
1610
|
+
"type": "string",
|
|
1611
|
+
"docs": ""
|
|
1612
|
+
}, {
|
|
1613
|
+
"name": "newItem",
|
|
1614
|
+
"type": "{ slot?: string; html?: boolean; input?: { placeholder?: string; label?: string; type?: \"number\" | \"text\" | \"password\" | \"email\"; onSubmit: (value: string) => void; }; link?: { text: string; url: string; }; progress?: \"bar\" | \"ring\"; title?: string; type: StatusColor; onClose?: () => void; action?: { label: string; icon?: string; onClick?: () => void; }; size?: BasicSize; history?: { message: string; title?: string; timestamp: number; }[]; sticky?: boolean; icon?: string; iconLibrary?: string; avatar?: string; theme?: Theme; variant?: ComponentVariant; message: string; actions?: { label: string; icon?: string; onClick?: () => void; variant?: StatusColor; }[]; haptic?: boolean; count?: number; closable?: boolean; sound?: string; customClass?: string; duration?: number; priority?: \"low\" | \"high\" | \"normal\" | \"urgent\"; }",
|
|
1615
|
+
"docs": ""
|
|
1616
|
+
}],
|
|
1617
|
+
"references": {
|
|
1618
|
+
"Promise": {
|
|
1619
|
+
"location": "global",
|
|
1620
|
+
"id": "global::Promise"
|
|
1621
|
+
},
|
|
1622
|
+
"Omit": {
|
|
1623
|
+
"location": "global",
|
|
1624
|
+
"id": "global::Omit"
|
|
1625
|
+
},
|
|
1626
|
+
"SnackbarItem": {
|
|
1627
|
+
"location": "import",
|
|
1628
|
+
"path": "./types",
|
|
1629
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1630
|
+
"referenceLocation": "SnackbarItem"
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
"return": "Promise<void>"
|
|
1634
|
+
},
|
|
1635
|
+
"docs": {
|
|
1636
|
+
"text": "Replace an existing notification completely",
|
|
1637
|
+
"tags": []
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
"promise": {
|
|
1641
|
+
"complexType": {
|
|
1642
|
+
"signature": "<T>(promise: Promise<T> | (() => Promise<T>), data: { loading: string; success: string | ((res: T) => string); error: string | ((err: any) => string); duration?: number; }) => Promise<T>",
|
|
1643
|
+
"parameters": [{
|
|
1644
|
+
"name": "promise",
|
|
1645
|
+
"type": "Promise<T> | (() => Promise<T>)",
|
|
1646
|
+
"docs": ""
|
|
1647
|
+
}, {
|
|
1648
|
+
"name": "data",
|
|
1649
|
+
"type": "{ loading: string; success: string | ((res: T) => string); error: string | ((err: any) => string); duration?: number; }",
|
|
1650
|
+
"docs": ""
|
|
1651
|
+
}],
|
|
1652
|
+
"references": {
|
|
1653
|
+
"Promise": {
|
|
1654
|
+
"location": "global",
|
|
1655
|
+
"id": "global::Promise"
|
|
1656
|
+
},
|
|
1657
|
+
"T": {
|
|
1658
|
+
"location": "global",
|
|
1659
|
+
"id": "global::T"
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"return": "Promise<T>"
|
|
1663
|
+
},
|
|
1664
|
+
"docs": {
|
|
1665
|
+
"text": "",
|
|
1666
|
+
"tags": []
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
"undoable": {
|
|
1670
|
+
"complexType": {
|
|
1671
|
+
"signature": "(data: { message: string; title?: string; type?: SnackbarType; onUndo: () => void; onDismiss?: () => void; duration?: number; action?: SnackbarItem[\"action\"]; link?: SnackbarItem[\"link\"]; }) => Promise<string>",
|
|
1672
|
+
"parameters": [{
|
|
1673
|
+
"name": "data",
|
|
1674
|
+
"type": "{ message: string; title?: string; type?: StatusColor; onUndo: () => void; onDismiss?: () => void; duration?: number; action?: { label: string; icon?: string; onClick?: () => void; }; link?: { text: string; url: string; }; }",
|
|
1675
|
+
"docs": ""
|
|
1676
|
+
}],
|
|
1677
|
+
"references": {
|
|
1678
|
+
"Promise": {
|
|
1679
|
+
"location": "global",
|
|
1680
|
+
"id": "global::Promise"
|
|
1681
|
+
},
|
|
1682
|
+
"SnackbarType": {
|
|
1683
|
+
"location": "import",
|
|
1684
|
+
"path": "./types",
|
|
1685
|
+
"id": "src/components/snackbar/types.ts::SnackbarType",
|
|
1686
|
+
"referenceLocation": "SnackbarType"
|
|
1687
|
+
},
|
|
1688
|
+
"SnackbarItem": {
|
|
1689
|
+
"location": "import",
|
|
1690
|
+
"path": "./types",
|
|
1691
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1692
|
+
"referenceLocation": "SnackbarItem"
|
|
1693
|
+
},
|
|
1694
|
+
"CustomEvent": {
|
|
1695
|
+
"location": "global",
|
|
1696
|
+
"id": "global::CustomEvent"
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
"return": "Promise<string>"
|
|
1700
|
+
},
|
|
1701
|
+
"docs": {
|
|
1702
|
+
"text": "",
|
|
1703
|
+
"tags": []
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
"update": {
|
|
1707
|
+
"complexType": {
|
|
1708
|
+
"signature": "(id: string, updates: Partial<SnackbarItem>) => Promise<void>",
|
|
1709
|
+
"parameters": [{
|
|
1710
|
+
"name": "id",
|
|
1711
|
+
"type": "string",
|
|
1712
|
+
"docs": ""
|
|
1713
|
+
}, {
|
|
1714
|
+
"name": "updates",
|
|
1715
|
+
"type": "{ id?: string; type?: StatusColor; title?: string; message?: string; html?: boolean; avatar?: string; icon?: string; iconLibrary?: string; link?: { text: string; url: string; }; action?: { label: string; icon?: string; onClick?: () => void; }; actions?: { label: string; icon?: string; onClick?: () => void; variant?: StatusColor; }[]; duration?: number; variant?: ComponentVariant; size?: BasicSize; customClass?: string; closable?: boolean; theme?: Theme; input?: { placeholder?: string; label?: string; type?: \"number\" | \"text\" | \"password\" | \"email\"; onSubmit: (value: string) => void; }; count?: number; haptic?: boolean; sound?: string; progress?: \"bar\" | \"ring\"; priority?: \"low\" | \"high\" | \"normal\" | \"urgent\"; sticky?: boolean; onClose?: () => void; slot?: string; history?: { message: string; title?: string; timestamp: number; }[]; }",
|
|
1716
|
+
"docs": ""
|
|
1717
|
+
}],
|
|
1718
|
+
"references": {
|
|
1719
|
+
"Promise": {
|
|
1720
|
+
"location": "global",
|
|
1721
|
+
"id": "global::Promise"
|
|
1722
|
+
},
|
|
1723
|
+
"Partial": {
|
|
1724
|
+
"location": "global",
|
|
1725
|
+
"id": "global::Partial"
|
|
1726
|
+
},
|
|
1727
|
+
"SnackbarItem": {
|
|
1728
|
+
"location": "import",
|
|
1729
|
+
"path": "./types",
|
|
1730
|
+
"id": "src/components/snackbar/types.ts::SnackbarItem",
|
|
1731
|
+
"referenceLocation": "SnackbarItem"
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
"return": "Promise<void>"
|
|
1735
|
+
},
|
|
1736
|
+
"docs": {
|
|
1737
|
+
"text": "",
|
|
1738
|
+
"tags": []
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
static get elementRef() { return "element"; }
|
|
1744
|
+
static get watchers() {
|
|
1745
|
+
return [{
|
|
1746
|
+
"propName": "textDirection",
|
|
1747
|
+
"methodName": "onTextDirectionChange"
|
|
1748
|
+
}, {
|
|
1749
|
+
"propName": "position",
|
|
1750
|
+
"methodName": "positionChanged"
|
|
1751
|
+
}, {
|
|
1752
|
+
"propName": "maxVisible",
|
|
1753
|
+
"methodName": "maxVisibleChanged"
|
|
1754
|
+
}, {
|
|
1755
|
+
"propName": "stackMode",
|
|
1756
|
+
"methodName": "stackModeChanged"
|
|
1757
|
+
}];
|
|
1758
|
+
}
|
|
1759
|
+
}
|