@xplortech/apollo-core 2.8.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.typings/apollo-components.html-data.json +20 -12
- package/build/style.css +2086 -1875
- package/dist/apollo-core/apollo-core.css +20 -18
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0e45f332.entry.js +1 -0
- package/dist/apollo-core/p-0f251f98.entry.js +1 -0
- package/dist/apollo-core/p-1691c4f3.entry.js +1 -0
- package/dist/apollo-core/p-172ac720.entry.js +1 -0
- package/dist/apollo-core/p-23870463.entry.js +1 -0
- package/dist/apollo-core/{p-36ba29da.entry.js → p-3b8639b7.entry.js} +1 -1
- package/dist/apollo-core/p-44a16751.entry.js +1 -0
- package/dist/apollo-core/p-4efecab2.entry.js +1 -0
- package/dist/apollo-core/p-5094dd97.entry.js +1 -0
- package/dist/apollo-core/p-70e7facc.entry.js +1 -0
- package/dist/apollo-core/{p-6a15f1e0.entry.js → p-728341d2.entry.js} +1 -1
- package/dist/apollo-core/p-910be81f.entry.js +1 -0
- package/dist/apollo-core/{p-b61d7952.entry.js → p-9adf3694.entry.js} +1 -1
- package/dist/apollo-core/p-CK3_k8jD.js +1 -0
- package/dist/apollo-core/p-CXkZUm1c.js +2 -0
- package/dist/apollo-core/p-c17b6351.entry.js +1 -0
- package/dist/apollo-core/p-e08b434c.entry.js +1 -0
- package/dist/apollo-core/{p-ca127ee8.entry.js → p-e9e7577f.entry.js} +1 -1
- package/dist/cjs/apollo-core.cjs.js +3 -3
- package/dist/cjs/{index-BQ97-AWw.js → index-BaXVr8ux.js} +36 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/v4-_2BfiRUa.js +52 -0
- 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_54.cjs.entry.js +709 -177
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-calendar.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +2 -2
- package/dist/cjs/xpl-large-card.cjs.entry.js +2 -2
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-toggle.cjs.entry.js +5 -5
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +5 -5
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +4 -4
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +2 -2
- package/dist/collection/components/xpl-banner/banner.stories.js +5 -0
- 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/button.stories.js +5 -0
- package/dist/collection/components/xpl-button/xpl-button.js +16 -1
- package/dist/collection/components/xpl-button-row/button-row.stories.js +1 -11
- 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 +4 -4
- 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 +208 -31
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
- package/dist/collection/components/xpl-input/input.stories.js +1 -1
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +11 -9
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +25 -6
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +1 -1
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input.js +3 -3
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
- package/dist/collection/components/xpl-list/xpl-list.js +2 -2
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +4 -1
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +26 -8
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/popover.stories.js +3 -7
- package/dist/collection/components/xpl-popover/xpl-popover.js +5 -5
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/radio.stories.js +19 -17
- 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 +16 -11
- package/dist/collection/components/xpl-side-nav/side-nav-constants.js +2 -0
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +301 -186
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +80 -14
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +284 -3
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +1 -1
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +16 -6
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table.js +13 -22
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +5 -5
- package/dist/collection/components/xpl-tag/xpl-tag.js +4 -4
- package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/tooltip-arrow.js +1 -1
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +6 -37
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +5 -5
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/components/index.d.ts +141 -12
- package/dist/components/index.js +1 -1
- package/dist/components/p-3qMYyqTe.js +1 -0
- package/dist/components/p-B1PBAEzg.js +1 -0
- package/dist/components/p-BG0-6Xek.js +1 -0
- package/dist/components/p-BT_Lq3Vd.js +1 -0
- package/dist/components/p-BWyAzrwu.js +1 -0
- package/dist/components/p-B_Wi--Ov.js +1 -0
- package/dist/components/p-Bd6JweBt.js +1 -0
- package/dist/components/p-Bn-27-xj.js +1 -0
- package/dist/components/{xpl-top-nav-item2.js → p-Bs6vq0C6.js} +1 -1
- package/dist/components/{xpl-input-file2.js → p-C9BO2vL-.js} +1 -1
- package/dist/components/p-CFW_w5Wj.js +1 -0
- package/dist/components/{floating-ui.dom.js → p-CFpsSZyr.js} +1 -1
- package/dist/components/p-CGNq3DyC.js +1 -0
- package/dist/components/p-CK3_k8jD.js +1 -0
- package/dist/components/p-CVqbA9op.js +1 -0
- package/dist/components/p-CtIUusUL.js +1 -0
- package/dist/components/p-CzwViN3U.js +1 -0
- package/dist/components/p-D97c0GjM.js +1 -0
- package/dist/components/p-DBWV65V-.js +1 -0
- package/dist/components/{xpl-tag2.js → p-DEl4Rvzs.js} +1 -1
- package/dist/components/p-DPTHmitJ.js +1 -0
- package/dist/components/{xpl-input-search2.js → p-DllC7F-H.js} +1 -1
- package/dist/components/p-Ds28UyUR.js +1 -0
- package/dist/components/p-U5dPMCXE.js +1 -0
- package/dist/components/p-hPUzON4O.js +1 -0
- package/dist/components/p-kPHfCq1d.js +1 -0
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-item.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-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-backdrop/readme.md +2 -0
- package/dist/docs/xpl-badge/readme.md +34 -0
- package/dist/docs/xpl-button/readme.md +2 -0
- package/dist/docs/xpl-button-row/readme.md +13 -0
- package/dist/docs/xpl-checkbox/readme.md +23 -1
- package/dist/docs/xpl-divider/readme.md +22 -4
- package/dist/docs/xpl-input/readme.md +51 -0
- package/dist/docs/xpl-input/xpl-input-date/readme.md +7 -0
- package/dist/docs/xpl-input/xpl-input-phone/readme.md +21 -0
- package/dist/docs/xpl-popover/readme.md +24 -0
- package/dist/docs/xpl-radio/readme.md +21 -4
- package/dist/docs/xpl-side-nav/readme.md +153 -5
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +165 -32
- package/dist/docs/xpl-table/readme.md +2 -0
- package/dist/docs/xpl-tooltip/readme.md +29 -1
- package/dist/esm/apollo-core.js +4 -4
- package/dist/esm/{index-C7bgJs6C.js → index-CXkZUm1c.js} +36 -9
- package/dist/esm/loader.js +3 -3
- package/dist/esm/v4-CK3_k8jD.js +50 -0
- package/dist/esm/xpl-accordion.entry.js +3 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_54.entry.js +709 -177
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-calendar.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +2 -2
- package/dist/esm/xpl-large-card.entry.js +2 -2
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-table-header-cell.entry.js +1 -1
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-toggle.entry.js +5 -5
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/types/components/xpl-banner/banner.stories.d.ts +2 -0
- package/dist/types/components/xpl-button/button.stories.d.ts +2 -0
- package/dist/types/components/xpl-button/xpl-button.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +16 -0
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +1 -0
- package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +4 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +11 -10
- package/dist/types/components/xpl-side-nav/side-nav-constants.d.ts +2 -0
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +53 -32
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +10 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +31 -0
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components.d.ts +223 -20
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/package.json +39 -38
- package/dist/apollo-core/p-0bf50890.entry.js +0 -1
- package/dist/apollo-core/p-1947e7a8.entry.js +0 -1
- package/dist/apollo-core/p-27928cb0.entry.js +0 -1
- package/dist/apollo-core/p-34438721.entry.js +0 -1
- package/dist/apollo-core/p-35c2f72d.entry.js +0 -1
- package/dist/apollo-core/p-368c81f1.entry.js +0 -1
- package/dist/apollo-core/p-406b27a8.entry.js +0 -1
- package/dist/apollo-core/p-5d63b4ce.entry.js +0 -1
- package/dist/apollo-core/p-689f1dae.entry.js +0 -1
- package/dist/apollo-core/p-8d692d05.entry.js +0 -1
- package/dist/apollo-core/p-C7bgJs6C.js +0 -2
- package/dist/apollo-core/p-Cqlsd6nf.js +0 -1
- package/dist/apollo-core/p-cd56a3d5.entry.js +0 -1
- package/dist/apollo-core/p-dc205893.entry.js +0 -1
- package/dist/cjs/v4-D4KzFnn8.js +0 -67
- package/dist/components/index3.js +0 -1
- package/dist/components/v4.js +0 -1
- package/dist/components/xpl-avatar2.js +0 -1
- package/dist/components/xpl-backdrop2.js +0 -1
- package/dist/components/xpl-badge2.js +0 -1
- package/dist/components/xpl-button2.js +0 -1
- package/dist/components/xpl-checkbox2.js +0 -1
- package/dist/components/xpl-divider2.js +0 -1
- package/dist/components/xpl-dropdown-group2.js +0 -1
- package/dist/components/xpl-dropdown-heading2.js +0 -1
- package/dist/components/xpl-dropdown-option2.js +0 -1
- package/dist/components/xpl-dropdown2.js +0 -1
- package/dist/components/xpl-icon2.js +0 -1
- package/dist/components/xpl-input-date2.js +0 -1
- package/dist/components/xpl-input2.js +0 -1
- package/dist/components/xpl-list-item2.js +0 -1
- package/dist/components/xpl-popover2.js +0 -1
- package/dist/components/xpl-radio2.js +0 -1
- package/dist/components/xpl-select2.js +0 -1
- package/dist/components/xpl-tooltip2.js +0 -1
- package/dist/esm/v4-Cqlsd6nf.js +0 -65
- /package/dist/components/{_commonjsHelpers.js → p-BFTU3MAI.js} +0 -0
- /package/dist/components/{index2.js → p-CH4yJ6Qx.js} +0 -0
- /package/dist/components/{tab-a11y-ids.js → p-Yj_QFaRn.js} +0 -0
- /package/dist/{index.cjs.js → index.cjs} +0 -0
- /package/dist/types/{Users/roc/Sites → home/runner/work/apollo}/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -0
- /package/loader/{cdn.js → cdn.cjs} +0 -0
- /package/loader/{index.cjs.js → index.cjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent, F as Fragment, f as forceUpdate } from './index-
|
|
2
|
-
import { v as v4 } from './v4-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent, F as Fragment, f as forceUpdate } from './index-CXkZUm1c.js';
|
|
2
|
+
import { v as v4 } from './v4-CK3_k8jD.js';
|
|
3
3
|
import { f as flatpickr } from './index-CH4yJ6Qx.js';
|
|
4
4
|
|
|
5
5
|
const LEGACY_STATUS_TO_BADGE = {
|
|
@@ -167,7 +167,7 @@ const Backdrop = class {
|
|
|
167
167
|
this.relative = false;
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (h(Host, { key: '
|
|
170
|
+
return (h(Host, { key: 'b2d74c6cd60e419b212078d16258a9cbd5716149', class: {
|
|
171
171
|
'xpl-backdrop': true,
|
|
172
172
|
'xpl-backdrop--fixed': !this.relative,
|
|
173
173
|
'xpl-backdrop--relative': this.relative,
|
|
@@ -204,7 +204,7 @@ const Badge = class {
|
|
|
204
204
|
[`xpl-badge--size-${this.size}`]: !!this.size,
|
|
205
205
|
[`xpl-badge--shape-${this.shape}`]: !this.dotOnly && !!this.shape,
|
|
206
206
|
};
|
|
207
|
-
return (h(Host, { key: '
|
|
207
|
+
return (h(Host, { key: 'c9595f3e4d3d9e60567818b393eed6523167ebca' }, h("div", { key: '725533575abf1cc96546f4c0beb9c7d02fca435e', class: className }, h("span", { key: 'd8f32af9c1b05b07d72ec9fa60f0039899a7863e', class: "xpl-badge__label" }, h("slot", { key: '848e2bb6d6755cca1ab7060023a81e115f6d4a48' })))));
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
|
|
@@ -269,13 +269,13 @@ const Banner = class {
|
|
|
269
269
|
const actionState = this.getActionButtonState();
|
|
270
270
|
const isHeadingPresent = !!((_c = this.heading) === null || _c === void 0 ? void 0 : _c.trim());
|
|
271
271
|
const isDescPresent = !!((_d = this.description) === null || _d === void 0 ? void 0 : _d.trim());
|
|
272
|
-
return (h(Host, { key: '
|
|
272
|
+
return (h(Host, { key: '9d4ced7103ad43590be34ae643e90e998d826d2c', class: {
|
|
273
273
|
'xpl-banner': true,
|
|
274
274
|
'xpl-banner--section': this.isSection,
|
|
275
275
|
[`xpl-banner--${this.appearance}`]: true,
|
|
276
276
|
'xpl-banner--truncate-desc': this.truncateDesc,
|
|
277
277
|
'xpl-banner--no-icon': this.isSection && !this.hasIcon,
|
|
278
|
-
}, role: "region", "aria-label": this.getAriaLabel() }, (!this.isSection || this.hasIcon) && (h("div", { key: '
|
|
278
|
+
}, role: "region", "aria-label": this.getAriaLabel() }, (!this.isSection || this.hasIcon) && (h("div", { key: 'd7c698d6da5711ef23d624b6cae03e9a0764b8c7', class: "xpl-banner__icon", "aria-hidden": "true" }, h("xpl-icon", { key: '01e3c3cd3e28a09943754972112f5ecef61c2e42', icon: this.getIcon(), size: 24 }))), h("div", { key: 'b95abb8d1609a97d869fbd7b88124a5e5e1b45df', class: "xpl-banner__body" }, isHeadingPresent && h("p", { key: 'a792cda8b66f549522d6288330005ff60e5cca3f', class: "xpl-banner__heading" }, this.heading), isDescPresent && (h("p", { key: '6529492113bd3f893ec0cfb8387dbd58701d99c4', class: "xpl-banner__description", title: this.truncateDesc ? this.description : undefined }, this.description))), (hasAction || hasSecondaryAction) && (h("div", { key: '14b20dc26f2cf98acd8baac75802dba11eaa84da', class: "xpl-banner__actions" }, hasAction && (h("xpl-button", { key: '44bf1a434eaa7d8a629beb64ffc9d097118d8c09', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.action.emit() }, this.actionText)), hasSecondaryAction && (h("xpl-button", { key: '958284fccbb12b89192d3211476bbaceb31ee16a', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.secondaryAction.emit() }, this.secondaryActionText)))), this.isDismissible && (h("button", { key: 'a59aaf2f9b48db433f699877a2259c8587f7aa9a', class: "xpl-banner__dismiss", type: "button", "aria-label": `Dismiss ${this.isSection ? 'section ' : ''}banner`, onClick: () => this.dismiss.emit() }, h("xpl-icon", { key: '3a374616b00743d3ee66e9f2fce50027e21ebb25', icon: "xmark", size: 24, "aria-hidden": "true" })))));
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
|
|
@@ -288,7 +288,7 @@ const BreadcrumbItem = class {
|
|
|
288
288
|
`;
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
|
-
return (h(Host, { key: '
|
|
291
|
+
return (h(Host, { key: '183fd6614da5188a84d5dc7ce9d9f2d5144e7f4b', class: "xpl-breadcrumb-item", role: "listitem" }, h("li", { key: '416621372ac59874f8d136ba3194f097f487eae2', role: "none" }, h("slot", { key: 'a0fcee52d63596c6e96a94ebd9e069f4275cf996' })), h("span", { key: 'b076324da264cfbf9efd97c92a73b12517dd6429', innerHTML: this.chevron })));
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
|
|
@@ -297,7 +297,7 @@ const Breadcrumbs = class {
|
|
|
297
297
|
registerInstance(this, hostRef);
|
|
298
298
|
}
|
|
299
299
|
render() {
|
|
300
|
-
return (h(Host, { key: '
|
|
300
|
+
return (h(Host, { key: 'dc04f3dbc02d0e52efd258ed653e236e3a3ef8c0' }, h("nav", { key: '87a8ae67ad49e7eff110dac3b98f818aa7bc7bbd', class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, h("ol", { key: '80122b0a41e6b9542e1560de325266a3f27ddc86', role: "list" }, h("slot", { key: '7aa415c279281b0566aaf0e6f943afc5ff698e8a' })))));
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
|
|
@@ -333,6 +333,12 @@ const Button = class {
|
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
+
handleDisabledClick(e) {
|
|
337
|
+
if (this.disabled) {
|
|
338
|
+
e.preventDefault();
|
|
339
|
+
e.stopImmediatePropagation();
|
|
340
|
+
}
|
|
341
|
+
}
|
|
336
342
|
renderIcon() {
|
|
337
343
|
if (this.icon) {
|
|
338
344
|
return h("xpl-icon", { icon: this.icon });
|
|
@@ -348,7 +354,7 @@ const Button = class {
|
|
|
348
354
|
}
|
|
349
355
|
render() {
|
|
350
356
|
var _a;
|
|
351
|
-
return (h(Host, { key: '
|
|
357
|
+
return (h(Host, { key: '2f4d6c6964aee895a81cff28401c3e48895954e8', class: {
|
|
352
358
|
'xpl-button': true,
|
|
353
359
|
[`xpl-button--${this.size}`]: true,
|
|
354
360
|
[`xpl-button--${this.variant}`]: true,
|
|
@@ -381,14 +387,14 @@ const Checkbox = class {
|
|
|
381
387
|
}
|
|
382
388
|
render() {
|
|
383
389
|
var _a;
|
|
384
|
-
return (h(Host, { key: '
|
|
390
|
+
return (h(Host, { key: 'a0eae3b6c390a83ddc1eacea1b0d98a08df9d614', class: {
|
|
385
391
|
'xpl-checkbox-radio-container': true,
|
|
386
392
|
styled: this.styled,
|
|
387
393
|
disabled: this.disabled,
|
|
388
|
-
} }, h("input", { key: '
|
|
394
|
+
} }, h("input", { key: 'bbe0a186b0184229ac1090bbb7d0354c01cb7b62', class: "xpl-checkbox", type: "checkbox", "aria-label": ((_a = this.ariaLabel) !== null && _a !== void 0 ? _a : '').trim() || undefined, checked: this.checked, "data-id": this.dataId, disabled: this.disabled, id: this.id, indeterminate: this.indeterminate, onChange: this.onChange, name: this.name, required: this.required, value: this.value }), h("label", { key: 'ab9374abf1c8578df2e1177755afd495f245dcb2', class: {
|
|
389
395
|
'xpl-label': true,
|
|
390
396
|
'xpl-label--disabled': this.disabled,
|
|
391
|
-
}, htmlFor: this.id }, h("slot", { key: '
|
|
397
|
+
}, htmlFor: this.id }, h("slot", { key: '28ef92d6f0cd46c50a797131fc3f0ea1dcaaa751' }), this.description && (h("small", { key: '87e25deaad3fd000b4dd313e07f7317365f8db07', class: {
|
|
392
398
|
'xpl-description': true,
|
|
393
399
|
'xpl-description--disabled': this.disabled,
|
|
394
400
|
} }, this.description)))));
|
|
@@ -434,7 +440,7 @@ const Choicelist = class {
|
|
|
434
440
|
this.onChoicesPropChange(this.choices);
|
|
435
441
|
}
|
|
436
442
|
render() {
|
|
437
|
-
return (h(Host, { key: '
|
|
443
|
+
return (h(Host, { key: 'b2a2b4630df394470daa56346215ad1193727557', class: "xpl-choicelist-container" }, this.heading !== undefined || this.description !== undefined ? (h("div", { class: "xpl-choicelist-heading" }, this.heading && h("h3", null, this.heading), this.description && h("p", null, this.description))) : null, this.choices && (h("ul", { key: 'd2329582e74d40946d23ae522b40130b1d780522', class: {
|
|
438
444
|
'xpl-choicelist': true,
|
|
439
445
|
'xpl-choicelist--styled': this.styled,
|
|
440
446
|
} }, this.choices.map((choice, i) => {
|
|
@@ -463,7 +469,7 @@ const ContentArea = class {
|
|
|
463
469
|
this.size = 'wide';
|
|
464
470
|
}
|
|
465
471
|
render() {
|
|
466
|
-
return (h(Host, { key: '
|
|
472
|
+
return (h(Host, { key: '9ae6e297af2b7cf5b40ae9848a1479d6e87b6a3e' }, h("main", { key: '2ca4359f4090262b7186689207b4725883e5378e', class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, h("div", { key: '6e4e1e2947eb4e7e8d5d9201b48074cd9cb102ed', class: "xpl-content-area" }, h("slot", { key: 'bf8de84eb947b3ce40fd5df93169f382d3a896cf' })))));
|
|
467
473
|
}
|
|
468
474
|
};
|
|
469
475
|
|
|
@@ -472,7 +478,7 @@ const Dashboard = class {
|
|
|
472
478
|
registerInstance(this, hostRef);
|
|
473
479
|
}
|
|
474
480
|
render() {
|
|
475
|
-
return (h(Host, { key: '
|
|
481
|
+
return (h(Host, { key: 'e3736f9e707de77addac539a4e7f0950133d0e08' }, h("dl", { key: 'de1add10d2f37c0a541d2f60f7156cf920eabd69', class: "xpl-dashboard" }, h("slot", { key: 'acd2becab0a555bf2599d0b2db4ebe0c9d744744' }))));
|
|
476
482
|
}
|
|
477
483
|
};
|
|
478
484
|
|
|
@@ -509,8 +515,8 @@ const DataCard = class {
|
|
|
509
515
|
: this.smallStatVariant === 'negative'
|
|
510
516
|
? 'arrow-down-right'
|
|
511
517
|
: 'dash';
|
|
512
|
-
return (h(Host, { key: '
|
|
513
|
-
(this.tooltipTextSmallStat ? (h("xpl-tooltip", { text: this.tooltipTextSmallStat }, h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat))) : (h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat)))), !!this.detail && h("span", { key: '
|
|
518
|
+
return (h(Host, { key: '6220a2a6ba1ac0744ba62e701c015964c05bdea9', role: "group", class: `xpl-data-card ${this.link ? 'xpl-data-card__link' : ''}`, tabindex: "0" }, h("dt", { key: '44da16abf81bc72a9c777f19d7c22ab998f55e94', class: headerClasses }, h("header", { key: '4ac3524629d31f3e74a245eef3e4ed6fc3a6832a' }, !!this.leadingIcon && this.icon && (h("span", { key: '53f7476c16eee3432e43a6bdebf744caeb9f9829', class: `xpl-data-card__icon--${this.variant}` }, h("xpl-icon", { key: 'af9ed04389ba00e4d0c79f978c1364a0530b1db7', icon: this.icon, "background-color": bgColorHue, size: 20 }))), h("slot", { key: '164396b94252374a1978cadf336ca74685fe9ba4', name: "title" }, this.name)), this.link && (h("span", { key: '31ce9874f295b1fef5705a28d81365d66a67a18b', class: "xpl-data-card__header-arrow" }, h("xpl-icon", { key: 'f5d169eeb150ed2eaa663ca1388e1075e61f6b7b', icon: "chevron-right", size: 16 })))), h("dd", { key: '59711740ae613b61ab5ae463cbfc2aaed500fdc9', class: "xpl-data-card__body" }, h("div", { key: '35571a65469ba1c413114a50233340057f5df200', class: "xpl-data-card__left" }, h("span", { key: 'b1409661fc43dea4126e423d5dc74fe4b0a5ef5f', class: "xpl-data-card-stat xpl-data-card-stat--long" }, this.stat), this.tooltipTextStat ? (h("xpl-tooltip", { text: this.tooltipTextStat }, h("div", { class: "xpl-data-card-stat xpl-data-card-stat--short" }, this.shortStat ? this.shortStat : this.stat))) : (h("div", { class: "xpl-data-card-stat xpl-data-card-stat--short" }, h("abbr", { title: this.stat }, this.shortStat ? this.shortStat : this.stat))), this.smallStatVariant ? (this.tooltipTextSmallStat ? (h("xpl-tooltip", { text: this.tooltipTextSmallStat }, h("div", { class: `xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}` }, h("xpl-icon", { icon: smallStatIcon, size: 16 }), this.smallStat))) : (h("div", { class: `xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}` }, h("xpl-icon", { icon: smallStatIcon, size: 16 }), this.smallStat))) : (this.smallStatIcon &&
|
|
519
|
+
(this.tooltipTextSmallStat ? (h("xpl-tooltip", { text: this.tooltipTextSmallStat }, h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat))) : (h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat)))), !!this.detail && h("span", { key: '634b386799ed06de06ca212005d20e6f79c54124', class: "xpl-data-card__detail" }, this.detail)), hasContentSlot && (h("div", { key: '9e88749b9c2efd65d22ec92881eaf316103ddb97', class: "xpl-data-card__right" }, h("slot", { key: '467388943d1c8a6bbfb334e6ab763dc7e92e59c8', name: contentSlot }))))));
|
|
514
520
|
}
|
|
515
521
|
get el() { return getElement(this); }
|
|
516
522
|
static get watchers() { return {
|
|
@@ -530,7 +536,7 @@ const Divider = class {
|
|
|
530
536
|
render() {
|
|
531
537
|
let className = 'xpl-divider';
|
|
532
538
|
className += ` xpl-divider--${this.tier}`;
|
|
533
|
-
return (h(Host, { key: '
|
|
539
|
+
return (h(Host, { key: '8b6563d7c6c85814d5dc0527246c90eea82c0dbd', class: className }, h("span", { key: '2935de22e9c70183386b5f6e1e18ff6437a42a41' }, h("slot", { key: '10e4e4c5c861647302217f78af0a369ad330c410' }))));
|
|
534
540
|
}
|
|
535
541
|
};
|
|
536
542
|
|
|
@@ -2251,10 +2257,27 @@ var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
|
|
2251
2257
|
}
|
|
2252
2258
|
return t;
|
|
2253
2259
|
};
|
|
2260
|
+
const VIRTUAL_LIST = {
|
|
2261
|
+
rowHeight: 45,
|
|
2262
|
+
overscan: 20,
|
|
2263
|
+
virtualizeFrom: 200,
|
|
2264
|
+
};
|
|
2265
|
+
function renderOption(option, virtualIndex) {
|
|
2266
|
+
const { groupName, options: opts, subtitle } = option, properties = __rest$1(option, ["groupName", "options", "subtitle"]);
|
|
2267
|
+
if (groupName) {
|
|
2268
|
+
return (h("xpl-dropdown-group", Object.assign({ groupName: groupName, options: opts }, properties)));
|
|
2269
|
+
}
|
|
2270
|
+
const isVirtual = virtualIndex !== undefined;
|
|
2271
|
+
return (h("xpl-dropdown-option", Object.assign({ class: isVirtual ? 'xpl-dropdown-option--virtual' : undefined, style: isVirtual
|
|
2272
|
+
? { transform: `translateY(${virtualIndex * VIRTUAL_LIST.rowHeight}px)` }
|
|
2273
|
+
: undefined, subtitle: subtitle }, properties)));
|
|
2274
|
+
}
|
|
2254
2275
|
const Dropdown = class {
|
|
2255
2276
|
constructor(hostRef) {
|
|
2256
2277
|
registerInstance(this, hostRef);
|
|
2257
2278
|
this.isOpenChange = createEvent(this, "isOpenChange", 7);
|
|
2279
|
+
this.virtualEnd = 0;
|
|
2280
|
+
this.virtualStart = 0;
|
|
2258
2281
|
this.isOpen = false;
|
|
2259
2282
|
this.closeOnSelect = true;
|
|
2260
2283
|
this.mode = 'single';
|
|
@@ -2262,6 +2285,9 @@ const Dropdown = class {
|
|
|
2262
2285
|
this.placement = 'bottom-start';
|
|
2263
2286
|
this.selectOnFocus = false;
|
|
2264
2287
|
this.cleanupAutoUpdate = null;
|
|
2288
|
+
this.virtualScrollRaf = null;
|
|
2289
|
+
this.openAlignmentRaf = null;
|
|
2290
|
+
this.previousOptionCount = 0;
|
|
2265
2291
|
this.updateDropdownPosition = async (triggerEl) => {
|
|
2266
2292
|
var _a, _b;
|
|
2267
2293
|
const { x, y, placement, middlewareData } = await computePosition(triggerEl, this.hostElement, {
|
|
@@ -2333,6 +2359,64 @@ const Dropdown = class {
|
|
|
2333
2359
|
this.isOpen = false;
|
|
2334
2360
|
}
|
|
2335
2361
|
};
|
|
2362
|
+
this.handleVirtualScroll = () => {
|
|
2363
|
+
if (this.virtualScrollRaf !== null)
|
|
2364
|
+
return;
|
|
2365
|
+
this.virtualScrollRaf = requestAnimationFrame(() => {
|
|
2366
|
+
this.virtualScrollRaf = null;
|
|
2367
|
+
this.updateVirtualRange();
|
|
2368
|
+
});
|
|
2369
|
+
};
|
|
2370
|
+
this.setListEl = (el) => {
|
|
2371
|
+
var _a, _b;
|
|
2372
|
+
if (el === this.listEl)
|
|
2373
|
+
return;
|
|
2374
|
+
this.listEl = el;
|
|
2375
|
+
(_a = this.listResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
2376
|
+
if (el && typeof ResizeObserver !== 'undefined') {
|
|
2377
|
+
(_b = this.listResizeObserver) !== null && _b !== void 0 ? _b : (this.listResizeObserver = new ResizeObserver(() => {
|
|
2378
|
+
if (this.isVirtualized)
|
|
2379
|
+
this.handleVirtualScroll();
|
|
2380
|
+
}));
|
|
2381
|
+
this.listResizeObserver.observe(el);
|
|
2382
|
+
}
|
|
2383
|
+
};
|
|
2384
|
+
this.scheduleOpenAlignment = () => {
|
|
2385
|
+
if (this.openAlignmentRaf !== null)
|
|
2386
|
+
return;
|
|
2387
|
+
this.openAlignmentRaf = requestAnimationFrame(() => {
|
|
2388
|
+
this.openAlignmentRaf = null;
|
|
2389
|
+
this.scrollSelectedIntoView();
|
|
2390
|
+
this.updateVirtualRange();
|
|
2391
|
+
});
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
onOptionsChanged() {
|
|
2395
|
+
var _a, _b, _c, _d;
|
|
2396
|
+
const total = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
2397
|
+
const listReplaced = total !== this.previousOptionCount;
|
|
2398
|
+
this.previousOptionCount = total;
|
|
2399
|
+
if (!this.isVirtualized) {
|
|
2400
|
+
this.virtualStart = 0;
|
|
2401
|
+
this.virtualEnd = 0;
|
|
2402
|
+
return;
|
|
2403
|
+
}
|
|
2404
|
+
const list = this.listEl;
|
|
2405
|
+
if (list) {
|
|
2406
|
+
const maxScroll = Math.max(0, total * VIRTUAL_LIST.rowHeight - list.clientHeight);
|
|
2407
|
+
if (list.scrollTop > maxScroll) {
|
|
2408
|
+
list.scrollTop = maxScroll;
|
|
2409
|
+
}
|
|
2410
|
+
if (this.isOpen && listReplaced) {
|
|
2411
|
+
const selectedIndex = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.findIndex((option) => option.isSelected)) !== null && _d !== void 0 ? _d : -1;
|
|
2412
|
+
const outOfWindow = selectedIndex >= 0 &&
|
|
2413
|
+
(selectedIndex < this.virtualStart || selectedIndex >= this.virtualEnd);
|
|
2414
|
+
if (outOfWindow) {
|
|
2415
|
+
this.scrollSelectedIntoView();
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
this.updateVirtualRange();
|
|
2336
2420
|
}
|
|
2337
2421
|
onAnchorToTriggerChanged() {
|
|
2338
2422
|
if (this.isOpen) {
|
|
@@ -2356,7 +2440,7 @@ const Dropdown = class {
|
|
|
2356
2440
|
}
|
|
2357
2441
|
onSelectedValuesChanged(newValues, initialRender = false) {
|
|
2358
2442
|
if (this.options && this.options.length > 0) {
|
|
2359
|
-
const flatOptions = this.options.
|
|
2443
|
+
const flatOptions = this.options.flatMap((curr) => curr.groupName && curr.options ? curr.options : [curr]);
|
|
2360
2444
|
flatOptions.forEach((option) => {
|
|
2361
2445
|
const optionValue = option.value || option.label;
|
|
2362
2446
|
if (this.mode === 'single') {
|
|
@@ -2381,9 +2465,13 @@ const Dropdown = class {
|
|
|
2381
2465
|
this.isOpenChange.emit(newValue);
|
|
2382
2466
|
if (newValue) {
|
|
2383
2467
|
this.startPositioning();
|
|
2468
|
+
this.alignOnOpen();
|
|
2384
2469
|
}
|
|
2385
2470
|
else {
|
|
2386
2471
|
this.stopPositioning();
|
|
2472
|
+
this.cancelVirtualScroll();
|
|
2473
|
+
this.virtualStart = 0;
|
|
2474
|
+
this.virtualEnd = 0;
|
|
2387
2475
|
}
|
|
2388
2476
|
}
|
|
2389
2477
|
connectedCallback() {
|
|
@@ -2391,44 +2479,68 @@ const Dropdown = class {
|
|
|
2391
2479
|
document.addEventListener('keydown', this.handleKeyDown);
|
|
2392
2480
|
}
|
|
2393
2481
|
disconnectedCallback() {
|
|
2482
|
+
var _a;
|
|
2394
2483
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
2395
2484
|
document.removeEventListener('keydown', this.handleKeyDown);
|
|
2396
2485
|
this.stopPositioning();
|
|
2486
|
+
this.cancelVirtualScroll();
|
|
2487
|
+
(_a = this.listResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
2397
2488
|
}
|
|
2398
2489
|
componentWillLoad() {
|
|
2490
|
+
var _a, _b;
|
|
2399
2491
|
this.handleSelect = this.handleSelect.bind(this);
|
|
2400
2492
|
if (this.selectedValues) {
|
|
2401
2493
|
this.onSelectedValuesChanged(this.selectedValues, true);
|
|
2402
2494
|
}
|
|
2495
|
+
this.previousOptionCount = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
2403
2496
|
}
|
|
2404
2497
|
componentDidLoad() {
|
|
2405
|
-
if (this.isOpen)
|
|
2498
|
+
if (this.isOpen) {
|
|
2406
2499
|
this.startPositioning();
|
|
2500
|
+
this.alignOnOpen();
|
|
2501
|
+
}
|
|
2407
2502
|
}
|
|
2408
2503
|
async handleSelect(e, { component }) {
|
|
2409
2504
|
const { hostElement, mode, options, update } = this;
|
|
2410
2505
|
const isSingle = mode === 'single';
|
|
2411
2506
|
const isMulti = mode === 'multi';
|
|
2412
2507
|
if (options) {
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
(
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2508
|
+
const targetValue = component.hostElement.value || component.hostElement.label;
|
|
2509
|
+
const hasGroups = options.some((option) => option.groupName);
|
|
2510
|
+
if (!hasGroups) {
|
|
2511
|
+
options.forEach((option) => {
|
|
2512
|
+
const isMatch = (option.value || option.label) === targetValue;
|
|
2513
|
+
if (isSingle) {
|
|
2514
|
+
option.isSelected = isMatch;
|
|
2515
|
+
if (isMatch)
|
|
2516
|
+
component.hostElement.isSelected = true;
|
|
2517
|
+
}
|
|
2518
|
+
else if (isMulti && isMatch) {
|
|
2519
|
+
option.isSelected = !option.isSelected;
|
|
2520
|
+
component.hostElement.isSelected = option.isSelected;
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2523
|
+
this.options = [...options];
|
|
2524
|
+
}
|
|
2525
|
+
else {
|
|
2526
|
+
const flatOptions = options.flatMap((curr) => curr.groupName && curr.options ? curr.options : [curr]);
|
|
2527
|
+
flatOptions.forEach((option) => {
|
|
2528
|
+
const isMatch = (option.value || option.label) === targetValue;
|
|
2529
|
+
if (isSingle) {
|
|
2530
|
+
option.isSelected = isMatch;
|
|
2531
|
+
component.hostElement.isSelected = true;
|
|
2532
|
+
}
|
|
2533
|
+
else if (isMulti && isMatch) {
|
|
2534
|
+
option.isSelected = !option.isSelected;
|
|
2535
|
+
component.hostElement.isSelected = option.isSelected;
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2538
|
+
const mapOptions = (option) => {
|
|
2539
|
+
option.options = option.groupName ? option.options.map(mapOptions) : undefined;
|
|
2540
|
+
return option;
|
|
2541
|
+
};
|
|
2542
|
+
this.options = options.map(mapOptions);
|
|
2543
|
+
}
|
|
2432
2544
|
}
|
|
2433
2545
|
else if (isSingle) {
|
|
2434
2546
|
const optionNodes = Array.from(hostElement.querySelectorAll('xpl-dropdown-option'));
|
|
@@ -2467,24 +2579,89 @@ const Dropdown = class {
|
|
|
2467
2579
|
.querySelector('.xpl-dropdown-list')) === null || _a === void 0 ? void 0 : _a.style.removeProperty('max-height');
|
|
2468
2580
|
this.hostElement.classList.remove('xpl-dropdown--above', 'xpl-dropdown--below');
|
|
2469
2581
|
}
|
|
2582
|
+
cancelVirtualScroll() {
|
|
2583
|
+
if (this.virtualScrollRaf !== null) {
|
|
2584
|
+
cancelAnimationFrame(this.virtualScrollRaf);
|
|
2585
|
+
this.virtualScrollRaf = null;
|
|
2586
|
+
}
|
|
2587
|
+
if (this.openAlignmentRaf !== null) {
|
|
2588
|
+
cancelAnimationFrame(this.openAlignmentRaf);
|
|
2589
|
+
this.openAlignmentRaf = null;
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
alignOnOpen() {
|
|
2593
|
+
this.scrollSelectedIntoView();
|
|
2594
|
+
this.updateVirtualRange();
|
|
2595
|
+
this.scheduleOpenAlignment();
|
|
2596
|
+
}
|
|
2597
|
+
scrollSelectedIntoView() {
|
|
2598
|
+
const { listEl: list, options } = this;
|
|
2599
|
+
if (!list || !(options === null || options === void 0 ? void 0 : options.length) || !this.isVirtualized)
|
|
2600
|
+
return;
|
|
2601
|
+
const selectedIndex = options.findIndex((option) => option.isSelected);
|
|
2602
|
+
if (selectedIndex < 0)
|
|
2603
|
+
return;
|
|
2604
|
+
const { rowHeight } = VIRTUAL_LIST;
|
|
2605
|
+
const centered = selectedIndex * rowHeight - (list.clientHeight - rowHeight) / 2;
|
|
2606
|
+
const maxScroll = Math.max(0, options.length * rowHeight - list.clientHeight);
|
|
2607
|
+
list.scrollTop = Math.max(0, Math.min(centered, maxScroll));
|
|
2608
|
+
}
|
|
2609
|
+
updateVirtualRange() {
|
|
2610
|
+
var _a, _b;
|
|
2611
|
+
const list = this.listEl;
|
|
2612
|
+
const total = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
2613
|
+
if (!list || !total)
|
|
2614
|
+
return;
|
|
2615
|
+
const { rowHeight, overscan } = VIRTUAL_LIST;
|
|
2616
|
+
const firstVisible = Math.floor(list.scrollTop / rowHeight);
|
|
2617
|
+
const visibleCount = Math.ceil(list.clientHeight / rowHeight) || 1;
|
|
2618
|
+
const start = Math.max(0, firstVisible - overscan);
|
|
2619
|
+
const end = Math.min(total, firstVisible + visibleCount + overscan);
|
|
2620
|
+
if (start !== this.virtualStart || end !== this.virtualEnd) {
|
|
2621
|
+
this.virtualStart = start;
|
|
2622
|
+
this.virtualEnd = end;
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
get isVirtualized() {
|
|
2626
|
+
const { options } = this;
|
|
2627
|
+
return (!!options &&
|
|
2628
|
+
options.length > VIRTUAL_LIST.virtualizeFrom &&
|
|
2629
|
+
options.every((option) => !option.groupName && !option.subtitle));
|
|
2630
|
+
}
|
|
2470
2631
|
render() {
|
|
2471
|
-
const { isOpen } = this;
|
|
2472
|
-
const
|
|
2473
|
-
const
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2632
|
+
const { isOpen, mode, options } = this;
|
|
2633
|
+
const hasOptions = !!(options && options.length);
|
|
2634
|
+
const shouldVirtualize = this.isVirtualized;
|
|
2635
|
+
let listContent;
|
|
2636
|
+
if (!hasOptions) {
|
|
2637
|
+
listContent = h("slot", { key: '859e13193ab2db2f10197aaf8b9699a177d480c6', name: "options" });
|
|
2638
|
+
}
|
|
2639
|
+
else if (shouldVirtualize) {
|
|
2640
|
+
const { rowHeight, overscan } = VIRTUAL_LIST;
|
|
2641
|
+
const total = options.length;
|
|
2642
|
+
const start = Math.min(this.virtualStart, total);
|
|
2643
|
+
const fallbackEnd = Math.min(total, Math.ceil(300 / rowHeight) + overscan * 2);
|
|
2644
|
+
const end = this.virtualEnd > start ? this.virtualEnd : fallbackEnd;
|
|
2645
|
+
listContent = (h("li", { key: '2e197eebf453591ec714ebbc60a6c8ba57646cb9', class: "xpl-dropdown__virtual-sizer", style: { height: `${total * rowHeight}px` } }, options.slice(start, end).map((option, i) => renderOption(option, start + i))));
|
|
2646
|
+
}
|
|
2647
|
+
else {
|
|
2648
|
+
listContent = options.map((option) => renderOption(option));
|
|
2649
|
+
}
|
|
2650
|
+
return (h(Host, { key: '0ffdb0e5d1dc13c83b692244f8e5e65f70c9c745', "aria-expanded": isOpen ? 'true' : 'false', class: {
|
|
2480
2651
|
'xpl-dropdown': true,
|
|
2481
2652
|
'xpl-dropdown--multi': mode === 'multi',
|
|
2482
2653
|
'xpl-dropdown--open': isOpen,
|
|
2483
2654
|
'xpl-dropdown--anchor-to-trigger': this.anchorToTrigger,
|
|
2484
|
-
|
|
2655
|
+
'xpl-dropdown--virtualized': shouldVirtualize,
|
|
2656
|
+
}, role: "listbox" }, h("slot", { key: 'ff204bc8c903a5d0a47b95521781df2467c9b4a7', name: "header" }), h("ul", { key: '2685e64254a9424f9da75787c3d18ff182e9f7a1', class: "xpl-dropdown-list", ref: (el) => {
|
|
2657
|
+
this.setListEl(el);
|
|
2658
|
+
}, onScroll: shouldVirtualize ? this.handleVirtualScroll : undefined }, listContent)));
|
|
2485
2659
|
}
|
|
2486
2660
|
get hostElement() { return getElement(this); }
|
|
2487
2661
|
static get watchers() { return {
|
|
2662
|
+
"options": [{
|
|
2663
|
+
"onOptionsChanged": 0
|
|
2664
|
+
}],
|
|
2488
2665
|
"anchorToTrigger": [{
|
|
2489
2666
|
"onAnchorToTriggerChanged": 0
|
|
2490
2667
|
}],
|
|
@@ -2530,7 +2707,7 @@ const DropdownGroup = class {
|
|
|
2530
2707
|
var { groupName: optsGroupName } = _a, properties = __rest(_a, ["groupName"]);
|
|
2531
2708
|
return optsGroupName ? (h("xpl-dropdown-group", Object.assign({ label: optsGroupName }, properties))) : (h("xpl-dropdown-option", Object.assign({}, properties)));
|
|
2532
2709
|
});
|
|
2533
|
-
return (h(Host, { key: '
|
|
2710
|
+
return (h(Host, { key: 'a33169d78e635bb53987322f02869ffc1f1a9908', role: "group", "aria-label": groupName }, h("li", { key: '58a1ff78bb923fec60eb51ef05a2026e03e3058b', class: "xpl-dropdown-list-item" }, h("xpl-dropdown-heading", { key: '6d8556e1d96cbfccd61038e5089e9669917b919e', label: groupName }), h("ul", { key: 'dd485e18b79920d9992e506fe83b36fcadb9e020', class: "xpl-dropdown-list" }, mappedOptions || h("slot", { key: '2eca2f6aa7c44aacdb67c3658029822b4ba1c0aa', name: "options" })))));
|
|
2534
2711
|
}
|
|
2535
2712
|
};
|
|
2536
2713
|
|
|
@@ -2539,7 +2716,7 @@ const DropdownHeading = class {
|
|
|
2539
2716
|
registerInstance(this, hostRef);
|
|
2540
2717
|
}
|
|
2541
2718
|
render() {
|
|
2542
|
-
return (h(Host, { key: '
|
|
2719
|
+
return (h(Host, { key: '9b05e54ae226524434ac8485c51e7fccd4e5fe9e', class: { 'xpl-dropdown-heading': true }, role: "presentation" }, h("span", { key: 'c5ada81fbed76834515cff75f1fd1ce87b2ccbe3' }, this.label || h("slot", { key: 'dfe135bf2499e858e75ab1e87793ae75eb0982c6', name: "heading" }))));
|
|
2543
2720
|
}
|
|
2544
2721
|
};
|
|
2545
2722
|
|
|
@@ -2596,11 +2773,11 @@ const DropdownOptionCpnt = class {
|
|
|
2596
2773
|
}
|
|
2597
2774
|
render() {
|
|
2598
2775
|
const { label, isSelected, isDisabled, value, subtitle, icon } = this;
|
|
2599
|
-
return (h(Host, { key: '
|
|
2776
|
+
return (h(Host, { key: '4ff7cc350e34059ad4df757b88112756c7f5b83e', class: {
|
|
2600
2777
|
'xpl-dropdown-option': true,
|
|
2601
2778
|
'xpl-dropdown-option--disabled': isDisabled,
|
|
2602
2779
|
'xpl-dropdown-option--selected': isSelected,
|
|
2603
|
-
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, h("li", { key: '
|
|
2780
|
+
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, h("li", { key: 'a014d09116703f5477a48cace194ba1beef602d5', class: "xpl-dropdown-list-item" }, icon && (h("xpl-icon", { key: 'af16591b7f1195351facaafa67c07368ce42d072', class: "xpl-dropdown-list-item__icon", icon: icon, size: 20 })), label || h("slot", { key: '72c0dbd67ab7930924cb1ef3ee9f0b4b53cf28a6', name: "option" }), subtitle && h("span", { key: '0893e031740ebdd8fc8ca7de2cb10d0b4d7c95ae', class: "xpl-dropdown-list-item__subtitle" }, subtitle))));
|
|
2604
2781
|
}
|
|
2605
2782
|
get hostElement() { return getElement(this); }
|
|
2606
2783
|
};
|
|
@@ -2675,7 +2852,7 @@ const HeaderAccordion = class {
|
|
|
2675
2852
|
this.applyBorderRadiusToLastRow();
|
|
2676
2853
|
}
|
|
2677
2854
|
render() {
|
|
2678
|
-
return (h(Host, { key: '
|
|
2855
|
+
return (h(Host, { key: 'ec426d05bbf030c8e782e7e74fda505bc8b9011a', class: "xpl-header-accordion" }, h("div", { key: 'b9da9063757f65ab682f542dd138f3f8f8dc471f', class: `header-accordion header-accordion--${this.expanded ? 'expanded' : 'collapsed'}` }, this.hasCheckbox && (h("xpl-checkbox", { key: '8b97b3e36f49549dcd18978628bfde93f75a084e', class: "xpl-header-accordion__parent-checkbox", checked: this.parentChecked, disabled: this.disabled, indeterminate: this.parentIndeterminate, onCheckboxChange: (event) => this.handleParentCheckboxChange(event.detail) })), h("button", { key: '7bdf4043d478bb1c04f44de14717ac3753236e1a', "aria-expanded": this.expanded, "aria-controls": this.contentId, class: "toggle-area", onClick: this.toggleAccordion, type: "button" }, h("slot", { key: '0a6197fd9b5dabff14f1da4137d8a99c7a4cbc93', name: "title" }), h("xpl-icon", { key: '5a74ba13feb88a46df377f255eb134d5b609be53', size: 16, icon: "chevron-down", class: this.expanded && 'rotate' }))), h("div", { key: '8d048d3480f0185ed34440c3e6d84befb3cf4dee', id: this.contentId, role: "region", class: !this.expanded ? 'content--hidden' : 'content--shown' }, h("slot", { key: 'fa374cd9feba5ef3eb72d50f027651dc84f80ec8', name: "content" }))));
|
|
2679
2856
|
}
|
|
2680
2857
|
get el() { return getElement(this); }
|
|
2681
2858
|
static get watchers() { return {
|
|
@@ -9891,6 +10068,41 @@ var data = {
|
|
|
9891
10068
|
path: "<g fill=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M27.14 11.57l-11.12 11.13-11.13-11.13\"></path></g>"
|
|
9892
10069
|
}
|
|
9893
10070
|
}
|
|
10071
|
+
},
|
|
10072
|
+
"chevron-expand-y": {
|
|
10073
|
+
name: "chevron-expand-y",
|
|
10074
|
+
keywords: [
|
|
10075
|
+
"chevron-expand-y",
|
|
10076
|
+
"chevron",
|
|
10077
|
+
"arrow",
|
|
10078
|
+
"expand",
|
|
10079
|
+
"vertical",
|
|
10080
|
+
"resize",
|
|
10081
|
+
"maximize",
|
|
10082
|
+
"unfold",
|
|
10083
|
+
"select",
|
|
10084
|
+
"dropdown",
|
|
10085
|
+
"nav",
|
|
10086
|
+
"more"
|
|
10087
|
+
],
|
|
10088
|
+
heights: {
|
|
10089
|
+
"16": {
|
|
10090
|
+
width: 16,
|
|
10091
|
+
path: "<g fill=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.4\" d=\"M4.69 5.36l3.35-3.35 3.35 3.35\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.4\" d=\"M11.39 10.72l-3.35 3.35-3.35-3.35\"></path></g>"
|
|
10092
|
+
},
|
|
10093
|
+
"20": {
|
|
10094
|
+
width: 20,
|
|
10095
|
+
path: "<g fill=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.6\" d=\"M5.81 6.64l4.15-4.15 4.15 4.15\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.6\" d=\"M14.11 13.28l-4.15 4.15-4.15-4.15\"></path></g>"
|
|
10096
|
+
},
|
|
10097
|
+
"24": {
|
|
10098
|
+
width: 24,
|
|
10099
|
+
path: "<g fill=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.75\" d=\"M7 8l5-5 5 5\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.75\" d=\"M17 16l-5 5-5-5\"></path></g>"
|
|
10100
|
+
},
|
|
10101
|
+
"32": {
|
|
10102
|
+
width: 32,
|
|
10103
|
+
path: "<g fill=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9.31 10.64l6.65-6.65 6.65 6.65\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M22.61 21.28l-6.65 6.65-6.65-6.65\"></path></g>"
|
|
10104
|
+
}
|
|
10105
|
+
}
|
|
9894
10106
|
},
|
|
9895
10107
|
"chevron-left": {
|
|
9896
10108
|
name: "chevron-left",
|
|
@@ -11631,6 +11843,39 @@ var data = {
|
|
|
11631
11843
|
path: "<g fill=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10.23 12.02h3.56\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10.23 17.36h11.57\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10.23 22.7h11.57\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4.9 25.37v-18.7a3.56 3.56 0 0 1 3.56-3.56h9.94c0.47 0 0.93 0.19 1.26 0.53l6.96 6.96a1.78 1.78 0 0 1 0.52 1.26v13.5a3.56 3.56 0 0 1-3.56 3.56h-15.13a3.56 3.56 0 0 1-3.56-3.56z\"></path><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M26.98 11.13h-6.07a1.78 1.78 0 0 1-1.78-1.79v-6.04\"></path></g>"
|
|
11632
11844
|
}
|
|
11633
11845
|
}
|
|
11846
|
+
},
|
|
11847
|
+
"file-pin": {
|
|
11848
|
+
name: "file-pin",
|
|
11849
|
+
keywords: [
|
|
11850
|
+
"file",
|
|
11851
|
+
"pin",
|
|
11852
|
+
"pinned",
|
|
11853
|
+
"note",
|
|
11854
|
+
"notes",
|
|
11855
|
+
"thumbtack",
|
|
11856
|
+
"tack",
|
|
11857
|
+
"document",
|
|
11858
|
+
"saved",
|
|
11859
|
+
"save"
|
|
11860
|
+
],
|
|
11861
|
+
heights: {
|
|
11862
|
+
"16": {
|
|
11863
|
+
width: 16,
|
|
11864
|
+
path: "<g fill=\"none\"><g><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12.2803 9.19531C12.9006 8.575 13.9068 8.57527 14.5273 9.19531L15.5352 10.2031C16.1555 10.8236 16.1556 11.8298 15.5352 12.4502L14.3838 13.5996C14.3722 13.7163 14.3565 13.8412 14.3311 13.9717L14.2734 14.2246C14.0967 14.897 13.7807 15.3871 13.5508 15.6836L13.5479 15.6807C13.53 15.7037 13.5143 15.7289 13.4932 15.75C13.2198 16.0233 12.7763 16.0233 12.5029 15.75L11.2363 14.4834L10.2529 15.4678C9.97963 15.7411 9.53608 15.7409 9.2627 15.4678C8.98969 15.1944 8.98962 14.7518 9.2627 14.4785L10.2471 13.4941L8.98047 12.2275C8.83875 12.0855 8.76474 11.8888 8.77734 11.6885C8.79015 11.4882 8.88829 11.3027 9.04688 11.1797C9.34336 10.9498 9.83347 10.6338 10.5059 10.457C10.7294 10.3982 10.9393 10.3636 11.1289 10.3447L12.2803 9.19531ZM13.5371 10.1846C13.4635 10.1116 13.3441 10.1115 13.2705 10.1846L11.9346 11.5205C11.808 11.647 11.6379 11.7206 11.459 11.7256C11.3329 11.729 11.1861 11.7413 11.0264 11.7725L10.8613 11.8105C10.7767 11.8328 10.6961 11.8586 10.6201 11.8867L12.8418 14.1084C12.8698 14.0326 12.8977 13.9526 12.9199 13.8682C12.979 13.6437 13.0003 13.4393 13.0049 13.2715L13.0205 13.1396C13.0491 13.0103 13.115 12.8909 13.21 12.7959L14.5449 11.46C14.6186 11.3863 14.6185 11.2671 14.5449 11.1934L13.5371 10.1846Z\"></path><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.1875 0.855469C9.6086 0.855482 10.0121 1.02293 10.3105 1.32129L13.7881 4.79883C13.9241 4.93412 14.0311 5.09211 14.1094 5.2627C14.1139 5.27248 14.119 5.28197 14.123 5.29199C14.2091 5.49011 14.2559 5.70482 14.2559 5.92383V7.22461C14.2558 7.61108 13.9421 7.92469 13.5557 7.9248C13.1691 7.9248 12.8555 7.61115 12.8555 7.22461V6.25586H10.4443C9.56727 6.25574 8.85564 5.54404 8.85547 4.66699V2.25586H4.22168C3.62663 2.25609 3.14477 2.73839 3.14453 3.33301V12.667C3.14471 13.2617 3.6266 13.7439 4.22168 13.7441H7.12402C7.51055 13.7441 7.8241 14.0578 7.82422 14.4443C7.82415 14.8309 7.51058 15.1445 7.12402 15.1445H4.22168C2.85294 15.1443 1.74432 14.0344 1.74414 12.667V3.33301C1.74438 1.96565 2.85297 0.855703 4.22168 0.855469H9.1875ZM10.2559 4.66699C10.256 4.77085 10.3405 4.85535 10.4443 4.85547H11.8652L10.2559 3.24609V4.66699Z\"></path><path fill=\"currentColor\" d=\"M9.11133 7.9668C9.49793 7.9668 9.81152 8.28039 9.81152 8.66699C9.81136 9.05345 9.49783 9.36719 9.11133 9.36719H5.11133C4.72483 9.36719 4.4113 9.05345 4.41113 8.66699C4.41113 8.28039 4.72473 7.9668 5.11133 7.9668H9.11133Z\"></path><path fill=\"currentColor\" d=\"M6.88867 5.2998C7.27527 5.2998 7.58887 5.6134 7.58887 6C7.58887 6.3866 7.27527 6.7002 6.88867 6.7002H5.11133C4.72473 6.7002 4.41113 6.3866 4.41113 6C4.41113 5.6134 4.72473 5.2998 5.11133 5.2998H6.88867Z\"></path></g></g>"
|
|
11865
|
+
},
|
|
11866
|
+
"20": {
|
|
11867
|
+
width: 20,
|
|
11868
|
+
path: "<g fill=\"none\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M15.4043 11.5479C16.1506 10.8015 17.3611 10.8015 18.1074 11.5479L19.3672 12.8076C20.1131 13.554 20.1133 14.7646 19.3672 15.5107L17.9092 16.9668C17.895 17.118 17.875 17.2806 17.8418 17.4512L17.7705 17.7627C17.5641 18.5476 17.2012 19.1293 16.9229 19.499C16.8921 19.5472 16.8565 19.5937 16.8145 19.6357C16.5022 19.9479 15.995 19.9476 15.6826 19.6357L14.0459 17.998L12.7627 19.2822C12.4504 19.5942 11.9442 19.5942 11.6318 19.2822C11.3195 18.9698 11.3195 18.4628 11.6318 18.1504L12.9141 16.8672L11.2803 15.2324C11.118 15.0701 11.0326 14.8453 11.0469 14.6162C11.0614 14.3872 11.1742 14.1758 11.3555 14.0352C11.7209 13.7518 12.3243 13.3622 13.1523 13.1445L13.4629 13.0732C13.6331 13.04 13.7952 13.0191 13.9463 13.0049L15.4043 11.5479ZM16.9756 12.6787C16.8542 12.5576 16.6576 12.5577 16.5361 12.6787L14.8662 14.3486C14.7216 14.4932 14.5266 14.5774 14.3223 14.583C14.1073 14.5889 13.8467 14.6159 13.5596 14.6914C13.4099 14.7308 13.2699 14.7794 13.1416 14.832L14.6025 16.293C14.6057 16.296 14.6092 16.2987 14.6123 16.3018C14.6134 16.3029 14.6141 16.3046 14.6152 16.3057L16.082 17.7715C16.1345 17.6435 16.1834 17.5048 16.2227 17.3555C16.2982 17.0683 16.3262 16.8064 16.332 16.5918C16.3377 16.3875 16.4219 16.1934 16.5664 16.0488L18.2354 14.3789C18.3567 14.2576 18.3564 14.061 18.2354 13.9395L16.9756 12.6787Z\"></path><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M11.4844 1.14453C11.9909 1.14453 12.477 1.34518 12.8359 1.7041L17.1836 6.05176L17.3105 6.19238C17.4177 6.32275 17.5057 6.46633 17.5742 6.61816C17.5798 6.63068 17.5849 6.64341 17.5898 6.65625C17.6899 6.89119 17.7441 7.14505 17.7441 7.4043V9.03125C17.744 9.47293 17.3861 9.83105 16.9443 9.83105C16.5027 9.83094 16.1447 9.47286 16.1445 9.03125V7.74414H13.0557C12.0005 7.74414 11.1445 6.88817 11.1445 5.83301V2.74414H5.27832C4.49267 2.74414 3.85553 3.38195 3.85547 4.16699V15.833C3.85547 16.6181 4.49263 17.2559 5.27832 17.2559H8.90527C9.34706 17.2559 9.70501 17.6139 9.70508 18.0557C9.70496 18.4974 9.34703 18.8555 8.90527 18.8555H5.27832C3.60845 18.8555 2.25586 17.5012 2.25586 15.833V4.16699C2.25593 2.49881 3.60849 1.14453 5.27832 1.14453H11.4844ZM12.7441 5.83301C12.7441 6.00451 12.8842 6.14453 13.0557 6.14453H15.0137L12.7441 3.875V5.83301Z\"></path><path fill=\"currentColor\" d=\"M11.3887 10.0332C11.8304 10.0332 12.1883 10.3913 12.1885 10.833C12.1885 11.2748 11.8305 11.6328 11.3887 11.6328H6.38867C5.94684 11.6328 5.58887 11.2748 5.58887 10.833C5.58903 10.3913 5.94695 10.0332 6.38867 10.0332H11.3887Z\"></path><path fill=\"currentColor\" d=\"M8.61133 6.7002C9.05296 6.70043 9.41113 7.05832 9.41113 7.5C9.41113 7.94168 9.05296 8.29957 8.61133 8.2998H6.38867C5.94684 8.2998 5.58887 7.94183 5.58887 7.5C5.58887 7.05817 5.94684 6.7002 6.38867 6.7002H8.61133Z\"></path></g>"
|
|
11869
|
+
},
|
|
11870
|
+
"24": {
|
|
11871
|
+
width: 24,
|
|
11872
|
+
path: "<g fill=\"none\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M18.5459 13.917C19.4082 13.0551 20.8057 13.055 21.668 13.917L23.1807 15.4297C24.0422 16.292 24.0424 17.6896 23.1807 18.5518L21.4092 20.3223C21.3832 20.6146 21.3344 20.9425 21.2422 21.293C20.9958 22.2301 20.5622 22.9233 20.2314 23.3604C20.1989 23.4103 20.161 23.4581 20.1172 23.502C19.7756 23.8435 19.2216 23.8432 18.8799 23.502L16.8555 21.4775L15.2559 23.0781C14.9141 23.4196 14.3592 23.4198 14.0176 23.0781C13.6764 22.7365 13.6762 22.1824 14.0176 21.8408L15.6172 20.2402L13.5957 18.2188C13.4183 18.0412 13.3261 17.7954 13.3418 17.5449C13.3576 17.2943 13.4803 17.0621 13.6787 16.9082C14.1112 16.5728 14.8249 16.1129 15.8037 15.8555L16.1719 15.7705C16.3852 15.7289 16.5876 15.7032 16.7754 15.6865L18.5459 13.917ZM20.4307 15.1543C20.2518 14.9757 19.9621 14.9758 19.7832 15.1543L17.7793 17.1582C17.6211 17.3163 17.4081 17.4079 17.1846 17.4141C16.9211 17.4212 16.6021 17.4552 16.25 17.5479C16.0204 17.6082 15.8105 17.6854 15.6221 17.7695L19.3271 21.4746C19.4111 21.2864 19.4895 21.078 19.5498 20.8486C19.6424 20.4968 19.6764 20.1759 19.6836 19.9131L19.6895 19.8291C19.7133 19.6366 19.8012 19.4567 19.9395 19.3184L21.9424 17.3145C22.1212 17.1356 22.1211 16.846 21.9424 16.667L20.4307 15.1543Z\"></path><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M13.7812 1.45801C14.3663 1.45801 14.928 1.69001 15.3428 2.10449L20.5596 7.32227C20.7348 7.49666 20.8761 7.69864 20.9824 7.91602C20.997 7.94279 21.0097 7.97065 21.0215 7.99902C21.1431 8.27641 21.2089 8.57742 21.209 8.88477V10.8369C21.209 11.3201 20.8171 11.7117 20.334 11.7119C19.8507 11.7119 19.459 11.3202 19.459 10.8369V9.20898H15.666C14.4471 9.20881 13.4582 8.21894 13.458 7V3.20801H6.33398C5.34429 3.20801 4.54216 4.0111 4.54199 5V19C4.54217 19.9889 5.34429 20.791 6.33398 20.791H10.6865C11.1696 20.791 11.5612 21.1831 11.5615 21.666C11.5615 22.1493 11.1698 22.541 10.6865 22.541H6.33398C4.37723 22.541 2.79217 20.9548 2.79199 19V5C2.79216 3.04518 4.37722 1.45801 6.33398 1.45801H13.7812ZM15.208 7C15.2082 7.25245 15.4136 7.45881 15.666 7.45898H18.2217L15.208 4.44531V7Z\"></path><path fill=\"currentColor\" d=\"M13.667 12.125C14.1502 12.125 14.542 12.5168 14.542 13C14.542 13.4832 14.1502 13.875 13.667 13.875H7.66699C7.18374 13.875 6.79199 13.4832 6.79199 13C6.79199 12.5168 7.18374 12.125 7.66699 12.125H13.667Z\"></path><path fill=\"currentColor\" d=\"M10.334 8.125C10.8171 8.12518 11.209 8.51686 11.209 9C11.209 9.48314 10.8171 9.87482 10.334 9.875H7.66699C7.18374 9.875 6.79199 9.48325 6.79199 9C6.79199 8.51675 7.18374 8.125 7.66699 8.125H10.334Z\"></path></g>"
|
|
11873
|
+
},
|
|
11874
|
+
"32": {
|
|
11875
|
+
width: 32,
|
|
11876
|
+
path: "<g fill=\"none\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M24.8438 18.6738C25.9285 17.5891 27.6877 17.5891 28.7725 18.6738L30.7881 20.6895C31.8728 21.7742 31.8728 23.5334 30.7881 24.6182L28.3867 27.0186C28.3547 27.4161 28.2882 27.8657 28.1611 28.3486C27.8253 29.6262 27.2243 30.5581 26.7861 31.123C26.7608 31.1556 26.734 31.1878 26.7041 31.2178C26.3136 31.6082 25.6796 31.6082 25.2891 31.2178L22.4736 28.4023L20.2227 30.6533C19.8322 31.0437 19.1991 31.0436 18.8086 30.6533C18.4182 30.2628 18.4182 29.6298 18.8086 29.2393L21.0596 26.9883L18.2451 24.1738C18.0422 23.9709 17.9361 23.6898 17.9541 23.4033C17.9722 23.117 18.1122 22.8517 18.3389 22.6758C18.9038 22.2376 19.8358 21.6367 21.1133 21.3008C21.5959 21.1737 22.0449 21.1063 22.4424 21.0742L24.8438 18.6738ZM27.3584 20.0879C27.0548 19.7843 26.5625 19.7845 26.2588 20.0879L23.5869 22.7588C23.406 22.9396 23.1629 23.0448 22.9072 23.0518C22.5454 23.0616 22.107 23.108 21.623 23.2354C21.2161 23.3423 20.8552 23.4871 20.543 23.6426L25.8184 28.918C25.9738 28.6058 26.1196 28.2457 26.2266 27.8389C26.3539 27.355 26.4003 26.9157 26.4102 26.5547L26.417 26.459C26.4442 26.2388 26.545 26.0332 26.7031 25.875L29.374 23.2041C29.6776 22.9005 29.6775 22.4082 29.374 22.1045L27.3584 20.0879Z\"></path><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M18.375 2.11133C19.1111 2.11136 19.8171 2.40312 20.3389 2.9248L27.2949 9.88184L27.4805 10.0859C27.8876 10.5813 28.1113 11.2046 28.1113 11.8477V14.4502C28.111 15.0021 27.6632 15.45 27.1113 15.4502C26.5592 15.4502 26.1116 15.0022 26.1113 14.4502V12.1104H20.8887C19.3553 12.1101 18.1114 10.8664 18.1113 9.33301V4.11133H8.44434C7.0325 4.11133 5.88867 5.25628 5.88867 6.66699V25.334C5.88904 26.7444 7.03273 27.8887 8.44434 27.8887H14.248C14.8002 27.8887 15.2478 28.3366 15.248 28.8887C15.2479 29.4408 14.8002 29.8887 14.248 29.8887H8.44434C5.92751 29.8887 3.88904 27.8483 3.88867 25.334V6.66699C3.88867 4.15237 5.92728 2.11133 8.44434 2.11133H18.375ZM20.1113 9.33301C20.1114 9.76185 20.4599 10.1101 20.8887 10.1104H24.6953L20.1113 5.52539V9.33301Z\"></path><path fill=\"currentColor\" d=\"M18.2227 16.333C18.7748 16.333 19.2225 16.7809 19.2227 17.333C19.2227 17.8853 18.7749 18.333 18.2227 18.333H10.2227C9.67037 18.333 9.22266 17.8853 9.22266 17.333C9.22282 16.7809 9.67047 16.333 10.2227 16.333H18.2227Z\"></path><path fill=\"currentColor\" d=\"M13.7783 11C14.3306 11.0001 14.7783 11.4478 14.7783 12C14.7783 12.5522 14.3306 12.9999 13.7783 13H10.2227C9.67037 13 9.22266 12.5523 9.22266 12C9.22266 11.4477 9.67037 11 10.2227 11H13.7783Z\"></path></g>"
|
|
11877
|
+
}
|
|
11878
|
+
}
|
|
11634
11879
|
},
|
|
11635
11880
|
"file-plus": {
|
|
11636
11881
|
name: "file-plus",
|
|
@@ -16606,10 +16851,10 @@ const Icon = class {
|
|
|
16606
16851
|
let wrapperClasses = 'xpl-icon__wrapper ';
|
|
16607
16852
|
if (this.backgroundColor)
|
|
16608
16853
|
wrapperClasses += `xpl-icon__wrapper--with-background xpl-icon__wrapper--with-background--${this.backgroundColor}`;
|
|
16609
|
-
return (h(Host, { key: '
|
|
16854
|
+
return (h(Host, { key: 'cf84ae3e7ff4ae0b4ae8e1b1cf3b9331bc887c6c' }, h("figure", { key: '74e2727f9bf4ff8d710eff9b99632ffa669b84ae', class: wrapperClasses }, h("span", { key: '2d8be2bd318bd27e0bc4299cfe518668e424fffe', "aria-label": this.icon, role: "img", class: "xpl-icon", style: {
|
|
16610
16855
|
width: `${options.width}px`,
|
|
16611
16856
|
height: `${options.height}px`,
|
|
16612
|
-
}, innerHTML: (_a = apolloIcons.getIcon(this.icon)) === null || _a === void 0 ? void 0 : _a.toSVG(options) }), h("figcaption", { key: '
|
|
16857
|
+
}, innerHTML: (_a = apolloIcons.getIcon(this.icon)) === null || _a === void 0 ? void 0 : _a.toSVG(options) }), h("figcaption", { key: '3c7a383da59ac0766500273799b203a28c7c7ff3' }, this.icon, " icon"))));
|
|
16613
16858
|
}
|
|
16614
16859
|
};
|
|
16615
16860
|
Icon.style = xplIconCss();
|
|
@@ -16735,7 +16980,7 @@ const Input = class {
|
|
|
16735
16980
|
case 'time':
|
|
16736
16981
|
return (h("xpl-input-time", { inputId: this._id, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, max: this.max, min: this.min, step: this.step, mode: this.mode, timeFormat: this.timeFormat, allowCustomOption: this.allowCustomOption, onValueChange: this.handleChildValueChange }));
|
|
16737
16982
|
case 'phone':
|
|
16738
|
-
return (h("xpl-input-phone", { inputId: this._id, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, defaultCountry: this.defaultCountry, preferredCountries: this.preferredCountries, isInternational: this.isInternational, onValueChange: this.handleChildValueChange }));
|
|
16983
|
+
return (h("xpl-input-phone", { inputId: this._id, disabled: this.disabled, error: !!this.error, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, defaultCountry: this.defaultCountry, preferredCountries: this.preferredCountries, isInternational: this.isInternational, onValueChange: this.handleChildValueChange }));
|
|
16739
16984
|
case 'search': {
|
|
16740
16985
|
const hasVisibleLabel = Boolean(((_a = this.label) !== null && _a !== void 0 ? _a : '').trim());
|
|
16741
16986
|
const hasErrorMessage = Boolean(this.error && this.error.length > 0);
|
|
@@ -16767,13 +17012,13 @@ const Input = class {
|
|
|
16767
17012
|
this.characterCount > this.maxCharacterCount) {
|
|
16768
17013
|
hasError = true;
|
|
16769
17014
|
}
|
|
16770
|
-
return (h(Host, { key: '
|
|
17015
|
+
return (h(Host, { key: '6a032f3ec4c23c85bb9f34606beff282ce35d762', class: {
|
|
16771
17016
|
'xpl-input': true,
|
|
16772
17017
|
'xpl-input--disabled': this.disabled,
|
|
16773
17018
|
'xpl-input--error': hasError,
|
|
16774
17019
|
'xpl-input--readonly': this.readonly,
|
|
16775
17020
|
[`xpl-input--${this.type}`]: true,
|
|
16776
|
-
} }, this.label && (h("label", { key: '
|
|
17021
|
+
} }, this.label && (h("label", { key: 'd4462b1d843acafd2f8762610ba77c638c072407', class: "xpl-input-label", htmlFor: this._id }, this.label, this.description && h("small", { key: '0f351ea2720977c299b4f166d12a6315ea6ee54b' }, this.description))), this.renderInput(), ((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("label", { key: '05603b97ba86ee23e52a726f31b8c51630e5e703', class: "xpl-input-error", htmlFor: this._id, id: `${this._id}-error` }, h("xpl-icon", { key: 'd411dee63f5754c6f56992412d9f671979e8bdc9', icon: "alert-circle", size: 16 }), h("span", { key: '39d3b5c9c853bc8986e4854542056d018c649a8a' }, this.error)))));
|
|
16777
17022
|
}
|
|
16778
17023
|
get el() { return getElement(this); }
|
|
16779
17024
|
};
|
|
@@ -17009,7 +17254,7 @@ const InputColor = class {
|
|
|
17009
17254
|
};
|
|
17010
17255
|
this.onHexInputChange = (event) => {
|
|
17011
17256
|
var _a;
|
|
17012
|
-
const hex = event.detail;
|
|
17257
|
+
const hex = event.detail ? event.detail.trim().replace(/#/g, '') : '';
|
|
17013
17258
|
if (hex) {
|
|
17014
17259
|
const [r, g, b] = hexToRgb(hex);
|
|
17015
17260
|
this.colorValues = {
|
|
@@ -17110,10 +17355,12 @@ const InputColor = class {
|
|
|
17110
17355
|
const { r, g, b, a, hue, alpha, hex } = this.colorInputElements;
|
|
17111
17356
|
hex.addEventListener('valueChange', (e) => {
|
|
17112
17357
|
this.onHexInputChange(e);
|
|
17358
|
+
e.stopPropagation();
|
|
17113
17359
|
});
|
|
17114
17360
|
[r, g, b, a].forEach((el) => {
|
|
17115
17361
|
el.addEventListener('valueChange', (e) => {
|
|
17116
17362
|
this.onRgbaInputChange(el, e);
|
|
17363
|
+
e.stopPropagation();
|
|
17117
17364
|
});
|
|
17118
17365
|
});
|
|
17119
17366
|
[hue, alpha].forEach((el) => {
|
|
@@ -17141,16 +17388,16 @@ const InputColor = class {
|
|
|
17141
17388
|
top: `${y}px`,
|
|
17142
17389
|
background: `rgb(${r}, ${g}, ${b})`,
|
|
17143
17390
|
};
|
|
17144
|
-
return (h(Host, { key: '
|
|
17391
|
+
return (h(Host, { key: 'eb7a6f1f77a5d184c05a7825f9f20829b8112d49', class: "xpl-input-color" }, h("xpl-popover", { key: '5f1588d21649cbbdfcadb0ab2bd46f848c7fc2d8', disabled: this.disabled, display: "menu" }, h("div", { key: 'cecec4d250e2c3b26fc364436f2d16fb97162dff', slot: "trigger" }, h("div", { key: '02a4945abec58618cb116eb04bca1c4672f16a4f', class: {
|
|
17145
17392
|
'xpl-input-color__display': true,
|
|
17146
17393
|
'xpl-input-color__display--disabled': this.disabled,
|
|
17147
17394
|
'xpl-input-color__display--error': !!this.hasErrorState,
|
|
17148
|
-
} }, h("span", { key: '
|
|
17395
|
+
} }, h("span", { key: '622be07c8fe6de7c5d714a8961146ff53160247d', class: "xpl-input-color__color", style: {
|
|
17149
17396
|
background: objectToStringColor(this.colorValues),
|
|
17150
|
-
} }), this.colorValues.hex ? (h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (h("xpl-icon", { key: '
|
|
17397
|
+
} }), this.colorValues.hex ? (h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (h("xpl-icon", { key: 'fd14c6b7aad4e33977008cf11b5cbff2352aab80', size: 20, icon: "eye-dropper", class: "xpl-input-color__icon", onClick: (e) => {
|
|
17151
17398
|
e.stopPropagation();
|
|
17152
17399
|
this.openEyeDropper();
|
|
17153
|
-
} })))), h("div", { key: '
|
|
17400
|
+
} })))), h("div", { key: 'ad85b32a641a3bf0face2efa81fe14de17777fdf', class: "xpl-input-color__menu" }, h("div", { key: 'caaee0b4bf18c0c3dbc72745167df475b0cc91cc', class: "xpl-input-color__sl-grid", ref: (el) => {
|
|
17154
17401
|
this.colorInputElements.slGrid = el;
|
|
17155
17402
|
}, style: {
|
|
17156
17403
|
background: [
|
|
@@ -17158,9 +17405,9 @@ const InputColor = class {
|
|
|
17158
17405
|
`linear-gradient(to right, #fff, #fff0)`,
|
|
17159
17406
|
`rgb(${hueBaseColor.r} ${hueBaseColor.g} ${hueBaseColor.b})`,
|
|
17160
17407
|
].join(', '),
|
|
17161
|
-
}, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, h("div", { key: '
|
|
17408
|
+
}, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, h("div", { key: '34867bf1cbca3e4d56552e02ba99a112c061be64', class: "xpl-input-color__sl-thumb", style: slThumbStyle })), h("div", { key: '3070aa4d152d18944a7942dc7298538be432fb2c', class: "xpl-input-color__grid" }, h("input", { key: '557445a1167af6ebfb786fbe390b63167ac0c2bf', type: "range", min: "0", max: "360", value: this.hue, class: "xpl-input-color__slider xpl-input-color__hue", name: "color-hue-slider", ref: (el) => {
|
|
17162
17409
|
this.colorInputElements.hue = el;
|
|
17163
|
-
} }), h("input", { key: '
|
|
17410
|
+
} }), h("input", { key: '86cabdd053207c6073592b46a85fe74ca74942fb', type: "range", min: "0", max: "1", step: "0.01", value: a, class: "xpl-input-color__slider xpl-input-color__alpha", name: "color-alpha-slider", ref: (el) => {
|
|
17164
17411
|
this.colorInputElements.alpha = el;
|
|
17165
17412
|
}, style: {
|
|
17166
17413
|
backgroundImage: [
|
|
@@ -17170,9 +17417,9 @@ const InputColor = class {
|
|
|
17170
17417
|
`linear-gradient(45deg, transparent 75%, #ccc 75%)`,
|
|
17171
17418
|
`linear-gradient(-45deg, transparent 75%, #ccc 75%)`,
|
|
17172
17419
|
].join(', '),
|
|
17173
|
-
} }), h("div", { key: '
|
|
17420
|
+
} }), h("div", { key: 'bb9ee49e36d78441380248bdb021443f9abbb250', class: "xpl-input-color__preview", style: {
|
|
17174
17421
|
background: `rgba(${r}, ${g}, ${b}, ${a})`,
|
|
17175
|
-
} })), h("div", { key: '
|
|
17422
|
+
} })), h("div", { key: '08bc820781d2de091036289b50f9f5f3810db61b', class: "xpl-input-color__inputs" }, Object.entries(this.colorInputElements)
|
|
17176
17423
|
.filter(([key]) => ['hex', 'r', 'g', 'b', 'a'].includes(key))
|
|
17177
17424
|
.map(([key]) => (h("xpl-input", { key: key, label: key.toLocaleUpperCase(), name: `color-${key}-input`, placeholder: key === 'hex' ? '793EF7' : '0', value: this.colorValues[key], ref: (elRef) => {
|
|
17178
17425
|
this.colorInputElements[key] = elRef;
|
|
@@ -17295,16 +17542,16 @@ const InputDate = class {
|
|
|
17295
17542
|
parent.removeChild(wrapper);
|
|
17296
17543
|
}
|
|
17297
17544
|
render() {
|
|
17298
|
-
return (h(Host, { key: '
|
|
17545
|
+
return (h(Host, { key: 'c2707549e3285693ce4c7e0449e047be90640504', class: {
|
|
17299
17546
|
'xpl-input-date': true,
|
|
17300
17547
|
[`xpl-input-date--mode-${this.mode}`]: true,
|
|
17301
17548
|
'xpl-input-date--error': !!this.hasErrorState,
|
|
17302
17549
|
'xpl-input-date--flatpickr-static': this.flatpickrStaticLayout,
|
|
17303
|
-
} }, h("div", { key: '
|
|
17550
|
+
} }, h("div", { key: 'e6ac05a6d58d92570331489b8a317d17c0726873', class: "xpl-input-wrapper" }, this.pre && (h("label", { key: 'ef746e91506c2bd2c2bc9986bfbb7f0b82a0f079', class: "xpl-input-pre", htmlFor: this.inputId }, this.pre)), h("input", { key: '125e566456a2de4d75fe38fee50a78de886b8009', type: "date", id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, ref: (el) => {
|
|
17304
17551
|
this.input = el;
|
|
17305
17552
|
}, onChange: (event) => {
|
|
17306
17553
|
this.valueChanged(event);
|
|
17307
|
-
} }), h("xpl-icon", { key: '
|
|
17554
|
+
} }), h("xpl-icon", { key: '34c346be1a3c66d4e5eab1882426ef0691c8b6cd', class: "xpl-input-calendar", icon: "calendar", size: 24 }), this.post && (h("label", { key: '1d2ab5b80daad9964e364a069f548d5250067f84', class: "xpl-input-post", htmlFor: this.inputId }, this.post)))));
|
|
17308
17555
|
}
|
|
17309
17556
|
get el() { return getElement(this); }
|
|
17310
17557
|
static get watchers() { return {
|
|
@@ -17353,18 +17600,18 @@ const InputFile = class {
|
|
|
17353
17600
|
}
|
|
17354
17601
|
render() {
|
|
17355
17602
|
var _a, _b;
|
|
17356
|
-
return (h(Host, { key: '
|
|
17603
|
+
return (h(Host, { key: '579d1ec1094bc5b1aeec622996694728fb1facca', class: {
|
|
17357
17604
|
'xpl-input-file': true,
|
|
17358
17605
|
'xpl-input-file--hide-trigger-on-select': this.hideTriggerOnSelect,
|
|
17359
17606
|
'xpl-input-file--disabled': this.disabled,
|
|
17360
|
-
} }, h("span", { key: '
|
|
17607
|
+
} }, h("span", { key: '66b3cc31f1e2bfa4ee1896e64a667e2a26166b50', class: {
|
|
17361
17608
|
'xpl-input-file__trigger-wrapper': true,
|
|
17362
17609
|
'xpl-input-file__trigger-wrapper--hidden': this.hideTriggerOnSelect && ((_a = this.files) === null || _a === void 0 ? void 0 : _a.length) > 0,
|
|
17363
|
-
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, h("slot", { key: '
|
|
17610
|
+
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, h("slot", { key: '53b23be4e2a5b0f920e650c14e591cb1de3b8bac', name: "trigger" })), ((_b = this.files) === null || _b === void 0 ? void 0 : _b.length) > 0 && !this.hideFileNames && (h("ul", { key: '53a294c3765d5b6229f5ed79023095538a1c5edf', class: "xpl-input-file__file-list" }, this.files.map((file, fileIndex) => (h("li", { class: "xpl-input-file__file-item" }, h("span", { class: "xpl-text-callout" }, file.name), h("xpl-icon", { icon: "x-circle", size: 24, onClick: (e) => {
|
|
17364
17611
|
e.preventDefault();
|
|
17365
17612
|
e.stopPropagation();
|
|
17366
17613
|
this.onRemoveFileByIndex(fileIndex);
|
|
17367
|
-
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (h("span", { key: '
|
|
17614
|
+
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (h("span", { key: 'afcd0be79ed4ffa5696990eb76d8615f61c430f9', class: "xpl-input-file__accept xpl-text-caption" }, "Accepted file types: ", this.accept)), h("input", { key: '08ffdfed6e25b11363e664abe7bdb66ae6b96bb7', onChange: this.handleFileChange, type: "file", ref: (el) => {
|
|
17368
17615
|
this.fileInput = el;
|
|
17369
17616
|
}, hidden: true, accept: this.accept, multiple: this.multiple, name: this.name })));
|
|
17370
17617
|
}
|
|
@@ -17852,21 +18099,21 @@ const InputPhone = class {
|
|
|
17852
18099
|
}
|
|
17853
18100
|
render() {
|
|
17854
18101
|
var _a;
|
|
17855
|
-
return (h(Host, { key: '
|
|
18102
|
+
return (h(Host, { key: '894f6acde4dea6d5640d4e51bc4e9bbe82d9d3ea', class: {
|
|
17856
18103
|
'xpl-input-phone': true,
|
|
17857
|
-
'xpl-input-phone--error': !!this.hasErrorState,
|
|
18104
|
+
'xpl-input-phone--error': !!this.hasErrorState || !!this.error,
|
|
17858
18105
|
'xpl-input-phone--open': this.dropdownOpen,
|
|
17859
18106
|
'xpl-input-phone--domestic': !this.isInternational,
|
|
17860
|
-
} }, h("div", { key: '
|
|
18107
|
+
} }, h("div", { key: 'c3f32f61ea3d344932721d0ef166db91a18110dc', class: "xpl-input-wrapper" }, this.isInternational && (h("button", { key: '4896e1dfa9e2fd2b0ff7472d45999b8aa36dd5f0', type: "button", id: this.triggerId, class: "xpl-input-phone__trigger", disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpen ? 'true' : 'false', "aria-label": "Select country", onClick: this.handleTriggerClick }, ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.name) && (h("xpl-icon", { key: '1a321bb5d7c82b6e9f7a3028ef68543de7b4180e', class: "xpl-input-phone__flag", icon: getCountryIconName(this.selectedCountry.name), size: 24, "aria-hidden": "true" })), h("xpl-icon", { key: '8820c57560cd5874eed4da9bbd4aeb77cba0e1cc', class: "xpl-input-phone__trigger-icon", icon: "chevron-down", size: 20, "aria-hidden": "true" }))), h("div", { key: '36bdd356e1a396927e8c2791f0d826970b08fed1', class: "xpl-input-phone__input-wrap" }, this.isInternational && (h("span", { key: '4557ddea12cc4dcf0f8d992b97fd89b3d799591e', class: "xpl-input-phone__dial-code" }, this.effectiveDialCode)), h("input", { key: '6dbff61ee5fdc564f685f112f7cc3659b3687490', ref: (el) => {
|
|
17861
18108
|
this.inputEl = el;
|
|
17862
|
-
}, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (h("button", { key: '
|
|
18109
|
+
}, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState || this.error ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (h("button", { key: 'c7ca36fdc2cee73de3a29f6019c8a35a74bba654', type: "button", class: "xpl-input-phone__clear", "aria-label": "Clear phone number", onClick: this.handleClear }, h("xpl-icon", { key: '4e5aad566c1052e72f6e7ba10ca9a98f97421626', icon: "x-circle", size: 16 }))))), this.isInternational && this.isEditable && (h("xpl-dropdown", { key: '0f81b1d30e3f0b52bfd9085ffb37b6c5733c6e8b', ref: (el) => {
|
|
17863
18110
|
this.dropdownRef = el;
|
|
17864
18111
|
}, isOpen: this.dropdownOpen, triggerId: this.triggerId, anchorToTrigger: true, closeOnSelect: true, mode: "single", options: this.dropdownOptions, update: this.handleDropdownUpdate, onIsOpenChange: (e) => {
|
|
17865
18112
|
this.dropdownOpen = e.detail;
|
|
17866
|
-
}, "aria-label": "Country" }, h("div", { key: '
|
|
18113
|
+
}, "aria-label": "Country" }, h("div", { key: '8a73a67eba2d6a02b6f828f21c451c843782a0c8', slot: "header", class: "xpl-input-phone__search-wrap" }, h("xpl-input", { key: '1cef63c8fdb66aa8288af0a0fafe72701573a82a', class: "xpl-input-phone__search", type: "text", label: "", placeholder: "Search", value: this.searchQuery, autocomplete: "off", onInputEvent: (e) => {
|
|
17867
18114
|
var _a;
|
|
17868
18115
|
this.searchQuery = (_a = e.detail) !== null && _a !== void 0 ? _a : '';
|
|
17869
|
-
} }, h("xpl-icon", { key: '
|
|
18116
|
+
} }, h("xpl-icon", { key: 'fa51061eb3617c3f55485cff16dbc1e307d98f08', slot: "pre", class: "xpl-input-phone__search-icon", icon: "magnifier", size: 20 })))))));
|
|
17870
18117
|
}
|
|
17871
18118
|
get el() { return getElement(this); }
|
|
17872
18119
|
static get watchers() { return {
|
|
@@ -17985,7 +18232,7 @@ const InputSearch = class {
|
|
|
17985
18232
|
return shell;
|
|
17986
18233
|
}
|
|
17987
18234
|
render() {
|
|
17988
|
-
return (h(Host, { key: '
|
|
18235
|
+
return (h(Host, { key: 'ac235500df2d6958d9070535f922a018bce14906', class: {
|
|
17989
18236
|
'xpl-input-search': true,
|
|
17990
18237
|
'xpl-input-search--disabled': this.disabled,
|
|
17991
18238
|
'xpl-input-search--error': this.hasError,
|
|
@@ -18169,11 +18416,11 @@ const InputTime = class {
|
|
|
18169
18416
|
}));
|
|
18170
18417
|
}
|
|
18171
18418
|
render() {
|
|
18172
|
-
return (h(Host, { key: '
|
|
18419
|
+
return (h(Host, { key: '6ed0e8da81a96e0e4e7078a7477c9a4ee92532ba', class: {
|
|
18173
18420
|
'xpl-input-time': true,
|
|
18174
18421
|
[`xpl-input-time--mode-${this.mode}`]: true,
|
|
18175
18422
|
'xpl-input-time--error': !!this.hasErrorState,
|
|
18176
|
-
} }, h("xpl-input", { key: '
|
|
18423
|
+
} }, h("xpl-input", { key: 'bae0f7e9b9e3f14b5d780a0300ef672da9301596', pre: h("xpl-icon", { class: "xpl-input-time__clock-icon", icon: "clock", size: 24 }), post: this.timeFormat === '12h' ? this.amPm || 'AM' : null, type: "text", _id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, onInput: this.handleInput, value: this.formattedValue, onFocusEvent: this.handleFocus, onBlurEvent: this.handleBlur, onClick: this.handleClick }), !this.readonly && !this.disabled && (h("xpl-dropdown", { key: 'cd8ae7e4c7d130bdbf44aeb2f806b3c9a490d8bb', options: this.options, isOpen: this.showOptions, ref: (el) => {
|
|
18177
18424
|
this.dropdown = el;
|
|
18178
18425
|
}, class: "xpl-input-time__dropdown" }))));
|
|
18179
18426
|
}
|
|
@@ -18607,12 +18854,12 @@ const List = class {
|
|
|
18607
18854
|
var _a, _b, _c;
|
|
18608
18855
|
const ariaLabelledBy = ((_a = this.labelledBy) === null || _a === void 0 ? void 0 : _a.trim()) ? this.labelledBy.trim() : undefined;
|
|
18609
18856
|
const ariaLabel = !ariaLabelledBy && ((_b = this.label) === null || _b === void 0 ? void 0 : _b.trim()) ? this.label.trim() : undefined;
|
|
18610
|
-
return (h(Host, { key: '
|
|
18857
|
+
return (h(Host, { key: '4290084c30b164abb653943a81783c35531d6316', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, (_c = this.items) === null || _c === void 0 ? void 0 :
|
|
18611
18858
|
_c.map((item, index) => {
|
|
18612
18859
|
var _a;
|
|
18613
18860
|
const legacyRowId = (_a = item.id) !== null && _a !== void 0 ? _a : `item-${index}`;
|
|
18614
18861
|
return (h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
|
|
18615
|
-
}), h("slot", { key: '
|
|
18862
|
+
}), h("slot", { key: '55ce7202269eab851c0d753fd87ef2d5bf9f59a8' }), this.reorderable ? (h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
|
|
18616
18863
|
}
|
|
18617
18864
|
get el() { return getElement(this); }
|
|
18618
18865
|
static get watchers() { return {
|
|
@@ -19100,6 +19347,9 @@ const Modal = class {
|
|
|
19100
19347
|
this.modalClosed.emit();
|
|
19101
19348
|
};
|
|
19102
19349
|
this.handleNativeBackdropClick = (event) => {
|
|
19350
|
+
if (event.target !== this.dialogElement) {
|
|
19351
|
+
return;
|
|
19352
|
+
}
|
|
19103
19353
|
const rect = this.dialogElement.getBoundingClientRect();
|
|
19104
19354
|
const clickedOutsideDialog = event.clientX < rect.left ||
|
|
19105
19355
|
event.clientX > rect.right ||
|
|
@@ -19135,7 +19385,7 @@ const Modal = class {
|
|
|
19135
19385
|
}
|
|
19136
19386
|
}
|
|
19137
19387
|
render() {
|
|
19138
|
-
return (h(Host, { key: '
|
|
19388
|
+
return (h(Host, { key: 'b6d5d1c4b2fd755b74d2b138e937cb8f70256e17', class: "xpl-modal" }, this.isOpen && h("xpl-backdrop", { key: '972f5031f80eb1c394f7e5be5dc04a604bb91a34' }), h("dialog", { key: '544203fa98a61f4f1e41cbffca3c1048fab8e236', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}` }, h("div", { key: 'f37cc41033d765577ae3280d2b4969e71aabe369', class: "xpl-modal__header" }, h("div", { key: '356a2ba82b16bd1c47813d6589b45a901a108d10', class: "xpl-modal__title" }, this.variant === 'warning' && (h("xpl-icon", { key: '4144c0f94f9760b7ed3379b2a2e7f69e31ef0829', size: 20, icon: "alert-triangle", class: "xpl-modal__alert-icon" })), h("slot", { key: 'fd2c48017a620ec83ce0f79d13d18aa2aae57b14', name: "title" }), h("xpl-button", { key: 'd6c816ff2a44911333196531641d620a0cafafaf', type: "button", class: "xpl-modal__close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleDialogClose }, h("xpl-icon", { key: 'b7c7b6754d0a94f3aa927d390c35faf165b1b776', icon: "x" }))), h("div", { key: 'fb96c212c96648434f821c2ec4169fb6499f1230', class: "xpl-modal__subtitle" }, h("slot", { key: 'b838fbe968ffdec5f5d71cffde42c02b6bf085f1', name: "subtitle" }))), h("div", { key: '7d9230791de065bdbf9703821021ce6230c8b568', class: "xpl-modal__body" }, h("slot", { key: '60449861f56680023c79139eb5dc04a2cfe5fbd5', name: "body" })), h("div", { key: 'adb79ff548bb3475c7b8bd4fe9bd3b9f2a454f89', class: "xpl-modal__footer" }, h("slot", { key: '32148fd7cabc15deb2f40b6706a5e1761dab4cde', name: "tertiary" }), h("slot", { key: 'bbacc31d2b03825ab14fb08e0307ac70767c3ebd', name: "secondary" }), h("slot", { key: '89f492273b1d71772551c2454bd4bbb56899fe3b', name: "primary" })))));
|
|
19139
19389
|
}
|
|
19140
19390
|
get element() { return getElement(this); }
|
|
19141
19391
|
static get watchers() { return {
|
|
@@ -19211,11 +19461,11 @@ const NavHeaderMenu = class {
|
|
|
19211
19461
|
}
|
|
19212
19462
|
render() {
|
|
19213
19463
|
const hasProfile = !!this.username || !!this.email;
|
|
19214
|
-
return (h(Host, { key: '
|
|
19464
|
+
return (h(Host, { key: '605d14e70deb43e79834d39cb3a078b3298e853a', class: {
|
|
19215
19465
|
'xpl-nav-header-menu': true,
|
|
19216
19466
|
'xpl-nav-header-menu--has-right-aside-mobile': this.rightAsideMobilePresent,
|
|
19217
19467
|
dark: true,
|
|
19218
|
-
} }, hasProfile && (h("div", { key: '
|
|
19468
|
+
} }, hasProfile && (h("div", { key: '4d7f4ffc4d0391fb3b20db6be3a1c32126f02dfe', class: "xpl-nav-header-menu__profile" }, h("div", { key: 'f79f233a7dd322329b4f571b6858d5f6954eb972', class: "xpl-nav-header-menu__info" }, this.username && (h("div", { key: '5672342ae08198b52525ca2fe75d0d489e678c6b', class: "xpl-nav-header-menu__username" }, this.username)), this.email && (h("div", { key: '90f13a468d30f939b3e99f932dc96746d99c4196', class: "xpl-nav-header-menu__email" }, this.email))))), h("div", { key: '70ae77baf3570e700639e7d8d387c5e4df7739c4', class: "xpl-nav-header-menu__right-aside-mobile" }, h("slot", { key: 'e9e1170bc8648f3676e083c7aa5c03d16e09b2ed', name: "right-aside-mobile" })), h("div", { key: '225c538dc72259da900406eb3fc6f222f93292e1', class: "xpl-nav-header-menu__slot", role: "list" }, h("slot", { key: '7631ce2ee1e6acdf4fdc9d54671e186de597de63' }))));
|
|
19219
19469
|
}
|
|
19220
19470
|
get el() { return getElement(this); }
|
|
19221
19471
|
};
|
|
@@ -19232,11 +19482,11 @@ const NavItem = class {
|
|
|
19232
19482
|
}
|
|
19233
19483
|
}
|
|
19234
19484
|
render() {
|
|
19235
|
-
return (h(Host, { key: '
|
|
19485
|
+
return (h(Host, { key: '1653225a63a82d72768a162430f11918d3b57810', class: "xpl-nav-item", role: "listitem", onClick: () => {
|
|
19236
19486
|
if (this.navControl) {
|
|
19237
19487
|
this.onNavToggle();
|
|
19238
19488
|
}
|
|
19239
|
-
} }, h("slot", { key: '
|
|
19489
|
+
} }, h("slot", { key: 'c04f946780264be513575537ee1041b576e1834f', name: "link" }, h("slot", { key: 'cd415288c4caf0c7ffd4906531f858a0e21cbb93', name: "icon" }), h("slot", { key: 'a1678415d40e459597738013500a715396b5b759' }))));
|
|
19240
19490
|
}
|
|
19241
19491
|
};
|
|
19242
19492
|
|
|
@@ -19252,6 +19502,7 @@ const Pagination = class {
|
|
|
19252
19502
|
this.selectedRowsPerPage = 10;
|
|
19253
19503
|
this.rowsPerPageSelectRef = null;
|
|
19254
19504
|
this.pageSelectRef = null;
|
|
19505
|
+
this.pageChoices = [];
|
|
19255
19506
|
this.handleNextPage = () => {
|
|
19256
19507
|
if (this.currentPage < this.totalPages) {
|
|
19257
19508
|
this.currentPage += 1;
|
|
@@ -19285,11 +19536,29 @@ const Pagination = class {
|
|
|
19285
19536
|
else if (newValue > this.totalPages) {
|
|
19286
19537
|
this.currentPage = this.totalPages;
|
|
19287
19538
|
}
|
|
19539
|
+
this.buildPageChoices();
|
|
19288
19540
|
this.pageChange.emit(this.currentPage);
|
|
19289
19541
|
}
|
|
19542
|
+
onTotalPagesUpdate() {
|
|
19543
|
+
if (this.currentPage > this.totalPages) {
|
|
19544
|
+
this.currentPage = this.totalPages;
|
|
19545
|
+
return;
|
|
19546
|
+
}
|
|
19547
|
+
this.buildPageChoices();
|
|
19548
|
+
}
|
|
19290
19549
|
onRowsPerPageUpdate(newValue) {
|
|
19291
19550
|
this.rowsPerPageChange.emit(newValue);
|
|
19292
19551
|
}
|
|
19552
|
+
buildPageChoices() {
|
|
19553
|
+
this.pageChoices = Array.from({ length: this.totalPages }, (_, index) => ({
|
|
19554
|
+
label: `Page ${index + 1}`,
|
|
19555
|
+
value: (index + 1).toString(),
|
|
19556
|
+
isSelected: index + 1 === this.currentPage,
|
|
19557
|
+
}));
|
|
19558
|
+
}
|
|
19559
|
+
componentWillLoad() {
|
|
19560
|
+
this.buildPageChoices();
|
|
19561
|
+
}
|
|
19293
19562
|
componentDidLoad() {
|
|
19294
19563
|
var _a, _b;
|
|
19295
19564
|
(_a = this.rowsPerPageSelectRef) === null || _a === void 0 ? void 0 : _a.addEventListener('changeEvent', this.handleRowsChange);
|
|
@@ -19303,28 +19572,27 @@ const Pagination = class {
|
|
|
19303
19572
|
render() {
|
|
19304
19573
|
const disablePrev = this.currentPage <= 1;
|
|
19305
19574
|
const disableNext = this.currentPage >= this.totalPages;
|
|
19306
|
-
return (h(Host, { key: '
|
|
19575
|
+
return (h(Host, { key: '48dc3bfd2f81b621c0c4cacd5e8aa43e974a3c2b', class: {
|
|
19307
19576
|
'xpl-pagination': true,
|
|
19308
19577
|
'xpl-pagination__with-page-control': this.withPageControl,
|
|
19309
19578
|
'xpl-pagination__no-page-control': !this.withPageControl,
|
|
19310
|
-
} }, this.withPageControl && (h("div", { key: '
|
|
19579
|
+
} }, this.withPageControl && (h("div", { key: 'a8eb321da956ac31d62ee6a8e776a9949733310b', class: "xpl-pagination__rows-per-page" }, h("label", { key: '42688af51596e843faec89c04b99eef0569b9289', class: "xpl-pagination__rows-label" }, "Rows per page:"), h("xpl-select", { key: '276646a15894d4434d72bbe3a9e74fe4ec151d09', class: "xpl-pagination__rows-per-page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.rowsPerPageOptionsArray.map((option) => ({
|
|
19311
19580
|
label: option.toString(),
|
|
19312
19581
|
value: option.toString(),
|
|
19313
19582
|
isSelected: option === this.selectedRowsPerPage,
|
|
19314
19583
|
})), ref: (el) => {
|
|
19315
19584
|
this.rowsPerPageSelectRef = el;
|
|
19316
|
-
} }))), h("div", { key: '
|
|
19317
|
-
label: `Page ${index + 1}`,
|
|
19318
|
-
value: (index + 1).toString(),
|
|
19319
|
-
isSelected: index + 1 === this.currentPage,
|
|
19320
|
-
})), "custom-display-value": true, ref: (el) => {
|
|
19585
|
+
} }))), h("div", { key: '808b1a352b4500e593e9887b9957a292bbc64b18', class: "xpl-pagination__pager" }, h("button", { key: '9a18f0e6843deeb1c4efcb3cbb29e8c22ebee923', class: "xpl-pagination__pager-button xpl-pagination__pager-button-prev", disabled: disablePrev, onClick: this.handlePrevPage, "aria-label": "Previous Page", tabindex: "0" }, h("xpl-icon", { key: 'd761379de5063bf5739c92f90d1a795ccda03b5f', icon: "arrow-left", size: 20 })), h("xpl-select", { key: 'cd18e7c9a1d15a6b4a353b32f90bfe646ab321ee', class: "xpl-pagination__page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.pageChoices, "custom-display-value": true, ref: (el) => {
|
|
19321
19586
|
this.pageSelectRef = el;
|
|
19322
|
-
} }, h("div", { key: '
|
|
19587
|
+
} }, h("div", { key: '117fa90e904994b44fe86055aea62af0a404904e', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), h("button", { key: 'dbd3c30917758594d41fec4a313e204ccbd56e16', class: "xpl-pagination__pager-button xpl-pagination__pager-button-next", disabled: disableNext, onClick: this.handleNextPage, "aria-label": "Next Page", tabindex: "0" }, h("xpl-icon", { key: '4ca90e03195972c79a9a6b09027d8cf594a1dacc', icon: "arrow-right", size: 20 })))));
|
|
19323
19588
|
}
|
|
19324
19589
|
static get watchers() { return {
|
|
19325
19590
|
"currentPage": [{
|
|
19326
19591
|
"onPageUpdate": 0
|
|
19327
19592
|
}],
|
|
19593
|
+
"totalPages": [{
|
|
19594
|
+
"onTotalPagesUpdate": 0
|
|
19595
|
+
}],
|
|
19328
19596
|
"selectedRowsPerPage": [{
|
|
19329
19597
|
"onRowsPerPageUpdate": 0
|
|
19330
19598
|
}]
|
|
@@ -19339,11 +19607,11 @@ const XplPanel = class {
|
|
|
19339
19607
|
}
|
|
19340
19608
|
render() {
|
|
19341
19609
|
const hasAccent = this.accent !== 'none';
|
|
19342
|
-
return (h(Host, { key: '
|
|
19610
|
+
return (h(Host, { key: 'e028327c45513aed4bdaf60f230292c3ca427abb', class: {
|
|
19343
19611
|
'xpl-panel': true,
|
|
19344
19612
|
[`xpl-panel--accent-${this.accent}`]: hasAccent,
|
|
19345
19613
|
[`xpl-panel--padding-${this.padding}`]: true,
|
|
19346
|
-
} }, hasAccent && h("div", { key: '
|
|
19614
|
+
} }, hasAccent && h("div", { key: '131b41a89c2d34ee7e1c9313a8659bc62c5a882a', "aria-hidden": "true", class: "xpl-panel__accent" }), h("div", { key: '67e1dae738eb616fa024fda3f64fcf8008c4fbce', class: "xpl-panel__content" }, h("slot", { key: '39ec3513aaab2138ae1c7b45dea4e3bc7ef9a9d1' }))));
|
|
19347
19615
|
}
|
|
19348
19616
|
};
|
|
19349
19617
|
|
|
@@ -20006,16 +20274,16 @@ const Popover = class {
|
|
|
20006
20274
|
});
|
|
20007
20275
|
}
|
|
20008
20276
|
render() {
|
|
20009
|
-
return (h(Host, { key: '
|
|
20277
|
+
return (h(Host, { key: 'e6c2991b7550ee3d49d0e6389f0e5734873d2ec9' }, h("div", { key: '5feb4134506e40be7f1485913f197b5e976a22eb', class: {
|
|
20010
20278
|
'xpl-popover': true,
|
|
20011
20279
|
[`xpl-popover--${this.actualPosition}`]: true,
|
|
20012
20280
|
'xpl-popover--is-open': this.isOpenState,
|
|
20013
|
-
} }, h("span", { key: '
|
|
20281
|
+
} }, h("span", { key: '0fd0c9ecf34e28f05b1c74cd54b259af985a8f48', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
|
|
20014
20282
|
this.triggerRef = el;
|
|
20015
|
-
} }, h("slot", { key: '
|
|
20283
|
+
} }, h("slot", { key: '036625c11df6140ae5e66c5b07d48034d4f85a8c', name: "trigger" })), this.display === 'arrow' && (h("div", { key: 'dc701c9b71dfc1ac2cd5397928366c807ec12680', class: "xpl-popover__arrow" }, h("svg", { key: '714129740bb1ced6b465636e85fa006733d03e20', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'aa489883a369f713b6f04093ed39fe4f91088213', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), h("path", { key: '1e341b0b3f7be9c4387c3b2560d31f023090b5d8', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), h("div", { key: 'fb1ca2715f2bbb0bd32ed532e61da5f2a8aa8b63', class: {
|
|
20016
20284
|
'xpl-popover__content': true,
|
|
20017
20285
|
[`xpl-popover__content--display-${this.display}`]: true,
|
|
20018
|
-
}, ref: (el) => (this.contentRef = el) }, h("slot", { key: '
|
|
20286
|
+
}, ref: (el) => (this.contentRef = el) }, h("slot", { key: '365e7a91de4254cc8f8423b1e832d5adeff1490a' })))));
|
|
20019
20287
|
}
|
|
20020
20288
|
get el() { return getElement(this); }
|
|
20021
20289
|
static get watchers() { return {
|
|
@@ -20055,12 +20323,12 @@ const ProgressBar = class {
|
|
|
20055
20323
|
return this.variant === 'indeterminate';
|
|
20056
20324
|
}
|
|
20057
20325
|
render() {
|
|
20058
|
-
return (h(Host, { key: '
|
|
20326
|
+
return (h(Host, { key: '25abe25b042ab5fb4d81246275538abaad3c4086', class: {
|
|
20059
20327
|
'xpl-progress-bar': true,
|
|
20060
20328
|
[`xpl-progress-bar--${this.size}`]: true,
|
|
20061
20329
|
[`xpl-progress-bar--${this.variant}`]: true,
|
|
20062
20330
|
'xpl-progress-bar--complete': this.isComplete,
|
|
20063
|
-
} }, h("div", { key: '
|
|
20331
|
+
} }, h("div", { key: '926c1407043a98c265dffbaa616b640624671352', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (h("div", { key: '78ece9b7848541236ce2ad4309b664204bfb370e', class: "xpl-progress-bar__header" }, this.label && h("div", { key: '9b673b4ae9aeebb7bebd9a72dc4384383e15227d', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (h("div", { key: 'a144dba46c7ae48ad54e9655b4335a253b1bc1bb', class: "xpl-progress-bar__icon" }, this.isError ? (h("xpl-icon", { icon: "circle-xmark-1" })) : (h("xpl-icon", { icon: "circle-check-1" })))))), h("div", { key: 'cf0f7a209c2278e4d1ccf00577457d175abb78bc', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, h("div", { class: "xpl-progress-bar__indeterminate" }))) : (h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (h("div", { key: 'ff5b336a3b3a14cb4e0531688705983350f9812f', class: "xpl-progress-bar__helper" }, this.helperText)))));
|
|
20064
20332
|
}
|
|
20065
20333
|
};
|
|
20066
20334
|
|
|
@@ -20121,7 +20389,7 @@ const ProgressIndicator = class {
|
|
|
20121
20389
|
? `Progress: all ${totalSteps} ${totalSteps === 1 ? 'step' : 'steps'} complete`
|
|
20122
20390
|
: `Progress: step ${currentStepNumber} of ${totalSteps}`
|
|
20123
20391
|
: 'Progress';
|
|
20124
|
-
return (h(Host, { key: '
|
|
20392
|
+
return (h(Host, { key: '1c545195c093b97f72d81801efc686eb98fec787', class: hostClasses, role: "group", "aria-label": ariaLabel }, h("div", { key: '754af5ed292fb0d34c61aec88ccb87f52e2076bf', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
|
|
20125
20393
|
}
|
|
20126
20394
|
static get watchers() { return {
|
|
20127
20395
|
"steps": [{
|
|
@@ -20155,14 +20423,14 @@ const Radio = class {
|
|
|
20155
20423
|
return Boolean(this.checked);
|
|
20156
20424
|
}
|
|
20157
20425
|
render() {
|
|
20158
|
-
return (h(Host, { key: '
|
|
20426
|
+
return (h(Host, { key: 'a8c73f86c07a42b9d44e7778fcac685b6d6ea476', class: {
|
|
20159
20427
|
'xpl-checkbox-radio-container': true,
|
|
20160
20428
|
styled: this.styled,
|
|
20161
20429
|
disabled: this.disabled,
|
|
20162
|
-
} }, h("input", { key: '
|
|
20430
|
+
} }, h("input", { key: 'c63e056408613a586a18e6dac90cd576c604114f', class: "xpl-radio", type: "radio", checked: this.isChecked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, onChange: this.onChange, value: this.value }), h("label", { key: 'd2c64304f89a583cae05c111b1a82524c2f130b3', class: {
|
|
20163
20431
|
'xpl-label': true,
|
|
20164
20432
|
'xpl-label--disabled': this.disabled,
|
|
20165
|
-
}, htmlFor: this.id }, h("slot", { key: '
|
|
20433
|
+
}, htmlFor: this.id }, h("slot", { key: '12970b242bb30cf2fd68a73db5c6f3f252262355' }), this.description && (h("small", { key: '1224b9d9f183d46a95535216d24150c1141b6cfe', class: {
|
|
20166
20434
|
'xpl-description': true,
|
|
20167
20435
|
'xpl-description--disabled': this.disabled,
|
|
20168
20436
|
} }, this.description)))));
|
|
@@ -20174,7 +20442,7 @@ const SecondaryNav = class {
|
|
|
20174
20442
|
registerInstance(this, hostRef);
|
|
20175
20443
|
}
|
|
20176
20444
|
render() {
|
|
20177
|
-
return (h(Host, { key: '
|
|
20445
|
+
return (h(Host, { key: 'bf9cbd4351297a28d6d98d3bf1e0612fac1f5136', class: "xpl-secondary-nav" }, h("nav", { key: '764de50287c88f53f19005d50b177e85f71f7f43', "aria-label": "Secondary Nav" }, h("slot", { key: 'd7fe629382a06f62dde9f08db082854e986ba406' }))));
|
|
20178
20446
|
}
|
|
20179
20447
|
};
|
|
20180
20448
|
|
|
@@ -20187,7 +20455,7 @@ function getDisplayValue(choice) {
|
|
|
20187
20455
|
return choice.label || choice.value;
|
|
20188
20456
|
}
|
|
20189
20457
|
function flattenChoices(choices) {
|
|
20190
|
-
return choices.
|
|
20458
|
+
return choices.flatMap((choice) => choice.groupName && choice.options ? choice.options : [choice]);
|
|
20191
20459
|
}
|
|
20192
20460
|
const Select = class {
|
|
20193
20461
|
constructor(hostRef) {
|
|
@@ -20377,16 +20645,21 @@ const Select = class {
|
|
|
20377
20645
|
(_a = this.handleResizeThrottled) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
20378
20646
|
}
|
|
20379
20647
|
handleDropdownTrigger() {
|
|
20380
|
-
var _a;
|
|
20381
|
-
|
|
20648
|
+
var _a, _b;
|
|
20649
|
+
if (this.disabled) {
|
|
20650
|
+
return;
|
|
20651
|
+
}
|
|
20652
|
+
const prevState = (_b = (_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.isOpen) !== null && _b !== void 0 ? _b : false;
|
|
20382
20653
|
const nextState = !prevState;
|
|
20383
20654
|
const e = this.triggerDropdown.emit({
|
|
20384
20655
|
prevState,
|
|
20385
20656
|
nextState,
|
|
20386
20657
|
});
|
|
20387
|
-
if (!e.defaultPrevented
|
|
20658
|
+
if (!e.defaultPrevented) {
|
|
20388
20659
|
this.dropdownOpenState = nextState;
|
|
20389
|
-
this.dropdown
|
|
20660
|
+
if (this.dropdown) {
|
|
20661
|
+
this.dropdown.isOpen = nextState;
|
|
20662
|
+
}
|
|
20390
20663
|
}
|
|
20391
20664
|
}
|
|
20392
20665
|
async reset() {
|
|
@@ -20405,21 +20678,21 @@ const Select = class {
|
|
|
20405
20678
|
this.truncate &&
|
|
20406
20679
|
!this.customDisplayValue;
|
|
20407
20680
|
const truncatedText = `+ ${Math.abs(this.choicesState.filter((a) => a.isSelected).length - this.visibleChoices)} more`;
|
|
20408
|
-
return (h(Host, { key: '
|
|
20681
|
+
return (h(Host, { key: '72887e1c0864e77cf43e502d30a796e32942f643', class: {
|
|
20409
20682
|
'xpl-select': true,
|
|
20410
20683
|
'xpl-select--disabled': this.disabled,
|
|
20411
20684
|
'xpl-select--no-truncate': !this.truncate,
|
|
20412
20685
|
[(_c = this.classNames) !== null && _c !== void 0 ? _c : '']: !!this.classNames,
|
|
20413
20686
|
}, onKeyDown: this.handleTabKeyDown, ref: (el) => {
|
|
20414
20687
|
this.container = el;
|
|
20415
|
-
} }, this.renderLabel(), h("div", { key: '
|
|
20688
|
+
} }, this.renderLabel(), h("div", { key: '2d1aa67dcf1fa9aaa5b51b1eb944958a1741ee45', class: {
|
|
20416
20689
|
'xpl-input': true,
|
|
20417
20690
|
'xpl-input--disabled': this.disabled,
|
|
20418
20691
|
'xpl-input--error': ((_d = this.error) === null || _d === void 0 ? void 0 : _d.length) >= 0,
|
|
20419
|
-
} }, h("div", { key: '
|
|
20692
|
+
} }, h("div", { key: 'bc34bf6bb4c306753030ec05d011dfe80377256d', class: "xpl-input-wrapper" }, h("button", { key: 'f9a1c1ce4014e780cf866f75f8852d0b234e5ccd', class: "xpl-select__trigger", disabled: this.disabled, id: this.id, onKeyDown: this.handleTabKeyDown, onClick: (e) => {
|
|
20420
20693
|
e.preventDefault();
|
|
20421
20694
|
this.handleDropdownTrigger();
|
|
20422
|
-
}, type: "button" }, h("div", { key: '
|
|
20695
|
+
}, type: "button" }, h("div", { key: '1dbd694fb71a136f578382c7d70e2a2c6077c62c', class: {
|
|
20423
20696
|
'xpl-select-value': true,
|
|
20424
20697
|
'xpl-select-value--active': this.mode === 'multi' && this.value.length > 0,
|
|
20425
20698
|
'has-value': this.value.length > 0,
|
|
@@ -20439,7 +20712,7 @@ const Select = class {
|
|
|
20439
20712
|
return this.renderSelectedTags();
|
|
20440
20713
|
}
|
|
20441
20714
|
return this.placeholder;
|
|
20442
|
-
})(), isTextTruncated && truncatedText), h("xpl-icon", { key: '
|
|
20715
|
+
})(), isTextTruncated && truncatedText), h("xpl-icon", { key: '5fd8e1d7b0be5b3daf4c2daecbb5d6e4f02d7493', class: "xpl-select__chevron-down", icon: this.selectIcon }))), !this.disabled && (h("xpl-dropdown", { key: '312b8917cd407224c0802b8cfc285168c26a8de6', ref: (el) => {
|
|
20443
20716
|
this.dropdown = el;
|
|
20444
20717
|
}, isOpen: this.dropdownOpenState, options: this.choicesState, selectedValues: this.selectedValues, mode: this.mode, triggerId: this.id, update: (_e, { component }) => {
|
|
20445
20718
|
const { options } = component;
|
|
@@ -20448,7 +20721,7 @@ const Select = class {
|
|
|
20448
20721
|
}
|
|
20449
20722
|
}, onIsOpenChange: (e) => {
|
|
20450
20723
|
this.dropdownOpenState = e.detail;
|
|
20451
|
-
}, onWheel: this.handleDropdownScroll, anchorToTrigger: true, flipFallbackPlacements: this.dropdownFlipFallbackPlacements, placement: this.dropdownPlacement })), this.renderError()), h("input", { key: '
|
|
20724
|
+
}, onWheel: this.handleDropdownScroll, anchorToTrigger: true, flipFallbackPlacements: this.dropdownFlipFallbackPlacements, placement: this.dropdownPlacement })), this.renderError()), h("input", { key: '3c88344463e124f7ed752bd249563f3f8f7b9204', type: "hidden", name: this.name, value: this.value })));
|
|
20452
20725
|
}
|
|
20453
20726
|
static get watchers() { return {
|
|
20454
20727
|
"choices": [{
|
|
@@ -20469,15 +20742,213 @@ const Select = class {
|
|
|
20469
20742
|
}; }
|
|
20470
20743
|
};
|
|
20471
20744
|
|
|
20745
|
+
const SIDE_NAV_MOBILE_MQ = '(max-width: 767px)';
|
|
20746
|
+
const SIDE_NAV_CLOSE_ANIMATION_MS = 600;
|
|
20747
|
+
|
|
20472
20748
|
const SideNav = class {
|
|
20473
20749
|
constructor(hostRef) {
|
|
20474
20750
|
registerInstance(this, hostRef);
|
|
20751
|
+
this.openChange = createEvent(this, "openChange", 7);
|
|
20752
|
+
this.drawerClosing = false;
|
|
20753
|
+
this.open = false;
|
|
20754
|
+
this.onViewportChange = () => {
|
|
20755
|
+
this.clearCloseTransition();
|
|
20756
|
+
this.syncDocKeyDownListener();
|
|
20757
|
+
};
|
|
20758
|
+
this.focusToggleAfterClose = () => {
|
|
20759
|
+
if (!this.isBelowMdBreakpoint())
|
|
20760
|
+
return;
|
|
20761
|
+
if (this.toggleFocusTimeoutId !== undefined) {
|
|
20762
|
+
clearTimeout(this.toggleFocusTimeoutId);
|
|
20763
|
+
}
|
|
20764
|
+
this.toggleFocusTimeoutId = setTimeout(() => {
|
|
20765
|
+
var _a;
|
|
20766
|
+
this.toggleFocusTimeoutId = undefined;
|
|
20767
|
+
(_a = this.el.querySelector('.xpl-side-nav__toggle button')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
20768
|
+
}, 0);
|
|
20769
|
+
};
|
|
20770
|
+
this.focusDrawerOnOpen = () => {
|
|
20771
|
+
if (!this.isBelowMdBreakpoint())
|
|
20772
|
+
return;
|
|
20773
|
+
if (this.drawerFocusTimeoutId !== undefined) {
|
|
20774
|
+
clearTimeout(this.drawerFocusTimeoutId);
|
|
20775
|
+
}
|
|
20776
|
+
this.drawerFocusTimeoutId = setTimeout(() => {
|
|
20777
|
+
var _a;
|
|
20778
|
+
this.drawerFocusTimeoutId = undefined;
|
|
20779
|
+
const wrapper = this.el.querySelector('.xpl-side-nav__wrapper');
|
|
20780
|
+
const first = wrapper
|
|
20781
|
+
? this.getFocusableElements().find((el) => wrapper.contains(el))
|
|
20782
|
+
: undefined;
|
|
20783
|
+
const fallback = this.el.querySelector('.xpl-side-nav__toggle button');
|
|
20784
|
+
(_a = (first !== null && first !== void 0 ? first : fallback)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
20785
|
+
}, 0);
|
|
20786
|
+
};
|
|
20787
|
+
this.onBackdropClick = () => this.setOpenState(false);
|
|
20788
|
+
this.onDocKeyDown = (e) => {
|
|
20789
|
+
if (!this.isMobileDrawerActive())
|
|
20790
|
+
return;
|
|
20791
|
+
if (this.shouldYieldFocusToExternalModal())
|
|
20792
|
+
return;
|
|
20793
|
+
switch (e.key.toLowerCase()) {
|
|
20794
|
+
case 'escape': {
|
|
20795
|
+
if (!this.open)
|
|
20796
|
+
return;
|
|
20797
|
+
if (this.anyDescendantPopoverIsOpen())
|
|
20798
|
+
return;
|
|
20799
|
+
e.preventDefault();
|
|
20800
|
+
e.stopPropagation();
|
|
20801
|
+
this.setOpenState(false);
|
|
20802
|
+
return;
|
|
20803
|
+
}
|
|
20804
|
+
case 'tab': {
|
|
20805
|
+
this.trapTabKey(e);
|
|
20806
|
+
break;
|
|
20807
|
+
}
|
|
20808
|
+
}
|
|
20809
|
+
};
|
|
20810
|
+
this.onToggleClick = () => this.setOpenState(!this.open);
|
|
20811
|
+
}
|
|
20812
|
+
onOpenChanged(newValue, oldValue) {
|
|
20813
|
+
if (oldValue && !newValue && this.isBelowMdBreakpoint()) {
|
|
20814
|
+
this.drawerClosing = true;
|
|
20815
|
+
if (this.closeTransitionTimeoutId !== undefined) {
|
|
20816
|
+
clearTimeout(this.closeTransitionTimeoutId);
|
|
20817
|
+
}
|
|
20818
|
+
this.closeTransitionTimeoutId = setTimeout(() => {
|
|
20819
|
+
this.closeTransitionTimeoutId = undefined;
|
|
20820
|
+
this.drawerClosing = false;
|
|
20821
|
+
this.syncDocKeyDownListener();
|
|
20822
|
+
}, SIDE_NAV_CLOSE_ANIMATION_MS);
|
|
20823
|
+
}
|
|
20824
|
+
else {
|
|
20825
|
+
this.clearCloseTransition();
|
|
20826
|
+
}
|
|
20827
|
+
this.syncDocKeyDownListener();
|
|
20828
|
+
if (oldValue && !newValue)
|
|
20829
|
+
this.focusToggleAfterClose();
|
|
20830
|
+
if (!oldValue && newValue)
|
|
20831
|
+
this.focusDrawerOnOpen();
|
|
20832
|
+
}
|
|
20833
|
+
connectedCallback() {
|
|
20834
|
+
if (typeof window !== 'undefined') {
|
|
20835
|
+
this.mobileMq = window.matchMedia(SIDE_NAV_MOBILE_MQ);
|
|
20836
|
+
this.mobileMq.addEventListener('change', this.onViewportChange);
|
|
20837
|
+
}
|
|
20838
|
+
this.syncDocKeyDownListener();
|
|
20839
|
+
}
|
|
20840
|
+
componentDidLoad() {
|
|
20841
|
+
if (this.open) {
|
|
20842
|
+
this.syncDocKeyDownListener();
|
|
20843
|
+
this.focusDrawerOnOpen();
|
|
20844
|
+
}
|
|
20845
|
+
}
|
|
20846
|
+
disconnectedCallback() {
|
|
20847
|
+
var _a;
|
|
20848
|
+
if (this.toggleFocusTimeoutId !== undefined) {
|
|
20849
|
+
clearTimeout(this.toggleFocusTimeoutId);
|
|
20850
|
+
this.toggleFocusTimeoutId = undefined;
|
|
20851
|
+
}
|
|
20852
|
+
if (this.drawerFocusTimeoutId !== undefined) {
|
|
20853
|
+
clearTimeout(this.drawerFocusTimeoutId);
|
|
20854
|
+
this.drawerFocusTimeoutId = undefined;
|
|
20855
|
+
}
|
|
20856
|
+
this.clearCloseTransition();
|
|
20857
|
+
(_a = this.mobileMq) === null || _a === void 0 ? void 0 : _a.removeEventListener('change', this.onViewportChange);
|
|
20858
|
+
this.mobileMq = undefined;
|
|
20859
|
+
this.removeDocKeyDownListener();
|
|
20860
|
+
}
|
|
20861
|
+
async toggle() {
|
|
20862
|
+
this.setOpenState(!this.open);
|
|
20863
|
+
}
|
|
20864
|
+
async setOpen(open) {
|
|
20865
|
+
this.setOpenState(open);
|
|
20866
|
+
}
|
|
20867
|
+
removeDocKeyDownListener() {
|
|
20868
|
+
this.el.ownerDocument.removeEventListener('keydown', this.onDocKeyDown, false);
|
|
20869
|
+
}
|
|
20870
|
+
syncDocKeyDownListener() {
|
|
20871
|
+
this.removeDocKeyDownListener();
|
|
20872
|
+
if (this.isMobileDrawerActive()) {
|
|
20873
|
+
this.el.ownerDocument.addEventListener('keydown', this.onDocKeyDown, false);
|
|
20874
|
+
}
|
|
20875
|
+
}
|
|
20876
|
+
isBelowMdBreakpoint() {
|
|
20877
|
+
var _a, _b;
|
|
20878
|
+
return (_b = (_a = this.mobileMq) === null || _a === void 0 ? void 0 : _a.matches) !== null && _b !== void 0 ? _b : false;
|
|
20879
|
+
}
|
|
20880
|
+
isMobileDrawerActive() {
|
|
20881
|
+
return (this.open || this.drawerClosing) && this.isBelowMdBreakpoint();
|
|
20882
|
+
}
|
|
20883
|
+
clearCloseTransition() {
|
|
20884
|
+
if (this.closeTransitionTimeoutId !== undefined) {
|
|
20885
|
+
clearTimeout(this.closeTransitionTimeoutId);
|
|
20886
|
+
this.closeTransitionTimeoutId = undefined;
|
|
20887
|
+
}
|
|
20888
|
+
this.drawerClosing = false;
|
|
20889
|
+
}
|
|
20890
|
+
shouldYieldFocusToExternalModal() {
|
|
20891
|
+
const active = this.el.ownerDocument.activeElement;
|
|
20892
|
+
if (!active || this.el.contains(active))
|
|
20893
|
+
return false;
|
|
20894
|
+
return active.closest('[aria-modal="true"]') !== null;
|
|
20895
|
+
}
|
|
20896
|
+
anyDescendantPopoverIsOpen() {
|
|
20897
|
+
const hosts = this.el.querySelectorAll('xpl-popover');
|
|
20898
|
+
for (let i = 0; i < hosts.length; i += 1) {
|
|
20899
|
+
const inner = hosts[i].querySelector('.xpl-popover');
|
|
20900
|
+
if (inner === null || inner === void 0 ? void 0 : inner.classList.contains('xpl-popover--is-open')) {
|
|
20901
|
+
return true;
|
|
20902
|
+
}
|
|
20903
|
+
}
|
|
20904
|
+
return false;
|
|
20905
|
+
}
|
|
20906
|
+
setOpenState(open) {
|
|
20907
|
+
const wasOpen = this.open;
|
|
20908
|
+
if (open === wasOpen)
|
|
20909
|
+
return;
|
|
20910
|
+
this.open = open;
|
|
20911
|
+
this.openChange.emit(open);
|
|
20912
|
+
if (wasOpen && !open)
|
|
20913
|
+
this.focusToggleAfterClose();
|
|
20914
|
+
}
|
|
20915
|
+
getFocusableElements() {
|
|
20916
|
+
const selector = 'button:not([disabled]), a[href]:not([tabindex="-1"]), input:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
20917
|
+
const active = this.el.ownerDocument.activeElement;
|
|
20918
|
+
return Array.from(this.el.querySelectorAll(selector)).filter((node) => !node.closest('[inert]') && (node.offsetParent !== null || node === active));
|
|
20919
|
+
}
|
|
20920
|
+
trapTabKey(e) {
|
|
20921
|
+
if (this.shouldYieldFocusToExternalModal())
|
|
20922
|
+
return;
|
|
20923
|
+
const focusable = this.getFocusableElements();
|
|
20924
|
+
if (focusable.length === 0)
|
|
20925
|
+
return;
|
|
20926
|
+
const first = focusable[0];
|
|
20927
|
+
const last = focusable[focusable.length - 1];
|
|
20928
|
+
const active = this.el.ownerDocument.activeElement;
|
|
20929
|
+
if (e.shiftKey) {
|
|
20930
|
+
if (active === first || !this.el.contains(active)) {
|
|
20931
|
+
e.preventDefault();
|
|
20932
|
+
last.focus();
|
|
20933
|
+
}
|
|
20934
|
+
}
|
|
20935
|
+
else if (active === last || !this.el.contains(active)) {
|
|
20936
|
+
e.preventDefault();
|
|
20937
|
+
first.focus();
|
|
20938
|
+
}
|
|
20475
20939
|
}
|
|
20476
20940
|
render() {
|
|
20477
|
-
return (h(Host, { key: '
|
|
20941
|
+
return (h(Host, { key: 'fe3b0b9e5f9facf3f7fa469a8928d7ed8971e6f5', class: {
|
|
20478
20942
|
'xpl-side-nav': true,
|
|
20479
|
-
|
|
20943
|
+
'xpl-side-nav--open': this.open,
|
|
20944
|
+
} }, h("xpl-button", { key: '09d0de65b9a40446a4801087e91c1bf3e1d3989a', class: "xpl-side-nav__toggle", variant: "tertiary", iconOnly: true, icon: this.open ? 'sidebar-left-hide' : 'sidebar-left-show', "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Close navigation menu' : 'Open navigation menu', onClick: this.onToggleClick }), h("div", { key: '3274980b1cb4867d163e83c80520e44bcc8d0121', class: "xpl-side-nav__wrapper" }, h("nav", { key: '06ce207917af66ff8f238c6cc85e8a8d5f47efbc', class: "xpl-side-nav__content", "aria-label": this.label }, h("div", { key: 'ce08165951c7b40fc21e846f6dfe7ca44b57326d', class: "xpl-side-nav__section" }, h("slot", { key: 'da65836d8006756b3a0d408d343b445a3bccb271', name: "section" })), h("div", { key: '93b522d531086a914d2cd53fe859da2436df9552', class: "xpl-side-nav__footer" }, h("slot", { key: 'a2cce3bec1d5269316388ede23934d2cfb835cf9', name: "nav-footer" })))), h("xpl-backdrop", { key: 'e98662f2e022d9d9edfa16b2c62d3ca40755b829', class: "xpl-side-nav__backdrop", onClick: this.onBackdropClick })));
|
|
20480
20945
|
}
|
|
20946
|
+
get el() { return getElement(this); }
|
|
20947
|
+
static get watchers() { return {
|
|
20948
|
+
"open": [{
|
|
20949
|
+
"onOpenChanged": 0
|
|
20950
|
+
}]
|
|
20951
|
+
}; }
|
|
20481
20952
|
};
|
|
20482
20953
|
|
|
20483
20954
|
const SideNavItem = class {
|
|
@@ -20485,6 +20956,7 @@ const SideNavItem = class {
|
|
|
20485
20956
|
registerInstance(this, hostRef);
|
|
20486
20957
|
this.expandedChange = createEvent(this, "expandedChange", 7);
|
|
20487
20958
|
this.navClick = createEvent(this, "navClick", 7);
|
|
20959
|
+
this.hasTrailingSlot = false;
|
|
20488
20960
|
this.disabled = false;
|
|
20489
20961
|
this.expanded = false;
|
|
20490
20962
|
this.hasChildren = false;
|
|
@@ -20506,11 +20978,66 @@ const SideNavItem = class {
|
|
|
20506
20978
|
syncLinkHasChildrenExclusivity() {
|
|
20507
20979
|
this.enforceLinkExcludesHasChildren();
|
|
20508
20980
|
}
|
|
20981
|
+
connectedCallback() {
|
|
20982
|
+
this.syncTrailingSlot();
|
|
20983
|
+
this.connectTrailingSlotObserver();
|
|
20984
|
+
}
|
|
20985
|
+
disconnectedCallback() {
|
|
20986
|
+
if (this.trailingSlotSyncTimeoutId !== undefined) {
|
|
20987
|
+
clearTimeout(this.trailingSlotSyncTimeoutId);
|
|
20988
|
+
this.trailingSlotSyncTimeoutId = undefined;
|
|
20989
|
+
}
|
|
20990
|
+
this.disconnectTrailingSlotObserver();
|
|
20991
|
+
}
|
|
20509
20992
|
componentWillLoad() {
|
|
20510
20993
|
this.syncLinkHasChildrenExclusivity();
|
|
20994
|
+
this.syncTrailingSlot();
|
|
20511
20995
|
}
|
|
20512
20996
|
componentWillRender() {
|
|
20513
20997
|
this.syncLinkHasChildrenExclusivity();
|
|
20998
|
+
this.disconnectTrailingSlotObserver();
|
|
20999
|
+
}
|
|
21000
|
+
componentDidRender() {
|
|
21001
|
+
this.scheduleTrailingSlotSync();
|
|
21002
|
+
}
|
|
21003
|
+
connectTrailingSlotObserver() {
|
|
21004
|
+
this.disconnectTrailingSlotObserver();
|
|
21005
|
+
if (typeof MutationObserver === 'undefined') {
|
|
21006
|
+
return;
|
|
21007
|
+
}
|
|
21008
|
+
this.trailingSlotObserver = new MutationObserver(() => {
|
|
21009
|
+
this.scheduleTrailingSlotSync();
|
|
21010
|
+
});
|
|
21011
|
+
this.trailingSlotObserver.observe(this.el, {
|
|
21012
|
+
childList: true,
|
|
21013
|
+
subtree: true,
|
|
21014
|
+
attributes: true,
|
|
21015
|
+
attributeFilter: ['slot'],
|
|
21016
|
+
});
|
|
21017
|
+
}
|
|
21018
|
+
disconnectTrailingSlotObserver() {
|
|
21019
|
+
var _a;
|
|
21020
|
+
(_a = this.trailingSlotObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21021
|
+
this.trailingSlotObserver = undefined;
|
|
21022
|
+
}
|
|
21023
|
+
scheduleTrailingSlotSync() {
|
|
21024
|
+
if (this.trailingSlotSyncTimeoutId !== undefined) {
|
|
21025
|
+
clearTimeout(this.trailingSlotSyncTimeoutId);
|
|
21026
|
+
}
|
|
21027
|
+
this.trailingSlotSyncTimeoutId = setTimeout(() => {
|
|
21028
|
+
this.trailingSlotSyncTimeoutId = undefined;
|
|
21029
|
+
if (!this.el.isConnected) {
|
|
21030
|
+
return;
|
|
21031
|
+
}
|
|
21032
|
+
this.syncTrailingSlot();
|
|
21033
|
+
this.connectTrailingSlotObserver();
|
|
21034
|
+
}, 0);
|
|
21035
|
+
}
|
|
21036
|
+
syncTrailingSlot() {
|
|
21037
|
+
const next = Array.from(this.el.querySelectorAll('[slot="trailing"]')).some((node) => node.closest('xpl-side-nav-item') === this.el);
|
|
21038
|
+
if (next !== this.hasTrailingSlot) {
|
|
21039
|
+
this.hasTrailingSlot = next;
|
|
21040
|
+
}
|
|
20514
21041
|
}
|
|
20515
21042
|
enforceLinkExcludesHasChildren() {
|
|
20516
21043
|
if (!this.link)
|
|
@@ -20524,15 +21051,20 @@ const SideNavItem = class {
|
|
|
20524
21051
|
}
|
|
20525
21052
|
render() {
|
|
20526
21053
|
var _a;
|
|
20527
|
-
const
|
|
21054
|
+
const showAutoChevron = this.hasChildren && !this.hasTrailingSlot;
|
|
21055
|
+
const buttonClass = {
|
|
20528
21056
|
'xpl-side-nav-item__link': true,
|
|
20529
21057
|
expanded: this.expanded,
|
|
20530
21058
|
selected: this.selected,
|
|
20531
21059
|
};
|
|
20532
|
-
return (h(Host, { key: '
|
|
21060
|
+
return (h(Host, { key: 'd20950311a1dd97fff43eac3908a64a43aa2a332', class: {
|
|
20533
21061
|
'xpl-side-nav-item': true,
|
|
20534
21062
|
'xpl-side-nav-item--link-disabled': this.link && this.disabled,
|
|
20535
|
-
} }, this.link ? (h("slot", null)) : (h("button", { type: "button", class:
|
|
21063
|
+
} }, this.link ? (h("slot", null)) : (h("button", { type: "button", class: buttonClass, "aria-current": this.selected ? 'page' : undefined, "aria-expanded": this.hasChildren ? (this.expanded ? 'true' : 'false') : undefined, onClick: this.handleClick, disabled: this.disabled }, h("span", { class: "xpl-side-nav-item__leading" }, h("slot", { name: "leading" }, this.icon ? (h("xpl-icon", { icon: this.icon, size: 16 })) : null)), h("span", { class: "xpl-side-nav-item__label" }, (_a = this.label) !== null && _a !== void 0 ? _a : ''), (this.hasTrailingSlot || this.hasChildren) && (h("span", { class: {
|
|
21064
|
+
'xpl-side-nav-item__trailing': true,
|
|
21065
|
+
'xpl-side-nav-item__trailing--chevron': showAutoChevron,
|
|
21066
|
+
expanded: showAutoChevron && this.expanded,
|
|
21067
|
+
}, "aria-hidden": showAutoChevron ? 'true' : undefined }, h("slot", { name: "trailing" }, showAutoChevron ? (h("xpl-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: 16 })) : null))))), this.hasChildren && !this.link && (h("div", { key: 'b3aa86bdacae535dae31b93fa6f5013614f682bc', class: `xpl-side-nav-item__children ${this.expanded ? 'expanded' : ''}`, inert: !this.expanded ? true : undefined }, h("div", { key: '91be28afd11a250696e003d0a8abf70f6e8b35c6', class: "xpl-side-nav-item__children-inner" }, h("slot", { key: '1536a898b39fd1f30c26d9d71f79726e377ee8f2' }))))));
|
|
20536
21068
|
}
|
|
20537
21069
|
get el() { return getElement(this); }
|
|
20538
21070
|
static get watchers() { return {
|
|
@@ -20552,7 +21084,7 @@ const Skeleton = class {
|
|
|
20552
21084
|
this.size = 'custom';
|
|
20553
21085
|
}
|
|
20554
21086
|
render() {
|
|
20555
|
-
return (h(Host, { key: '
|
|
21087
|
+
return (h(Host, { key: '2cb86d68bd14f87ab1a6467716ec456cc1bfd6a2', class: {
|
|
20556
21088
|
'xpl-skeleton': true,
|
|
20557
21089
|
[`xpl-skeleton--shape-${this.shape}`]: true,
|
|
20558
21090
|
[`xpl-skeleton--size-${this.size}`]: true,
|
|
@@ -20595,7 +21127,7 @@ const Slideout = class {
|
|
|
20595
21127
|
this.handleScroll();
|
|
20596
21128
|
}
|
|
20597
21129
|
render() {
|
|
20598
|
-
return (h(Host, { key: '
|
|
21130
|
+
return (h(Host, { key: 'f42f8f576d4e8387511d0cd5e5a24913606dce5e', class: "xpl-slideout" }, this.backdrop && this.isOpen && (h("xpl-backdrop", { key: '5e80a7f340487ee653d266edc8d7cbd7a1ae5a52', onClick: this.handleClose })), h("aside", { key: 'beb647a98119f53d01a911af9df5ea97babad7c1', class: `slideout slideout--${!this.isOpen && 'closed'}` }, h("header", { key: 'ef3ba3c61fd5542696c271d0d3d3d40214a2605e', class: "header" }, h("div", { key: 'ed343a1553fb5da4d5db9f6a746f89eadf258f68', class: "title" }, h("slot", { key: '0793234025cb9ed92e45805f74ad85928c71f585', name: "title" }), h("xpl-button", { key: 'b9049478a5ac330b6439fc5a71440db634d51b5e', class: "close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleClose }, h("xpl-icon", { key: '1dad5a0fc6d0b1888a450639b9f40d694b9942db', icon: "x" }))), h("div", { key: 'c5f3f124e81ce4b916af4dd114c8ce9b45d567c7', class: "subtitle" }, h("slot", { key: '41d10f0742562a8dc824b45b2987d45dda76abb4', name: "subtitle" })), h("div", { key: '5a60f3f9e9c5fd86d8262f47eea7b83f64e149a2', class: "search" }, h("slot", { key: '80f950ece315afe975aed51ac8a10804670eb8fe', name: "search" }))), h("xpl-divider", { key: '02e53e01c2f148c8bbd54b086bac669ee65014ba', tier: 0, class: "divider top" }), h("article", { key: '5425462fe1ef6104c5d8c7d5c4c892cf77349d38', class: "content", tabIndex: 0 }, h("slot", { key: '370dd088e84a33112f7f3e1c46341f521430485a', name: "content" })), this.showFooter && (h("footer", { key: 'becd0aea10f8a35af12cedae53814b1c9db92669' }, h("xpl-divider", { key: '5f53e23fbd9330d1b28ba705a7b9438ba098a6a7', tier: 0, class: "divider bottom" }), h("div", { key: '00c0c39b04999a12b47d5fe35bceae2ac8dc1def', class: "footer" }, h("slot", { key: '024d1c72ac7ab44b93608020ef20619b504d6725', name: "tertiary" }), h("slot", { key: '199910e96905946e393fcd600ddc7878701be5fb', name: "secondary" }), h("slot", { key: '55f351a5bb4c18833c5db4408ce01b01c1853fe3', name: "primary" })))))));
|
|
20599
21131
|
}
|
|
20600
21132
|
get el() { return getElement(this); }
|
|
20601
21133
|
static get watchers() { return {
|
|
@@ -20760,6 +21292,7 @@ const Spotlight = class {
|
|
|
20760
21292
|
this.hasFloatingPosition = false;
|
|
20761
21293
|
this.hasImageSlotContent = false;
|
|
20762
21294
|
this.hasTitleSlotContent = false;
|
|
21295
|
+
this.dialogLabelId = undefined;
|
|
20763
21296
|
this.isVisible = false;
|
|
20764
21297
|
this.resolvedAnchorPosition = 'top-left';
|
|
20765
21298
|
this.actionLayout = 'default';
|
|
@@ -20936,6 +21469,7 @@ const Spotlight = class {
|
|
|
20936
21469
|
this.hasBodySlotContent = this.hasSlottedContent('body');
|
|
20937
21470
|
this.hasImageSlotContent = this.hasSlottedContent('image');
|
|
20938
21471
|
this.hasTitleSlotContent = this.hasSlottedContent('title');
|
|
21472
|
+
this.dialogLabelId = this.getDialogLabelId();
|
|
20939
21473
|
if (this.isOpenEnabled) {
|
|
20940
21474
|
this.previousFocus =
|
|
20941
21475
|
document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
@@ -20966,6 +21500,10 @@ const Spotlight = class {
|
|
|
20966
21500
|
if (this.isOpenEnabled) {
|
|
20967
21501
|
this.syncTitleSlotIds();
|
|
20968
21502
|
}
|
|
21503
|
+
const nextLabelId = this.getDialogLabelId();
|
|
21504
|
+
if (this.dialogLabelId !== nextLabelId) {
|
|
21505
|
+
this.dialogLabelId = nextLabelId;
|
|
21506
|
+
}
|
|
20969
21507
|
if (this.pendingEnterVisible && this.isOpenEnabled) {
|
|
20970
21508
|
this.pendingEnterVisible = false;
|
|
20971
21509
|
this.enterVisibleFrameId = requestAnimationFrame(() => {
|
|
@@ -21134,10 +21672,13 @@ const Spotlight = class {
|
|
|
21134
21672
|
return fromHost;
|
|
21135
21673
|
}
|
|
21136
21674
|
const slot = this.el.querySelector('slot[name="title"]');
|
|
21137
|
-
if (
|
|
21138
|
-
|
|
21675
|
+
if (slot && typeof slot.assignedNodes === 'function') {
|
|
21676
|
+
const assigned = Array.from(slot.assignedNodes({ flatten: true })).find((node) => node.nodeType === Node.ELEMENT_NODE);
|
|
21677
|
+
if (assigned) {
|
|
21678
|
+
return assigned;
|
|
21679
|
+
}
|
|
21139
21680
|
}
|
|
21140
|
-
return (
|
|
21681
|
+
return (_a = this.el.querySelector('[slot="title"]')) !== null && _a !== void 0 ? _a : null;
|
|
21141
21682
|
}
|
|
21142
21683
|
getDialogLabelId() {
|
|
21143
21684
|
if (this.hasTitleSlotContent) {
|
|
@@ -21290,7 +21831,7 @@ const Spotlight = class {
|
|
|
21290
21831
|
'xpl-spotlight--only-primary-action': showActions && showPrimaryAction && !showSecondaryAction,
|
|
21291
21832
|
'xpl-spotlight--only-secondary-action': showActions && showSecondaryAction && !showPrimaryAction,
|
|
21292
21833
|
'xpl-spotlight--visible': this.isVisible,
|
|
21293
|
-
}, role: "dialog", "aria-modal": "false", "aria-label": this.
|
|
21834
|
+
}, role: "dialog", "aria-modal": "false", "aria-label": this.dialogLabelId ? undefined : '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: true, "aria-label": "Dismiss tour step", onClick: this.handleDismissClick }, h("xpl-icon", { icon: "xmark", size: 16 })))), h("div", { class: "xpl-spotlight__frame" }, h("div", { class: {
|
|
21294
21835
|
'xpl-spotlight__image-container': true,
|
|
21295
21836
|
'xpl-spotlight__image-container--empty': !this.hasImageSlotContent,
|
|
21296
21837
|
'xpl-spotlight__image-container--hidden': !showImage,
|
|
@@ -21423,10 +21964,10 @@ const TabPanel = class {
|
|
|
21423
21964
|
const t = (_a = this.target) !== null && _a !== void 0 ? _a : '';
|
|
21424
21965
|
const panelId = tabPanelDomId(groupId, t);
|
|
21425
21966
|
const labelledBy = tabTriggerId(groupId, t);
|
|
21426
|
-
return (h(Host, { key: '
|
|
21967
|
+
return (h(Host, { key: '90f81b56f9d1d482ebe9bfb3e11a9b796bdbc5d2', "aria-labelledby": labelledBy, class: {
|
|
21427
21968
|
'xpl-tab-panel': true,
|
|
21428
21969
|
'xpl-tab-panel--selected': this.selected,
|
|
21429
|
-
}, id: panelId, role: "tabpanel" }, h("slot", { key: '
|
|
21970
|
+
}, id: panelId, role: "tabpanel" }, h("slot", { key: 'b2de2e79c06bde4bde5c99cc3d91045b1e73b72e' })));
|
|
21430
21971
|
}
|
|
21431
21972
|
get el() { return getElement(this); }
|
|
21432
21973
|
};
|
|
@@ -21454,29 +21995,23 @@ const Table = class {
|
|
|
21454
21995
|
this.sortTypeArray = [];
|
|
21455
21996
|
this.selectAllValue = Math.random().toString(36).slice(2);
|
|
21456
21997
|
this.selectAll = (e) => {
|
|
21457
|
-
const
|
|
21458
|
-
if (!(target instanceof HTMLInputElement))
|
|
21459
|
-
return;
|
|
21460
|
-
const { checked } = target;
|
|
21998
|
+
const checked = e.detail;
|
|
21461
21999
|
this.areAllSelected = checked;
|
|
21462
22000
|
this.selected =
|
|
21463
22001
|
this.selectedValues.length > 0
|
|
21464
|
-
?
|
|
21465
|
-
Array.from(this.el.querySelectorAll('tbody td:first-child input')).map((input) => checked ? input === null || input === void 0 ? void 0 : input.value : checked)
|
|
22002
|
+
? Array.from(this.el.querySelectorAll('tbody td:first-child xpl-checkbox')).map((checkbox) => (checked ? checkbox.value : checked))
|
|
21466
22003
|
: this.selected.map(() => checked);
|
|
21467
22004
|
this.onChange();
|
|
21468
22005
|
};
|
|
21469
22006
|
this.selectOne = (e, checkboxIdx) => {
|
|
21470
|
-
const
|
|
21471
|
-
|
|
21472
|
-
return;
|
|
21473
|
-
const { checked, value } = target;
|
|
21474
|
-
this.areAllSelected = false;
|
|
22007
|
+
const checked = e.detail;
|
|
22008
|
+
const { value } = e.target;
|
|
21475
22009
|
this.selected = this.selected.map((v, selectedIdx) => {
|
|
21476
22010
|
if (selectedIdx !== checkboxIdx)
|
|
21477
22011
|
return v;
|
|
21478
22012
|
return this.selectedValues.length > 0 ? (checked ? value : checked) : checked;
|
|
21479
22013
|
});
|
|
22014
|
+
this.areAllSelected = this.selected.every((v) => !!v);
|
|
21480
22015
|
this.onChange();
|
|
21481
22016
|
};
|
|
21482
22017
|
this.onChange = () => {
|
|
@@ -21567,27 +22102,24 @@ const Table = class {
|
|
|
21567
22102
|
(!this.sortTypeArray || this.sortTypeArray.length !== this.columns.length)) {
|
|
21568
22103
|
this.sortTypeArray = this.columns.map(() => null);
|
|
21569
22104
|
}
|
|
21570
|
-
return (h(Host, { key: '
|
|
22105
|
+
return (h(Host, { key: 'b2ed918c3c434b6403fe6d18619d0a1a5bf864bf' }, h("div", { key: 'd55accaecba09869f07dcc7030eca5cc1175dd95', class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => {
|
|
21571
22106
|
this.container = el;
|
|
21572
|
-
} }, h("table", { key: '
|
|
22107
|
+
} }, h("table", { key: '6406b92ee6717c80f5f363110fda38fa5bbe61ff', class: {
|
|
21573
22108
|
'xpl-table': true,
|
|
21574
22109
|
'xpl-table--striped': this.striped,
|
|
21575
22110
|
'xpl-table--freeze': this.freeze,
|
|
21576
22111
|
'xpl-table--has-scrolled': this.hasScrolled,
|
|
21577
|
-
} }, this.columns && (h("thead", { key: '
|
|
22112
|
+
} }, this.columns && (h("thead", { key: '2f89526153301be4ad9ba2f2ec2dac791b4702ae' }, this.columns.map((column, i) => {
|
|
21578
22113
|
var _a;
|
|
21579
22114
|
const iconType = getIconType((_a = this.sortTypeArray) === null || _a === void 0 ? void 0 : _a[i]);
|
|
21580
22115
|
const isColumnSortable = !!(this.isSortable && this.sortableColumns[i]);
|
|
21581
|
-
return (h("th", null, h("label", { onClick: (e) => this.handleSort(e, isColumnSortable, i, column.replace(/ /g, '-').toLowerCase()), class: isColumnSortable ? 'cursor-pointer' : '' }, this.multiselect && i === 0 && (h("
|
|
21582
|
-
this.selected.some((a) => a), onClick: (e) => {
|
|
21583
|
-
|
|
21584
|
-
this.selectAll(e);
|
|
21585
|
-
}, type: "checkbox", value: `select-all-${this.selectAllValue}` })), column, isColumnSortable && !!this.sortTypeArray[i] && (h("xpl-icon", { icon: iconType, size: 16 })))));
|
|
21586
|
-
}))), h("tbody", { key: 'b13ca1d1a738de189d4f040dfd309187671b341d' }, this.rowData.map((row, rowNum) => (h("tr", { class: this.selected && this.selected[rowNum]
|
|
22116
|
+
return (h("th", null, h("label", { onClick: (e) => this.handleSort(e, isColumnSortable, i, column.replace(/ /g, '-').toLowerCase()), class: isColumnSortable ? 'cursor-pointer' : '' }, this.multiselect && i === 0 && (h("xpl-checkbox", { checked: this.areAllSelected, indeterminate: !this.areAllSelected &&
|
|
22117
|
+
this.selected.some((a) => a), onClick: (e) => e.stopPropagation(), onCheckboxChange: (e) => this.selectAll(e), value: `select-all-${this.selectAllValue}`, "aria-label": "Select all rows" })), column, isColumnSortable && !!this.sortTypeArray[i] && (h("xpl-icon", { icon: iconType, size: 16 })))));
|
|
22118
|
+
}))), h("tbody", { key: 'd1c762bc09191ac0b5b84ade9409d87a726f15f4' }, this.rowData.map((row, rowNum) => (h("tr", { class: this.selected && this.selected[rowNum]
|
|
21587
22119
|
? 'xpl-table-row-selected'
|
|
21588
|
-
: '' }, row.map((cell, i) => (h("td", null, this.multiselect && i === 0 ? (h("label",
|
|
22120
|
+
: '' }, row.map((cell, i) => (h("td", null, this.multiselect && i === 0 ? (h("label", null, h("xpl-checkbox", { checked: !!this.selected[rowNum], onCheckboxChange: (e) => this.selectOne(e, rowNum), value: this.selectedValues.length > 0
|
|
21589
22121
|
? this.selectedValues[rowNum]
|
|
21590
|
-
: `xpl-table-checkbox-${rowNum}` }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))))))))), ((_a = this.rowFooterData) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("tfoot", { key: '
|
|
22122
|
+
: `xpl-table-checkbox-${rowNum}`, "aria-label": `Select row ${rowNum + 1}` }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))))))))), ((_a = this.rowFooterData) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("tfoot", { key: '99e0e8cbe768f3c565d5fd6328c6e305483bf3f1' }, this.rowFooterData.map((row) => (h("tr", null, row.map((cell) => (h("td", null, h("div", { innerHTML: cell })))))))))))));
|
|
21591
22123
|
}
|
|
21592
22124
|
get el() { return getElement(this); }
|
|
21593
22125
|
static get watchers() { return {
|
|
@@ -21923,11 +22455,11 @@ const Tabs = class {
|
|
|
21923
22455
|
}
|
|
21924
22456
|
render() {
|
|
21925
22457
|
const isSegment = this.type === 'segment';
|
|
21926
|
-
return (h(Host, { key: '
|
|
22458
|
+
return (h(Host, { key: 'a030a35038572d70f3fb2b979adbaa56d77a1d49', class: {
|
|
21927
22459
|
'xpl-tabs': true,
|
|
21928
22460
|
'xpl-tabs--full-width': this.fullWidth,
|
|
21929
22461
|
'xpl-tabs--segment': isSegment,
|
|
21930
|
-
}, "data-choices-tick": this.choicesTick }, h("xpl-select", { key: '
|
|
22462
|
+
}, "data-choices-tick": this.choicesTick }, h("xpl-select", { key: '8260974c68020dea475f6e0780c766abfca94fda', classNames: this.mobileSelectClassNames(), choices: this.renderChoices(), disabled: this.disabled, selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
|
|
21931
22463
|
if (event.detail) {
|
|
21932
22464
|
this.isMobileSelectChange = true;
|
|
21933
22465
|
}
|
|
@@ -21938,17 +22470,17 @@ const Tabs = class {
|
|
|
21938
22470
|
this.tabChange.emit(selectedValue);
|
|
21939
22471
|
this.isMobileSelectChange = false;
|
|
21940
22472
|
}
|
|
21941
|
-
} }), h("nav", { key: '
|
|
22473
|
+
} }), h("nav", { key: '73a1e4ad4830b9b22b4eee00bad5793705cf3ac3', "aria-orientation": "horizontal", class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
|
|
21942
22474
|
this.headingsContainerRef = el;
|
|
21943
22475
|
}, onTabChange: (event) => {
|
|
21944
22476
|
event.stopPropagation();
|
|
21945
22477
|
this.isMobileSelectChange = false;
|
|
21946
22478
|
this.handleTabChange(event.detail);
|
|
21947
22479
|
this.tabChange.emit(event.detail);
|
|
21948
|
-
} }, !isSegment && (h("div", { key: '
|
|
22480
|
+
} }, !isSegment && (h("div", { key: '8008620a99470824fe61ea535fb46a3dea75afc3', class: "xpl-tabs__active-bar", style: {
|
|
21949
22481
|
transform: `translateX(${this.activeBarPosition.left}px)`,
|
|
21950
22482
|
width: `${this.activeBarPosition.width}px`,
|
|
21951
|
-
} })), h("slot", { key: '
|
|
22483
|
+
} })), h("slot", { key: 'be53fe549e5b9c887ad90cbafcc8f95631361fee', name: "heading" })), h("div", { key: 'd97b138b5fcb0207684698752ec72c1dcd9464a3', class: "xpl-tabs__panels" }, h("slot", { key: 'fe40edbf2c9f20d02d75ab62a142e7df04ef0afd', name: "panel" }))));
|
|
21952
22484
|
}
|
|
21953
22485
|
get el() { return getElement(this); }
|
|
21954
22486
|
static get watchers() { return {
|
|
@@ -22094,7 +22626,7 @@ const Tag = class {
|
|
|
22094
22626
|
}
|
|
22095
22627
|
render() {
|
|
22096
22628
|
const dragEnabled = this.isDraggable && !this.disabled;
|
|
22097
|
-
return (h(Host, { key: '
|
|
22629
|
+
return (h(Host, { key: '13a500c63b29cb19a53e2abb69f86f62164d79d2', class: {
|
|
22098
22630
|
'xpl-tag': true,
|
|
22099
22631
|
'xpl-tag-container': true,
|
|
22100
22632
|
'xpl-tag--disabled': this.disabled,
|
|
@@ -22102,7 +22634,7 @@ const Tag = class {
|
|
|
22102
22634
|
'xpl-tag--dragging': this.isDragging,
|
|
22103
22635
|
'xpl-tag--draggable': dragEnabled,
|
|
22104
22636
|
'xpl-tag--sm': this.size === 'sm',
|
|
22105
|
-
}, onDragOver: dragEnabled ? this.handleDragOver : undefined, onDragEnter: dragEnabled ? this.handleDragEnter : undefined, onDragStart: this.isDraggable ? this.handleHostDragStart : undefined }, dragEnabled ? (h("div", { class: "xpl-tag__content xpl-tag", role: "button", tabIndex: 0, draggable: true, "aria-grabbed": String(this.isDragging), onClick: this.handleTagClick, onKeyDown: this.handleContentKeyDown, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd }, h("slot", null))) : (h("button", { class: "xpl-tag__content xpl-tag", type: "button", disabled: this.disabled, onClick: this.handleTagClick }, h("slot", null))), this.dismissible && (h("button", { key: '
|
|
22637
|
+
}, onDragOver: dragEnabled ? this.handleDragOver : undefined, onDragEnter: dragEnabled ? this.handleDragEnter : undefined, onDragStart: this.isDraggable ? this.handleHostDragStart : undefined }, dragEnabled ? (h("div", { class: "xpl-tag__content xpl-tag", role: "button", tabIndex: 0, draggable: true, "aria-grabbed": String(this.isDragging), onClick: this.handleTagClick, onKeyDown: this.handleContentKeyDown, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd }, h("slot", null))) : (h("button", { class: "xpl-tag__content xpl-tag", type: "button", disabled: this.disabled, onClick: this.handleTagClick }, h("slot", null))), this.dismissible && (h("button", { key: 'ceb929c98cb7a66390cf1c09b32535696e4d2b04', class: "xpl-tag__dismiss xpl-tag__close", type: "button", draggable: false, disabled: this.disabled, "aria-label": `Dismiss ${this.dismissAriaLabelSuffix}`, onClick: this.handleDismissClick }, h("xpl-icon", { key: '8a5a6f13014334fee2193703674bdfd49710a265', icon: "xmark", size: 10 })))));
|
|
22106
22638
|
}
|
|
22107
22639
|
get el() { return getElement(this); }
|
|
22108
22640
|
static get watchers() { return {
|
|
@@ -22152,14 +22684,14 @@ const Toast = class {
|
|
|
22152
22684
|
}
|
|
22153
22685
|
render() {
|
|
22154
22686
|
var _a;
|
|
22155
|
-
return (h(Host, { key: '
|
|
22687
|
+
return (h(Host, { key: '8b53818d7882160ab13ba700520c2c54f3d0b630', class: `xpl-toast xpl-toast--${this.variant}`, onAnimationEnd: this.handleAnimationEnd }, h("div", { key: '6cc47a618684dacf1031bdacfc6cb9134db659e1', class: "xpl-toast__left" }, this.showIcon && (h("div", { key: '2360e3bb5d173d97fb63e3ff2069ef6ac53f2a7d', class: `xpl-toast__icon xpl-toast__icon--${this.variant}` }, this.getIcon())), h("div", { key: 'e4c318a21bf17d951deade92c9288791b6664a4f', class: "xpl-toast__notification" }, h("p", { key: '6697407277294d71106c9429f5822966572c1f06', class: "xpl-toast__title" }, h("slot", { key: '108769cc76b1ed7b42ad436885831d9e7fd4412f', name: "title" })), this.caption !== '' && (h("p", { key: '7570a85eaebbd9c236841541557324b45c86dab6', class: "xpl-toast__caption" }, (_a = this.caption) === null || _a === void 0 ? void 0 : _a.substring(0, 85))))), h("div", { key: 'b5f98b93c56f877d6c749c82550aad3b86bb3786', class: "xpl-toast__action", ref: (el) => {
|
|
22156
22688
|
this.actionSlot = el;
|
|
22157
|
-
} }, h("slot", { key: '
|
|
22689
|
+
} }, h("slot", { key: 'c2007b4a30836c3a1b071539029c1290875bdd2c', name: "action" })), this.dismissable && (h("div", { key: 'f0706d95d8091beb32dfbe1535ebbdfb1ce9a018', class: "xpl-toast__close" }, h("button", { key: 'b1415be4d68035d21857f688f16558470cca2f81', tabIndex: 0, onClick: this.dismiss }, h("xpl-icon", { key: '61ba3accb69a2637190b5ee3a4f7105fdf896af7', icon: "x" }))))));
|
|
22158
22690
|
}
|
|
22159
22691
|
get el() { return getElement(this); }
|
|
22160
22692
|
};
|
|
22161
22693
|
|
|
22162
|
-
const TooltipArrow = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "
|
|
22694
|
+
const TooltipArrow = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "13" }, h("path", { d: "M0.5 5h15l-7.5 7.5L0.5 5Z", fill: "white", stroke: "none", class: "xpl-tooltip-arrow__fill" }), h("path", { d: "M0.5 5 L8 12.5 L15.5 5", fill: "none", stroke: "black", "stroke-width": "1", class: "xpl-tooltip-arrow__stroke" })));
|
|
22163
22695
|
|
|
22164
22696
|
const Tooltip = class {
|
|
22165
22697
|
constructor(hostRef) {
|
|
@@ -22168,7 +22700,7 @@ const Tooltip = class {
|
|
|
22168
22700
|
this.hideArrow = false;
|
|
22169
22701
|
}
|
|
22170
22702
|
render() {
|
|
22171
|
-
return (h(Host, { key: '
|
|
22703
|
+
return (h(Host, { key: 'c060588959e22e35117e15925ed57e951b4fe51d' }, h("div", { key: '69572a540e2dcf3c819a2af20b6e900ea8d483c9', class: "xpl-tooltip-container" }, h("slot", { key: 'b767815cc05aec2ce3e3f0411602659d142ce64f' }), h("div", { key: 'eb80138e423992a8b5f8f823029f1a57993e5355', class: `xpl-tooltip xpl-tooltip--${this.position}` }, this.text, !this.hideArrow && (h("div", { key: '01c556ac6491bca26550dd1dc34689ff09e2d418', class: "xpl-tooltip-arrow" }, h(TooltipArrow, { key: '8844c7e4b28132fc8a11c1a9ce6920061ae741b4' })))))));
|
|
22172
22704
|
}
|
|
22173
22705
|
};
|
|
22174
22706
|
|
|
@@ -22412,7 +22944,7 @@ const TopNav = class {
|
|
|
22412
22944
|
}
|
|
22413
22945
|
render() {
|
|
22414
22946
|
var _a, _b, _c, _d;
|
|
22415
|
-
return (h(Host, { key: '
|
|
22947
|
+
return (h(Host, { key: '6b22351e62f90d5fec04c0dafa5208d9a495b67b', class: {
|
|
22416
22948
|
'xpl-top-nav': true,
|
|
22417
22949
|
'xpl-top-nav--nav-control': Boolean(this.navControl),
|
|
22418
22950
|
'xpl-top-nav--open': this.open,
|
|
@@ -22420,15 +22952,15 @@ const TopNav = class {
|
|
|
22420
22952
|
'xpl-top-nav--has-brand': this.hasBrand,
|
|
22421
22953
|
'xpl-top-nav--has-user-menu': this.hasUserMenu,
|
|
22422
22954
|
dark: true,
|
|
22423
|
-
} }, h("nav", { key: '
|
|
22955
|
+
} }, h("nav", { key: '5f29a00b93b1affda6aaf900e42cc6ff33f1b90c', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : 'top-navigation-bar', class: "xpl-top-nav__bar" }, h("div", { key: 'fbe9cb0b1bc7d9bf9be1f04e64cb93ff24866879', class: "xpl-top-nav__inner-left" }, this.navControl && (h("button", { key: 'b22532e39a57f9a250617aa09e6e0dde6dfeb9e5', type: "button", class: "xpl-top-nav__nav-control", "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Close navigation menu' : 'Open navigation menu', onClick: this.onNavToggle }, h("xpl-icon", { key: 'a9f7dbb6287d3e11ea5b839bedb8d808c67bcd8e', class: "xpl-top-nav__control-icon", icon: "menu", size: 20 }))), this.hasBrand && (h("div", { key: 'c702fc39d186f37901c8c6b4e5d378eaee2faa99', class: "xpl-top-nav__brand-bar" }, h("xpl-top-nav-item", { key: '980b470563ee3d4e3e388cd089622041f307cd0b', class: "xpl-top-nav__brand", href: this.brandHref, onNavItemClick: this.onBrandNavItemClick }, ((_b = this.brandLogo) === null || _b === void 0 ? void 0 : _b.trim()) ? (h("img", { class: "xpl-top-nav__brand-logo", src: this.brandLogo, alt: ((_c = this.brandName) === null || _c === void 0 ? void 0 : _c.trim())
|
|
22424
22956
|
? this.brandName.trim()
|
|
22425
|
-
: 'Brand' })) : this.brandLogoSlotPresent ? (h("span", { class: "xpl-top-nav__brand-logo-slot" }, h("slot", { name: "brand-logo" }))) : null, ((_d = this.brandName) === null || _d === void 0 ? void 0 : _d.trim()) ? (h("span", { class: "xpl-top-nav__brand-name" }, this.brandName.trim())) : null))), h("div", { key: '
|
|
22957
|
+
: 'Brand' })) : this.brandLogoSlotPresent ? (h("span", { class: "xpl-top-nav__brand-logo-slot" }, h("slot", { name: "brand-logo" }))) : null, ((_d = this.brandName) === null || _d === void 0 ? void 0 : _d.trim()) ? (h("span", { class: "xpl-top-nav__brand-name" }, this.brandName.trim())) : null))), h("div", { key: '0740be056833bd15c798a44c5c3dbe80ed5e15fd', class: {
|
|
22426
22958
|
'xpl-top-nav__aside': true,
|
|
22427
22959
|
'xpl-nav-left': true,
|
|
22428
|
-
} }, h("div", { key: '
|
|
22960
|
+
} }, h("div", { key: 'ff4f4534944dc54df40c289e65a4ab7d75bd572e', class: "xpl-top-nav__left-primary", role: "list" }, h("slot", { key: 'fdec30ffc838d7e73788932aa6fef46fac2fe0ab', name: "left-aside" })))), h("div", { key: '69d5b669744ff3aeb0c4316f4d5b27b9c461652f', class: {
|
|
22429
22961
|
'xpl-top-nav__aside': true,
|
|
22430
22962
|
'xpl-nav-right': true,
|
|
22431
|
-
} }, h("div", { key: '
|
|
22963
|
+
} }, h("div", { key: '7ae70d39f31243b77f09af7b0e4327d0bb1b1dfd', class: "xpl-nav-right__list" }, h("div", { key: '7bafc8eab226ba0ff77ae98281d4665eb6b75fbe', class: "xpl-top-nav__right-rail" }, h("div", { key: '9914028435faebbd3d539d763b71500643017ebc', class: "xpl-top-nav__right-lead" }, h("slot", { key: '974117684ec371dc87264bfbc0da5e456adeec9b', name: "right-aside" })), this.hasUserMenu ? (h("div", { class: "xpl-top-nav__right-user" }, h("xpl-popover", { class: "xpl-top-nav__user-popover dark", position: "bottom-end", display: "menu" }, this.userMenuTriggerSlotPresent ? (h("slot", { name: "user-menu-trigger", slot: "trigger" })) : this.usesBuiltInChildAccountTrigger ? (h("xpl-button", { slot: "trigger", class: "xpl-top-nav__child-account-trigger", type: "button", variant: "tertiary", icon: "chevron-down", iconPosition: "end", iconOnly: this.childAccountLabelText.length === 0, "aria-haspopup": "dialog", "aria-label": this.childAccountLabelText.length > 0
|
|
22432
22964
|
? undefined
|
|
22433
22965
|
: 'Open account menu' }, this.childAccountLabelText.length > 0
|
|
22434
22966
|
? this.childAccountLabelText
|
|
@@ -22746,14 +23278,14 @@ const TopNavItem = class {
|
|
|
22746
23278
|
return (h("div", Object.assign({}, shared, { role: "button" }), this.icon && h("xpl-icon", { size: 16, icon: this.icon }), this.label ? (h("span", { class: "xpl-top-nav-item__label", title: this.label }, this.label)) : (h("slot", null)), this.hasDropdown && h("xpl-icon", { icon: "chevron-down" })));
|
|
22747
23279
|
}
|
|
22748
23280
|
render() {
|
|
22749
|
-
return (h(Host, Object.assign({ key: '
|
|
23281
|
+
return (h(Host, Object.assign({ key: '6d68c9bb7527410185e6ecd176c7a9a887359af9', class: {
|
|
22750
23282
|
'xpl-top-nav-item': true,
|
|
22751
23283
|
'xpl-top-nav-item--active': this.active,
|
|
22752
23284
|
'xpl-top-nav-item--dropdown-open': this.open,
|
|
22753
23285
|
'xpl-top-nav-item--has-dropdown': this.hasDropdown,
|
|
22754
23286
|
'xpl-top-nav-item--selected': this.selected,
|
|
22755
23287
|
dark: true,
|
|
22756
|
-
} }, (this.hostListitemRole ? { role: 'listitem' } : {})), this.renderInner(), this.hasDropdown && (h("div", { key: '
|
|
23288
|
+
} }, (this.hostListitemRole ? { role: 'listitem' } : {})), this.renderInner(), this.hasDropdown && (h("div", { key: 'da5414f6573aa6eb604721c814164b9a4987091d', class: "xpl-top-nav-item__dropdown" }, h("slot", { key: '116c436b4ef2902c50c5dd78c8d292190a3c58e4', name: "dropdown" })))));
|
|
22757
23289
|
}
|
|
22758
23290
|
get el() { return getElement(this); }
|
|
22759
23291
|
static get watchers() { return {
|
|
@@ -22777,7 +23309,7 @@ const UtilityBar = class {
|
|
|
22777
23309
|
this.open = this.isNavOpenAtStartup !== undefined ? this.isNavOpenAtStartup : this.open;
|
|
22778
23310
|
}
|
|
22779
23311
|
render() {
|
|
22780
|
-
return (h(Host, { key: '
|
|
23312
|
+
return (h(Host, { key: '965003722d536d4b9b7acd326ed7ae0cc2ac302a' }, h("nav", { key: '25d4348939fd65e00ce7bec962a31d65ff9473c3', "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (h("div", null, h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle() }, h("xpl-icon", { class: "xpl-utility-nav__bars", icon: "three-bars" })), h("slot", { name: "aside" }))) : (h("slot", { name: "aside" })), h("slot", { key: '3cb1d9038135c1892a3780c9242bbd544f6f0f5f', name: "main" }))));
|
|
22781
23313
|
}
|
|
22782
23314
|
};
|
|
22783
23315
|
|