@xplortech/apollo-core 3.2.1 → 3.3.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/README.md +1 -1
- package/build/components/accordion.css +1 -1
- package/build/components/badge.css +1 -1
- package/build/components/banner.css +1 -1
- package/build/components/breadcrumbs.css +1 -1
- package/build/components/button.css +1 -1
- package/build/components/choicelist.css +1 -1
- package/build/components/data-card.css +1 -1
- package/build/components/divider.css +1 -1
- package/build/components/dropdown.css +1 -1
- package/build/components/dynamic-table-cell.css +1 -1
- package/build/components/header-accordion.css +1 -1
- package/build/components/input-color.css +1 -1
- package/build/components/input-file.css +1 -1
- package/build/components/input-search.css +1 -1
- package/build/components/input.css +1 -1
- package/build/components/label.css +1 -1
- package/build/components/large-card.css +1 -1
- package/build/components/list-item.css +1 -1
- package/build/components/main-nav.css +1 -1
- package/build/components/modal.css +1 -1
- package/build/components/pagination.css +1 -1
- package/build/components/secondary-nav.css +1 -1
- package/build/components/select.css +1 -1
- package/build/components/side-nav.css +1 -1
- package/build/components/slideout.css +1 -1
- package/build/components/spotlight.css +1 -1
- package/build/components/table-cell-base.css +1 -1
- package/build/components/table-header-cell.css +1 -1
- package/build/components/table.css +1 -1
- package/build/components/tag.css +1 -1
- package/build/components/toast.css +1 -1
- package/build/components/toggle.css +1 -1
- package/build/components/toolbar.css +1 -1
- package/build/components/tooltip.css +1 -1
- package/build/components/top-nav.css +1 -1
- package/build/core.css +1 -1
- package/build/style.css +1 -1
- package/build/typography.css +1 -1
- package/build/variables/apollo.css +30 -19
- package/build/variables/field-edge.css +32 -19
- package/dist/apollo-core/apollo-core.css +1 -1
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-01c55c74.entry.js +1 -0
- package/dist/apollo-core/{p-050a8bf2.entry.js → p-01ed2bb5.entry.js} +1 -1
- package/dist/apollo-core/{p-b3b4678b.entry.js → p-08ea8939.entry.js} +1 -1
- package/dist/apollo-core/{p-256ece8b.entry.js → p-0a7d57ab.entry.js} +1 -1
- package/dist/apollo-core/p-13253d8f.entry.js +1 -0
- package/dist/apollo-core/{p-8845106f.entry.js → p-14f5d98a.entry.js} +1 -1
- package/dist/apollo-core/{p-5c3be343.entry.js → p-17e38eaf.entry.js} +1 -1
- package/dist/apollo-core/{p-a0d3b7f8.entry.js → p-18486aba.entry.js} +1 -1
- package/dist/apollo-core/{p-49531864.entry.js → p-19fb0e5f.entry.js} +1 -1
- package/dist/apollo-core/p-1c2135e3.entry.js +1 -0
- package/dist/apollo-core/{p-7d70e089.entry.js → p-2111cc38.entry.js} +1 -1
- package/dist/apollo-core/p-2b813212.entry.js +1 -0
- package/dist/apollo-core/p-325a3b43.entry.js +1 -0
- package/dist/apollo-core/p-38a6a53d.entry.js +1 -0
- package/dist/apollo-core/{p-808f3d9c.entry.js → p-38fa8398.entry.js} +1 -1
- package/dist/apollo-core/{p-b64ed46d.entry.js → p-3d4a6de1.entry.js} +1 -1
- package/dist/apollo-core/{p-3713cd77.entry.js → p-3e3ab332.entry.js} +1 -1
- package/dist/apollo-core/p-3f8dc5b9.entry.js +1 -0
- package/dist/apollo-core/{p-ff16f574.entry.js → p-4249ee9b.entry.js} +1 -1
- package/dist/apollo-core/{p-715baae0.entry.js → p-439d5cdd.entry.js} +1 -1
- package/dist/apollo-core/{p-f384a990.entry.js → p-4b949aeb.entry.js} +1 -1
- package/dist/apollo-core/{p-eba654a3.entry.js → p-54053547.entry.js} +1 -1
- package/dist/apollo-core/p-620fc472.entry.js +1 -0
- package/dist/apollo-core/{p-9feaa8be.entry.js → p-651b49c3.entry.js} +1 -1
- package/dist/apollo-core/{p-9d731673.entry.js → p-6aee7d6b.entry.js} +1 -1
- package/dist/apollo-core/{p-d469bf5d.entry.js → p-6de10879.entry.js} +1 -1
- package/dist/apollo-core/p-73a1c68d.entry.js +1 -0
- package/dist/apollo-core/{p-8f8f4759.entry.js → p-79d306a2.entry.js} +1 -1
- package/dist/apollo-core/{p-f579e4b0.entry.js → p-7f00b542.entry.js} +1 -1
- package/dist/apollo-core/{p-bc821e69.entry.js → p-7fd3da3a.entry.js} +1 -1
- package/dist/apollo-core/p-890c641b.entry.js +1 -0
- package/dist/apollo-core/p-9832bc63.entry.js +1 -0
- package/dist/apollo-core/{p-7eb02cf3.entry.js → p-9955c4f2.entry.js} +1 -1
- package/dist/apollo-core/p-9b757459.entry.js +1 -0
- package/dist/apollo-core/p-9c41d07f.entry.js +1 -0
- package/dist/apollo-core/{p-ee68bed6.entry.js → p-9c7a0229.entry.js} +1 -1
- package/dist/apollo-core/{p-24fa8a03.entry.js → p-9d091b05.entry.js} +1 -1
- package/dist/apollo-core/p-CJABLO_1.js +3 -0
- package/dist/apollo-core/{p-14e86de8.entry.js → p-a149351a.entry.js} +1 -1
- package/dist/apollo-core/p-a2c3a38a.entry.js +1 -0
- package/dist/apollo-core/p-a5ddb3c4.entry.js +1 -0
- package/dist/apollo-core/{p-3417c1ce.entry.js → p-a73b0ca4.entry.js} +1 -1
- package/dist/apollo-core/{p-fcb17ff9.entry.js → p-aece2c3d.entry.js} +1 -1
- package/dist/apollo-core/{p-aeb2bcb8.entry.js → p-af188297.entry.js} +1 -1
- package/dist/apollo-core/{p-ca83003e.entry.js → p-b2dcdb19.entry.js} +1 -1
- package/dist/apollo-core/p-b55951a2.entry.js +1 -0
- package/dist/apollo-core/p-b7b91f27.entry.js +1 -0
- package/dist/apollo-core/{p-11914cd4.entry.js → p-b9c85394.entry.js} +1 -1
- package/dist/apollo-core/{p-64f5c129.entry.js → p-ba85f686.entry.js} +1 -1
- package/dist/apollo-core/p-c4fd031e.entry.js +1 -0
- package/dist/apollo-core/p-cab7d816.entry.js +1 -0
- package/dist/apollo-core/{p-45c872d2.entry.js → p-cca0f1a2.entry.js} +1 -1
- package/dist/apollo-core/{p-2971e2ec.entry.js → p-cd2d73ee.entry.js} +1 -1
- package/dist/apollo-core/p-cfb00d23.entry.js +1 -0
- package/dist/apollo-core/p-d060572b.entry.js +1 -0
- package/dist/apollo-core/p-d13a07ea.entry.js +1 -0
- package/dist/apollo-core/p-d1571245.entry.js +1 -0
- package/dist/apollo-core/p-d204ed1a.entry.js +1 -0
- package/dist/apollo-core/{p-9905c77c.entry.js → p-d3720611.entry.js} +1 -1
- package/dist/apollo-core/p-d9f78325.entry.js +1 -0
- package/dist/apollo-core/{p-df257cbf.entry.js → p-dad5d377.entry.js} +1 -1
- package/dist/apollo-core/{p-d3ada7d0.entry.js → p-e21af3d1.entry.js} +1 -1
- package/dist/apollo-core/{p-c5bc3b2c.entry.js → p-e7145461.entry.js} +1 -1
- package/dist/apollo-core/p-e99503a2.entry.js +1 -0
- package/dist/apollo-core/{p-e4d50301.entry.js → p-ec99c433.entry.js} +1 -1
- package/dist/apollo-core/{p-e09d8beb.entry.js → p-fc73497e.entry.js} +1 -1
- package/dist/apollo-core/{p-907bc21e.entry.js → p-fdd1b7da.entry.js} +1 -1
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/{index-3cBvw409.js → index-EdmnG7t8.js} +52 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/xpl-accordion.cjs.entry.js +3 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +5 -5
- package/dist/cjs/xpl-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/xpl-badge.cjs.entry.js +2 -2
- package/dist/cjs/xpl-banner.cjs.entry.js +3 -3
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +3 -3
- package/dist/cjs/xpl-calendar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/xpl-choicelist.cjs.entry.js +2 -2
- package/dist/cjs/xpl-content-area.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/xpl-data-card.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +9 -9
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +3 -3
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +2 -2
- package/dist/cjs/xpl-icon.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input-color.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input-phone.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input-time.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input_4.cjs.entry.js +3 -3
- package/dist/cjs/xpl-large-card.cjs.entry.js +1 -1
- package/dist/cjs/xpl-list-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-list.cjs.entry.js +3 -3
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +1 -1
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +3 -3
- package/dist/cjs/xpl-nav-item.cjs.entry.js +3 -3
- package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/xpl-panel.cjs.entry.js +1 -1
- package/dist/cjs/xpl-popover.cjs.entry.js +5 -5
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-select_2.cjs.entry.js +10 -10
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +3 -3
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +6 -6
- package/dist/cjs/xpl-side-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/xpl-slideout.cjs.entry.js +2 -2
- package/dist/cjs/xpl-spotlight.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tab.cjs.entry.js +1 -1
- package/dist/cjs/xpl-table-body.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-cell_3.cjs.entry.js +5 -5
- package/dist/cjs/xpl-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-row.cjs.entry.js +3 -3
- package/dist/cjs/xpl-table.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tabs.cjs.entry.js +1 -1
- package/dist/cjs/xpl-toast.cjs.entry.js +3 -3
- package/dist/cjs/xpl-toggle.cjs.entry.js +1 -1
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +3 -3
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +1 -1
- package/dist/cjs/xpl-top-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- 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-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 +2 -2
- 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 +7 -6
- 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-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-input/xpl-input.js +2 -2
- 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-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
- 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/xpl-select.js +7 -7
- 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-slideout/xpl-slideout.js +1 -1
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +1 -1
- package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +1 -1
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +2 -2
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- 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-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-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-2XxO7M15.js +1 -0
- package/dist/components/{p-D09sGbzs.js → p-3R1VKKds.js} +1 -1
- package/dist/components/p-BNOkHymY.js +1 -0
- package/dist/components/p-BWAytJnz.js +1 -0
- package/dist/components/{p-B7aaJikj.js → p-BZrSTAV1.js} +1 -1
- package/dist/components/{p-CQjJIHK6.js → p-Bh-U2qmp.js} +1 -1
- package/dist/components/{p-BOm_p_mz.js → p-BowQ58XR.js} +1 -1
- package/dist/components/p-BqhTjJWq.js +1 -0
- package/dist/components/{p-CFXvQqUO.js → p-CWXfIUHo.js} +1 -1
- package/dist/components/{p-CdRmVtIN.js → p-CZg3Gb0I.js} +1 -1
- package/dist/components/{p-ohy3NrgH.js → p-CcPrBo53.js} +1 -1
- package/dist/components/p-CetimlcM.js +1 -0
- package/dist/components/{p-CV5nn1zR.js → p-CfZI7bBe.js} +1 -1
- package/dist/components/{p-2cJsJK3-.js → p-CjzUVpyd.js} +1 -1
- package/dist/components/{p-DoVubWyd.js → p-ClLyaOG7.js} +1 -1
- package/dist/components/{p-rLxtqgsy.js → p-Cop4KmAG.js} +1 -1
- package/dist/components/{p-C0AbGd4t.js → p-DHxDWgLP.js} +1 -1
- package/dist/components/{p-CuVYRPvz.js → p-DORBnmT4.js} +1 -1
- package/dist/components/{p-CmbpWpb0.js → p-DbN9vTl7.js} +1 -1
- package/dist/components/{p-DTh_zemx.js → p-Dl__XgUD.js} +1 -1
- package/dist/components/{p-8zrW9vEC.js → p-JjlTuq8d.js} +1 -1
- package/dist/components/p-d4i2Qqvl.js +1 -0
- package/dist/components/{p-Btb2UkLz.js → p-n-yq7lf4.js} +1 -1
- package/dist/components/{p-1D7CWIJ-.js → p-rQFFXcXl.js} +1 -1
- package/dist/components/p-sjDW_E4p.js +1 -0
- package/dist/components/{p-B56GeUtW.js → p-yc1qXhah.js} +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.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.js +1 -1
- package/dist/components/xpl-table-cell.js +1 -1
- package/dist/components/xpl-table-footer-cell.js +1 -1
- package/dist/components/xpl-table-footer.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.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-accordion/readme.md +5 -4
- package/dist/docs/xpl-application-shell/readme.md +10 -0
- package/dist/docs/xpl-avatar/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +7 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +1 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +1 -0
- package/dist/docs/xpl-button/readme.md +7 -0
- package/dist/docs/xpl-checkbox/readme.md +7 -0
- package/dist/docs/xpl-content-area/readme.md +7 -0
- package/dist/docs/xpl-dashboard/readme.md +7 -0
- package/dist/docs/xpl-data-card/readme.md +1 -0
- package/dist/docs/xpl-divider/readme.md +7 -0
- package/dist/docs/xpl-dropdown/readme.md +8 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +7 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +7 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +7 -0
- package/dist/docs/xpl-dynamic-table/readme.md +8 -0
- package/dist/docs/xpl-dynamic-table-cell/readme.md +7 -0
- package/dist/docs/xpl-dynamic-table-row/readme.md +7 -0
- package/dist/docs/xpl-grid-item/readme.md +7 -0
- package/dist/docs/xpl-header-accordion/readme.md +8 -0
- package/dist/docs/xpl-icon/readme.md +1 -1
- package/dist/docs/xpl-input/readme.md +8 -0
- package/dist/docs/xpl-list/readme.md +7 -0
- package/dist/docs/xpl-list/xpl-list-item/readme.md +16 -0
- package/dist/docs/xpl-main-nav/readme.md +12 -0
- package/dist/docs/xpl-nav-item/readme.md +9 -0
- package/dist/docs/xpl-popover/readme.md +1 -0
- package/dist/docs/xpl-radio/readme.md +7 -0
- package/dist/docs/xpl-secondary-nav/readme.md +7 -0
- package/dist/docs/xpl-select/readme.md +7 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +9 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +8 -0
- package/dist/docs/xpl-slideout/readme.md +13 -0
- package/dist/docs/xpl-spotlight/readme.md +1 -0
- package/dist/docs/xpl-table/readme.md +12 -0
- package/dist/docs/xpl-table/xpl-table-body/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-cell/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +59 -52
- package/dist/docs/xpl-table/xpl-table-row/readme.md +7 -0
- package/dist/docs/xpl-table-header/readme.md +7 -0
- package/dist/docs/xpl-tag/readme.md +9 -2
- package/dist/docs/xpl-toast/readme.md +8 -0
- package/dist/docs/xpl-toolbar/readme.md +8 -0
- package/dist/docs/xpl-tooltip/readme.md +7 -0
- package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +1 -0
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +1 -0
- package/dist/docs/xpl-top-nav/xpl-top-nav-menu/readme.md +1 -0
- package/dist/docs/xpl-utility-bar/readme.md +8 -0
- package/dist/docs.json +770 -88
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/{index-ukZKsqqq.js → index-CJABLO_1.js} +52 -11
- package/dist/esm/loader.js +2 -2
- package/dist/esm/xpl-accordion.entry.js +3 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +5 -5
- package/dist/esm/xpl-backdrop.entry.js +2 -2
- package/dist/esm/xpl-badge.entry.js +2 -2
- package/dist/esm/xpl-banner.entry.js +3 -3
- package/dist/esm/xpl-breadcrumb-item.entry.js +2 -2
- package/dist/esm/xpl-breadcrumbs.entry.js +2 -2
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +3 -3
- package/dist/esm/xpl-calendar.entry.js +2 -2
- package/dist/esm/xpl-checkbox.entry.js +4 -4
- package/dist/esm/xpl-choicelist.entry.js +2 -2
- package/dist/esm/xpl-content-area.entry.js +2 -2
- package/dist/esm/xpl-dashboard.entry.js +2 -2
- package/dist/esm/xpl-data-card.entry.js +3 -3
- package/dist/esm/xpl-dropdown_4.entry.js +9 -9
- package/dist/esm/xpl-dynamic-table-cell.entry.js +3 -3
- package/dist/esm/xpl-dynamic-table-row.entry.js +3 -3
- package/dist/esm/xpl-dynamic-table.entry.js +3 -3
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-header-accordion.entry.js +2 -2
- package/dist/esm/xpl-icon.entry.js +1 -1
- package/dist/esm/xpl-input-color.entry.js +1 -1
- package/dist/esm/xpl-input-phone.entry.js +1 -1
- package/dist/esm/xpl-input-time.entry.js +1 -1
- package/dist/esm/xpl-input_4.entry.js +3 -3
- package/dist/esm/xpl-large-card.entry.js +1 -1
- package/dist/esm/xpl-list-item.entry.js +1 -1
- package/dist/esm/xpl-list.entry.js +3 -3
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +1 -1
- package/dist/esm/xpl-nav-header-menu.entry.js +3 -3
- package/dist/esm/xpl-nav-item.entry.js +3 -3
- package/dist/esm/xpl-pagination.entry.js +1 -1
- package/dist/esm/xpl-panel.entry.js +1 -1
- package/dist/esm/xpl-popover.entry.js +5 -5
- package/dist/esm/xpl-progress-bar.entry.js +1 -1
- package/dist/esm/xpl-progress-indicator.entry.js +1 -1
- package/dist/esm/xpl-secondary-nav.entry.js +2 -2
- package/dist/esm/xpl-select_2.entry.js +10 -10
- package/dist/esm/xpl-side-nav-header-item.entry.js +1 -1
- package/dist/esm/xpl-side-nav-item.entry.js +3 -3
- package/dist/esm/xpl-side-nav-section.entry.js +6 -6
- package/dist/esm/xpl-side-nav.entry.js +1 -1
- package/dist/esm/xpl-skeleton.entry.js +1 -1
- package/dist/esm/xpl-slideout.entry.js +2 -2
- package/dist/esm/xpl-spotlight.entry.js +1 -1
- package/dist/esm/xpl-tab-panel.entry.js +1 -1
- package/dist/esm/xpl-tab.entry.js +1 -1
- package/dist/esm/xpl-table-body.entry.js +2 -2
- package/dist/esm/xpl-table-cell_3.entry.js +5 -5
- package/dist/esm/xpl-table-footer.entry.js +2 -2
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table-row.entry.js +3 -3
- package/dist/esm/xpl-table.entry.js +1 -1
- package/dist/esm/xpl-tabs.entry.js +1 -1
- package/dist/esm/xpl-toast.entry.js +3 -3
- package/dist/esm/xpl-toggle.entry.js +1 -1
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +2 -2
- package/dist/esm/xpl-top-nav-item.entry.js +3 -3
- package/dist/esm/xpl-top-nav-menu.entry.js +1 -1
- package/dist/esm/xpl-top-nav.entry.js +1 -1
- package/dist/esm/xpl-utility-bar.entry.js +2 -2
- package/dist/types/components.d.ts +3 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/hydrate/index.js +117 -98
- package/hydrate/index.mjs +117 -98
- package/loader/index.d.ts +1 -1
- package/package.json +13 -13
- package/dist/apollo-core/p-045a4538.entry.js +0 -1
- package/dist/apollo-core/p-08767607.entry.js +0 -1
- package/dist/apollo-core/p-194c0ccd.entry.js +0 -1
- package/dist/apollo-core/p-1c031055.entry.js +0 -1
- package/dist/apollo-core/p-24f7280a.entry.js +0 -1
- package/dist/apollo-core/p-386851a2.entry.js +0 -1
- package/dist/apollo-core/p-3cd1238b.entry.js +0 -1
- package/dist/apollo-core/p-4e3c6616.entry.js +0 -1
- package/dist/apollo-core/p-5b9fd96e.entry.js +0 -1
- package/dist/apollo-core/p-5cbf5d42.entry.js +0 -1
- package/dist/apollo-core/p-5ec2b180.entry.js +0 -1
- package/dist/apollo-core/p-65f6b66c.entry.js +0 -1
- package/dist/apollo-core/p-72e0455f.entry.js +0 -1
- package/dist/apollo-core/p-7ac7fbc0.entry.js +0 -1
- package/dist/apollo-core/p-7f4463ff.entry.js +0 -1
- package/dist/apollo-core/p-87582346.entry.js +0 -1
- package/dist/apollo-core/p-a6ecca68.entry.js +0 -1
- package/dist/apollo-core/p-a789c272.entry.js +0 -1
- package/dist/apollo-core/p-bd493c4a.entry.js +0 -1
- package/dist/apollo-core/p-bdcece21.entry.js +0 -1
- package/dist/apollo-core/p-bfb7a83a.entry.js +0 -1
- package/dist/apollo-core/p-c22f70f4.entry.js +0 -1
- package/dist/apollo-core/p-d3230277.entry.js +0 -1
- package/dist/apollo-core/p-d7f8ee34.entry.js +0 -1
- package/dist/apollo-core/p-d879c349.entry.js +0 -1
- package/dist/apollo-core/p-ea9cdd65.entry.js +0 -1
- package/dist/apollo-core/p-ukZKsqqq.js +0 -2
- package/dist/components/p-B6YLKDUX.js +0 -1
- package/dist/components/p-BSHdGbmH.js +0 -1
- package/dist/components/p-BZIZSovL.js +0 -1
- package/dist/components/p-CgemLtmL.js +0 -1
- package/dist/components/p-Dp62sBqX.js +0 -1
- package/dist/components/p-DqgnC_vS.js +0 -1
- package/dist/components/p-DtV4i45B.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-ukZKsqqq.js";export{s as setNonce}from"./p-ukZKsqqq.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a(JSON.parse('[["p-7eb02cf3",[[0,"xpl-icon",{"icon":[1],"size":[2],"backgroundColor":[1,"background-color"]}]]],["p-c5bc3b2c",[[260,"xpl-list",{"items":[16],"label":[1],"labelledBy":[1,"labelled-by"],"reorderable":[4],"selectable":[4],"keyboardReorderItemId":[32],"reorderLiveMessage":[32],"clearSelection":[64]},[[0,"keydown","handleKeyDown"],[0,"itemSelect","handleChildItemSelect"],[0,"slotchange","handleSlotChange"],[0,"itemDragStart","handleItemDragStart"],[0,"itemDragEnd","handleItemDragEnd"],[0,"itemDrop","handleItemDrop"],[0,"xplListItemReorder","handleItemReorder"]],{"keyboardReorderItemId":[{"handleKeyboardReorderItemIdChange":0}],"items":[{"handleItemsChange":0}],"reorderable":[{"handleReorderableChange":0}],"selectable":[{"handleSelectableChange":0}]}]]],["p-ff16f574",[[0,"xpl-pagination",{"totalPages":[2,"total-pages"],"withPageControl":[4,"with-page-control"],"currentPage":[1026,"current-page"],"rowsPerPageOptions":[1,"rows-per-page-options"],"selectedRowsPerPage":[1026,"selected-rows-per-page"]},null,{"currentPage":[{"onPageUpdate":0}],"totalPages":[{"onTotalPagesUpdate":0}],"selectedRowsPerPage":[{"onRowsPerPageUpdate":0}]}]]],["p-f579e4b0",[[260,"xpl-tabs",{"disabled":[4],"fullWidth":[4,"full-width"],"type":[513],"value":[1],"activeBarPosition":[32],"choicesTick":[32],"isMobileSelectChange":[32],"selectedValue":[32]},[[9,"resize","onWindowResize"]],{"disabled":[{"onDisabledChanged":0}],"fullWidth":[{"onFullWidthChanged":0}],"type":[{"onTypeChanged":0}],"value":[{"onValueChanged":0}]}]]],["p-9905c77c",[[260,"xpl-table",{"columns":[16],"data":[16],"footer":[16],"freeze":[4],"isSortable":[4,"is-sortable"],"label":[1],"multiselect":[4],"reorderHandleIcon":[1,"reorder-handle-icon"],"reorderHandleIconKeyboard":[1,"reorder-handle-icon-keyboard"],"rowReorderable":[4,"row-reorderable"],"selectable":[4],"selectedValues":[16],"sortableColumns":[16],"striped":[4],"areAllSelected":[32],"colCount":[32],"hasScrolled":[32],"keyboardReorderRowId":[32],"reorderLiveMessage":[32],"rowData":[32],"rowFooterData":[32],"selected":[32],"selectedRowIds":[32],"sortTypeArray":[32]},[[0,"xplTableColumnWidthsChange","handleHeaderCellColumnWidthsChange"],[0,"checkboxChange","handleCompositionalCheckboxChange"],[0,"headerCheckboxChange","handleCompositionalHeaderCheckboxChange"],[3,"pointerdown","handlePointerDownExitKeyboardReorder"],[3,"pointerdown","handleRowReorderPointerDown"],[3,"dragstart","handleRowReorderDragStart"],[3,"dragend","handleRowReorderDragEnd"],[2,"dragover","handleRowReorderDragOver"],[2,"dragenter","handleRowReorderDragEnter"],[3,"dragleave","handleRowReorderDragLeave"],[2,"drop","handleRowReorderDrop"],[0,"headerSortChange","handleCompositionalHeaderSort"]],{"columns":[{"watchColumns":0}],"data":[{"watchData":0}],"footer":[{"watchFooterData":0}],"reorderHandleIcon":[{"watchReorderHandleIcon":0}],"reorderHandleIconKeyboard":[{"watchReorderHandleIconKeyboard":0}],"rowReorderable":[{"watchRowReorderable":0}],"selectable":[{"watchSelectable":0}]}]]],["p-4e3c6616",[[260,"xpl-slideout",{"isOpen":[1540,"is-open"],"backdrop":[4],"variant":[1],"showFooter":[4,"show-footer"]},[[9,"scroll","handleScroll"]],{"isOpen":[{"watchPropHandler":0}]}]]],["p-aeb2bcb8",[[260,"xpl-top-nav",{"brandHref":[1,"brand-href"],"brandLogo":[1,"brand-logo"],"brandName":[1,"brand-name"],"childAccountLabel":[1,"child-account-label"],"label":[1],"navControl":[516,"nav-control"],"brandLogoSlotPresent":[32],"open":[32],"slotProjectionNonce":[32],"userMenuSlotPresent":[32],"userMenuTriggerSlotPresent":[32]},null,{"navControl":[{"onNavControlChanged":0}]}]]],["p-3713cd77",[[260,"xpl-modal",{"isOpen":[1540,"is-open"],"size":[1],"variant":[1]},null,{"isOpen":[{"updateModalState":0}]}]]],["p-715baae0",[[260,"xpl-side-nav",{"label":[1],"open":[1540],"hasHeaderSlot":[32],"toggle":[64],"setOpen":[64]},null,{"open":[{"onOpenChanged":0}]}]]],["p-8845106f",[[260,"xpl-tab",{"badge":[513],"badgeVariant":[1,"badge-variant"],"disabled":[516],"fullWidth":[4,"full-width"],"groupDisabled":[1540,"data-group-disabled"],"icon":[513],"iconPosition":[1,"icon-position"],"selected":[4],"target":[1],"variant":[1],"getFocusableElement":[64],"setTabIndex":[64],"focusTrigger":[64]}]]],["p-386851a2",[[0,"xpl-banner",{"actionText":[1,"action-text"],"appearance":[1],"description":[1],"hasIcon":[4,"has-icon"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isSection":[4,"is-section"],"secondaryActionText":[1,"secondary-action-text"],"truncateDesc":[4,"truncate-desc"]}]]],["p-bdcece21",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["p-b64ed46d",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]},null,{"choices":[{"onChoicesPropChange":0}],"selected":[{"onSelectedChange":0}]}]]],["p-8f8f4759",[[260,"xpl-data-card",{"link":[4],"name":[1],"stat":[1],"shortStat":[1,"short-stat"],"variant":[1],"leadingIcon":[4,"leading-icon"],"icon":[1],"smallStat":[1,"small-stat"],"smallStatIcon":[1,"small-stat-icon"],"detail":[1],"smallStatVariant":[1,"small-stat-variant"],"tooltipTextSmallStat":[1,"tooltip-text-small-stat"],"tooltipTextStat":[1,"tooltip-text-stat"],"graphContentPresent":[32]},null,{"stat":[{"watchStat":0}],"shortStat":[{"watchShortStat":0}]}]]],["p-9feaa8be",[[260,"xpl-header-accordion",{"contentId":[1,"content-id"],"initialExpanded":[4,"initial-expanded"],"disabled":[4],"selectedCount":[2,"selected-count"],"hasCheckbox":[4,"has-checkbox"],"expanded":[32],"parentChecked":[32],"parentIndeterminate":[32]},[[0,"checkboxChange","handleChildCheckboxChange"]],{"selectedCount":[{"watchSelectedCount":0}]}]]],["p-256ece8b",[[260,"xpl-spotlight",{"actionLayout":[1,"action-layout"],"anchorPosition":[1,"anchor-position"],"body":[1],"currentStep":[2,"current-step"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isOpen":[4,"is-open"],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"showActions":[4,"show-actions"],"showImage":[4,"show-image"],"showSteps":[4,"show-steps"],"target":[1],"totalSteps":[2,"total-steps"],"hasBodySlotContent":[32],"hasFloatingPosition":[32],"hasImageSlotContent":[32],"hasTitleSlotContent":[32],"dialogLabelId":[32],"isVisible":[32],"resolvedAnchorPosition":[32]},[[4,"keydown","handleKeyDown"]],{"anchorPosition":[{"onAnchorPositionChange":0}],"isOpen":[{"onIsOpenChange":0}],"target":[{"onTargetChange":0}]}]]],["p-1c031055",[[260,"xpl-toast",{"caption":[1],"dismissable":[4],"dismissible":[4],"showIcon":[4,"show-icon"],"timeout":[2],"variant":[1]},null,{"dismissable":[{"handleDismissableChange":0}],"timeout":[{"handleTimeoutChange":0}]}]]],["p-050a8bf2",[[260,"xpl-top-nav-menu",{"label":[1],"isMobileCascade":[32]}]]],["p-ea9cdd65",[[260,"xpl-accordion",{"contentId":[1,"content-id"],"header":[1],"description":[1],"initialExpanded":[4,"initial-expanded"],"size":[1],"borderType":[1,"border-type"],"expanded":[32],"parentCheckboxChange":[64]},[[0,"checkboxChange","listenToChangeEvent"]],{"initialExpanded":[{"watchInitialExpanded":0}]}]]],["p-045a4538",[[260,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["p-e4d50301",[[260,"xpl-large-card",{"link":[4],"name":[1],"description":[1],"graphContentPresent":[32]}]]],["p-eba654a3",[[0,"xpl-progress-bar",{"helperText":[1,"helper-text"],"label":[1],"max":[2],"size":[1],"value":[2],"variant":[1]}]]],["p-49531864",[[0,"xpl-progress-indicator",{"currentStep":[1026,"current-step"],"layout":[1],"showLabels":[4,"show-labels"],"showNumbers":[4,"show-numbers"],"steps":[16]},null,{"steps":[{"validateCurrentStep":0}],"currentStep":[{"validateCurrentStep":0}]}]]],["p-24fa8a03",[[260,"xpl-side-nav-header-item",{"icon":[1],"label":[1],"selected":[516],"type":[513],"hasLeadingSlot":[32],"hasTrailingSlot":[32]}]]],["p-907bc21e",[[260,"xpl-side-nav-item",{"disabled":[516],"expanded":[1540],"hasChildren":[1540,"has-children"],"hidden":[516],"icon":[1],"label":[1],"link":[516],"selected":[516],"hasTrailingSlot":[32]},null,{"hasChildren":[{"syncLinkHasChildrenExclusivity":0}],"link":[{"syncLinkHasChildrenExclusivity":0}]}]]],["p-bfb7a83a",[[260,"xpl-side-nav-section",{"collapsible":[516],"expanded":[1540],"heading":[1],"hasBadgeSlot":[32],"hasNamedBadgeSlot":[32]}]]],["p-7d70e089",[[260,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}]]],["p-df257cbf",[[260,"xpl-breadcrumb-item"]]],["p-7f4463ff",[[260,"xpl-breadcrumbs"]]],["p-bc821e69",[[0,"xpl-calendar",{"inputId":[1,"input-id"],"dateFormat":[1,"date-format"],"max":[8],"min":[8],"mode":[1],"defaultDate":[1,"default-date"],"setDate":[64]}]]],["p-194c0ccd",[[260,"xpl-content-area",{"size":[1]}]]],["p-3cd1238b",[[260,"xpl-dashboard"]]],["p-9d731673",[[260,"xpl-dynamic-table",{"colCount":[32],"hasAccordion":[32],"selectedItemCount":[32]},[[8,"deselectAll","listenToDeselectEvent"],[8,"checkboxChange","listenToChangeEvent"]]]]],["p-f384a990",[[260,"xpl-dynamic-table-cell",{"disabled":[4]}]]],["p-08767607",[[260,"xpl-dynamic-table-row",{"disabled":[4],"selected":[4],"isDisabled":[32]}]]],["p-c22f70f4",[[0,"xpl-grid"]]],["p-24f7280a",[[260,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["p-a789c272",[[260,"xpl-main-nav",{"width":[1]}]]],["p-64f5c129",[[260,"xpl-nav-header-menu",{"email":[1],"username":[1],"rightAsideMobilePresent":[32]}]]],["p-5ec2b180",[[260,"xpl-nav-item",{"navControl":[4,"nav-control"]}]]],["p-5c3be343",[[260,"xpl-panel",{"accent":[1],"padding":[1]}]]],["p-d3230277",[[260,"xpl-secondary-nav"]]],["p-14e86de8",[[0,"xpl-skeleton",{"classNames":[1,"class-names"],"fullWidth":[4,"full-width"],"height":[1],"width":[1],"margin":[1],"shape":[1],"size":[1]}]]],["p-5cbf5d42",[[260,"xpl-tab-panel",{"selected":[4],"target":[1]}]]],["p-7ac7fbc0",[[260,"xpl-table-body"]]],["p-a6ecca68",[[260,"xpl-table-footer"]]],["p-5b9fd96e",[[260,"xpl-table-header"]]],["p-d3ada7d0",[[260,"xpl-table-row",{"disabled":[516],"rowId":[513,"row-id"],"selected":[516]},null,{"disabled":[{"onDisabledChange":0}]}]]],["p-e09d8beb",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["p-bd493c4a",[[260,"xpl-toolbar",{"selectedItemCount":[2,"selected-item-count"]},[[8,"selectedItemCountChange","listenToSelectedItemCountChange"]]]]],["p-3417c1ce",[[260,"xpl-button",{"controlAttrs":[16],"disabled":[4],"form":[1],"fullWidth":[4,"full-width"],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"isLoading":[4,"is-loading"],"link":[4],"name":[1],"sentiment":[1],"size":[1],"state":[1],"type":[1],"value":[1],"variant":[1]},[[2,"click","handleDisabledClick"]]]]],["p-a0d3b7f8",[[260,"xpl-list-item",{"disabled":[4],"error":[4],"hidden":[4],"href":[1],"item":[16],"itemId":[1025,"item-id"],"keyboardActive":[4,"keyboard-active"],"radioName":[1,"radio-name"],"reorderable":[4],"selectable":[4],"selected":[4],"showDivider":[4,"show-divider"],"titleBadgeVariant":[1,"title-badge-variant"],"slotPresence":[32],"isKeyboardMode":[32]},[[0,"slotchange","handleSlotChange"]],{"item":[{"handleItemChange":0}],"keyboardActive":[{"handleKeyboardActiveChange":0}],"selected":[{"handleSelectedChange":0}],"titleBadgeVariant":[{"handleTitleBadgeVariantChange":0}]}]]],["p-d879c349",[[260,"xpl-tooltip",{"text":[1],"position":[1],"hideArrow":[4,"hide-arrow"]}]]],["p-ca83003e",[[260,"xpl-top-nav-item",{"active":[516],"description":[1],"href":[1],"icon":[1],"itemAriaLabel":[1,"item-aria-label"],"label":[1],"open":[1540],"openMode":[513,"open-mode"],"selected":[516],"hasActiveDescendant":[32],"hasDropdown":[32],"isLeadingIconSlotPresent":[32],"isMobileViewport":[32],"hostListitemRole":[32],"isTrailingIconSlotPresent":[32],"closeMenu":[64],"openMenu":[64],"toggleMenu":[64]},[[0,"_xplCloseNavDropdown","handleCloseNavDropdownRequest"]],{"hasDropdown":[{"onHasDropdownChanged":0}],"open":[{"onOpenChanged":0}]}]]],["p-808f3d9c",[[260,"xpl-table-header-cell",{"align":[1],"checkboxAriaLabel":[1,"checkbox-aria-label"],"checked":[4],"columnWidth":[513,"column-width"],"icon":[1],"indeterminate":[4],"label":[1],"sortDirection":[1537,"sort-direction"],"sortKey":[1,"sort-key"],"sortable":[4],"type":[513],"width":[514]},null,{"columnWidth":[{"watchColumnWidth":0}],"width":[{"watchWidth":0}]}],[260,"xpl-table-cell",{"align":[1],"bold":[4],"disabled":[4],"underline":[4]},null,{"disabled":[{"onDisabledChange":0}]}],[260,"xpl-table-footer-cell",{"align":[1]}]]],["p-ee68bed6",[[260,"xpl-popover",{"isOpen":[4,"is-open"],"disabled":[4],"position":[1],"display":[1],"isOpenState":[32],"actualPosition":[32],"updateListener":[32]},null,{"isOpen":[{"onIsOpenPropChange":0}],"isOpenState":[{"onIsOpenStateChange":0}]}]]],["p-b3b4678b",[[0,"xpl-input-color",{"value":[1],"placeholder":[1],"disabled":[4],"required":[4],"hideEyeDropper":[4,"hide-eye-dropper"],"hasErrorState":[32],"colorValues":[32],"eyeDropperSupported":[32],"hue":[32]},null,{"colorValues":[{"valueChanged":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValuePropChange":0}]}]]],["p-87582346",[[260,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[1040],"anchorToTrigger":[4,"anchor-to-trigger"],"flipFallbackPlacements":[16],"placement":[1],"selectedValues":[1,"selected-values"],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"virtualEnd":[32],"virtualStart":[32],"handleSelect":[64]},null,{"options":[{"onOptionsChanged":0}],"anchorToTrigger":[{"onAnchorToTriggerChanged":0}],"flipFallbackPlacements":[{"onFlipFallbackPlacementsChanged":0}],"placement":[{"onPlacementChanged":0}],"triggerId":[{"onTriggerIdChanged":0}],"selectedValues":[{"onSelectedValuesChanged":0}],"isOpen":[{"onIsOpenStateChange":0}]}],[260,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}],[260,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"value":[1],"subtitle":[1],"icon":[1],"isSelected":[4,"selected"]}],[260,"xpl-dropdown-heading",{"label":[1]}]]],["p-2971e2ec",[[0,"xpl-input-time",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1537],"placeholder":[1],"max":[8],"min":[8],"step":[2],"mode":[1],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"formattedValue":[32],"hasErrorState":[32],"showOptions":[32],"options":[32],"amPm":[32]},null,{"value":[{"onValueChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}]}]]],["p-11914cd4",[[0,"xpl-input-phone",{"defaultCountry":[1,"default-country"],"disabled":[4],"error":[4],"inputId":[1,"input-id"],"isInternational":[4,"is-international"],"name":[1],"placeholder":[1],"preferredCountries":[16],"readonly":[4],"required":[4],"value":[1537],"dropdownOpen":[32],"hasErrorState":[32],"nationalNumber":[32],"searchQuery":[32],"selectedCountry":[32],"triggerId":[32]},null,{"dropdownOpen":[{"onDropdownOpenChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChange":0}]}]]],["p-72e0455f",[[0,"xpl-backdrop",{"relative":[4]}]]],["p-65f6b66c",[[260,"xpl-badge",{"bordered":[4],"dot":[4],"dotOnly":[4,"dot-only"],"shape":[1],"size":[1],"variant":[1]}]]],["p-d7f8ee34",[[260,"xpl-checkbox",{"ariaLabel":[1,"aria-label"],"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"value":[1],"required":[4],"styled":[4],"dataId":[1,"data-id"],"id":[32]}]]],["p-45c872d2",[[260,"xpl-select",{"choices":[16],"selectIcon":[1,"select-icon"],"description":[1],"disabled":[4],"dropdownFlipFallbackPlacements":[16],"dropdownPlacement":[1,"dropdown-placement"],"error":[1],"label":[1],"mode":[1],"name":[1],"placeholder":[1],"truncate":[4],"customDisplayValue":[4,"custom-display-value"],"selectedValues":[1,"selected-values"],"classNames":[1,"class-names"],"active":[32],"id":[32],"keepFocus":[32],"visibleChoices":[32],"choicesState":[32],"value":[32],"dropdownOpenState":[32],"reset":[64]},[[8,"click","handleClickEvent"],[8,"keydown","handleKeyDown"],[9,"resize","handleResize"]],{"choices":[{"onChoicesPropChanged":0}],"selectedValues":[{"onSelectedValuesPropChanged":0}],"choicesState":[{"onChoicesStateChanged":0}],"value":[{"handleValueStateChange":0}],"dropdownOpenState":[{"onDropdownOpenStateChanged":0}]}],[260,"xpl-tag",{"disabled":[4],"dismissible":[4],"isDraggable":[4,"is-draggable"],"size":[1],"tagId":[1,"tag-id"],"dismissAriaLabelSuffix":[32],"isDragging":[32]},null,{"disabled":[{"onDisabledChange":0}],"isDraggable":[{"onIsDraggableChange":0}]}]]],["p-d469bf5d",[[260,"xpl-avatar",{"color":[1],"disabled":[4],"groupData":[1,"group-data"],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"subText":[1,"sub-text"],"target":[1],"variant":[1],"cachedGroupItems":[32],"cachedSlotContent":[32]},null,{"groupData":[{"onGroupDataChange":0}]}],[260,"xpl-divider",{"tier":[2]}],[260,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"value":[1],"required":[4],"selectedValue":[1,"selected-value"],"styled":[4],"id":[32]}]]],["p-fcb17ff9",[[260,"xpl-input",{"_id":[1],"description":[1],"disabled":[4],"error":[1],"label":[1],"name":[1],"required":[4],"readonly":[4],"value":[1],"autocomplete":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"step":[2],"multiline":[4],"maxCharacterCount":[2,"max-character-count"],"dateFormat":[1,"date-format"],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"mode":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"hideEyeDropper":[4,"hide-eye-dropper"],"defaultCountry":[1,"default-country"],"preferredCountries":[16],"isInternational":[4,"is-international"],"ariaLabel":[1,"aria-label"],"shape":[1],"type":[1],"characterCount":[32],"passwordVisible":[32],"hasPreSlotContent":[32],"setFocus":[64]}],[0,"xpl-input-date",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"dateFormat":[1,"date-format"],"mode":[1],"flatpickrStaticLayout":[32],"hasErrorState":[32]},null,{"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChanged":0}]}],[260,"xpl-input-file",{"disabled":[4],"name":[1],"_id":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"files":[32],"removeFileByIndex":[64]},null,{"files":[{"onFilesChange":0}]}],[0,"xpl-input-search",{"ariaLabel":[1,"aria-label"],"autocomplete":[1],"disabled":[4],"errorMessageId":[1,"error-message-id"],"hasError":[4,"has-error"],"hasVisibleLabel":[4,"has-visible-label"],"inputId":[1,"input-id"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"value":[1025],"hasAncestorForm":[32],"setFocus":[64]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as a}from"./p-CJABLO_1.js";export{s as setNonce}from"./p-CJABLO_1.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a(JSON.parse('[["p-9955c4f2",[[0,"xpl-icon",{"icon":[1],"size":[2],"backgroundColor":[1,"background-color"]}]]],["p-e7145461",[[260,"xpl-list",{"items":[16],"label":[1],"labelledBy":[1,"labelled-by"],"reorderable":[4],"selectable":[4],"keyboardReorderItemId":[32],"reorderLiveMessage":[32],"clearSelection":[64]},[[0,"keydown","handleKeyDown"],[0,"itemSelect","handleChildItemSelect"],[0,"slotchange","handleSlotChange"],[0,"itemDragStart","handleItemDragStart"],[0,"itemDragEnd","handleItemDragEnd"],[0,"itemDrop","handleItemDrop"],[0,"xplListItemReorder","handleItemReorder"]],{"keyboardReorderItemId":[{"handleKeyboardReorderItemIdChange":0}],"items":[{"handleItemsChange":0}],"reorderable":[{"handleReorderableChange":0}],"selectable":[{"handleSelectableChange":0}]}]]],["p-4249ee9b",[[0,"xpl-pagination",{"totalPages":[2,"total-pages"],"withPageControl":[4,"with-page-control"],"currentPage":[1026,"current-page"],"rowsPerPageOptions":[1,"rows-per-page-options"],"selectedRowsPerPage":[1026,"selected-rows-per-page"]},null,{"currentPage":[{"onPageUpdate":0}],"totalPages":[{"onTotalPagesUpdate":0}],"selectedRowsPerPage":[{"onRowsPerPageUpdate":0}]}]]],["p-7f00b542",[[260,"xpl-tabs",{"disabled":[4],"fullWidth":[4,"full-width"],"type":[513],"value":[1],"activeBarPosition":[32],"choicesTick":[32],"isMobileSelectChange":[32],"selectedValue":[32]},[[9,"resize","onWindowResize"]],{"disabled":[{"onDisabledChanged":0}],"fullWidth":[{"onFullWidthChanged":0}],"type":[{"onTypeChanged":0}],"value":[{"onValueChanged":0}]}]]],["p-d3720611",[[260,"xpl-table",{"columns":[16],"data":[16],"footer":[16],"freeze":[4],"isSortable":[4,"is-sortable"],"label":[1],"multiselect":[4],"reorderHandleIcon":[1,"reorder-handle-icon"],"reorderHandleIconKeyboard":[1,"reorder-handle-icon-keyboard"],"rowReorderable":[4,"row-reorderable"],"selectable":[4],"selectedValues":[16],"sortableColumns":[16],"striped":[4],"areAllSelected":[32],"colCount":[32],"hasScrolled":[32],"keyboardReorderRowId":[32],"reorderLiveMessage":[32],"rowData":[32],"rowFooterData":[32],"selected":[32],"selectedRowIds":[32],"sortTypeArray":[32]},[[0,"xplTableColumnWidthsChange","handleHeaderCellColumnWidthsChange"],[0,"checkboxChange","handleCompositionalCheckboxChange"],[0,"headerCheckboxChange","handleCompositionalHeaderCheckboxChange"],[3,"pointerdown","handlePointerDownExitKeyboardReorder"],[3,"pointerdown","handleRowReorderPointerDown"],[3,"dragstart","handleRowReorderDragStart"],[3,"dragend","handleRowReorderDragEnd"],[2,"dragover","handleRowReorderDragOver"],[2,"dragenter","handleRowReorderDragEnter"],[3,"dragleave","handleRowReorderDragLeave"],[2,"drop","handleRowReorderDrop"],[0,"headerSortChange","handleCompositionalHeaderSort"]],{"columns":[{"watchColumns":0}],"data":[{"watchData":0}],"footer":[{"watchFooterData":0}],"reorderHandleIcon":[{"watchReorderHandleIcon":0}],"reorderHandleIconKeyboard":[{"watchReorderHandleIconKeyboard":0}],"rowReorderable":[{"watchRowReorderable":0}],"selectable":[{"watchSelectable":0}]}]]],["p-325a3b43",[[260,"xpl-slideout",{"isOpen":[1540,"is-open"],"backdrop":[4],"variant":[1],"showFooter":[4,"show-footer"]},[[9,"scroll","handleScroll"]],{"isOpen":[{"watchPropHandler":0}]}]]],["p-af188297",[[260,"xpl-top-nav",{"brandHref":[1,"brand-href"],"brandLogo":[1,"brand-logo"],"brandName":[1,"brand-name"],"childAccountLabel":[1,"child-account-label"],"label":[1],"navControl":[516,"nav-control"],"brandLogoSlotPresent":[32],"open":[32],"slotProjectionNonce":[32],"userMenuSlotPresent":[32],"userMenuTriggerSlotPresent":[32]},null,{"navControl":[{"onNavControlChanged":0}]}]]],["p-3e3ab332",[[260,"xpl-modal",{"isOpen":[1540,"is-open"],"size":[1],"variant":[1]},null,{"isOpen":[{"updateModalState":0}]}]]],["p-439d5cdd",[[260,"xpl-side-nav",{"label":[1],"open":[1540],"hasHeaderSlot":[32],"toggle":[64],"setOpen":[64]},null,{"open":[{"onOpenChanged":0}]}]]],["p-14f5d98a",[[260,"xpl-tab",{"badge":[513],"badgeVariant":[1,"badge-variant"],"disabled":[516],"fullWidth":[4,"full-width"],"groupDisabled":[1540,"data-group-disabled"],"icon":[513],"iconPosition":[1,"icon-position"],"selected":[4],"target":[1],"variant":[1],"getFocusableElement":[64],"setTabIndex":[64],"focusTrigger":[64]}]]],["p-620fc472",[[0,"xpl-banner",{"actionText":[1,"action-text"],"appearance":[1],"description":[1],"hasIcon":[4,"has-icon"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isSection":[4,"is-section"],"secondaryActionText":[1,"secondary-action-text"],"truncateDesc":[4,"truncate-desc"]}]]],["p-38a6a53d",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["p-3d4a6de1",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]},null,{"choices":[{"onChoicesPropChange":0}],"selected":[{"onSelectedChange":0}]}]]],["p-79d306a2",[[260,"xpl-data-card",{"link":[4],"name":[1],"stat":[1],"shortStat":[1,"short-stat"],"variant":[1],"leadingIcon":[4,"leading-icon"],"icon":[1],"smallStat":[1,"small-stat"],"smallStatIcon":[1,"small-stat-icon"],"detail":[1],"smallStatVariant":[1,"small-stat-variant"],"tooltipTextSmallStat":[1,"tooltip-text-small-stat"],"tooltipTextStat":[1,"tooltip-text-stat"],"graphContentPresent":[32]},null,{"stat":[{"watchStat":0}],"shortStat":[{"watchShortStat":0}]}]]],["p-651b49c3",[[260,"xpl-header-accordion",{"contentId":[1,"content-id"],"initialExpanded":[4,"initial-expanded"],"disabled":[4],"selectedCount":[2,"selected-count"],"hasCheckbox":[4,"has-checkbox"],"expanded":[32],"parentChecked":[32],"parentIndeterminate":[32]},[[0,"checkboxChange","handleChildCheckboxChange"]],{"selectedCount":[{"watchSelectedCount":0}]}]]],["p-0a7d57ab",[[260,"xpl-spotlight",{"actionLayout":[1,"action-layout"],"anchorPosition":[1,"anchor-position"],"body":[1],"currentStep":[2,"current-step"],"heading":[1],"isDismissible":[4,"is-dismissible"],"isOpen":[4,"is-open"],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"showActions":[4,"show-actions"],"showImage":[4,"show-image"],"showSteps":[4,"show-steps"],"target":[1],"totalSteps":[2,"total-steps"],"hasBodySlotContent":[32],"hasFloatingPosition":[32],"hasImageSlotContent":[32],"hasTitleSlotContent":[32],"dialogLabelId":[32],"isVisible":[32],"resolvedAnchorPosition":[32]},[[4,"keydown","handleKeyDown"]],{"anchorPosition":[{"onAnchorPositionChange":0}],"isOpen":[{"onIsOpenChange":0}],"target":[{"onTargetChange":0}]}]]],["p-d060572b",[[260,"xpl-toast",{"caption":[1],"dismissable":[4],"dismissible":[4],"showIcon":[4,"show-icon"],"timeout":[2],"variant":[1]},null,{"dismissable":[{"handleDismissableChange":0}],"timeout":[{"handleTimeoutChange":0}]}]]],["p-01ed2bb5",[[260,"xpl-top-nav-menu",{"label":[1],"isMobileCascade":[32]}]]],["p-d1571245",[[260,"xpl-accordion",{"contentId":[1,"content-id"],"header":[1],"description":[1],"initialExpanded":[4,"initial-expanded"],"size":[1],"borderType":[1,"border-type"],"expanded":[32],"parentCheckboxChange":[64]},[[0,"checkboxChange","listenToChangeEvent"]],{"initialExpanded":[{"watchInitialExpanded":0}]}]]],["p-890c641b",[[260,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["p-ec99c433",[[260,"xpl-large-card",{"link":[4],"name":[1],"description":[1],"graphContentPresent":[32]}]]],["p-54053547",[[0,"xpl-progress-bar",{"helperText":[1,"helper-text"],"label":[1],"max":[2],"size":[1],"value":[2],"variant":[1]}]]],["p-19fb0e5f",[[0,"xpl-progress-indicator",{"currentStep":[1026,"current-step"],"layout":[1],"showLabels":[4,"show-labels"],"showNumbers":[4,"show-numbers"],"steps":[16]},null,{"steps":[{"validateCurrentStep":0}],"currentStep":[{"validateCurrentStep":0}]}]]],["p-9d091b05",[[260,"xpl-side-nav-header-item",{"icon":[1],"label":[1],"selected":[516],"type":[513],"hasLeadingSlot":[32],"hasTrailingSlot":[32]}]]],["p-fdd1b7da",[[260,"xpl-side-nav-item",{"disabled":[516],"expanded":[1540],"hasChildren":[1540,"has-children"],"hidden":[516],"icon":[1],"label":[1],"link":[516],"selected":[516],"hasTrailingSlot":[32]},null,{"hasChildren":[{"syncLinkHasChildrenExclusivity":0}],"link":[{"syncLinkHasChildrenExclusivity":0}]}]]],["p-3f8dc5b9",[[260,"xpl-side-nav-section",{"collapsible":[516],"expanded":[1540],"heading":[1],"hasBadgeSlot":[32],"hasNamedBadgeSlot":[32]}]]],["p-2111cc38",[[260,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}]]],["p-dad5d377",[[260,"xpl-breadcrumb-item"]]],["p-9c41d07f",[[260,"xpl-breadcrumbs"]]],["p-7fd3da3a",[[0,"xpl-calendar",{"inputId":[1,"input-id"],"dateFormat":[1,"date-format"],"max":[8],"min":[8],"mode":[1],"defaultDate":[1,"default-date"],"setDate":[64]}]]],["p-b7b91f27",[[260,"xpl-content-area",{"size":[1]}]]],["p-9b757459",[[260,"xpl-dashboard"]]],["p-6aee7d6b",[[260,"xpl-dynamic-table",{"colCount":[32],"hasAccordion":[32],"selectedItemCount":[32]},[[8,"deselectAll","listenToDeselectEvent"],[8,"checkboxChange","listenToChangeEvent"]]]]],["p-4b949aeb",[[260,"xpl-dynamic-table-cell",{"disabled":[4]}]]],["p-cab7d816",[[260,"xpl-dynamic-table-row",{"disabled":[4],"selected":[4],"isDisabled":[32]}]]],["p-13253d8f",[[0,"xpl-grid"]]],["p-d204ed1a",[[260,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["p-01c55c74",[[260,"xpl-main-nav",{"width":[1]}]]],["p-ba85f686",[[260,"xpl-nav-header-menu",{"email":[1],"username":[1],"rightAsideMobilePresent":[32]}]]],["p-cfb00d23",[[260,"xpl-nav-item",{"navControl":[4,"nav-control"]}]]],["p-17e38eaf",[[260,"xpl-panel",{"accent":[1],"padding":[1]}]]],["p-d9f78325",[[260,"xpl-secondary-nav"]]],["p-a149351a",[[0,"xpl-skeleton",{"classNames":[1,"class-names"],"fullWidth":[4,"full-width"],"height":[1],"width":[1],"margin":[1],"shape":[1],"size":[1]}]]],["p-a2c3a38a",[[260,"xpl-tab-panel",{"selected":[4],"target":[1]}]]],["p-d13a07ea",[[260,"xpl-table-body"]]],["p-2b813212",[[260,"xpl-table-footer"]]],["p-9832bc63",[[260,"xpl-table-header"]]],["p-e21af3d1",[[260,"xpl-table-row",{"disabled":[516],"rowId":[513,"row-id"],"selected":[516]},null,{"disabled":[{"onDisabledChange":0}]}]]],["p-fc73497e",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["p-b55951a2",[[260,"xpl-toolbar",{"selectedItemCount":[2,"selected-item-count"]},[[8,"selectedItemCountChange","listenToSelectedItemCountChange"]]]]],["p-a73b0ca4",[[260,"xpl-button",{"controlAttrs":[16],"disabled":[4],"form":[1],"fullWidth":[4,"full-width"],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"isLoading":[4,"is-loading"],"link":[4],"name":[1],"sentiment":[1],"size":[1],"state":[1],"type":[1],"value":[1],"variant":[1]},[[2,"click","handleDisabledClick"]]]]],["p-18486aba",[[260,"xpl-list-item",{"disabled":[4],"error":[4],"hidden":[4],"href":[1],"item":[16],"itemId":[1025,"item-id"],"keyboardActive":[4,"keyboard-active"],"radioName":[1,"radio-name"],"reorderable":[4],"selectable":[4],"selected":[4],"showDivider":[4,"show-divider"],"titleBadgeVariant":[1,"title-badge-variant"],"slotPresence":[32],"isKeyboardMode":[32]},[[0,"slotchange","handleSlotChange"]],{"item":[{"handleItemChange":0}],"keyboardActive":[{"handleKeyboardActiveChange":0}],"selected":[{"handleSelectedChange":0}],"titleBadgeVariant":[{"handleTitleBadgeVariantChange":0}]}]]],["p-1c2135e3",[[260,"xpl-tooltip",{"text":[1],"position":[1],"hideArrow":[4,"hide-arrow"]}]]],["p-b2dcdb19",[[260,"xpl-top-nav-item",{"active":[516],"description":[1],"href":[1],"icon":[1],"itemAriaLabel":[1,"item-aria-label"],"label":[1],"open":[1540],"openMode":[513,"open-mode"],"selected":[516],"hasActiveDescendant":[32],"hasDropdown":[32],"isLeadingIconSlotPresent":[32],"isMobileViewport":[32],"hostListitemRole":[32],"isTrailingIconSlotPresent":[32],"closeMenu":[64],"openMenu":[64],"toggleMenu":[64]},[[0,"_xplCloseNavDropdown","handleCloseNavDropdownRequest"]],{"hasDropdown":[{"onHasDropdownChanged":0}],"open":[{"onOpenChanged":0}]}]]],["p-38fa8398",[[260,"xpl-table-header-cell",{"align":[1],"checkboxAriaLabel":[1,"checkbox-aria-label"],"checked":[4],"columnWidth":[513,"column-width"],"icon":[1],"indeterminate":[4],"label":[1],"sortDirection":[1537,"sort-direction"],"sortKey":[1,"sort-key"],"sortable":[4],"type":[513],"width":[514]},null,{"columnWidth":[{"watchColumnWidth":0}],"width":[{"watchWidth":0}]}],[260,"xpl-table-cell",{"align":[1],"bold":[4],"disabled":[4],"underline":[4]},null,{"disabled":[{"onDisabledChange":0}]}],[260,"xpl-table-footer-cell",{"align":[1]}]]],["p-9c7a0229",[[260,"xpl-popover",{"isOpen":[4,"is-open"],"disabled":[4],"position":[1],"display":[1],"isOpenState":[32],"actualPosition":[32],"updateListener":[32]},null,{"isOpen":[{"onIsOpenPropChange":0}],"isOpenState":[{"onIsOpenStateChange":0}]}]]],["p-08ea8939",[[0,"xpl-input-color",{"value":[1],"placeholder":[1],"disabled":[4],"required":[4],"hideEyeDropper":[4,"hide-eye-dropper"],"hasErrorState":[32],"colorValues":[32],"eyeDropperSupported":[32],"hue":[32]},null,{"colorValues":[{"valueChanged":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValuePropChange":0}]}]]],["p-c4fd031e",[[260,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[1040],"anchorToTrigger":[4,"anchor-to-trigger"],"flipFallbackPlacements":[16],"placement":[1],"selectedValues":[1,"selected-values"],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"virtualEnd":[32],"virtualStart":[32],"handleSelect":[64]},null,{"options":[{"onOptionsChanged":0}],"anchorToTrigger":[{"onAnchorToTriggerChanged":0}],"flipFallbackPlacements":[{"onFlipFallbackPlacementsChanged":0}],"placement":[{"onPlacementChanged":0}],"triggerId":[{"onTriggerIdChanged":0}],"selectedValues":[{"onSelectedValuesChanged":0}],"isOpen":[{"onIsOpenStateChange":0}]}],[260,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}],[260,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"value":[1],"subtitle":[1],"icon":[1],"isSelected":[4,"selected"]}],[260,"xpl-dropdown-heading",{"label":[1]}]]],["p-cd2d73ee",[[0,"xpl-input-time",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1537],"placeholder":[1],"max":[8],"min":[8],"step":[2],"mode":[1],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"formattedValue":[32],"hasErrorState":[32],"showOptions":[32],"options":[32],"amPm":[32]},null,{"value":[{"onValueChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}]}]]],["p-b9c85394",[[0,"xpl-input-phone",{"defaultCountry":[1,"default-country"],"disabled":[4],"error":[4],"inputId":[1,"input-id"],"isInternational":[4,"is-international"],"name":[1],"placeholder":[1],"preferredCountries":[16],"readonly":[4],"required":[4],"value":[1537],"dropdownOpen":[32],"hasErrorState":[32],"nationalNumber":[32],"searchQuery":[32],"selectedCountry":[32],"triggerId":[32]},null,{"dropdownOpen":[{"onDropdownOpenChange":0}],"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChange":0}]}]]],["p-e99503a2",[[0,"xpl-backdrop",{"relative":[4]}]]],["p-a5ddb3c4",[[260,"xpl-badge",{"bordered":[4],"dot":[4],"dotOnly":[4,"dot-only"],"shape":[1],"size":[1],"variant":[1]}]]],["p-73a1c68d",[[260,"xpl-checkbox",{"ariaLabel":[1,"aria-label"],"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"value":[1],"required":[4],"styled":[4],"dataId":[1,"data-id"],"id":[32]}]]],["p-cca0f1a2",[[260,"xpl-select",{"choices":[16],"selectIcon":[1,"select-icon"],"description":[1],"disabled":[4],"dropdownFlipFallbackPlacements":[16],"dropdownPlacement":[1,"dropdown-placement"],"error":[1],"label":[1],"mode":[1],"name":[1],"placeholder":[1],"truncate":[4],"customDisplayValue":[4,"custom-display-value"],"selectedValues":[1,"selected-values"],"classNames":[1,"class-names"],"active":[32],"id":[32],"keepFocus":[32],"visibleChoices":[32],"choicesState":[32],"value":[32],"dropdownOpenState":[32],"reset":[64]},[[8,"click","handleClickEvent"],[8,"keydown","handleKeyDown"],[9,"resize","handleResize"]],{"choices":[{"onChoicesPropChanged":0}],"selectedValues":[{"onSelectedValuesPropChanged":0}],"choicesState":[{"onChoicesStateChanged":0}],"value":[{"handleValueStateChange":0}],"dropdownOpenState":[{"onDropdownOpenStateChanged":0}]}],[260,"xpl-tag",{"disabled":[4],"dismissible":[4],"isDraggable":[4,"is-draggable"],"size":[1],"tagId":[1,"tag-id"],"dismissAriaLabelSuffix":[32],"isDragging":[32]},null,{"disabled":[{"onDisabledChange":0}],"isDraggable":[{"onIsDraggableChange":0}]}]]],["p-6de10879",[[260,"xpl-avatar",{"color":[1],"disabled":[4],"groupData":[1,"group-data"],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"subText":[1,"sub-text"],"target":[1],"variant":[1],"cachedGroupItems":[32],"cachedSlotContent":[32]},null,{"groupData":[{"onGroupDataChange":0}]}],[260,"xpl-divider",{"tier":[2]}],[260,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"value":[1],"required":[4],"selectedValue":[1,"selected-value"],"styled":[4],"id":[32]}]]],["p-aece2c3d",[[260,"xpl-input",{"_id":[1],"description":[1],"disabled":[4],"error":[1],"label":[1],"name":[1],"required":[4],"readonly":[4],"value":[1],"autocomplete":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"step":[2],"multiline":[4],"maxCharacterCount":[2,"max-character-count"],"dateFormat":[1,"date-format"],"timeFormat":[1,"time-format"],"allowCustomOption":[4,"allow-custom-option"],"mode":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"hideEyeDropper":[4,"hide-eye-dropper"],"defaultCountry":[1,"default-country"],"preferredCountries":[16],"isInternational":[4,"is-international"],"ariaLabel":[1,"aria-label"],"shape":[1],"type":[1],"characterCount":[32],"passwordVisible":[32],"hasPreSlotContent":[32],"setFocus":[64]}],[0,"xpl-input-date",{"inputId":[1,"input-id"],"disabled":[4],"name":[1],"required":[4],"readonly":[4],"value":[1],"placeholder":[1],"post":[1],"pre":[1],"max":[8],"min":[8],"dateFormat":[1,"date-format"],"mode":[1],"flatpickrStaticLayout":[32],"hasErrorState":[32]},null,{"hasErrorState":[{"onHasErrorStateChanged":0}],"value":[{"onValueChanged":0}]}],[260,"xpl-input-file",{"disabled":[4],"name":[1],"_id":[1],"accept":[1],"multiple":[4],"hideTriggerOnSelect":[4,"hide-trigger-on-select"],"hideFileNames":[4,"hide-file-names"],"hideAcceptText":[4,"hide-accept-text"],"files":[32],"removeFileByIndex":[64]},null,{"files":[{"onFilesChange":0}]}],[0,"xpl-input-search",{"ariaLabel":[1,"aria-label"],"autocomplete":[1],"disabled":[4],"errorMessageId":[1,"error-message-id"],"hasError":[4,"has-error"],"hasVisibleLabel":[4,"has-visible-label"],"inputId":[1,"input-id"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"value":[1025],"hasAncestorForm":[32],"setFocus":[64]}]]]]'),e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as e,h as d,H as c}from"./p-CJABLO_1.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:"ab352ff358657b1f3b463a84e7a40e18ae23df29",class:`xpl-main-nav xpl-main-nav--${this.width}`,"aria-label":"Sidebar"},d("nav",{key:"e62b52010f76c39078ceaa5085c4e5dcd03d45ce"},d("header",{key:"05cfd30654dcb4a6082ac97490c516d0b01ae791","aria-label":"Sidebar Header"},d("slot",{key:"e48cd7e5a01ae86ac1d50a9b5e46e93a902ae50f",name:"logo"}),d("slot",{key:"77a840ec7da01b757efaea8a0ffb4d590f97dc7d",name:"brand-name"})),d("div",{key:"fa9093094b5998901402d2b8a56b1e16cce648fc",class:"xpl-main-nav__main_section"},d("slot",{key:"5a13411ad2043e58b7d168216c15626be160e2dd",name:"navigation"})),d("footer",{key:"ee8cfafdc454ef56f66facf9ee894f6980419932",class:"xpl-main-nav__footer","aria-label":"Sidebar Footer"},d("slot",{key:"da7fc8d944121f0060acd579fc3a960571b1fd26",name:"footer"}))))}};export{n as xpl_main_nav}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as
|
|
1
|
+
import{r as t,h as e,H as s,g as i}from"./p-CJABLO_1.js";import{T as n,i as a}from"./p-Dqb1pIRo.js";import{T as o}from"./p-CWdQxaaX.js";const h=class{constructor(e){t(this,e),this.timers=new n,this.isMobileCascade=!1,this.onViewportChange=()=>{this.isMobileCascade=this.mobileMq?.matches??!1},this.handleBackClick=async()=>{const t=this.el.closest("xpl-top-nav-item");t&&(await t.closeMenu(),t.querySelector(".xpl-top-nav-item__inner")?.focus())}}connectedCallback(){a()&&"function"==typeof window.matchMedia&&(this.mobileMq=window.matchMedia(o),this.mobileMq.addEventListener("change",this.onViewportChange),this.isMobileCascade=this.mobileMq.matches),this.connectParentOpenObserver()}disconnectedCallback(){this.timers.dispose(),this.mobileMq?.removeEventListener("change",this.onViewportChange),this.mobileMq=void 0,this.disconnectParentOpenObserver()}connectParentOpenObserver(){this.disconnectParentOpenObserver();const t=this.el.parentElement;t&&"undefined"!=typeof MutationObserver&&(this.parentOpenObserver=new MutationObserver((()=>{this.scheduleParentOpenCheck()})),this.parentOpenObserver.observe(t,{attributes:!0,attributeFilter:["class"]}))}disconnectParentOpenObserver(){this.parentOpenObserver?.disconnect(),this.parentOpenObserver=void 0}scheduleParentOpenCheck(){this.timers.scheduleCoalesced("parentOpenCheck",(()=>{this.el.isConnected&&this.focusBackRowIfJustOpenedOnMobile()}))}focusBackRowIfJustOpenedOnMobile(){if(!this.isMobileCascade)return;const t=this.el.parentElement;t?.classList.contains("xpl-top-nav-item--dropdown-open")&&this.el.querySelector(".xpl-top-nav-menu__back .xpl-top-nav-item__inner")?.focus()}renderBackRow(){return this.isMobileCascade&&this.label?.trim()?e("xpl-top-nav-item",{class:"xpl-top-nav-menu__back",label:this.label,onNavItemClick:this.handleBackClick},e("xpl-icon",{slot:"leading-icon",icon:"chevron-left",size:24})):null}render(){return e(s,{key:"10a844d721713b72f636a8a3a3e266139b9c0193",class:{"xpl-top-nav-menu":!0,dark:!0},role:"list","aria-label":this.label||void 0},this.renderBackRow(),e("slot",{key:"e7db1c580f34bf388658f6baacfc325322e2670e"}))}get el(){return i(this)}};export{h as xpl_top_nav_menu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as r}from"./p-
|
|
1
|
+
import{r as t,c as e,h as a,H as r}from"./p-CJABLO_1.js";import{i as s}from"./p-Dqb1pIRo.js";const i=(t,e,a)=>{const r=(a/=100)*(e/=100),s=r*(1-Math.abs(t/60%2-1)),i=a-r;let o=0,n=0,h=0;return t<60?(o=r,n=s,h=0):t<120?(o=s,n=r,h=0):t<180?(o=0,n=r,h=s):t<240?(o=0,n=s,h=r):t<300?(o=s,n=0,h=r):(o=r,n=0,h=s),{r:Math.round(255*(o+i)),g:Math.round(255*(n+i)),b:Math.round(255*(h+i))}},o=(t,e,a)=>[t,e,a].map((t=>t.toString(16).padStart(2,"0"))).join(""),n=t=>{if(t.startsWith("#")){if(!/^#([a-fA-F\d]{6})$/.test(t))throw new Error("xpl-input-color: Only 6-digit hex format supported (e.g. #aabbcc)");const e=t.toLowerCase().slice(1),a=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16);return{hex:e,r:a,g:r,b:s,a:1}}if(t.startsWith("rgba")||t.startsWith("rgb")){const e=t.match(/[\d.]+/g)?.map(Number);if(!e||e.length<3)throw new Error("xpl-input-color: Invalid rgba/rgb format");const[a,r,s,i=1]=e,o=t=>t.toString(16).padStart(2,"0");return{hex:`${o(a)}${o(r)}${o(s)}`.toLowerCase(),r:a,g:r,b:s,a:i}}if(t.startsWith("hsla")||t.startsWith("hsl")){const e=t.match(/[\d.]+/g)?.map(Number);if(!e||e.length<3)throw new Error("xpl-input-color: Invalid hsla/hsl format");const[a,r,s,i=1]=e,n=((t,e,a,r)=>{a/=100;const s=e=>(e+t/30)%12,i=(e/=100)*Math.min(a,1-a),o=t=>a-i*Math.max(-1,Math.min(s(t)-3,Math.min(9-s(t),1)));return`rgba(${Math.round(255*o(0))}, ${Math.round(255*o(8))}, ${Math.round(255*o(4))}, ${r})`})(a,r,s,i),h=n.match(/[\d.]+/g)?.map(Number);if(!h||h.length<3)throw new Error("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(a){t(this,a),this.inputChange=e(this,"inputChange",7),this.hasErrorStateChanged=e(this,"hasErrorStateChanged",7),this.placeholder="Select color",this.eyeDropperSupported=!1,this.colorInputElements={},this.handleMove=t=>{const{slGrid:e}=this.colorInputElements;if(!e)return;const a=e.getBoundingClientRect(),r="touches"in t?t.touches[0].clientY:t.clientY,s=Math.max(0,Math.min(("touches"in t?t.touches[0].clientX:t.clientX)-a.left,a.width)),n=Math.max(0,Math.min(r-a.top,a.height)),h=s/a.width,l=n/a.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 e=t.detail?t.detail.trim().replace(/#/g,""):"";if(e){const[t,a,r]=(t=>{const e=t?.match(/\w\w/g);return e?e.map((t=>parseInt(t,16))):[0,0,0]})(e);this.colorValues={hex:e,r:t,g:a,b:r,a:this.colorValues.a??1}}else this.colorValues={...l}},this.onRgbaInputChange=(t,e)=>{const a=parseFloat(e.detail);if(Number.isNaN(a))return void(this.hasErrorState=`invalid value from ${t.name}: ${a}`);const r={...this.colorValues};switch(t.name){case"color-r-input":r.r=a;break;case"color-g-input":r.g=a;break;case"color-b-input":r.b=a;break;case"color-a-input":r.a=a;break;default:this.hasErrorState=`unhandled input: ${t.name}`}r.hex=o(r.r,r.g,r.b),this.colorValues=r},this.onSliderInputChange=t=>{const e=parseFloat(t.value);if(Number.isNaN(e))this.hasErrorState=`invalid value from ${t.name}: ${e}`;else switch(t.name){case"color-hue-slider":this.colorValues=n(`hsla(${e}, 100%, 50%, 1)`),this.hue=e;break;case"color-alpha-slider":this.colorValues={...this.colorValues,a:e};break;default:this.hasErrorState=`unhandled input: ${t.name}`}}}valueChanged(t){this.hasErrorState=this.required&&!t.hex?"required":null,this.inputChange.emit(t.hex?h(t):"")}onHasErrorStateChanged(t){this.hasErrorStateChanged.emit(t)}onValuePropChange(t){this.syncColorFromValue(t)}syncColorFromValue(t){if(t)try{this.colorValues=n(t),this.hue=(()=>{const t=this.colorValues.r/255,e=this.colorValues.g/255,a=this.colorValues.b/255,r=Math.max(t,e,a),s=Math.min(t,e,a),i=r-s;let o=0,n=0;const h=(r+s)/2;if(0!==i){switch(n=i/(1-Math.abs(2*h-1)),r){case t:o=(e-a)/i%6;break;case e:o=(a-t)/i+2;break;case a:o=(t-e)/i+4}o*=60,o<0&&(o+=360)}return{hue:Math.round(o),saturation:Math.round(100*n),lightness:Math.round(100*h)}})().hue}catch{this.hasErrorState="invalid color format",this.hue=0}else this.colorValues={...l},this.hasErrorState=null,this.hue=0}componentWillLoad(){this.syncColorFromValue(this.value)}componentDidLoad(){s()&&(this.eyeDropperSupported="EyeDropper"in window);const{r:t,g:e,b:a,a:r,hue:i,alpha:o,hex:n}=this.colorInputElements;n?.addEventListener("valueChange",(t=>{this.onHexInputChange(t),t.stopPropagation()})),[t,e,a,r].forEach((t=>{t?.addEventListener("valueChange",(e=>{this.onRgbaInputChange(t,e),e.stopPropagation()}))})),[i,o].forEach((t=>{t?.addEventListener("input",(()=>{this.onSliderInputChange(t)}))}))}async openEyeDropper(){try{const t=window.EyeDropper;if(!t)throw new Error("EyeDropper API is not available");const e=new t,a=await e.open();this.colorValues=n(a.sRGBHex)}catch(t){this.hasErrorState=`eyedropper cancelled or failed: ${t}`}}render(){const{r:t,g:e,b:s,a:o}=this.colorValues,n=i(this.hue,100,100),{x:l,y:c}=((t,e,a,r)=>{const{s,v:i}=((t,e,a,r)=>{t/=255,e/=255,a/=255;const s=Math.max(t,e,a),i=s-Math.min(t,e,a);let o=0;return o=0===i?0:s===t?(e-a)/i%6:s===e?(a-t)/i+2:(t-e)/i+4,o=Math.round(60*o),o<0&&(o+=360),{h:r??o,s:0===s?0:i/s,v:s}})(e.r,e.g,e.b,t);return{x:Math.round(s*a),y:Math.round((1-i)*r)}})(this.hue,{r:t,g:e,b:s},288,160),d={left:`${l}px`,top:`${c}px`,background:`rgb(${t}, ${e}, ${s})`};return a(r,{key:"baf8bd36a33134bff8b2e1ce1a5d81a567f232b2",class:"xpl-input-color"},a("xpl-popover",{key:"e5bfd446e4b900371ee8ca7c7c321692079c66fb",disabled:this.disabled,display:"menu"},a("div",{key:"9d40ccbf649ba0be2884bbc7dec84d7c1e9ddbb7",slot:"trigger"},a("div",{key:"6b4474af2dab4be116728135214403af7189d99f",class:{"xpl-input-color__display":!0,"xpl-input-color__display--disabled":!!this.disabled,"xpl-input-color__display--error":!!this.hasErrorState}},a("span",{key:"9372da25358b453c5b89f324886c986153b9386b",class:"xpl-input-color__color",style:{background:h(this.colorValues)}}),this.colorValues.hex?a("span",{class:"xpl-input-color__value"},h(this.colorValues)):a("span",{class:"xpl-input-color__placeholder"},this.placeholder),this.eyeDropperSupported&&!this.hideEyeDropper&&a("xpl-icon",{key:"a37bf00e4a70cda5e59cecfc7f108601bbb15e8e",size:20,icon:"eye-dropper",class:"xpl-input-color__icon",onClick:t=>{t.stopPropagation(),this.openEyeDropper()}}))),a("div",{key:"e95b3755b47802b446de5d7e9c25d2238dea23ef",class:"xpl-input-color__menu"},a("div",{key:"9ecc94c286d9cd0a5e25c92eaea3a2dd9ee4394b",class:"xpl-input-color__sl-grid",ref:t=>{this.colorInputElements.slGrid=t??void 0},style:{background:["linear-gradient(to top, #000, #0000)","linear-gradient(to right, #fff, #fff0)",`rgb(${n.r} ${n.g} ${n.b})`].join(", ")},onMouseDown:this.startDrag,onTouchStart:this.startDrag},a("div",{key:"85b2e591be85db2a2d3d1bbe65ee276a857b92fa",class:"xpl-input-color__sl-thumb",style:d})),a("div",{key:"b9d7f2fdc49d73db488d62f21433558b5b0a09a7",class:"xpl-input-color__grid"},a("input",{key:"3c260f54bde2c26a7b5980082cabf54e2d42340e",type:"range",min:"0",max:"360",value:this.hue,class:"xpl-input-color__slider xpl-input-color__hue",name:"color-hue-slider",ref:t=>{this.colorInputElements.hue=t??void 0}}),a("input",{key:"ef8ef568a1487b618aeeb986904a5eeefabba300",type:"range",min:"0",max:"1",step:"0.01",value:o,class:"xpl-input-color__slider xpl-input-color__alpha",name:"color-alpha-slider",ref:t=>{this.colorInputElements.alpha=t??void 0},style:{backgroundImage:[`linear-gradient(to right, rgb(${t} ${e} ${s} / 0) 0%, rgb(${t} ${e} ${s} / 1) 100%)`,"linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", ")}}),a("div",{key:"b4953565664df14ad483f30c45b6ae5e717e6a63",class:"xpl-input-color__preview",style:{background:`rgba(${t}, ${e}, ${s}, ${o})`}})),a("div",{key:"731a00aa7075efc1a19849a58e5a81c8837ab199",class:"xpl-input-color__inputs"},["hex","r","g","b","a"].map((t=>a("xpl-input",{key:t,label:t.toLocaleUpperCase(),name:`color-${t}-input`,placeholder:"hex"===t?"793EF7":"0",value:String(this.colorValues[t]),ref:e=>{this.colorInputElements[t]=e??void 0}})))))))}static get watchers(){return{colorValues:[{valueChanged:0}],hasErrorState:[{onHasErrorStateChanged:0}],value:[{onValuePropChange:0}]}}};export{c as xpl_input_color}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,f as s,h,H as o,g as e}from"./p-ukZKsqqq.js";import{i as n}from"./p-Dqb1pIRo.js";import{c as l,a,o as r,f as p,s as c}from"./p-1M1pu0C2.js";const d=".xpl-spotlight__dismiss button, .xpl-spotlight__actions button";let u=0;const g={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end"},m={top:"bottom-left","top-start":"bottom-left","top-end":"bottom-right",bottom:"top-left","bottom-start":"top-left","bottom-end":"top-right",left:"top-right","left-start":"top-right","left-end":"bottom-right",right:"top-left","right-start":"top-left","right-end":"bottom-left"},f=class{constructor(h){t(this,h),this.dismiss=i(this,"dismiss",7),this.primaryAction=i(this,"primaryAction",7),this.secondaryAction=i(this,"secondaryAction",7),this.targetClick=i(this,"targetClick",7),this.cleanupAutoUpdate=null,this.enterVisibleFrameId=null,this.focusFrameId=null,this.hasCompletedInitialLoad=!1,this.headingId=(u+=1,`xpl-spotlight-heading-${u}`),this.pendingEnterTransitionAfterAnchor=!1,this.pendingEnterVisible=!1,this.positioningGeneration=0,this.previousFocus=null,this.referenceEl=null,this.shouldMoveFocusOnRender=!1,this.shouldReinitializeAfterReconnect=!1,this.slotContentObserver=null,this.hasBodySlotContent=!1,this.hasFloatingPosition=!1,this.hasImageSlotContent=!1,this.hasTitleSlotContent=!1,this.dialogLabelId=void 0,this.isVisible=!1,this.resolvedAnchorPosition="top-left",this.actionLayout="default",this.anchorPosition="top-left",this.currentStep=1,this.isDismissible=!0,this.isOpen=!0,this.primaryActionLabel="Next",this.secondaryActionLabel="Back",this.showActions=!0,this.showImage=!0,this.showSteps=!0,this.totalSteps=1,this.emitDismiss=()=>{this.dismiss.emit()},this.handleDismissClick=()=>{this.emitDismiss()},this.handlePrimaryClick=()=>{this.primaryAction.emit()},this.handleSecondaryClick=()=>{this.secondaryAction.emit()},this.handleTargetClick=()=>{this.targetClick.emit()},this.syncTitleSlotIds=()=>{const t=this.getFirstTitleSlottedElement();t&&!t.id&&(t.id=this.headingId)},this.handleBodySlotChange=()=>{this.refreshBodySlotState()},this.handleTitleSlotChange=()=>{this.refreshTitleSlotState(),this.syncTitleSlotIds()},this.handleImageSlotChange=()=>{this.refreshImageSlotState()},this.handleSlotContentMutation=()=>{this.refreshBodySlotState(),this.refreshImageSlotState(),this.refreshTitleSlotState(),this.syncTitleSlotIds()},this.updatePosition=async t=>{if(!n())return;const i=this.positioningGeneration;try{const s=g[this.anchorPosition],{x:h,y:o,placement:e,middlewareData:n}=await l(t,this.el,{strategy:"fixed",placement:s,middleware:[r(12),p({crossAxis:!1}),c({padding:8})]});if(i!==this.positioningGeneration)return;this.el.style.left=`${h}px`,this.el.style.top=`${o}px`;const a=n.shift?.x??0,d=n.shift?.y??0;this.el.style.setProperty("--xpl-spotlight-shift-x",-a+"px"),this.el.style.setProperty("--xpl-spotlight-shift-y",-d+"px"),this.hasFloatingPosition=!0;const u=m[e]??m[e.split("-")[0]??""];this.resolvedAnchorPosition=u??this.anchorPosition,this.pendingEnterTransitionAfterAnchor&&this.scheduleEnterTransition()}catch{if(i!==this.positioningGeneration)return;this.clearFloatingHostCoordinates(),this.isOpenEnabled&&(this.scheduleEnterTransition({skipAnchorWait:!0}),await s(this))}}}onAnchorPositionChange(){this.target&&this.referenceEl?this.updatePosition(this.referenceEl).catch((()=>{})):this.resolvedAnchorPosition=this.anchorPosition}onIsOpenChange(t){if(f.coerceBoolean(t))return this.capturePreviousFocus(),this.shouldMoveFocusOnRender=!0,this.isVisible=!1,this.refreshBodySlotState(),this.refreshTitleSlotState(),this.refreshImageSlotState(),this.target&&(this.cleanupAutoUpdate&&this.referenceEl&&this.el.ownerDocument.contains(this.referenceEl)?this.hasFloatingPosition=!1:this.startPositioning()),void this.scheduleEnterTransition();this.cancelEnterTransition(),this.cancelPendingFocusWait(),this.isVisible=!1,this.target||this.stopPositioning(),this.restoreFocus()}onTargetChange(){if(!this.target)return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition);this.startPositioning()}connectedCallback(){this.shouldReinitializeAfterReconnect&&(this.shouldReinitializeAfterReconnect=!1,this.startSlotContentObserver(),this.target&&this.startPositioning(),this.isOpenEnabled?(this.capturePreviousFocus(),this.shouldMoveFocusOnRender=!0,this.scheduleEnterTransition(),this.pendingEnterVisible&&Promise.resolve(s(this)).catch((()=>{}))):this.isVisible=!1)}disconnectedCallback(){this.cancelEnterTransition(),this.cancelPendingFocusWait(),this.stopSlotContentObserver(),this.stopPositioning(),this.hasCompletedInitialLoad&&(this.shouldReinitializeAfterReconnect=!0)}componentWillLoad(){this.resolvedAnchorPosition=this.anchorPosition,this.hasBodySlotContent=this.hasSlottedContent("body"),this.hasImageSlotContent=this.hasSlottedContent("image"),this.hasTitleSlotContent=this.hasSlottedContent("title"),this.dialogLabelId=this.getDialogLabelId(),this.isOpenEnabled&&!this.target&&(this.pendingEnterVisible=!0),this.shouldMoveFocusOnRender=this.isOpenEnabled}componentDidLoad(){this.hasCompletedInitialLoad=!0,this.startSlotContentObserver(),this.target&&this.startPositioning(),this.isOpenEnabled?this.target&&(this.scheduleEnterTransition(),this.pendingEnterVisible&&Promise.resolve(s(this)).catch((()=>{}))):this.isVisible=!1}componentDidRender(){this.isOpenEnabled&&this.syncTitleSlotIds();const t=this.getDialogLabelId();this.dialogLabelId!==t&&(this.dialogLabelId=t),this.pendingEnterVisible&&this.isOpenEnabled&&(this.pendingEnterVisible=!1,this.enterVisibleFrameId=requestAnimationFrame((()=>{this.enterVisibleFrameId=null,this.isOpenEnabled&&(this.isVisible=!0)}))),this.shouldMoveFocusOnRender&&this.isOpenEnabled&&(this.shouldMoveFocusOnRender=!1,this.capturePreviousFocus(),this.focusInitial())}handleKeyDown(t){"Escape"===t.key&&this.shouldHandleDismissKeyboardEvent()&&(t.preventDefault(),this.emitDismiss())}get effectiveTotalSteps(){return Math.max(1,this.totalSteps)}get effectiveCurrentStep(){return Math.min(this.effectiveTotalSteps,Math.max(1,this.currentStep))}get isDismissibleEnabled(){return f.coerceBoolean(this.isDismissible)}get isOpenEnabled(){return f.coerceBoolean(this.isOpen)}get isSingleActionLayout(){return"single"===this.actionLayout}get usesHiddenEdgeActions(){return"dual"===this.actionLayout}get isPrimaryStepActionDisabled(){return!this.usesHiddenEdgeActions&&this.showStepsEnabled&&this.effectiveCurrentStep>=this.effectiveTotalSteps}get isSecondaryStepActionDisabled(){return!this.usesHiddenEdgeActions&&this.showStepsEnabled&&this.effectiveCurrentStep<=1}get shouldShowPrimaryAction(){return!!this.isSingleActionLayout||!this.usesHiddenEdgeActions||!this.showStepsEnabled||this.effectiveCurrentStep<this.effectiveTotalSteps}get shouldShowSecondaryAction(){return!this.isSingleActionLayout&&(!this.usesHiddenEdgeActions||!this.showStepsEnabled||this.effectiveCurrentStep>1)}get hasRenderableFocusChrome(){return!!this.isDismissibleEnabled||!!this.showActionsEnabled&&(this.shouldShowPrimaryAction||this.shouldShowSecondaryAction)}get showActionsEnabled(){return f.coerceBoolean(this.showActions)}get showImageEnabled(){return f.coerceBoolean(this.showImage)}get showStepsEnabled(){return f.coerceBoolean(this.showSteps)}get headingPropHasText(){return Boolean(this.heading?.trim())}get bodyPropHasText(){return Boolean(this.body?.trim())}async focusInitial(){if(this.focusAbort?.abort(),this.focusAbort=new AbortController,!this.hasRenderableFocusChrome&&this.isOpenEnabled)return void(this.focusFrameId=requestAnimationFrame((()=>{this.focusFrameId=null,this.isOpenEnabled&&this.el.focus()})));const t=await function(t,i){const s=t.querySelector(d);return s?Promise.resolve(s):i?.signal?.aborted?Promise.resolve(null):"undefined"==typeof MutationObserver?function(t,i){return new Promise((s=>{if(i?.signal?.aborted)return void s(null);let h,o,e=0;const n=t=>{void 0!==h&&"undefined"!=typeof cancelAnimationFrame&&cancelAnimationFrame(h),void 0!==o&&clearTimeout(o),s(t)},l=()=>n(null);i?.signal?.addEventListener("abort",l,{once:!0});const a=t=>{"undefined"!=typeof requestAnimationFrame?h=requestAnimationFrame((()=>{h=void 0,t()})):o=setTimeout((()=>{o=void 0,t()}),0)},r=()=>{if(i?.signal?.aborted)return void n(null);const s=t.querySelector(d);return s?(i?.signal?.removeEventListener("abort",l),void n(s)):(e+=1,e>=120?(i?.signal?.removeEventListener("abort",l),void n(null)):void a(r))};a(r)}))}(t,i):new Promise((s=>{let h,o,e=!1;function n(t){e||(e=!0,o.disconnect(),void 0!==h&&clearTimeout(h),s(t))}o=new MutationObserver((()=>{const i=t.querySelector(d);i&&n(i)})),o.observe(t instanceof Node?t:document,{childList:!0,subtree:!0}),h=setTimeout((()=>n(null)),2500),i?.signal?.addEventListener("abort",(()=>{n(null)}),{once:!0})}))}(this.el,{signal:this.focusAbort.signal});t?t.focus():this.isOpenEnabled&&this.el.focus()}shouldHandleDismissKeyboardEvent(){if(!this.isDismissibleEnabled||!this.isOpenEnabled||!this.isVisible)return!1;const{activeElement:t}=document;return Boolean(t)&&(t===this.el||this.el.contains(t))}capturePreviousFocus(){n()&&(this.previousFocus=document.activeElement instanceof HTMLElement?document.activeElement:null)}restoreFocus(){this.previousFocus?.isConnected&&this.previousFocus.focus()}cancelPendingFocusWait(){this.focusAbort?.abort(),null!=this.focusFrameId&&(cancelAnimationFrame(this.focusFrameId),this.focusFrameId=null)}cancelEnterTransition(){null!==this.enterVisibleFrameId&&(cancelAnimationFrame(this.enterVisibleFrameId),this.enterVisibleFrameId=null),this.pendingEnterVisible=!1}scheduleEnterTransition(t){this.cancelEnterTransition(),t?.skipAnchorWait||!Boolean(this.target&&this.referenceEl)||this.hasFloatingPosition?(this.pendingEnterTransitionAfterAnchor=!1,this.pendingEnterVisible=!0):this.pendingEnterTransitionAfterAnchor=!0}getFirstTitleSlottedElement(){const t=Array.from(this.el.children).find((t=>t.nodeType===Node.ELEMENT_NODE&&"title"===t.getAttribute("slot")));if(t)return t;const i=this.el.querySelector('slot[name="title"]');if(i&&"function"==typeof i.assignedNodes){const t=Array.from(i.assignedNodes({flatten:!0})).find((t=>t.nodeType===Node.ELEMENT_NODE));if(t)return t}return this.el.querySelector('[slot="title"]')??null}getDialogLabelId(){if(this.hasTitleSlotContent){const t=this.getFirstTitleSlottedElement();return t?.id?t.id:this.headingId}if(this.headingPropHasText)return this.headingId}refreshBodySlotState(){const t=this.hasSlottedContent("body");this.hasBodySlotContent!==t&&(this.hasBodySlotContent=t)}refreshTitleSlotState(){const t=this.hasSlottedContent("title");this.hasTitleSlotContent!==t&&(this.hasTitleSlotContent=t)}static coerceBoolean(t){return"string"==typeof t?"false"!==t.trim().toLowerCase():Boolean(t)}refreshImageSlotState(){const t=this.hasSlottedContent("image");this.hasImageSlotContent!==t&&(this.hasImageSlotContent=t)}startSlotContentObserver(){"undefined"==typeof MutationObserver||this.slotContentObserver||(this.slotContentObserver=new MutationObserver(this.handleSlotContentMutation),this.slotContentObserver.observe(this.el,{attributes:!0,attributeFilter:["slot"],childList:!0,subtree:!0}))}stopSlotContentObserver(){this.slotContentObserver?.disconnect(),this.slotContentObserver=null}hasSlottedContent(t){const i=this.el.querySelector(`slot[name="${t}"]`),s=this.el.querySelector(`[slot="${t}"]`),h=Array.from(this.el.children).some((i=>i.getAttribute("slot")===t)),o=!!i&&i.assignedNodes({flatten:!0}).some((t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()));return Boolean(s||h)||o}startPositioning(){if(!n())return;if(!this.target)return;let t=null;try{t=this.el.ownerDocument.querySelector(this.target)}catch{return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition)}if(!t)return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition);this.detachFloatingUiListeners(),this.referenceEl=t,this.cleanupAutoUpdate=a(t,this.el,(()=>{this.updatePosition(t).catch((()=>{}))}))}detachFloatingUiListeners(){this.positioningGeneration+=1,this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null)}resetFloatingHostPosition(){this.el.style.left="",this.el.style.top="",this.el.style.removeProperty("--xpl-spotlight-shift-x"),this.el.style.removeProperty("--xpl-spotlight-shift-y"),this.hasFloatingPosition=!1,this.pendingEnterTransitionAfterAnchor=!1,this.referenceEl=null}clearFloatingHostCoordinates(){this.el.style.left="",this.el.style.top="",this.el.style.removeProperty("--xpl-spotlight-shift-x"),this.el.style.removeProperty("--xpl-spotlight-shift-y"),this.hasFloatingPosition=!1,this.pendingEnterTransitionAfterAnchor=!1,this.resolvedAnchorPosition=this.anchorPosition}stopPositioning(){this.detachFloatingUiListeners(),this.resetFloatingHostPosition()}render(){if(!this.isOpenEnabled)return this.target?h(o,{class:{"xpl-spotlight":!0,"xpl-spotlight--target-only":!0,[`xpl-spotlight--${this.resolvedAnchorPosition}`]:!0,"xpl-spotlight--anchored":this.hasFloatingPosition}},h("button",{type:"button",class:"xpl-spotlight__target","aria-label":"Spotlight indicator",onClick:this.handleTargetClick},h("div",{class:"xpl-spotlight__target-outer"}),h("div",{class:"xpl-spotlight__target-inner"}))):h(o,{"aria-hidden":"true",class:{"xpl-spotlight":!0,"xpl-spotlight--closed":!0}});const{isSingleActionLayout:t,shouldShowPrimaryAction:i,shouldShowSecondaryAction:s,showActionsEnabled:e,showImageEnabled:n,showStepsEnabled:l}=this;return h(o,{class:{[`xpl-spotlight--action-layout-${this.actionLayout}`]:e,"xpl-spotlight":!0,[`xpl-spotlight--${this.resolvedAnchorPosition}`]:!0,"xpl-spotlight--anchored":this.hasFloatingPosition,"xpl-spotlight--no-image":!n,"xpl-spotlight--only-primary-action":e&&i&&!s,"xpl-spotlight--only-secondary-action":e&&s&&!i,"xpl-spotlight--visible":this.isVisible},role:"dialog","aria-modal":"false","aria-label":this.dialogLabelId?void 0:"Tour step","aria-labelledby":this.dialogLabelId,tabindex:-1},h("button",{type:"button",class:"xpl-spotlight__target","aria-label":"Spotlight indicator",onClick:this.handleTargetClick},h("div",{class:"xpl-spotlight__target-outer"}),h("div",{class:"xpl-spotlight__target-inner"})),this.isDismissibleEnabled&&h("div",{class:"xpl-spotlight__dismiss"},h("xpl-button",{variant:"secondary",size:"sm",iconOnly:!0,"aria-label":"Dismiss tour step",onClick:this.handleDismissClick},h("xpl-icon",{icon:"xmark",size:16}))),h("div",{class:"xpl-spotlight__frame"},h("div",{class:{"xpl-spotlight__image-container":!0,"xpl-spotlight__image-container--empty":!this.hasImageSlotContent,"xpl-spotlight__image-container--hidden":!n}},!this.hasImageSlotContent&&n&&h("div",{class:"xpl-spotlight__image-placeholder","aria-hidden":"true"},h("xpl-icon",{icon:"photo",size:24}),h("xpl-icon",{icon:"video",size:24})),h("slot",{name:"image",onSlotchange:this.handleImageSlotChange})),h("div",{class:"xpl-spotlight__content"},h("div",{class:"xpl-spotlight__header"},h("slot",{name:"title",onSlotchange:this.handleTitleSlotChange},!this.hasTitleSlotContent&&this.headingPropHasText&&h("span",{class:"xpl-spotlight__title",id:this.headingId},this.heading)),h("slot",{name:"body",onSlotchange:this.handleBodySlotChange},!this.hasBodySlotContent&&this.bodyPropHasText&&h("p",{class:"xpl-spotlight__body"},this.body))),e&&h("div",{class:{"xpl-spotlight__actions":!0,"xpl-spotlight__actions--dual":!t,"xpl-spotlight__actions--single":t,"xpl-spotlight__actions--with-steps":l,"xpl-spotlight__actions--only-primary":i&&!s,"xpl-spotlight__actions--only-secondary":s&&!i}},h("div",{class:"xpl-spotlight__action-slot xpl-spotlight__action-slot--secondary"},s&&h("xpl-button",{class:"xpl-spotlight__secondary-action",variant:"secondary",size:"default",disabled:this.isSecondaryStepActionDisabled,onClick:this.handleSecondaryClick},this.secondaryActionLabel)),l&&h("span",{class:"xpl-spotlight__step-text"},this.effectiveCurrentStep," of ",this.effectiveTotalSteps),h("div",{class:"xpl-spotlight__action-slot xpl-spotlight__action-slot--primary"},i&&h("xpl-button",{class:"xpl-spotlight__primary-action",variant:"primary",size:"default",disabled:this.isPrimaryStepActionDisabled,onClick:this.handlePrimaryClick},this.primaryActionLabel))))))}get el(){return e(this)}static get watchers(){return{anchorPosition:[{onAnchorPositionChange:0}],isOpen:[{onIsOpenChange:0}],target:[{onTargetChange:0}]}}};export{f as xpl_spotlight}
|
|
1
|
+
import{r as t,c as i,f as s,h,H as o,g as e}from"./p-CJABLO_1.js";import{i as n}from"./p-Dqb1pIRo.js";import{c as l,a,o as r,f as p,s as c}from"./p-1M1pu0C2.js";const d=".xpl-spotlight__dismiss button, .xpl-spotlight__actions button";let u=0;const g={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end"},m={top:"bottom-left","top-start":"bottom-left","top-end":"bottom-right",bottom:"top-left","bottom-start":"top-left","bottom-end":"top-right",left:"top-right","left-start":"top-right","left-end":"bottom-right",right:"top-left","right-start":"top-left","right-end":"bottom-left"},f=class{constructor(h){t(this,h),this.dismiss=i(this,"dismiss",7),this.primaryAction=i(this,"primaryAction",7),this.secondaryAction=i(this,"secondaryAction",7),this.targetClick=i(this,"targetClick",7),this.cleanupAutoUpdate=null,this.enterVisibleFrameId=null,this.focusFrameId=null,this.hasCompletedInitialLoad=!1,this.headingId=(u+=1,`xpl-spotlight-heading-${u}`),this.pendingEnterTransitionAfterAnchor=!1,this.pendingEnterVisible=!1,this.positioningGeneration=0,this.previousFocus=null,this.referenceEl=null,this.shouldMoveFocusOnRender=!1,this.shouldReinitializeAfterReconnect=!1,this.slotContentObserver=null,this.hasBodySlotContent=!1,this.hasFloatingPosition=!1,this.hasImageSlotContent=!1,this.hasTitleSlotContent=!1,this.dialogLabelId=void 0,this.isVisible=!1,this.resolvedAnchorPosition="top-left",this.actionLayout="default",this.anchorPosition="top-left",this.currentStep=1,this.isDismissible=!0,this.isOpen=!0,this.primaryActionLabel="Next",this.secondaryActionLabel="Back",this.showActions=!0,this.showImage=!0,this.showSteps=!0,this.totalSteps=1,this.emitDismiss=()=>{this.dismiss.emit()},this.handleDismissClick=()=>{this.emitDismiss()},this.handlePrimaryClick=()=>{this.primaryAction.emit()},this.handleSecondaryClick=()=>{this.secondaryAction.emit()},this.handleTargetClick=()=>{this.targetClick.emit()},this.syncTitleSlotIds=()=>{const t=this.getFirstTitleSlottedElement();t&&!t.id&&(t.id=this.headingId)},this.handleBodySlotChange=()=>{this.refreshBodySlotState()},this.handleTitleSlotChange=()=>{this.refreshTitleSlotState(),this.syncTitleSlotIds()},this.handleImageSlotChange=()=>{this.refreshImageSlotState()},this.handleSlotContentMutation=()=>{this.refreshBodySlotState(),this.refreshImageSlotState(),this.refreshTitleSlotState(),this.syncTitleSlotIds()},this.updatePosition=async t=>{if(!n())return;const i=this.positioningGeneration;try{const s=g[this.anchorPosition],{x:h,y:o,placement:e,middlewareData:n}=await l(t,this.el,{strategy:"fixed",placement:s,middleware:[r(12),p({crossAxis:!1}),c({padding:8})]});if(i!==this.positioningGeneration)return;this.el.style.left=`${h}px`,this.el.style.top=`${o}px`;const a=n.shift?.x??0,d=n.shift?.y??0;this.el.style.setProperty("--xpl-spotlight-shift-x",-a+"px"),this.el.style.setProperty("--xpl-spotlight-shift-y",-d+"px"),this.hasFloatingPosition=!0;const u=m[e]??m[e.split("-")[0]??""];this.resolvedAnchorPosition=u??this.anchorPosition,this.pendingEnterTransitionAfterAnchor&&this.scheduleEnterTransition()}catch{if(i!==this.positioningGeneration)return;this.clearFloatingHostCoordinates(),this.isOpenEnabled&&(this.scheduleEnterTransition({skipAnchorWait:!0}),await s(this))}}}onAnchorPositionChange(){this.target&&this.referenceEl?this.updatePosition(this.referenceEl).catch((()=>{})):this.resolvedAnchorPosition=this.anchorPosition}onIsOpenChange(t){if(f.coerceBoolean(t))return this.capturePreviousFocus(),this.shouldMoveFocusOnRender=!0,this.isVisible=!1,this.refreshBodySlotState(),this.refreshTitleSlotState(),this.refreshImageSlotState(),this.target&&(this.cleanupAutoUpdate&&this.referenceEl&&this.el.ownerDocument.contains(this.referenceEl)?this.hasFloatingPosition=!1:this.startPositioning()),void this.scheduleEnterTransition();this.cancelEnterTransition(),this.cancelPendingFocusWait(),this.isVisible=!1,this.target||this.stopPositioning(),this.restoreFocus()}onTargetChange(){if(!this.target)return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition);this.startPositioning()}connectedCallback(){this.shouldReinitializeAfterReconnect&&(this.shouldReinitializeAfterReconnect=!1,this.startSlotContentObserver(),this.target&&this.startPositioning(),this.isOpenEnabled?(this.capturePreviousFocus(),this.shouldMoveFocusOnRender=!0,this.scheduleEnterTransition(),this.pendingEnterVisible&&Promise.resolve(s(this)).catch((()=>{}))):this.isVisible=!1)}disconnectedCallback(){this.cancelEnterTransition(),this.cancelPendingFocusWait(),this.stopSlotContentObserver(),this.stopPositioning(),this.hasCompletedInitialLoad&&(this.shouldReinitializeAfterReconnect=!0)}componentWillLoad(){this.resolvedAnchorPosition=this.anchorPosition,this.hasBodySlotContent=this.hasSlottedContent("body"),this.hasImageSlotContent=this.hasSlottedContent("image"),this.hasTitleSlotContent=this.hasSlottedContent("title"),this.dialogLabelId=this.getDialogLabelId(),this.isOpenEnabled&&!this.target&&(this.pendingEnterVisible=!0),this.shouldMoveFocusOnRender=this.isOpenEnabled}componentDidLoad(){this.hasCompletedInitialLoad=!0,this.startSlotContentObserver(),this.target&&this.startPositioning(),this.isOpenEnabled?this.target&&(this.scheduleEnterTransition(),this.pendingEnterVisible&&Promise.resolve(s(this)).catch((()=>{}))):this.isVisible=!1}componentDidRender(){this.isOpenEnabled&&this.syncTitleSlotIds();const t=this.getDialogLabelId();this.dialogLabelId!==t&&(this.dialogLabelId=t),this.pendingEnterVisible&&this.isOpenEnabled&&(this.pendingEnterVisible=!1,this.enterVisibleFrameId=requestAnimationFrame((()=>{this.enterVisibleFrameId=null,this.isOpenEnabled&&(this.isVisible=!0)}))),this.shouldMoveFocusOnRender&&this.isOpenEnabled&&(this.shouldMoveFocusOnRender=!1,this.capturePreviousFocus(),this.focusInitial())}handleKeyDown(t){"Escape"===t.key&&this.shouldHandleDismissKeyboardEvent()&&(t.preventDefault(),this.emitDismiss())}get effectiveTotalSteps(){return Math.max(1,this.totalSteps)}get effectiveCurrentStep(){return Math.min(this.effectiveTotalSteps,Math.max(1,this.currentStep))}get isDismissibleEnabled(){return f.coerceBoolean(this.isDismissible)}get isOpenEnabled(){return f.coerceBoolean(this.isOpen)}get isSingleActionLayout(){return"single"===this.actionLayout}get usesHiddenEdgeActions(){return"dual"===this.actionLayout}get isPrimaryStepActionDisabled(){return!this.usesHiddenEdgeActions&&this.showStepsEnabled&&this.effectiveCurrentStep>=this.effectiveTotalSteps}get isSecondaryStepActionDisabled(){return!this.usesHiddenEdgeActions&&this.showStepsEnabled&&this.effectiveCurrentStep<=1}get shouldShowPrimaryAction(){return!!this.isSingleActionLayout||!this.usesHiddenEdgeActions||!this.showStepsEnabled||this.effectiveCurrentStep<this.effectiveTotalSteps}get shouldShowSecondaryAction(){return!this.isSingleActionLayout&&(!this.usesHiddenEdgeActions||!this.showStepsEnabled||this.effectiveCurrentStep>1)}get hasRenderableFocusChrome(){return!!this.isDismissibleEnabled||!!this.showActionsEnabled&&(this.shouldShowPrimaryAction||this.shouldShowSecondaryAction)}get showActionsEnabled(){return f.coerceBoolean(this.showActions)}get showImageEnabled(){return f.coerceBoolean(this.showImage)}get showStepsEnabled(){return f.coerceBoolean(this.showSteps)}get headingPropHasText(){return Boolean(this.heading?.trim())}get bodyPropHasText(){return Boolean(this.body?.trim())}async focusInitial(){if(this.focusAbort?.abort(),this.focusAbort=new AbortController,!this.hasRenderableFocusChrome&&this.isOpenEnabled)return void(this.focusFrameId=requestAnimationFrame((()=>{this.focusFrameId=null,this.isOpenEnabled&&this.el.focus()})));const t=await function(t,i){const s=t.querySelector(d);return s?Promise.resolve(s):i?.signal?.aborted?Promise.resolve(null):"undefined"==typeof MutationObserver?function(t,i){return new Promise((s=>{if(i?.signal?.aborted)return void s(null);let h,o,e=0;const n=t=>{void 0!==h&&"undefined"!=typeof cancelAnimationFrame&&cancelAnimationFrame(h),void 0!==o&&clearTimeout(o),s(t)},l=()=>n(null);i?.signal?.addEventListener("abort",l,{once:!0});const a=t=>{"undefined"!=typeof requestAnimationFrame?h=requestAnimationFrame((()=>{h=void 0,t()})):o=setTimeout((()=>{o=void 0,t()}),0)},r=()=>{if(i?.signal?.aborted)return void n(null);const s=t.querySelector(d);return s?(i?.signal?.removeEventListener("abort",l),void n(s)):(e+=1,e>=120?(i?.signal?.removeEventListener("abort",l),void n(null)):void a(r))};a(r)}))}(t,i):new Promise((s=>{let h,o,e=!1;function n(t){e||(e=!0,o.disconnect(),void 0!==h&&clearTimeout(h),s(t))}o=new MutationObserver((()=>{const i=t.querySelector(d);i&&n(i)})),o.observe(t instanceof Node?t:document,{childList:!0,subtree:!0}),h=setTimeout((()=>n(null)),2500),i?.signal?.addEventListener("abort",(()=>{n(null)}),{once:!0})}))}(this.el,{signal:this.focusAbort.signal});t?t.focus():this.isOpenEnabled&&this.el.focus()}shouldHandleDismissKeyboardEvent(){if(!this.isDismissibleEnabled||!this.isOpenEnabled||!this.isVisible)return!1;const{activeElement:t}=document;return Boolean(t)&&(t===this.el||this.el.contains(t))}capturePreviousFocus(){n()&&(this.previousFocus=document.activeElement instanceof HTMLElement?document.activeElement:null)}restoreFocus(){this.previousFocus?.isConnected&&this.previousFocus.focus()}cancelPendingFocusWait(){this.focusAbort?.abort(),null!=this.focusFrameId&&(cancelAnimationFrame(this.focusFrameId),this.focusFrameId=null)}cancelEnterTransition(){null!==this.enterVisibleFrameId&&(cancelAnimationFrame(this.enterVisibleFrameId),this.enterVisibleFrameId=null),this.pendingEnterVisible=!1}scheduleEnterTransition(t){this.cancelEnterTransition(),t?.skipAnchorWait||!Boolean(this.target&&this.referenceEl)||this.hasFloatingPosition?(this.pendingEnterTransitionAfterAnchor=!1,this.pendingEnterVisible=!0):this.pendingEnterTransitionAfterAnchor=!0}getFirstTitleSlottedElement(){const t=Array.from(this.el.children).find((t=>t.nodeType===Node.ELEMENT_NODE&&"title"===t.getAttribute("slot")));if(t)return t;const i=this.el.querySelector('slot[name="title"]');if(i&&"function"==typeof i.assignedNodes){const t=Array.from(i.assignedNodes({flatten:!0})).find((t=>t.nodeType===Node.ELEMENT_NODE));if(t)return t}return this.el.querySelector('[slot="title"]')??null}getDialogLabelId(){if(this.hasTitleSlotContent){const t=this.getFirstTitleSlottedElement();return t?.id?t.id:this.headingId}if(this.headingPropHasText)return this.headingId}refreshBodySlotState(){const t=this.hasSlottedContent("body");this.hasBodySlotContent!==t&&(this.hasBodySlotContent=t)}refreshTitleSlotState(){const t=this.hasSlottedContent("title");this.hasTitleSlotContent!==t&&(this.hasTitleSlotContent=t)}static coerceBoolean(t){return"string"==typeof t?"false"!==t.trim().toLowerCase():Boolean(t)}refreshImageSlotState(){const t=this.hasSlottedContent("image");this.hasImageSlotContent!==t&&(this.hasImageSlotContent=t)}startSlotContentObserver(){"undefined"==typeof MutationObserver||this.slotContentObserver||(this.slotContentObserver=new MutationObserver(this.handleSlotContentMutation),this.slotContentObserver.observe(this.el,{attributes:!0,attributeFilter:["slot"],childList:!0,subtree:!0}))}stopSlotContentObserver(){this.slotContentObserver?.disconnect(),this.slotContentObserver=null}hasSlottedContent(t){const i=this.el.querySelector(`slot[name="${t}"]`),s=this.el.querySelector(`[slot="${t}"]`),h=Array.from(this.el.children).some((i=>i.getAttribute("slot")===t)),o=!!i&&i.assignedNodes({flatten:!0}).some((t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()));return Boolean(s||h)||o}startPositioning(){if(!n())return;if(!this.target)return;let t=null;try{t=this.el.ownerDocument.querySelector(this.target)}catch{return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition)}if(!t)return this.stopPositioning(),void(this.resolvedAnchorPosition=this.anchorPosition);this.detachFloatingUiListeners(),this.referenceEl=t,this.cleanupAutoUpdate=a(t,this.el,(()=>{this.updatePosition(t).catch((()=>{}))}))}detachFloatingUiListeners(){this.positioningGeneration+=1,this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null)}resetFloatingHostPosition(){this.el.style.left="",this.el.style.top="",this.el.style.removeProperty("--xpl-spotlight-shift-x"),this.el.style.removeProperty("--xpl-spotlight-shift-y"),this.hasFloatingPosition=!1,this.pendingEnterTransitionAfterAnchor=!1,this.referenceEl=null}clearFloatingHostCoordinates(){this.el.style.left="",this.el.style.top="",this.el.style.removeProperty("--xpl-spotlight-shift-x"),this.el.style.removeProperty("--xpl-spotlight-shift-y"),this.hasFloatingPosition=!1,this.pendingEnterTransitionAfterAnchor=!1,this.resolvedAnchorPosition=this.anchorPosition}stopPositioning(){this.detachFloatingUiListeners(),this.resetFloatingHostPosition()}render(){if(!this.isOpenEnabled)return this.target?h(o,{class:{"xpl-spotlight":!0,"xpl-spotlight--target-only":!0,[`xpl-spotlight--${this.resolvedAnchorPosition}`]:!0,"xpl-spotlight--anchored":this.hasFloatingPosition}},h("button",{type:"button",class:"xpl-spotlight__target","aria-label":"Spotlight indicator",onClick:this.handleTargetClick},h("div",{class:"xpl-spotlight__target-outer"}),h("div",{class:"xpl-spotlight__target-inner"}))):h(o,{"aria-hidden":"true",class:{"xpl-spotlight":!0,"xpl-spotlight--closed":!0}});const{isSingleActionLayout:t,shouldShowPrimaryAction:i,shouldShowSecondaryAction:s,showActionsEnabled:e,showImageEnabled:n,showStepsEnabled:l}=this;return h(o,{class:{[`xpl-spotlight--action-layout-${this.actionLayout}`]:e,"xpl-spotlight":!0,[`xpl-spotlight--${this.resolvedAnchorPosition}`]:!0,"xpl-spotlight--anchored":this.hasFloatingPosition,"xpl-spotlight--no-image":!n,"xpl-spotlight--only-primary-action":e&&i&&!s,"xpl-spotlight--only-secondary-action":e&&s&&!i,"xpl-spotlight--visible":this.isVisible},role:"dialog","aria-modal":"false","aria-label":this.dialogLabelId?void 0:"Tour step","aria-labelledby":this.dialogLabelId,tabindex:-1},h("button",{type:"button",class:"xpl-spotlight__target","aria-label":"Spotlight indicator",onClick:this.handleTargetClick},h("div",{class:"xpl-spotlight__target-outer"}),h("div",{class:"xpl-spotlight__target-inner"})),this.isDismissibleEnabled&&h("div",{class:"xpl-spotlight__dismiss"},h("xpl-button",{variant:"secondary",size:"sm",iconOnly:!0,"aria-label":"Dismiss tour step",onClick:this.handleDismissClick},h("xpl-icon",{icon:"xmark",size:16}))),h("div",{class:"xpl-spotlight__frame"},h("div",{class:{"xpl-spotlight__image-container":!0,"xpl-spotlight__image-container--empty":!this.hasImageSlotContent,"xpl-spotlight__image-container--hidden":!n}},!this.hasImageSlotContent&&n&&h("div",{class:"xpl-spotlight__image-placeholder","aria-hidden":"true"},h("xpl-icon",{icon:"photo",size:24}),h("xpl-icon",{icon:"video",size:24})),h("slot",{name:"image",onSlotchange:this.handleImageSlotChange})),h("div",{class:"xpl-spotlight__content"},h("div",{class:"xpl-spotlight__header"},h("slot",{name:"title",onSlotchange:this.handleTitleSlotChange},!this.hasTitleSlotContent&&this.headingPropHasText&&h("span",{class:"xpl-spotlight__title",id:this.headingId},this.heading)),h("slot",{name:"body",onSlotchange:this.handleBodySlotChange},!this.hasBodySlotContent&&this.bodyPropHasText&&h("p",{class:"xpl-spotlight__body"},this.body))),e&&h("div",{class:{"xpl-spotlight__actions":!0,"xpl-spotlight__actions--dual":!t,"xpl-spotlight__actions--single":t,"xpl-spotlight__actions--with-steps":l,"xpl-spotlight__actions--only-primary":i&&!s,"xpl-spotlight__actions--only-secondary":s&&!i}},h("div",{class:"xpl-spotlight__action-slot xpl-spotlight__action-slot--secondary"},s&&h("xpl-button",{class:"xpl-spotlight__secondary-action",variant:"secondary",size:"default",disabled:this.isSecondaryStepActionDisabled,onClick:this.handleSecondaryClick},this.secondaryActionLabel)),l&&h("span",{class:"xpl-spotlight__step-text"},this.effectiveCurrentStep," of ",this.effectiveTotalSteps),h("div",{class:"xpl-spotlight__action-slot xpl-spotlight__action-slot--primary"},i&&h("xpl-button",{class:"xpl-spotlight__primary-action",variant:"primary",size:"default",disabled:this.isPrimaryStepActionDisabled,onClick:this.handlePrimaryClick},this.primaryActionLabel))))))}get el(){return e(this)}static get watchers(){return{anchorPosition:[{onAnchorPositionChange:0}],isOpen:[{onIsOpenChange:0}],target:[{onTargetChange:0}]}}};export{f as xpl_spotlight}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as t,H as s,g as e}from"./p-CJABLO_1.js";const i=class{constructor(t){r(this,t)}componentDidLoad(){const r=Array.from(this.container.querySelectorAll(".xpl-grid-item"));let t=0,s=0,e=0,i=0;r.forEach((r=>{t+=Number(r.getAttribute("lg"))||6,s+=Number(r.getAttribute("md"))||6,e+=Number(r.getAttribute("sm"))||6,i+=Number(r.getAttribute("xs"))||6,t%6==0&&r.classList.add("xpl-grid-item-lg-last"),s%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 t(s,{key:"4074778ac031d36c8f530379f7cc55b7db8a6887",class:"xpl-grid"})}get container(){return e(this)}};export{i as xpl_grid}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as a}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-CJABLO_1.js";import{g as l,t as n,a as r}from"./p-BQtbf88X.js";const h=class{constructor(i){t(this,i),this.tabChange=s(this,"tabChange",7),this.badgeVariant="purple",this.disabled=!1,this.fullWidth=!1,this.groupDisabled=!1,this.iconPosition="start",this.selected=!1,this.variant="tabs",this.handleTabClick=()=>{this.effectivelyDisabled||this.tabChange.emit(this.target)}}async getFocusableElement(){return this.el.querySelector(this.isSegment?"xpl-button button":".xpl-tab__button")}async setTabIndex(t){const s=await this.getFocusableElement();s&&(s.tabIndex=t)}async focusTrigger(){const t=await this.getFocusableElement();t?.focus()}get a11yIds(){const t=l(this.el),s=this.target??"";return{panelId:r(t,s),triggerId:n(t,s)}}get effectivelyDisabled(){return this.disabled||this.groupDisabled}get isSegment(){return"segment"===this.variant}get hasBadge(){return null!=this.badge&&this.badge.length>0}renderBadge(){return this.hasBadge?i("xpl-badge",{class:"xpl-tab__badge",dotOnly:!0,variant:this.badgeVariant},this.badge):null}render(){const t=this.isSegment,{panelId:s,triggerId:a}=this.a11yIds,l=this.selected?"true":"false",n={"xpl-tab":!0,"xpl-tab--selected":this.selected,"xpl-tab--segment":t,"xpl-tab--disabled":this.effectivelyDisabled};if(t)return i(e,{class:n},i("xpl-button",{controlAttrs:{id:a,role:"tab","aria-controls":s,"aria-selected":l},disabled:this.effectivelyDisabled,fullWidth:this.fullWidth,icon:this.icon??"",iconPosition:this.iconPosition,onClick:this.handleTabClick,size:"sm",type:"button",variant:this.selected?"primary":"tertiary"},i("slot",null),this.renderBadge()));const r=this.icon?i("xpl-icon",{class:"xpl-tab__icon",icon:this.icon,size:16}):null;return i(e,{class:n},i("button",{"aria-controls":s,"aria-selected":l,class:"xpl-tab__button",disabled:this.effectivelyDisabled,id:a,onClick:this.handleTabClick,role:"tab",type:"button"},"start"===this.iconPosition?r:null,i("slot",null),"end"===this.iconPosition?r:null,this.renderBadge()))}get el(){return a(this)}};export{h as xpl_tab}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a,H as
|
|
1
|
+
import{r as e,h as a,H as c}from"./p-CJABLO_1.js";const s=class{constructor(a){e(this,a),this.accent="none",this.padding="default"}render(){const e="none"!==this.accent;return a(c,{key:"61852953ba87a556efaeff011546aecdd27bb6b1",class:{"xpl-panel":!0,[`xpl-panel--accent-${this.accent}`]:e,[`xpl-panel--padding-${this.padding}`]:!0}},e&&a("div",{key:"b4317b146c7759041d90b1a07ddd18f8dd3f2fd9","aria-hidden":"true",class:"xpl-panel__accent"}),a("div",{key:"b6d5634c93f921a002a3928884f54d3f8cce76cf",class:"xpl-panel__content"},a("slot",{key:"903c5e6f307ab7045b992f6b3bf3ec2c5b563455"})))}};export{s as xpl_panel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as s,F as a,g as l}from"./p-ukZKsqqq.js";const r=class{constructor(e){t(this,e),this.itemDragEnd=i(this,"itemDragEnd",7),this.itemDragStart=i(this,"itemDragStart",7),this.itemDrop=i(this,"itemDrop",7),this.itemSelect=i(this,"itemSelect",7),this.dragFromHandle=!1,this.slotPresence={actions:!1,avatar:!1,badges:!1,details:!1,errorText:!1,metadata:!1,stackedExtra1:!1,stackedExtra2:!1,stackedExtra3:!1,titleBadge:!1,title:!1},this.isKeyboardMode=!1,this.disabled=!1,this.error=!1,this.hidden=!1,this.keyboardActive=!1,this.reorderable=!1,this.selectable=!1,this.selected=!1,this.showDivider=!1,this.handleDragStart=t=>{if(this.disabled)return void t.preventDefault();if(!this.dragFromHandle)return void t.preventDefault();this.detachDragHandlePointerReleaseListeners(),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",this.itemId||this.el.id||""));const i=this.el.querySelector(".xpl-list-item__wrapper");i?.classList.add("dragging"),this.itemDragStart.emit({itemId:this.itemId,item:this.el})},this.handleDrop=t=>{this.disabled||(t.preventDefault(),this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1,this.itemDrop.emit({itemId:this.itemId,item:this.el}))},this.handleDragOver=t=>{this.disabled||(t.preventDefault(),t.dataTransfer&&this.reorderable&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{if(this.disabled)return;t.preventDefault();const i=this.el.querySelector(".xpl-list-item__wrapper");i?.classList.add("drag-over")},this.handleDragLeave=t=>{if(this.disabled)return;const i=this.el.querySelector(".xpl-list-item__wrapper");i&&!i.contains(t.relatedTarget)&&i.classList.remove("drag-over")},this.handleDragEnd=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1;const t=this.el.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging","drag-over");const i=this.el.parentElement;i&&Array.from(i.children).forEach((t=>{if("xpl-list-item"!==t.tagName.toLowerCase())return;const i=t.querySelector(".xpl-list-item__wrapper");i?.classList.remove("drag-over")})),this.itemDragEnd.emit({itemId:this.itemId,item:this.el})},this.handleDragHandleMouseDown=()=>{if(this.disabled)return;this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!0;const t=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1};document.addEventListener("pointerup",t,!0),document.addEventListener("pointercancel",t,!0),this.dragHandlePointerReleaseCleanup=()=>{document.removeEventListener("pointerup",t,!0),document.removeEventListener("pointercancel",t,!0)},this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{exitKeyboardMode:!0}}))},this.preventRowLinkNavigation=t=>{this.href&&(t.preventDefault(),t.stopPropagation())},this.handleMouseDown=()=>{this.isKeyboardMode&&this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))},this.handleDragHandleKeyDown=t=>{this.disabled?"Escape"===t.key&&this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))):"Escape"!==t.key?this.isKeyboardMode?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{direction:"ArrowUp"===t.key?"up":"down",item:this.el,itemId:this.itemId,keyboardMode:!0}}))):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{item:this.el,itemId:this.itemId,keyboardMode:!0}}))):this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}})))},this.handleRadioChange=()=>{this.disabled||this.itemSelect.emit({itemId:this.itemId})},this.handleRadioClick=t=>{this.href&&t.stopPropagation()}}handleItemChange(){this.updateSlotPresence()}handleKeyboardActiveChange(t){this.isKeyboardMode=t}handleSelectedChange(t){const i=this.el.querySelector('.xpl-list-item__selectable input[type="radio"]');i instanceof HTMLInputElement&&i.checked!==t&&(i.checked=t)}handleTitleBadgeVariantChange(){this.updateSlotPresence()}connectedCallback(){this.el.addEventListener("mousedown",this.handleMouseDown,!0)}disconnectedCallback(){this.el.removeEventListener("mousedown",this.handleMouseDown,!0),this.detachDragHandlePointerReleaseListeners()}componentWillLoad(){this.updateSlotPresence(),this.isKeyboardMode=!!this.keyboardActive;const t=this.el.getAttribute("item-id");t&&!this.itemId&&(this.itemId=t),this.el.id&&!this.itemId&&(this.itemId=this.el.id)}componentDidRender(){this.syncReorderDragHandleA11y()}handleSlotChange(){this.updateSlotPresence()}updateSlotPresence(){const t=this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant");this.slotPresence={actions:this.hasSlot("actions"),avatar:this.hasSlot("avatar"),badges:this.hasSlot("badges"),details:this.hasSlot("details"),errorText:this.hasSlot("error-text"),metadata:this.hasSlot("metadata"),stackedExtra1:this.hasSlot("stacked-extra-1"),stackedExtra2:this.hasSlot("stacked-extra-2"),stackedExtra3:this.hasSlot("stacked-extra-3"),title:this.hasSlot("title"),titleBadge:!!(this.titleBadgeVariant&&String(this.titleBadgeVariant).length>0||t&&t.length>0)}}detachDragHandlePointerReleaseListeners(){this.dragHandlePointerReleaseCleanup&&(this.dragHandlePointerReleaseCleanup(),this.dragHandlePointerReleaseCleanup=void 0)}hasSlot(t){if(Array.from(this.el.children).some((i=>i.getAttribute("slot")===t)))return!0;const i=Array.from(this.el.querySelectorAll(`slot[name="${t}"]`)).find((t=>t.closest("xpl-list-item")===this.el));return!(!i||"function"!=typeof i.assignedNodes)&&i.assignedNodes({flatten:!0}).length>0}getTitleSlotAccessibleText(){const t=Array.from(this.el.children).find((t=>"title"===t.getAttribute("slot")));if(t)return t.textContent??void 0;const i=Array.from(this.el.querySelectorAll('slot[name="title"]')).find((t=>t.closest("xpl-list-item")===this.el));return i&&"function"==typeof i.assignedNodes&&i.assignedNodes({flatten:!0}).map((t=>t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE?t.textContent??"":"")).join("").trim()||void 0}getRowIdForAccessibleLabel(){const t=this.itemId?.trim();if(t)return t;const i=this.el.getAttribute("item-id")?.trim();if(i)return i;const e=this.el.id?.trim();return e||""}getSelectableRadioLabel(){const t=this.getRowIdForAccessibleLabel();if(this.slotPresence.title){const i=this.getTitleSlotAccessibleText()?.trim();return i||(t?`Select ${t}`:"Select list item")}return t?`Select ${t}`:"Select list item"}renderPropBasedItem(){const{item:t}=this;if(!t)return null;const i=t.avatars||t.badges||t.subtext,a=t.href?"a":"div",l=t.href?{href:t.href}:{};return e(s,{role:"listitem",class:{"xpl-list-item":!0,"xpl-list-item--error":!!this.error,"xpl-list-item--disabled":!!this.disabled},hidden:this.hidden},function(t){return t.avatar&&"string"==typeof t.avatar?"/"===t.avatar.slice(0,1)||"http"===t.avatar.slice(0,4)?e("xpl-avatar",{src:t.avatar,name:t.title}):e("xpl-avatar",{name:t.title},t.avatar):null}(t),e(a,{class:"xpl-list-item-content",...l},e("div",{class:"xpl-list-left"},e("div",null,e("h4",null,t.title),t.metadata&&e("ul",{class:"xpl-list-item-metadata"},t.metadata.map((t=>"string"==typeof t?e("li",null,t):e("li",null,e("xpl-icon",{icon:t.icon})," ",t.text)))))),i&&e("div",{class:"xpl-list-right"},t.subtext&&e("div",{class:"xpl-list-item-subtext"},t.subtext),t.avatars&&e("div",{class:"xpl-avatar-group xpl-avatar-group--s"},t.avatars.map((t=>e("img",{src:t,alt:""})))),t.badges&&t.badges.map((t=>"string"==typeof t?e("xpl-badge",null,t):e("xpl-badge",{dot:t.dot,variant:t.variant},t.text)))),t.href?e("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},e("xpl-icon",{icon:"chevron-right",size:12})):null))}renderTitleBadge(){if(!this.slotPresence.titleBadge)return null;const t=this.titleBadgeVariant||this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant")||"purple";return e("div",{class:"xpl-list-item__title-badge"},e("xpl-badge",{dotOnly:!0,size:"small",variant:t}))}renderSlotBasedItem(){const t=this.slotPresence.details||this.slotPresence.badges||this.slotPresence.actions,i=this.slotPresence.title||this.slotPresence.metadata||this.slotPresence.stackedExtra1||this.slotPresence.stackedExtra2||this.slotPresence.stackedExtra3,l=this.radioName||this.el.getAttribute("radio-name")||"",r=this.reorderable&&!this.disabled,h="xpl-list-item__wrapper",n={draggable:r,onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,onDragEnd:this.handleDragEnd},o=e(a,null,r&&e("div",{class:"xpl-list-item__reorderable"},e("xpl-button",{class:{"xpl-list-item__drag-handle":!0,"xpl-list-item__drag-handle--keyboard-mode":this.isKeyboardMode},type:"button",variant:"tertiary",sentiment:"neutral",iconOnly:!0,icon:this.isKeyboardMode?"caret-expand-y":"grip-dots-vertical",disabled:this.disabled,onClick:this.preventRowLinkNavigation,onMouseDown:this.handleDragHandleMouseDown,onKeyDown:this.handleDragHandleKeyDown})),this.selectable&&l?e("div",{class:"xpl-list-item__selectable",onClick:this.handleRadioClick},e("xpl-radio",{checked:this.selected,disabled:this.disabled,name:l,value:this.itemId??"",onRadioChange:this.handleRadioChange},this.getSelectableRadioLabel())):null,this.slotPresence.avatar&&e("div",{class:"xpl-list-item__avatar",onClick:this.preventRowLinkNavigation},e("slot",{name:"avatar"})),i&&e("div",{class:"xpl-list-item__stacked"},(this.slotPresence.title||this.slotPresence.titleBadge)&&e("div",{class:"xpl-list-item__title-row"},e("div",{class:"xpl-list-item__title-wrapper"},this.renderTitleBadge(),e("slot",{name:"title"}))),this.showDivider&&e("xpl-divider",null),this.slotPresence.metadata&&e("div",{class:"xpl-list-item__metadata-row"},e("slot",{name:"metadata"})),this.slotPresence.stackedExtra1&&e("div",{class:"xpl-list-item__stacked-extra-1"},e("slot",{name:"stacked-extra-1"})),this.slotPresence.stackedExtra2&&e("div",{class:"xpl-list-item__stacked-extra-2"},e("slot",{name:"stacked-extra-2"})),this.slotPresence.stackedExtra3&&e("div",{class:"xpl-list-item__stacked-extra-3"},e("slot",{name:"stacked-extra-3"}))),t&&e("div",{class:"xpl-list-item__right"},this.slotPresence.details&&e("div",{class:"xpl-list-item__details"},e("slot",{name:"details"})),this.slotPresence.badges&&e("div",{class:"xpl-list-item__badges"},e("slot",{name:"badges"})),this.slotPresence.actions&&e("div",{class:"xpl-list-item__actions",onClick:this.preventRowLinkNavigation},e("slot",{name:"actions"}))),this.href?e("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},e("xpl-icon",{icon:"chevron-right",size:12})):null);return e(s,{class:{"xpl-list-item":!0,"xpl-list-item--error":!(!this.error&&!this.slotPresence.errorText),"xpl-list-item--disabled":!!this.disabled,"xpl-list-item--slot-based":!0,"xpl-list-item--selected":!!this.selected},hidden:this.hidden},this.href?e("div",{role:"listitem",class:"xpl-list-item__listitem-shell"},e("a",{class:h,href:this.href,...n},o)):e("div",{role:"listitem",class:h,...n},o),this.slotPresence.errorText&&e("div",{class:"xpl-list-item__error-text"},e("xpl-icon",{icon:"circle-warning",size:16}),e("slot",{name:"error-text"})))}syncReorderDragHandleA11y(){if(!this.reorderable||this.disabled)return;const t=this.el.querySelector("xpl-button.xpl-list-item__drag-handle"),i=t?.querySelector("button");i&&(i.setAttribute("aria-label",this.isKeyboardMode?"Press arrow up or down to reorder, Escape to exit":"Press Enter or Space to activate keyboard reorder mode, or drag to reorder"),i.setAttribute("aria-pressed",this.isKeyboardMode?"true":"false"))}render(){return this.hidden?e(s,{hidden:!0}):this.item?this.renderPropBasedItem():this.renderSlotBasedItem()}get el(){return l(this)}static get watchers(){return{item:[{handleItemChange:0}],keyboardActive:[{handleKeyboardActiveChange:0}],selected:[{handleSelectedChange:0}],titleBadgeVariant:[{handleTitleBadgeVariantChange:0}]}}};export{r as xpl_list_item}
|
|
1
|
+
import{r as t,c as i,h as e,H as s,F as a,g as l}from"./p-CJABLO_1.js";const r=class{constructor(e){t(this,e),this.itemDragEnd=i(this,"itemDragEnd",7),this.itemDragStart=i(this,"itemDragStart",7),this.itemDrop=i(this,"itemDrop",7),this.itemSelect=i(this,"itemSelect",7),this.dragFromHandle=!1,this.slotPresence={actions:!1,avatar:!1,badges:!1,details:!1,errorText:!1,metadata:!1,stackedExtra1:!1,stackedExtra2:!1,stackedExtra3:!1,titleBadge:!1,title:!1},this.isKeyboardMode=!1,this.disabled=!1,this.error=!1,this.hidden=!1,this.keyboardActive=!1,this.reorderable=!1,this.selectable=!1,this.selected=!1,this.showDivider=!1,this.handleDragStart=t=>{if(this.disabled)return void t.preventDefault();if(!this.dragFromHandle)return void t.preventDefault();this.detachDragHandlePointerReleaseListeners(),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",this.itemId||this.el.id||""));const i=this.el.querySelector(".xpl-list-item__wrapper");i?.classList.add("dragging"),this.itemDragStart.emit({itemId:this.itemId,item:this.el})},this.handleDrop=t=>{this.disabled||(t.preventDefault(),this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1,this.itemDrop.emit({itemId:this.itemId,item:this.el}))},this.handleDragOver=t=>{this.disabled||(t.preventDefault(),t.dataTransfer&&this.reorderable&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{if(this.disabled)return;t.preventDefault();const i=this.el.querySelector(".xpl-list-item__wrapper");i?.classList.add("drag-over")},this.handleDragLeave=t=>{if(this.disabled)return;const i=this.el.querySelector(".xpl-list-item__wrapper");i&&!i.contains(t.relatedTarget)&&i.classList.remove("drag-over")},this.handleDragEnd=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1;const t=this.el.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging","drag-over");const i=this.el.parentElement;i&&Array.from(i.children).forEach((t=>{if("xpl-list-item"!==t.tagName.toLowerCase())return;const i=t.querySelector(".xpl-list-item__wrapper");i?.classList.remove("drag-over")})),this.itemDragEnd.emit({itemId:this.itemId,item:this.el})},this.handleDragHandleMouseDown=()=>{if(this.disabled)return;this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!0;const t=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1};document.addEventListener("pointerup",t,!0),document.addEventListener("pointercancel",t,!0),this.dragHandlePointerReleaseCleanup=()=>{document.removeEventListener("pointerup",t,!0),document.removeEventListener("pointercancel",t,!0)},this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{exitKeyboardMode:!0}}))},this.preventRowLinkNavigation=t=>{this.href&&(t.preventDefault(),t.stopPropagation())},this.handleMouseDown=()=>{this.isKeyboardMode&&this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))},this.handleDragHandleKeyDown=t=>{this.disabled?"Escape"===t.key&&this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))):"Escape"!==t.key?this.isKeyboardMode?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{direction:"ArrowUp"===t.key?"up":"down",item:this.el,itemId:this.itemId,keyboardMode:!0}}))):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{item:this.el,itemId:this.itemId,keyboardMode:!0}}))):this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}})))},this.handleRadioChange=()=>{this.disabled||this.itemSelect.emit({itemId:this.itemId})},this.handleRadioClick=t=>{this.href&&t.stopPropagation()}}handleItemChange(){this.updateSlotPresence()}handleKeyboardActiveChange(t){this.isKeyboardMode=t}handleSelectedChange(t){const i=this.el.querySelector('.xpl-list-item__selectable input[type="radio"]');i instanceof HTMLInputElement&&i.checked!==t&&(i.checked=t)}handleTitleBadgeVariantChange(){this.updateSlotPresence()}connectedCallback(){this.el.addEventListener("mousedown",this.handleMouseDown,!0)}disconnectedCallback(){this.el.removeEventListener("mousedown",this.handleMouseDown,!0),this.detachDragHandlePointerReleaseListeners()}componentWillLoad(){this.updateSlotPresence(),this.isKeyboardMode=!!this.keyboardActive;const t=this.el.getAttribute("item-id");t&&!this.itemId&&(this.itemId=t),this.el.id&&!this.itemId&&(this.itemId=this.el.id)}componentDidRender(){this.syncReorderDragHandleA11y()}handleSlotChange(){this.updateSlotPresence()}updateSlotPresence(){const t=this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant");this.slotPresence={actions:this.hasSlot("actions"),avatar:this.hasSlot("avatar"),badges:this.hasSlot("badges"),details:this.hasSlot("details"),errorText:this.hasSlot("error-text"),metadata:this.hasSlot("metadata"),stackedExtra1:this.hasSlot("stacked-extra-1"),stackedExtra2:this.hasSlot("stacked-extra-2"),stackedExtra3:this.hasSlot("stacked-extra-3"),title:this.hasSlot("title"),titleBadge:!!(this.titleBadgeVariant&&String(this.titleBadgeVariant).length>0||t&&t.length>0)}}detachDragHandlePointerReleaseListeners(){this.dragHandlePointerReleaseCleanup&&(this.dragHandlePointerReleaseCleanup(),this.dragHandlePointerReleaseCleanup=void 0)}hasSlot(t){if(Array.from(this.el.children).some((i=>i.getAttribute("slot")===t)))return!0;const i=Array.from(this.el.querySelectorAll(`slot[name="${t}"]`)).find((t=>t.closest("xpl-list-item")===this.el));return!(!i||"function"!=typeof i.assignedNodes)&&i.assignedNodes({flatten:!0}).length>0}getTitleSlotAccessibleText(){const t=Array.from(this.el.children).find((t=>"title"===t.getAttribute("slot")));if(t)return t.textContent??void 0;const i=Array.from(this.el.querySelectorAll('slot[name="title"]')).find((t=>t.closest("xpl-list-item")===this.el));return i&&"function"==typeof i.assignedNodes&&i.assignedNodes({flatten:!0}).map((t=>t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE?t.textContent??"":"")).join("").trim()||void 0}getRowIdForAccessibleLabel(){const t=this.itemId?.trim();if(t)return t;const i=this.el.getAttribute("item-id")?.trim();if(i)return i;const e=this.el.id?.trim();return e||""}getSelectableRadioLabel(){const t=this.getRowIdForAccessibleLabel();if(this.slotPresence.title){const i=this.getTitleSlotAccessibleText()?.trim();return i||(t?`Select ${t}`:"Select list item")}return t?`Select ${t}`:"Select list item"}renderPropBasedItem(){const{item:t}=this;if(!t)return null;const i=t.avatars||t.badges||t.subtext,a=t.href?"a":"div",l=t.href?{href:t.href}:{};return e(s,{role:"listitem",class:{"xpl-list-item":!0,"xpl-list-item--error":!!this.error,"xpl-list-item--disabled":!!this.disabled},hidden:this.hidden},function(t){return t.avatar&&"string"==typeof t.avatar?"/"===t.avatar.slice(0,1)||"http"===t.avatar.slice(0,4)?e("xpl-avatar",{src:t.avatar,name:t.title}):e("xpl-avatar",{name:t.title},t.avatar):null}(t),e(a,{class:"xpl-list-item-content",...l},e("div",{class:"xpl-list-left"},e("div",null,e("h4",null,t.title),t.metadata&&e("ul",{class:"xpl-list-item-metadata"},t.metadata.map((t=>"string"==typeof t?e("li",null,t):e("li",null,e("xpl-icon",{icon:t.icon})," ",t.text)))))),i&&e("div",{class:"xpl-list-right"},t.subtext&&e("div",{class:"xpl-list-item-subtext"},t.subtext),t.avatars&&e("div",{class:"xpl-avatar-group xpl-avatar-group--s"},t.avatars.map((t=>e("img",{src:t,alt:""})))),t.badges&&t.badges.map((t=>"string"==typeof t?e("xpl-badge",null,t):e("xpl-badge",{dot:t.dot,variant:t.variant},t.text)))),t.href?e("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},e("xpl-icon",{icon:"chevron-right",size:12})):null))}renderTitleBadge(){if(!this.slotPresence.titleBadge)return null;const t=this.titleBadgeVariant||this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant")||"purple";return e("div",{class:"xpl-list-item__title-badge"},e("xpl-badge",{dotOnly:!0,size:"small",variant:t}))}renderSlotBasedItem(){const t=this.slotPresence.details||this.slotPresence.badges||this.slotPresence.actions,i=this.slotPresence.title||this.slotPresence.metadata||this.slotPresence.stackedExtra1||this.slotPresence.stackedExtra2||this.slotPresence.stackedExtra3,l=this.radioName||this.el.getAttribute("radio-name")||"",r=this.reorderable&&!this.disabled,h="xpl-list-item__wrapper",n={draggable:r,onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,onDragEnd:this.handleDragEnd},o=e(a,null,r&&e("div",{class:"xpl-list-item__reorderable"},e("xpl-button",{class:{"xpl-list-item__drag-handle":!0,"xpl-list-item__drag-handle--keyboard-mode":this.isKeyboardMode},type:"button",variant:"tertiary",sentiment:"neutral",iconOnly:!0,icon:this.isKeyboardMode?"caret-expand-y":"grip-dots-vertical",disabled:this.disabled,onClick:this.preventRowLinkNavigation,onMouseDown:this.handleDragHandleMouseDown,onKeyDown:this.handleDragHandleKeyDown})),this.selectable&&l?e("div",{class:"xpl-list-item__selectable",onClick:this.handleRadioClick},e("xpl-radio",{checked:this.selected,disabled:this.disabled,name:l,value:this.itemId??"",onRadioChange:this.handleRadioChange},this.getSelectableRadioLabel())):null,this.slotPresence.avatar&&e("div",{class:"xpl-list-item__avatar",onClick:this.preventRowLinkNavigation},e("slot",{name:"avatar"})),i&&e("div",{class:"xpl-list-item__stacked"},(this.slotPresence.title||this.slotPresence.titleBadge)&&e("div",{class:"xpl-list-item__title-row"},e("div",{class:"xpl-list-item__title-wrapper"},this.renderTitleBadge(),e("slot",{name:"title"}))),this.showDivider&&e("xpl-divider",null),this.slotPresence.metadata&&e("div",{class:"xpl-list-item__metadata-row"},e("slot",{name:"metadata"})),this.slotPresence.stackedExtra1&&e("div",{class:"xpl-list-item__stacked-extra-1"},e("slot",{name:"stacked-extra-1"})),this.slotPresence.stackedExtra2&&e("div",{class:"xpl-list-item__stacked-extra-2"},e("slot",{name:"stacked-extra-2"})),this.slotPresence.stackedExtra3&&e("div",{class:"xpl-list-item__stacked-extra-3"},e("slot",{name:"stacked-extra-3"}))),t&&e("div",{class:"xpl-list-item__right"},this.slotPresence.details&&e("div",{class:"xpl-list-item__details"},e("slot",{name:"details"})),this.slotPresence.badges&&e("div",{class:"xpl-list-item__badges"},e("slot",{name:"badges"})),this.slotPresence.actions&&e("div",{class:"xpl-list-item__actions",onClick:this.preventRowLinkNavigation},e("slot",{name:"actions"}))),this.href?e("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},e("xpl-icon",{icon:"chevron-right",size:12})):null);return e(s,{class:{"xpl-list-item":!0,"xpl-list-item--error":!(!this.error&&!this.slotPresence.errorText),"xpl-list-item--disabled":!!this.disabled,"xpl-list-item--slot-based":!0,"xpl-list-item--selected":!!this.selected},hidden:this.hidden},this.href?e("div",{role:"listitem",class:"xpl-list-item__listitem-shell"},e("a",{class:h,href:this.href,...n},o)):e("div",{role:"listitem",class:h,...n},o),this.slotPresence.errorText&&e("div",{class:"xpl-list-item__error-text"},e("xpl-icon",{icon:"circle-warning",size:16}),e("slot",{name:"error-text"})))}syncReorderDragHandleA11y(){if(!this.reorderable||this.disabled)return;const t=this.el.querySelector("xpl-button.xpl-list-item__drag-handle"),i=t?.querySelector("button");i&&(i.setAttribute("aria-label",this.isKeyboardMode?"Press arrow up or down to reorder, Escape to exit":"Press Enter or Space to activate keyboard reorder mode, or drag to reorder"),i.setAttribute("aria-pressed",this.isKeyboardMode?"true":"false"))}render(){return this.hidden?e(s,{hidden:!0}):this.item?this.renderPropBasedItem():this.renderSlotBasedItem()}get el(){return l(this)}static get watchers(){return{item:[{handleItemChange:0}],keyboardActive:[{handleKeyboardActiveChange:0}],selected:[{handleSelectedChange:0}],titleBadgeVariant:[{handleTitleBadgeVariantChange:0}]}}};export{r as xpl_list_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,H as r}from"./p-
|
|
1
|
+
import{r as s,h as t,H as r}from"./p-CJABLO_1.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:"fd361d06ed53a837d2f585f4c7d1d212cf6cad9b",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:"88f819d70853796e7330bce7aab6a457c2ef959f",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{h as t,r as a,H as o}from"./p-CJABLO_1.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:"e2092a0ca048c0c06346b28c5f7a38fb343b0989"},t("div",{key:"9f9b41b01e4b4a3721a9744bf4a9dc798bd5e313",class:"xpl-tooltip-container"},t("slot",{key:"a4e23c5c38d792a08755aacd1a1b3250f3cfd29e"}),t("div",{key:"c6227fd82a95bd19de20c68d97c4c9b72a749d28",class:`xpl-tooltip xpl-tooltip--${this.position}`},this.text,!this.hideArrow&&t("div",{key:"551d991247f6f3016559fa10180ba96101a47169",class:"xpl-tooltip-arrow"},t(s,{key:"fc323dececf4a90528ed47e06290188722a17eb0"})))))}};export{e as xpl_tooltip}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as t,h as i,H as s}from"./p-
|
|
1
|
+
import{r as a,c as t,h as i,H as s}from"./p-CJABLO_1.js";const l=class{constructor(i){a(this,i),this.navOpen=t(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 i(s,{key:"68d645d450da9bb09ab698b865cdb90643276b04"},i("nav",{key:"7c8e37a3c7029af28eea94f8c4db4a681f903fb7","aria-label":"utility navigation bar",class:"xpl-utility-bar"},this.navControl?i("div",null,i("button",{class:"xpl-utility-bar__nav-control",onClick:()=>this.onNavToggle()},i("xpl-icon",{class:"xpl-utility-nav__bars",icon:"three-bars"})),i("slot",{name:"aside"})):i("slot",{name:"aside"}),i("slot",{key:"36fd1261aeafbdcb52cee2b19b3f29ce7c3f7539",name:"main"})))}};export{l as xpl_utility_bar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as r,H as o}from"./p-CJABLO_1.js";const c=class{constructor(r){e(this,r)}render(){return r(o,{key:"1f6a7cae4df63c42c2c3c87bd3a531033d0e04b1",class:"xpl-table-footer",role:"rowgroup"},r("slot",{key:"2b2447283d8fcc7ebf9d48d44e30b98b2af58d9c"}))}};export{c as xpl_table_footer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as a,h as d,H as c,g as t}from"./p-CJABLO_1.js";const s=class{constructor(d){e(this,d),this.isOpenChange=a(this,"isOpenChange",7),this.isOpen=!1,this.backdrop=!1,this.variant="default",this.showFooter=!0,this.handleClose=()=>{this.isOpen=!1}}watchPropHandler(e){this.isOpen=e,this.isOpenChange.emit(e)}handleScroll(){const e=this.el.querySelector(".content");e&&(e.scrollHeight>e.clientHeight?e.classList.add("has-shadow"):e.classList.remove("has-shadow"))}componentDidLoad(){this.handleScroll()}render(){return d(c,{key:"057b30a3213ae419e0a9bc94cae621cdf303d293",class:"xpl-slideout"},this.backdrop&&this.isOpen&&d("xpl-backdrop",{key:"940911dc6c07731fe40c0a4399cd81a3af7933ee",onClick:this.handleClose}),d("aside",{key:"b3432b92753b96999c528783cebfabd1488141be",class:`slideout slideout--${!this.isOpen&&"closed"}`},d("header",{key:"d87ec6cd3b3085131dd4bb6f2524e0ae39d36201",class:"header"},d("div",{key:"e2e3387ad686479d91810c022d657f44f97b1aeb",class:"title"},d("slot",{key:"c3accb74528dbd73140aa2b9b7c2e4e7f8013a6a",name:"title"}),d("xpl-button",{key:"ee486da9662bddb85e336edc01d878c2b4ade2cc",class:"close-button","icon-only":!0,variant:"tertiary",onClick:this.handleClose},d("xpl-icon",{key:"5e8b248e39e238e6ba2138641029bdde3160512e",icon:"xmark"}))),d("div",{key:"0bd2f149ba999ac0c8501d538298c2f5d4bfa687",class:"subtitle"},d("slot",{key:"0523c0ea9575ff905e78893723e7d6329befc9d9",name:"subtitle"})),d("div",{key:"d2de0a7b462fadfc9d80479db1153300abe0180f",class:"search"},d("slot",{key:"d0463af8f532856bdc273e306f06f7d837f41ffd",name:"search"}))),d("xpl-divider",{key:"9e3de6ccca99ab37bfeda29adbe343663f38ebef",tier:0,class:"divider top"}),d("article",{key:"0cf827d89aca95c2a0b0e5f037d12a00de651866",class:"content",tabIndex:0},d("slot",{key:"6738c288b5ccaa437efed62b8fd786cd58073b27",name:"content"})),this.showFooter&&d("footer",{key:"cf02d04cd0b1ce89e4783c5b4741e8b5fad739e8"},d("xpl-divider",{key:"9d79e51a52e5daed07bcb2ed7229f41926958594",tier:0,class:"divider bottom"}),d("div",{key:"fdbd1f126350e6b5b9bbad8a15bcc70cb9e562a3",class:"footer"},d("slot",{key:"994b27f63fab2d9ad45c50862c07239492a8404c",name:"tertiary"}),d("slot",{key:"ccd6bfc3f66e98dbb07a54a5e523b4365e8c1633",name:"secondary"}),d("slot",{key:"40dfa4f9fffecfd8a3c01be593de504b0d7e7f7e",name:"primary"})))))}get el(){return t(this)}static get watchers(){return{isOpen:[{watchPropHandler:0}]}}};export{s as xpl_slideout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as i}from"./p-CJABLO_1.js";const c=class{constructor(e){t(this,e),this.clickPrimary=s(this,"clickPrimary",7),this.clickSecondary=s(this,"clickSecondary",7),this.clickTertiary=s(this,"clickTertiary",7),this.onPrimary=()=>this.clickPrimary.emit(),this.onSecondary=()=>this.clickSecondary.emit(),this.onTertiary=()=>this.clickTertiary.emit()}render(){return e(i,{key:"1a62b9b571e501af51ec981ffa18482516d889dd",class:"xpl-button-row"},e("div",{key:"60eefd7f143289ff3991373d29d8fb925c326bcd",class:"xpl-button-row-inner"},e("div",{key:"a395589aa225b953abf8a60539ea32dcca023f17",class:"xpl-button-row__left"},this.secondary&&e("xpl-button",{key:"b4682506704ed7b9169e5b621fa58d6c5238103f",variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary)),e("div",{key:"24c432eb94332d55842cb3e3b747b933bc29b168",class:"xpl-button-row__right"},this.tertiary&&e("xpl-button",{key:"07ddee3c645def7a435d1ee7e33ac82a11b311cd",variant:"subtle",type:"button",onClick:this.onTertiary},this.tertiary),this.secondary&&e("xpl-button",{key:"eed2fe1cf5235744f91b3990953dd3bea7ed6bea",variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary),this.primary&&e("xpl-button",{key:"28d2224d6c2b519068b5c47ccb8e7a2a8ec31180",class:"xpl-button-row__primary",onClick:this.onPrimary},this.primary))))}};export{c as xpl_button_row}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as l,g as s,c as i}from"./p-
|
|
1
|
+
import{r as e,h as t,H as l,g as s,c as i}from"./p-CJABLO_1.js";import{c as a,X as c,b as h}from"./p-O7gQjVdS.js";const r="data-xpl-table-cell-managed-disabled",n=class{constructor(t){e(this,t),this.align="left",this.bold=!1,this.disabled=!1,this.underline=!1}onDisabledChange(){this.propagateDisabledToSlotted()}componentDidLoad(){this.propagateDisabledToSlotted()}propagateDisabledToSlotted(){const e=e=>{if(!function(e){if("disabled"in e)return!0;switch(e.tagName){case"BUTTON":case"INPUT":case"SELECT":case"TEXTAREA":case"FIELDSET":case"OPTGROUP":case"OPTION":return!0;default:return!1}}(e))return;const t=e;if(this.disabled){if(t.disabled)return;return t.disabled=!0,t.setAttribute("disabled",""),void t.setAttribute(r,"")}t.hasAttribute(r)&&(t.disabled=!1,t.removeAttribute("disabled"),t.removeAttribute(r))},t=l=>{Array.from(l.children).forEach((l=>{"XPL-TABLE"!==l.tagName&&(e(l),t(l))}))};t(this.el)}render(){return t(l,{key:"f2b486b9dbab0c982fc3362e1775a99eebc1ac05",role:"gridcell",class:{"xpl-table-cell":!0,[`xpl-table-cell--align-${this.align}`]:!0,"xpl-table-cell--bold":this.bold,"xpl-table-cell--underline":this.underline,"xpl-table-cell--disabled":this.disabled}},t("slot",{key:"19c3a0f67b3eccdb3e6441ba74b8e9d5bb8d0ae6"}))}get el(){return s(this)}static get watchers(){return{disabled:[{onDisabledChange:0}]}}},o=class{constructor(t){e(this,t),this.align="left"}render(){return t(l,{key:"468d80c698b82031537d12584494bb8e42cc4a83",class:{"xpl-table-footer-cell":!0,[`xpl-table-footer-cell--align-${this.align}`]:!0},role:"gridcell"},t("slot",{key:"91674140e7e618b7ff40c58ebbdae79145318de9"}))}},d=class{constructor(t){e(this,t),this.headerCheckboxChange=i(this,"headerCheckboxChange",7),this.headerSortChange=i(this,"headerSortChange",7),this.align="left",this.checked=!1,this.indeterminate=!1,this.label="",this.sortable=!1,this.type="label",this.onHeaderInnerCheckboxChange=e=>{const{detail:t}=e,l="boolean"==typeof t?t:Boolean(t);this.headerCheckboxChange.emit(l)},this.onSortActivate=e=>{if(e.preventDefault(),e.stopPropagation(),!this.sortable||"label"!==this.type)return;const t=this.getColumnIndex0(),l=this.getSortKeySlug();this.el.closest("xpl-table")||(this.sortDirection=a(this.sortDirection)),this.headerSortChange.emit({columnIndex:t,sortKey:l})}}watchColumnWidth(){this.notifyColumnWidthsChange()}watchWidth(){this.notifyColumnWidthsChange()}componentDidLoad(){this.notifyColumnWidthsChange()}notifyColumnWidthsChange(){this.el.dispatchEvent(new CustomEvent(c,{bubbles:!0,composed:!0}))}getColumnIndex0(){return Array.from(this.el.parentElement?.children??[]).indexOf(this.el)}getSortKeySlug(){const e=(this.sortKey??this.label??"").trim();return e.length>0?e.replace(/ /g,"-").toLowerCase():`column-${this.getColumnIndex0()}`}renderLabelText(){return t("span",{class:"xpl-table-header-cell__text"},this.label,t("slot",null))}renderLabelContent(){if(this.sortable){const e=h(this.sortDirection),l="asc"===this.sortDirection||"desc"===this.sortDirection;return t("button",{type:"button",class:"xpl-table-header-cell__sort",onClick:this.onSortActivate},this.renderLabelText(),t("xpl-icon",{class:{"xpl-table-header-cell__sort-icon":!0,"xpl-table-header-cell__sort-icon--active":l,"xpl-table-header-cell__sort-icon--default":!l},icon:e,size:16}))}return this.renderLabelText()}render(){const e=this.getColumnIndex0()+1,s=`xpl-table-header-cell--align-${"checkbox"!==this.type&&"icon"!==this.type||"left"!==this.align?this.align:"center"}`,i="label"===this.type&&this.sortable?"asc"===this.sortDirection?"ascending":"desc"===this.sortDirection?"descending":"none":void 0;return t(l,{role:"columnheader","aria-colindex":e,class:{"xpl-table-header-cell":!0,[s]:!0,"xpl-table-header-cell--checkbox":"checkbox"===this.type,"xpl-table-header-cell--icon":"icon"===this.type,"xpl-table-header-cell--empty":"empty"===this.type,"xpl-table-header-cell--sortable":this.sortable&&"label"===this.type},"aria-checked":"checkbox"===this.type?this.indeterminate?"mixed":this.checked?"true":"false":void 0,"aria-sort":i},"empty"===this.type?null:(()=>{switch(this.type){case"label":return this.renderLabelContent();case"checkbox":return t("xpl-checkbox",{ariaLabel:this.checkboxAriaLabel??"Select all rows",checked:this.checked,indeterminate:this.indeterminate,onCheckboxChange:this.onHeaderInnerCheckboxChange});case"icon":return this.icon?t("xpl-icon",{icon:this.icon,size:20}):null;case"empty":return null;default:return""}})())}get el(){return s(this)}static get watchers(){return{columnWidth:[{watchColumnWidth:0}],width:[{watchWidth:0}]}}};export{n as xpl_table_cell,o as xpl_table_footer_cell,d as xpl_table_header_cell}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as i,h as t,H as e}from"./p-
|
|
1
|
+
import{r as s,c as i,h as t,H as e}from"./p-CJABLO_1.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:"c1588b70760e078e599ee7a0ffa9b63b65bfb7e4",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:"0ea89dcd0aa52724e2659b0a075299c0624eb682",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,c as t,h as a,H as s,g as i}from"./p-
|
|
1
|
+
import{r as e,c as t,h as a,H as s,g as i}from"./p-CJABLO_1.js";let l=0;const d=class{constructor(a){e(this,a),this.modalClosed=t(this,"modalClosed",7),this.dialogElement=null,this.titleId=`xpl-modal-title-${l+=1}`,this.isOpen=!1,this.size="medium",this.variant="default",this.handleDialogClose=()=>{this.isOpen=!1,this.modalClosed.emit()},this.handleNativeBackdropClick=e=>{const{dialogElement:t}=this;if(!t||e.target!==t)return;const a=t.getBoundingClientRect();(e.clientX<a.left||e.clientX>a.right||e.clientY<a.top||e.clientY>a.bottom)&&this.handleDialogClose()}}connectedCallback(){this.bindDialog()}disconnectedCallback(){this.clearCloseTimer(),this.unbindDialog()}componentDidLoad(){this.bindDialog()}updateModalState(){this.clearCloseTimer(),this.isOpen?this.openDialog():this.scheduleClose()}bindDialog(){const e=this.element.querySelector("dialog");e&&(this.dialogElement=e,e.removeEventListener("cancel",this.handleDialogClose),e.removeEventListener("click",this.handleNativeBackdropClick),e.addEventListener("cancel",this.handleDialogClose),e.addEventListener("click",this.handleNativeBackdropClick),this.updateModalState())}unbindDialog(){const e=this.dialogElement;e&&(e.open&&"function"==typeof e.close&&e.close(),e.removeEventListener("cancel",this.handleDialogClose),e.removeEventListener("click",this.handleNativeBackdropClick))}clearCloseTimer(){void 0!==this.closeTimerId&&(clearTimeout(this.closeTimerId),this.closeTimerId=void 0)}openDialog(){this.dialogElement&&!this.dialogElement.open&&this.dialogElement.showModal?.()}scheduleClose(){this.dialogElement&&"function"==typeof this.dialogElement.close&&(this.closeTimerId=setTimeout((()=>{this.closeTimerId=void 0,this.dialogElement?.close()}),250))}render(){return a(s,{key:"03f5eb41f33dd1ef6520c5e606f86af3676b1e72",class:"xpl-modal"},this.isOpen&&a("xpl-backdrop",{key:"50419511db07db7e51664f2c64167e8fa1130478"}),a("dialog",{key:"debe223a70a3e14a5a3937cdba9b18d8e1529497",class:`xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen?"is-open":"is-closed"}`,"aria-labelledby":this.titleId},a("div",{key:"7b4a1fda4219622c1e482bfeda808fb25a818df7",class:"xpl-modal__header"},a("div",{key:"4f2f095fd473c97954e7c3b06691133f796df77e",class:"xpl-modal__title"},a("xpl-button",{key:"9a017bf7cbc52bd6828fe647e06b03a4601f988e",type:"button",class:"xpl-modal__close-button","icon-only":!0,variant:"tertiary","aria-label":"Close modal",onClick:this.handleDialogClose},a("xpl-icon",{key:"070c9cb695ee0a85f7bd25e19ceb7cb85ba2d178",icon:"xmark"})),"warning"===this.variant&&a("xpl-icon",{key:"7478625b27763ff01034195312af4e59411174d6",size:20,icon:"triangle-warning",class:"xpl-modal__alert-icon"}),a("span",{key:"092491fb296dd9d4658e3bf4fd2425d0cad791ee",class:"xpl-modal__title-text",id:this.titleId},a("slot",{key:"d91c682a6f51a08e73281f27944bf83b73a026ee",name:"title"}))),a("div",{key:"9a0b0ff9427d66ac44fd65649460ce62cf7b1cc4",class:"xpl-modal__subtitle"},a("slot",{key:"41c6093d7cb31838e49b20d237a0c273df79dabf",name:"subtitle"}))),a("div",{key:"afab32dbee43906310935cb02437e00d2743f555",class:"xpl-modal__body"},a("slot",{key:"dbb0a6eb15e6c519f2eb40a0cfc8de2a68a37811",name:"body"})),a("div",{key:"2e3501f03e002a40737dd02a4a6cfd47c0f08205",class:"xpl-modal__footer"},a("slot",{key:"4b21250f2cc15be589c2622f8cdeda679f881733",name:"primary"}),a("slot",{key:"490d23bfd88b209545e326e1e236beea9f4289da",name:"secondary"}),a("slot",{key:"b8d1457361776e33ebcc3404db8ab6c901be1500",name:"tertiary"}))))}get element(){return i(this)}static get watchers(){return{isOpen:[{updateModalState:0}]}}};export{d as xpl_modal}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as e,h as i,H as t,g as a}from"./p-CJABLO_1.js";import{e as c,g as n,h as d}from"./p-C_PEOQWj.js";const h=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=c(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=n(this.el,"badge","xpl-side-nav-section"),e=d(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??c(this.el,this.childrenId),n=[i("span",{key:"12b61d9bed3a5aac2fa664fb6ac13893ae267c36",class:"xpl-side-nav-section__title"},this.heading??""),i("span",{key:"bfea669929c9f003a38cbef3d4e6254f14cea581",class:"xpl-side-nav-section__badge",hidden:!this.hasBadgeSlot},i("slot",{key:"7e401f516a7420f9a9c571e3c13d609fad6dcfc8",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:"ba9810b6d5d95cac88e6517d7bc24a040f51e5cc",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},n):i("div",{class:"xpl-side-nav-section__header"},n),i("div",{key:"9f5081f3d8de0f5e0ae83d2f7f96cd49b9cdf456",id:a,class:{"xpl-side-nav-section__children":!0,expanded:s},inert:!s||void 0},i("div",{key:"2593fe0517156c91b504d9ec3717321895a804c4",class:"xpl-side-nav-section__children-inner"},i("slot",{key:"5e2c9c978a128355e014c19612ed89886fe781ce"}))))}get el(){return a(this)}};export{h as xpl_side_nav_section}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as s}from"./p-
|
|
1
|
+
import{r as t,c as e,h as a,H as s}from"./p-CJABLO_1.js";const i=class{constructor(a){t(this,a),this.pageChange=e(this,"pageChange",7),this.rowsPerPageChange=e(this,"rowsPerPageChange",7),this.totalPages=1,this.withPageControl=!1,this.currentPage=1,this.rowsPerPageOptions="10,25,50,100,150",this.selectedRowsPerPage=10,this.rowsPerPageSelectRef=null,this.pageSelectRef=null,this.pageChoices=[],this.handleNextPage=()=>{this.currentPage<this.totalPages&&(this.currentPage+=1)},this.handlePrevPage=()=>{this.currentPage>1&&(this.currentPage-=1)},this.handlePageChange=t=>{const e=parseInt(t.detail,10);Number.isNaN(e)||(this.currentPage=e)},this.handleRowsChange=t=>{const e=parseInt(t.detail,10);Number.isNaN(e)||(this.selectedRowsPerPage=e)}}get rowsPerPageOptionsArray(){return this.rowsPerPageOptions.split(",").map(Number)}onPageUpdate(t){t<1?this.currentPage=1:t>this.totalPages&&(this.currentPage=this.totalPages),this.buildPageChoices(),this.pageChange.emit(this.currentPage)}onTotalPagesUpdate(){this.currentPage>this.totalPages?this.currentPage=this.totalPages:this.buildPageChoices()}onRowsPerPageUpdate(t){this.rowsPerPageChange.emit(t)}buildPageChoices(){this.pageChoices=Array.from({length:this.totalPages},((t,e)=>({label:`Page ${e+1}`,value:(e+1).toString(),isSelected:e+1===this.currentPage})))}componentWillLoad(){this.buildPageChoices()}componentDidLoad(){this.rowsPerPageSelectRef?.addEventListener("changeEvent",this.handleRowsChange),this.pageSelectRef?.addEventListener("changeEvent",this.handlePageChange)}disconnectedCallback(){this.rowsPerPageSelectRef?.removeEventListener("changeEvent",this.handleRowsChange),this.pageSelectRef?.removeEventListener("changeEvent",this.handlePageChange)}render(){const t=this.currentPage<=1,e=this.currentPage>=this.totalPages;return a(s,{key:"c1236f3a51a835bc7609f1871718535ad26c608c",class:{"xpl-pagination":!0,"xpl-pagination__with-page-control":this.withPageControl,"xpl-pagination__no-page-control":!this.withPageControl}},this.withPageControl&&a("div",{key:"b9a960512110e71ec4403a7440d9a56d2d25eb5a",class:"xpl-pagination__rows-per-page"},a("label",{key:"77d5c99067a80412b99fd7319a647fea67be9ae2",class:"xpl-pagination__rows-label"},"Rows per page:"),a("xpl-select",{key:"530bac1621b9901c52f895649f838ddd7919522f",class:"xpl-pagination__rows-per-page-select",dropdownFlipFallbackPlacements:["bottom-start"],dropdownPlacement:"top-start",choices:this.rowsPerPageOptionsArray.map((t=>({label:t.toString(),value:t.toString(),isSelected:t===this.selectedRowsPerPage}))),ref:t=>{this.rowsPerPageSelectRef=t??null}})),a("div",{key:"f610c71b562c73d1ef6ce81550ee9c5f5318b46a",class:"xpl-pagination__pager"},a("button",{key:"f507f26b1b3239c170c60568da2a068ffdc65def",class:"xpl-pagination__pager-button xpl-pagination__pager-button-prev",disabled:t,onClick:this.handlePrevPage,"aria-label":"Previous Page",tabindex:"0"},a("xpl-icon",{key:"c1079f632bb84a97bcb43ab7f39af19d2532e73c",icon:"arrow-left",size:20})),a("xpl-select",{key:"b50192f67d3e5b5c6723131d554d1dad41f8e2a3",class:"xpl-pagination__page-select",dropdownFlipFallbackPlacements:["bottom-start"],dropdownPlacement:"top-start",choices:this.pageChoices,"custom-display-value":!0,ref:t=>{this.pageSelectRef=t??null}},a("div",{key:"35cb95f79705633857df8ef3a48b479c85d6acdd",slot:"custom-display-value"},`${this.currentPage} of ${this.totalPages}`)),a("button",{key:"79a8b1f267fe675eb626d655a68ad5c72cd6c89f",class:"xpl-pagination__pager-button xpl-pagination__pager-button-next",disabled:e,onClick:this.handleNextPage,"aria-label":"Next Page",tabindex:"0"},a("xpl-icon",{key:"01ae55d805794de8fb9f332a37314e152fb1f5bb",icon:"arrow-right",size:20}))))}static get watchers(){return{currentPage:[{onPageUpdate:0}],totalPages:[{onTotalPagesUpdate:0}],selectedRowsPerPage:[{onRowsPerPageUpdate:0}]}}};export{i as xpl_pagination}
|