@xplortech/apollo-core 2.10.0 → 2.12.0
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/.typings/apollo-components.html-data.json +134 -12
- package/AGENTS.md +27 -3
- package/README.md +12 -0
- package/build/components/accordion.css +1 -0
- package/build/components/application-shell.css +1 -0
- package/build/components/avatar.css +1 -0
- package/build/components/backdrop.css +1 -0
- package/build/components/badge.css +1 -0
- package/build/components/banner.css +1 -0
- package/build/components/breadcrumbs.css +1 -0
- package/build/components/button-row.css +1 -0
- package/build/components/button.css +1 -0
- package/build/components/calendar.css +1 -0
- package/build/components/checkbox-radio.css +1 -0
- package/build/components/choicelist.css +1 -0
- package/build/components/content-area.css +1 -0
- package/build/components/dashboard.css +1 -0
- package/build/components/data-card.css +1 -0
- package/build/components/divider.css +1 -0
- package/build/components/dropdown.css +1 -0
- package/build/components/dynamic-table-cell.css +1 -0
- package/build/components/dynamic-table-row.css +1 -0
- package/build/components/dynamic-table.css +1 -0
- package/build/components/grid.css +1 -0
- package/build/components/header-accordion.css +1 -0
- package/build/components/icon.css +1 -0
- package/build/components/input-color.css +1 -0
- package/build/components/input-date.css +1 -0
- package/build/components/input-file.css +1 -0
- package/build/components/input-phone.css +1 -0
- package/build/components/input-search.css +1 -0
- package/build/components/input-time.css +1 -0
- package/build/components/input.css +1 -0
- package/build/components/label.css +1 -0
- package/build/components/large-card.css +1 -0
- package/build/components/list-action.css +1 -0
- package/build/components/list-item.css +1 -0
- package/build/components/list.css +1 -0
- package/build/components/main-nav.css +1 -0
- package/build/components/modal.css +1 -0
- package/build/components/nav-item.css +1 -0
- package/build/components/pagination.css +1 -0
- package/build/components/panel.css +1 -0
- package/build/components/popover.css +1 -0
- package/build/components/progress-bar.css +1 -0
- package/build/components/progress-indicator.css +1 -0
- package/build/components/secondary-nav.css +1 -0
- package/build/components/select.css +1 -0
- package/build/components/side-nav.css +1 -0
- package/build/components/skeleton.css +1 -0
- package/build/components/slideout.css +1 -0
- package/build/components/spotlight.css +1 -0
- package/build/components/table-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table.css +1 -0
- package/build/components/tabs.css +1 -0
- package/build/components/tag.css +1 -0
- package/build/components/toast.css +1 -0
- package/build/components/toggle.css +1 -0
- package/build/components/toolbar.css +1 -0
- package/build/components/tooltip.css +1 -0
- package/build/components/top-nav.css +1 -0
- package/build/components/utility-bar.css +1 -0
- package/build/components-manifest.json +220 -0
- package/build/core.css +2 -0
- package/build/reset.css +394 -0
- package/build/style.css +2 -13120
- package/build/tailwind-theme.css +2 -0
- package/build/typography.css +1 -0
- package/build/variables/apollo.css +779 -0
- package/build/variables/field-edge.css +554 -0
- package/build/vendor/flatpickr.css +1 -0
- package/dist/apollo-core/apollo-core.css +2 -55
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0095174c.entry.js +1 -0
- package/dist/apollo-core/p-020ecd66.entry.js +1 -0
- package/dist/apollo-core/p-0463c29f.entry.js +1 -0
- package/dist/apollo-core/p-091411e3.entry.js +1 -0
- package/dist/apollo-core/p-0be4dbb8.entry.js +1 -0
- package/dist/apollo-core/p-1139fac0.entry.js +1 -0
- package/dist/apollo-core/p-121d1a4b.entry.js +1 -0
- package/dist/apollo-core/p-140a96c7.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a417191.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-26861d09.entry.js +1 -0
- package/dist/apollo-core/p-26b6a0ed.entry.js +1 -0
- package/dist/apollo-core/p-39e71d86.entry.js +1 -0
- package/dist/apollo-core/p-3d9c90ee.entry.js +1 -0
- package/dist/apollo-core/p-3dd1de49.entry.js +1 -0
- package/dist/apollo-core/p-4129d971.entry.js +1 -0
- package/dist/apollo-core/p-46d21684.entry.js +1 -0
- package/dist/apollo-core/p-4e61587f.entry.js +1 -0
- package/dist/apollo-core/p-5afc9831.entry.js +1 -0
- package/dist/apollo-core/p-5ca18bc1.entry.js +1 -0
- package/dist/apollo-core/p-5d25a84a.entry.js +1 -0
- package/dist/apollo-core/p-5e5c5016.entry.js +1 -0
- package/dist/apollo-core/p-601b3ab5.entry.js +1 -0
- package/dist/apollo-core/p-616c5a32.entry.js +1 -0
- package/dist/apollo-core/p-638fd9b1.entry.js +1 -0
- package/dist/apollo-core/p-643c8038.entry.js +1 -0
- package/dist/apollo-core/p-707b1918.entry.js +1 -0
- package/dist/apollo-core/p-724c5038.entry.js +1 -0
- package/dist/apollo-core/p-76f64d65.entry.js +1 -0
- package/dist/apollo-core/p-7976cd3b.entry.js +1 -0
- package/dist/apollo-core/p-7f105d63.entry.js +1 -0
- package/dist/apollo-core/p-80a11cad.entry.js +1 -0
- package/dist/apollo-core/p-853418be.entry.js +1 -0
- package/dist/apollo-core/p-875e0eaa.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a81ef98.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-8ddbf2e2.entry.js +1 -0
- package/dist/apollo-core/p-9747cf43.entry.js +1 -0
- package/dist/apollo-core/p-9b0174b1.entry.js +1 -0
- package/dist/apollo-core/p-9bf2ff9f.entry.js +1 -0
- package/dist/apollo-core/p-BFTU3MAI.js +1 -0
- package/dist/apollo-core/p-BQtbf88X.js +1 -0
- package/dist/apollo-core/p-CWdQxaaX.js +1 -0
- package/dist/apollo-core/p-C_PEOQWj.js +1 -0
- package/dist/apollo-core/p-CzwViN3U.js +1 -0
- package/dist/apollo-core/p-DkqlawVY.js +1 -0
- package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
- package/dist/apollo-core/p-_r9-FML8.js +1 -0
- package/dist/apollo-core/p-a0d3b7f8.entry.js +1 -0
- package/dist/apollo-core/p-a33b0943.entry.js +1 -0
- package/dist/apollo-core/p-b537f72d.entry.js +1 -0
- package/dist/apollo-core/p-ba41bbd5.entry.js +1 -0
- package/dist/apollo-core/p-bb22ed2a.entry.js +1 -0
- package/dist/apollo-core/p-c25aebe5.entry.js +1 -0
- package/dist/apollo-core/p-c427a31d.entry.js +1 -0
- package/dist/apollo-core/p-cde21f72.entry.js +1 -0
- package/dist/apollo-core/p-d288c1d1.entry.js +1 -0
- package/dist/apollo-core/p-d37488d4.entry.js +1 -0
- package/dist/apollo-core/p-d3f2b8b8.entry.js +1 -0
- package/dist/apollo-core/p-dfaba114.entry.js +1 -0
- package/dist/apollo-core/p-e00ed4f4.entry.js +1 -0
- package/dist/apollo-core/p-e2a16242.entry.js +1 -0
- package/dist/apollo-core/p-e4ae3f60.entry.js +1 -0
- package/dist/apollo-core/p-ec488f9c.entry.js +1 -0
- package/dist/apollo-core/p-efa21ec0.entry.js +1 -0
- package/dist/apollo-core/p-f199ad66.entry.js +1 -0
- package/dist/apollo-core/p-f2bfe6a6.entry.js +1 -0
- package/dist/apollo-core/p-fd2756d8.entry.js +1 -0
- package/dist/apollo-core/p-fef6c256.entry.js +1 -0
- package/dist/apollo-core/p-ff8acf15.entry.js +1 -0
- package/dist/apollo-core/p-ukZKsqqq.js +2 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
- package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +760 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/lifecycle-DeSsFfQZ.js +74 -0
- package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
- package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
- package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
- package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +210 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
- package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +81 -0
- package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
- package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
- package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
- package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +577 -0
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
- package/dist/{esm/xpl-avatar_54.entry.js → cjs/xpl-icon.cjs.entry.js} +1293 -10607
- package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
- package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
- package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
- package/dist/cjs/xpl-input_4.cjs.entry.js +524 -0
- package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
- package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
- package/dist/cjs/xpl-list.cjs.entry.js +396 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +78 -0
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
- package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
- package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
- package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
- package/dist/cjs/xpl-side-nav.cjs.entry.js +272 -0
- package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
- package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +5 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table.cjs.entry.js +185 -0
- package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
- package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +91 -0
- package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +6 -2
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +19 -1
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/avatar.stories.js +19 -9
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +12 -16
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +17 -3
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/badge.stories.js +21 -8
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/banner.stories.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +5 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/button.stories.js +2 -0
- package/dist/collection/components/xpl-button/xpl-button.js +17 -14
- package/dist/collection/components/xpl-button-row/button-row.stories.js +9 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/calendar.stories.js +11 -3
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +11 -2
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +24 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- package/dist/collection/components/xpl-content-area/content-area.stories.js +13 -24
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +9 -0
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/data-card.stories.js +55 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +69 -5
- package/dist/collection/components/xpl-divider/divider.stories.js +11 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +13 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +9 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +108 -116
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +5 -1
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
- package/dist/collection/components/xpl-grid/grid.stories.js +9 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +6 -2
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/icons.stories.js +21 -2
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/input.stories.js +120 -104
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +12 -6
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
- package/dist/collection/components/xpl-input/xpl-input.js +69 -37
- package/dist/collection/components/xpl-large-card/large-card.stories.js +27 -3
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- package/dist/collection/components/xpl-list/list.stories.js +11 -2
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
- package/dist/collection/components/xpl-list/xpl-list.js +21 -26
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +5 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/modal.stories.js +15 -6
- package/dist/collection/components/xpl-modal/xpl-modal.js +21 -8
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/pagination.stories.js +10 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/panel.stories.js +9 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/popover.stories.js +15 -5
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +10 -1
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +9 -1
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/radio.stories.js +9 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +7 -7
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +10 -5
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.stories.js +11 -8
- package/dist/collection/components/xpl-select/xpl-select.js +91 -49
- package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +454 -18
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +75 -12
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +10 -1
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/slideout.stories.js +13 -0
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +22 -15
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
- package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
- package/dist/collection/components/xpl-table/table.stories.js +11 -2
- package/dist/collection/components/xpl-table/xpl-table.js +52 -36
- package/dist/collection/components/xpl-table-header/table-header.stories.js +9 -1
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +10 -2
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +10 -1
- package/dist/collection/components/xpl-tabs/tabs.shared.js +77 -19
- package/dist/collection/components/xpl-tabs/tabs.stories.js +14 -2
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/tag.stories.js +15 -9
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/toast.stories.js +43 -17
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/toggle.stories.js +8 -1
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- package/dist/collection/components/xpl-toolbar/toolbar.stories.js +39 -0
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +9 -0
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/top-nav-constants.js +1 -0
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +160 -21
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +11 -5
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/top-nav-item-constants.js +2 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +335 -97
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +114 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +101 -33
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +16 -9
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/collection/utils/floating.js +69 -0
- package/dist/collection/utils/layout-ancestors.js +7 -0
- package/dist/collection/utils/lifecycle.js +31 -10
- package/dist/collection/utils/light-dom-slots.js +15 -0
- package/dist/collection/utils/slot-presence.js +6 -0
- package/dist/collection/utils/ssr-known-mismatches.js +50 -0
- package/dist/collection/utils/tab-a11y-ids.js +1 -2
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/p-2jYZ7ACH.js +1 -0
- package/dist/components/p-BGqQbjLl.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BnTsRbko.js +1 -0
- package/dist/components/p-Bseq_BgD.js +1 -0
- package/dist/components/p-CCgZCY_A.js +1 -0
- package/dist/components/p-CJzsLWeV.js +1 -0
- package/dist/components/p-CRKY79vL.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-CjbPCnPP.js +1 -0
- package/dist/components/p-Cjxw-qOg.js +1 -0
- package/dist/components/p-D6JUVA1x.js +1 -0
- package/dist/components/p-DFGw0APN.js +1 -0
- package/dist/components/p-DLLQBDCb.js +1 -0
- package/dist/components/p-DS2Kv5fl.js +1 -0
- package/dist/components/p-DWUJ_jsx.js +1 -0
- package/dist/components/p-Di1NDy0w.js +1 -0
- package/dist/components/p-DkM7jyQB.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-DsRsm61K.js +1 -0
- package/dist/components/p-DywQ3S73.js +1 -0
- package/dist/components/p-Dzp5p-eh.js +1 -0
- package/dist/components/p-Mehog36m.js +1 -0
- package/dist/components/p-RYnBuuDE.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-B1PBAEzg.js → p-imCMp2Nl.js} +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-header-item.js +1 -0
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.d.ts +11 -0
- package/dist/components/xpl-side-nav-section.js +1 -0
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.d.ts +11 -0
- package/dist/components/xpl-top-nav-menu.js +1 -0
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/css/typography.stories.js +9 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-backdrop/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +2 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
- package/dist/docs/xpl-button/readme.md +4 -2
- package/dist/docs/xpl-checkbox/readme.md +12 -0
- package/dist/docs/xpl-choicelist/readme.md +21 -0
- package/dist/docs/xpl-content-area/readme.md +8 -0
- package/dist/docs/xpl-data-card/readme.md +26 -0
- package/dist/docs/xpl-dropdown/readme.md +32 -6
- package/dist/docs/xpl-dynamic-table/readme.md +35 -0
- package/dist/docs/xpl-header-accordion/readme.md +18 -0
- package/dist/docs/xpl-icon/readme.md +23 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
- package/dist/docs/xpl-large-card/readme.md +18 -0
- package/dist/docs/xpl-list/readme.md +2 -2
- package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
- package/dist/docs/xpl-main-nav/readme.md +16 -0
- package/dist/docs/xpl-modal/readme.md +20 -0
- package/dist/docs/xpl-nav-item/readme.md +14 -0
- package/dist/docs/xpl-pagination/readme.md +29 -0
- package/dist/docs/xpl-radio/readme.md +12 -0
- package/dist/docs/xpl-secondary-nav/readme.md +25 -0
- package/dist/docs/xpl-select/readme.md +13 -0
- package/dist/docs/xpl-side-nav/readme.md +12 -7
- package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
- package/dist/docs/xpl-slideout/readme.md +23 -0
- package/dist/docs/xpl-tab/readme.md +14 -8
- package/dist/docs/xpl-table/readme.md +4 -4
- package/dist/docs/xpl-toast/readme.md +90 -7
- package/dist/docs/xpl-toggle/readme.md +46 -0
- package/dist/docs/xpl-toolbar/readme.md +19 -0
- package/dist/docs/xpl-top-nav/readme.md +5 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +79 -20
- package/dist/docs/xpl-top-nav/xpl-top-nav-menu/readme.md +96 -0
- package/dist/docs/xpl-utility-bar/readme.md +12 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +16441 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
- package/dist/esm/index-BhYfWG18.js +454 -0
- package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +760 -9
- package/dist/esm/lifecycle-Dqb1pIRo.js +71 -0
- package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
- package/dist/esm/slot-presence-_r9-FML8.js +8 -0
- package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
- package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
- package/dist/esm/xpl-accordion.entry.js +5 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +206 -0
- package/dist/esm/xpl-backdrop.entry.js +17 -0
- package/dist/esm/xpl-badge.entry.js +35 -0
- package/dist/esm/xpl-banner.entry.js +72 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +79 -0
- package/dist/esm/xpl-calendar.entry.js +10 -6
- package/dist/esm/xpl-checkbox.entry.js +30 -0
- package/dist/esm/xpl-choicelist.entry.js +66 -0
- package/dist/esm/xpl-content-area.entry.js +13 -0
- package/dist/esm/xpl-dashboard.entry.js +12 -0
- package/dist/esm/xpl-data-card.entry.js +109 -0
- package/dist/esm/xpl-dropdown_4.entry.js +572 -0
- package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +11 -18
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +6 -6
- package/dist/esm/xpl-header-accordion.entry.js +67 -0
- package/dist/{cjs/xpl-avatar_54.cjs.entry.js → esm/xpl-icon.entry.js} +1290 -10661
- package/dist/esm/xpl-input-color.entry.js +433 -0
- package/dist/esm/xpl-input-phone.entry.js +507 -0
- package/dist/esm/xpl-input-time.entry.js +194 -0
- package/dist/esm/xpl-input_4.entry.js +519 -0
- package/dist/esm/xpl-large-card.entry.js +63 -4
- package/dist/esm/xpl-list-item.entry.js +458 -0
- package/dist/esm/xpl-list.entry.js +394 -0
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +76 -0
- package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
- package/dist/esm/xpl-nav-item.entry.js +23 -0
- package/dist/esm/xpl-pagination.entry.js +110 -0
- package/dist/esm/xpl-panel.entry.js +19 -0
- package/dist/esm/xpl-popover.entry.js +263 -0
- package/dist/esm/xpl-progress-bar.entry.js +39 -0
- package/dist/esm/xpl-progress-indicator.entry.js +72 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select_2.entry.js +490 -0
- package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
- package/dist/esm/xpl-side-nav-item.entry.js +128 -0
- package/dist/esm/xpl-side-nav-section.entry.js +103 -0
- package/dist/esm/xpl-side-nav.entry.js +270 -0
- package/dist/esm/xpl-skeleton.entry.js +24 -0
- package/dist/esm/xpl-slideout.entry.js +45 -0
- package/dist/esm/xpl-spotlight.entry.js +720 -0
- package/dist/esm/xpl-tab-panel.entry.js +22 -0
- package/dist/esm/xpl-tab.entry.js +85 -0
- package/dist/esm/xpl-table-header-cell.entry.js +5 -3
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table.entry.js +183 -0
- package/dist/esm/xpl-tabs.entry.js +371 -0
- package/dist/esm/xpl-toast.entry.js +89 -0
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +16 -0
- package/dist/esm/xpl-top-nav-item.entry.js +433 -0
- package/dist/esm/xpl-top-nav-menu.entry.js +89 -0
- package/dist/esm/xpl-top-nav.entry.js +340 -0
- package/dist/esm/xpl-utility-bar.entry.js +21 -0
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +11 -2
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +5 -23
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +17 -116
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +2 -0
- package/dist/types/components/xpl-badge/badge.stories.d.ts +7 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +10 -27
- package/dist/types/components/xpl-button/button.stories.d.ts +4 -0
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +10 -21
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +11 -28
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +13 -31
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +9 -23
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +7 -1
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +8 -17
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +32 -37
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- package/dist/types/components/xpl-divider/divider.stories.d.ts +10 -23
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +160 -8
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +7 -22
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-grid/grid.stories.d.ts +23 -47
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +8 -24
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- package/dist/types/components/xpl-icon/icons.stories.d.ts +16 -39
- package/dist/types/components/xpl-input/input.stories.d.ts +255 -54
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +2 -2
- package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input.d.ts +11 -6
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +12 -30
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
- package/dist/types/components/xpl-list/list.stories.d.ts +33 -1
- package/dist/types/components/xpl-list/listitem.d.ts +5 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +7 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +16 -16
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +3 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +9 -30
- package/dist/types/components/xpl-panel/panel.stories.d.ts +9 -1
- package/dist/types/components/xpl-popover/popover.stories.d.ts +12 -3
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +13 -24
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +2 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +3 -0
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +4 -1
- package/dist/types/components/xpl-select/select.stories.d.ts +35 -45
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +73 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +11 -1
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +20 -16
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +7 -1
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +16 -37
- package/dist/types/components/xpl-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +21 -48
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +11 -34
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +22 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +35 -1
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +29 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +3 -0
- package/dist/types/components/xpl-toast/toast.stories.d.ts +17 -13
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +13 -31
- package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +35 -0
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +10 -24
- package/dist/types/components/xpl-top-nav/top-nav-constants.d.ts +1 -0
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +79 -1
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/top-nav-item-constants.d.ts +2 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +26 -4
- package/dist/types/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.d.ts +18 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +8 -2
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +9 -2
- package/dist/types/components.d.ts +1186 -66
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +11 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +1 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +76 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/utils/story-vrt.d.ts +1 -0
- package/dist/types/third-party.d.ts +20 -0
- package/dist/types/utils/floating.d.ts +26 -0
- package/dist/types/utils/lifecycle.d.ts +4 -1
- package/dist/types/utils/light-dom-slots.d.ts +6 -0
- package/dist/types/utils/slot-presence.d.ts +1 -0
- package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
- package/dist/utils/form-bindings.js +64 -0
- package/dist/utils/story-vrt.js +48 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +51669 -0
- package/hydrate/index.mjs +51659 -0
- package/hydrate/package.json +12 -0
- package/package.json +111 -44
- package/dist/apollo-core/p-0e45f332.entry.js +0 -1
- package/dist/apollo-core/p-0f251f98.entry.js +0 -1
- package/dist/apollo-core/p-1691c4f3.entry.js +0 -1
- package/dist/apollo-core/p-172ac720.entry.js +0 -1
- package/dist/apollo-core/p-23870463.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-44a16751.entry.js +0 -1
- package/dist/apollo-core/p-4efecab2.entry.js +0 -1
- package/dist/apollo-core/p-5094dd97.entry.js +0 -1
- package/dist/apollo-core/p-70e7facc.entry.js +0 -1
- package/dist/apollo-core/p-728341d2.entry.js +0 -1
- package/dist/apollo-core/p-910be81f.entry.js +0 -1
- package/dist/apollo-core/p-9adf3694.entry.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-c17b6351.entry.js +0 -1
- package/dist/apollo-core/p-e08b434c.entry.js +0 -1
- package/dist/apollo-core/p-e9e7577f.entry.js +0 -1
- package/dist/components/p-3qMYyqTe.js +0 -1
- package/dist/components/p-BG0-6Xek.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BWyAzrwu.js +0 -1
- package/dist/components/p-B_Wi--Ov.js +0 -1
- package/dist/components/p-Bd6JweBt.js +0 -1
- package/dist/components/p-Bn-27-xj.js +0 -1
- package/dist/components/p-Bs6vq0C6.js +0 -1
- package/dist/components/p-C9BO2vL-.js +0 -1
- package/dist/components/p-CFW_w5Wj.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CGNq3DyC.js +0 -1
- package/dist/components/p-CVqbA9op.js +0 -1
- package/dist/components/p-CtIUusUL.js +0 -1
- package/dist/components/p-D97c0GjM.js +0 -1
- package/dist/components/p-DBWV65V-.js +0 -1
- package/dist/components/p-DEl4Rvzs.js +0 -1
- package/dist/components/p-DPTHmitJ.js +0 -1
- package/dist/components/p-DllC7F-H.js +0 -1
- package/dist/components/p-Ds28UyUR.js +0 -1
- package/dist/components/p-U5dPMCXE.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-hPUzON4O.js +0 -1
- package/dist/components/p-kPHfCq1d.js +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-CXkZUm1c.js";export{s as setNonce}from"./p-CXkZUm1c.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a(JSON.parse('[["p-0e45f332",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["p-3b8639b7",[[0,"xpl-table-header-cell",{"icon":[1],"sortable":[4],"label":[1],"type":[1],"width":[2],"sortDirection":[32]}]]],["p-728341d2",[[260,"xpl-accordion",{"contentId":[1,"content-id"],"header":[1],"description":[1],"initialExpanded":[4,"initial-expanded"],"size":[1],"borderType":[1,"border-type"],"expanded":[32],"parentCheckboxChange":[64]},[[0,"checkboxChange","listenToChangeEvent"]],{"initialExpanded":[{"watchInitialExpanded":0}]}]]],["p-23870463",[[260,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["p-e08b434c",[[260,"xpl-large-card",{"link":[4],"name":[1],"description":[1]}]]],["p-9adf3694",[[0,"xpl-calendar",{"inputId":[1,"input-id"],"dateFormat":[1,"date-format"],"max":[8],"min":[8],"mode":[1],"defaultDate":[1,"default-date"],"setDate":[64]}]]],["p-e9e7577f",[[260,"xpl-dynamic-table",{"selectedItemCount":[32],"colCount":[32]},[[8,"deselectAll","listenToDeselectEvent"],[8,"checkboxChange","listenToChangeEvent"]]]]],["p-172ac720",[[260,"xpl-dynamic-table-cell",{"disabled":[4]}]]],["p-1691c4f3",[[260,"xpl-dynamic-table-row",{"disabled":[4],"selected":[4],"isDisabled":[32]}]]],["p-70e7facc",[[0,"xpl-grid"]]],["p-c17b6351",[[260,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["p-5094dd97",[[260,"xpl-main-nav",{"width":[1]}]]],["p-0f251f98",[[260,"xpl-table-header"]]],["p-44a16751",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["p-910be81f",[[260,"xpl-toolbar",{"selectedItemCount":[2,"selected-item-count"]},[[8,"selectedItemCountChange","listenToSelectedItemCountChange"]]]]],["p-4efecab2",[[260,"xpl-list",{"items":[16],"label":[1],"labelledBy":[1,"labelled-by"],"reorderable":[4],"selectable":[4],"keyboardReorderItemId":[32],"reorderLiveMessage":[32],"clearSelection":[64]},[[0,"keydown","handleKeyDown"],[0,"itemSelect","handleChildItemSelect"],[0,"slotchange","handleSlotChange"],[0,"itemDragStart","handleItemDragStart"],[0,"itemDragEnd","handleItemDragEnd"],[0,"itemDrop","handleItemDrop"],[0,"xplListItemReorder","handleItemReorder"]],{"keyboardReorderItemId":[{"handleKeyboardReorderItemIdChange":0}],"items":[{"handleItemsChange":0}],"reorderable":[{"handleReorderableChange":0}],"selectable":[{"handleSelectableChange":0}]}],[0,"xpl-pagination",{"totalPages":[2,"total-pages"],"withPageControl":[4,"with-page-control"],"currentPage":[1026,"current-page"],"rowsPerPageOptions":[1,"rows-per-page-options"],"selectedRowsPerPage":[1026,"selected-rows-per-page"]},null,{"currentPage":[{"onPageUpdate":0}],"totalPages":[{"onTotalPagesUpdate":0}],"selectedRowsPerPage":[{"onRowsPerPageUpdate":0}]}],[260,"xpl-tabs",{"disabled":[4],"fullWidth":[4,"full-width"],"type":[513],"value":[1],"activeBarPosition":[32],"choicesTick":[32],"isMobileSelectChange":[32],"selectedValue":[32]},[[9,"resize","onWindowResize"]],{"disabled":[{"onDisabledChanged":0}],"fullWidth":[{"onFullWidthChanged":0}],"type":[{"onTypeChanged":0}],"value":[{"onValueChanged":0}]}],[260,"xpl-slideout",{"isOpen":[1540,"is-open"],"backdrop":[4],"variant":[1],"showFooter":[4,"show-footer"]},[[9,"scroll","handleScroll"]],{"isOpen":[{"watchPropHandler":0}]}],[260,"xpl-top-nav",{"brandHref":[1,"brand-href"],"brandLogo":[1,"brand-logo"],"brandName":[1,"brand-name"],"childAccountLabel":[1,"child-account-label"],"label":[1],"navControl":[516,"nav-control"],"brandLogoSlotPresent":[32],"open":[32],"userMenuSlotPresent":[32],"userMenuTriggerSlotPresent":[32]},null,{"navControl":[{"onNavControlChanged":0}]}],[260,"xpl-modal",{"isOpen":[1540,"is-open"],"size":[1],"variant":[1]},null,{"isOpen":[{"updateModalState":0}]}],[260,"xpl-side-nav",{"label":[1],"open":[1540],"toggle":[64],"setOpen":[64]},null,{"open":[{"onOpenChanged":0}]}],[0,"xpl-banner",{"actionText":[1,"action-text"],"appearance":[1],"description":[1],"hasIcon":[4,"has-icon"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isSection":[4,"is-section"],"secondaryActionText":[1,"secondary-action-text"],"truncateDesc":[4,"truncate-desc"]}],[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]},null,{"choices":[{"onChoicesPropChange":0}],"selected":[{"onSelectedChange":0}]}],[260,"xpl-data-card",{"link":[4],"name":[1],"stat":[1],"shortStat":[1,"short-stat"],"variant":[1],"leadingIcon":[4,"leading-icon"],"icon":[1],"smallStat":[1,"small-stat"],"smallStatIcon":[1,"small-stat-icon"],"detail":[1],"smallStatVariant":[1,"small-stat-variant"],"tooltipTextSmallStat":[1,"tooltip-text-small-stat"],"tooltipTextStat":[1,"tooltip-text-stat"]},null,{"stat":[{"watchStat":0}],"shortStat":[{"watchShortStat":0}]}],[260,"xpl-header-accordion",{"contentId":[1,"content-id"],"initialExpanded":[4,"initial-expanded"],"disabled":[4],"selectedCount":[2,"selected-count"],"hasCheckbox":[4,"has-checkbox"],"expanded":[32],"parentChecked":[32],"parentIndeterminate":[32]},[[0,"checkboxChange","handleChildCheckboxChange"]],{"selectedCount":[{"watchSelectedCount":0}]}],[260,"xpl-spotlight",{"actionLayout":[1,"action-layout"],"anchorPosition":[1,"anchor-position"],"body":[1],"currentStep":[2,"current-step"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isOpen":[4,"is-open"],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"showActions":[4,"show-actions"],"showImage":[4,"show-image"],"showSteps":[4,"show-steps"],"target":[1],"totalSteps":[2,"total-steps"],"hasBodySlotContent":[32],"hasFloatingPosition":[32],"hasImageSlotContent":[32],"hasTitleSlotContent":[32],"dialogLabelId":[32],"isVisible":[32],"resolvedAnchorPosition":[32]},[[4,"keydown","handleKeyDown"]],{"anchorPosition":[{"onAnchorPositionChange":0}],"isOpen":[{"onIsOpenChange":0}],"target":[{"onTargetChange":0}]}],[260,"xpl-tab",{"disabled":[516],"fullWidth":[4,"full-width"],"groupDisabled":[1540,"data-group-disabled"],"icon":[513],"iconPosition":[1,"icon-position"],"selected":[4],"target":[1],"variant":[1],"getFocusableElement":[64],"setTabIndex":[64],"focusTrigger":[64]}],[0,"xpl-table",{"columns":[16],"data":[16],"footer":[16],"freeze":[4],"multiselect":[4],"striped":[4],"selectedValues":[16],"isSortable":[4,"is-sortable"],"sortableColumns":[16],"areAllSelected":[32],"rowData":[32],"rowFooterData":[32],"hasScrolled":[32],"selected":[32],"sortTypeArray":[32]},null,{"data":[{"watchData":0}],"footer":[{"watchFooterData":0}],"columns":[{"watchColumns":0}]}],[0,"xpl-progress-bar",{"helperText":[1,"helper-text"],"label":[1],"max":[2],"size":[1],"value":[2],"variant":[1]}],[0,"xpl-progress-indicator",{"currentStep":[1026,"current-step"],"layout":[1],"showLabels":[4,"show-labels"],"showNumbers":[4,"show-numbers"],"steps":[16]},null,{"steps":[{"validateCurrentStep":0}],"currentStep":[{"validateCurrentStep":0}]}],[260,"xpl-side-nav-item",{"disabled":[516],"expanded":[1540],"hasChildren":[1540,"has-children"],"hidden":[516],"icon":[1],"label":[1],"link":[516],"selected":[516],"hasTrailingSlot":[32]},null,{"hasChildren":[{"syncLinkHasChildrenExclusivity":0}],"link":[{"syncLinkHasChildrenExclusivity":0}]}],[260,"xpl-toast",{"variant":[1],"showIcon":[4,"show-icon"],"caption":[1],"dismissable":[4],"timeout":[2]}],[260,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}],[260,"xpl-breadcrumb-item"],[260,"xpl-breadcrumbs"],[260,"xpl-content-area",{"size":[1]}],[260,"xpl-dashboard"],[260,"xpl-nav-header-menu",{"email":[1],"username":[1],"rightAsideMobilePresent":[32]}],[260,"xpl-nav-item",{"navControl":[4,"nav-control"]}],[260,"xpl-panel",{"accent":[1],"padding":[1]}],[260,"xpl-secondary-nav"],[0,"xpl-skeleton",{"classNames":[1,"class-names"],"fullWidth":[4,"full-width"],"height":[1],"width":[1],"margin":[1],"shape":[1],"size":[1]}],[260,"xpl-tab-panel",{"selected":[4],"target":[1]}],[260,"xpl-list-item",{"disabled":[4],"error":[4],"hidden":[4],"href":[1],"item":[16],"itemId":[1025,"item-id"],"keyboardActive":[4,"keyboard-active"],"radioName":[1,"radio-name"],"reorderable":[4],"selectable":[4],"selected":[4],"showDivider":[4,"show-divider"],"titleBadgeVariant":[1,"title-badge-variant"],"slotPresence":[32],"isKeyboardMode":[32]},[[0,"slotchange","handleSlotChange"]],{"item":[{"handleItemChange":0}],"keyboardActive":[{"handleKeyboardActiveChange":0}],"selected":[{"handleSelectedChange":0}],"titleBadgeVariant":[{"handleTitleBadgeVariantChange":0}]}],[260,"xpl-top-nav-item",{"active":[516],"href":[1],"icon":[1],"itemAriaLabel":[1,"item-aria-label"],"label":[1],"selected":[516],"hasDropdown":[32],"hostListitemRole":[32],"open":[32]},[[0,"_xplCloseNavDropdown","handleCloseNavDropdownRequest"]],{"hasDropdown":[{"onHasDropdownChanged":0}]}],[260,"xpl-tooltip",{"text":[1],"position":[1],"hideArrow":[4,"hide-arrow"]}],[260,"xpl-select",{"choices":[16],"selectIcon":[1,"select-icon"],"description":[1],"disabled":[4],"dropdownFlipFallbackPlacements":[16],"dropdownPlacement":[1,"dropdown-placement"],"error":[1],"label":[1],"mode":[1],"name":[1],"placeholder":[1],"truncate":[4],"customDisplayValue":[4,"custom-display-value"],"selectedValues":[1,"selected-values"],"classNames":[1,"class-names"],"active":[32],"id":[32],"keepFocus":[32],"visibleChoices":[32],"choicesState":[32],"value":[32],"dropdownOpenState":[32],"reset":[64]},[[8,"click","handleClickEvent"],[8,"keydown","handleKeyDown"],[9,"resize","handleResize"]],{"choices":[{"onChoicesPropChanged":0}],"selectedValues":[{"onSelectedValuesPropChanged":0}],"choicesState":[{"onChoicesStateChanged":0}],"value":[{"handleValueStateChange":0}],"dropdownOpenState":[{"onDropdownOpenStateChanged":0}]}],[260,"xpl-avatar",{"color":[1],"disabled":[4],"groupData":[1,"group-data"],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"subText":[1,"sub-text"],"target":[1],"variant":[1],"cachedGroupItems":[32],"cachedSlotContent":[32]},null,{"groupData":[{"onGroupDataChange":0}]}],[260,"xpl-tag",{"disabled":[4],"dismissible":[4],"isDraggable":[4,"is-draggable"],"size":[1],"tagId":[1,"tag-id"],"dismissAriaLabelSuffix":[32],"isDragging":[32]},null,{"disabled":[{"onDisabledChange":0}],"isDraggable":[{"onIsDraggableChange":0}]}],[260,"xpl-badge",{"bordered":[4],"dot":[4],"dotOnly":[4,"dot-only"],"shape":[1],"size":[1],"variant":[1]}],[260,"xpl-divider",{"tier":[2]}],[260,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"value":[1],"required":[4],"selectedValue":[1,"selected-value"],"styled":[4],"id":[32]}],[260,"xpl-input",{"_id":[1],"description":[1],"disabled":[4],"error":[1],"label":[1],"name":[1],"required":[4],"readonly":[4],"value":[1],"autocomplete":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"step":[2],"multiline":[4],"maxCharacterCount":[2,"max-character-count"],"dateFormat":[1,"date-format"],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"mode":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"hideEyeDropper":[4,"hide-eye-dropper"],"defaultCountry":[1,"default-country"],"preferredCountries":[16],"isInternational":[4,"is-international"],"ariaLabel":[1,"aria-label"],"shape":[1],"type":[1],"characterCount":[32],"passwordVisible":[32],"hasPreSlotContent":[32],"setFocus":[64]}],[0,"xpl-input-color",{"value":[1],"placeholder":[1],"disabled":[4],"required":[4],"hideEyeDropper":[4,"hide-eye-dropper"],"hasErrorState":[32],"colorValues":[32],"eyeDropperSupported":[32],"hue":[32]},null,{"colorValues":[{"valueChanged":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValuePropChange":0}]}],[260,"xpl-popover",{"isOpen":[4,"is-open"],"disabled":[4],"position":[1],"display":[1],"isOpenState":[32],"actualPosition":[32],"updateListener":[32]},null,{"isOpen":[{"onIsOpenPropChange":0}],"isOpenState":[{"onIsOpenStateChange":0}]}],[0,"xpl-input-phone",{"defaultCountry":[1,"default-country"],"disabled":[4],"error":[4],"inputId":[1,"input-id"],"isInternational":[4,"is-international"],"name":[1],"placeholder":[1],"preferredCountries":[16],"readonly":[4],"required":[4],"value":[1537],"dropdownOpen":[32],"hasErrorState":[32],"nationalNumber":[32],"searchQuery":[32],"selectedCountry":[32],"triggerId":[32]},null,{"dropdownOpen":[{"onDropdownOpenChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChange":0}]}],[0,"xpl-input-time",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1537],"placeholder":[1],"max":[8],"min":[8],"step":[2],"mode":[1],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"formattedValue":[32],"hasErrorState":[32],"showOptions":[32],"options":[32],"amPm":[32]},null,{"value":[{"onValueChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}]}],[0,"xpl-input-date",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"dateFormat":[1,"date-format"],"mode":[1],"flatpickrStaticLayout":[32],"hasErrorState":[32]},null,{"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChanged":0}]}],[260,"xpl-input-file",{"disabled":[4],"name":[1],"_id":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"files":[32],"removeFileByIndex":[64]},null,{"files":[{"onFilesChange":0}]}],[0,"xpl-input-search",{"ariaLabel":[1,"aria-label"],"autocomplete":[1],"disabled":[4],"errorMessageId":[1,"error-message-id"],"hasError":[4,"has-error"],"hasVisibleLabel":[4,"has-visible-label"],"inputId":[1,"input-id"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"value":[1025],"hasAncestorForm":[32],"setFocus":[64]}],[0,"xpl-backdrop",{"relative":[4]}],[260,"xpl-checkbox",{"ariaLabel":[1,"aria-label"],"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"value":[1],"required":[4],"styled":[4],"dataId":[1,"data-id"],"id":[32]}],[260,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[1040],"anchorToTrigger":[4,"anchor-to-trigger"],"flipFallbackPlacements":[16],"placement":[1],"selectedValues":[1,"selected-values"],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"virtualEnd":[32],"virtualStart":[32],"handleSelect":[64]},null,{"options":[{"onOptionsChanged":0}],"anchorToTrigger":[{"onAnchorToTriggerChanged":0}],"flipFallbackPlacements":[{"onFlipFallbackPlacementsChanged":0}],"placement":[{"onPlacementChanged":0}],"triggerId":[{"onTriggerIdChanged":0}],"selectedValues":[{"onSelectedValuesChanged":0}],"isOpen":[{"onIsOpenStateChange":0}]}],[260,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}],[260,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"value":[1],"subtitle":[1],"icon":[1],"isSelected":[4,"selected"]}],[260,"xpl-dropdown-heading",{"label":[1]}],[260,"xpl-button",{"controlAttrs":[16],"disabled":[4],"form":[1],"fullWidth":[4,"full-width"],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"isLoading":[4,"is-loading"],"link":[4],"name":[1],"sentiment":[1],"size":[1],"state":[1],"type":[1],"value":[1],"variant":[1]},[[2,"click","handleDisabledClick"]]],[0,"xpl-icon",{"icon":[1],"size":[2],"backgroundColor":[1,"background-color"]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as a}from"./p-ukZKsqqq.js";export{s as setNonce}from"./p-ukZKsqqq.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a(JSON.parse('[["p-8a81ef98",[[260,"xpl-list",{"items":[16],"label":[1],"labelledBy":[1,"labelled-by"],"reorderable":[4],"selectable":[4],"keyboardReorderItemId":[32],"reorderLiveMessage":[32],"clearSelection":[64]},[[0,"keydown","handleKeyDown"],[0,"itemSelect","handleChildItemSelect"],[0,"slotchange","handleSlotChange"],[0,"itemDragStart","handleItemDragStart"],[0,"itemDragEnd","handleItemDragEnd"],[0,"itemDrop","handleItemDrop"],[0,"xplListItemReorder","handleItemReorder"]],{"keyboardReorderItemId":[{"handleKeyboardReorderItemIdChange":0}],"items":[{"handleItemsChange":0}],"reorderable":[{"handleReorderableChange":0}],"selectable":[{"handleSelectableChange":0}]}]]],["p-601b3ab5",[[0,"xpl-pagination",{"totalPages":[2,"total-pages"],"withPageControl":[4,"with-page-control"],"currentPage":[1026,"current-page"],"rowsPerPageOptions":[1,"rows-per-page-options"],"selectedRowsPerPage":[1026,"selected-rows-per-page"]},null,{"currentPage":[{"onPageUpdate":0}],"totalPages":[{"onTotalPagesUpdate":0}],"selectedRowsPerPage":[{"onRowsPerPageUpdate":0}]}]]],["p-e4ae3f60",[[260,"xpl-tabs",{"disabled":[4],"fullWidth":[4,"full-width"],"type":[513],"value":[1],"activeBarPosition":[32],"choicesTick":[32],"isMobileSelectChange":[32],"selectedValue":[32]},[[9,"resize","onWindowResize"]],{"disabled":[{"onDisabledChanged":0}],"fullWidth":[{"onFullWidthChanged":0}],"type":[{"onTypeChanged":0}],"value":[{"onValueChanged":0}]}]]],["p-ba41bbd5",[[260,"xpl-slideout",{"isOpen":[1540,"is-open"],"backdrop":[4],"variant":[1],"showFooter":[4,"show-footer"]},[[9,"scroll","handleScroll"]],{"isOpen":[{"watchPropHandler":0}]}]]],["p-121d1a4b",[[260,"xpl-top-nav",{"brandHref":[1,"brand-href"],"brandLogo":[1,"brand-logo"],"brandName":[1,"brand-name"],"childAccountLabel":[1,"child-account-label"],"label":[1],"navControl":[516,"nav-control"],"brandLogoSlotPresent":[32],"open":[32],"slotProjectionNonce":[32],"userMenuSlotPresent":[32],"userMenuTriggerSlotPresent":[32]},null,{"navControl":[{"onNavControlChanged":0}]}]]],["p-724c5038",[[260,"xpl-modal",{"isOpen":[1540,"is-open"],"size":[1],"variant":[1]},null,{"isOpen":[{"updateModalState":0}]}]]],["p-cde21f72",[[260,"xpl-side-nav",{"label":[1],"open":[1540],"hasHeaderSlot":[32],"toggle":[64],"setOpen":[64]},null,{"open":[{"onOpenChanged":0}]}]]],["p-8845106f",[[260,"xpl-tab",{"badge":[513],"badgeVariant":[1,"badge-variant"],"disabled":[516],"fullWidth":[4,"full-width"],"groupDisabled":[1540,"data-group-disabled"],"icon":[513],"iconPosition":[1,"icon-position"],"selected":[4],"target":[1],"variant":[1],"getFocusableElement":[64],"setTabIndex":[64],"focusTrigger":[64]}]]],["p-0be4dbb8",[[0,"xpl-banner",{"actionText":[1,"action-text"],"appearance":[1],"description":[1],"hasIcon":[4,"has-icon"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isSection":[4,"is-section"],"secondaryActionText":[1,"secondary-action-text"],"truncateDesc":[4,"truncate-desc"]}]]],["p-020ecd66",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["p-7976cd3b",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]},null,{"choices":[{"onChoicesPropChange":0}],"selected":[{"onSelectedChange":0}]}]]],["p-4e61587f",[[260,"xpl-data-card",{"link":[4],"name":[1],"stat":[1],"shortStat":[1,"short-stat"],"variant":[1],"leadingIcon":[4,"leading-icon"],"icon":[1],"smallStat":[1,"small-stat"],"smallStatIcon":[1,"small-stat-icon"],"detail":[1],"smallStatVariant":[1,"small-stat-variant"],"tooltipTextSmallStat":[1,"tooltip-text-small-stat"],"tooltipTextStat":[1,"tooltip-text-stat"],"graphContentPresent":[32]},null,{"stat":[{"watchStat":0}],"shortStat":[{"watchShortStat":0}]}]]],["p-1a417191",[[260,"xpl-header-accordion",{"contentId":[1,"content-id"],"initialExpanded":[4,"initial-expanded"],"disabled":[4],"selectedCount":[2,"selected-count"],"hasCheckbox":[4,"has-checkbox"],"expanded":[32],"parentChecked":[32],"parentIndeterminate":[32]},[[0,"checkboxChange","handleChildCheckboxChange"]],{"selectedCount":[{"watchSelectedCount":0}]}]]],["p-256ece8b",[[260,"xpl-spotlight",{"actionLayout":[1,"action-layout"],"anchorPosition":[1,"anchor-position"],"body":[1],"currentStep":[2,"current-step"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isOpen":[4,"is-open"],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"showActions":[4,"show-actions"],"showImage":[4,"show-image"],"showSteps":[4,"show-steps"],"target":[1],"totalSteps":[2,"total-steps"],"hasBodySlotContent":[32],"hasFloatingPosition":[32],"hasImageSlotContent":[32],"hasTitleSlotContent":[32],"dialogLabelId":[32],"isVisible":[32],"resolvedAnchorPosition":[32]},[[4,"keydown","handleKeyDown"]],{"anchorPosition":[{"onAnchorPositionChange":0}],"isOpen":[{"onIsOpenChange":0}],"target":[{"onTargetChange":0}]}]]],["p-9b0174b1",[[0,"xpl-table",{"columns":[16],"data":[16],"footer":[16],"freeze":[4],"multiselect":[4],"striped":[4],"selectedValues":[16],"isSortable":[4,"is-sortable"],"sortableColumns":[16],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32],"sortTypeArray":[32]},null,{"data":[{"watchData":0}],"columns":[{"watchColumns":0}]}]]],["p-8a925e9d",[[0,"xpl-table-header-cell",{"icon":[1],"sortable":[4],"label":[1],"type":[1],"width":[2],"sortDirection":[32]}]]],["p-e00ed4f4",[[260,"xpl-toast",{"caption":[1],"dismissable":[4],"dismissible":[4],"showIcon":[4,"show-icon"],"timeout":[2],"variant":[1]},null,{"dismissable":[{"handleDismissableChange":0}],"timeout":[{"handleTimeoutChange":0}]}]]],["p-9bf2ff9f",[[260,"xpl-top-nav-menu",{"label":[1],"isMobileCascade":[32]}]]],["p-0463c29f",[[260,"xpl-accordion",{"contentId":[1,"content-id"],"header":[1],"description":[1],"initialExpanded":[4,"initial-expanded"],"size":[1],"borderType":[1,"border-type"],"expanded":[32],"parentCheckboxChange":[64]},[[0,"checkboxChange","listenToChangeEvent"]],{"initialExpanded":[{"watchInitialExpanded":0}]}]]],["p-dfaba114",[[260,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["p-c427a31d",[[260,"xpl-large-card",{"link":[4],"name":[1],"description":[1],"graphContentPresent":[32]}]]],["p-b537f72d",[[0,"xpl-progress-bar",{"helperText":[1,"helper-text"],"label":[1],"max":[2],"size":[1],"value":[2],"variant":[1]}]]],["p-fd2756d8",[[0,"xpl-progress-indicator",{"currentStep":[1026,"current-step"],"layout":[1],"showLabels":[4,"show-labels"],"showNumbers":[4,"show-numbers"],"steps":[16]},null,{"steps":[{"validateCurrentStep":0}],"currentStep":[{"validateCurrentStep":0}]}]]],["p-707b1918",[[260,"xpl-side-nav-header-item",{"icon":[1],"label":[1],"selected":[516],"type":[513],"hasLeadingSlot":[32],"hasTrailingSlot":[32]}]]],["p-853418be",[[260,"xpl-side-nav-item",{"disabled":[516],"expanded":[1540],"hasChildren":[1540,"has-children"],"hidden":[516],"icon":[1],"label":[1],"link":[516],"selected":[516],"hasTrailingSlot":[32]},null,{"hasChildren":[{"syncLinkHasChildrenExclusivity":0}],"link":[{"syncLinkHasChildrenExclusivity":0}]}]]],["p-616c5a32",[[260,"xpl-side-nav-section",{"collapsible":[516],"expanded":[1540],"heading":[1],"hasBadgeSlot":[32],"hasNamedBadgeSlot":[32]}]]],["p-a33b0943",[[260,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}]]],["p-efa21ec0",[[260,"xpl-breadcrumb-item"]]],["p-26b6a0ed",[[260,"xpl-breadcrumbs"]]],["p-d37488d4",[[0,"xpl-calendar",{"inputId":[1,"input-id"],"dateFormat":[1,"date-format"],"max":[8],"min":[8],"mode":[1],"defaultDate":[1,"default-date"],"setDate":[64]}]]],["p-d288c1d1",[[260,"xpl-content-area",{"size":[1]}]]],["p-5d25a84a",[[260,"xpl-dashboard"]]],["p-7f105d63",[[260,"xpl-dynamic-table",{"colCount":[32],"hasAccordion":[32],"selectedItemCount":[32]},[[8,"deselectAll","listenToDeselectEvent"],[8,"checkboxChange","listenToChangeEvent"]]]]],["p-39e71d86",[[260,"xpl-dynamic-table-cell",{"disabled":[4]}]]],["p-3d9c90ee",[[260,"xpl-dynamic-table-row",{"disabled":[4],"selected":[4],"isDisabled":[32]}]]],["p-fef6c256",[[0,"xpl-grid"]]],["p-638fd9b1",[[260,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["p-091411e3",[[260,"xpl-main-nav",{"width":[1]}]]],["p-26861d09",[[260,"xpl-nav-header-menu",{"email":[1],"username":[1],"rightAsideMobilePresent":[32]}]]],["p-5e5c5016",[[260,"xpl-nav-item",{"navControl":[4,"nav-control"]}]]],["p-4129d971",[[260,"xpl-panel",{"accent":[1],"padding":[1]}]]],["p-80a11cad",[[260,"xpl-secondary-nav"]]],["p-46d21684",[[0,"xpl-skeleton",{"classNames":[1,"class-names"],"fullWidth":[4,"full-width"],"height":[1],"width":[1],"margin":[1],"shape":[1],"size":[1]}]]],["p-5afc9831",[[260,"xpl-tab-panel",{"selected":[4],"target":[1]}]]],["p-ec488f9c",[[260,"xpl-table-header"]]],["p-f2bfe6a6",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["p-3dd1de49",[[260,"xpl-toolbar",{"selectedItemCount":[2,"selected-item-count"]},[[8,"selectedItemCountChange","listenToSelectedItemCountChange"]]]]],["p-e2a16242",[[260,"xpl-tooltip",{"text":[1],"position":[1],"hideArrow":[4,"hide-arrow"]}]]],["p-ff8acf15",[[0,"xpl-icon",{"icon":[1],"size":[2],"backgroundColor":[1,"background-color"]}]]],["p-c25aebe5",[[260,"xpl-top-nav-item",{"active":[516],"description":[1],"href":[1],"icon":[1],"itemAriaLabel":[1,"item-aria-label"],"label":[1],"open":[1540],"openMode":[513,"open-mode"],"selected":[516],"hasActiveDescendant":[32],"hasDropdown":[32],"isLeadingIconSlotPresent":[32],"isMobileViewport":[32],"hostListitemRole":[32],"isTrailingIconSlotPresent":[32],"closeMenu":[64],"openMenu":[64],"toggleMenu":[64]},[[0,"_xplCloseNavDropdown","handleCloseNavDropdownRequest"]],{"hasDropdown":[{"onHasDropdownChanged":0}],"open":[{"onOpenChanged":0}]}]]],["p-1139fac0",[[0,"xpl-input-color",{"value":[1],"placeholder":[1],"disabled":[4],"required":[4],"hideEyeDropper":[4,"hide-eye-dropper"],"hasErrorState":[32],"colorValues":[32],"eyeDropperSupported":[32],"hue":[32]},null,{"colorValues":[{"valueChanged":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValuePropChange":0}]}]]],["p-875e0eaa",[[260,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[1040],"anchorToTrigger":[4,"anchor-to-trigger"],"flipFallbackPlacements":[16],"placement":[1],"selectedValues":[1,"selected-values"],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"virtualEnd":[32],"virtualStart":[32],"handleSelect":[64]},null,{"options":[{"onOptionsChanged":0}],"anchorToTrigger":[{"onAnchorToTriggerChanged":0}],"flipFallbackPlacements":[{"onFlipFallbackPlacementsChanged":0}],"placement":[{"onPlacementChanged":0}],"triggerId":[{"onTriggerIdChanged":0}],"selectedValues":[{"onSelectedValuesChanged":0}],"isOpen":[{"onIsOpenStateChange":0}]}],[260,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}],[260,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"value":[1],"subtitle":[1],"icon":[1],"isSelected":[4,"selected"]}],[260,"xpl-dropdown-heading",{"label":[1]}]]],["p-5ca18bc1",[[0,"xpl-input-time",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1537],"placeholder":[1],"max":[8],"min":[8],"step":[2],"mode":[1],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"formattedValue":[32],"hasErrorState":[32],"showOptions":[32],"options":[32],"amPm":[32]},null,{"value":[{"onValueChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}]}]]],["p-76f64d65",[[260,"xpl-badge",{"bordered":[4],"dot":[4],"dotOnly":[4,"dot-only"],"shape":[1],"size":[1],"variant":[1]}]]],["p-a0d3b7f8",[[260,"xpl-list-item",{"disabled":[4],"error":[4],"hidden":[4],"href":[1],"item":[16],"itemId":[1025,"item-id"],"keyboardActive":[4,"keyboard-active"],"radioName":[1,"radio-name"],"reorderable":[4],"selectable":[4],"selected":[4],"showDivider":[4,"show-divider"],"titleBadgeVariant":[1,"title-badge-variant"],"slotPresence":[32],"isKeyboardMode":[32]},[[0,"slotchange","handleSlotChange"]],{"item":[{"handleItemChange":0}],"keyboardActive":[{"handleKeyboardActiveChange":0}],"selected":[{"handleSelectedChange":0}],"titleBadgeVariant":[{"handleTitleBadgeVariantChange":0}]}]]],["p-f199ad66",[[260,"xpl-popover",{"isOpen":[4,"is-open"],"disabled":[4],"position":[1],"display":[1],"isOpenState":[32],"actualPosition":[32],"updateListener":[32]},null,{"isOpen":[{"onIsOpenPropChange":0}],"isOpenState":[{"onIsOpenStateChange":0}]}]]],["p-643c8038",[[0,"xpl-input-phone",{"defaultCountry":[1,"default-country"],"disabled":[4],"error":[4],"inputId":[1,"input-id"],"isInternational":[4,"is-international"],"name":[1],"placeholder":[1],"preferredCountries":[16],"readonly":[4],"required":[4],"value":[1537],"dropdownOpen":[32],"hasErrorState":[32],"nationalNumber":[32],"searchQuery":[32],"selectedCountry":[32],"triggerId":[32]},null,{"dropdownOpen":[{"onDropdownOpenChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChange":0}]}]]],["p-8ddbf2e2",[[0,"xpl-backdrop",{"relative":[4]}]]],["p-0095174c",[[260,"xpl-checkbox",{"ariaLabel":[1,"aria-label"],"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"value":[1],"required":[4],"styled":[4],"dataId":[1,"data-id"],"id":[32]}]]],["p-bb22ed2a",[[260,"xpl-select",{"choices":[16],"selectIcon":[1,"select-icon"],"description":[1],"disabled":[4],"dropdownFlipFallbackPlacements":[16],"dropdownPlacement":[1,"dropdown-placement"],"error":[1],"label":[1],"mode":[1],"name":[1],"placeholder":[1],"truncate":[4],"customDisplayValue":[4,"custom-display-value"],"selectedValues":[1,"selected-values"],"classNames":[1,"class-names"],"active":[32],"id":[32],"keepFocus":[32],"visibleChoices":[32],"choicesState":[32],"value":[32],"dropdownOpenState":[32],"reset":[64]},[[8,"click","handleClickEvent"],[8,"keydown","handleKeyDown"],[9,"resize","handleResize"]],{"choices":[{"onChoicesPropChanged":0}],"selectedValues":[{"onSelectedValuesPropChanged":0}],"choicesState":[{"onChoicesStateChanged":0}],"value":[{"handleValueStateChange":0}],"dropdownOpenState":[{"onDropdownOpenStateChanged":0}]}],[260,"xpl-tag",{"disabled":[4],"dismissible":[4],"isDraggable":[4,"is-draggable"],"size":[1],"tagId":[1,"tag-id"],"dismissAriaLabelSuffix":[32],"isDragging":[32]},null,{"disabled":[{"onDisabledChange":0}],"isDraggable":[{"onIsDraggableChange":0}]}]]],["p-140a96c7",[[260,"xpl-avatar",{"color":[1],"disabled":[4],"groupData":[1,"group-data"],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"subText":[1,"sub-text"],"target":[1],"variant":[1],"cachedGroupItems":[32],"cachedSlotContent":[32]},null,{"groupData":[{"onGroupDataChange":0}]}],[260,"xpl-divider",{"tier":[2]}],[260,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"value":[1],"required":[4],"selectedValue":[1,"selected-value"],"styled":[4],"id":[32]}]]],["p-9747cf43",[[260,"xpl-button",{"controlAttrs":[16],"disabled":[4],"form":[1],"fullWidth":[4,"full-width"],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"isLoading":[4,"is-loading"],"link":[4],"name":[1],"sentiment":[1],"size":[1],"state":[1],"type":[1],"value":[1],"variant":[1]},[[2,"click","handleDisabledClick"]]]]],["p-d3f2b8b8",[[260,"xpl-input",{"_id":[1],"description":[1],"disabled":[4],"error":[1],"label":[1],"name":[1],"required":[4],"readonly":[4],"value":[1],"autocomplete":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"step":[2],"multiline":[4],"maxCharacterCount":[2,"max-character-count"],"dateFormat":[1,"date-format"],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"mode":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"hideEyeDropper":[4,"hide-eye-dropper"],"defaultCountry":[1,"default-country"],"preferredCountries":[16],"isInternational":[4,"is-international"],"ariaLabel":[1,"aria-label"],"shape":[1],"type":[1],"characterCount":[32],"passwordVisible":[32],"hasPreSlotContent":[32],"setFocus":[64]}],[0,"xpl-input-date",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"dateFormat":[1,"date-format"],"mode":[1],"flatpickrStaticLayout":[32],"hasErrorState":[32]},null,{"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChanged":0}]}],[260,"xpl-input-file",{"disabled":[4],"name":[1],"_id":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"files":[32],"removeFileByIndex":[64]},null,{"files":[{"onFilesChange":0}]}],[0,"xpl-input-search",{"ariaLabel":[1,"aria-label"],"autocomplete":[1],"disabled":[4],"errorMessageId":[1,"error-message-id"],"hasError":[4,"has-error"],"hasVisibleLabel":[4,"has-visible-label"],"inputId":[1,"input-id"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"value":[1025],"hasAncestorForm":[32],"setFocus":[64]}]]]]'),e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as s,h as a,H as i}from"./p-ukZKsqqq.js";import{v as t}from"./p-CK3_k8jD.js";const d=class{constructor(a){e(this,a),this.checkboxChange=s(this,"checkboxChange",7),this.id=t(),this.ariaLabel="",this.onChange=e=>{this.checkboxChange.emit(e.target.checked)}}render(){return a(i,{key:"fba24f4540febb1d52a143ae8249978820731422",class:{"xpl-checkbox-radio-container":!0,styled:!!this.styled,disabled:!!this.disabled}},a("input",{key:"1663fd03d0f76952ddbe1a8ce87ea7c76c31631c",class:"xpl-checkbox",type:"checkbox","aria-label":(this.ariaLabel??"").trim()||void 0,checked:this.checked,"data-id":this.dataId,disabled:this.disabled,id:this.id,indeterminate:this.indeterminate,onChange:this.onChange,name:this.name,required:this.required,value:this.value}),a("label",{key:"84548eea585da460e834d1e34b24e0b3724a38ea",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},a("slot",{key:"f9451918bee8abc6dea4fd65acef75bb13b69e4d"}),this.description&&a("small",{key:"02db357e5080d87595bdfd5baac1be2a2bb771d7",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)))}};export{d as xpl_checkbox}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as c,H as i}from"./p-ukZKsqqq.js";const e=class{constructor(c){t(this,c),this.clickPrimary=s(this,"clickPrimary",7),this.clickSecondary=s(this,"clickSecondary",7),this.clickTertiary=s(this,"clickTertiary",7),this.onPrimary=()=>this.clickPrimary.emit(),this.onSecondary=()=>this.clickSecondary.emit(),this.onTertiary=()=>this.clickTertiary.emit()}render(){return c(i,{key:"060eb37a03ab854c56b383cf2ed598915f8b4c6f",class:"xpl-button-row"},c("div",{key:"169e722e0ccb0045680001755943aa1087c70a79",class:"xpl-button-row-inner"},c("div",{key:"8a49375971621161e3c1ad692ef9257b1c4bac43",class:"xpl-button-row__left"},this.secondary&&c("xpl-button",{key:"3cc16072ce7e9b4731b50fbaf647659b842763ad",variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary)),c("div",{key:"e1d248e9b65f241f5eee07d2808ee3cb67b6c867",class:"xpl-button-row__right"},this.tertiary&&c("xpl-button",{key:"827f7c01fb4617bb10acfc79b20a515718c6d539",variant:"subtle",type:"button",onClick:this.onTertiary},this.tertiary),this.secondary&&c("xpl-button",{key:"726167a62d0b3dc6f19b6e38abaa446cb474a07c",variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary),this.primary&&c("xpl-button",{key:"2d7d7fe4e965ce093d969936ff96d224762499e1",class:"xpl-button-row__primary",onClick:this.onPrimary},this.primary))))}};export{e as xpl_button_row}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as c,H as o,g as a}from"./p-ukZKsqqq.js";const t=class{constructor(c){e(this,c),this.initialExpanded=!1,this.size="3",this.borderType="none",this.expanded=this.initialExpanded,this.toggleAccordion=e=>{e.stopPropagation(),this.expanded=!this.expanded}}watchInitialExpanded(){this.expanded=this.initialExpanded}async parentCheckboxChange(e){return this.el.querySelectorAll(".xpl-accordion-content .xpl-checkbox:not([disabled])").forEach((c=>{c.checked=e})),null}handleChildCheckboxChange(){const e=this.el.querySelectorAll(".xpl-accordion-content .xpl-checkbox:not([disabled])"),c=Array.from(e).filter((e=>e.checked)).length,o=this.el.querySelector(".xpl-accordion-header xpl-checkbox")||this.el.querySelector(".xpl-accordion-header input");if(o)switch(c){case 0:o.checked=!1,o.indeterminate=!1;break;case e.length:o.checked=!0,o.indeterminate=!1;break;default:o.checked=!1,o.indeterminate=!0}}listenToChangeEvent(){this.handleChildCheckboxChange()}render(){return c(o,{key:"4858640c2723a41baa28d11ac997078bd114e7d0",class:`xpl-accordion ${{"":"",none:"",bordered:"xpl-accordion--border-bordered"+(this.expanded?"--expanded":""),bottom:"xpl-accordion--border-bottom"+(this.expanded?"--expanded":"")}[this.borderType]}`},c("button",{key:"39a36d5436dfb022fea1237688689fece8a6959e","aria-expanded":this.expanded,"aria-controls":this.contentId,class:"xpl-accordion-toggle-area",onClick:this.toggleAccordion,type:"button"},c("header",{key:"e8d98c3a0ab82986c5799a2855c4cdd979623021",class:`xpl-accordion-header xpl-accordion-header--size-${this.size}`},c("slot",{key:"67d8c71ca1f9d5a2ffefa31933b2cfe6c6485633",name:"heading"},this.header),c("xpl-icon",{key:"24d60d980af954ceda5511d634d0511f303f98d7",size:16,icon:"chevron-down",class:"xpl-accordion-icon-chevron "+(this.expanded?"xpl-accordion-icon-chevron--rotate":"")})),c("div",{key:"f8365a7b53724a3ed006d3957f52a61d5ca0d03f",class:"xpl-accordion-description"},c("slot",{key:"b3c0414e246d32ccc0925e36ba16a70edb529c42",name:"description"},this.description))),c("section",{key:"40f5b9a980e73eb39f3db4d6d1bb4c11f9975790",id:this.contentId,role:"region",class:`xpl-accordion-content xpl-accordion-content--${this.expanded?"shown":"hidden"} ${this.expanded?{"":"",none:"",bordered:"xpl-accordion-content--shown-bordered",bottom:"xpl-accordion-content--shown-border-bottom"}[this.borderType]:""}`},c("slot",{key:"87f1bb742663bff5284417a075768ee616dc8ade",name:"content"})))}get el(){return a(this)}static get watchers(){return{initialExpanded:[{watchInitialExpanded:0}]}}};export{t as xpl_accordion}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as e,h as c,H as d}from"./p-ukZKsqqq.js";const f=class{constructor(c){a(this,c),this.navWidth=e(this,"navWidth",7),this.width="default"}navWidthHandler(){this.navWidth.emit(this.width)}connectedCallback(){this.navWidthHandler()}componentDidUpdate(){this.navWidthHandler()}render(){return c(d,{key:"a2bd0e9fc9de814e5522b315dbb6da2672c6da72",class:`xpl-main-nav xpl-main-nav--${this.width}`,"aria-label":"Sidebar"},c("nav",{key:"f6c75ca9ef37747054994457c2bf2b1d44941479"},c("header",{key:"a338af682f79147b22fcb7e72a86fcaab867e19f","aria-label":"Sidebar Header"},c("slot",{key:"7208e18c6bc8202ef709ee9a2c07369aeb3f7a8f",name:"logo"}),c("slot",{key:"189761d3d465c4a8ddbdc8dca05ff81b2f2dc2a4",name:"brand-name"})),c("div",{key:"0c981cfaf3267a82319864185d55b4ffad06d114",class:"xpl-main-nav__main_section"},c("slot",{key:"1301a128dfb5399867527d2afbf350c1e2e92b26",name:"navigation"})),c("footer",{key:"b3010ec6e8773fad12d60abffcb4226dc5ae091b",class:"xpl-main-nav__footer","aria-label":"Sidebar Footer"},c("slot",{key:"a662e627533ec313acc169a1c01093cf8f450c8a",name:"footer"}))))}};export{f as xpl_main_nav}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as t,h as e,H as s}from"./p-ukZKsqqq.js";const a=class{constructor(e){i(this,e),this.action=t(this,"action",7),this.dismiss=t(this,"dismiss",7),this.secondaryAction=t(this,"secondaryAction",7),this.appearance="information",this.hasIcon=!0,this.isDismissible=!0,this.isSection=!1,this.truncateDesc=!1}getIcon(){switch(this.appearance){case"positive":return"circle-check";case"warning":return"triangle-warning";case"error":return"octagon-warning";default:return"circle-info"}}getActionButtonState(){return this.isSection&&"positive"===this.appearance?"success":"error"===this.appearance?"warning":void 0}getActionButtonVariant(){return this.isSection?"subtle":"error"===this.appearance?"primary":"subtle"}getAriaLabel(){return this.isSection?this.heading?.trim()||"Section banner":{information:"Information banner",positive:"Positive banner",warning:"Warning banner",error:"Error banner"}[this.appearance]}render(){const i=!!this.actionText?.trim(),t=!!this.secondaryActionText?.trim(),a=this.getActionButtonVariant(),n=this.getActionButtonState(),r=!!this.heading?.trim(),c=!!this.description?.trim();return e(s,{key:"476c72c3dad23d9d62a8d68a826fb75a93fc88ee",class:{"xpl-banner":!0,"xpl-banner--section":this.isSection,[`xpl-banner--${this.appearance}`]:!0,"xpl-banner--truncate-desc":this.truncateDesc,"xpl-banner--no-icon":this.isSection&&!this.hasIcon},role:"region","aria-label":this.getAriaLabel()},(!this.isSection||this.hasIcon)&&e("div",{key:"b81395caa66c8c56a54535a5ace6fd3a027b0075",class:"xpl-banner__icon","aria-hidden":"true"},e("xpl-icon",{key:"e8dd31a592ba17dd1825630a4f1ba9bc7323891a",icon:this.getIcon(),size:24})),e("div",{key:"034eab05c801635fdbfb7ea549c4472407f3f09f",class:"xpl-banner__body"},r&&e("p",{key:"c9216bd4c11c1d3bda0e1654282d9a713e955968",class:"xpl-banner__heading"},this.heading),c&&e("p",{key:"e67d92d7b71b678b19627741a01d2e4b26ef7093",class:"xpl-banner__description",title:this.truncateDesc?this.description:void 0},this.description)),(i||t)&&e("div",{key:"dd4d7bcae4bde9d16124b27993d7d1b2e96e086e",class:"xpl-banner__actions"},i&&e("xpl-button",{key:"51df92818c4194c76c609776f85aa31c7bffb34b",size:"xs",variant:a,state:n,onClick:()=>this.action.emit()},this.actionText),t&&e("xpl-button",{key:"7f911d3a81190cde339f69a2d93eb0c2518c9036",size:"xs",variant:a,state:n,onClick:()=>this.secondaryAction.emit()},this.secondaryActionText)),this.isDismissible&&e("button",{key:"b9d1b8d15f0adac5b7eaa5c3e287c4b0fe7b987e",class:"xpl-banner__dismiss",type:"button","aria-label":`Dismiss ${this.isSection?"section ":""}banner`,onClick:()=>this.dismiss.emit()},e("xpl-icon",{key:"528fd238ccfb1e52c7fe5c0d093f30a4fa4603bd",icon:"xmark",size:24,"aria-hidden":"true"})))}};export{a as xpl_banner}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as r}from"./p-ukZKsqqq.js";import{i as s}from"./p-Dqb1pIRo.js";const i=(t,e,a)=>{const r=(a/=100)*(e/=100),s=r*(1-Math.abs(t/60%2-1)),i=a-r;let o=0,n=0,h=0;return t<60?(o=r,n=s,h=0):t<120?(o=s,n=r,h=0):t<180?(o=0,n=r,h=s):t<240?(o=0,n=s,h=r):t<300?(o=s,n=0,h=r):(o=r,n=0,h=s),{r:Math.round(255*(o+i)),g:Math.round(255*(n+i)),b:Math.round(255*(h+i))}},o=(t,e,a)=>[t,e,a].map((t=>t.toString(16).padStart(2,"0"))).join(""),n=t=>{if(t.startsWith("#")){if(!/^#([a-fA-F\d]{6})$/.test(t))throw new Error("Only 6-digit hex format supported (e.g. #aabbcc)");const e=t.toLowerCase().slice(1),a=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16);return{hex:e,r:a,g:r,b:s,a:1}}if(t.startsWith("rgba")||t.startsWith("rgb")){const e=t.match(/[\d.]+/g)?.map(Number);if(!e||e.length<3)throw new Error("Invalid rgba/rgb format");const[a,r,s,i=1]=e,o=t=>t.toString(16).padStart(2,"0");return{hex:`${o(a)}${o(r)}${o(s)}`.toLowerCase(),r:a,g:r,b:s,a:i}}if(t.startsWith("hsla")||t.startsWith("hsl")){const e=t.match(/[\d.]+/g)?.map(Number);if(!e||e.length<3)throw new Error("Invalid hsla/hsl format");const[a,r,s,i=1]=e,n=((t,e,a,r)=>{a/=100;const s=e=>(e+t/30)%12,i=(e/=100)*Math.min(a,1-a),o=t=>a-i*Math.max(-1,Math.min(s(t)-3,Math.min(9-s(t),1)));return`rgba(${Math.round(255*o(0))}, ${Math.round(255*o(8))}, ${Math.round(255*o(4))}, ${r})`})(a,r,s,i),h=n.match(/[\d.]+/g)?.map(Number);if(!h||h.length<3)throw new Error("Invalid hsla/hsl format");const[c,l,d]=h;return{hex:o(c,l,d).toLowerCase(),r:c,g:l,b:d,a:i}}throw new Error("Unsupported color format")},h=t=>t.a&&1!==t.a?`rgba(${t.r}, ${t.g}, ${t.b}, ${t.a})`:`#${t.hex}`,c={hex:"",r:0,g:0,b:0,a:1},l=class{constructor(a){t(this,a),this.inputChange=e(this,"inputChange",7),this.hasErrorStateChanged=e(this,"hasErrorStateChanged",7),this.placeholder="Select color",this.eyeDropperSupported=!1,this.colorInputElements={},this.handleMove=t=>{const{slGrid:e}=this.colorInputElements;if(!e)return;const a=e.getBoundingClientRect(),r="touches"in t?t.touches[0].clientY:t.clientY,s=Math.max(0,Math.min(("touches"in t?t.touches[0].clientX:t.clientX)-a.left,a.width)),n=Math.max(0,Math.min(r-a.top,a.height)),h=s/a.width,c=n/a.height,l=i(this.hue,100,100),d=(255*(1-h)+h*l.r)*(1-c),p=(255*(1-h)+h*l.g)*(1-c),u=(255*(1-h)+h*l.b)*(1-c),b={r:Math.round(d),g:Math.round(p),b:Math.round(u),hex:o(Math.round(d),Math.round(p),Math.round(u)),a:this.colorValues.a};this.colorValues=b},this.startDrag=t=>{t.preventDefault(),this.handleMove(t),window.addEventListener("mousemove",this.handleMove),window.addEventListener("mouseup",this.stopDrag),window.addEventListener("touchmove",this.handleMove),window.addEventListener("touchend",this.stopDrag)},this.stopDrag=()=>{window.removeEventListener("mousemove",this.handleMove),window.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("touchmove",this.handleMove),window.removeEventListener("touchend",this.stopDrag)},this.onHexInputChange=t=>{const e=t.detail?t.detail.trim().replace(/#/g,""):"";if(e){const[t,a,r]=(t=>{const e=t?.match(/\w\w/g);return e?e.map((t=>parseInt(t,16))):[0,0,0]})(e);this.colorValues={hex:e,r:t,g:a,b:r,a:this.colorValues.a??1}}else this.colorValues={...c}},this.onRgbaInputChange=(t,e)=>{const a=parseFloat(e.detail);if(Number.isNaN(a))return void(this.hasErrorState=`invalid value from ${t.name}: ${a}`);const r={...this.colorValues};switch(t.name){case"color-r-input":r.r=a;break;case"color-g-input":r.g=a;break;case"color-b-input":r.b=a;break;case"color-a-input":r.a=a;break;default:this.hasErrorState=`unhandled input: ${t.name}`}r.hex=o(r.r,r.g,r.b),this.colorValues=r},this.onSliderInputChange=t=>{const e=parseFloat(t.value);if(Number.isNaN(e))this.hasErrorState=`invalid value from ${t.name}: ${e}`;else switch(t.name){case"color-hue-slider":this.colorValues=n(`hsla(${e}, 100%, 50%, 1)`),this.hue=e;break;case"color-alpha-slider":this.colorValues={...this.colorValues,a:e};break;default:this.hasErrorState=`unhandled input: ${t.name}`}}}valueChanged(t){this.hasErrorState=this.required&&!t.hex?"required":null,this.inputChange.emit(t.hex?h(t):"")}onHasErrorStateChanged(t){this.hasErrorStateChanged.emit(t)}onValuePropChange(t){this.syncColorFromValue(t)}syncColorFromValue(t){if(t)try{this.colorValues=n(t),this.hue=(()=>{const t=this.colorValues.r/255,e=this.colorValues.g/255,a=this.colorValues.b/255,r=Math.max(t,e,a),s=Math.min(t,e,a),i=r-s;let o=0,n=0;const h=(r+s)/2;if(0!==i){switch(n=i/(1-Math.abs(2*h-1)),r){case t:o=(e-a)/i%6;break;case e:o=(a-t)/i+2;break;case a:o=(t-e)/i+4}o*=60,o<0&&(o+=360)}return{hue:Math.round(o),saturation:Math.round(100*n),lightness:Math.round(100*h)}})().hue}catch{this.hasErrorState="invalid color format",this.hue=0}else this.colorValues={...c},this.hasErrorState=null,this.hue=0}componentWillLoad(){this.syncColorFromValue(this.value)}componentDidLoad(){s()&&(this.eyeDropperSupported="EyeDropper"in window);const{r:t,g:e,b:a,a:r,hue:i,alpha:o,hex:n}=this.colorInputElements;n?.addEventListener("valueChange",(t=>{this.onHexInputChange(t),t.stopPropagation()})),[t,e,a,r].forEach((t=>{t?.addEventListener("valueChange",(e=>{this.onRgbaInputChange(t,e),e.stopPropagation()}))})),[i,o].forEach((t=>{t?.addEventListener("input",(()=>{this.onSliderInputChange(t)}))}))}async openEyeDropper(){try{const t=window.EyeDropper;if(!t)throw new Error("EyeDropper API is not available");const e=new t,a=await e.open();this.colorValues=n(a.sRGBHex)}catch(t){this.hasErrorState=`eyedropper cancelled or failed: ${t}`}}render(){const{r:t,g:e,b:s,a:o}=this.colorValues,n=i(this.hue,100,100),{x:c,y:l}=((t,e,a,r)=>{const{s,v:i}=((t,e,a,r)=>{t/=255,e/=255,a/=255;const s=Math.max(t,e,a),i=s-Math.min(t,e,a);let o=0;return o=0===i?0:s===t?(e-a)/i%6:s===e?(a-t)/i+2:(t-e)/i+4,o=Math.round(60*o),o<0&&(o+=360),{h:r??o,s:0===s?0:i/s,v:s}})(e.r,e.g,e.b,t);return{x:Math.round(s*a),y:Math.round((1-i)*r)}})(this.hue,{r:t,g:e,b:s},288,160),d={left:`${c}px`,top:`${l}px`,background:`rgb(${t}, ${e}, ${s})`};return a(r,{key:"02aa7baed3d45ad3a2e995f588c0915e3e348bfc",class:"xpl-input-color"},a("xpl-popover",{key:"4739858b3b027f3d436c8fe84d62aa917d06ec5e",disabled:this.disabled,display:"menu"},a("div",{key:"470b4bd07706693748829a25fc8499965581d48b",slot:"trigger"},a("div",{key:"03a100cb1041eaa939c9db7c0574ac53bc639ef7",class:{"xpl-input-color__display":!0,"xpl-input-color__display--disabled":!!this.disabled,"xpl-input-color__display--error":!!this.hasErrorState}},a("span",{key:"61594874f76b2f6da3befd6b7b6ff0136992c5d7",class:"xpl-input-color__color",style:{background:h(this.colorValues)}}),this.colorValues.hex?a("span",{class:"xpl-input-color__value"},h(this.colorValues)):a("span",{class:"xpl-input-color__placeholder"},this.placeholder),this.eyeDropperSupported&&!this.hideEyeDropper&&a("xpl-icon",{key:"e6997616cc18e0cec266b6029cfbee068744967c",size:20,icon:"eye-dropper",class:"xpl-input-color__icon",onClick:t=>{t.stopPropagation(),this.openEyeDropper()}}))),a("div",{key:"7253fbb77364e884b4eca04c705fda8875f16250",class:"xpl-input-color__menu"},a("div",{key:"75a2f6545771354c1d5a6b01ada16a090ceb47e7",class:"xpl-input-color__sl-grid",ref:t=>{this.colorInputElements.slGrid=t??void 0},style:{background:["linear-gradient(to top, #000, #0000)","linear-gradient(to right, #fff, #fff0)",`rgb(${n.r} ${n.g} ${n.b})`].join(", ")},onMouseDown:this.startDrag,onTouchStart:this.startDrag},a("div",{key:"363f0f591d7a9214e808e3374449492d1bb35096",class:"xpl-input-color__sl-thumb",style:d})),a("div",{key:"6c227329fac4c27e60e05fc4635adc9e11149289",class:"xpl-input-color__grid"},a("input",{key:"ae66886dcd2384b01146238ca90144b2aaa7d315",type:"range",min:"0",max:"360",value:this.hue,class:"xpl-input-color__slider xpl-input-color__hue",name:"color-hue-slider",ref:t=>{this.colorInputElements.hue=t??void 0}}),a("input",{key:"fae631f4530dcabcef0e4ba748d7104d7539a573",type:"range",min:"0",max:"1",step:"0.01",value:o,class:"xpl-input-color__slider xpl-input-color__alpha",name:"color-alpha-slider",ref:t=>{this.colorInputElements.alpha=t??void 0},style:{backgroundImage:[`linear-gradient(to right, rgb(${t} ${e} ${s} / 0) 0%, rgb(${t} ${e} ${s} / 1) 100%)`,"linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", ")}}),a("div",{key:"01dcd22dc144e4b8a8288b7e4cde2fc781c4f8f0",class:"xpl-input-color__preview",style:{background:`rgba(${t}, ${e}, ${s}, ${o})`}})),a("div",{key:"64e69fd55e9f7030ca1ee354e4c322d837d41993",class:"xpl-input-color__inputs"},["hex","r","g","b","a"].map((t=>a("xpl-input",{key:t,label:t.toLocaleUpperCase(),name:`color-${t}-input`,placeholder:"hex"===t?"793EF7":"0",value:String(this.colorValues[t]),ref:e=>{this.colorInputElements[t]=e??void 0}})))))))}static get watchers(){return{colorValues:[{valueChanged:0}],hasErrorState:[{onHasErrorStateChanged:0}],value:[{onValuePropChange:0}]}}};export{l as xpl_input_color}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as n}from"./p-ukZKsqqq.js";import{h as o}from"./p-DkqlawVY.js";import{i as a}from"./p-Dqb1pIRo.js";const h=[".xpl-top-nav__brand-logo-slot",".xpl-top-nav__brand-bar"],l=".xpl-top-nav__user-menu-panel",r=[l,".xpl-top-nav__user-menu-stash"],p=[".xpl-top-nav__user-popover",".xpl-top-nav__user-menu-stash",".xpl-top-nav__right-user"],c=[l],d=class{constructor(i){t(this,i),this.brandClick=s(this,"brandClick",7),this.navOpen=s(this,"navOpen",7),this.slotProjectionDirty=!1,this.userPopoverDrawerSyncHost=null,this.brandLogoSlotPresent=!1,this.open=!1,this.slotProjectionNonce=0,this.userMenuSlotPresent=!1,this.userMenuTriggerSlotPresent=!1,this.focusNavControlAfterClose=()=>{void 0!==this.navControlFocusTimeoutId&&clearTimeout(this.navControlFocusTimeoutId),this.navControlFocusTimeoutId=setTimeout((()=>{this.navControlFocusTimeoutId=void 0,this.el.querySelector(".xpl-top-nav__nav-control")?.focus()}),0)},this.handleUserPopoverIsOpenChange=t=>{const{detail:s}=t;!0===s&&this.closeMobileDrawerWhenAccountMenuOpens()},this.onBrandNavItemClick=t=>{null==this.brandHref&&this.brandClick.emit(t.detail)},this.onDocKeyDownEscape=t=>{this.navControl&&this.open&&"Escape"===t.key&&(this.anyDescendantPopoverIsOpen()||this.el.querySelector("xpl-top-nav-item.xpl-top-nav-item--dropdown-open")||(t.preventDefault(),t.stopPropagation(),this.open=!1,this.navOpen.emit(!1),this.focusNavControlAfterClose()))},this.onDocClickOutsideDismiss=t=>{if(!this.navControl||!this.open)return;const s=t.target;null==s||this.anyDescendantPopoverIsOpen()||this.el.querySelector(".xpl-top-nav__left-primary")?.contains(s)||this.el.querySelector(".xpl-top-nav__nav-control")?.contains(s)||(this.open=!1,this.resetMobileCascade(),this.navOpen.emit(!1))},this.onNavToggle=()=>{const t=this.open;this.open=!this.open,this.navOpen.emit(this.open),t&&!this.open&&(this.resetMobileCascade(),this.focusNavControlAfterClose())},this.onUserPopoverInnerOpenClassChange=()=>{const t=this.userPopoverDrawerSyncHost;if(!t)return;const s=t.querySelector(".xpl-popover");s?.classList.contains("xpl-popover--is-open")&&this.closeMobileDrawerWhenAccountMenuOpens()},this.syncBrandLogoSlot=()=>{const t=o(this.el,"brand-logo",{hostTag:"xpl-top-nav",projectionRegionSelectors:h});t!==this.brandLogoSlotPresent&&(this.brandLogoSlotPresent=t)},this.syncUserMenuSlots=()=>{const t=o(this.el,"user-menu",{hostTag:"xpl-top-nav",projectionRegionSelectors:r}),s=o(this.el,"user-menu-trigger",{hostTag:"xpl-top-nav",projectionRegionSelectors:p,excludedRegionSelectors:c});t!==this.userMenuSlotPresent&&(this.userMenuSlotPresent=t),s!==this.userMenuTriggerSlotPresent&&(this.userMenuTriggerSlotPresent=s)}}onNavControlChanged(){this.syncOpenFromNavControl(),this.syncDocDismissListeners()}connectedCallback(){this.syncOpenFromNavControl(),this.syncDocDismissListeners(),this.syncBrandLogoSlot(),this.syncUserMenuSlots(),this.connectSlotContentObserver(),this.flushPendingSlotProjection()}disconnectedCallback(){void 0!==this.navControlFocusTimeoutId&&(clearTimeout(this.navControlFocusTimeoutId),this.navControlFocusTimeoutId=void 0),void 0!==this.deferredSlotContentObserverSyncTimeoutId&&(clearTimeout(this.deferredSlotContentObserverSyncTimeoutId),this.deferredSlotContentObserverSyncTimeoutId=void 0),this.removeDocDismissListeners(),this.disconnectSlotContentObserver(),this.disconnectUserPopoverDrawerSync()}componentWillLoad(){this.syncOpenFromNavControl(),this.syncBrandLogoSlot(),this.syncUserMenuSlots()}componentWillRender(){this.disconnectSlotContentObserver()}componentDidRender(){this.connectSlotContentObserver(),this.connectUserPopoverDrawerSync()}get childAccountLabelText(){return this.childAccountLabel?.trim()??""}get hasBrand(){const t=this.brandName?.trim()??"",s=this.brandLogo?.trim()??"";return t.length>0||s.length>0||this.brandLogoSlotPresent}get hasUserMenu(){return this.userMenuSlotPresent}get needsUserMenuSlotStash(){return!this.userMenuSlotPresent&&this.userMenuTriggerSlotPresent}get usesBuiltInChildAccountTrigger(){return this.hasUserMenu&&!this.userMenuTriggerSlotPresent}anyDescendantPopoverIsOpen(){const t=this.el.querySelectorAll("xpl-popover");for(let s=0;s<t.length;s+=1){const i=t[s].querySelector(".xpl-popover");if(i?.classList.contains("xpl-popover--is-open"))return!0}return!1}closeMobileDrawerWhenAccountMenuOpens(){this.navControl&&this.open&&(this.open=!1,this.navOpen.emit(!1))}connectSlotContentObserver(){this.disconnectSlotContentObserver(),"undefined"!=typeof MutationObserver&&(this.slotContentObserver=new MutationObserver((t=>{this.scheduleSlotContentSyncFromObserver(t)})),this.slotContentObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}connectUserPopoverDrawerSync(){const t=this.hasUserMenu?this.el.querySelector("xpl-popover.xpl-top-nav__user-popover"):null;if(t===this.userPopoverDrawerSyncHost)return;if(this.disconnectUserPopoverDrawerSync(),!t)return;this.userPopoverDrawerSyncHost=t,t.addEventListener("isOpenChange",this.handleUserPopoverIsOpenChange);const s=t.querySelector(".xpl-popover");s&&"undefined"!=typeof MutationObserver&&(this.userPopoverDrawerOpenObserver=new MutationObserver((()=>{this.onUserPopoverInnerOpenClassChange()})),this.userPopoverDrawerOpenObserver.observe(s,{attributes:!0,attributeFilter:["class"]}),this.onUserPopoverInnerOpenClassChange())}disconnectSlotContentObserver(){this.slotContentObserver?.disconnect(),this.slotContentObserver=void 0}disconnectUserPopoverDrawerSync(){this.userPopoverDrawerSyncHost&&(this.userPopoverDrawerSyncHost.removeEventListener("isOpenChange",this.handleUserPopoverIsOpenChange),this.userPopoverDrawerSyncHost=null),this.userPopoverDrawerOpenObserver?.disconnect(),this.userPopoverDrawerOpenObserver=void 0}removeDocDismissListeners(){const t=this.el.ownerDocument;t.removeEventListener("keydown",this.onDocKeyDownEscape,!1),t.removeEventListener("click",this.onDocClickOutsideDismiss,!0)}resetMobileCascade(){const t=this.el.querySelector(".xpl-top-nav__left-primary > xpl-top-nav-item.xpl-top-nav-item--dropdown-open");t?.closeMenu().catch((()=>{}))}scheduleSlotContentSyncFromObserver(t){this.mutationsAffectHostSlotting(t)&&(this.slotProjectionDirty=!0),void 0!==this.deferredSlotContentObserverSyncTimeoutId&&clearTimeout(this.deferredSlotContentObserverSyncTimeoutId),this.deferredSlotContentObserverSyncTimeoutId=setTimeout((()=>{this.deferredSlotContentObserverSyncTimeoutId=void 0,this.el.isConnected&&(this.syncBrandLogoSlot(),this.syncUserMenuSlots(),this.flushPendingSlotProjection())}),0)}flushPendingSlotProjection(){this.slotProjectionDirty&&(this.slotProjectionDirty=!1,this.slotProjectionNonce+=1)}mutationsAffectHostSlotting(t){return t.some((t=>"attributes"===t.type||"childList"===t.type&&t.target===this.el))}syncDocDismissListeners(){if(this.removeDocDismissListeners(),a()&&this.navControl){const t=this.el.ownerDocument;t.addEventListener("keydown",this.onDocKeyDownEscape,!1),t.addEventListener("click",this.onDocClickOutsideDismiss,!0)}}syncOpenFromNavControl(){const t=this.open;this.open=!1,t&&!this.navControl&&(this.resetMobileCascade(),this.navOpen.emit(!1))}render(){return i(e,{key:"8f9f8e171b2b04706360048965e8e8a40f3f7013",class:{"xpl-top-nav":!0,"xpl-top-nav--nav-control":Boolean(this.navControl),"xpl-top-nav--open":this.open,"xpl-top-nav--has-child-account-label":this.childAccountLabelText.length>0,"xpl-top-nav--has-brand":this.hasBrand,"xpl-top-nav--has-user-menu":this.hasUserMenu,dark:!0}},i("nav",{key:"2c05b69b2918753c4f928e53d92c6ca737a92b59","aria-label":this.label??"top-navigation-bar",class:"xpl-top-nav__bar"},i("div",{key:"1dd5722748946d0adfad6cc40da03c21012d65b2",class:"xpl-top-nav__inner-left"},this.navControl&&i("button",{key:"810e68f589ec13b942a78c877fea816407c05287",type:"button",class:"xpl-top-nav__nav-control","aria-expanded":this.open?"true":"false","aria-label":this.open?"Close navigation menu":"Open navigation menu",onClick:this.onNavToggle},i("xpl-icon",{key:"550653cbd1d61c7b80a31ab48dce59936a107128",class:"xpl-top-nav__control-icon",icon:"menu",size:32})),this.hasBrand&&i("div",{key:"6509a9a42b693b925204a9a42a34c0071d73f485",class:"xpl-top-nav__brand-bar"},i("xpl-top-nav-item",{key:"623cfb95bd0a6581a057ddf37aa3920ee58b5734",class:"xpl-top-nav__brand",href:this.brandHref,onNavItemClick:this.onBrandNavItemClick},this.brandLogo?.trim()?i("img",{class:"xpl-top-nav__brand-logo",src:this.brandLogo,alt:this.brandName?.trim()?this.brandName.trim():"Brand"}):this.brandLogoSlotPresent?i("span",{class:"xpl-top-nav__brand-logo-slot"},i("slot",{name:"brand-logo"})):null,this.brandName?.trim()?i("span",{class:"xpl-top-nav__brand-name"},this.brandName.trim()):null)),i("div",{key:"61d8a6d485380c39ffa74cd8cfbea37df32060dd",class:{"xpl-top-nav__aside":!0,"xpl-nav-left":!0}},i("div",{key:"3aab27091f543a9c6a813043883c218791cfaa4a",class:"xpl-top-nav__left-primary",role:"list"},i("slot",{key:"93ff48c9bb3e0fa00b23a707da84d222ad74224d",name:"left-aside"})))),i("div",{key:"d92afdae9ac68d49a370fb41b39aeef2b956af1f",class:{"xpl-top-nav__aside":!0,"xpl-nav-right":!0}},i("div",{key:"36fadad47ed2862f88c1f42e1b95530d2e06b046",class:"xpl-nav-right__list"},i("div",{key:"5b35413cbfcc5fd9af1e491f1a1f14d41ae35c0d",class:"xpl-top-nav__right-rail"},i("div",{key:"37d00bfe95cdf35345ed9ec273a159255efc31a2",class:"xpl-top-nav__right-lead"},i("slot",{key:"b64f92c5886ef929b51fde06d48ea1fbf3660d44",name:"right-aside"})),this.hasUserMenu?i("div",{class:"xpl-top-nav__right-user"},i("xpl-popover",{class:"xpl-top-nav__user-popover dark",position:"bottom-end",display:"menu"},this.userMenuTriggerSlotPresent?i("slot",{name:"user-menu-trigger",slot:"trigger"}):this.usesBuiltInChildAccountTrigger?i("xpl-button",{slot:"trigger",class:"xpl-top-nav__child-account-trigger",type:"button",variant:"tertiary",icon:"chevron-down",iconPosition:"end",iconOnly:0===this.childAccountLabelText.length,"aria-haspopup":"dialog","aria-label":this.childAccountLabelText.length>0?void 0:"Open account menu"},this.childAccountLabelText.length>0?this.childAccountLabelText:null):null,i("div",{class:"xpl-top-nav__user-menu-panel"},i("slot",{name:"user-menu"})))):null,this.needsUserMenuSlotStash?i("div",{class:"xpl-top-nav__user-menu-stash",hidden:!0,"aria-hidden":"true"},i("slot",{name:"user-menu-trigger"}),i("slot",{name:"user-menu"})):null)))))}get el(){return n(this)}static get watchers(){return{navControl:[{onNavControlChanged:0}]}}};export{d as xpl_top_nav}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as s,g as i,c as r}from"./p-ukZKsqqq.js";import{v as e}from"./p-CK3_k8jD.js";const l={active:"green",inactive:"gray",warning:"red"};function d(t){if(!t||!t.trim())return"";const a=t.trim().split(/\s+/).filter(Boolean);return 0===a.length?"":1===a.length?a[0].slice(0,3).toUpperCase():((a[0][0]??"")+(a.length>2?a[1][0]??"":"")+(a[a.length-1][0]??"")).slice(0,3).toUpperCase()}const h=class{constructor(a){t(this,a),this.cachedGroupItems=[],this.cachedSlotContent="",this.disabled=!1}onGroupDataChange(t){this.cachedGroupItems=h.parseGroupData(t)}componentWillLoad(){this.cachedSlotContent=this.el?.textContent?.trim().slice(0,3)??"",this.onGroupDataChange(this.groupData)}static parseGroupData(t){if(null==t)return[];if("string"==typeof t)try{const a=JSON.parse(t);return Array.isArray(a)?a:[]}catch{return[]}return Array.isArray(t)?t:[]}get groupItems(){return this.cachedGroupItems}get statusBadgeVariant(){const t=this.status;if(void 0!==t)return l[t]??t}getPlaceholderText(){return this.cachedSlotContent.length>0?this.cachedSlotContent:d(this.name)}static getSingleAvatarClasses(t,a,s,i){return{"xpl-avatar":!0,[`xpl-avatar--${t}`]:!!t,[`xpl-avatar--${a}`]:!!a,"xpl-avatar--profile":!!s,"xpl-avatar--disabled":!!i}}getAnchorProps(t){return{href:this.href,target:this.target,rel:"_blank"===this.target?"noopener noreferrer":void 0,"aria-label":this.name??"Profile",class:t}}static renderAvatarMedia(t,s,i,r,e=!0){return t?a("img",{alt:s??"",src:t}):a("div",{class:"xpl-avatar__placeholder",role:"img","aria-label":s??r},i||(e?a("slot",null):null))}renderAvatarMediaWithStatusBadge(t){const s=this.getPlaceholderText();return a("div",{...t?{class:t}:{}},h.renderAvatarMedia(this.src,this.name,s,"Profile",!0),this.statusBadgeVariant&&a("xpl-badge",{dotOnly:!0,bordered:!0,variant:this.statusBadgeVariant,"aria-hidden":"true"}))}renderGroupItem(t,s){const i=t.name?d(t.name):"";return a("div",{class:{"xpl-avatar-group__item":!0,"xpl-avatar":!0,[`xpl-avatar--${this.size}`]:!!this.size,[`xpl-avatar--${t.color}`]:!!t.color}},a("div",null,h.renderAvatarMedia(t.src,t.name,i,`Member ${s+1}`,!1)))}renderWithTextContent(){return a("div",{class:"xpl-avatar__with-text-content"},a("div",{class:"xpl-avatar__with-text-name"},this.name),this.subText&&a("div",{class:"xpl-avatar__with-text-sub"},this.subText))}render(){const t=this.variant;if("group"===t){const t=this.groupItems,i=t.slice(0,4),r=t.length-4,e=r>0,l=e?function(t){if(t<=0)return"";if(t<=999)return`+${t}`;const a=500*Math.round(t/500)/1e3;return"+"+(a%1==0?`${a}k`:`${a.toFixed(1)}k`)}(r):"";return a(s,null,a("div",{class:{"xpl-avatar-group":!0,[`xpl-avatar-group--${this.size}`]:!!this.size},role:"group","aria-label":`${t.length} members`},i.map(((t,s)=>a("div",{key:s,class:"xpl-avatar-group__wrap"},this.renderGroupItem(t,s)))),e&&a("div",{class:{"xpl-avatar-group__count":!0,[`xpl-avatar-group__count--${this.size}`]:!!this.size},"aria-label":`${r} more`},l)))}if("with-text"===t){const t=this.renderAvatarMediaWithStatusBadge("xpl-avatar__with-text-avatar"),i={"xpl-avatar":!0,"xpl-avatar--with-text":!0,[`xpl-avatar--${this.color}`]:!!this.color,"xpl-avatar--disabled":!!this.disabled};return a(s,null,this.href&&!this.disabled?a("a",{...this.getAnchorProps("xpl-avatar__with-text-link")},a("div",{class:i},t,this.renderWithTextContent())):a("div",{class:i,"aria-disabled":this.disabled?"true":void 0},t,this.renderWithTextContent()))}const i="profile"===t,r=h.getSingleAvatarClasses(i&&"md"===this.size?void 0:this.size,this.color,i,this.disabled),e=this.renderAvatarMediaWithStatusBadge();return a(s,null,this.href&&!this.disabled?a("a",{...this.getAnchorProps(r)},e):a("div",{class:r,"aria-disabled":this.disabled?"true":void 0},e))}get el(){return i(this)}static get watchers(){return{groupData:[{onGroupDataChange:0}]}}},n=class{constructor(a){t(this,a)}render(){let t="xpl-divider";return t+=` xpl-divider--${this.tier}`,a(s,{key:"61b81934fc56dabb47246db40cd83b9f1dde150a",class:t},a("span",{key:"b81ec769098b9b39fbd4e954e4931bcd580aa7dc"},a("slot",{key:"8410f6c17964a091e9d62ca4db9eda673ab02c46"})))}},o=class{constructor(a){t(this,a),this.radioChange=r(this,"radioChange",7),this.id=e(),this.onChange=t=>{this.radioChange.emit(this.value?this.value:t.target.checked)}}get isChecked(){return void 0!==this.selectedValue&&void 0!==this.value?this.selectedValue===this.value:Boolean(this.checked)}render(){return a(s,{key:"3b69e40977913d82102f8ddad0daaf04c1fdae91",class:{"xpl-checkbox-radio-container":!0,styled:!!this.styled,disabled:!!this.disabled}},a("input",{key:"480a7b9ed8a94630a9e1d31ae39dfa5ca4977869",class:"xpl-radio",type:"radio",checked:this.isChecked,disabled:this.disabled,id:this.id,name:this.name,required:this.required,onChange:this.onChange,value:this.value}),a("label",{key:"aa582808dda2a90ad877ac1267df68df3bce6f38",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},a("slot",{key:"a75c287415b7d989ba2bfd1a3c4ec122afe345e6"}),this.description&&a("small",{key:"774a273dafdf7e5e82ddd2a99c439cae7f6f9bd1",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)))}};export{h as xpl_avatar,n as xpl_divider,o as xpl_radio}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=["top","right","bottom","left"],n=Math.min,e=Math.max,o=Math.round,r=Math.floor,i=t=>({x:t,y:t}),l={left:"right",right:"left",bottom:"top",top:"bottom"};function c(t,n){return"function"==typeof t?t(n):t}function a(t){return t.split("-")[0]}function s(t){return t.split("-")[1]}function u(t){return"x"===t?"y":"x"}function f(t){return"y"===t?"height":"width"}function d(t){const n=t[0];return"t"===n||"b"===n?"y":"x"}function m(t){return u(d(t))}function y(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const h=["left","right"],p=["right","left"],w=["top","bottom"],g=["bottom","top"];function x(t){const n=a(t);return l[n]+t.slice(n.length)}function v(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function b(t,n,e){let{reference:o,floating:r}=t;const i=d(n),l=m(n),c=f(l),u=a(n),y="y"===i,h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,w=o[c]/2-r[c]/2;let g;switch(u){case"top":g={x:h,y:o.y-r.height};break;case"bottom":g={x:h,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-r.width,y:p};break;default:g={x:o.x,y:o.y}}const x=s(n);return x&&(g[l]+=w*("end"===x?1:-1)*(e&&y?-1:1)),g}async function A(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=c(n,t),h=function(t){return"number"!=typeof t?function(t){var n,e,o,r;return{top:null!=(n=t.top)?n:0,right:null!=(e=t.right)?e:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(r=t.left)?r:0}}(t):{top:t,right:t,bottom:t,left:t}}(y),p=a[m?"floating"===d?"reference":"floating":d],w=v(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(p)))||e?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:s})),g="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(x))&&await(null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},A=v(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:s}):g);return{top:(w.top-A.top+h.top)/b.y,bottom:(A.bottom-w.bottom+h.bottom)/b.y,left:(w.left-A.left+h.left)/b.x,right:(A.right-w.right+h.right)/b.x}}function S(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function R(n){return t.some((t=>n[t]>=0))}const F=new Set(["left","top"]);function C(){return"undefined"!=typeof window}function O(t){return T(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function z(t){var n;return null==(n=(T(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function T(t){return!!C()&&(t instanceof Node||t instanceof k(t).Node)}function M(t){return!!C()&&(t instanceof Element||t instanceof k(t).Element)}function P(t){return!!C()&&(t instanceof HTMLElement||t instanceof k(t).HTMLElement)}function D(t){return!(!C()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof k(t).ShadowRoot)}function H(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=W(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&"inline"!==r&&"contents"!==r}function L(t){return/^(table|td|th)$/.test(O(t))}function B(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const E=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,I=t=>!!t&&"none"!==t;let N;function V(t){const n=M(t)?W(t):t;return I(n.transform)||I(n.translate)||I(n.scale)||I(n.rotate)||I(n.perspective)||!j()&&(I(n.backdropFilter)||I(n.filter))||E.test(n.willChange||"")||$.test(n.contain||"")}function j(){return null==N&&(N="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),N}function q(t){return/^(html|body|#document)$/.test(O(t))}function W(t){return k(t).getComputedStyle(t)}function X(t){return M(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Y(t){if("html"===O(t))return t;const n=t.assignedSlot||t.parentNode||D(t)&&t.host||z(t);return D(n)?n.host:n}function _(t){const n=Y(t);return q(n)?(t.ownerDocument||t).body:P(n)&&H(n)?n:_(n)}function G(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=_(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),l=k(r);if(i){const t=J(l);return n.concat(l,l.visualViewport||[],H(r)?r:[],t&&e?G(t):[])}return n.concat(r,G(r,[],e))}function J(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function K(t){const n=W(t);let e=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=P(t),l=i?t.offsetWidth:e,c=i?t.offsetHeight:r,a=o(e)!==l||o(r)!==c;return a&&(e=l,r=c),{width:e,height:r,$:a}}function Q(t){return M(t)?t:t.contextElement}function U(t){const n=Q(t);if(!P(n))return i(1);const e=n.getBoundingClientRect(),{width:r,height:l,$:c}=K(n);let a=(c?o(e.width):e.width)/r,s=(c?o(e.height):e.height)/l;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Z=i(0);function tt(t){const n=k(t);return j()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Z}function nt(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),l=Q(t);let c=i(1);n&&(o?M(o)&&(c=U(o)):c=U(t));const a=function(t,n,e){return void 0===n&&(n=!1),!!e&&n&&e===k(t)}(l,e,o)?tt(l):i(0);let s=(r.left+a.x)/c.x,u=(r.top+a.y)/c.y,f=r.width/c.x,d=r.height/c.y;if(l&&o){const t=k(l),n=M(o)?k(o):o;let e=t,r=J(e);for(;r&&n!==e;){const t=U(r),n=r.getBoundingClientRect(),o=W(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,l=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=l,e=k(r),r=J(e)}}return v({width:f,height:d,x:s,y:u})}function et(t,n){const e=X(t).scrollLeft;return n?n.left+e:nt(z(t)).left+e}function ot(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-et(t,e),y:e.top+n.scrollTop}}function rt(t,n,o){let r;if("viewport"===n||"layoutViewport"===n)r=function(t,n,e){void 0===e&&(e="viewport");const o="layoutViewport"===e,r=k(t),i=z(t),l=r.visualViewport;let c=i.clientWidth,a=i.clientHeight,s=0,u=0;if(l){const t=!j()||"fixed"===n;o?t||(s=-l.offsetLeft,u=-l.offsetTop):(c=l.width,a=l.height,t&&(s=l.offsetLeft,u=l.offsetTop))}if(et(i)<=0){const t=i.ownerDocument,n=t.body,e=getComputedStyle(n),o="CSS1Compat"===t.compatMode&&parseFloat(e.marginLeft)+parseFloat(e.marginRight)||0,r=Math.abs(i.clientWidth-n.clientWidth-o),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?r/2:r;l<=25&&(c-=l)}return{width:c,height:a,x:s,y:u}}(t,o,n);else if("document"===n)r=function(t){const n=X(t),o=t.ownerDocument.body,r=e(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=e(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+et(t);const c=-n.scrollTop;return"rtl"===W(o).direction&&(l+=e(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:c}}(z(t));else if(M(n))r=function(t,n){const e=nt(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=U(t);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,o);else{const e=tt(t);r={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return v(r)}function it(t,n,e){const o=P(n),r=z(n),l="fixed"===e,c=nt(t,!0,l,n);let a={scrollLeft:0,scrollTop:0};const s=i(0);if((o||!l)&&(("body"!==O(n)||H(r))&&(a=X(n)),o)){const t=nt(n,!0,l,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}!o&&r&&(s.x=et(r));const u=!r||o||l?i(0):ot(r,a);return{x:c.left+a.scrollLeft-s.x-u.x,y:c.top+a.scrollTop-s.y-u.y,width:c.width,height:c.height}}function lt(t){return"static"===W(t).position}function ct(t,n){if(!P(t)||"fixed"===W(t).position)return null;if(n)return n(t);let e=t.offsetParent;return z(t)===e&&(e=e.ownerDocument.body),e}function at(t,n){const e=k(t);if(B(t))return e;if(!P(t)){let n=Y(t);for(;n&&!q(n);){if(M(n)&&!lt(n))return n;n=Y(n)}return e}let o=ct(t,n);for(;o&&L(o)&<(o);)o=ct(o,n);return o&&q(o)&<(o)&&!V(o)?e:o||function(t){let n=Y(t);for(;P(n)&&!q(n);){if(V(n))return n;if(B(n))return null;n=Y(n)}return null}(t)||e}const st={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:r}=t;const l="fixed"===r,c=z(o),a=!!n&&B(n.floating);if(o===c||a&&l)return e;let s={scrollLeft:0,scrollTop:0},u=i(1);const f=i(0),d=P(o);if((d||!l)&&(("body"!==O(o)||H(c))&&(s=X(o)),d)){const t=nt(o);u=U(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const m=!c||d||l?i(0):ot(c,s);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y}},getDocumentElement:z,getClippingRect:function(t){let{element:o,boundary:r,rootBoundary:i,strategy:l}=t;const c=[..."clippingAncestors"===r?B(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=G(t,[],!1).filter((t=>M(t)&&"body"!==O(t))),r=null;const i="fixed"===W(t).position;let l=i?Y(t):t;for(;M(l)&&!q(l);){const t=W(l),n=V(l),e=r?r.position:i?"fixed":"";n||"fixed"!==e&&("absolute"!==e||"static"!==t.position)?r=t:o=o.filter((t=>t!==l)),l=Y(l)}return n.set(t,o),o}(o,this._c):[].concat(r),i],a=rt(o,c[0],l);let s=a.top,u=a.right,f=a.bottom,d=a.left;for(let t=1;t<c.length;t++){const r=rt(o,c[t],l);s=e(r.top,s),u=n(r.right,u),f=n(r.bottom,f),d=e(r.left,d)}return{width:u-d,height:f-s,x:d,y:s}},getOffsetParent:at,getElementRects:async function(t){const n=this.getOffsetParent||at,e=this.getDimensions,o=await e(t.floating);return{reference:it(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:n,height:e}=K(t);return{width:n,height:e}},getScale:U,isElement:M,isRTL:function(t){return"rtl"===W(t).direction}};function ut(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function ft(t,o,i,l){void 0===l&&(l={});const{ancestorScroll:c=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=l,d=Q(t),m=c||a?[...d?G(d):[],...o?G(o):[]]:[];m.forEach((t=>{c&&t.addEventListener("scroll",i),a&&t.addEventListener("resize",i)}));const y=d&&u?function(t,o,i){let l,c=null;const a=z(t);function s(){var t;clearTimeout(l),null==(t=c)||t.disconnect(),c=null}function u(i,f){void 0===i&&(i=!1),void 0===f&&(f=1),s();const d=t.getBoundingClientRect(),{left:m,top:y,width:h,height:p}=d;if(i||o(),!h||!p)return;const w={rootMargin:-r(y)+"px "+-r(a.clientWidth-(m+h))+"px "+-r(a.clientHeight-(y+p))+"px "+-r(m)+"px",threshold:e(0,n(1,f))||1};let g=!0;function x(n){const e=n[0].intersectionRatio;if(!ut(d,t.getBoundingClientRect()))return u();if(e!==f){if(!g)return u();e?u(!1,e):l=setTimeout((()=>{u(!1,1e-7)}),1e3)}g=!1}try{c=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch(t){c=new IntersectionObserver(x,w)}c.observe(t)}const f=k(t),d=()=>u(i);return f.addEventListener("resize",d),u(!0),()=>{f.removeEventListener("resize",d),s()}}(d,i,a):null;let h,p=-1,w=null;s&&(w=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&w&&o&&(w.unobserve(o),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(o)}))),i()})),d&&!f&&w.observe(d),o&&w.observe(o));let g=f?nt(t):null;return f&&function n(){const e=nt(t);g&&!ut(g,e)&&i(),g=e,h=requestAnimationFrame(n)}(),i(),()=>{var t;m.forEach((t=>{c&&t.removeEventListener("scroll",i),a&&t.removeEventListener("resize",i)})),null==y||y(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(h)}}const dt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:l,middlewareData:u}=n,f=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=a(e),u=s(e),f="y"===d(e),m=F.has(l)?-1:1,y=i&&f?-1:1,h=c(n,t);let{mainAxis:p,crossAxis:w,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&"number"==typeof g&&(w="end"===u?-1*g:g),f?{x:w*y,y:p*m}:{x:p*m,y:w*y}}(n,t);return l===(null==(e=u.offset)?void 0:e.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:l}}}}},mt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:r,y:i,placement:l,platform:a}=o,{mainAxis:s=!0,crossAxis:f=!1,limiter:m={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...y}=c(t,o),h={x:r,y:i},p=await a.detectOverflow(o,y),w=d(l),g=u(w);let x=h[g],v=h[w];const b=(t,o)=>e(o+p["y"===t?"top":"left"],n(o,o-p["y"===t?"bottom":"right"]));s&&(x=b(g,x)),f&&(v=b(w,v));const A=m.fn({...o,[g]:x,[w]:v});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[g]:s,[w]:f}}}}}},yt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:u,platform:v,elements:b}=n,{mainAxis:A=!0,crossAxis:S=!0,fallbackPlacements:R,fallbackStrategy:F="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:O=!0,...k}=c(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const z=a(r),T=d(u),M=a(u)===u,P=await(null==v.isRTL?void 0:v.isRTL(b.floating)),D=R||(M||!O?[x(u)]:function(t){const n=x(t);return[y(t),n,y(n)]}(u)),H="none"!==C;!R&&H&&D.push(...function(t,n,e,o){const r=s(t);let i=function(t,n,e){switch(t){case"top":case"bottom":return e?n?p:h:n?h:p;case"left":case"right":return n?w:g;default:return[]}}(a(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(y)))),i}(u,O,C,P));const L=[u,...D],B=await v.detectOverflow(n,k),E=[];let $=(null==(o=i.flip)?void 0:o.overflows)||[];if(A&&E.push(B[z]),S){const t=function(t,n,e){void 0===e&&(e=!1);const o=s(t),r=m(t),i=f(r);let l="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(l=x(l)),[l,x(l)]}(r,l,P);E.push(B[t[0]],B[t[1]])}if($=[...$,{placement:r,overflows:E}],!E.every((t=>t<=0))){var I,N;const t=((null==(I=i.flip)?void 0:I.index)||0)+1,n=L[t];if(n&&("alignment"!==S||T===d(n)||$.every((t=>d(t.placement)!==T||t.overflows[0]>0))))return{data:{index:t,overflows:$},reset:{placement:n}};let e=null==(N=$.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:N.placement;if(!e)switch(F){case"bestFit":{var V;const t=null==(V=$.filter((t=>{if(H){const n=d(t.placement);return n===T||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:V[0];t&&(e=t);break}case"initialPlacement":e=u}if(r!==e)return{reset:{placement:e}}}return{}}}},ht=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(o){const{placement:r,rects:i,platform:l,elements:u}=o,{apply:f=()=>{},...m}=c(t,o),y=await l.detectOverflow(o,m),h=a(r),p=s(r),w="y"===d(r),{width:g,height:x}=i.floating;let v,b;"top"===h||"bottom"===h?(v=h,b=p===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(b=h,v="end"===p?"top":"bottom");const A=x-y.top-y.bottom,S=g-y.left-y.right,R=n(x-y[v],A),F=n(g-y[b],S),C=o.middlewareData.shift;let O=R,k=F;null!=C&&C.enabled.x&&(k=S),null!=C&&C.enabled.y&&(O=A),!C&&!p&&(w?k=g-2*e(y.left,y.right):O=x-2*e(y.top,y.bottom)),await f({...o,availableWidth:k,availableHeight:O});const z=await l.getDimensions(u.floating);return g!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}},pt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e,platform:o}=n,{strategy:r="referenceHidden",...i}=c(t,n);switch(r){case"referenceHidden":{const t=S(await o.detectOverflow(n,{...i,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:R(t)}}}case"escaped":{const t=S(await o.detectOverflow(n,{...i,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:R(t)}}}default:return{}}}}},wt=(t,n,e)=>{const o=new Map,r=null!=e?e:{},i={...st,...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,c=l.detectOverflow?l:{...l,detectOverflow:A},a=await(null==l.isRTL?void 0:l.isRTL(n));let s=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=b(s,o,a),d=o,m=0;const y={};for(let e=0;e<i.length;e++){const h=i[e];if(!h)continue;const{name:p,fn:w}=h,{x:g,y:x,data:v,reset:A}=await w({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:c,elements:{reference:t,floating:n}});u=null!=g?g:u,f=null!=x?x:f,y[p]={...y[p],...v},A&&m<50&&(m++,"object"==typeof A&&(A.placement&&(d=A.placement),A.rects&&(s=!0===A.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):A.rects),({x:u,y:f}=b(s,d,a))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{ft as a,ht as b,wt as c,yt as f,pt as h,dt as o,mt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as s,g as i}from"./p-ukZKsqqq.js";const c=class{constructor(t){e(this,t),this.initialExpanded=!1,this.disabled=!1,this.selectedCount=-1,this.hasCheckbox=!0,this.expanded=this.initialExpanded,this.parentChecked=!1,this.parentIndeterminate=!1,this.toggleAccordion=()=>{this.expanded=!this.expanded},this.handleParentCheckboxChange=e=>{this.parentChecked=e,this.parentIndeterminate=!1;const t=this.el?.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');t?.forEach((t=>{t.checked=e}))}}watchSelectedCount(e,t){e>-1&&this.updateParentCheckbox(e)}updateParentCheckbox(e){const t=this.el?.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');0===e?(this.parentChecked=!1,this.parentIndeterminate=!1):e===(t?.length??0)?(this.parentChecked=!0,this.parentIndeterminate=!1):(this.parentChecked=!1,this.parentIndeterminate=!0)}handleChildCheckboxChange(){if(-1===this.selectedCount){const e=this.el?.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])'),t=Array.from(e??[]).filter((e=>e.checked)).length;this.updateParentCheckbox(t)}}componentDidLoad(){this.updateParentCheckbox(this.selectedCount>-1?this.selectedCount:0)}render(){return t(s,{key:"8c5bd1f9f7d6aecc5e06f41e68377bb309053261",class:"xpl-header-accordion"},t("div",{key:"ecfe39b4e1cc03dede4b717fbb68f2976bcd34fd",class:"header-accordion header-accordion--"+(this.expanded?"expanded":"collapsed")},this.hasCheckbox&&t("xpl-checkbox",{key:"2cedb69a9d43daf53faff359a9d6ee9cab4b455c",class:"xpl-header-accordion__parent-checkbox",checked:this.parentChecked,disabled:this.disabled,indeterminate:this.parentIndeterminate,onCheckboxChange:e=>this.handleParentCheckboxChange(e.detail)}),t("button",{key:"bccadcd6f1c9a498fcd54441d70b95bd33827e60","aria-expanded":this.expanded,"aria-controls":this.contentId,class:"toggle-area",onClick:this.toggleAccordion,type:"button"},t("slot",{key:"a19fdea8dff5d5513f433bbdac6a05d96671308b",name:"title"}),t("xpl-icon",{key:"0191d698f5a41c60043e0da9751bf23f0d1fc7b7",size:16,icon:"chevron-down",class:this.expanded?"rotate":void 0}))),t("div",{key:"3d0e91436da03f0c1151df754855f365ae72b3f2",id:this.contentId,role:"region",class:this.expanded?"content--shown":"content--hidden"},t("slot",{key:"f88cfc51ae9bcdfebf10545085643f87f90e3369",name:"content"})))}get el(){return i(this)}static get watchers(){return{selectedCount:[{watchSelectedCount:0}]}}};export{c as xpl_header_accordion}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,f as s,h,H as o,g as e}from"./p-ukZKsqqq.js";import{i as n}from"./p-Dqb1pIRo.js";import{c as l,a,o as r,f as p,s as c}from"./p-1M1pu0C2.js";const d=".xpl-spotlight__dismiss button, .xpl-spotlight__actions button";let u=0;const g={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end"},m={top:"bottom-left","top-start":"bottom-left","top-end":"bottom-right",bottom:"top-left","bottom-start":"top-left","bottom-end":"top-right",left:"top-right","left-start":"top-right","left-end":"bottom-right",right:"top-left","right-start":"top-left","right-end":"bottom-left"},f=class{constructor(h){t(this,h),this.dismiss=i(this,"dismiss",7),this.primaryAction=i(this,"primaryAction",7),this.secondaryAction=i(this,"secondaryAction",7),this.targetClick=i(this,"targetClick",7),this.cleanupAutoUpdate=null,this.enterVisibleFrameId=null,this.focusFrameId=null,this.hasCompletedInitialLoad=!1,this.headingId=(u+=1,`xpl-spotlight-heading-${u}`),this.pendingEnterTransitionAfterAnchor=!1,this.pendingEnterVisible=!1,this.positioningGeneration=0,this.previousFocus=null,this.referenceEl=null,this.shouldMoveFocusOnRender=!1,this.shouldReinitializeAfterReconnect=!1,this.slotContentObserver=null,this.hasBodySlotContent=!1,this.hasFloatingPosition=!1,this.hasImageSlotContent=!1,this.hasTitleSlotContent=!1,this.dialogLabelId=void 0,this.isVisible=!1,this.resolvedAnchorPosition="top-left",this.actionLayout="default",this.anchorPosition="top-left",this.currentStep=1,this.isDismissible=!0,this.isOpen=!0,this.primaryActionLabel="Next",this.secondaryActionLabel="Back",this.showActions=!0,this.showImage=!0,this.showSteps=!0,this.totalSteps=1,this.emitDismiss=()=>{this.dismiss.emit()},this.handleDismissClick=()=>{this.emitDismiss()},this.handlePrimaryClick=()=>{this.primaryAction.emit()},this.handleSecondaryClick=()=>{this.secondaryAction.emit()},this.handleTargetClick=()=>{this.targetClick.emit()},this.syncTitleSlotIds=()=>{const t=this.getFirstTitleSlottedElement();t&&!t.id&&(t.id=this.headingId)},this.handleBodySlotChange=()=>{this.refreshBodySlotState()},this.handleTitleSlotChange=()=>{this.refreshTitleSlotState(),this.syncTitleSlotIds()},this.handleImageSlotChange=()=>{this.refreshImageSlotState()},this.handleSlotContentMutation=()=>{this.refreshBodySlotState(),this.refreshImageSlotState(),this.refreshTitleSlotState(),this.syncTitleSlotIds()},this.updatePosition=async t=>{if(!n())return;const i=this.positioningGeneration;try{const s=g[this.anchorPosition],{x:h,y:o,placement:e,middlewareData:n}=await l(t,this.el,{strategy:"fixed",placement:s,middleware:[r(12),p({crossAxis:!1}),c({padding:8})]});if(i!==this.positioningGeneration)return;this.el.style.left=`${h}px`,this.el.style.top=`${o}px`;const a=n.shift?.x??0,d=n.shift?.y??0;this.el.style.setProperty("--xpl-spotlight-shift-x",-a+"px"),this.el.style.setProperty("--xpl-spotlight-shift-y",-d+"px"),this.hasFloatingPosition=!0;const u=m[e]??m[e.split("-")[0]??""];this.resolvedAnchorPosition=u??this.anchorPosition,this.pendingEnterTransitionAfterAnchor&&this.scheduleEnterTransition()}catch{if(i!==this.positioningGeneration)return;this.clearFloatingHostCoordinates(),this.isOpenEnabled&&(this.scheduleEnterTransition({skipAnchorWait:!0}),await s(this))}}}onAnchorPositionChange(){this.target&&this.referenceEl?this.updatePosition(this.referenceEl).catch((()=>{})):this.resolvedAnchorPosition=this.anchorPosition}onIsOpenChange(t){if(f.coerceBoolean(t))return this.capturePreviousFocus(),this.shouldMoveFocusOnRender=!0,this.isVisible=!1,this.refreshBodySlotState(),this.refreshTitleSlotState(),this.refreshImageSlotState(),this.target&&(this.cleanupAutoUpdate&&this.referenceEl&&this.el.ownerDocument.contains(this.referenceEl)?this.hasFloatingPosition=!1:this.startPositioning()),void this.scheduleEnterTransition();this.cancelEnterTransition(),this.cancelPendingFocusWait(),this.isVisible=!1,this.target||this.stopPositioning(),this.restoreFocus()}onTargetChange(){if(!this.target)return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition);this.startPositioning()}connectedCallback(){this.shouldReinitializeAfterReconnect&&(this.shouldReinitializeAfterReconnect=!1,this.startSlotContentObserver(),this.target&&this.startPositioning(),this.isOpenEnabled?(this.capturePreviousFocus(),this.shouldMoveFocusOnRender=!0,this.scheduleEnterTransition(),this.pendingEnterVisible&&Promise.resolve(s(this)).catch((()=>{}))):this.isVisible=!1)}disconnectedCallback(){this.cancelEnterTransition(),this.cancelPendingFocusWait(),this.stopSlotContentObserver(),this.stopPositioning(),this.hasCompletedInitialLoad&&(this.shouldReinitializeAfterReconnect=!0)}componentWillLoad(){this.resolvedAnchorPosition=this.anchorPosition,this.hasBodySlotContent=this.hasSlottedContent("body"),this.hasImageSlotContent=this.hasSlottedContent("image"),this.hasTitleSlotContent=this.hasSlottedContent("title"),this.dialogLabelId=this.getDialogLabelId(),this.isOpenEnabled&&!this.target&&(this.pendingEnterVisible=!0),this.shouldMoveFocusOnRender=this.isOpenEnabled}componentDidLoad(){this.hasCompletedInitialLoad=!0,this.startSlotContentObserver(),this.target&&this.startPositioning(),this.isOpenEnabled?this.target&&(this.scheduleEnterTransition(),this.pendingEnterVisible&&Promise.resolve(s(this)).catch((()=>{}))):this.isVisible=!1}componentDidRender(){this.isOpenEnabled&&this.syncTitleSlotIds();const t=this.getDialogLabelId();this.dialogLabelId!==t&&(this.dialogLabelId=t),this.pendingEnterVisible&&this.isOpenEnabled&&(this.pendingEnterVisible=!1,this.enterVisibleFrameId=requestAnimationFrame((()=>{this.enterVisibleFrameId=null,this.isOpenEnabled&&(this.isVisible=!0)}))),this.shouldMoveFocusOnRender&&this.isOpenEnabled&&(this.shouldMoveFocusOnRender=!1,this.capturePreviousFocus(),this.focusInitial())}handleKeyDown(t){"Escape"===t.key&&this.shouldHandleDismissKeyboardEvent()&&(t.preventDefault(),this.emitDismiss())}get effectiveTotalSteps(){return Math.max(1,this.totalSteps)}get effectiveCurrentStep(){return Math.min(this.effectiveTotalSteps,Math.max(1,this.currentStep))}get isDismissibleEnabled(){return f.coerceBoolean(this.isDismissible)}get isOpenEnabled(){return f.coerceBoolean(this.isOpen)}get isSingleActionLayout(){return"single"===this.actionLayout}get usesHiddenEdgeActions(){return"dual"===this.actionLayout}get isPrimaryStepActionDisabled(){return!this.usesHiddenEdgeActions&&this.showStepsEnabled&&this.effectiveCurrentStep>=this.effectiveTotalSteps}get isSecondaryStepActionDisabled(){return!this.usesHiddenEdgeActions&&this.showStepsEnabled&&this.effectiveCurrentStep<=1}get shouldShowPrimaryAction(){return!!this.isSingleActionLayout||!this.usesHiddenEdgeActions||!this.showStepsEnabled||this.effectiveCurrentStep<this.effectiveTotalSteps}get shouldShowSecondaryAction(){return!this.isSingleActionLayout&&(!this.usesHiddenEdgeActions||!this.showStepsEnabled||this.effectiveCurrentStep>1)}get hasRenderableFocusChrome(){return!!this.isDismissibleEnabled||!!this.showActionsEnabled&&(this.shouldShowPrimaryAction||this.shouldShowSecondaryAction)}get showActionsEnabled(){return f.coerceBoolean(this.showActions)}get showImageEnabled(){return f.coerceBoolean(this.showImage)}get showStepsEnabled(){return f.coerceBoolean(this.showSteps)}get headingPropHasText(){return Boolean(this.heading?.trim())}get bodyPropHasText(){return Boolean(this.body?.trim())}async focusInitial(){if(this.focusAbort?.abort(),this.focusAbort=new AbortController,!this.hasRenderableFocusChrome&&this.isOpenEnabled)return void(this.focusFrameId=requestAnimationFrame((()=>{this.focusFrameId=null,this.isOpenEnabled&&this.el.focus()})));const t=await function(t,i){const s=t.querySelector(d);return s?Promise.resolve(s):i?.signal?.aborted?Promise.resolve(null):"undefined"==typeof MutationObserver?function(t,i){return new Promise((s=>{if(i?.signal?.aborted)return void s(null);let h,o,e=0;const n=t=>{void 0!==h&&"undefined"!=typeof cancelAnimationFrame&&cancelAnimationFrame(h),void 0!==o&&clearTimeout(o),s(t)},l=()=>n(null);i?.signal?.addEventListener("abort",l,{once:!0});const a=t=>{"undefined"!=typeof requestAnimationFrame?h=requestAnimationFrame((()=>{h=void 0,t()})):o=setTimeout((()=>{o=void 0,t()}),0)},r=()=>{if(i?.signal?.aborted)return void n(null);const s=t.querySelector(d);return s?(i?.signal?.removeEventListener("abort",l),void n(s)):(e+=1,e>=120?(i?.signal?.removeEventListener("abort",l),void n(null)):void a(r))};a(r)}))}(t,i):new Promise((s=>{let h,o,e=!1;function n(t){e||(e=!0,o.disconnect(),void 0!==h&&clearTimeout(h),s(t))}o=new MutationObserver((()=>{const i=t.querySelector(d);i&&n(i)})),o.observe(t instanceof Node?t:document,{childList:!0,subtree:!0}),h=setTimeout((()=>n(null)),2500),i?.signal?.addEventListener("abort",(()=>{n(null)}),{once:!0})}))}(this.el,{signal:this.focusAbort.signal});t?t.focus():this.isOpenEnabled&&this.el.focus()}shouldHandleDismissKeyboardEvent(){if(!this.isDismissibleEnabled||!this.isOpenEnabled||!this.isVisible)return!1;const{activeElement:t}=document;return Boolean(t)&&(t===this.el||this.el.contains(t))}capturePreviousFocus(){n()&&(this.previousFocus=document.activeElement instanceof HTMLElement?document.activeElement:null)}restoreFocus(){this.previousFocus?.isConnected&&this.previousFocus.focus()}cancelPendingFocusWait(){this.focusAbort?.abort(),null!=this.focusFrameId&&(cancelAnimationFrame(this.focusFrameId),this.focusFrameId=null)}cancelEnterTransition(){null!==this.enterVisibleFrameId&&(cancelAnimationFrame(this.enterVisibleFrameId),this.enterVisibleFrameId=null),this.pendingEnterVisible=!1}scheduleEnterTransition(t){this.cancelEnterTransition(),t?.skipAnchorWait||!Boolean(this.target&&this.referenceEl)||this.hasFloatingPosition?(this.pendingEnterTransitionAfterAnchor=!1,this.pendingEnterVisible=!0):this.pendingEnterTransitionAfterAnchor=!0}getFirstTitleSlottedElement(){const t=Array.from(this.el.children).find((t=>t.nodeType===Node.ELEMENT_NODE&&"title"===t.getAttribute("slot")));if(t)return t;const i=this.el.querySelector('slot[name="title"]');if(i&&"function"==typeof i.assignedNodes){const t=Array.from(i.assignedNodes({flatten:!0})).find((t=>t.nodeType===Node.ELEMENT_NODE));if(t)return t}return this.el.querySelector('[slot="title"]')??null}getDialogLabelId(){if(this.hasTitleSlotContent){const t=this.getFirstTitleSlottedElement();return t?.id?t.id:this.headingId}if(this.headingPropHasText)return this.headingId}refreshBodySlotState(){const t=this.hasSlottedContent("body");this.hasBodySlotContent!==t&&(this.hasBodySlotContent=t)}refreshTitleSlotState(){const t=this.hasSlottedContent("title");this.hasTitleSlotContent!==t&&(this.hasTitleSlotContent=t)}static coerceBoolean(t){return"string"==typeof t?"false"!==t.trim().toLowerCase():Boolean(t)}refreshImageSlotState(){const t=this.hasSlottedContent("image");this.hasImageSlotContent!==t&&(this.hasImageSlotContent=t)}startSlotContentObserver(){"undefined"==typeof MutationObserver||this.slotContentObserver||(this.slotContentObserver=new MutationObserver(this.handleSlotContentMutation),this.slotContentObserver.observe(this.el,{attributes:!0,attributeFilter:["slot"],childList:!0,subtree:!0}))}stopSlotContentObserver(){this.slotContentObserver?.disconnect(),this.slotContentObserver=null}hasSlottedContent(t){const i=this.el.querySelector(`slot[name="${t}"]`),s=this.el.querySelector(`[slot="${t}"]`),h=Array.from(this.el.children).some((i=>i.getAttribute("slot")===t)),o=!!i&&i.assignedNodes({flatten:!0}).some((t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()));return Boolean(s||h)||o}startPositioning(){if(!n())return;if(!this.target)return;let t=null;try{t=this.el.ownerDocument.querySelector(this.target)}catch{return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition)}if(!t)return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition);this.detachFloatingUiListeners(),this.referenceEl=t,this.cleanupAutoUpdate=a(t,this.el,(()=>{this.updatePosition(t).catch((()=>{}))}))}detachFloatingUiListeners(){this.positioningGeneration+=1,this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null)}resetFloatingHostPosition(){this.el.style.left="",this.el.style.top="",this.el.style.removeProperty("--xpl-spotlight-shift-x"),this.el.style.removeProperty("--xpl-spotlight-shift-y"),this.hasFloatingPosition=!1,this.pendingEnterTransitionAfterAnchor=!1,this.referenceEl=null}clearFloatingHostCoordinates(){this.el.style.left="",this.el.style.top="",this.el.style.removeProperty("--xpl-spotlight-shift-x"),this.el.style.removeProperty("--xpl-spotlight-shift-y"),this.hasFloatingPosition=!1,this.pendingEnterTransitionAfterAnchor=!1,this.resolvedAnchorPosition=this.anchorPosition}stopPositioning(){this.detachFloatingUiListeners(),this.resetFloatingHostPosition()}render(){if(!this.isOpenEnabled)return this.target?h(o,{class:{"xpl-spotlight":!0,"xpl-spotlight--target-only":!0,[`xpl-spotlight--${this.resolvedAnchorPosition}`]:!0,"xpl-spotlight--anchored":this.hasFloatingPosition}},h("button",{type:"button",class:"xpl-spotlight__target","aria-label":"Spotlight indicator",onClick:this.handleTargetClick},h("div",{class:"xpl-spotlight__target-outer"}),h("div",{class:"xpl-spotlight__target-inner"}))):h(o,{"aria-hidden":"true",class:{"xpl-spotlight":!0,"xpl-spotlight--closed":!0}});const{isSingleActionLayout:t,shouldShowPrimaryAction:i,shouldShowSecondaryAction:s,showActionsEnabled:e,showImageEnabled:n,showStepsEnabled:l}=this;return h(o,{class:{[`xpl-spotlight--action-layout-${this.actionLayout}`]:e,"xpl-spotlight":!0,[`xpl-spotlight--${this.resolvedAnchorPosition}`]:!0,"xpl-spotlight--anchored":this.hasFloatingPosition,"xpl-spotlight--no-image":!n,"xpl-spotlight--only-primary-action":e&&i&&!s,"xpl-spotlight--only-secondary-action":e&&s&&!i,"xpl-spotlight--visible":this.isVisible},role:"dialog","aria-modal":"false","aria-label":this.dialogLabelId?void 0:"Tour step","aria-labelledby":this.dialogLabelId,tabindex:-1},h("button",{type:"button",class:"xpl-spotlight__target","aria-label":"Spotlight indicator",onClick:this.handleTargetClick},h("div",{class:"xpl-spotlight__target-outer"}),h("div",{class:"xpl-spotlight__target-inner"})),this.isDismissibleEnabled&&h("div",{class:"xpl-spotlight__dismiss"},h("xpl-button",{variant:"secondary",size:"sm",iconOnly:!0,"aria-label":"Dismiss tour step",onClick:this.handleDismissClick},h("xpl-icon",{icon:"xmark",size:16}))),h("div",{class:"xpl-spotlight__frame"},h("div",{class:{"xpl-spotlight__image-container":!0,"xpl-spotlight__image-container--empty":!this.hasImageSlotContent,"xpl-spotlight__image-container--hidden":!n}},!this.hasImageSlotContent&&n&&h("div",{class:"xpl-spotlight__image-placeholder","aria-hidden":"true"},h("xpl-icon",{icon:"photo",size:24}),h("xpl-icon",{icon:"video",size:24})),h("slot",{name:"image",onSlotchange:this.handleImageSlotChange})),h("div",{class:"xpl-spotlight__content"},h("div",{class:"xpl-spotlight__header"},h("slot",{name:"title",onSlotchange:this.handleTitleSlotChange},!this.hasTitleSlotContent&&this.headingPropHasText&&h("span",{class:"xpl-spotlight__title",id:this.headingId},this.heading)),h("slot",{name:"body",onSlotchange:this.handleBodySlotChange},!this.hasBodySlotContent&&this.bodyPropHasText&&h("p",{class:"xpl-spotlight__body"},this.body))),e&&h("div",{class:{"xpl-spotlight__actions":!0,"xpl-spotlight__actions--dual":!t,"xpl-spotlight__actions--single":t,"xpl-spotlight__actions--with-steps":l,"xpl-spotlight__actions--only-primary":i&&!s,"xpl-spotlight__actions--only-secondary":s&&!i}},h("div",{class:"xpl-spotlight__action-slot xpl-spotlight__action-slot--secondary"},s&&h("xpl-button",{class:"xpl-spotlight__secondary-action",variant:"secondary",size:"default",disabled:this.isSecondaryStepActionDisabled,onClick:this.handleSecondaryClick},this.secondaryActionLabel)),l&&h("span",{class:"xpl-spotlight__step-text"},this.effectiveCurrentStep," of ",this.effectiveTotalSteps),h("div",{class:"xpl-spotlight__action-slot xpl-spotlight__action-slot--primary"},i&&h("xpl-button",{class:"xpl-spotlight__primary-action",variant:"primary",size:"default",disabled:this.isPrimaryStepActionDisabled,onClick:this.handlePrimaryClick},this.primaryActionLabel))))))}get el(){return e(this)}static get watchers(){return{anchorPosition:[{onAnchorPositionChange:0}],isOpen:[{onIsOpenChange:0}],target:[{onTargetChange:0}]}}};export{f as xpl_spotlight}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as i,H as s,g as t}from"./p-ukZKsqqq.js";import{h as a}from"./p-DkqlawVY.js";const d=[".xpl-nav-header-menu__right-aside-mobile"],h=class{constructor(i){e(this,i),this.rightAsideMobilePresent=!1}connectedCallback(){this.syncRightAsideMobileSlotPresent(),this.connectRightAsideMobileSlotObserver()}disconnectedCallback(){void 0!==this.deferredRightAsideSlotWorkTimeoutId&&(clearTimeout(this.deferredRightAsideSlotWorkTimeoutId),this.deferredRightAsideSlotWorkTimeoutId=void 0),this.disconnectRightAsideMobileSlotObserver()}componentWillLoad(){this.syncRightAsideMobileSlotPresent()}componentWillRender(){this.disconnectRightAsideMobileSlotObserver()}componentDidRender(){this.scheduleDeferredRightAsideSlotWork()}scheduleDeferredRightAsideSlotWork(){void 0!==this.deferredRightAsideSlotWorkTimeoutId&&clearTimeout(this.deferredRightAsideSlotWorkTimeoutId),this.deferredRightAsideSlotWorkTimeoutId=setTimeout((()=>{this.deferredRightAsideSlotWorkTimeoutId=void 0,this.el.isConnected&&(this.syncRightAsideMobileSlotPresent(),this.connectRightAsideMobileSlotObserver())}),0)}connectRightAsideMobileSlotObserver(){this.disconnectRightAsideMobileSlotObserver(),"undefined"!=typeof MutationObserver&&(this.rightAsideMobileSlotObserver=new MutationObserver((()=>{this.scheduleDeferredRightAsideSlotWork()})),this.rightAsideMobileSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectRightAsideMobileSlotObserver(){this.rightAsideMobileSlotObserver?.disconnect(),this.rightAsideMobileSlotObserver=void 0}syncRightAsideMobileSlotPresent(){const e=a(this.el,"right-aside-mobile",{hostTag:"xpl-nav-header-menu",projectionRegionSelectors:d});e!==this.rightAsideMobilePresent&&(this.rightAsideMobilePresent=e)}render(){return i(s,{key:"dc0a40f8c2db6084678f6059efa61d8dd75d1a44",class:{"xpl-nav-header-menu":!0,"xpl-nav-header-menu--has-right-aside-mobile":this.rightAsideMobilePresent,dark:!0}},(!!this.username||!!this.email)&&i("div",{key:"857696ff73c74ccf74e3607169aa8378cdbb9a9b",class:"xpl-nav-header-menu__profile"},i("div",{key:"0398df3659ad70f11a8300f5213f436840cffe29",class:"xpl-nav-header-menu__info"},this.username&&i("div",{key:"de0e0878b44a134b6fa10eb2117f52b822179602",class:"xpl-nav-header-menu__username"},this.username),this.email&&i("div",{key:"e6a523c745f1e5ef80613071c02452e727b929b9",class:"xpl-nav-header-menu__email"},this.email))),i("div",{key:"d12b09d4bf2e68947fb78073e9f8bc3ba7d4d65d",class:"xpl-nav-header-menu__right-aside-mobile"},i("slot",{key:"e4a8f9080993d32338016c5c72fc98c5c4dd3c22",name:"right-aside-mobile"})),i("div",{key:"d21f74ddc1a08e27c77494fc622b3d85d834760f",class:"xpl-nav-header-menu__slot",role:"list"},i("slot",{key:"9ebf836dc8d33991a432cb47e1510091bfd57322"})))}get el(){return t(this)}};export{h as xpl_nav_header_menu}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e,H as c}from"./p-ukZKsqqq.js";const r=class{constructor(e){a(this,e)}render(){return e(c,{key:"ec9689395d536e7018469193ba61c094d79fa004"},e("nav",{key:"ffb0b88d3b331a22d1ae620aeb67ad901c801153",class:"xpl-breadcrumbs","aria-label":"Breadcrumb"},e("ol",{key:"9649caceca01e86584682f4843c30fe080b364e1",role:"list"},e("slot",{key:"68f438d33b5cd458cd0643a4f28c04dd824366c7"}))))}};export{r as xpl_breadcrumbs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as s,g as i}from"./p-ukZKsqqq.js";const a=class{constructor(e){t(this,e),this.disabled=!1}componentDidLoad(){this.updateSlottedComponentsWhenDisabled()}componentDidUpdate(){this.updateSlottedComponentsWhenDisabled()}updateSlottedComponentsWhenDisabled(){(this.hostElement?.querySelectorAll("*")??[]).forEach((t=>{"disabled"in t&&(t.disabled=this.disabled)}))}render(){const t=this.el.parentElement?Array.from(this.el.parentElement.children).indexOf(this.el)+1:0;return e(s,{key:"c2cfd05197952dd882bb3cf138dcbbc556e34583",role:"gridcell","aria-colindex":t,class:"xpl-dynamic-table-cell",ref:t=>{this.hostElement=t??void 0}},e("slot",{key:"bb48fdae37888679b567f842e7343091c851318a"}))}get el(){return i(this)}};export{a as xpl_dynamic_table_cell}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as s}from"./p-ukZKsqqq.js";const a=class{constructor(e){t(this,e),this.disabled=!1,this.selected=!1,this.isDisabled=!1}componentWillLoad(){this.isDisabled=this.disabled}componentDidLoad(){this.updateRowCellsDisabledState()}componentDidUpdate(){this.updateRowCellsDisabledState()}updateRowCellsDisabledState(){(this.hostElement?.querySelectorAll("xpl-dynamic-table-cell")??[]).forEach((t=>{t.disabled=this.isDisabled}))}render(){return e(s,{key:"385be648a5890a43b63bf78e5cdbb08ded40b350",role:"row",class:`xpl-dynamic-table-row\n ${this.isDisabled?"disabled":""}\n ${this.selected?"selected":""}`,ref:t=>{this.hostElement=t??void 0}},e("slot",{key:"aa2519e69e547492a25d9fbf18c4dc5b090fbded"}))}};export{a as xpl_dynamic_table_row}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as s,g as c}from"./p-ukZKsqqq.js";const a=class{constructor(t){e(this,t),this.selectedItemCount=0}componentDidLoad(){const e=this.el.querySelector('[slot="actions-right"]');null!==e&&(e.style.marginLeft="auto")}listenToSelectedItemCountChange(e){this.selectedItemCount=e.detail.length}render(){return t(s,{key:"6407dc110234806b694bd78e98920c96db62b678",class:{"xpl-toolbar":!0,dark:!0,hidden:0===this.selectedItemCount}},t("div",{key:"42c9e451f0f796bf8b3ed967699deb4824ae9d76",class:"toolbar"},t("p",{key:"bc5a48dfc2f431a4e88337fa792920413048e059",class:"selected-item-count"},this.selectedItemCount," Selected"),t("div",{key:"ff4caddf1a499b238df37b5ed62543168fe32f4e",class:"actions"},t("slot",{key:"dd8225846c76dd50c943a4adc0e373717dc9c5c2",name:"actions-left"}),t("slot",{key:"066999024eb8cc98be2cfec8077b2afab99e3feb",name:"actions-right"}))))}get el(){return c(this)}};export{a as xpl_toolbar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a,H as s}from"./p-ukZKsqqq.js";const n=class{constructor(a){e(this,a),this.accent="none",this.padding="default"}render(){const e="none"!==this.accent;return a(s,{key:"2be99cac0dda8442b54752745f3bf647df334e70",class:{"xpl-panel":!0,[`xpl-panel--accent-${this.accent}`]:e,[`xpl-panel--padding-${this.padding}`]:!0}},e&&a("div",{key:"ff25fa59eff4d886540a5abc3b637478b533b23b","aria-hidden":"true",class:"xpl-panel__accent"}),a("div",{key:"415205b25333615cfe22d41fdfaf4e114547746b",class:"xpl-panel__content"},a("slot",{key:"5573ed5bb1cb102720d2c6e1245656fba8d36b8f"})))}};export{n as xpl_panel}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as e}from"./p-ukZKsqqq.js";const i=class{constructor(t){s(this,t),this.shape="rectangle",this.size="custom"}render(){return t(e,{key:"d5f7861a88adeaa570b9101e0b0ffc89d22c6fe1",class:{"xpl-skeleton":!0,[`xpl-skeleton--shape-${this.shape}`]:!0,[`xpl-skeleton--size-${this.size}`]:!0,[this.classNames??""]:!!this.classNames,"xpl-skeleton--full-width":!!this.fullWidth},style:{width:this.width||void 0,height:this.height||void 0,margin:this.margin||void 0}})}};export{i as xpl_skeleton}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as s,g as i}from"./p-ukZKsqqq.js";import{h as e}from"./p-_r9-FML8.js";const d="graph-content",c=class{constructor(a){t(this,a),this.graphContentPresent=!1,this.leadingIcon=!0,this.tooltipTextSmallStat="",this.tooltipTextStat=""}watchStat(t){this.stat=t}watchShortStat(t){this.shortStat=t}connectedCallback(){this.syncGraphContentSlot(),this.connectGraphContentSlotObserver()}disconnectedCallback(){void 0!==this.graphContentSlotSyncTimeoutId&&(clearTimeout(this.graphContentSlotSyncTimeoutId),this.graphContentSlotSyncTimeoutId=void 0),this.disconnectGraphContentSlotObserver()}componentWillLoad(){this.syncGraphContentSlot()}componentDidLoad(){if(this.link){const t=this.el.getElementsByTagName("a")[0]||this.el.getElementsByTagName("button")[0],a=document.createTextNode(this.name),s=document.createElement("span");s.appendChild(a),t.setAttribute("class","xpl-data-card__anchor"),t.appendChild(s)}}componentWillRender(){this.disconnectGraphContentSlotObserver()}componentDidRender(){this.scheduleGraphContentSlotSync()}connectGraphContentSlotObserver(){this.disconnectGraphContentSlotObserver(),"undefined"!=typeof MutationObserver&&(this.graphContentSlotObserver=new MutationObserver((()=>{this.scheduleGraphContentSlotSync()})),this.graphContentSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectGraphContentSlotObserver(){this.graphContentSlotObserver?.disconnect(),this.graphContentSlotObserver=void 0}scheduleGraphContentSlotSync(){void 0!==this.graphContentSlotSyncTimeoutId&&clearTimeout(this.graphContentSlotSyncTimeoutId),this.graphContentSlotSyncTimeoutId=setTimeout((()=>{this.graphContentSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncGraphContentSlot(),this.connectGraphContentSlotObserver())}),0)}syncGraphContentSlot(){const t=e(this.el,d);t!==this.graphContentPresent&&(this.graphContentPresent=t)}render(){const t="positive"===this.smallStatVariant?"arrow-up-right":"negative"===this.smallStatVariant?"arrow-down-right":"dash";return a(s,{key:"7480f4a5839e985f317f697984ec3752a0e5f4fb",role:"group",class:"xpl-data-card "+(this.link?"xpl-data-card__link":""),tabindex:"0"},a("dt",{key:"ee0d40e32b700fa8dcda517454f7dfe88439f705",class:"xpl-data-card__header xpl-data-card__header--"+("secondary"===this.variant?"secondary":"primary")},a("header",{key:"405d707dafdd90942bb7122904d0d8a7ef1e989a"},!!this.leadingIcon&&this.icon&&a("span",{key:"d2f505eab301051b854355cbe8e8608153f1c509",class:`xpl-data-card__icon--${this.variant}`},a("xpl-icon",{key:"e4c3366b8ec3e0a55b2cc47877d832c72ff018ac",icon:this.icon,"background-color":"secondary"===this.variant?"purple":"orange",size:20})),a("slot",{key:"a2d1c4b93e4860d046f6da66d5b82a19f60e7346",name:"title"},this.name)),this.link&&a("span",{key:"8966de78de4d6fac11841afaec872a2c2f3d1db0",class:"xpl-data-card__header-arrow"},a("xpl-icon",{key:"62bc6170d62a773e5e38830c53a4abb0335a9fa8",icon:"chevron-right",size:16}))),a("dd",{key:"b10cbb97c475155819c8f35afa2b294153c7153a",class:"xpl-data-card__body"},a("div",{key:"4bf749bdcea4cd4b8a53cee3476e249556357038",class:"xpl-data-card__left"},a("span",{key:"8285b0cca2a5f8be35d9096980085d1e0ed6cebc",class:"xpl-data-card-stat xpl-data-card-stat--long"},this.stat),this.tooltipTextStat?a("xpl-tooltip",{text:this.tooltipTextStat},a("div",{class:"xpl-data-card-stat xpl-data-card-stat--short"},this.shortStat?this.shortStat:this.stat)):a("div",{class:"xpl-data-card-stat xpl-data-card-stat--short"},a("abbr",{title:this.stat},this.shortStat?this.shortStat:this.stat)),this.smallStatVariant?this.tooltipTextSmallStat?a("xpl-tooltip",{text:this.tooltipTextSmallStat},a("div",{class:`xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}`},a("xpl-icon",{icon:t,size:16}),this.smallStat)):a("div",{class:`xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}`},a("xpl-icon",{icon:t,size:16}),this.smallStat):this.smallStatIcon&&(this.tooltipTextSmallStat?a("xpl-tooltip",{text:this.tooltipTextSmallStat},a("div",{class:"xpl-data-card-stat xpl-data-card-stat--small"},a("xpl-icon",{icon:this.smallStatIcon,size:16}),this.smallStat)):a("div",{class:"xpl-data-card-stat xpl-data-card-stat--small"},a("xpl-icon",{icon:this.smallStatIcon,size:16}),this.smallStat)),!!this.detail&&a("span",{key:"fbb5c740dc2a637198aad042800efb713fff154b",class:"xpl-data-card__detail"},this.detail)),this.graphContentPresent&&a("div",{key:"b8f8f8fd70e1984edad76060e8b32db62c22bf5c",class:"xpl-data-card__right"},a("slot",{key:"a3c1a9e98111de7a091ded98aded8e722af1f806",name:d}))))}get el(){return i(this)}static get watchers(){return{stat:[{watchStat:0}],shortStat:[{watchShortStat:0}]}}};export{c as xpl_data_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as s,H as a,g as t}from"./p-ukZKsqqq.js";import{g as l,a as r,t as c}from"./p-BQtbf88X.js";const b=class{constructor(s){e(this,s),this.selected=!1}render(){const e=l(this.el),t=this.target??"",b=r(e,t),p=c(e,t);return s(a,{key:"89c4bb26274f9cd2f317e308d58b03ee48d80ac8","aria-labelledby":p,class:{"xpl-tab-panel":!0,"xpl-tab-panel--selected":this.selected},id:b,role:"tabpanel"},s("slot",{key:"2d8ccc1f14e7415528bbb09fa9ed174e5cea8e00"}))}get el(){return t(this)}};export{b as xpl_tab_panel}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e}from"./p-ukZKsqqq.js";function h(t){const[i,s]=t.split(":"),e=Number(i)>=12?"PM":"AM";return[(Number(i)%12||12).toString(),s,e]}const n=class{constructor(s){t(this,s),this.valueChange=i(this,"valueChange",7),this.hasErrorStateChanged=i(this,"hasErrorStateChanged",7),this.max="23:59",this.min="00:00",this.step=30,this.mode="single",this.timeFormat="24h",this.allowCustomOption=!1,this.showOptions=!1,this.options=[],this.handleInput=t=>{const i=t.target,s=i.value?.replace(/[^0-9:apmAPM]/g,"");this.value=s},this.handleFocus=()=>{this.showOptions=!0},this.handleBlur=()=>{const t=function(t){if(!t||""===t.trim()||0===t.replace(/[^0-9]/g,"").length)return null;let i=t.trim().toLowerCase();i=i.replace(/(\d)\s+(am|pm)/g,"$1$2"),/^\d{1,2}(am|pm)?$/.test(i)&&(i=i.replace(/(am|pm)?$/,":00$1")),/^\d{1,2}$/.test(i)&&(i=`${i}:00`),/^\d{1,2}:\d{1}$/.test(i)&&(i=`${i}0`);const[s,e]=i.split(":"),h=e.replace(/[^0-9]/g,""),n=i.includes("am");return i.includes("pm")||n?n?`${(Number(s)%12).toString().padStart(2,"0")}:${h}`:`${Number(s)%12+12}:${h}`:`${s.padStart(2,"0")}:${h}`}(this.value??"");this.value=t??void 0},this.handleClick=()=>{this.showOptions=!0}}onValueChange(t){this.valueChange.emit(t),this.updateState(t)}updateState(t){this.formattedValue=this.formatDisplayedTime(t),this.amPm=this.formatDisplayedAmPm(t),this.validateValue()}formatDisplayedTime(t){if(!t)return"";if("12h"===this.timeFormat&&t.includes(":")){const[i,s]=h(t);return`${i}:${s}`}return t}formatDisplayedAmPm(t){if(!t||"12h"!==this.timeFormat)return"";const[,,i]=h(t);return i}validateValue(){if(!this.value)return void(this.hasErrorState=this.required?"required":null);if(!this.value.includes(":")||this.value.trim().length<4||this.value.trim().length>5)return void(this.hasErrorState="Invalid time format, must be HH:MM");const t=String(this.min??"00:00"),i=String(this.max??"23:59");this.hasErrorState=this.value<t||this.value>i?"Out of range":this.allowCustomOption||this.options.some((t=>t.value===this.value))?null:"Invalid option"}onHasErrorStateChanged(t){this.hasErrorStateChanged.emit(t)}componentDidLoad(){"range"===this.mode&&console.warn("Range mode is not supported for time inputs at this time."),this.dropdown?.addEventListener("isOpenChange",(t=>{this.showOptions=t.detail}))}componentWillLoad(){this.options=this.getOptions(),this.value&&this.updateState(this.value)}getOptions(){return function(t,i,s,e){const n=t=>{const[i,s]=t.split(":").map(Number);return 60*i+s},r=n(i.toString()),o=n(s.toString()),a=[];for(let i=r;i<=o;i+=t)a.push((u=i,`${Math.floor(u/60).toString().padStart(2,"0")}:${(u%60).toString().padStart(2,"0")}`));var u;return a.map((t=>({label:"12h"===e?function(t){const[i,s,e]=h(t);return`${i}:${s} ${e}`}(t):t,value:t})))}(this.step,String(this.min??"00:00"),String(this.max??"23:59"),this.timeFormat??"24h").map((({label:t,value:i})=>({label:t,value:i,onClick:()=>{this.value=i,this.showOptions=!1}})))}render(){return s(e,{key:"61190dc5c00042aa095367bcce600a4d759bdbca",class:{"xpl-input-time":!0,[`xpl-input-time--mode-${this.mode}`]:!0,"xpl-input-time--error":!!this.hasErrorState}},s("xpl-input",{key:"8793e06e961f53794df33d0015280930a43d1a90",pre:s("xpl-icon",{class:"xpl-input-time__clock-icon",icon:"clock",size:24}),post:"12h"===this.timeFormat?this.amPm||"AM":void 0,type:"text",_id:this.inputId,disabled:this.disabled,name:this.name,required:this.required,readonly:this.readonly,placeholder:this.placeholder,max:this.max,min:this.min,onInput:this.handleInput,value:this.formattedValue,onFocusEvent:this.handleFocus,onBlurEvent:this.handleBlur,onClick:this.handleClick}),!this.readonly&&!this.disabled&&s("xpl-dropdown",{key:"7c88be365f26e1eecb6c731acb9d1c87d96973dd",options:this.options,isOpen:this.showOptions,ref:t=>{this.dropdown=t??void 0},class:"xpl-input-time__dropdown"}))}static get watchers(){return{value:[{onValueChange:0}],hasErrorState:[{onHasErrorStateChanged:0}]}}};export{n as xpl_input_time}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as d,H as s}from"./p-ukZKsqqq.js";const a=class{constructor(d){e(this,d)}render(){return d(s,{key:"3f8c104ae7775cda5f23ff515d8de7013d0ca09c"},d("dl",{key:"f68ec082b0f3587eb9977a03289097d3e838488d",class:"xpl-dashboard"},d("slot",{key:"f67b34cfe1683d3ee2f70be9d3d075603e536559"})))}};export{a as xpl_dashboard}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as s,h as a,H as t}from"./p-ukZKsqqq.js";const c=class{constructor(a){e(this,a),this.navOpen=s(this,"navOpen",7),this.navControl=!1}onNavToggle(){window.innerWidth<=640&&this.navOpen.emit(!1)}render(){return a(t,{key:"ffbe4b34fe5a30cec5bfe506fbc325663db7d02b",class:"xpl-nav-item",role:"listitem",onClick:()=>{this.navControl&&this.onNavToggle()}},a("slot",{key:"c772716a5cac78963468f7e6ae7a34f16dbd2636",name:"link"},a("slot",{key:"0b120ea6bc0e596fee7730459689906e2233521c",name:"icon"}),a("slot",{key:"fd9edd0051e771ba87a37b72245d3bcfa71bd468"})))}};export{c as xpl_nav_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as e,H as s}from"./p-ukZKsqqq.js";const i=class{constructor(e){t(this,e),this.pageChange=a(this,"pageChange",7),this.rowsPerPageChange=a(this,"rowsPerPageChange",7),this.totalPages=1,this.withPageControl=!1,this.currentPage=1,this.rowsPerPageOptions="10,25,50,100,150",this.selectedRowsPerPage=10,this.rowsPerPageSelectRef=null,this.pageSelectRef=null,this.pageChoices=[],this.handleNextPage=()=>{this.currentPage<this.totalPages&&(this.currentPage+=1)},this.handlePrevPage=()=>{this.currentPage>1&&(this.currentPage-=1)},this.handlePageChange=t=>{const a=parseInt(t.detail,10);Number.isNaN(a)||(this.currentPage=a)},this.handleRowsChange=t=>{const a=parseInt(t.detail,10);Number.isNaN(a)||(this.selectedRowsPerPage=a)}}get rowsPerPageOptionsArray(){return this.rowsPerPageOptions.split(",").map(Number)}onPageUpdate(t){t<1?this.currentPage=1:t>this.totalPages&&(this.currentPage=this.totalPages),this.buildPageChoices(),this.pageChange.emit(this.currentPage)}onTotalPagesUpdate(){this.currentPage>this.totalPages?this.currentPage=this.totalPages:this.buildPageChoices()}onRowsPerPageUpdate(t){this.rowsPerPageChange.emit(t)}buildPageChoices(){this.pageChoices=Array.from({length:this.totalPages},((t,a)=>({label:`Page ${a+1}`,value:(a+1).toString(),isSelected:a+1===this.currentPage})))}componentWillLoad(){this.buildPageChoices()}componentDidLoad(){this.rowsPerPageSelectRef?.addEventListener("changeEvent",this.handleRowsChange),this.pageSelectRef?.addEventListener("changeEvent",this.handlePageChange)}disconnectedCallback(){this.rowsPerPageSelectRef?.removeEventListener("changeEvent",this.handleRowsChange),this.pageSelectRef?.removeEventListener("changeEvent",this.handlePageChange)}render(){const t=this.currentPage<=1,a=this.currentPage>=this.totalPages;return e(s,{key:"9184904c32aa8d4e552f9493f343a162b8f2d8ee",class:{"xpl-pagination":!0,"xpl-pagination__with-page-control":this.withPageControl,"xpl-pagination__no-page-control":!this.withPageControl}},this.withPageControl&&e("div",{key:"26febbb3a6bf061bfcf8d61190dc7947aa04efb1",class:"xpl-pagination__rows-per-page"},e("label",{key:"7a5b406ee8bfd2582e8b543db14b39a493ff2d9c",class:"xpl-pagination__rows-label"},"Rows per page:"),e("xpl-select",{key:"d82e693f4ada5897f163ae5243c047348be63a08",class:"xpl-pagination__rows-per-page-select",dropdownFlipFallbackPlacements:["bottom-start"],dropdownPlacement:"top-start",choices:this.rowsPerPageOptionsArray.map((t=>({label:t.toString(),value:t.toString(),isSelected:t===this.selectedRowsPerPage}))),ref:t=>{this.rowsPerPageSelectRef=t??null}})),e("div",{key:"23fdb444921471c1121a82f6b17050beea69a93c",class:"xpl-pagination__pager"},e("button",{key:"bae0457c8c0cda02feb837de3c20965aabc937c0",class:"xpl-pagination__pager-button xpl-pagination__pager-button-prev",disabled:t,onClick:this.handlePrevPage,"aria-label":"Previous Page",tabindex:"0"},e("xpl-icon",{key:"714f2d15b2e2c129d2bd70c28858ac95ae3518a7",icon:"arrow-left",size:20})),e("xpl-select",{key:"c52b9974fc675706cdcfe43fe939225a4561cef5",class:"xpl-pagination__page-select",dropdownFlipFallbackPlacements:["bottom-start"],dropdownPlacement:"top-start",choices:this.pageChoices,"custom-display-value":!0,ref:t=>{this.pageSelectRef=t??null}},e("div",{key:"7dcc6c4b3f0b0470986006c2ab7dbcfcbaba0f92",slot:"custom-display-value"},`${this.currentPage} of ${this.totalPages}`)),e("button",{key:"0afaf6e4b4acd626e7972c0fb5d5f8aad1e16f2a",class:"xpl-pagination__pager-button xpl-pagination__pager-button-next",disabled:a,onClick:this.handleNextPage,"aria-label":"Next Page",tabindex:"0"},e("xpl-icon",{key:"3759f242a05741cf53938539cd69b9074c6cf323",icon:"arrow-right",size:20}))))}static get watchers(){return{currentPage:[{onPageUpdate:0}],totalPages:[{onTotalPagesUpdate:0}],selectedRowsPerPage:[{onRowsPerPageUpdate:0}]}}};export{i as xpl_pagination}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as e,h as i,H as t,g as a}from"./p-ukZKsqqq.js";import{e as n,g as d,h}from"./p-C_PEOQWj.js";const c=class{constructor(i){s(this,i),this.expandedChange=e(this,"expandedChange",7),this.hasBadgeSlot=!1,this.hasNamedBadgeSlot=!1,this.collapsible=!0,this.expanded=!1,this.handleHeaderClick=()=>{this.collapsible&&(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))}}connectedCallback(){this.syncBadgeSlot(),this.connectBadgeSlotObserver()}disconnectedCallback(){void 0!==this.badgeSlotSyncTimeoutId&&(clearTimeout(this.badgeSlotSyncTimeoutId),this.badgeSlotSyncTimeoutId=void 0),this.disconnectBadgeSlotObserver()}componentWillLoad(){this.childrenId=n(this.el,this.childrenId),this.syncBadgeSlot()}componentWillRender(){this.disconnectBadgeSlotObserver()}componentDidRender(){this.scheduleBadgeSlotSync()}connectBadgeSlotObserver(){this.disconnectBadgeSlotObserver(),"undefined"!=typeof MutationObserver&&(this.badgeSlotObserver=new MutationObserver((()=>{this.scheduleBadgeSlotSync()})),this.badgeSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectBadgeSlotObserver(){this.badgeSlotObserver?.disconnect(),this.badgeSlotObserver=void 0}scheduleBadgeSlotSync(){void 0!==this.badgeSlotSyncTimeoutId&&clearTimeout(this.badgeSlotSyncTimeoutId),this.badgeSlotSyncTimeoutId=setTimeout((()=>{this.badgeSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncBadgeSlot(),this.connectBadgeSlotObserver())}),0)}syncBadgeSlot(){const s=d(this.el,"badge","xpl-side-nav-section"),e=h(this.el,"badge","xpl-side-nav-section"),i=s.some((s=>s.textContent?.trim()||s.getAttribute("aria-label")?.trim()));e!==this.hasBadgeSlot&&(this.hasBadgeSlot=e),i!==this.hasNamedBadgeSlot&&(this.hasNamedBadgeSlot=i)}render(){const s=!this.collapsible||this.expanded,e=!!this.heading?.trim(),a=this.childrenId??n(this.el,this.childrenId),d=[i("span",{key:"c39c7044ae5ae1238df9aaf644a73b192dfd7f2b",class:"xpl-side-nav-section__title"},this.heading??""),i("span",{key:"a47fcc5b501f01d735cd2b9035063a2fa2c97a91",class:"xpl-side-nav-section__badge",hidden:!this.hasBadgeSlot},i("slot",{key:"06785bbb8eeb928b9ee7e04198df20fcf5bd739e",name:"badge"})),this.collapsible?i("span",{class:"xpl-side-nav-section__chevron","aria-hidden":"true"},i("xpl-icon",{icon:this.expanded?"chevron-down":"chevron-right",size:16})):null];return i(t,{key:"4ce2adbf830659bb0803d477386a004d47aa4335",class:{"xpl-side-nav-section":!0,"xpl-side-nav-section--static":!this.collapsible}},this.collapsible?i("button",{type:"button",class:"xpl-side-nav-section__header","aria-expanded":this.expanded?"true":"false","aria-controls":a,"aria-label":e||this.hasNamedBadgeSlot?void 0:"Toggle section",onClick:this.handleHeaderClick},d):i("div",{class:"xpl-side-nav-section__header"},d),i("div",{key:"2ccafafd7d73fc8eaf367e718e9c2681ece0e936",id:a,class:{"xpl-side-nav-section__children":!0,expanded:s},inert:!s||void 0},i("div",{key:"eaac1a443982eeca891d676511fe5bdb3f78db19",class:"xpl-side-nav-section__children-inner"},i("slot",{key:"67143e298920cff3b28a6db4fd2a2ac18935b991"}))))}get el(){return a(this)}};export{c as xpl_side_nav_section}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as e}from"./p-ukZKsqqq.js";const i=class{constructor(t){s(this,t),this.xs=6,this.sm=6,this.md=6,this.lg=6}render(){let s="xpl-grid-item";return s+=` xpl-grid-item-xs-${this.xs}`,s+=` xpl-grid-item-sm-${this.sm}`,s+=` xpl-grid-item-md-${this.md}`,s+=` xpl-grid-item-lg-${this.lg}`,t(e,{key:"e0f19711fdc2c90a192335de13f7adaeb65560ef",class:s},t("slot",{key:"f79adf56e33fdf5b4aceee1c2e9b8410d7a43350"}))}};export{i as xpl_grid_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as n,H as i,g as s}from"./p-ukZKsqqq.js";import{v as a}from"./p-CK3_k8jD.js";const o=[{countryCode:"US",dialCode:"+1",name:"United States"},{countryCode:"CA",dialCode:"+1",name:"Canada"},{countryCode:"GB",dialCode:"+44",name:"United Kingdom"},{countryCode:"AU",dialCode:"+61",name:"Australia"},{countryCode:"DE",dialCode:"+49",name:"Germany"},{countryCode:"FR",dialCode:"+33",name:"France"},{countryCode:"ES",dialCode:"+34",name:"Spain"},{countryCode:"IT",dialCode:"+39",name:"Italy"},{countryCode:"NL",dialCode:"+31",name:"Netherlands"},{countryCode:"BE",dialCode:"+32",name:"Belgium"},{countryCode:"AT",dialCode:"+43",name:"Austria"},{countryCode:"CH",dialCode:"+41",name:"Switzerland"},{countryCode:"PL",dialCode:"+48",name:"Poland"},{countryCode:"IE",dialCode:"+353",name:"Ireland"},{countryCode:"PT",dialCode:"+351",name:"Portugal"},{countryCode:"SE",dialCode:"+46",name:"Sweden"},{countryCode:"NO",dialCode:"+47",name:"Norway"},{countryCode:"DK",dialCode:"+45",name:"Denmark"},{countryCode:"FI",dialCode:"+358",name:"Finland"},{countryCode:"NZ",dialCode:"+64",name:"New Zealand"},{countryCode:"JP",dialCode:"+81",name:"Japan"},{countryCode:"CN",dialCode:"+86",name:"China"},{countryCode:"IN",dialCode:"+91",name:"India"},{countryCode:"BR",dialCode:"+55",name:"Brazil"},{countryCode:"MX",dialCode:"+52",name:"Mexico"},{countryCode:"ZA",dialCode:"+27",name:"South Africa"},{countryCode:"SG",dialCode:"+65",name:"Singapore"},{countryCode:"HK",dialCode:"+852",name:"Hong Kong"},{countryCode:"KR",dialCode:"+82",name:"South Korea"}];function r(e){return o.find((t=>t.countryCode===e))}function c(e){return(e||"").replace(/\D/g,"")}function h(e){switch(e){case"US":case"CA":case"MX":case"JP":case"IN":case"KR":return 10;case"GB":case"DE":case"AT":case"CH":case"BR":case"CN":return 11;case"AU":case"FR":return 9;default:return 15}}function d(e,t){if(!e)return"";const n=e.replace(/\D/g,"");switch(t){case"US":case"CA":return function(e){const t=Math.min(e.length,10);return t<=3?e.slice(0,t):t<=6?`${e.slice(0,3)} ${e.slice(3,t)}`:`${e.slice(0,3)} ${e.slice(3,6)} ${e.slice(6,t)}`}(n);case"GB":return function(e){const t=Math.min(e.length,11);return t<=4?e.slice(0,t):t<=7?`${e.slice(0,4)} ${e.slice(4,t)}`:`${e.slice(0,4)} ${e.slice(4,7)} ${e.slice(7,t)}`}(n);case"AU":return function(e){const t=Math.min(e.length,9);return t<=1?e.slice(0,t):t<=4?`${e.slice(0,1)} ${e.slice(1,t)}`:t<=7?`${e.slice(0,1)} ${e.slice(1,4)} ${e.slice(4,t)}`:`${e.slice(0,1)} ${e.slice(1,4)} ${e.slice(4,7)} ${e.slice(7,t)}`}(n);case"DE":case"AT":case"CH":return function(e){const t=Math.min(e.length,11);return t<=3?e.slice(0,t):`${e.slice(0,3)} ${e.slice(3,t)}`}(n);case"FR":return function(e){const t=Math.min(e.length,9),n=[];let i=0;for(t>0&&(n.push(e.slice(0,1)),i=1);i<t&&i+2<=t;)n.push(e.slice(i,i+2)),i+=2;return i<t&&n.push(e.slice(i)),n.join(" ")}(n);case"BR":return function(e){const t=Math.min(e.length,11);return t<=2?t?`(${e}`:"":t<=6||7===t?`(${e.slice(0,2)}) ${e.slice(2,t)}`:`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7,t)}`}(n);case"MX":return function(e){const t=Math.min(e.length,10);return t<=3?e.slice(0,t):t<=6?`${e.slice(0,3)} ${e.slice(3,t)}`:`${e.slice(0,3)} ${e.slice(3,6)} ${e.slice(6,t)}`}(n);case"JP":return function(e){const t=Math.min(e.length,10);return t<=3?e.slice(0,t):t<=7?`${e.slice(0,3)}-${e.slice(3,t)}`:`${e.slice(0,3)}-${e.slice(3,7)}-${e.slice(7,t)}`}(n);case"CN":return function(e){const t=Math.min(e.length,11);return t<=3?e.slice(0,t):t<=7?`${e.slice(0,3)} ${e.slice(3,t)}`:`${e.slice(0,3)} ${e.slice(3,7)} ${e.slice(7,t)}`}(n);case"IN":return function(e){const t=Math.min(e.length,10);return t<=5?e.slice(0,t):`${e.slice(0,5)} ${e.slice(5,t)}`}(n);case"KR":return function(e){const t=Math.min(e.length,10);return t<=3?e.slice(0,t):t<=7?`${e.slice(0,3)} ${e.slice(3,t)}`:`${e.slice(0,3)} ${e.slice(3,7)} ${e.slice(7,t)}`}(n);default:return function(e){const t=e.length;if(t<=3)return e;const n=[];let i=0;for(;i<t;){const s=t-i>=4?4:3;n.push(e.slice(i,i+s)),i+=s}return n.join(" ")}(n)}}function u(e){return e.toLowerCase().replace(/ /g,"-")}const l=class{constructor(n){e(this,n),this.hasErrorStateChanged=t(this,"hasErrorStateChanged",7),this.valueChange=t(this,"valueChange",7),this.lastCursorRef=0,this.lastFormattedRef="",this.dropdownOpen=!1,this.hasErrorState=null,this.nationalNumber="",this.searchQuery="",this.triggerId=`xpl-input-phone-trigger-${a()}`,this.defaultCountry="US",this.isInternational=!0,this.handleTriggerClick=()=>{this.isEditable&&(this.dropdownOpen=!this.dropdownOpen)},this.handleNumberInput=e=>{const t=e.target,n=t.value||"";let i;if(this.lastCursorRef=t.selectionStart??0,this.lastFormattedRef=n,this.isInternational&&n.startsWith("+")){const e=c(n),t=this.effectiveDialCode.slice(1).replace(/\D/g,"");i=t&&e.startsWith(t)?e.slice(t.length):e}else i=c(n);const s=h(this.effectiveCountryCode);i.length>s&&(i=i.slice(0,s)),this.nationalNumber=i,this.emitValue(),t.value=this.displayValue},this.handleClear=()=>{this.nationalNumber="",this.emitValue(),this.inputEl?.focus()},this.handleDropdownUpdate=(e,{component:t})=>{const n=t??this.dropdownRef;if(!n)return;const{options:i}=n;if(i?.length){const e=i.reduce(((e,t)=>[...e,...t.groupName?t.options??[]:[t]]),[]).find((e=>e.isSelected));if(e?.value){const t=r(e.value);t&&(this.selectedCountry=t,this.emitValue(),this.inputEl?.focus())}}}}onDropdownOpenChange(e){e&&(this.searchQuery="")}onHasErrorStateChanged(e){this.hasErrorStateChanged.emit(e)}onValueChange(e){if(null==e||""===e){const e=r(this.defaultCountry??"US")||o[0];return this.selectedCountry=e,void(this.nationalNumber="")}const t=function(e){if(!e||!e.startsWith("+"))return null;const t=e.slice(1).replace(/\D/g,"");if(!t.length)return null;const n=[...o].sort(((e,t)=>t.dialCode.replace(/\D/g,"").length-e.dialCode.replace(/\D/g,"").length)).find((e=>{const n=e.dialCode.slice(1).replace(/\D/g,"");return t.startsWith(n)}));if(!n)return null;const i=n.dialCode.slice(1).replace(/\D/g,""),s=t.slice(i.length);return{dialCode:n.dialCode,nationalNumber:s}}(e);if(t)if(this.selectedCountry?.dialCode===t.dialCode)this.nationalNumber=t.nationalNumber;else{const e=r(this.defaultCountry??"US"),i=(e?.dialCode===t.dialCode?e:void 0)??(n=t.dialCode,o.find((e=>e.dialCode===n)));i&&(this.selectedCountry=i,this.nationalNumber=t.nationalNumber)}else this.selectedCountry||(this.selectedCountry=r(this.defaultCountry??"US")||o[0]);var n}componentWillLoad(){this.value?this.onValueChange(this.value):this.selectedCountry=r(this.defaultCountry??"US")||o[0]}componentDidUpdate(){if(this.inputEl&&this.lastFormattedRef&&"function"==typeof this.inputEl.setSelectionRange){const e=function(e,t,n){if(n>=e.length)return t.length;const i=c(e.slice(0,n)).length;let s=0,a=0;for(let e=0;e<t.length;e+=1){if(/\d/.test(t[e])&&(a+=1,a>=i)){s=e+(a===i?1:0);break}s=e+1}return Math.min(s,t.length)}(this.lastFormattedRef,this.displayValue,this.lastCursorRef);this.inputEl.setSelectionRange(e,e),this.lastFormattedRef=""}else this.inputEl&&this.lastFormattedRef&&(this.lastFormattedRef="")}get effectiveCountryCode(){return this.selectedCountry?.countryCode??this.defaultCountry??"US"}get effectiveDialCode(){return this.selectedCountry?.dialCode??"+1"}get isEditable(){return!this.disabled&&!this.readonly}get orderedCountries(){const e=this.preferredCountries||[],t=o.filter((t=>!e.includes(t.countryCode)));return[...e.map((e=>r(e))).filter((e=>void 0!==e)),...t]}get filteredCountries(){const e=this.searchQuery.trim().toLowerCase();return e?this.orderedCountries.filter((t=>t.name.toLowerCase().includes(e)||t.dialCode.includes(e)||t.countryCode.toLowerCase().includes(e))):this.orderedCountries}get displayValue(){return this.nationalNumber?d(this.nationalNumber,this.effectiveCountryCode):""}get effectivePlaceholder(){if(this.placeholder)return this.placeholder;const e=this.selectedCountry;return e?function(e){switch(e){case"US":case"CA":case"MX":default:return"000 000 0000";case"GB":return"0000 000 0000";case"AU":return"0 000 000 000";case"DE":case"AT":case"CH":return"000 0000000";case"FR":return"0 00 00 00 00";case"BR":return"00 00000 0000";case"JP":case"CN":case"KR":return"000 0000 0000";case"IN":return"00000 00000"}}(e.countryCode):""}get dropdownOptions(){return this.filteredCountries.map((e=>({icon:u(e.name),label:`${e.name} (${e.dialCode})`,value:e.countryCode,isSelected:this.selectedCountry?.countryCode===e.countryCode})))}get maxInputLength(){const e=h(this.effectiveCountryCode);return d("9".repeat(e),this.effectiveCountryCode).length}emitValue(){const e=this.nationalNumber?function(e,t){const n=(e.slice(1)+t).replace(/\D/g,"");return n.length?`+${n}`:""}(this.effectiveDialCode,this.nationalNumber):"";this.value=e||void 0,this.valueChange.emit(e||""),this.validate()}validate(){this.hasErrorState=!this.required||this.nationalNumber.trim()?null:"required"}render(){return n(i,{key:"c180c62687c5d1b9c9f31400df8b76475ffe821e",class:{"xpl-input-phone":!0,"xpl-input-phone--error":!!this.hasErrorState||!!this.error,"xpl-input-phone--open":this.dropdownOpen,"xpl-input-phone--domestic":!this.isInternational}},n("div",{key:"ea5b833f60f7bac459ef6362091a15beac015dec",class:"xpl-input-wrapper"},this.isInternational&&n("button",{key:"6e0d7b18dc7784ffcadcc13500c02bbec1977b90",type:"button",id:this.triggerId,class:"xpl-input-phone__trigger",disabled:this.disabled,"aria-haspopup":"listbox","aria-expanded":this.dropdownOpen?"true":"false","aria-label":"Select country",onClick:this.handleTriggerClick},this.selectedCountry?.name&&n("xpl-icon",{key:"038a87158d9417ad9889e3b0a94cd63bc16f5538",class:"xpl-input-phone__flag",icon:u(this.selectedCountry.name),size:24,"aria-hidden":"true"}),n("xpl-icon",{key:"5434d2645e31bd30207c26f8e0a5004c00c699c6",class:"xpl-input-phone__trigger-icon",icon:"chevron-down",size:20,"aria-hidden":"true"})),n("div",{key:"623f1b49c156614a40cee574e1a41c2d09014e2b",class:"xpl-input-phone__input-wrap"},this.isInternational&&n("span",{key:"535313ab4c84a989b0bedfe07bbd080ffaa4b76b",class:"xpl-input-phone__dial-code"},this.effectiveDialCode),n("input",{key:"e9f03ca04b18fab0f9e6407f3686e43a072a3d81",ref:e=>{this.inputEl=e??void 0},type:"tel",id:this.inputId,class:"xpl-input-phone__input",name:this.name,disabled:this.disabled,readonly:this.readonly,required:this.required,"aria-invalid":this.hasErrorState||this.error?"true":"false",placeholder:this.effectivePlaceholder,autocomplete:this.isInternational?"tel-national":"tel",inputmode:"numeric",maxlength:this.maxInputLength,value:this.displayValue,onInput:this.handleNumberInput}),this.nationalNumber&&this.isEditable&&n("button",{key:"9e52b938631e3414225506cf13a50129e4046bd1",type:"button",class:"xpl-input-phone__clear","aria-label":"Clear phone number",onClick:this.handleClear},n("xpl-icon",{key:"d7fa5c395ac0677db31405b2406ec33c1aef8d7d",icon:"x-circle",size:16})))),this.isInternational&&this.isEditable&&n("xpl-dropdown",{key:"1df1f72efa719f230e582e57c62f62eff98abfc8",ref:e=>{this.dropdownRef=e??void 0},isOpen:this.dropdownOpen,triggerId:this.triggerId,anchorToTrigger:!0,closeOnSelect:!0,mode:"single",options:this.dropdownOptions,update:this.handleDropdownUpdate,onIsOpenChange:e=>{this.dropdownOpen=e.detail},"aria-label":"Country"},n("div",{key:"ce221f1de83d5cce87162c316aa3e64fbb0396a5",slot:"header",class:"xpl-input-phone__search-wrap"},n("xpl-input",{key:"884815148c6827573b8a7584bb06eb8cfeaa9976",class:"xpl-input-phone__search",type:"text",label:"",placeholder:"Search",value:this.searchQuery,autocomplete:"off",onInputEvent:e=>{this.searchQuery=e.detail??""}},n("xpl-icon",{key:"9edff232287061494d5b8af93885c2a12fbe969b",slot:"pre",class:"xpl-input-phone__search-icon",icon:"magnifier",size:20})))))}get el(){return s(this)}static get watchers(){return{dropdownOpen:[{onDropdownOpenChange:0}],hasErrorState:[{onHasErrorStateChanged:0}],value:[{onValueChange:0}]}}};export{l as xpl_input_phone}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as s,g as a}from"./p-ukZKsqqq.js";const n=class{constructor(i){t(this,i),this.navigate=e(this,"navigate",7),this.hasLeadingSlot=!1,this.hasTrailingSlot=!1,this.selected=!1,this.type="product-label",this.handleClick=()=>{"sub-account"===this.type&&this.navigate.emit()}}connectedCallback(){this.syncSlots(),this.connectSlotObserver()}disconnectedCallback(){void 0!==this.slotSyncTimeoutId&&(clearTimeout(this.slotSyncTimeoutId),this.slotSyncTimeoutId=void 0),this.disconnectSlotObserver()}componentWillLoad(){this.syncSlots()}componentWillRender(){this.disconnectSlotObserver()}componentDidRender(){this.scheduleSlotSync()}connectSlotObserver(){this.disconnectSlotObserver(),"undefined"!=typeof MutationObserver&&(this.slotObserver=new MutationObserver((()=>{this.scheduleSlotSync()})),this.slotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectSlotObserver(){this.slotObserver?.disconnect(),this.slotObserver=void 0}scheduleSlotSync(){void 0!==this.slotSyncTimeoutId&&clearTimeout(this.slotSyncTimeoutId),this.slotSyncTimeoutId=setTimeout((()=>{this.slotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncSlots(),this.connectSlotObserver())}),0)}syncSlots(){const t=t=>t.closest("xpl-side-nav-header-item")===this.el,e=Array.from(this.el.querySelectorAll('[slot="leading"]')).some(t),i=Array.from(this.el.querySelectorAll('[slot="trailing"]')).some(t);e!==this.hasLeadingSlot&&(this.hasLeadingSlot=e),i!==this.hasTrailingSlot&&(this.hasTrailingSlot=i)}render(){const t="sub-account"===this.type,e=!!this.icon||this.hasLeadingSlot,a=t&&!this.label?.trim()?"Sub-account":void 0,n=t&&!this.hasTrailingSlot,h=this.hasTrailingSlot||n,l=e?i("span",{class:"xpl-side-nav-header-item__leading"},i("slot",{name:"leading"},this.icon?i("xpl-icon",{icon:this.icon,size:16}):null)):null,d=h?i("span",{class:"xpl-side-nav-header-item__trailing","aria-hidden":n?"true":void 0},i("slot",{name:"trailing"},n?i("xpl-icon",{icon:"chevron-expand-y",size:16}):null)):null,r=i("span",{key:"0e94b81665c43c6dad594f6d78f153863cb0a5dd",class:"xpl-side-nav-header-item__content"},l,i("span",{key:"556354c3df994e36b803326e88bada417f20f2a4",class:"xpl-side-nav-header-item__label"},this.label??""),d);return i(s,{key:"f596403c230bcdf1aa35283f5943204d8a16debb",class:{"xpl-side-nav-header-item":!0,"xpl-side-nav-header-item--product-label":!t,"xpl-side-nav-header-item--sub-account":t,"xpl-side-nav-header-item--selected":t&&this.selected}},t?i("button",{type:"button",class:"xpl-side-nav-header-item__header","aria-current":this.selected?"true":void 0,"aria-label":a,onClick:this.handleClick},r):i("div",{class:"xpl-side-nav-header-item__header"},r))}get el(){return a(this)}};export{n as xpl_side_nav_header_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as a,h as t,H as s,g as c}from"./p-ukZKsqqq.js";const i=class{constructor(t){e(this,t),this.modalClosed=a(this,"modalClosed",7),this.dialogElement=null,this.isOpen=!1,this.size="medium",this.variant="default",this.handleDialogClose=()=>{this.isOpen=!1,this.modalClosed.emit()},this.handleNativeBackdropClick=e=>{const{dialogElement:a}=this;if(!a||e.target!==a)return;const t=a.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&this.handleDialogClose()}}componentDidLoad(){this.dialogElement=this.element.querySelector("dialog"),this.dialogElement&&(this.updateModalState(),this.dialogElement.addEventListener("cancel",this.handleDialogClose),this.dialogElement.addEventListener("click",this.handleNativeBackdropClick))}disconnectedCallback(){this.clearCloseTimer(),this.dialogElement&&(this.dialogElement.removeEventListener("cancel",this.handleDialogClose),this.dialogElement.removeEventListener("click",this.handleNativeBackdropClick))}updateModalState(){this.isOpen?(this.clearCloseTimer(),this.dialogElement?.showModal?.()):this.dialogElement&&"function"==typeof this.dialogElement.close&&(this.clearCloseTimer(),this.closeTimerId=setTimeout((()=>{this.closeTimerId=void 0,this.dialogElement?.close()}),250))}clearCloseTimer(){void 0!==this.closeTimerId&&(clearTimeout(this.closeTimerId),this.closeTimerId=void 0)}render(){return t(s,{key:"f7778c1d428d6a008cfe7731a7cbef692cf0dce8",class:"xpl-modal"},this.isOpen&&t("xpl-backdrop",{key:"764ba9d33983e2c680c732e909226a6295326b85"}),t("dialog",{key:"0d8c01d5dd3c9cb14cd3ca5d6c6a2a466cfbeb7c",class:`xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen?"is-open":"is-closed"}`},t("div",{key:"825ee88c897ba15bb75e851481f2f5078b647b6d",class:"xpl-modal__header"},t("div",{key:"7630900b3e13a9fcbe5e73db3cabe3f43efe5cb0",class:"xpl-modal__title"},"warning"===this.variant&&t("xpl-icon",{key:"5f1aadc57fe05727395f6feabbc4c9ce8c83dd61",size:20,icon:"triangle-warning",class:"xpl-modal__alert-icon"}),t("slot",{key:"2735d03fbc4e2520855a5225eed51c4c725c3732",name:"title"}),t("xpl-button",{key:"8c0196cb3d07388308451a050a4becac995cd281",type:"button",class:"xpl-modal__close-button","icon-only":!0,size:"sm",variant:"tertiary",onClick:this.handleDialogClose},t("xpl-icon",{key:"8f1764666f2b86592c0c62b06750edf29cc14a14",icon:"xmark"}))),t("div",{key:"6e4fc6a67288640f8a8ac1f69fb4f44df1c9d229",class:"xpl-modal__subtitle"},t("slot",{key:"ce59d8d14ffd3200e64c65a1ea2bda7918190a1f",name:"subtitle"}))),t("div",{key:"a1e6dd317884149a38863ba97b480f21feaf2657",class:"xpl-modal__body"},t("slot",{key:"43eb4ccf4febe7fe5ae5ed992ce5f6e701231247",name:"body"})),t("div",{key:"a0648d0b989c86ed2592fa15c2c0a06d6b5470e5",class:"xpl-modal__footer"},t("slot",{key:"3f6d0f703cb726d9f603aeeee42cf673dfbbeca6",name:"tertiary"}),t("slot",{key:"98412e5f51a4e86cc68dd3133de2611638deee7e",name:"secondary"}),t("slot",{key:"0121aca5ebaaa738fabf32da32e962deb7920fd5",name:"primary"}))))}get element(){return c(this)}static get watchers(){return{isOpen:[{updateModalState:0}]}}};export{i as xpl_modal}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as s,H as t}from"./p-ukZKsqqq.js";const a={success:"green",warning:"yellow",inactive:"gray",error:"red"},d=class{constructor(s){e(this,s),this.bordered=!1,this.dotOnly=!1,this.shape="rounded",this.size="default",this.variant="purple"}get resolvedVariant(){return a[this.variant]??this.variant}render(){return s(t,{key:"2d4179362c0cbb0b6f811311dd22388999e10862"},s("div",{key:"060964cfc2e6df5b51edc0af9a79e050fddcb4ae",class:{"xpl-badge--dot-only":!!this.dotOnly,"xpl-badge--dot-only-bordered":!!this.dotOnly&&!!this.bordered,"xpl-badge":!this.dotOnly,"xpl-badge--dot":!this.dotOnly&&!!this.dot,[`xpl-badge--${this.resolvedVariant}`]:!0,[`xpl-badge--size-${this.size}`]:!!this.size,[`xpl-badge--shape-${this.shape}`]:!this.dotOnly&&!!this.shape}},s("span",{key:"54f018c6ece279aa17c655b1e5502a6526173433",class:"xpl-badge__label"},s("slot",{key:"4199e21fb1d83f81cf5001c0c51902f1bc8764f6"}))))}};export{d as xpl_badge}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t,H as e}from"./p-ukZKsqqq.js";import{v as h}from"./p-CK3_k8jD.js";const c=class{constructor(e){s(this,e),this.choicelistChange=i(this,"choicelistChange",7),this.choicelistValueChange=i(this,"choicelistValueChange",7),this.name=h(),this.onChoiceChange=(s,i)=>{const t=this.choices[i];if(this.multi){if(this.selected=this.selected.map(((s,t)=>t===i?!s:s)),void 0!==t?.value){const s=this.choices.filter(((s,i)=>this.selected[i])).map(((s,i)=>s.value??this.selected[i]));this.choicelistValueChange.emit(s)}}else this.selected=this.selected.map(((s,t)=>t===i)),void 0!==t?.value&&this.choicelistValueChange.emit(t.value)},this.renderChoice=({description:s,label:i,value:e,checked:h},c)=>this.multi?t("xpl-checkbox",{value:e,description:s,name:this.name,checked:h,onCheckboxChange:s=>this.onChoiceChange(s.detail,c)},i):t("xpl-radio",{value:e,description:s,name:this.name,checked:h,onRadioChange:s=>this.onChoiceChange(s.detail,c)},i)}onChoicesPropChange(s){this.selected=null!=s&&s.length>0?s.map((s=>s.checked||!1)):[]}onSelectedChange(s){this.choicelistChange.emit(s)}componentWillLoad(){this.onChoicesPropChange(this.choices)}render(){return t(e,{key:"e46ee9af6a052090343eeadbcba66997b38d2edc",class:"xpl-choicelist-container"},void 0!==this.heading||void 0!==this.description?t("div",{class:"xpl-choicelist-heading"},this.heading&&t("h3",null,this.heading),this.description&&t("p",null,this.description)):null,this.choices&&t("ul",{key:"4f995575dae9b8b1a8f136b3a336fd5ccce7e3f1",class:{"xpl-choicelist":!0,"xpl-choicelist--styled":!!this.styled}},this.choices.map(((s,i)=>{const e=this.renderChoice(s,i);return t("li",{class:{selected:!!this.styled&&!!this.selected[i]}},e,s.children&&t("ul",null,s.children.map(((s,i)=>{const e=this.renderChoice(s,i);return t("li",null,e)}))))}))))}static get watchers(){return{choices:[{onChoicesPropChange:0}],selected:[{onSelectedChange:0}]}}};export{c as xpl_choicelist}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,g as a}from"./p-ukZKsqqq.js";const i=class{constructor(s){t(this,s),this.selectedItemCountChange=e(this,"selectedItemCountChange",7),this.colCount=0,this.hasAccordion=!1,this.selectedItemCount=0}updateColumnCount(){const t=this.el.querySelectorAll("xpl-table-header-cell");if(t.length===this.colCount)return;const e=Array.from(t).map((t=>null!==t.getAttribute("width")?`${t.getAttribute("width")}px`:"1fr"));this.el.style.setProperty("--xpl-column-widths",e.join(" ")),this.colCount=t.length}listenToDeselectEvent(){this.selectedItemCount=0,this.selectedItemCountChange.emit([])}listenToChangeEvent(){const t=document.querySelectorAll('.xpl-dynamic-table xpl-checkbox:not([class^="xpl-header-accordion__parent-checkbox"]) input:not([disabled])'),e=Array.from(t).filter((t=>t.checked)).map((t=>t.getAttribute("data-id")??""));this.selectedItemCount=e.length,this.selectedItemCountChange.emit(e)}updateRowGap(){this.hasAccordion=null!==this.el.querySelector("xpl-header-accordion")}componentDidLoad(){this.updateColumnCount(),this.updateRowGap()}componentDidUpdate(){this.updateColumnCount()}render(){return s("div",{key:"227ec50512aeedc2cd1989c3eb59e8d990ff9e9f",role:"grid",class:{"xpl-dynamic-table":!0,"xpl-dynamic-table--accordion":this.hasAccordion},"aria-colcount":this.colCount},s("slot",{key:"7dbc7ff3246211e89da64d07593a015016c60b59",name:"header"}),s("slot",{key:"2f4fd56d6f05d62bc2eb57afaf1d3e382c06ca57",name:"body"}))}get el(){return a(this)}};export{i as xpl_dynamic_table}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e,H as c}from"./p-ukZKsqqq.js";const s=class{constructor(e){a(this,e)}render(){return e(c,{key:"9d5cdbf77eba7913892f083ccaab8f878455c11e",class:"xpl-secondary-nav"},e("nav",{key:"4b56938320beada9e879c71866c3c48d37020f47","aria-label":"Secondary Nav"},e("slot",{key:"613ff6145ce13a4eee2b2dcae31b63eb89a860d0"})))}};export{s as xpl_secondary_nav}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as s,h as t,H as e,g as n}from"./p-ukZKsqqq.js";import{h}from"./p-C_PEOQWj.js";const a=class{constructor(t){i(this,t),this.expandedChange=s(this,"expandedChange",7),this.navigate=s(this,"navigate",7),this.hasTrailingSlot=!1,this.disabled=!1,this.expanded=!1,this.hasChildren=!1,this.hidden=!1,this.link=!1,this.selected=!1,this.handleClick=()=>{this.disabled||(this.hasChildren?(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded)):this.navigate.emit())}}syncLinkHasChildrenExclusivity(){this.enforceLinkExcludesHasChildren()}connectedCallback(){this.syncTrailingSlot(),this.connectTrailingSlotObserver()}disconnectedCallback(){void 0!==this.trailingSlotSyncTimeoutId&&(clearTimeout(this.trailingSlotSyncTimeoutId),this.trailingSlotSyncTimeoutId=void 0),this.disconnectTrailingSlotObserver()}componentWillLoad(){this.syncLinkHasChildrenExclusivity(),this.syncTrailingSlot()}componentWillRender(){this.syncLinkHasChildrenExclusivity(),this.disconnectTrailingSlotObserver()}componentDidRender(){this.scheduleTrailingSlotSync()}connectTrailingSlotObserver(){this.disconnectTrailingSlotObserver(),"undefined"!=typeof MutationObserver&&(this.trailingSlotObserver=new MutationObserver((()=>{this.scheduleTrailingSlotSync()})),this.trailingSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectTrailingSlotObserver(){this.trailingSlotObserver?.disconnect(),this.trailingSlotObserver=void 0}scheduleTrailingSlotSync(){void 0!==this.trailingSlotSyncTimeoutId&&clearTimeout(this.trailingSlotSyncTimeoutId),this.trailingSlotSyncTimeoutId=setTimeout((()=>{this.trailingSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncTrailingSlot(),this.connectTrailingSlotObserver())}),0)}syncTrailingSlot(){const i=h(this.el,"trailing","xpl-side-nav-item");i!==this.hasTrailingSlot&&(this.hasTrailingSlot=i)}enforceLinkExcludesHasChildren(){this.link&&(this.hasChildren&&(this.hasChildren=!1),this.el.hasAttribute("has-children")&&this.el.removeAttribute("has-children"))}render(){const i=this.hasChildren&&!this.hasTrailingSlot,s={"xpl-side-nav-item__link":!0,expanded:this.expanded,selected:this.selected};return t(e,{key:"173aa913d77c88522069cb4beef76d5b04b9beb1",class:{"xpl-side-nav-item":!0,"xpl-side-nav-item--link-disabled":this.link&&this.disabled}},this.link?t("slot",null):t("button",{type:"button",class:s,"aria-current":this.selected?"page":void 0,"aria-expanded":this.hasChildren?this.expanded?"true":"false":void 0,onClick:this.handleClick,disabled:this.disabled},t("span",{class:"xpl-side-nav-item__leading"},t("slot",{name:"leading"},this.icon?t("xpl-icon",{icon:this.icon,size:16}):null)),t("span",{class:"xpl-side-nav-item__label"},this.label??""),(this.hasTrailingSlot||this.hasChildren)&&t("span",{class:{"xpl-side-nav-item__trailing":!0,"xpl-side-nav-item__trailing--chevron":i,expanded:i&&this.expanded},"aria-hidden":i?"true":void 0},t("slot",{name:"trailing"},i?t("xpl-icon",{icon:this.expanded?"chevron-up":"chevron-down",size:16}):null))),this.hasChildren&&!this.link&&t("div",{key:"7611d4a00248e27f0e5d38fb4890950854e5023e",class:"xpl-side-nav-item__children "+(this.expanded?"expanded":""),inert:!this.expanded||void 0},t("div",{key:"79676aa8d5f3d9396629cf7b9d9f5ebc142fc2ad",class:"xpl-side-nav-item__children-inner"},t("slot",{key:"42bcc845f6b7f9085f0095f1337c2cf3f4be6698"}))))}get el(){return n(this)}static get watchers(){return{hasChildren:[{syncLinkHasChildrenExclusivity:0}],link:[{syncLinkHasChildrenExclusivity:0}]}}};export{a as xpl_side_nav_item}
|