@xplortech/apollo-core 2.12.0 → 3.1.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 +61 -0
- package/AGENTS.md +4 -4
- package/README.md +30 -3
- package/build/components/modal.css +1 -1
- package/build/components/table-body.css +1 -0
- package/build/components/table-footer-cell.css +1 -0
- package/build/components/table-footer.css +1 -0
- package/build/components/table-row.css +1 -0
- package/build/components/top-nav.css +1 -1
- package/build/components-manifest.json +13 -1
- package/build/core.css +1 -1
- package/build/style.css +1 -1
- package/dist/apollo-core/apollo-core.css +1 -1
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-d37488d4.entry.js → p-0368a1df.entry.js} +1 -1
- package/dist/apollo-core/p-056a99e4.entry.js +1 -0
- package/dist/apollo-core/p-068e3532.entry.js +1 -0
- package/dist/apollo-core/{p-121d1a4b.entry.js → p-06a9a27b.entry.js} +1 -1
- package/dist/apollo-core/{p-9747cf43.entry.js → p-0958c719.entry.js} +1 -1
- package/dist/apollo-core/p-0a0a6e43.entry.js +1 -0
- package/dist/apollo-core/{p-643c8038.entry.js → p-149ddd12.entry.js} +1 -1
- package/dist/apollo-core/p-1a94c2d9.entry.js +1 -0
- package/dist/apollo-core/{p-efa21ec0.entry.js → p-2139f9f6.entry.js} +1 -1
- package/dist/apollo-core/{p-76f64d65.entry.js → p-28bce81a.entry.js} +1 -1
- package/dist/apollo-core/{p-1a417191.entry.js → p-2938ab4f.entry.js} +1 -1
- package/dist/apollo-core/{p-4e61587f.entry.js → p-2c995d80.entry.js} +1 -1
- package/dist/apollo-core/p-2faa7b9c.entry.js +1 -0
- package/dist/apollo-core/p-30b1b700.entry.js +1 -0
- package/dist/apollo-core/p-32084caf.entry.js +1 -0
- package/dist/apollo-core/p-38586952.entry.js +1 -0
- package/dist/apollo-core/{p-707b1918.entry.js → p-47bda204.entry.js} +1 -1
- package/dist/apollo-core/{p-f199ad66.entry.js → p-4a2323b3.entry.js} +1 -1
- package/dist/apollo-core/{p-c25aebe5.entry.js → p-4ad79534.entry.js} +1 -1
- package/dist/apollo-core/{p-e4ae3f60.entry.js → p-4d4acd1f.entry.js} +1 -1
- package/dist/apollo-core/p-50fae269.entry.js +1 -0
- package/dist/apollo-core/{p-7f105d63.entry.js → p-54903322.entry.js} +1 -1
- package/dist/apollo-core/{p-8a81ef98.entry.js → p-5730d96c.entry.js} +1 -1
- package/dist/apollo-core/{p-46d21684.entry.js → p-581b702c.entry.js} +1 -1
- package/dist/apollo-core/{p-853418be.entry.js → p-5d9a593e.entry.js} +1 -1
- package/dist/apollo-core/{p-e00ed4f4.entry.js → p-60cb3cfb.entry.js} +1 -1
- package/dist/apollo-core/p-722b145a.entry.js +1 -0
- package/dist/apollo-core/p-75e5bfe0.entry.js +1 -0
- package/dist/apollo-core/p-77fe3cc1.entry.js +1 -0
- package/dist/apollo-core/{p-26861d09.entry.js → p-790709c0.entry.js} +1 -1
- package/dist/apollo-core/{p-7976cd3b.entry.js → p-82812126.entry.js} +1 -1
- package/dist/apollo-core/{p-c427a31d.entry.js → p-83bb7607.entry.js} +1 -1
- package/dist/apollo-core/p-8664d88b.entry.js +1 -0
- package/dist/apollo-core/{p-3d9c90ee.entry.js → p-9064badb.entry.js} +1 -1
- package/dist/apollo-core/{p-5ca18bc1.entry.js → p-91895c40.entry.js} +1 -1
- package/dist/apollo-core/p-969d5cca.entry.js +1 -0
- package/dist/apollo-core/p-99a79cf4.entry.js +1 -0
- package/dist/apollo-core/p-abdf199b.entry.js +1 -0
- package/dist/apollo-core/p-ae8a5f66.entry.js +1 -0
- package/dist/apollo-core/{p-9b0174b1.entry.js → p-af8ebf49.entry.js} +1 -1
- package/dist/apollo-core/p-b29025b2.entry.js +1 -0
- package/dist/apollo-core/{p-fd2756d8.entry.js → p-b45179fb.entry.js} +1 -1
- package/dist/apollo-core/p-b5a61076.entry.js +1 -0
- package/dist/apollo-core/p-bf7d8e18.entry.js +1 -0
- package/dist/apollo-core/p-c48e4884.entry.js +1 -0
- package/dist/apollo-core/{p-b537f72d.entry.js → p-ca4652b3.entry.js} +1 -1
- package/dist/apollo-core/{p-bb22ed2a.entry.js → p-cb5b15c2.entry.js} +1 -1
- package/dist/apollo-core/p-cc57f20d.entry.js +1 -0
- package/dist/apollo-core/{p-fef6c256.entry.js → p-cdacfcd4.entry.js} +1 -1
- package/dist/apollo-core/{p-616c5a32.entry.js → p-cdb5b5c4.entry.js} +1 -1
- package/dist/apollo-core/p-d0bc7c45.entry.js +1 -0
- package/dist/apollo-core/{p-ff8acf15.entry.js → p-d41b8f46.entry.js} +1 -1
- package/dist/apollo-core/{p-9bf2ff9f.entry.js → p-d443291f.entry.js} +1 -1
- package/dist/apollo-core/p-d724c419.entry.js +1 -0
- package/dist/apollo-core/p-d9070ae5.entry.js +1 -0
- package/dist/apollo-core/p-dca48977.entry.js +1 -0
- package/dist/apollo-core/p-e1833287.entry.js +1 -0
- package/dist/apollo-core/{p-601b3ab5.entry.js → p-e2890eb1.entry.js} +1 -1
- package/dist/apollo-core/p-e2b73b60.entry.js +1 -0
- package/dist/apollo-core/p-e7e445b0.entry.js +1 -0
- package/dist/apollo-core/p-f1c103ff.entry.js +1 -0
- package/dist/apollo-core/{p-0463c29f.entry.js → p-f3a2c79b.entry.js} +1 -1
- package/dist/apollo-core/p-ffc2f0cf.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +1 -1
- package/dist/cjs/index-3cBvw409.js +16 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/xpl-accordion.cjs.entry.js +2 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +5 -4
- package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/xpl-badge.cjs.entry.js +1 -1
- package/dist/cjs/xpl-banner.cjs.entry.js +2 -2
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
- package/dist/cjs/xpl-button.cjs.entry.js +1 -1
- package/dist/cjs/xpl-calendar.cjs.entry.js +1 -1
- package/dist/cjs/xpl-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
- package/dist/cjs/xpl-content-area.cjs.entry.js +1 -1
- package/dist/cjs/xpl-dashboard.cjs.entry.js +1 -1
- package/dist/cjs/xpl-data-card.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +14 -11
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +1 -1
- package/dist/cjs/xpl-icon.cjs.entry.js +2 -2
- package/dist/cjs/xpl-input-color.cjs.entry.js +13 -13
- package/dist/cjs/xpl-input-phone.cjs.entry.js +5 -5
- package/dist/cjs/xpl-input-time.cjs.entry.js +2 -2
- package/dist/cjs/xpl-input_4.cjs.entry.js +15 -14
- package/dist/cjs/xpl-large-card.cjs.entry.js +1 -1
- package/dist/cjs/xpl-list.cjs.entry.js +2 -2
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-modal.cjs.entry.js +50 -21
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +2 -2
- package/dist/cjs/xpl-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-pagination.cjs.entry.js +4 -4
- package/dist/cjs/xpl-panel.cjs.entry.js +2 -2
- package/dist/cjs/xpl-popover.cjs.entry.js +4 -4
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-select_2.cjs.entry.js +8 -8
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +5 -5
- package/dist/cjs/xpl-side-nav.cjs.entry.js +7 -3
- package/dist/cjs/xpl-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/xpl-slideout.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-body.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-footer-cell.cjs.entry.js +18 -0
- package/dist/cjs/xpl-table-footer.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-header.cjs.entry.js +1 -1
- package/dist/cjs/xpl-table-row.cjs.entry.js +20 -0
- package/dist/cjs/xpl-table.cjs.entry.js +5 -5
- package/dist/cjs/xpl-tabs.cjs.entry.js +5 -5
- package/dist/cjs/xpl-toast.cjs.entry.js +2 -2
- package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
- package/dist/cjs/xpl-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +2 -2
- package/dist/cjs/xpl-top-nav.cjs.entry.js +5 -5
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +1 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +2 -2
- 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/xpl-button.js +1 -1
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +3 -3
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -1
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +2 -2
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
- 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 +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +10 -7
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +1 -1
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input.js +7 -6
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
- package/dist/collection/components/xpl-list/xpl-list.js +2 -2
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +50 -21
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +4 -4
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js +3 -3
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.shared.js +82 -0
- package/dist/collection/components/xpl-select/xpl-select.js +6 -6
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +2 -2
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +5 -5
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +8 -4
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +1 -1
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +37 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +78 -0
- package/dist/collection/components/xpl-table/xpl-table.js +5 -5
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-tabs/tabs.shared.js +0 -33
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +5 -5
- package/dist/collection/components/xpl-tag/xpl-tag.js +2 -2
- package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +5 -5
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-9VnxPQLs.js +1 -0
- package/dist/components/p-B2oLZUDD.js +1 -0
- package/dist/components/p-BYYFsuD3.js +1 -0
- package/dist/components/p-BZtxVB1R.js +1 -0
- package/dist/components/{p-BGqQbjLl.js → p-BdpZR4KO.js} +1 -1
- package/dist/components/{p-DywQ3S73.js → p-Chpgh5SL.js} +1 -1
- package/dist/components/{p-2jYZ7ACH.js → p-CiHTfk3E.js} +1 -1
- package/dist/components/p-CnVGKN63.js +1 -0
- package/dist/components/p-Cz7zDaI4.js +1 -0
- package/dist/components/{p-CjbPCnPP.js → p-D--kzomA.js} +1 -1
- package/dist/components/p-D4rv6CNJ.js +1 -0
- package/dist/components/{p-Dzp5p-eh.js → p-DAb-txW3.js} +1 -1
- package/dist/components/p-DYmvElhR.js +1 -0
- package/dist/components/{p-DsRsm61K.js → p-EfW0v54z.js} +1 -1
- package/dist/components/{p-DWUJ_jsx.js → p-JyNpXfDe.js} +1 -1
- package/dist/components/{p-DS2Kv5fl.js → p-U0JYwf4c.js} +1 -1
- package/dist/components/p-YG9Jza0y.js +1 -0
- package/dist/components/{p-imCMp2Nl.js → p-l3EZ-agL.js} +1 -1
- package/dist/components/p-oIn1krdu.js +1 -0
- package/dist/components/p-wIU7KUhA.js +1 -0
- package/dist/components/{p-BnTsRbko.js → p-xFsB212F.js} +1 -1
- package/dist/components/p-xtOHikY0.js +1 -0
- 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.js +1 -1
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.js +1 -1
- 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-body.d.ts +11 -0
- package/dist/components/xpl-table-body.js +1 -0
- package/dist/components/xpl-table-footer-cell.d.ts +11 -0
- package/dist/components/xpl-table-footer-cell.js +1 -0
- package/dist/components/xpl-table-footer.d.ts +11 -0
- package/dist/components/xpl-table-footer.js +1 -0
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.d.ts +11 -0
- package/dist/components/xpl-table-row.js +1 -0
- 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.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-modal/readme.md +18 -2
- package/dist/docs/xpl-table/xpl-table-body/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +31 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +34 -0
- package/dist/docs.json +207 -6
- package/dist/esm/apollo-core.js +1 -1
- package/dist/esm/index-ukZKsqqq.js +16 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/xpl-accordion.entry.js +2 -2
- package/dist/esm/xpl-application-shell.entry.js +1 -1
- package/dist/esm/xpl-avatar_3.entry.js +5 -4
- package/dist/esm/xpl-backdrop.entry.js +1 -1
- package/dist/esm/xpl-badge.entry.js +1 -1
- package/dist/esm/xpl-banner.entry.js +2 -2
- package/dist/esm/xpl-breadcrumb-item.entry.js +1 -1
- package/dist/esm/xpl-breadcrumbs.entry.js +1 -1
- package/dist/esm/xpl-button-row.entry.js +1 -1
- package/dist/esm/xpl-button.entry.js +1 -1
- package/dist/esm/xpl-calendar.entry.js +1 -1
- package/dist/esm/xpl-checkbox.entry.js +3 -3
- package/dist/esm/xpl-choicelist.entry.js +1 -1
- package/dist/esm/xpl-content-area.entry.js +1 -1
- package/dist/esm/xpl-dashboard.entry.js +1 -1
- package/dist/esm/xpl-data-card.entry.js +2 -2
- package/dist/esm/xpl-dropdown_4.entry.js +14 -11
- package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table.entry.js +2 -2
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-header-accordion.entry.js +1 -1
- package/dist/esm/xpl-icon.entry.js +2 -2
- package/dist/esm/xpl-input-color.entry.js +13 -13
- package/dist/esm/xpl-input-phone.entry.js +5 -5
- package/dist/esm/xpl-input-time.entry.js +2 -2
- package/dist/esm/xpl-input_4.entry.js +15 -14
- package/dist/esm/xpl-large-card.entry.js +1 -1
- package/dist/esm/xpl-list.entry.js +2 -2
- package/dist/esm/xpl-main-nav.entry.js +1 -1
- package/dist/esm/xpl-modal.entry.js +50 -21
- package/dist/esm/xpl-nav-header-menu.entry.js +2 -2
- package/dist/esm/xpl-nav-item.entry.js +2 -2
- package/dist/esm/xpl-pagination.entry.js +4 -4
- package/dist/esm/xpl-panel.entry.js +2 -2
- package/dist/esm/xpl-popover.entry.js +4 -4
- package/dist/esm/xpl-progress-bar.entry.js +2 -2
- package/dist/esm/xpl-progress-indicator.entry.js +1 -1
- package/dist/esm/xpl-secondary-nav.entry.js +1 -1
- package/dist/esm/xpl-select_2.entry.js +8 -8
- package/dist/esm/xpl-side-nav-header-item.entry.js +2 -2
- package/dist/esm/xpl-side-nav-item.entry.js +2 -2
- package/dist/esm/xpl-side-nav-section.entry.js +5 -5
- package/dist/esm/xpl-side-nav.entry.js +8 -4
- package/dist/esm/xpl-skeleton.entry.js +1 -1
- package/dist/esm/xpl-slideout.entry.js +1 -1
- package/dist/esm/xpl-tab-panel.entry.js +2 -2
- package/dist/esm/xpl-table-body.entry.js +12 -0
- package/dist/esm/xpl-table-footer-cell.entry.js +16 -0
- package/dist/esm/xpl-table-footer.entry.js +12 -0
- package/dist/esm/xpl-table-header.entry.js +1 -1
- package/dist/esm/xpl-table-row.entry.js +18 -0
- package/dist/esm/xpl-table.entry.js +5 -5
- package/dist/esm/xpl-tabs.entry.js +5 -5
- package/dist/esm/xpl-toast.entry.js +2 -2
- package/dist/esm/xpl-toggle.entry.js +3 -3
- package/dist/esm/xpl-toolbar.entry.js +2 -2
- package/dist/esm/xpl-tooltip.entry.js +1 -1
- package/dist/esm/xpl-top-nav-item.entry.js +2 -2
- package/dist/esm/xpl-top-nav-menu.entry.js +2 -2
- package/dist/esm/xpl-top-nav.entry.js +5 -5
- package/dist/esm/xpl-utility-bar.entry.js +1 -1
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +7 -1
- package/dist/types/components/xpl-select/select.shared.d.ts +23 -0
- package/dist/types/components/xpl-table/xpl-table-body/xpl-table-body.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +4 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +6 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +0 -2
- package/dist/types/components.d.ts +98 -0
- package/hydrate/index.js +302 -176
- package/hydrate/index.mjs +302 -176
- package/package.json +42 -46
- package/dist/apollo-core/p-0095174c.entry.js +0 -1
- package/dist/apollo-core/p-020ecd66.entry.js +0 -1
- package/dist/apollo-core/p-091411e3.entry.js +0 -1
- package/dist/apollo-core/p-0be4dbb8.entry.js +0 -1
- package/dist/apollo-core/p-1139fac0.entry.js +0 -1
- package/dist/apollo-core/p-140a96c7.entry.js +0 -1
- package/dist/apollo-core/p-26b6a0ed.entry.js +0 -1
- package/dist/apollo-core/p-39e71d86.entry.js +0 -1
- package/dist/apollo-core/p-3dd1de49.entry.js +0 -1
- package/dist/apollo-core/p-4129d971.entry.js +0 -1
- package/dist/apollo-core/p-5afc9831.entry.js +0 -1
- package/dist/apollo-core/p-5d25a84a.entry.js +0 -1
- package/dist/apollo-core/p-5e5c5016.entry.js +0 -1
- package/dist/apollo-core/p-638fd9b1.entry.js +0 -1
- package/dist/apollo-core/p-724c5038.entry.js +0 -1
- package/dist/apollo-core/p-80a11cad.entry.js +0 -1
- package/dist/apollo-core/p-875e0eaa.entry.js +0 -1
- package/dist/apollo-core/p-8ddbf2e2.entry.js +0 -1
- package/dist/apollo-core/p-a33b0943.entry.js +0 -1
- package/dist/apollo-core/p-ba41bbd5.entry.js +0 -1
- package/dist/apollo-core/p-cde21f72.entry.js +0 -1
- package/dist/apollo-core/p-d288c1d1.entry.js +0 -1
- package/dist/apollo-core/p-d3f2b8b8.entry.js +0 -1
- package/dist/apollo-core/p-dfaba114.entry.js +0 -1
- package/dist/apollo-core/p-e2a16242.entry.js +0 -1
- package/dist/apollo-core/p-ec488f9c.entry.js +0 -1
- package/dist/apollo-core/p-f2bfe6a6.entry.js +0 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +0 -84
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +0 -755
- package/dist/collection/components/xpl-avatar/avatar.stories.js +0 -157
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +0 -38
- package/dist/collection/components/xpl-badge/badge.stories.js +0 -104
- package/dist/collection/components/xpl-banner/banner.stories.js +0 -69
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +0 -139
- package/dist/collection/components/xpl-button/button.stories.js +0 -144
- package/dist/collection/components/xpl-button-row/button-row.stories.js +0 -68
- package/dist/collection/components/xpl-calendar/calendar.stories.js +0 -71
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +0 -92
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +0 -162
- package/dist/collection/components/xpl-content-area/content-area.stories.js +0 -44
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +0 -57
- package/dist/collection/components/xpl-data-card/data-card.stories.js +0 -170
- package/dist/collection/components/xpl-divider/divider.stories.js +0 -47
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +0 -395
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +0 -169
- package/dist/collection/components/xpl-grid/grid.stories.js +0 -85
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +0 -56
- package/dist/collection/components/xpl-icon/icons.stories.js +0 -161
- package/dist/collection/components/xpl-input/input.stories.js +0 -712
- package/dist/collection/components/xpl-large-card/large-card.stories.js +0 -155
- package/dist/collection/components/xpl-list/list.stories.js +0 -398
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +0 -312
- package/dist/collection/components/xpl-modal/modal.stories.js +0 -100
- package/dist/collection/components/xpl-pagination/pagination.stories.js +0 -65
- package/dist/collection/components/xpl-panel/panel.stories.js +0 -62
- package/dist/collection/components/xpl-popover/popover.stories.js +0 -174
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +0 -105
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +0 -126
- package/dist/collection/components/xpl-radio/radio.stories.js +0 -115
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +0 -83
- package/dist/collection/components/xpl-select/select.stories.js +0 -300
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +0 -1070
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +0 -80
- package/dist/collection/components/xpl-slideout/slideout.stories.js +0 -122
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +0 -392
- package/dist/collection/components/xpl-table/table.stories.js +0 -156
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -134
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -83
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +0 -40
- package/dist/collection/components/xpl-tabs/tabs.stories.js +0 -43
- package/dist/collection/components/xpl-tag/tag.stories.js +0 -159
- package/dist/collection/components/xpl-toast/toast.stories.js +0 -112
- package/dist/collection/components/xpl-toggle/toggle.stories.js +0 -95
- package/dist/collection/components/xpl-toolbar/toolbar.stories.js +0 -39
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +0 -67
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +0 -764
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +0 -94
- package/dist/components/p-Bseq_BgD.js +0 -1
- package/dist/components/p-CCgZCY_A.js +0 -1
- package/dist/components/p-CJzsLWeV.js +0 -1
- package/dist/components/p-CRKY79vL.js +0 -1
- package/dist/components/p-Cjxw-qOg.js +0 -1
- package/dist/components/p-D6JUVA1x.js +0 -1
- package/dist/components/p-DFGw0APN.js +0 -1
- package/dist/components/p-DLLQBDCb.js +0 -1
- package/dist/components/p-Di1NDy0w.js +0 -1
- package/dist/components/p-DkM7jyQB.js +0 -1
- package/dist/components/p-Mehog36m.js +0 -1
- package/dist/components/p-RYnBuuDE.js +0 -1
- package/dist/css/typography.stories.js +0 -153
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +0 -46
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +0 -46
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +0 -39
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +0 -23
- package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -87
- package/dist/types/components/xpl-banner/banner.stories.d.ts +0 -79
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +0 -40
- package/dist/types/components/xpl-button/button.stories.d.ts +0 -136
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +0 -34
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +0 -45
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +0 -51
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +0 -30
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +0 -19
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +0 -22
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +0 -113
- package/dist/types/components/xpl-divider/divider.stories.d.ts +0 -28
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +0 -177
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +0 -30
- package/dist/types/components/xpl-grid/grid.stories.d.ts +0 -109
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +0 -32
- package/dist/types/components/xpl-icon/icons.stories.d.ts +0 -31
- package/dist/types/components/xpl-input/input.stories.d.ts +0 -441
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +0 -57
- package/dist/types/components/xpl-list/list.stories.d.ts +0 -385
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +0 -19
- package/dist/types/components/xpl-modal/modal.stories.d.ts +0 -103
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +0 -31
- package/dist/types/components/xpl-panel/panel.stories.d.ts +0 -30
- package/dist/types/components/xpl-popover/popover.stories.d.ts +0 -21
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +0 -62
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +0 -64
- package/dist/types/components/xpl-radio/radio.stories.d.ts +0 -96
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +0 -8
- package/dist/types/components/xpl-select/select.stories.d.ts +0 -158
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +0 -173
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +0 -36
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +0 -124
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +0 -203
- package/dist/types/components/xpl-table/table.stories.d.ts +0 -67
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +0 -80
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +0 -36
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +0 -134
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +0 -107
- package/dist/types/components/xpl-tag/tag.stories.d.ts +0 -68
- package/dist/types/components/xpl-toast/toast.stories.d.ts +0 -70
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +0 -53
- package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +0 -35
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +0 -29
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +0 -549
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +0 -27
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +0 -11
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +0 -76
- /package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/{src/utils → utils}/form-bindings.d.ts +0 -0
- /package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/{src/utils → utils}/story-vrt.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as s,g as n}from"./p-ukZKsqqq.js";import{T as h}from"./p-Dqb1pIRo.js";let l=!1;const r=class{constructor(i){t(this,i),this.itemSelect=e(this,"itemSelect",7),this.orderChange=e(this,"orderChange",7),this.draggedItem=null,this.listItems=[],this.nextAutoItemIdSeq=0,this.radioName=`xpl-list-radio-${Math.random().toString(36).slice(2,11)}`,this.timers=new h,this.keyboardReorderItemId=null,this.reorderLiveMessage="",this.items=[],this.reorderable=!1,this.selectable=!1}handleKeyboardReorderItemIdChange(){this.collectListItems()}handleItemsChange(){this.collectListItems()}handleReorderableChange(){this.collectListItems()}handleSelectableChange(){this.collectListItems()}componentWillLoad(){this.collectListItems(),this.items.length>0&&!l&&(l=!0,console.warn('[xpl-list] The "items" prop is deprecated. Use slot-based xpl-list-item children instead.'))}componentDidLoad(){this.collectListItems()}disconnectedCallback(){this.timers.dispose()}handleKeyDown(t){if(!this.selectable||"Escape"!==t.key||t.defaultPrevented)return;const e=(i=t,(i.composedPath?.()??[]).find((t=>t instanceof HTMLElement&&"xpl-list-item"===t.tagName.toLowerCase()))??null);var i;if(!e||e.parentElement!==this.el)return;const s=e.querySelector('.xpl-list-item__selectable input[type="radio"]');(s instanceof HTMLInputElement&&s.checked||e.selected)&&(t.preventDefault(),this.clearSelection())}handleChildItemSelect(t){if(!this.selectable)return;const e=t.target;"XPL-LIST-ITEM"===e.tagName&&e.parentElement===this.el&&this.syncSelectionFromChildDetail(t.detail)}handleSlotChange(){this.collectListItems()}handleItemDragStart(t){const e=t.detail?.item;if(!e||e.parentElement!==this.el)return;null!==this.keyboardReorderItemId&&(this.keyboardReorderItemId=null),this.draggedItem=e;const i=this.draggedItem.querySelector(".xpl-list-item__wrapper");i?.classList.add("dragging")}handleItemDragEnd(t){const e=t.detail?.item;if(e&&e.parentElement===this.el){if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}this.draggedItem=null}}handleItemDrop(t){const e=t.detail?.item;if(e&&e.parentElement===this.el)if(this.draggedItem&&this.draggedItem.parentElement!==this.el)this.draggedItem=null;else{if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}if(this.draggedItem&&e&&this.draggedItem!==e){const t=this.getVisibleListItemElements(),i=t.indexOf(this.draggedItem),s=t.indexOf(e);if(-1!==i&&-1!==s){const t=i>s?"up":"down",n=this.getItemRowId(this.draggedItem);if("up"===t)this.el.insertBefore(this.draggedItem,e);else{const t=this.getNextVisibleListItemAfter(e);t?this.el.insertBefore(this.draggedItem,t):this.el.appendChild(this.draggedItem)}const h=this.getOrderedItemIds();this.orderChange.emit({itemId:n,direction:t,orderedItemIds:h}),this.announceReorder(n,h),this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{itemId:n,direction:t,fromIndex:i,toIndex:s,orderedItemIds:h}}))}}this.draggedItem=null,t.preventDefault()}}handleItemReorder(t){t.stopPropagation();const{direction:e,itemId:i,keyboardMode:s,exitKeyboardMode:n}=t.detail;void 0!==s&&(this.keyboardReorderItemId=s?i??null:null),n&&(this.keyboardReorderItemId=null),e&&i&&this.performReorder(i,e)&&this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{...t.detail,orderedItemIds:this.getOrderedItemIds()}}))}async clearSelection(){if(!this.selectable)return;this.collectListItems();const t=[];this.listItems.forEach((e=>{const i=e.querySelector('.xpl-list-item__selectable input[type="radio"]');if(i instanceof HTMLInputElement&&i.checked||e.selected){const i=this.getItemRowId(e);i&&t.push(i)}}));const e=[...new Set(t)];this.listItems.forEach((t=>{const e=t.querySelector('.xpl-list-item__selectable input[type="radio"]');e instanceof HTMLInputElement&&(e.checked=!1)})),this.listItems.forEach((t=>{t.selected&&(t.selected=!1)})),e.forEach((t=>{this.itemSelect.emit({itemId:t})}))}syncSelectionFromChildDetail(t){this.collectListItems();const e=t.itemId,i=null!=e&&""!==e;this.listItems.forEach((t=>{const s=this.getItemRowId(t);t.selected=i&&s===e}))}performReorder(t,e){this.listItems=this.getVisibleListItemElements();const i=this.listItems.findIndex((e=>this.getItemRowId(e)===t));if(-1===i)return!1;const s="up"===e?i-1:i+1;if(s<0||s>=this.listItems.length)return!1;const n=this.listItems[i],h=this.listItems[s];if("up"===e)this.el.insertBefore(n,h);else{const t=this.getNextVisibleListItemAfter(h);t?this.el.insertBefore(n,t):this.el.appendChild(n)}const l=this.getOrderedItemIds();return this.orderChange.emit({itemId:t,direction:e,orderedItemIds:l}),this.announceReorder(t,l),this.timers.requestAnimationFrame((()=>{if(!this.el.isConnected)return;const e=this.getDirectChildListItems().find((e=>this.getItemRowId(e)===t)),i=e?.querySelector(".xpl-list-item__drag-handle"),s=i?.querySelector?.("button")instanceof HTMLElement?i.querySelector("button"):i;s instanceof HTMLElement&&s.focus()})),!0}getOrderedItemIds(){return this.getVisibleListItemElements().map((t=>this.getItemRowId(t)))}announceReorder(t,e){if(!this.reorderable||!t)return;const i=e.indexOf(t);if(i<0)return;const s=i+1,n=e.length;this.reorderLiveMessage="",this.timers.requestAnimationFrame((()=>{this.el.isConnected&&(this.reorderLiveMessage=`Item ${t}, now position ${s} of ${n}`)}))}getDirectChildListItems(){return Array.from(this.el.children).filter((t=>"xpl-list-item"===t.tagName.toLowerCase()))}getVisibleListItemElements(){return this.getDirectChildListItems().filter((t=>!t.hasAttribute("hidden")))}isLegacyPropBasedRow(t){return null!=t.item}getNextVisibleListItemAfter(t){let e=t.nextElementSibling;for(;e;){if(e instanceof HTMLElement&&"xpl-list-item"===e.tagName.toLowerCase()&&!e.hasAttribute("hidden"))return e;e=e.nextElementSibling}return null}collectListItems(){this.listItems=this.getDirectChildListItems();const t=new Set;this.listItems.forEach((e=>{const i=e.getAttribute("item-id")||e.id||(e.itemId?String(e.itemId):"");i&&t.add(i)})),this.listItems.forEach((e=>{if(!e.hasAttribute("item-id")&&!e.id)if(e.itemId)e.setAttribute("item-id",e.itemId),t.add(e.itemId);else{let i;do{i=`item-${this.nextAutoItemIdSeq}`,this.nextAutoItemIdSeq+=1}while(t.has(i));e.setAttribute("item-id",i),t.add(i)}this.isLegacyPropBasedRow(e)?(e.removeAttribute("selectable"),e.removeAttribute("radio-name"),e.removeAttribute("reorderable")):(this.selectable?(e.setAttribute("selectable","true"),e.setAttribute("radio-name",this.radioName)):(e.removeAttribute("selectable"),e.removeAttribute("radio-name")),this.reorderable?e.setAttribute("reorderable","true"):e.removeAttribute("reorderable"));const i=this.getItemRowId(e);this.isLegacyPropBasedRow(e)?e.removeAttribute("keyboard-active"):this.keyboardReorderItemId&&i===this.keyboardReorderItemId?e.setAttribute("keyboard-active","true"):e.removeAttribute("keyboard-active")}))}getItemRowId(t){return t.getAttribute("item-id")||t.id||t.itemId||""}render(){const t=this.labelledBy?.trim()?this.labelledBy.trim():void 0,e=!t&&this.label?.trim()?this.label.trim():void 0;return i(s,{key:"
|
|
1
|
+
import{r as t,c as e,h as i,H as s,g as n}from"./p-ukZKsqqq.js";import{T as h}from"./p-Dqb1pIRo.js";let l=!1;const r=class{constructor(i){t(this,i),this.itemSelect=e(this,"itemSelect",7),this.orderChange=e(this,"orderChange",7),this.draggedItem=null,this.listItems=[],this.nextAutoItemIdSeq=0,this.radioName=`xpl-list-radio-${Math.random().toString(36).slice(2,11)}`,this.timers=new h,this.keyboardReorderItemId=null,this.reorderLiveMessage="",this.items=[],this.reorderable=!1,this.selectable=!1}handleKeyboardReorderItemIdChange(){this.collectListItems()}handleItemsChange(){this.collectListItems()}handleReorderableChange(){this.collectListItems()}handleSelectableChange(){this.collectListItems()}componentWillLoad(){this.collectListItems(),this.items.length>0&&!l&&(l=!0,console.warn('[xpl-list] The "items" prop is deprecated. Use slot-based xpl-list-item children instead.'))}componentDidLoad(){this.collectListItems()}disconnectedCallback(){this.timers.dispose()}handleKeyDown(t){if(!this.selectable||"Escape"!==t.key||t.defaultPrevented)return;const e=(i=t,(i.composedPath?.()??[]).find((t=>t instanceof HTMLElement&&"xpl-list-item"===t.tagName.toLowerCase()))??null);var i;if(!e||e.parentElement!==this.el)return;const s=e.querySelector('.xpl-list-item__selectable input[type="radio"]');(s instanceof HTMLInputElement&&s.checked||e.selected)&&(t.preventDefault(),this.clearSelection())}handleChildItemSelect(t){if(!this.selectable)return;const e=t.target;"XPL-LIST-ITEM"===e.tagName&&e.parentElement===this.el&&this.syncSelectionFromChildDetail(t.detail)}handleSlotChange(){this.collectListItems()}handleItemDragStart(t){const e=t.detail?.item;if(!e||e.parentElement!==this.el)return;null!==this.keyboardReorderItemId&&(this.keyboardReorderItemId=null),this.draggedItem=e;const i=this.draggedItem.querySelector(".xpl-list-item__wrapper");i?.classList.add("dragging")}handleItemDragEnd(t){const e=t.detail?.item;if(e&&e.parentElement===this.el){if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}this.draggedItem=null}}handleItemDrop(t){const e=t.detail?.item;if(e&&e.parentElement===this.el)if(this.draggedItem&&this.draggedItem.parentElement!==this.el)this.draggedItem=null;else{if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}if(this.draggedItem&&e&&this.draggedItem!==e){const t=this.getVisibleListItemElements(),i=t.indexOf(this.draggedItem),s=t.indexOf(e);if(-1!==i&&-1!==s){const t=i>s?"up":"down",n=this.getItemRowId(this.draggedItem);if("up"===t)this.el.insertBefore(this.draggedItem,e);else{const t=this.getNextVisibleListItemAfter(e);t?this.el.insertBefore(this.draggedItem,t):this.el.appendChild(this.draggedItem)}const h=this.getOrderedItemIds();this.orderChange.emit({itemId:n,direction:t,orderedItemIds:h}),this.announceReorder(n,h),this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{itemId:n,direction:t,fromIndex:i,toIndex:s,orderedItemIds:h}}))}}this.draggedItem=null,t.preventDefault()}}handleItemReorder(t){t.stopPropagation();const{direction:e,itemId:i,keyboardMode:s,exitKeyboardMode:n}=t.detail;void 0!==s&&(this.keyboardReorderItemId=s?i??null:null),n&&(this.keyboardReorderItemId=null),e&&i&&this.performReorder(i,e)&&this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{...t.detail,orderedItemIds:this.getOrderedItemIds()}}))}async clearSelection(){if(!this.selectable)return;this.collectListItems();const t=[];this.listItems.forEach((e=>{const i=e.querySelector('.xpl-list-item__selectable input[type="radio"]');if(i instanceof HTMLInputElement&&i.checked||e.selected){const i=this.getItemRowId(e);i&&t.push(i)}}));const e=[...new Set(t)];this.listItems.forEach((t=>{const e=t.querySelector('.xpl-list-item__selectable input[type="radio"]');e instanceof HTMLInputElement&&(e.checked=!1)})),this.listItems.forEach((t=>{t.selected&&(t.selected=!1)})),e.forEach((t=>{this.itemSelect.emit({itemId:t})}))}syncSelectionFromChildDetail(t){this.collectListItems();const e=t.itemId,i=null!=e&&""!==e;this.listItems.forEach((t=>{const s=this.getItemRowId(t);t.selected=i&&s===e}))}performReorder(t,e){this.listItems=this.getVisibleListItemElements();const i=this.listItems.findIndex((e=>this.getItemRowId(e)===t));if(-1===i)return!1;const s="up"===e?i-1:i+1;if(s<0||s>=this.listItems.length)return!1;const n=this.listItems[i],h=this.listItems[s];if("up"===e)this.el.insertBefore(n,h);else{const t=this.getNextVisibleListItemAfter(h);t?this.el.insertBefore(n,t):this.el.appendChild(n)}const l=this.getOrderedItemIds();return this.orderChange.emit({itemId:t,direction:e,orderedItemIds:l}),this.announceReorder(t,l),this.timers.requestAnimationFrame((()=>{if(!this.el.isConnected)return;const e=this.getDirectChildListItems().find((e=>this.getItemRowId(e)===t)),i=e?.querySelector(".xpl-list-item__drag-handle"),s=i?.querySelector?.("button")instanceof HTMLElement?i.querySelector("button"):i;s instanceof HTMLElement&&s.focus()})),!0}getOrderedItemIds(){return this.getVisibleListItemElements().map((t=>this.getItemRowId(t)))}announceReorder(t,e){if(!this.reorderable||!t)return;const i=e.indexOf(t);if(i<0)return;const s=i+1,n=e.length;this.reorderLiveMessage="",this.timers.requestAnimationFrame((()=>{this.el.isConnected&&(this.reorderLiveMessage=`Item ${t}, now position ${s} of ${n}`)}))}getDirectChildListItems(){return Array.from(this.el.children).filter((t=>"xpl-list-item"===t.tagName.toLowerCase()))}getVisibleListItemElements(){return this.getDirectChildListItems().filter((t=>!t.hasAttribute("hidden")))}isLegacyPropBasedRow(t){return null!=t.item}getNextVisibleListItemAfter(t){let e=t.nextElementSibling;for(;e;){if(e instanceof HTMLElement&&"xpl-list-item"===e.tagName.toLowerCase()&&!e.hasAttribute("hidden"))return e;e=e.nextElementSibling}return null}collectListItems(){this.listItems=this.getDirectChildListItems();const t=new Set;this.listItems.forEach((e=>{const i=e.getAttribute("item-id")||e.id||(e.itemId?String(e.itemId):"");i&&t.add(i)})),this.listItems.forEach((e=>{if(!e.hasAttribute("item-id")&&!e.id)if(e.itemId)e.setAttribute("item-id",e.itemId),t.add(e.itemId);else{let i;do{i=`item-${this.nextAutoItemIdSeq}`,this.nextAutoItemIdSeq+=1}while(t.has(i));e.setAttribute("item-id",i),t.add(i)}this.isLegacyPropBasedRow(e)?(e.removeAttribute("selectable"),e.removeAttribute("radio-name"),e.removeAttribute("reorderable")):(this.selectable?(e.setAttribute("selectable","true"),e.setAttribute("radio-name",this.radioName)):(e.removeAttribute("selectable"),e.removeAttribute("radio-name")),this.reorderable?e.setAttribute("reorderable","true"):e.removeAttribute("reorderable"));const i=this.getItemRowId(e);this.isLegacyPropBasedRow(e)?e.removeAttribute("keyboard-active"):this.keyboardReorderItemId&&i===this.keyboardReorderItemId?e.setAttribute("keyboard-active","true"):e.removeAttribute("keyboard-active")}))}getItemRowId(t){return t.getAttribute("item-id")||t.id||t.itemId||""}render(){const t=this.labelledBy?.trim()?this.labelledBy.trim():void 0,e=!t&&this.label?.trim()?this.label.trim():void 0;return i(s,{key:"8b055baaf9acc04df19be097d0fb5bcb86c7165a",role:"list",class:{"xpl-list":!0},"aria-label":e,"aria-labelledby":t},this.items?.map(((t,e)=>{const s=t.id??`item-${e}`;return i("xpl-list-item",{key:`legacy-item-${s}`,item:t,href:t.href,itemId:s})})),i("slot",{key:"103e3fb6cb29f9527b090dd9e53412528ed7b9c2"}),this.reorderable?i("div",{class:"xpl-list__reorder-live","aria-live":"assertive","aria-atomic":"true"},this.reorderLiveMessage):null)}get el(){return n(this)}static get watchers(){return{keyboardReorderItemId:[{handleKeyboardReorderItemIdChange:0}],items:[{handleItemsChange:0}],reorderable:[{handleReorderableChange:0}],selectable:[{handleSelectableChange:0}]}}};export{r as xpl_list}
|
|
@@ -1 +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:"
|
|
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:"4c8f4f0e0742c67f965d04aed382259cd120d922",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}
|
|
@@ -1 +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:"
|
|
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:"33de33212fc2c0fe5ed3ae6cd8aba38178052a03",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:"d9e6ea08b992177a943eb43e64702deee74a95d8",class:"xpl-side-nav-item__children "+(this.expanded?"expanded":""),inert:!this.expanded||void 0},t("div",{key:"7a5709e3c20d569fbc7ab1425280096dc21cb40f",class:"xpl-side-nav-item__children-inner"},t("slot",{key:"883d0336ad81eb78b52dab740440191e57f92618"}))))}get el(){return n(this)}static get watchers(){return{hasChildren:[{syncLinkHasChildrenExclusivity:0}],link:[{syncLinkHasChildrenExclusivity:0}]}}};export{a as xpl_side_nav_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,H as i,g as e}from"./p-ukZKsqqq.js";let a=!1;const c=class{constructor(i){s(this,i),this.caption="",this.dismissible=!0,this.showIcon=!0,this.timeout=8e3,this.variant="neutral",this.handleAnimationEnd=()=>{this.el?.classList.contains("xpl-toast--dismissed")&&this.el?.remove()},this.getIcon=()=>{switch(this.variant){case"warning":return t("xpl-icon",{size:24,icon:"octagon-warning"});case"success":return t("xpl-icon",{size:24,icon:"circle-check"});default:return t("xpl-icon",{size:24,icon:"message-writing"})}},this.dismiss=()=>{this.el?.classList.add("xpl-toast--dismissed")}}handleDismissableChange(){void 0!==this.dismissable&&(a||(a=!0,console.warn('[xpl-toast] The "dismissable" prop is deprecated (misspelled). Use "dismissible" instead.')))}handleTimeoutChange(){this.scheduleAutoDismiss()}disconnectedCallback(){this.clearAutoDismissTimer()}componentWillLoad(){this.handleDismissableChange()}componentDidLoad(){this.scheduleAutoDismiss()}get isDismissible(){return this.dismissable??this.dismissible}clearAutoDismissTimer(){void 0!==this.dismissTimerId&&(clearTimeout(this.dismissTimerId),this.dismissTimerId=void 0)}scheduleAutoDismiss(){this.clearAutoDismissTimer(),(this.actionSlot?.children?.length??0)<1&&this.timeout>0&&(this.dismissTimerId=setTimeout((()=>{this.dismiss()}),this.timeout))}render(){return t(i,{key:"
|
|
1
|
+
import{r as s,h as t,H as i,g as e}from"./p-ukZKsqqq.js";let a=!1;const c=class{constructor(i){s(this,i),this.caption="",this.dismissible=!0,this.showIcon=!0,this.timeout=8e3,this.variant="neutral",this.handleAnimationEnd=()=>{this.el?.classList.contains("xpl-toast--dismissed")&&this.el?.remove()},this.getIcon=()=>{switch(this.variant){case"warning":return t("xpl-icon",{size:24,icon:"octagon-warning"});case"success":return t("xpl-icon",{size:24,icon:"circle-check"});default:return t("xpl-icon",{size:24,icon:"message-writing"})}},this.dismiss=()=>{this.el?.classList.add("xpl-toast--dismissed")}}handleDismissableChange(){void 0!==this.dismissable&&(a||(a=!0,console.warn('[xpl-toast] The "dismissable" prop is deprecated (misspelled). Use "dismissible" instead.')))}handleTimeoutChange(){this.scheduleAutoDismiss()}disconnectedCallback(){this.clearAutoDismissTimer()}componentWillLoad(){this.handleDismissableChange()}componentDidLoad(){this.scheduleAutoDismiss()}get isDismissible(){return this.dismissable??this.dismissible}clearAutoDismissTimer(){void 0!==this.dismissTimerId&&(clearTimeout(this.dismissTimerId),this.dismissTimerId=void 0)}scheduleAutoDismiss(){this.clearAutoDismissTimer(),(this.actionSlot?.children?.length??0)<1&&this.timeout>0&&(this.dismissTimerId=setTimeout((()=>{this.dismiss()}),this.timeout))}render(){return t(i,{key:"8628e33a84d0ca36d5b99c791cf7860cadae6fb8",class:`xpl-toast xpl-toast--${this.variant}`,onAnimationEnd:this.handleAnimationEnd},t("div",{key:"d1ea50362731f7cef97152eac2962f4d4084c514",class:"xpl-toast__left"},this.showIcon&&t("div",{key:"7eab4f78d0f8a2f5af12eeb1d74b14c300914841",class:`xpl-toast__icon xpl-toast__icon--${this.variant}`},this.getIcon()),t("div",{key:"335be6f702b7300498d2960cb7184fe1fec059b4",class:"xpl-toast__notification"},t("p",{key:"1178d039190352d0482ae7486711ab2adfd2cc8f",class:"xpl-toast__title"},t("slot",{key:"75a98536db36c7a140b3d908cbd8f3d2e201ca81",name:"title"})),""!==this.caption&&t("p",{key:"009bba836fe9abbf34edf4618dd172961e9440fa",class:"xpl-toast__caption"},this.caption?.substring(0,85)))),t("div",{key:"4f47e498ea0c7627d9041a7a2e898fcecff9f59c",class:"xpl-toast__action",ref:s=>{s&&(this.actionSlot=s)}},t("slot",{key:"6ad3199d265b1298ea8200ba53690dcc92bdbf92",name:"action"})),this.isDismissible&&t("div",{key:"b1a1a790a592f5e4c7573c819b0c997a210bd68a",class:"xpl-toast__close"},t("xpl-button",{key:"2d9ad71fc8f8233f2fc12453ca8268fd5f1d8f74",variant:"tertiary",size:"sm",iconOnly:!0,icon:"xmark",type:"button","aria-label":"Dismiss notification",onClick:this.dismiss})))}get el(){return e(this)}static get watchers(){return{dismissable:[{handleDismissableChange:0}],timeout:[{handleTimeoutChange:0}]}}};export{c as xpl_toast}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as e,H as s}from"./p-ukZKsqqq.js";const a=class{constructor(e){r(this,e),this.relative=!1}render(){return e(s,{key:"cf17e9f02e1ee67631159e1d159f539827344c30",class:{"xpl-backdrop":!0,"xpl-backdrop--fixed":!this.relative,"xpl-backdrop--relative":this.relative},"aria-hidden":"true"})}};export{a as xpl_backdrop}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as c,H as e}from"./p-ukZKsqqq.js";const r=class{constructor(c){a(this,c)}render(){return c(e,{key:"63e77e937ec359fdac15cf8a48673176696395bc"},c("nav",{key:"6bf6c1b401d010676b7317d9356aac5e4893fd1b",class:"xpl-breadcrumbs","aria-label":"Breadcrumb"},c("ol",{key:"177206147c779f29a20369e49852d11ba0d990d5",role:"list"},c("slot",{key:"9cdadc4378fa2da5a3c0213c46c58f8701472b80"}))))}};export{r as xpl_breadcrumbs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e,H as s}from"./p-ukZKsqqq.js";const f=class{constructor(e){a(this,e)}render(){return e(s,{key:"65628c79753f54949bfe0a6dfede9bf4e09cf585"},e("dl",{key:"aa6444eea3322331350fbc1b0db6b23e316d393e",class:"xpl-dashboard"},e("slot",{key:"3b54ed1755a0cc72ef5527afafdf156660afcfdf"})))}};export{f as xpl_dashboard}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,H as
|
|
1
|
+
import{r as e,h as i,H as t,g as s}from"./p-ukZKsqqq.js";import{h as a}from"./p-DkqlawVY.js";const h=[".xpl-nav-header-menu__right-aside-mobile"],d=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:h});e!==this.rightAsideMobilePresent&&(this.rightAsideMobilePresent=e)}render(){return i(t,{key:"36df50ceb427be007b8da6c4e6154ab0267e7e6b",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:"5906352d9c6580f96cb3e1ba3ae841b04c136a27",class:"xpl-nav-header-menu__profile"},i("div",{key:"38ad80fe95f2ea56e12f3dfeea32af734f31aafd",class:"xpl-nav-header-menu__info"},this.username&&i("div",{key:"a58f2ab162da92c5afbfaf01234748a6478a61db",class:"xpl-nav-header-menu__username",title:this.username},this.username),this.email&&i("div",{key:"d91f764a3b4278937d1bac6ed670f1e2abf899b0",class:"xpl-nav-header-menu__email",title:this.email},this.email))),i("div",{key:"78fade2c6cc2ec049b40ca3093f77855b46ee7db",class:"xpl-nav-header-menu__right-aside-mobile"},i("slot",{key:"9715e86a06f642f1b0455e43f12fc83c1fdc20f8",name:"right-aside-mobile"})),i("div",{key:"c1893f276e93629ff8dd96f807579b2b991ea884",class:"xpl-nav-header-menu__slot",role:"list"},i("slot",{key:"23218885442af87a956216af71b598c2eb478eff"})))}get el(){return s(this)}};export{d as xpl_nav_header_menu}
|
|
@@ -1 +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:"
|
|
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:"0db2f4a4109a65ae2ab01259b960f83dd3b8bbeb",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:"53915c9efd628e455b5604f4eacbc67504a52ca5",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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as
|
|
1
|
+
import{r as e,h as t,H as a,g as s}from"./p-ukZKsqqq.js";import{h as i}from"./p-_r9-FML8.js";const d="graph-content",r=class{constructor(t){e(this,t),this.graphContentPresent=!1}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 e=this.el.getElementsByTagName("a")[0]||this.el.getElementsByTagName("button")[0],t=document.createTextNode(this.name),a=document.createElement("span");a.appendChild(t),e.setAttribute("class","xpl-large-card__anchor"),e.appendChild(a)}}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 e=i(this.el,d);e!==this.graphContentPresent&&(this.graphContentPresent=e)}render(){return t(a,{key:"9fdddb5c8d02400545f57499c92af0ee0aa4be67",role:"group",class:"xpl-large-card "+(this.link?"xpl-large-card__link":""),tabindex:"0"},t("dt",{key:"3854e5f89efa2c968f7abeb8284c0ab8e3e31fda",class:"xpl-large-card__header"},t("header",{key:"0057d377780108f886dae2d9a6a1f3d81748b5fc"},t("slot",{key:"243d38d7635a2e288a1ec7f7894b772d5005acee",name:"title"},this.name),this.link&&t("span",{key:"f2ce2ff09a50471ee255bac8bda406908c272388",class:"xpl-large-card__header-arrow"},t("xpl-icon",{key:"86233617aaf74a137d84639e1477c311671fad7b",icon:"chevron-right",size:16}))),this.description&&t("div",{key:"ab0c0134a2468d22d122dfe810306d570beee8e8",class:"xpl-large-card__description"},this.description)),t("dd",{key:"6fb1262327dc91fd0a982bd31ee7deaa94625e12",class:"xpl-large-card__body"},this.graphContentPresent&&t("slot",{key:"b1e170a19004aad87015786307b926e58d031751",name:d})))}get el(){return s(this)}};export{r as xpl_large_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a,H as r}from"./p-ukZKsqqq.js";const s=class{constructor(a){e(this,a)}render(){return a(r,{key:"5a82de617cad4d37dace81ad6a636db1e3a944df",class:"xpl-table-body",role:"rowgroup"},a("slot",{key:"d141e2e041789142eb69c6b3453b25523e4ecf59"}))}};export{s as xpl_table_body}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as
|
|
1
|
+
import{r as t,h as s,H as e}from"./p-ukZKsqqq.js";const a=class{constructor(s){t(this,s),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 s(e,{key:"4b0e558771154ca42ab57235d9b38861831d7eeb",role:"row",class:`xpl-dynamic-table-row\n ${this.isDisabled?"disabled":""}\n ${this.selected?"selected":""}`,ref:t=>{this.hostElement=t??void 0}},s("slot",{key:"8b2b1a78d797c9a5fcaa8b31db2a41f57335b683"}))}};export{a as xpl_dynamic_table_row}
|
|
@@ -1 +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()),
|
|
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()),a=n(s.toString()),o=[];for(let i=r;i<=a;i+=t)o.push((u=i,`${Math.floor(u/60).toString().padStart(2,"0")}:${(u%60).toString().padStart(2,"0")}`));var u;return o.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:"5494cc0a537152b9d8dfa03e5281b21e6bb6eee2",class:{"xpl-input-time":!0,[`xpl-input-time--mode-${this.mode}`]:!0,"xpl-input-time--error":!!this.hasErrorState}},s("xpl-input",{key:"0d32784cd9fc8acacae1854a966bb426fa135fb5",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:"206c668ca8ee29ceffaf14f14acd90fb076fc0ae",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 t,c as a,h as e,H as r}from"./p-ukZKsqqq.js";import{i as s}from"./p-Dqb1pIRo.js";const i=(t,a,e)=>{const r=(e/=100)*(a/=100),s=r*(1-Math.abs(t/60%2-1)),i=e-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,a,e)=>[t,a,e].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("xpl-input-color: Only 6-digit hex format supported (e.g. #aabbcc)");const a=t.toLowerCase().slice(1),e=parseInt(a.slice(0,2),16),r=parseInt(a.slice(2,4),16),s=parseInt(a.slice(4,6),16);return{hex:a,r:e,g:r,b:s,a:1}}if(t.startsWith("rgba")||t.startsWith("rgb")){const a=t.match(/[\d.]+/g)?.map(Number);if(!a||a.length<3)throw new Error("xpl-input-color: Invalid rgba/rgb format");const[e,r,s,i=1]=a,o=t=>t.toString(16).padStart(2,"0");return{hex:`${o(e)}${o(r)}${o(s)}`.toLowerCase(),r:e,g:r,b:s,a:i}}if(t.startsWith("hsla")||t.startsWith("hsl")){const a=t.match(/[\d.]+/g)?.map(Number);if(!a||a.length<3)throw new Error("xpl-input-color: Invalid hsla/hsl format");const[e,r,s,i=1]=a,n=((t,a,e,r)=>{e/=100;const s=a=>(a+t/30)%12,i=(a/=100)*Math.min(e,1-e),o=t=>e-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})`})(e,r,s,i),h=n.match(/[\d.]+/g)?.map(Number);if(!h||h.length<3)throw new Error("xpl-input-color: Invalid hsla/hsl format");const[l,c,d]=h;return{hex:o(l,c,d).toLowerCase(),r:l,g:c,b:d,a:i}}throw new Error("xpl-input-color: Unsupported color format")},h=t=>t.a&&1!==t.a?`rgba(${t.r}, ${t.g}, ${t.b}, ${t.a})`:`#${t.hex}`,l={hex:"",r:0,g:0,b:0,a:1},c=class{constructor(e){t(this,e),this.inputChange=a(this,"inputChange",7),this.hasErrorStateChanged=a(this,"hasErrorStateChanged",7),this.placeholder="Select color",this.eyeDropperSupported=!1,this.colorInputElements={},this.handleMove=t=>{const{slGrid:a}=this.colorInputElements;if(!a)return;const e=a.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)-e.left,e.width)),n=Math.max(0,Math.min(r-e.top,e.height)),h=s/e.width,l=n/e.height,c=i(this.hue,100,100),d=(255*(1-h)+h*c.r)*(1-l),p=(255*(1-h)+h*c.g)*(1-l),u=(255*(1-h)+h*c.b)*(1-l),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 a=t.detail?t.detail.trim().replace(/#/g,""):"";if(a){const[t,e,r]=(t=>{const a=t?.match(/\w\w/g);return a?a.map((t=>parseInt(t,16))):[0,0,0]})(a);this.colorValues={hex:a,r:t,g:e,b:r,a:this.colorValues.a??1}}else this.colorValues={...l}},this.onRgbaInputChange=(t,a)=>{const e=parseFloat(a.detail);if(Number.isNaN(e))return void(this.hasErrorState=`invalid value from ${t.name}: ${e}`);const r={...this.colorValues};switch(t.name){case"color-r-input":r.r=e;break;case"color-g-input":r.g=e;break;case"color-b-input":r.b=e;break;case"color-a-input":r.a=e;break;default:this.hasErrorState=`unhandled input: ${t.name}`}r.hex=o(r.r,r.g,r.b),this.colorValues=r},this.onSliderInputChange=t=>{const a=parseFloat(t.value);if(Number.isNaN(a))this.hasErrorState=`invalid value from ${t.name}: ${a}`;else switch(t.name){case"color-hue-slider":this.colorValues=n(`hsla(${a}, 100%, 50%, 1)`),this.hue=a;break;case"color-alpha-slider":this.colorValues={...this.colorValues,a};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,a=this.colorValues.g/255,e=this.colorValues.b/255,r=Math.max(t,a,e),s=Math.min(t,a,e),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=(a-e)/i%6;break;case a:o=(e-t)/i+2;break;case e:o=(t-a)/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={...l},this.hasErrorState=null,this.hue=0}componentWillLoad(){this.syncColorFromValue(this.value)}componentDidLoad(){s()&&(this.eyeDropperSupported="EyeDropper"in window);const{r:t,g:a,b:e,a:r,hue:i,alpha:o,hex:n}=this.colorInputElements;n?.addEventListener("valueChange",(t=>{this.onHexInputChange(t),t.stopPropagation()})),[t,a,e,r].forEach((t=>{t?.addEventListener("valueChange",(a=>{this.onRgbaInputChange(t,a),a.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 a=new t,e=await a.open();this.colorValues=n(e.sRGBHex)}catch(t){this.hasErrorState=`eyedropper cancelled or failed: ${t}`}}render(){const{r:t,g:a,b:s,a:o}=this.colorValues,n=i(this.hue,100,100),{x:l,y:c}=((t,a,e,r)=>{const{s,v:i}=((t,a,e,r)=>{t/=255,a/=255,e/=255;const s=Math.max(t,a,e),i=s-Math.min(t,a,e);let o=0;return o=0===i?0:s===t?(a-e)/i%6:s===a?(e-t)/i+2:(t-a)/i+4,o=Math.round(60*o),o<0&&(o+=360),{h:r??o,s:0===s?0:i/s,v:s}})(a.r,a.g,a.b,t);return{x:Math.round(s*e),y:Math.round((1-i)*r)}})(this.hue,{r:t,g:a,b:s},288,160),d={left:`${l}px`,top:`${c}px`,background:`rgb(${t}, ${a}, ${s})`};return e(r,{key:"2c4bff1c1b56afdc1b4192a2d7c1e0a1f5ebc073",class:"xpl-input-color"},e("xpl-popover",{key:"ba545a5022a532ef2fde8c795bee19f2680514c1",disabled:this.disabled,display:"menu"},e("div",{key:"180e066079da1a97ba31bcaf66d443df8a0c48ca",slot:"trigger"},e("div",{key:"c3cc0cb1484c4111b60b736b750571552437d0cf",class:{"xpl-input-color__display":!0,"xpl-input-color__display--disabled":!!this.disabled,"xpl-input-color__display--error":!!this.hasErrorState}},e("span",{key:"72aaff4e9a54da1f766d1de85bd58216c866a4b7",class:"xpl-input-color__color",style:{background:h(this.colorValues)}}),this.colorValues.hex?e("span",{class:"xpl-input-color__value"},h(this.colorValues)):e("span",{class:"xpl-input-color__placeholder"},this.placeholder),this.eyeDropperSupported&&!this.hideEyeDropper&&e("xpl-icon",{key:"f55cfde9a119e9f0de379bc1bfb5b5d4b53aa992",size:20,icon:"eye-dropper",class:"xpl-input-color__icon",onClick:t=>{t.stopPropagation(),this.openEyeDropper()}}))),e("div",{key:"f80f215000d3a906d65f7f6673c6d8eaabe3fc6d",class:"xpl-input-color__menu"},e("div",{key:"4701c99f8a528900c34005b7c26d9fa544b664d8",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},e("div",{key:"3e0ec5c0821dfed35190053f5e4f147cb7b55eb0",class:"xpl-input-color__sl-thumb",style:d})),e("div",{key:"1b278a13c88aa663a2b8217fbc3524ee213e0f3b",class:"xpl-input-color__grid"},e("input",{key:"5e35bdd6e7776848a2d2eb32a00deb3ec349c21d",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}}),e("input",{key:"1119341201878e5c8511fa3e241afba15eab6d9b",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} ${a} ${s} / 0) 0%, rgb(${t} ${a} ${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(", ")}}),e("div",{key:"3804928b107e92bddbc3afa3fa883caafddbd06b",class:"xpl-input-color__preview",style:{background:`rgba(${t}, ${a}, ${s}, ${o})`}})),e("div",{key:"86961ee31d82724a76f6598bd547c8e650e27f24",class:"xpl-input-color__inputs"},["hex","r","g","b","a"].map((t=>e("xpl-input",{key:t,label:t.toLocaleUpperCase(),name:`color-${t}-input`,placeholder:"hex"===t?"793EF7":"0",value:String(this.colorValues[t]),ref:a=>{this.colorInputElements[t]=a??void 0}})))))))}static get watchers(){return{colorValues:[{valueChanged:0}],hasErrorState:[{onHasErrorStateChanged:0}],value:[{onValuePropChange:0}]}}};export{c as xpl_input_color}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as a,H as o}from"./p-ukZKsqqq.js";const s=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"},t("path",{d:"M0.5 5h15l-7.5 7.5L0.5 5Z",fill:"white",stroke:"none",class:"xpl-tooltip-arrow__fill"}),t("path",{d:"M0.5 5 L8 12.5 L15.5 5",fill:"none",stroke:"black","stroke-width":"1",class:"xpl-tooltip-arrow__stroke"})),e=class{constructor(t){a(this,t),this.position="top-middle",this.hideArrow=!1}render(){return t(o,{key:"834ba80f410bd7ed079b674b6f1d110235aaf826"},t("div",{key:"e45a7048339ce835ecabf5ef832a5ef2df6ded70",class:"xpl-tooltip-container"},t("slot",{key:"f56272df982aa6dc72ba2bf9776017235223de95"}),t("div",{key:"c5b1054301d08e1b83da61b565f0116f83f395c7",class:`xpl-tooltip xpl-tooltip--${this.position}`},this.text,!this.hideArrow&&t("div",{key:"e6a833629cf409644969d9c4da461a2016f2986b",class:"xpl-tooltip-arrow"},t(s,{key:"7a5893a25978635864ada200aea48660ca90d33c"})))))}};export{e as xpl_tooltip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as s,g as a}from"./p-ukZKsqqq.js";const i=class{constructor(t){e(this,t),this.disabled=!1}componentDidLoad(){this.updateSlottedComponentsWhenDisabled()}componentDidUpdate(){this.updateSlottedComponentsWhenDisabled()}updateSlottedComponentsWhenDisabled(){(this.hostElement?.querySelectorAll("*")??[]).forEach((e=>{"disabled"in e&&(e.disabled=this.disabled)}))}render(){const e=this.el.parentElement?Array.from(this.el.parentElement.children).indexOf(this.el)+1:0;return t(s,{key:"6a4eea3dcf826a18c24068acea56dc63261220f4",role:"gridcell","aria-colindex":e,class:"xpl-dynamic-table-cell",ref:e=>{this.hostElement=e??void 0}},t("slot",{key:"138598bb74c49c32b649f0955a53cb8ea479e04f"}))}get el(){return a(this)}};export{i as xpl_dynamic_table_cell}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as a}from"./p-ukZKsqqq.js";const l=class{constructor(s){t(this,s),this.navOpen=i(this,"navOpen",7),this.open=!0}onNavToggle(){this.open=!this.open,this.navOpen.emit(this.open)}componentWillLoad(){this.open=void 0!==this.isNavOpenAtStartup?this.isNavOpenAtStartup:this.open}render(){return s(a,{key:"3ed4e8e9214075b9062b221a05f1b27aa0b0bfbf"},s("nav",{key:"c809f6f649965d0b60d35c2bda31f721d67ccca1","aria-label":"utility navigation bar",class:"xpl-utility-bar"},this.navControl?s("div",null,s("button",{class:"xpl-utility-bar__nav-control",onClick:()=>this.onNavToggle()},s("xpl-icon",{class:"xpl-utility-nav__bars",icon:"three-bars"})),s("slot",{name:"aside"})):s("slot",{name:"aside"}),s("slot",{key:"99e22823c94e66c5dce24815485c7513b11e9267",name:"main"})))}};export{l as xpl_utility_bar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as h}from"./p-ukZKsqqq.js";const a=class{constructor(e){t(this,e),this.tableSelect=s(this,"tableSelect",7),this.sortChanged=s(this,"sortChanged",3),this.selectedValues=[],this.isSortable=!1,this.sortableColumns=[],this.areAllSelected=!1,this.hasScrolled=!1,this.sortTypeArray=[],this.selectAll=t=>{const s=t.detail;this.areAllSelected=s,this.selected=this.selectedValues.length>0?Array.from(this.el.querySelectorAll("tbody td:first-child xpl-checkbox")).map((t=>s?t.value??s:s)):this.selected.map((()=>s)),this.onChange()},this.selectOne=(t,s)=>{const e=t.detail,{value:i}=t.target;this.selected=this.selected.map(((t,h)=>h!==s?t:this.selectedValues.length>0&&e?i??e:e)),this.areAllSelected=this.selected.every((t=>!!t)),this.onChange()},this.onChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})},this.onScroll=()=>{this.hasScrolled=this.container.scrollLeft>0},this.sortBy=(t,s)=>{const e=(s,e)=>s[t].toLocaleLowerCase()<e[t].toLocaleLowerCase()?-1:s[t].toLocaleLowerCase()>e[t].toLocaleLowerCase()?1:0;switch(s[t]){case"asc":this.rowData.sort(((t,s)=>e(t,s)));break;case"desc":this.rowData.sort(((t,s)=>e(s,t)));break;default:this.rowData=this.data?Array.from(this.data):[],this.sortTypeArray[t]=null}this.rowData=Array.from(this.rowData)},this.setData=()=>{this.rowData=void 0!==this.data?Array.from(this.data):[]}}handleSort(t,s,e,i){t.preventDefault(),t.stopPropagation(),s&&(this.sortTypeArray=this.sortTypeArray.map(((t,s)=>{if(s!==e)return null;switch(t){case"asc":return"desc";case"desc":return null;default:return"asc"}})),this.sortChanged.emit({colNum:e,colName:i,sortTypeArr:this.sortTypeArray}).defaultPrevented||this.sortBy(e,this.sortTypeArray))}watchData(){this.setData()}watchColumns(){this.sortTypeArray=this.columns?this.columns.map((()=>null)):[]}componentWillLoad(){this.ensureSelectAllValue(),this.areAllSelected=!1,this.setData(),this.selected=new Array(this.rowData.length).fill(!1),this.ensureSortTypeArray()}ensureSelectAllValue(){if(void 0!==this.selectAllValue)return;const t=this.el.id?.trim();if(t)return void(this.selectAllValue=`${t}-select-all`);const s=this.el.getAttribute("data-select-all-value");s?this.selectAllValue=s:(a.selectAllSeq+=1,this.selectAllValue=`select-all-${a.selectAllSeq}`,this.el.setAttribute("data-select-all-value",this.selectAllValue))}ensureSortTypeArray(){!this.columns||this.sortTypeArray&&this.sortTypeArray.length===this.columns.length?this.columns||(this.sortTypeArray=[]):this.sortTypeArray=this.columns.map((()=>null))}render(){const t=void 0!==this.footer?Array.from(this.footer):[];return e(i,{key:"1e6bf436320a44e1e22e8590a881bc90c4a091d5"},e("div",{key:"3d2e5361fbe615a6ae8ebe916ce07e00f82c444c",class:"xpl-table-container",onScroll:this.onScroll,ref:t=>{t&&(this.container=t)}},e("table",{key:"036672b3ba45a90a42f906c155ce3d59e33c8a7a",class:{"xpl-table":!0,"xpl-table--striped":!!this.striped,"xpl-table--freeze":!!this.freeze,"xpl-table--has-scrolled":this.hasScrolled}},this.columns&&e("thead",{key:"bf0d5a808624234ba985c1c32064f1dab11bfefa"},this.columns.map(((t,s)=>{const i=(t=>{switch(t){case"asc":return"arrow-up";case"desc":return"arrow-down";default:return"dash"}})(this.sortTypeArray?.[s]),h=!(!this.isSortable||!this.sortableColumns[s]);return e("th",null,e("label",{onClick:e=>this.handleSort(e,h,s,t.replace(/ /g,"-").toLowerCase()),class:h?"cursor-pointer":""},this.multiselect&&0===s&&e("xpl-checkbox",{checked:this.areAllSelected,indeterminate:!this.areAllSelected&&this.selected.some((t=>t)),onClick:t=>t.stopPropagation(),onCheckboxChange:t=>this.selectAll(t),value:this.selectAllValue,"aria-label":"Select all rows"}),t,h&&!!this.sortTypeArray[s]&&e("xpl-icon",{icon:i,size:16})))}))),e("tbody",{key:"7915dbfbf1a9b68719c4168e09c5f0e3ab7fa35a"},this.rowData.map(((t,s)=>e("tr",{class:this.selected&&this.selected[s]?"xpl-table-row-selected":""},t.map(((t,i)=>e("td",null,this.multiselect&&0===i?e("label",null,e("xpl-checkbox",{checked:!!this.selected[s],onCheckboxChange:t=>this.selectOne(t,s),value:this.selectedValues.length>0?this.selectedValues[s]:`xpl-table-checkbox-${s}`,"aria-label":`Select row ${s+1}`}),e("div",{innerHTML:t})):e("div",{innerHTML:t})))))))),t.length>0&&e("tfoot",{key:"78ee72f80c77e61c6234be9500770780952ca669"},t.map((t=>e("tr",null,t.map((t=>e("td",null,e("div",{innerHTML:t})))))))))))}get el(){return h(this)}static get watchers(){return{data:[{watchData:0}],columns:[{watchColumns:0}]}}};a.selectAllSeq=0;export{a as xpl_table}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as e,h as d,H as c}from"./p-ukZKsqqq.js";const n=class{constructor(d){a(this,d),this.navWidth=e(this,"navWidth",7),this.width="default"}navWidthHandler(){this.navWidth.emit(this.width)}connectedCallback(){this.navWidthHandler()}componentDidUpdate(){this.navWidthHandler()}render(){return d(c,{key:"936e7393a8037c6c78c7a6d5d284d9c37be2f866",class:`xpl-main-nav xpl-main-nav--${this.width}`,"aria-label":"Sidebar"},d("nav",{key:"45fd74c979b53bbd8080ca92ea15e3135d0d49ae"},d("header",{key:"cb692d0e90aa70bce5e09af43e54d864849f4800","aria-label":"Sidebar Header"},d("slot",{key:"778c33ef024895ca44616ef9655843330e3c563b",name:"logo"}),d("slot",{key:"7728db09b46999e708c46d10d5de56c65ab9a9fa",name:"brand-name"})),d("div",{key:"0376fefe7921b061f3f2fdc972aa381ed7d124a2",class:"xpl-main-nav__main_section"},d("slot",{key:"12a61a53d6c93695d38c70d9a953fe4e37438178",name:"navigation"})),d("footer",{key:"8cd0e32231e155324c78878dcaad955ab7b3e4fb",class:"xpl-main-nav__footer","aria-label":"Sidebar Footer"},d("slot",{key:"cdaf0bec22d3d8229441e7e036c3fcbcb244c32f",name:"footer"}))))}};export{n as xpl_main_nav}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,H as r}from"./p-ukZKsqqq.js";const e=class{constructor(t){s(this,t),this.currentStep=0,this.layout="horizontal",this.showLabels=!0,this.showNumbers=!0}validateCurrentStep(){if(!this.steps||0===this.steps.length)return;const s=this.steps.length;this.currentStep<0?this.currentStep=0:this.currentStep>s&&(this.currentStep=s)}renderStepContent(s,r){return r?t("xpl-icon",{icon:"check-2",size:20,class:"xpl-progress-indicator-step-checkmark"}):this.showNumbers?t("span",{class:"xpl-progress-indicator-step-number"},s+1):t("span",{class:"xpl-progress-indicator-step-dot"})}renderStep(s,r){const e=this.currentStep>r,i=this.currentStep===r,o="horizontal"===this.layout,a=t("div",{class:"xpl-progress-indicator-step-circle"},this.renderStepContent(r,e)),p=this.showLabels&&t("div",{class:"xpl-progress-indicator-step-text"},s),c=o?t("div",{class:"xpl-progress-indicator-step-content"},a,p):[a,p];return t("div",{class:{"xpl-progress-indicator-step":!0,"xpl-progress-indicator-step-active":i,"xpl-progress-indicator-step-finished":e},role:"listitem","aria-label":`${s}, ${e?"completed":i?"current":"upcoming"}`,"aria-current":i?"step":void 0},c)}render(){const s=this.steps||[],e={"xpl-progress-indicator":!0,"xpl-progress-indicator-horizontal":"horizontal"===this.layout,"xpl-progress-indicator-vertical":"vertical"===this.layout,"xpl-progress-indicator-no-labels":!this.showLabels},i=s.length,o=this.currentStep>=i,a=Math.min(this.currentStep+1,i);return t(r,{key:"
|
|
1
|
+
import{r as s,h as t,H as r}from"./p-ukZKsqqq.js";const e=class{constructor(t){s(this,t),this.currentStep=0,this.layout="horizontal",this.showLabels=!0,this.showNumbers=!0}validateCurrentStep(){if(!this.steps||0===this.steps.length)return;const s=this.steps.length;this.currentStep<0?this.currentStep=0:this.currentStep>s&&(this.currentStep=s)}renderStepContent(s,r){return r?t("xpl-icon",{icon:"check-2",size:20,class:"xpl-progress-indicator-step-checkmark"}):this.showNumbers?t("span",{class:"xpl-progress-indicator-step-number"},s+1):t("span",{class:"xpl-progress-indicator-step-dot"})}renderStep(s,r){const e=this.currentStep>r,i=this.currentStep===r,o="horizontal"===this.layout,a=t("div",{class:"xpl-progress-indicator-step-circle"},this.renderStepContent(r,e)),p=this.showLabels&&t("div",{class:"xpl-progress-indicator-step-text"},s),c=o?t("div",{class:"xpl-progress-indicator-step-content"},a,p):[a,p];return t("div",{class:{"xpl-progress-indicator-step":!0,"xpl-progress-indicator-step-active":i,"xpl-progress-indicator-step-finished":e},role:"listitem","aria-label":`${s}, ${e?"completed":i?"current":"upcoming"}`,"aria-current":i?"step":void 0},c)}render(){const s=this.steps||[],e={"xpl-progress-indicator":!0,"xpl-progress-indicator-horizontal":"horizontal"===this.layout,"xpl-progress-indicator-vertical":"vertical"===this.layout,"xpl-progress-indicator-no-labels":!this.showLabels},i=s.length,o=this.currentStep>=i,a=Math.min(this.currentStep+1,i);return t(r,{key:"2fa8128b81b665f0733e3c905cb99eaa1917e719",class:e,role:"group","aria-label":i>0?o?`Progress: all ${i} ${1===i?"step":"steps"} complete`:`Progress: step ${a} of ${i}`:"Progress"},t("div",{key:"279079d456f72748c77ac9f06281c838307ba092",class:"xpl-progress-indicator-container",role:"list"},s.map(((s,t)=>this.renderStep(s,t)))))}static get watchers(){return{steps:[{validateCurrentStep:0}],currentStep:[{validateCurrentStep:0}]}}};export{e as xpl_progress_indicator}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as o}from"./p-ukZKsqqq.js";import{a as n,c as a,o as l,f as h,b as r,h as c}from"./p-1M1pu0C2.js";import{i as d}from"./p-Dqb1pIRo.js";const p=4;function u(t){const{offsetPx:s=p,flipFallbackPlacements:e,sizeApply:i}=t;return[l(s),h(e&&e.length>0?{fallbackPlacements:e}:{}),r({apply:i}),c()]}const f={rowHeight:45,overscan:20,virtualizeFrom:200};function b(t,s){const{groupName:i,options:o,subtitle:n,...a}=t;if(i)return e("xpl-dropdown-group",{groupName:i,options:o,...a});const l=void 0!==s;return e("xpl-dropdown-option",{class:l?"xpl-dropdown-option--virtual":void 0,style:l?{transform:`translateY(${s*f.rowHeight}px)`}:void 0,subtitle:n,...a})}const m=class{constructor(e){t(this,e),this.isOpenChange=s(this,"isOpenChange",7),this.virtualEnd=0,this.virtualStart=0,this.isOpen=!1,this.closeOnSelect=!0,this.mode="single",this.anchorToTrigger=!1,this.placement="bottom-start",this.selectOnFocus=!1,this.floating=null,this.virtualScrollRaf=null,this.openAlignmentRaf=null,this.previousOptionCount=0,this.handleClickOutside=({target:t})=>{const{triggerId:s}=this,e=t,i=s?document.getElementById(s):null,o=i?.contains(e),n=this.hostElement.contains(e),a=e?.closest("label"),l=!!a&&!!s&&a.getAttribute("for")===s;n||o||l||!this.isOpen||(this.isOpen=!1)},this.handleKeyDown=t=>{"Escape"===t.key&&this.isOpen&&(this.isOpen=!1)},this.handleVirtualScroll=()=>{null===this.virtualScrollRaf&&(this.virtualScrollRaf=requestAnimationFrame((()=>{this.virtualScrollRaf=null,this.updateVirtualRange()})))},this.setListEl=t=>{t!==this.listEl&&(this.listEl=t,this.listResizeObserver?.disconnect(),t&&"undefined"!=typeof ResizeObserver&&(this.listResizeObserver??(this.listResizeObserver=new ResizeObserver((()=>{this.isVirtualized&&this.handleVirtualScroll()}))),this.listResizeObserver.observe(t)))},this.scheduleOpenAlignment=()=>{null===this.openAlignmentRaf&&(this.openAlignmentRaf=requestAnimationFrame((()=>{this.openAlignmentRaf=null,this.scrollSelectedIntoView(),this.updateVirtualRange()})))}}onOptionsChanged(){const t=this.options?.length??0,s=t!==this.previousOptionCount;if(this.previousOptionCount=t,!this.isVirtualized)return this.virtualStart=0,void(this.virtualEnd=0);const e=this.listEl;if(e){const i=Math.max(0,t*f.rowHeight-e.clientHeight);if(e.scrollTop>i&&(e.scrollTop=i),this.isOpen&&s){const t=this.options?.findIndex((t=>t.isSelected))??-1;t>=0&&(t<this.virtualStart||t>=this.virtualEnd)&&this.scrollSelectedIntoView()}}this.updateVirtualRange()}onAnchorToTriggerChanged(){this.isOpen&&this.startPositioning()}onFlipFallbackPlacementsChanged(){this.isOpen&&this.anchorToTrigger&&this.startPositioning()}onPlacementChanged(){this.isOpen&&this.anchorToTrigger&&this.startPositioning()}onTriggerIdChanged(){this.isOpen&&this.startPositioning()}onSelectedValuesChanged(t,s=!1){if(this.options&&this.options.length>0){this.options.flatMap((t=>t.groupName&&t.options?t.options:[t])).forEach((s=>{const e=s.value||s.label||"";if("single"===this.mode)s.isSelected=e===t;else{const i=Array.isArray(t)?t:[];s.isSelected=i.includes(e)}}));const e=t=>(t.options=t.groupName?t.options?.map(e):void 0,t);this.options=this.options.map(e),this.update&&!s&&this.update(null,{component:this})}}onIsOpenStateChange(t){this.isOpenChange.emit(t),t?(this.startPositioning(),this.alignOnOpen()):(this.stopPositioning(),this.cancelVirtualScroll(),this.virtualStart=0,this.virtualEnd=0)}connectedCallback(){d()&&(document.addEventListener("mousedown",this.handleClickOutside),document.addEventListener("keydown",this.handleKeyDown))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),document.removeEventListener("keydown",this.handleKeyDown),this.stopPositioning(),this.cancelVirtualScroll(),this.listResizeObserver?.disconnect()}componentWillLoad(){this.handleSelect=this.handleSelect.bind(this),this.selectedValues&&this.onSelectedValuesChanged(this.selectedValues,!0),this.previousOptionCount=this.options?.length??0}componentDidLoad(){this.isOpen&&(this.startPositioning(),this.alignOnOpen())}async handleSelect(t,{component:s}){const{hostElement:e,mode:i,options:o,update:n}=this,a="single"===i,l="multi"===i;if(o){const t=s.hostElement.value||s.hostElement.label;if(o.some((t=>t.groupName))){o.flatMap((t=>t.groupName&&t.options?t.options:[t])).forEach((e=>{const i=(e.value||e.label)===t;a?(e.isSelected=i,s.hostElement.isSelected=!0):l&&i&&(e.isSelected=!e.isSelected,s.hostElement.isSelected=e.isSelected)}));const e=t=>(t.options=t.groupName?t.options?.map(e):void 0,t);this.options=o.map(e)}else o.forEach((e=>{const i=(e.value||e.label)===t;a?(e.isSelected=i,i&&(s.hostElement.isSelected=!0)):l&&i&&(e.isSelected=!e.isSelected,s.hostElement.isSelected=e.isSelected)})),this.options=[...o]}else a?Array.from(e.querySelectorAll("xpl-dropdown-option")).forEach((t=>{t.isSelected=t===s.hostElement})):l&&(s.isSelected=!s.isSelected);n&&n(t,{component:this})}startPositioning(){if(!this.anchorToTrigger||!this.triggerId)return;const t=document.getElementById(this.triggerId);t&&(this.stopPositioning(),this.floating=function(t,s,e){if(!d())return{update:async()=>{},stop:()=>{}};const{placement:i,strategy:o,middleware:l,onPosition:h,onReferenceHidden:r,onError:c}=e;let p=0,u=null,f=!0;const b=async()=>{if(!f)return;const e=p;try{const n=await a(t,s,{placement:i,strategy:o,middleware:l});if(!f||e!==p)return;if(n.middlewareData.hide?.referenceHidden&&!0===r?.())return;h(n)}catch(t){if(!f||e!==p)return;c?.(t)}};return u=n(t,s,b),{update:b,stop:()=>{f=!1,p+=1,u&&(u(),u=null)}}}(t,this.hostElement,{placement:this.placement,strategy:"fixed",middleware:u({flipFallbackPlacements:this.flipFallbackPlacements,sizeApply:({availableHeight:t,rects:s})=>{const e=this.hostElement.querySelector(".xpl-dropdown-list");let i=0;if(e){const t=Array.from(this.hostElement.children),s=t.indexOf(e);t.slice(0,s).forEach((t=>{t instanceof HTMLElement&&(i+=t.offsetHeight)}))}const o=getComputedStyle(this.hostElement),n=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),a=e?parseFloat(getComputedStyle(e).getPropertyValue("--xpl-dropdown-list-max-height")):1/0,l=Math.min(a,Math.max(0,t-i-n));Object.assign(this.hostElement.style,{width:`${s.reference.width}px`}),e&&(e.style.maxHeight=`${l}px`)}}),onPosition:({x:t,y:s,placement:e})=>{if(!this.floating)return;const i="top"===e.split("-")[0];Object.assign(this.hostElement.style,{left:`${t}px`,top:`${s}px`}),this.hostElement.classList.toggle("xpl-dropdown--above",i),this.hostElement.classList.toggle("xpl-dropdown--below",!i)},onReferenceHidden:()=>(this.isOpen=!1,!0)}))}stopPositioning(){this.floating?.stop(),this.floating=null,this.hostElement.style.left="",this.hostElement.style.top="",this.hostElement.style.width="",this.hostElement.querySelector(".xpl-dropdown-list")?.style.removeProperty("max-height"),this.hostElement.classList.remove("xpl-dropdown--above","xpl-dropdown--below")}cancelVirtualScroll(){null!==this.virtualScrollRaf&&(cancelAnimationFrame(this.virtualScrollRaf),this.virtualScrollRaf=null),null!==this.openAlignmentRaf&&(cancelAnimationFrame(this.openAlignmentRaf),this.openAlignmentRaf=null)}alignOnOpen(){this.scrollSelectedIntoView(),this.updateVirtualRange(),this.scheduleOpenAlignment()}scrollSelectedIntoView(){const{listEl:t,options:s}=this;if(!t||!s?.length||!this.isVirtualized)return;const e=s.findIndex((t=>t.isSelected));if(e<0)return;const{rowHeight:i}=f,o=e*i-(t.clientHeight-i)/2,n=Math.max(0,s.length*i-t.clientHeight);t.scrollTop=Math.max(0,Math.min(o,n))}updateVirtualRange(){const t=this.listEl,s=this.options?.length??0;if(!t||!s)return;const{rowHeight:e,overscan:i}=f,o=Math.floor(t.scrollTop/e),n=Math.ceil(t.clientHeight/e)||1,a=Math.max(0,o-i),l=Math.min(s,o+n+i);a===this.virtualStart&&l===this.virtualEnd||(this.virtualStart=a,this.virtualEnd=l)}get isVirtualized(){const{options:t}=this;return!!t&&t.length>f.virtualizeFrom&&t.every((t=>!t.groupName&&!t.subtitle))}render(){const{isOpen:t,mode:s,options:o}=this,n=this.isVirtualized;let a;if(o&&o.length)if(n){const{rowHeight:t,overscan:s}=f,i=o.length,n=Math.min(this.virtualStart,i),l=Math.min(i,Math.ceil(300/t)+2*s);a=e("li",{key:"94094d9464c2f4ded9714f7ed16ca2b426c19794",class:"xpl-dropdown__virtual-sizer",style:{height:i*t+"px"}},o.slice(n,this.virtualEnd>n?this.virtualEnd:l).map(((t,s)=>b(t,n+s))))}else a=o.map((t=>b(t)));else a=e("slot",{key:"1673c7d33d7dc1d16bf56081df85976ed389a38f",name:"options"});return e(i,{key:"6e2fe2b904530c7966a23b3715485ea9ed415880","aria-expanded":t?"true":"false",class:{"xpl-dropdown":!0,"xpl-dropdown--multi":"multi"===s,"xpl-dropdown--open":t,"xpl-dropdown--anchor-to-trigger":this.anchorToTrigger,"xpl-dropdown--virtualized":n},role:"listbox"},e("slot",{key:"b9c87382e07b23b326fab22b8423021f8c4a83f8",name:"header"}),e("ul",{key:"3824b650e2bbcb09fdea7f25ab19afa9a7dd8abe",class:"xpl-dropdown-list",ref:t=>{this.setListEl(t)},onScroll:n?this.handleVirtualScroll:void 0},a))}get hostElement(){return o(this)}static get watchers(){return{options:[{onOptionsChanged:0}],anchorToTrigger:[{onAnchorToTriggerChanged:0}],flipFallbackPlacements:[{onFlipFallbackPlacementsChanged:0}],placement:[{onPlacementChanged:0}],triggerId:[{onTriggerIdChanged:0}],selectedValues:[{onSelectedValuesChanged:0}],isOpen:[{onIsOpenStateChange:0}]}}},g=class{constructor(s){t(this,s)}render(){const{groupName:t,options:s}=this,o=s&&s.length&&s.map((({groupName:t,...s})=>t?e("xpl-dropdown-group",{label:t,...s}):e("xpl-dropdown-option",{...s})));return e(i,{key:"232eccef872d6563c056b3b709d3a741473de2b0",role:"group","aria-label":t},e("li",{key:"2185c7b55139ab7b144290c94ab53675a6224b46",class:"xpl-dropdown-list-item"},e("xpl-dropdown-heading",{key:"26c0d13d0742fd34eb629c668bd929e5541fffb8",label:t}),e("ul",{key:"0f13b81deda008bf0588393ff1a4102a5c7a171d",class:"xpl-dropdown-list"},o||e("slot",{key:"70cf6f662d1471c815f5e7c747080d7558efe407",name:"options"}))))}},w=class{constructor(s){t(this,s)}render(){return e(i,{key:"04265224adcc5b65f53d2e35d0cfef470931ce41",class:{"xpl-dropdown-heading":!0},role:"presentation"},e("span",{key:"27293255cdfe35d207f3f0155beae3dc4b737e0d"},this.label||e("slot",{key:"b5bbee144360b2e5da681864e3dae6c2cafd2552",name:"heading"})))}},x=class{constructor(s){t(this,s),this.dropdown=null}componentWillLoad(){this.dropdown=this.hostElement.closest("xpl-dropdown")}handleClick(t){if(!this.dropdown)return;const{closeOnSelect:s,mode:e}=this.dropdown;t.x&&t.y&&(this.dropdown.handleSelect(t,{component:this}),"single"===e&&s&&(this.dropdown.isOpen=!1))}handleKeyup(t){if(!this.dropdown)return;const{dropdown:s}=this,{closeOnSelect:e,mode:i,selectOnFocus:o}=this.dropdown;if(o&&["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Tab"].includes(t.key)){const{activeElement:o}=document,n=o?.closest("xpl-dropdown-option")??null;return s.handleSelect(t,{component:{hostElement:n}}),void("single"===i&&e&&(this.dropdown.isOpen=!1))}["Escape","Enter"].includes(t.key)&&(s.handleSelect(t,{component:this}),("Escape"===t.key||this.dropdown.closeOnSelect&&"Enter"===t.key)&&(this.dropdown.isOpen=!1))}connectedCallback(){this.hostElement.addEventListener("click",this.handleClick.bind(this)),this.hostElement.addEventListener("keyup",this.handleKeyup.bind(this))}disconnectedCallback(){this.hostElement.removeEventListener("click",this.handleClick),this.hostElement.removeEventListener("keyup",this.handleKeyup)}render(){const{label:t,isSelected:s,isDisabled:o,value:n,subtitle:a,icon:l}=this;return e(i,{key:"f4fa4b0a3150fafd4b1c259aa140925219487898",class:{"xpl-dropdown-option":!0,"xpl-dropdown-option--disabled":!!o,"xpl-dropdown-option--selected":!!s},role:"option","aria-checked":s,"aria-disabled":o,"aria-selected":s,value:n},e("li",{key:"417af38233cd4765cc54a0cc4541bb5caeaf10ab",class:"xpl-dropdown-list-item"},l&&e("xpl-icon",{key:"48cbe69b056142ce5ef5cd6c608a99f1defd2e9f",class:"xpl-dropdown-list-item__icon",icon:l,size:20}),t||e("slot",{key:"14b86d61bab431487cdef906a0a9b138d6ab4bbb",name:"option"}),a&&e("span",{key:"c7ff5ee61b08f7a94d107183127c0b9cff0b49b5",class:"xpl-dropdown-list-item__subtitle"},a)))}get hostElement(){return o(this)}};export{m as xpl_dropdown,g as xpl_dropdown_group,w as xpl_dropdown_heading,x as xpl_dropdown_option}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a,H as c}from"./p-ukZKsqqq.js";const s=class{constructor(a){e(this,a)}render(){return a(c,{key:"6fd3db4309ecb98fb1739fd69d964297a77a46eb",class:"xpl-secondary-nav"},a("nav",{key:"c08a1df306cee05760b6761409ebfb4ba87c2e4f","aria-label":"Secondary Nav"},a("slot",{key:"9d5d0657bdd581bce000f1ace49be8c1d018fe47"})))}};export{s as xpl_secondary_nav}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as e,h as i,H as c}from"./p-ukZKsqqq.js";import{v as t}from"./p-CK3_k8jD.js";const a=class{constructor(i){s(this,i),this.checkboxChange=e(this,"checkboxChange",7),this.id=t(),this.ariaLabel="",this.onChange=s=>{this.checkboxChange.emit(s.target.checked)}}render(){return i(c,{key:"d16058b571f7af6d2a83cbdce15b12bccadf0036",class:{"xpl-checkbox-radio-container":!0,styled:!!this.styled,disabled:!!this.disabled}},i("input",{key:"1001a243623e338fc4fefc9f58f251439c2fb74f",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}),i("label",{key:"37e85b721cef98c8ccc448e08dbf9d9c968bd0a6",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},i("slot",{key:"ef36d317d97e26098396b1131a1acce6bce5ae8f"}),this.description&&i("small",{key:"9d710e4fa3f366965307908ca2e216ac46310f30",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)))}};export{a as xpl_checkbox}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as r,H as e}from"./p-ukZKsqqq.js";const a=class{constructor(r){s(this,r),this.max=100,this.size="lg",this.value=0,this.variant="default"}get clampedValue(){return Math.max(0,Math.min(this.max,this.value))}get isComplete(){return this.value>=this.max&&"default"===this.variant}get isError(){return"error"===this.variant}get isSuccess(){return"success"===this.variant||this.isComplete}get showStatusIcon(){return this.isSuccess||this.isError}get isIndeterminate(){return"indeterminate"===this.variant}render(){return r(e,{key:"
|
|
1
|
+
import{r as s,h as r,H as e}from"./p-ukZKsqqq.js";const a=class{constructor(r){s(this,r),this.max=100,this.size="lg",this.value=0,this.variant="default"}get clampedValue(){return Math.max(0,Math.min(this.max,this.value))}get isComplete(){return this.value>=this.max&&"default"===this.variant}get isError(){return"error"===this.variant}get isSuccess(){return"success"===this.variant||this.isComplete}get showStatusIcon(){return this.isSuccess||this.isError}get isIndeterminate(){return"indeterminate"===this.variant}render(){return r(e,{key:"7c374a5f2f89aed6b0c3a0daa4cc843efea8d262",class:{"xpl-progress-bar":!0,[`xpl-progress-bar--${this.size}`]:!0,[`xpl-progress-bar--${this.variant}`]:!0,"xpl-progress-bar--complete":this.isComplete}},r("div",{key:"f1be4a82fbb87ffac27bb2b8d0f479ad36aae340",class:"xpl-progress-bar__wrapper"},(this.label||this.showStatusIcon)&&r("div",{key:"d415f09b3d0d237bc348b33470162d2b44048856",class:"xpl-progress-bar__header"},this.label&&r("div",{key:"48bc06b81c4445d811e6cd5f3ac086192cbcb392",class:"xpl-progress-bar__label"},this.label),this.showStatusIcon&&r("div",{key:"d31ccfc3ed1f956fdc89e01ca262b606219bb78e",class:"xpl-progress-bar__icon"},r("xpl-icon",this.isError?{icon:"circle-xmark-1"}:{icon:"circle-check-1"}))),r("div",{key:"5c97c6193a2ebb0626052953f1a11c9afc258da8",class:"xpl-progress-bar__row"},this.isIndeterminate?r("div",{class:"xpl-progress-bar__track xpl-progress-bar__track--indeterminate",role:"progressbar","aria-label":this.label||"Progress"},r("div",{class:"xpl-progress-bar__indeterminate"})):r("progress",{class:"xpl-progress-bar__progress",value:this.clampedValue,max:this.max,"aria-label":this.label||"Progress"})),this.helperText&&r("div",{key:"8e78ed094ab41425272b1818cc004a9094c3632d",class:"xpl-progress-bar__helper"},this.helperText)))}};export{a as xpl_progress_bar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,F as e,H as h,g as n}from"./p-ukZKsqqq.js";import{t as a}from"./p-CzwViN3U.js";import{i as l}from"./p-Dqb1pIRo.js";import{v as o}from"./p-CK3_k8jD.js";import"./p-BFTU3MAI.js";let c;function r(t){return t.label||t.value||""}function d(t){return t.value||t.label||""}function p(t){return t.flatMap((t=>t.groupName&&t.options?t.options:[t]))}const g=class{constructor(i){t(this,i),this.selectChange=s(this,"selectChange",7),this.changeEvent=s(this,"changeEvent",7),this.dropdownStateChange=s(this,"dropdownStateChange",7),this.triggerDropdown=s(this,"triggerDropdown",7),this.choices=[],this.selectIcon="chevron-down",this.dropdownPlacement="bottom-start",this.mode="single",this.truncate=!0,this.active=!1,this.id=o(),this.keepFocus=!1,this.visibleChoices=1/0,this.choicesState=[],this.value=this.calculateValue(),this.dropdownOpenState=!1,this.container=null,this.dropdown=null,this.handleResizeThrottled=a((()=>{this.maybeTruncateChoices()}),250),this.handleTabKeyDown=t=>{"Tab"===t.key&&(this.keepFocus=!0)},this.handleTagRemove=t=>{const s=s=>t?.value&&s.value===t.value||t?.label&&s.label===t.label;this.choicesState=this.choicesState.map((t=>({...t,isSelected:!s(t)&&t.isSelected,options:t.options?.map((t=>({...t,isSelected:!s(t)&&t.isSelected})))})))},this.handleDropdownScroll=t=>{const s=this.dropdown?.querySelector(".xpl-dropdown-list");if(!s)return;const{scrollTop:i,scrollHeight:e,clientHeight:h}=s;(0===i&&t.deltaY<0||i+h>=e&&t.deltaY>0)&&t.preventDefault()}}onChoicesPropChanged(t){this.choicesState=this.initializeChoicesState()}onSelectedValuesPropChanged(){this.choicesState=this.initializeChoicesState()}onChoicesStateChanged(){this.update()}handleValueStateChange(t){this.selectChange.emit(t),this.changeEvent.emit("single"===this.mode?t:t?.length?t.split("|"):[]),this.customDisplayValue&&null!==this.container&&(this.container.querySelectorAll(".custom-display-value").forEach((s=>{s.classList.toggle("display-active",t.length>0),s.classList.toggle("display-inactive",0===t.length)})),this.container.querySelectorAll(".placeholder").forEach((s=>{s.classList.toggle("placeholder-hidden",t.length>0)})))}onDropdownOpenStateChanged(t){this.dropdownStateChange.emit(t)}initializeChoicesState(){return(this.choices??[]).map((t=>{const s="string"==typeof this.selectedValues?[this.selectedValues]:this.selectedValues;return{...t,isSelected:t.isSelected||!0===s?.includes(d(t)),options:t.options?.map((t=>({...t,isSelected:t.isSelected||!0===s?.includes(d(t))})))}}))}maybeTruncateChoices(){if(!l())return;if("single"===this.mode||!this.truncate)return;const t=this.container?.getBoundingClientRect().width;let s=0,i=0;const e=p(this.choicesState)?.filter((t=>t.isSelected));if(!e.length)return;const h=e.length;e.forEach(((h,n)=>(i+=function(t){const s=l()?(void 0===c&&(c=document.createElement("canvas").getContext("2d"),c&&(c.font="14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif")),c):null;return s?s.measureText(t).width+44:0}(r(e[n])),i>(t??0)-140||(s+=1),null))),s>=h&&(s=1/0),s<1&&(s=1),this.visibleChoices=s}closeDropdown(){this.dropdown?.isOpen&&(this.dropdown.isOpen=!1,this.active=!1)}calculateValue(){const t=p(this.choicesState).filter((t=>t.isSelected));return t.length?"single"===this.mode?d(t[0]):t.map((t=>d(t))).join("|"):""}update(){this.value=this.calculateValue(),this.maybeTruncateChoices()}renderLabel(){return this.label||this.description?i("label",{class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.label,this.description&&i("small",{class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)):null}renderSelectedTags(){let t=0;const s=p(this.choicesState).filter((t=>t.isSelected));return s.length?s.map(((e,h)=>t>=this.visibleChoices?null:(t+=1,i("xpl-tag",{onClose:()=>this.handleTagRemove(s[h])},r(s[h]))))):null}renderError(){return this.error?i("label",{class:"xpl-input-error",htmlFor:this.id},i("xpl-icon",{icon:"circle-warning"}),this.error):null}componentWillLoad(){this.choicesState=this.initializeChoicesState()}handleClickEvent(t){const s=t.target.closest(".xpl-select");null!==s&&s===this.container||this.closeDropdown()}handleKeyDown(t){"Escape"===t.key&&(this.active||this.container?.contains(document.activeElement))&&this.closeDropdown()}handleResize(){this.handleResizeThrottled()}componentDidLoad(){void 0!==this.truncateRafId&&cancelAnimationFrame(this.truncateRafId),this.truncateRafId=requestAnimationFrame((()=>{this.truncateRafId=void 0,this.maybeTruncateChoices()}))}disconnectedCallback(){this.handleResizeThrottled?.cancel(),void 0!==this.truncateRafId&&(cancelAnimationFrame(this.truncateRafId),this.truncateRafId=void 0)}handleDropdownTrigger(){if(this.disabled)return;const t=this.dropdown?.isOpen??!1,s=!t;this.triggerDropdown.emit({prevState:t,nextState:s}).defaultPrevented||(this.dropdownOpenState=s,this.dropdown&&(this.dropdown.isOpen=s))}async reset(){this.closeDropdown(),this.choicesState=this.choicesState.map((t=>({...t,isSelected:!1,options:t.options?.map((t=>({...t,isSelected:!1})))})))}render(){const t=p(this.choicesState).filter((t=>t.isSelected)),s=t[0]?.label||t[0]?.value,n=t.length>1&&this.visibleChoices<1/0&&this.truncate&&!this.customDisplayValue,a=`+ ${Math.abs(this.choicesState.filter((t=>t.isSelected)).length-this.visibleChoices)} more`;return i(h,{key:"efb901a6da94614137b07be9c89b3777e65f60d9",class:{"xpl-select":!0,"xpl-select--disabled":!!this.disabled,"xpl-select--no-truncate":!this.truncate,[this.classNames??""]:!!this.classNames},onKeyDown:this.handleTabKeyDown,ref:t=>{this.container=t}},this.renderLabel(),i("div",{key:"6d4b42bf301188182be36b7b9adfde4669771a22",class:{"xpl-input":!0,"xpl-input--disabled":!!this.disabled,"xpl-input--error":void 0!==this.error}},i("div",{key:"3687745a851d263557bb9d0f7c2d7eaa4546daa9",class:"xpl-input-wrapper"},i("button",{key:"6fa71fa27e684134b9e3ee915b8548a127dfbdf6",class:"xpl-select__trigger",disabled:this.disabled,id:this.id,onKeyDown:this.handleTabKeyDown,onClick:t=>{t.preventDefault(),this.handleDropdownTrigger()},type:"button"},i("div",{key:"00975fd72169662e5314f48634722c18c10e8bd9",class:{"xpl-select-value":!0,"xpl-select-value--active":"multi"===this.mode&&this.value.length>0,"has-value":this.value.length>0}},(()=>this.customDisplayValue?i(e,null,i("div",{class:{"custom-display-value":!0,"custom-display-value--inactive":0===this.value.length}},i("slot",{name:"custom-display-value"})),i("span",{class:{"xpl-placeholder--hidden":this.value.length>0}},this.placeholder)):"single"===this.mode?s||this.placeholder:this.value.length>0?this.renderSelectedTags():this.placeholder)(),n&&a),i("xpl-icon",{key:"b17474211ca60ee3e70c7b3427f50b8c47dcb57c",class:"xpl-select__chevron-down",icon:this.selectIcon??"chevron-down"}))),!this.disabled&&i("xpl-dropdown",{key:"793f48f587c8db42de0bdcefb20d9f2dd05eec83",ref:t=>{this.dropdown=t??null},isOpen:this.dropdownOpenState,options:this.choicesState,selectedValues:this.selectedValues,mode:this.mode,triggerId:this.id,update:(t,{component:s})=>{const{options:i}=s;i&&i.length>0&&(this.choicesState=i)},onIsOpenChange:t=>{this.dropdownOpenState=t.detail},onWheel:this.handleDropdownScroll,anchorToTrigger:!0,flipFallbackPlacements:this.dropdownFlipFallbackPlacements,placement:this.dropdownPlacement}),this.renderError()),i("input",{key:"beadce243c290f7d191d29961446285f332759af",type:"hidden",name:this.name,value:this.value}))}static get watchers(){return{choices:[{onChoicesPropChanged:0}],selectedValues:[{onSelectedValuesPropChanged:0}],choicesState:[{onChoicesStateChanged:0}],value:[{handleValueStateChange:0}],dropdownOpenState:[{onDropdownOpenStateChanged:0}]}}},u=class{constructor(i){t(this,i),this.close=s(this,"close",7),this.tagDragEnd=s(this,"tagDragEnd",7),this.tagDragStart=s(this,"tagDragStart",7),this.tagRemove=s(this,"tagRemove",7),this.dismissAriaLabelSuffix="tag",this.isDragging=!1,this.disabled=!1,this.dismissible=!0,this.isDraggable=!1,this.size="default",this.handleTagClick=()=>{this.disabled||this.isDraggable||this.close.emit()},this.setDragPreviewToHost=t=>{if(t.dataTransfer)try{const s=this.el.getBoundingClientRect(),i=Math.max(0,t.clientX-s.left),e=Math.max(0,t.clientY-s.top);t.dataTransfer.setDragImage(this.el,i,e)}catch{}},this.handleContentKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||t.preventDefault()},this.handleDismissClick=t=>{t.stopPropagation(),this.disabled||(this.close.emit(),this.tagRemove.emit())},this.handleDragStart=t=>{this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",this.setDragPreviewToHost(t),this.tagId&&t.dataTransfer.setData("application/x-tag-id",this.tagId),t.dataTransfer.setData("text/plain",this.getContentLabelText())),this.tagDragStart.emit({tagId:this.tagId,content:this.getContentLabelText(),originalEvent:t})},this.handleDragEnd=t=>{this.isDragging=!1,this.tagDragEnd.emit({tagId:this.tagId,dropped:"move"===t.dataTransfer?.dropEffect,originalEvent:t})},this.handleDragOver=t=>{!this.disabled&&this.isDraggable&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{!this.disabled&&this.isDraggable&&t.preventDefault()},this.handleHostDragStart=t=>{t.target===this.el&&this.isDraggable&&t.preventDefault()}}onDisabledChange(t){t&&this.isDragging&&(this.isDragging=!1)}onIsDraggableChange(t){!t&&this.isDragging&&(this.isDragging=!1)}componentDidRender(){queueMicrotask((()=>this.syncDismissAriaLabelSuffix()))}getContentLabelText(){return(this.el.querySelector(".xpl-tag__content")?.textContent??"").trim()}syncDismissAriaLabelSuffix(){if(!this.el.isConnected)return;const t=this.getContentLabelText(),s=""===t?"tag":t;s!==this.dismissAriaLabelSuffix&&(this.dismissAriaLabelSuffix=s)}render(){const t=this.isDraggable&&!this.disabled;return i(h,{key:"dc8048cbcdc849eef7f7ae81987760151bcf72bc",class:{"xpl-tag":!0,"xpl-tag-container":!0,"xpl-tag--disabled":this.disabled,"xpl-tag--dismissible":this.dismissible,"xpl-tag--dragging":this.isDragging,"xpl-tag--draggable":t,"xpl-tag--sm":"sm"===this.size},onDragOver:t?this.handleDragOver:void 0,onDragEnter:t?this.handleDragEnter:void 0,onDragStart:this.isDraggable?this.handleHostDragStart:void 0},t?i("div",{class:"xpl-tag__content xpl-tag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":String(this.isDragging),onClick:this.handleTagClick,onKeyDown:this.handleContentKeyDown,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd},i("slot",null)):i("button",{class:"xpl-tag__content xpl-tag",type:"button",disabled:this.disabled,onClick:this.handleTagClick},i("slot",null)),this.dismissible&&i("button",{key:"3c6007ea3377848cb83ffcfbcb11b84a4ce1219d",class:"xpl-tag__dismiss xpl-tag__close",type:"button",draggable:!1,disabled:this.disabled,"aria-label":`Dismiss ${this.dismissAriaLabelSuffix}`,onClick:this.handleDismissClick},i("xpl-icon",{key:"7d45494a1327aff09948d687997e531e2e96be4e",icon:"xmark",size:10})))}get el(){return n(this)}static get watchers(){return{disabled:[{onDisabledChange:0}],isDraggable:[{onIsDraggableChange:0}]}}};export{g as xpl_select,u as xpl_tag}
|
|
1
|
+
import{r as t,c as s,h as i,F as e,H as h,g as n}from"./p-ukZKsqqq.js";import{t as a}from"./p-CzwViN3U.js";import{i as l}from"./p-Dqb1pIRo.js";import{v as o}from"./p-CK3_k8jD.js";import"./p-BFTU3MAI.js";let c;function r(t){return t.label||t.value||""}function d(t){return t.value||t.label||""}function p(t){return t.flatMap((t=>t.groupName&&t.options?t.options:[t]))}const g=class{constructor(i){t(this,i),this.selectChange=s(this,"selectChange",7),this.changeEvent=s(this,"changeEvent",7),this.dropdownStateChange=s(this,"dropdownStateChange",7),this.triggerDropdown=s(this,"triggerDropdown",7),this.choices=[],this.selectIcon="chevron-down",this.dropdownPlacement="bottom-start",this.mode="single",this.truncate=!0,this.active=!1,this.id=o(),this.keepFocus=!1,this.visibleChoices=1/0,this.choicesState=[],this.value=this.calculateValue(),this.dropdownOpenState=!1,this.container=null,this.dropdown=null,this.handleResizeThrottled=a((()=>{this.maybeTruncateChoices()}),250),this.handleTabKeyDown=t=>{"Tab"===t.key&&(this.keepFocus=!0)},this.handleTagRemove=t=>{const s=s=>t?.value&&s.value===t.value||t?.label&&s.label===t.label;this.choicesState=this.choicesState.map((t=>({...t,isSelected:!s(t)&&t.isSelected,options:t.options?.map((t=>({...t,isSelected:!s(t)&&t.isSelected})))})))},this.handleDropdownScroll=t=>{const s=this.dropdown?.querySelector(".xpl-dropdown-list");if(!s)return;const{scrollTop:i,scrollHeight:e,clientHeight:h}=s;(0===i&&t.deltaY<0||i+h>=e&&t.deltaY>0)&&t.preventDefault()}}onChoicesPropChanged(t){this.choicesState=this.initializeChoicesState()}onSelectedValuesPropChanged(){this.choicesState=this.initializeChoicesState()}onChoicesStateChanged(){this.update()}handleValueStateChange(t){this.selectChange.emit(t),this.changeEvent.emit("single"===this.mode?t:t?.length?t.split("|"):[]),this.customDisplayValue&&null!==this.container&&(this.container.querySelectorAll(".custom-display-value").forEach((s=>{s.classList.toggle("display-active",t.length>0),s.classList.toggle("display-inactive",0===t.length)})),this.container.querySelectorAll(".placeholder").forEach((s=>{s.classList.toggle("placeholder-hidden",t.length>0)})))}onDropdownOpenStateChanged(t){this.dropdownStateChange.emit(t)}initializeChoicesState(){return(this.choices??[]).map((t=>{const s="string"==typeof this.selectedValues?[this.selectedValues]:this.selectedValues;return{...t,isSelected:t.isSelected||!0===s?.includes(d(t)),options:t.options?.map((t=>({...t,isSelected:t.isSelected||!0===s?.includes(d(t))})))}}))}maybeTruncateChoices(){if(!l())return;if("single"===this.mode||!this.truncate)return;const t=this.container?.getBoundingClientRect().width;let s=0,i=0;const e=p(this.choicesState)?.filter((t=>t.isSelected));if(!e.length)return;const h=e.length;e.forEach(((h,n)=>(i+=function(t){const s=l()?(void 0===c&&(c=document.createElement("canvas").getContext("2d"),c&&(c.font="14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif")),c):null;return s?s.measureText(t).width+44:0}(r(e[n])),i>(t??0)-140||(s+=1),null))),s>=h&&(s=1/0),s<1&&(s=1),this.visibleChoices=s}closeDropdown(){this.dropdown?.isOpen&&(this.dropdown.isOpen=!1,this.active=!1)}calculateValue(){const t=p(this.choicesState).filter((t=>t.isSelected));return t.length?"single"===this.mode?d(t[0]):t.map((t=>d(t))).join("|"):""}update(){this.value=this.calculateValue(),this.maybeTruncateChoices()}renderLabel(){return this.label||this.description?i("label",{class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.label,this.description&&i("small",{class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)):null}renderSelectedTags(){let t=0;const s=p(this.choicesState).filter((t=>t.isSelected));return s.length?s.map(((e,h)=>t>=this.visibleChoices?null:(t+=1,i("xpl-tag",{onClose:()=>this.handleTagRemove(s[h])},r(s[h]))))):null}renderError(){return this.error?i("label",{class:"xpl-input-error",htmlFor:this.id},i("xpl-icon",{icon:"circle-warning"}),this.error):null}componentWillLoad(){this.choicesState=this.initializeChoicesState()}handleClickEvent(t){const s=t.target.closest(".xpl-select");null!==s&&s===this.container||this.closeDropdown()}handleKeyDown(t){"Escape"===t.key&&(this.active||this.container?.contains(document.activeElement))&&this.closeDropdown()}handleResize(){this.handleResizeThrottled()}componentDidLoad(){void 0!==this.truncateRafId&&cancelAnimationFrame(this.truncateRafId),this.truncateRafId=requestAnimationFrame((()=>{this.truncateRafId=void 0,this.maybeTruncateChoices()}))}disconnectedCallback(){this.handleResizeThrottled?.cancel(),void 0!==this.truncateRafId&&(cancelAnimationFrame(this.truncateRafId),this.truncateRafId=void 0)}handleDropdownTrigger(){if(this.disabled)return;const t=this.dropdown?.isOpen??!1,s=!t;this.triggerDropdown.emit({prevState:t,nextState:s}).defaultPrevented||(this.dropdownOpenState=s,this.dropdown&&(this.dropdown.isOpen=s))}async reset(){this.closeDropdown(),this.choicesState=this.choicesState.map((t=>({...t,isSelected:!1,options:t.options?.map((t=>({...t,isSelected:!1})))})))}render(){const t=p(this.choicesState).filter((t=>t.isSelected)),s=t[0]?.label||t[0]?.value,n=t.length>1&&this.visibleChoices<1/0&&this.truncate&&!this.customDisplayValue,a=`+ ${Math.abs(this.choicesState.filter((t=>t.isSelected)).length-this.visibleChoices)} more`;return i(h,{key:"b080c68630c2c0c6bfeffb6ce27c9b9363898ecc",class:{"xpl-select":!0,"xpl-select--disabled":!!this.disabled,"xpl-select--no-truncate":!this.truncate,[this.classNames??""]:!!this.classNames},onKeyDown:this.handleTabKeyDown,ref:t=>{this.container=t}},this.renderLabel(),i("div",{key:"c2913a9da7988d4e24fd788718637bcebd93fcb6",class:{"xpl-input":!0,"xpl-input--disabled":!!this.disabled,"xpl-input--error":void 0!==this.error}},i("div",{key:"58ea7fdb31c591b2726258d786ca5550219bcd89",class:"xpl-input-wrapper"},i("button",{key:"c4c2b2f0a90cd4ef407b8797fd65b86062387678",class:"xpl-select__trigger",disabled:this.disabled,id:this.id,onKeyDown:this.handleTabKeyDown,onClick:t=>{t.preventDefault(),this.handleDropdownTrigger()},type:"button"},i("div",{key:"7ddc58167d4363991c92d90ee6e0881f04bc725f",class:{"xpl-select-value":!0,"xpl-select-value--active":"multi"===this.mode&&this.value.length>0,"has-value":this.value.length>0}},(()=>this.customDisplayValue?i(e,null,i("div",{class:{"custom-display-value":!0,"custom-display-value--inactive":0===this.value.length}},i("slot",{name:"custom-display-value"})),i("span",{class:{"xpl-placeholder--hidden":this.value.length>0}},this.placeholder)):"single"===this.mode?s||this.placeholder:this.value.length>0?this.renderSelectedTags():this.placeholder)(),n&&a),i("xpl-icon",{key:"8640f1e46263c802edf0e9b18f53d2eb6b2a78a3",class:"xpl-select__chevron-down",icon:this.selectIcon??"chevron-down"}))),!this.disabled&&i("xpl-dropdown",{key:"6fb8d97e175894715a6dbc6ed17bc5b15829ed13",ref:t=>{this.dropdown=t??null},isOpen:this.dropdownOpenState,options:this.choicesState,selectedValues:this.selectedValues,mode:this.mode,triggerId:this.id,update:(t,{component:s})=>{const{options:i}=s;i&&i.length>0&&(this.choicesState=i)},onIsOpenChange:t=>{this.dropdownOpenState=t.detail},onWheel:this.handleDropdownScroll,anchorToTrigger:!0,flipFallbackPlacements:this.dropdownFlipFallbackPlacements,placement:this.dropdownPlacement}),this.renderError()),i("input",{key:"734ef739b61de3320ce777994853cb90ab8271d2",type:"hidden",name:this.name,value:this.value}))}static get watchers(){return{choices:[{onChoicesPropChanged:0}],selectedValues:[{onSelectedValuesPropChanged:0}],choicesState:[{onChoicesStateChanged:0}],value:[{handleValueStateChange:0}],dropdownOpenState:[{onDropdownOpenStateChanged:0}]}}},u=class{constructor(i){t(this,i),this.close=s(this,"close",7),this.tagDragEnd=s(this,"tagDragEnd",7),this.tagDragStart=s(this,"tagDragStart",7),this.tagRemove=s(this,"tagRemove",7),this.dismissAriaLabelSuffix="tag",this.isDragging=!1,this.disabled=!1,this.dismissible=!0,this.isDraggable=!1,this.size="default",this.handleTagClick=()=>{this.disabled||this.isDraggable||this.close.emit()},this.setDragPreviewToHost=t=>{if(t.dataTransfer)try{const s=this.el.getBoundingClientRect(),i=Math.max(0,t.clientX-s.left),e=Math.max(0,t.clientY-s.top);t.dataTransfer.setDragImage(this.el,i,e)}catch{}},this.handleContentKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||t.preventDefault()},this.handleDismissClick=t=>{t.stopPropagation(),this.disabled||(this.close.emit(),this.tagRemove.emit())},this.handleDragStart=t=>{this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",this.setDragPreviewToHost(t),this.tagId&&t.dataTransfer.setData("application/x-tag-id",this.tagId),t.dataTransfer.setData("text/plain",this.getContentLabelText())),this.tagDragStart.emit({tagId:this.tagId,content:this.getContentLabelText(),originalEvent:t})},this.handleDragEnd=t=>{this.isDragging=!1,this.tagDragEnd.emit({tagId:this.tagId,dropped:"move"===t.dataTransfer?.dropEffect,originalEvent:t})},this.handleDragOver=t=>{!this.disabled&&this.isDraggable&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{!this.disabled&&this.isDraggable&&t.preventDefault()},this.handleHostDragStart=t=>{t.target===this.el&&this.isDraggable&&t.preventDefault()}}onDisabledChange(t){t&&this.isDragging&&(this.isDragging=!1)}onIsDraggableChange(t){!t&&this.isDragging&&(this.isDragging=!1)}componentDidRender(){queueMicrotask((()=>this.syncDismissAriaLabelSuffix()))}getContentLabelText(){return(this.el.querySelector(".xpl-tag__content")?.textContent??"").trim()}syncDismissAriaLabelSuffix(){if(!this.el.isConnected)return;const t=this.getContentLabelText(),s=""===t?"tag":t;s!==this.dismissAriaLabelSuffix&&(this.dismissAriaLabelSuffix=s)}render(){const t=this.isDraggable&&!this.disabled;return i(h,{key:"4129a867a9581efc82985d11549810860a2c6f87",class:{"xpl-tag":!0,"xpl-tag-container":!0,"xpl-tag--disabled":this.disabled,"xpl-tag--dismissible":this.dismissible,"xpl-tag--dragging":this.isDragging,"xpl-tag--draggable":t,"xpl-tag--sm":"sm"===this.size},onDragOver:t?this.handleDragOver:void 0,onDragEnter:t?this.handleDragEnter:void 0,onDragStart:this.isDraggable?this.handleHostDragStart:void 0},t?i("div",{class:"xpl-tag__content xpl-tag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":String(this.isDragging),onClick:this.handleTagClick,onKeyDown:this.handleContentKeyDown,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd},i("slot",null)):i("button",{class:"xpl-tag__content xpl-tag",type:"button",disabled:this.disabled,onClick:this.handleTagClick},i("slot",null)),this.dismissible&&i("button",{key:"fb10e5fe87053ff4c00f584d887e1f5c29b2dc74",class:"xpl-tag__dismiss xpl-tag__close",type:"button",draggable:!1,disabled:this.disabled,"aria-label":`Dismiss ${this.dismissAriaLabelSuffix}`,onClick:this.handleDismissClick},i("xpl-icon",{key:"e8afb0b6fbf1a942cce78cf6a26b420445094f30",icon:"xmark",size:10})))}get el(){return n(this)}static get watchers(){return{disabled:[{onDisabledChange:0}],isDraggable:[{onIsDraggableChange:0}]}}};export{g as xpl_select,u as xpl_tag}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as l,H as e}from"./p-ukZKsqqq.js";const c=class{constructor(l){a(this,l),this.withSubnav=!1,this.withUtility=!0,this.navWidth="default",this.navOpen=!0}closeNavOnMobile(){window.innerWidth<=640&&(this.navOpen=!1)}navToggleHandler(){this.navOpen=!this.navOpen}navWithHandler(a){this.navWidth=a.detail}onWindowResize(){this.closeNavOnMobile()}connectedCallback(){this.closeNavOnMobile()}componentWillLoad(){this.navOpen=void 0!==this.isNavOpenAtStartup?this.isNavOpenAtStartup:this.navOpen}render(){let a="xpl-application-shell";this.withUtility&&(a+=" xpl-application-shell--with_utility");let c="xpl-application-shell__nav";return c+=this.navOpen?` xpl-application-shell__nav--${this.navWidth}--open`:` xpl-application-shell__nav--${this.navWidth}`,l(e,{key:"be149a4700553c66898f5d7fa27f68896631c717",class:a},l("div",{key:"5fe0df88f9b5a19104b189ba68a8bfeea3b6afe7",class:c},l("slot",{key:"040596fdc502c23694d6f7bd036c85840d264d2d",name:"nav"})),l("div",{key:"6208807949de1949c8d2c1ff6fc6c9a775212d92",class:"xpl-application-shell__subnav"},l("slot",{key:"e194c31283abc0bcbac3db876d0acb1503d9cc12",name:"subnav"})),l("div",{key:"1cb4caa932297cd858f82d78077c10868a5af323",class:"xpl-application-shell__utility"},l("slot",{key:"cea302c27a7e067c8244ed6f33d17392c06451e5",name:"utility"})),l("div",{key:"4546be74ec501036b7113519c4a65973fb896866",class:"xpl-application-shell__content"},l("slot",{key:"8078f31fe1add42efcd65cabd5137d50dec207d6",name:"content"})),l("xpl-backdrop",{key:"cd07a3093eb1c48fce03f49241905bb2881e472a",onClick:()=>this.navToggleHandler(),class:{"xpl-application-shell__backdrop--open":this.navOpen},relative:!0}))}};export{c as xpl_application_shell}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as s,H as t,g as e}from"./p-ukZKsqqq.js";const i=class{constructor(s){r(this,s)}componentDidLoad(){const r=Array.from(this.container.querySelectorAll(".xpl-grid-item"));let s=0,t=0,e=0,i=0;r.forEach((r=>{s+=Number(r.getAttribute("lg"))||6,t+=Number(r.getAttribute("md"))||6,e+=Number(r.getAttribute("sm"))||6,i+=Number(r.getAttribute("xs"))||6,s%6==0&&r.classList.add("xpl-grid-item-lg-last"),t%6==0&&r.classList.add("xpl-grid-item-md-last"),e%6==0&&r.classList.add("xpl-grid-item-sm-last"),i%6==0&&r.classList.add("xpl-grid-item-xs-last")}))}render(){return s(t,{key:"
|
|
1
|
+
import{r,h as s,H as t,g as e}from"./p-ukZKsqqq.js";const i=class{constructor(s){r(this,s)}componentDidLoad(){const r=Array.from(this.container.querySelectorAll(".xpl-grid-item"));let s=0,t=0,e=0,i=0;r.forEach((r=>{s+=Number(r.getAttribute("lg"))||6,t+=Number(r.getAttribute("md"))||6,e+=Number(r.getAttribute("sm"))||6,i+=Number(r.getAttribute("xs"))||6,s%6==0&&r.classList.add("xpl-grid-item-lg-last"),t%6==0&&r.classList.add("xpl-grid-item-md-last"),e%6==0&&r.classList.add("xpl-grid-item-sm-last"),i%6==0&&r.classList.add("xpl-grid-item-xs-last")}))}render(){return s(t,{key:"94440d9d2f50c8712e7e4599409101da361f66d8",class:"xpl-grid"})}get container(){return e(this)}};export{i as xpl_grid}
|
|
@@ -1 +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
|
|
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 c,h}from"./p-C_PEOQWj.js";const d=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=c(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),c=[i("span",{key:"c3a19938fa87b21552b5fdff800baf2ee97c186c",class:"xpl-side-nav-section__title"},this.heading??""),i("span",{key:"9303238b226f336cbf0527ef91c2c5d8bce7771c",class:"xpl-side-nav-section__badge",hidden:!this.hasBadgeSlot},i("slot",{key:"40921f618390e462b0ac69adc0206acd82b884ca",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:"fae9c5e2d179a174aae5114a21a442fa787269ad",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},c):i("div",{class:"xpl-side-nav-section__header"},c),i("div",{key:"c33a5478f2c226b915fddf006802312eb7de29e9",id:a,class:{"xpl-side-nav-section__children":!0,expanded:s},inert:!s||void 0},i("div",{key:"ed7de4040c1e5677ad3b74eb65fc4f6357bab3b6",class:"xpl-side-nav-section__children-inner"},i("slot",{key:"3f8434e92bb7fcdd7c8a825481a12ef24ba1da28"}))))}get el(){return a(this)}};export{d as xpl_side_nav_section}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as s,g as r,c as i}from"./p-ukZKsqqq.js";import{v as e}from"./p-CK3_k8jD.js";const l={active:"green",inactive:"gray",warning:"red"};function h(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 n=class{constructor(a){t(this,a),this.cachedGroupItems=[],this.cachedSlotContent="",this.disabled=!1}onGroupDataChange(t){this.cachedGroupItems=n.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 console.warn("[Apollo] xpl-avatar: groupData is not valid JSON; rendering no group items"),[]}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:h(this.name)}static getSingleAvatarClasses(t,a,s,r){return{"xpl-avatar":!0,[`xpl-avatar--${t}`]:!!t,[`xpl-avatar--${a}`]:!!a,"xpl-avatar--profile":!!s,"xpl-avatar--disabled":!!r}}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,r,i,e=!0){return t?a("img",{alt:s??"",src:t}):a("div",{class:"xpl-avatar__placeholder",role:"img","aria-label":s??i},r||(e?a("slot",null):null))}renderAvatarMediaWithStatusBadge(t){const s=this.getPlaceholderText();return a("div",{...t?{class:t}:{}},n.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 r=t.name?h(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,n.renderAvatarMedia(t.src,t.name,r,`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,r=t.slice(0,4),i=t.length-4,e=i>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`)}(i):"";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`},r.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":`${i} more`},l)))}if("with-text"===t){const t=this.renderAvatarMediaWithStatusBadge("xpl-avatar__with-text-avatar"),r={"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:r},t,this.renderWithTextContent())):a("div",{class:r,"aria-disabled":this.disabled?"true":void 0},t,this.renderWithTextContent()))}const r="profile"===t,i=n.getSingleAvatarClasses(r&&"md"===this.size?void 0:this.size,this.color,r,this.disabled),e=this.renderAvatarMediaWithStatusBadge();return a(s,null,this.href&&!this.disabled?a("a",{...this.getAnchorProps(i)},e):a("div",{class:i,"aria-disabled":this.disabled?"true":void 0},e))}get el(){return r(this)}static get watchers(){return{groupData:[{onGroupDataChange:0}]}}},o=class{constructor(a){t(this,a)}render(){let t="xpl-divider";return t+=` xpl-divider--${this.tier}`,a(s,{key:"942681efa6bd2c3806109240a5ac5c179b112551",class:t},a("span",{key:"ce0b0ada57e7a51319260c88c10e411e3aaf2992"},a("slot",{key:"da50f574acdf87def6ff77ef743bf38cc8717a79"})))}},d=class{constructor(a){t(this,a),this.radioChange=i(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:"e3626967beb86dee46de974dd2a3c8993314d2d0",class:{"xpl-checkbox-radio-container":!0,styled:!!this.styled,disabled:!!this.disabled}},a("input",{key:"cdc8d7968dd78031f33b4f72024698f7afec27cf",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:"5bb2243b7fe42b219d3fa3696c92321b116f8c72",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},a("slot",{key:"85f1bf2c73111b8f5c0b0ae26343f590c8a50faf"}),this.description&&a("small",{key:"6452b050fe0df584373a45d105434fe31a8a82ba",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)))}};export{n as xpl_avatar,o as xpl_divider,d as xpl_radio}
|