@xplortech/apollo-core 3.2.1 → 3.4.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/AGENTS.md +17 -0
- package/README.md +1 -1
- package/build/components/accordion.css +1 -1
- package/build/components/badge.css +1 -1
- package/build/components/banner.css +1 -1
- package/build/components/breadcrumbs.css +1 -1
- package/build/components/button.css +1 -1
- package/build/components/choicelist.css +1 -1
- package/build/components/data-card.css +1 -1
- package/build/components/divider.css +1 -1
- package/build/components/dropdown.css +1 -1
- package/build/components/dynamic-table-cell.css +1 -1
- package/build/components/header-accordion.css +1 -1
- package/build/components/icon.css +1 -1
- package/build/components/input-color.css +1 -1
- package/build/components/input-file.css +1 -1
- package/build/components/input-search.css +1 -1
- package/build/components/input.css +1 -1
- package/build/components/label.css +1 -1
- package/build/components/large-card.css +1 -1
- package/build/components/list-item.css +1 -1
- package/build/components/main-nav.css +1 -1
- package/build/components/modal.css +1 -1
- package/build/components/nav-item.css +1 -1
- package/build/components/pagination.css +1 -1
- package/build/components/secondary-nav.css +1 -1
- package/build/components/select.css +1 -1
- package/build/components/side-nav.css +1 -1
- package/build/components/slideout.css +1 -1
- package/build/components/spotlight.css +1 -1
- package/build/components/table-cell-base.css +1 -1
- package/build/components/table-header-cell.css +1 -1
- package/build/components/table.css +1 -1
- package/build/components/tag.css +1 -1
- package/build/components/toast.css +1 -1
- package/build/components/toggle.css +1 -1
- package/build/components/toolbar.css +1 -1
- package/build/components/tooltip.css +1 -1
- package/build/components/top-nav.css +1 -1
- package/build/core.css +1 -1
- package/build/style.css +1 -1
- package/build/typography.css +1 -1
- package/build/variables/apollo.css +31 -19
- package/build/variables/field-edge.css +33 -19
- package/build/vendor/flatpickr.css +1 -1
- package/dist/apollo-core/apollo-core.css +1 -1
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-a0d3b7f8.entry.js → p-00e96d61.entry.js} +1 -1
- package/dist/apollo-core/{p-715baae0.entry.js → p-02a2d1a3.entry.js} +1 -1
- package/dist/apollo-core/p-035ed1ad.entry.js +1 -0
- package/dist/apollo-core/{p-aeb2bcb8.entry.js → p-066d3199.entry.js} +1 -1
- package/dist/apollo-core/{p-7eb02cf3.entry.js → p-066eccd6.entry.js} +1 -1
- package/dist/apollo-core/p-0e8514ff.entry.js +1 -0
- package/dist/apollo-core/{p-3417c1ce.entry.js → p-18115cd4.entry.js} +1 -1
- package/dist/apollo-core/{p-8f8f4759.entry.js → p-19d22455.entry.js} +1 -1
- package/dist/apollo-core/{p-24fa8a03.entry.js → p-1b00e924.entry.js} +1 -1
- package/dist/apollo-core/{p-49531864.entry.js → p-1ca46c11.entry.js} +1 -1
- package/dist/apollo-core/{p-bc821e69.entry.js → p-1e07745c.entry.js} +1 -1
- package/dist/apollo-core/{p-3713cd77.entry.js → p-31cbb36f.entry.js} +1 -1
- package/dist/apollo-core/p-321319c0.entry.js +1 -0
- package/dist/apollo-core/p-3222e5a7.entry.js +1 -0
- package/dist/apollo-core/{p-fcb17ff9.entry.js → p-325466bf.entry.js} +1 -1
- package/dist/apollo-core/p-32ac676a.entry.js +1 -0
- package/dist/apollo-core/{p-d469bf5d.entry.js → p-33063e8c.entry.js} +1 -1
- package/dist/apollo-core/{p-ff16f574.entry.js → p-34d84be8.entry.js} +1 -1
- package/dist/apollo-core/{p-b3b4678b.entry.js → p-36965939.entry.js} +1 -1
- package/dist/apollo-core/{p-7d70e089.entry.js → p-43fbf2aa.entry.js} +1 -1
- package/dist/apollo-core/p-44a1fd8b.entry.js +1 -0
- package/dist/apollo-core/p-462a804c.entry.js +1 -0
- package/dist/apollo-core/{p-808f3d9c.entry.js → p-47a4f0a8.entry.js} +1 -1
- package/dist/apollo-core/p-5cf30b9d.entry.js +1 -0
- package/dist/apollo-core/{p-f579e4b0.entry.js → p-606153e1.entry.js} +1 -1
- package/dist/apollo-core/{p-5c3be343.entry.js → p-60e3a798.entry.js} +1 -1
- package/dist/apollo-core/{p-14e86de8.entry.js → p-663e9521.entry.js} +1 -1
- package/dist/apollo-core/{p-11914cd4.entry.js → p-6e22ab86.entry.js} +1 -1
- package/dist/apollo-core/{p-907bc21e.entry.js → p-7781b569.entry.js} +1 -1
- package/dist/apollo-core/p-787a361c.entry.js +1 -0
- package/dist/apollo-core/{p-e09d8beb.entry.js → p-7b46b656.entry.js} +1 -1
- package/dist/apollo-core/p-7bfd9cfb.entry.js +1 -0
- package/dist/apollo-core/{p-f384a990.entry.js → p-8127dd6b.entry.js} +1 -1
- package/dist/apollo-core/{p-b64ed46d.entry.js → p-88367287.entry.js} +1 -1
- package/dist/apollo-core/p-8a59605f.entry.js +1 -0
- package/dist/apollo-core/p-8df2b9e8.entry.js +1 -0
- package/dist/apollo-core/p-9466f566.entry.js +1 -0
- package/dist/apollo-core/p-95b6e6e6.entry.js +1 -0
- package/dist/apollo-core/{p-8845106f.entry.js → p-966f3702.entry.js} +1 -1
- package/dist/apollo-core/{p-45c872d2.entry.js → p-9d7ead72.entry.js} +1 -1
- package/dist/apollo-core/p-CgJEmBQY.js +3 -0
- package/dist/apollo-core/{p-ca83003e.entry.js → p-a21c7976.entry.js} +1 -1
- package/dist/apollo-core/p-a30b51c8.entry.js +1 -0
- package/dist/apollo-core/p-a3537a74.entry.js +1 -0
- package/dist/apollo-core/{p-9d731673.entry.js → p-ac105b6c.entry.js} +1 -1
- package/dist/apollo-core/{p-2971e2ec.entry.js → p-adc14e6e.entry.js} +1 -1
- package/dist/apollo-core/p-b41b7950.entry.js +1 -0
- package/dist/apollo-core/{p-256ece8b.entry.js → p-b44a72e9.entry.js} +1 -1
- package/dist/apollo-core/{p-d3ada7d0.entry.js → p-b6f20359.entry.js} +1 -1
- package/dist/apollo-core/{p-df257cbf.entry.js → p-b7f75498.entry.js} +1 -1
- package/dist/apollo-core/p-b9136f21.entry.js +1 -0
- package/dist/apollo-core/{p-c5bc3b2c.entry.js → p-c526f16d.entry.js} +1 -1
- package/dist/apollo-core/p-c7b8a325.entry.js +1 -0
- package/dist/apollo-core/p-c9246567.entry.js +1 -0
- package/dist/apollo-core/p-cc04d4e7.entry.js +1 -0
- package/dist/apollo-core/p-cc27a41f.entry.js +1 -0
- package/dist/apollo-core/{p-050a8bf2.entry.js → p-d58523b6.entry.js} +1 -1
- package/dist/apollo-core/p-d7fba438.entry.js +1 -0
- package/dist/apollo-core/p-db998e2a.entry.js +1 -0
- package/dist/apollo-core/{p-ee68bed6.entry.js → p-e1f095dd.entry.js} +1 -1
- package/dist/apollo-core/{p-9feaa8be.entry.js → p-e30d204d.entry.js} +1 -1
- package/dist/apollo-core/{p-eba654a3.entry.js → p-e4649020.entry.js} +1 -1
- package/dist/apollo-core/p-ebe6a1d6.entry.js +1 -0
- package/dist/apollo-core/{p-9905c77c.entry.js → p-f0897ee2.entry.js} +1 -1
- package/dist/apollo-core/{p-64f5c129.entry.js → p-f13e14bd.entry.js} +1 -1
- package/dist/apollo-core/p-f88eefaf.entry.js +1 -0
- package/dist/apollo-core/p-fd2e7bb0.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/{index-3cBvw409.js → index-CQbPtJas.js} +53 -165
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/xpl-accordion.cjs.entry.js +3 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +5 -5
- package/dist/cjs/xpl-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/xpl-badge.cjs.entry.js +2 -2
- package/dist/cjs/xpl-banner.cjs.entry.js +3 -3
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +3 -3
- package/dist/cjs/xpl-calendar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/xpl-choicelist.cjs.entry.js +2 -2
- package/dist/cjs/xpl-content-area.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/xpl-data-card.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +9 -9
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +3 -3
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +2 -2
- package/dist/cjs/xpl-icon.cjs.entry.js +3 -6
- package/dist/cjs/xpl-input-color.cjs.entry.js +9 -9
- package/dist/cjs/xpl-input-phone.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input-time.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input_4.cjs.entry.js +6 -6
- package/dist/cjs/xpl-large-card.cjs.entry.js +2 -2
- package/dist/cjs/xpl-list-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-list.cjs.entry.js +3 -3
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +1 -1
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +3 -3
- package/dist/cjs/xpl-nav-item.cjs.entry.js +3 -3
- package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/xpl-panel.cjs.entry.js +1 -1
- package/dist/cjs/xpl-popover.cjs.entry.js +5 -5
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-select_2.cjs.entry.js +10 -10
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +3 -3
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +6 -6
- package/dist/cjs/xpl-side-nav.cjs.entry.js +3 -3
- package/dist/cjs/xpl-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/xpl-slideout.cjs.entry.js +2 -2
- package/dist/cjs/xpl-spotlight.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tab.cjs.entry.js +1 -1
- package/dist/cjs/xpl-table-body.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-cell_3.cjs.entry.js +5 -5
- package/dist/cjs/xpl-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-row.cjs.entry.js +3 -3
- package/dist/cjs/xpl-table.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tabs.cjs.entry.js +1 -1
- package/dist/cjs/xpl-toast.cjs.entry.js +3 -3
- package/dist/cjs/xpl-toggle.cjs.entry.js +1 -1
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +3 -3
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +3 -3
- package/dist/cjs/xpl-top-nav.cjs.entry.js +6 -6
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +8 -8
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +3 -3
- package/dist/collection/components/xpl-banner/xpl-banner.js +2 -2
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/xpl-button.js +2 -2
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +3 -3
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +2 -2
- 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 +2 -2
- 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 +11 -10
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -12
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input.js +2 -2
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +2 -2
- package/dist/collection/components/xpl-list/xpl-list.js +4 -4
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +6 -6
- 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 +8 -8
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +5 -5
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +2 -2
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +4 -4
- package/dist/collection/components/xpl-tab/xpl-tab.js +2 -2
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -3
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +1 -1
- package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +1 -1
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table.js +4 -4
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-tag/xpl-tag.js +6 -6
- package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +5 -5
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CQjJIHK6.js → p-6-DvgBzG.js} +1 -1
- package/dist/components/{p-C0AbGd4t.js → p-B54F4o_Z.js} +1 -1
- package/dist/components/{p-rLxtqgsy.js → p-BFUtaXqX.js} +1 -1
- package/dist/components/{p-D09sGbzs.js → p-BHRO2whA.js} +1 -1
- package/dist/components/{p-CdRmVtIN.js → p-BKajYWw6.js} +1 -1
- package/dist/components/{p-1D7CWIJ-.js → p-BU4pW_6c.js} +1 -1
- package/dist/components/p-B_6p2HCL.js +1 -0
- package/dist/components/{p-BOm_p_mz.js → p-Biie85R2.js} +1 -1
- package/dist/components/p-CIcKTXQj.js +1 -0
- package/dist/components/{p-Btb2UkLz.js → p-COq-vU2g.js} +1 -1
- package/dist/components/{p-DoVubWyd.js → p-CTy7V3XS.js} +1 -1
- package/dist/components/{p-8zrW9vEC.js → p-Cq8V05oj.js} +1 -1
- package/dist/components/{p-B7aaJikj.js → p-CthHapLu.js} +1 -1
- package/dist/components/{p-CmbpWpb0.js → p-DGxQJj8d.js} +1 -1
- package/dist/components/{p-ohy3NrgH.js → p-Dn1Qsv0Y.js} +1 -1
- package/dist/components/p-Dn6HsGUr.js +1 -0
- package/dist/components/p-DxjcChRd.js +1 -0
- package/dist/components/p-FS6KZMQV.js +1 -0
- package/dist/components/p-Fj_zi29t.js +1 -0
- package/dist/components/{p-2cJsJK3-.js → p-L9wSxXlk.js} +1 -1
- package/dist/components/{p-CuVYRPvz.js → p-ULcrhk_V.js} +1 -1
- package/dist/components/{p-DTh_zemx.js → p-WTdJQHaL.js} +1 -1
- package/dist/components/{p-CFXvQqUO.js → p-fstojyQr.js} +1 -1
- package/dist/components/{p-CV5nn1zR.js → p-gs07oY0j.js} +1 -1
- package/dist/components/p-nRygucMK.js +1 -0
- package/dist/components/{p-B56GeUtW.js → p-q4zX9LQ0.js} +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.js +1 -1
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.js +1 -1
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-body.js +1 -1
- package/dist/components/xpl-table-cell.js +1 -1
- package/dist/components/xpl-table-footer-cell.js +1 -1
- package/dist/components/xpl-table-footer.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.js +1 -1
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +5 -4
- package/dist/docs/xpl-application-shell/readme.md +10 -0
- package/dist/docs/xpl-avatar/readme.md +8 -1
- package/dist/docs/xpl-badge/readme.md +7 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +1 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +1 -0
- package/dist/docs/xpl-button/readme.md +7 -0
- package/dist/docs/xpl-checkbox/readme.md +7 -0
- package/dist/docs/xpl-content-area/readme.md +7 -0
- package/dist/docs/xpl-dashboard/readme.md +7 -0
- package/dist/docs/xpl-data-card/readme.md +1 -0
- package/dist/docs/xpl-divider/readme.md +7 -0
- package/dist/docs/xpl-dropdown/readme.md +18 -1
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +7 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +7 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +7 -0
- package/dist/docs/xpl-dynamic-table/readme.md +8 -0
- package/dist/docs/xpl-dynamic-table-cell/readme.md +7 -0
- package/dist/docs/xpl-dynamic-table-row/readme.md +7 -0
- package/dist/docs/xpl-grid-item/readme.md +7 -0
- package/dist/docs/xpl-header-accordion/readme.md +8 -0
- package/dist/docs/xpl-icon/readme.md +1 -1
- package/dist/docs/xpl-input/readme.md +8 -0
- package/dist/docs/xpl-list/readme.md +8 -1
- package/dist/docs/xpl-list/xpl-list-item/readme.md +16 -0
- package/dist/docs/xpl-main-nav/readme.md +12 -0
- package/dist/docs/xpl-nav-item/readme.md +10 -1
- package/dist/docs/xpl-pagination/readme.md +1 -1
- package/dist/docs/xpl-popover/readme.md +1 -0
- package/dist/docs/xpl-radio/readme.md +7 -0
- package/dist/docs/xpl-secondary-nav/readme.md +11 -2
- package/dist/docs/xpl-select/readme.md +7 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +9 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +8 -0
- package/dist/docs/xpl-slideout/readme.md +13 -0
- package/dist/docs/xpl-spotlight/readme.md +1 -0
- package/dist/docs/xpl-table/readme.md +12 -0
- package/dist/docs/xpl-table/xpl-table-body/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-cell/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +7 -0
- package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +59 -52
- package/dist/docs/xpl-table/xpl-table-row/readme.md +7 -0
- package/dist/docs/xpl-table-header/readme.md +7 -0
- package/dist/docs/xpl-tag/readme.md +9 -2
- package/dist/docs/xpl-toast/readme.md +8 -0
- package/dist/docs/xpl-toolbar/readme.md +9 -1
- package/dist/docs/xpl-tooltip/readme.md +7 -0
- package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +2 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +1 -0
- package/dist/docs/xpl-top-nav/xpl-top-nav-menu/readme.md +1 -0
- package/dist/docs/xpl-utility-bar/readme.md +8 -0
- package/dist/docs.json +933 -251
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/{index-ukZKsqqq.js → index-CgJEmBQY.js} +53 -165
- package/dist/esm/loader.js +2 -2
- package/dist/esm/xpl-accordion.entry.js +3 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +5 -5
- package/dist/esm/xpl-backdrop.entry.js +2 -2
- package/dist/esm/xpl-badge.entry.js +2 -2
- package/dist/esm/xpl-banner.entry.js +3 -3
- package/dist/esm/xpl-breadcrumb-item.entry.js +2 -2
- package/dist/esm/xpl-breadcrumbs.entry.js +2 -2
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +3 -3
- package/dist/esm/xpl-calendar.entry.js +2 -2
- package/dist/esm/xpl-checkbox.entry.js +4 -4
- package/dist/esm/xpl-choicelist.entry.js +2 -2
- package/dist/esm/xpl-content-area.entry.js +2 -2
- package/dist/esm/xpl-dashboard.entry.js +2 -2
- package/dist/esm/xpl-data-card.entry.js +3 -3
- package/dist/esm/xpl-dropdown_4.entry.js +9 -9
- package/dist/esm/xpl-dynamic-table-cell.entry.js +3 -3
- package/dist/esm/xpl-dynamic-table-row.entry.js +3 -3
- package/dist/esm/xpl-dynamic-table.entry.js +3 -3
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-header-accordion.entry.js +2 -2
- package/dist/esm/xpl-icon.entry.js +3 -6
- package/dist/esm/xpl-input-color.entry.js +9 -9
- package/dist/esm/xpl-input-phone.entry.js +1 -1
- package/dist/esm/xpl-input-time.entry.js +1 -1
- package/dist/esm/xpl-input_4.entry.js +6 -6
- package/dist/esm/xpl-large-card.entry.js +2 -2
- package/dist/esm/xpl-list-item.entry.js +1 -1
- package/dist/esm/xpl-list.entry.js +3 -3
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +1 -1
- package/dist/esm/xpl-nav-header-menu.entry.js +3 -3
- package/dist/esm/xpl-nav-item.entry.js +3 -3
- package/dist/esm/xpl-pagination.entry.js +1 -1
- package/dist/esm/xpl-panel.entry.js +1 -1
- package/dist/esm/xpl-popover.entry.js +5 -5
- package/dist/esm/xpl-progress-bar.entry.js +1 -1
- package/dist/esm/xpl-progress-indicator.entry.js +1 -1
- package/dist/esm/xpl-secondary-nav.entry.js +2 -2
- package/dist/esm/xpl-select_2.entry.js +10 -10
- package/dist/esm/xpl-side-nav-header-item.entry.js +1 -1
- package/dist/esm/xpl-side-nav-item.entry.js +3 -3
- package/dist/esm/xpl-side-nav-section.entry.js +6 -6
- package/dist/esm/xpl-side-nav.entry.js +3 -3
- package/dist/esm/xpl-skeleton.entry.js +1 -1
- package/dist/esm/xpl-slideout.entry.js +2 -2
- package/dist/esm/xpl-spotlight.entry.js +1 -1
- package/dist/esm/xpl-tab-panel.entry.js +3 -3
- package/dist/esm/xpl-tab.entry.js +1 -1
- package/dist/esm/xpl-table-body.entry.js +2 -2
- package/dist/esm/xpl-table-cell_3.entry.js +5 -5
- package/dist/esm/xpl-table-footer.entry.js +2 -2
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table-row.entry.js +3 -3
- package/dist/esm/xpl-table.entry.js +1 -1
- package/dist/esm/xpl-tabs.entry.js +1 -1
- package/dist/esm/xpl-toast.entry.js +3 -3
- package/dist/esm/xpl-toggle.entry.js +1 -1
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +2 -2
- package/dist/esm/xpl-top-nav-item.entry.js +3 -3
- package/dist/esm/xpl-top-nav-menu.entry.js +3 -3
- package/dist/esm/xpl-top-nav.entry.js +6 -6
- package/dist/esm/xpl-utility-bar.entry.js +2 -2
- package/dist/types/components.d.ts +3 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/hydrate/index.js +143 -234
- package/hydrate/index.mjs +143 -234
- package/loader/index.d.ts +1 -1
- package/package.json +17 -17
- package/dist/apollo-core/p-045a4538.entry.js +0 -1
- package/dist/apollo-core/p-08767607.entry.js +0 -1
- package/dist/apollo-core/p-194c0ccd.entry.js +0 -1
- package/dist/apollo-core/p-1c031055.entry.js +0 -1
- package/dist/apollo-core/p-24f7280a.entry.js +0 -1
- package/dist/apollo-core/p-386851a2.entry.js +0 -1
- package/dist/apollo-core/p-3cd1238b.entry.js +0 -1
- package/dist/apollo-core/p-4e3c6616.entry.js +0 -1
- package/dist/apollo-core/p-5b9fd96e.entry.js +0 -1
- package/dist/apollo-core/p-5cbf5d42.entry.js +0 -1
- package/dist/apollo-core/p-5ec2b180.entry.js +0 -1
- package/dist/apollo-core/p-65f6b66c.entry.js +0 -1
- package/dist/apollo-core/p-72e0455f.entry.js +0 -1
- package/dist/apollo-core/p-7ac7fbc0.entry.js +0 -1
- package/dist/apollo-core/p-7f4463ff.entry.js +0 -1
- package/dist/apollo-core/p-87582346.entry.js +0 -1
- package/dist/apollo-core/p-a6ecca68.entry.js +0 -1
- package/dist/apollo-core/p-a789c272.entry.js +0 -1
- package/dist/apollo-core/p-bd493c4a.entry.js +0 -1
- package/dist/apollo-core/p-bdcece21.entry.js +0 -1
- package/dist/apollo-core/p-bfb7a83a.entry.js +0 -1
- package/dist/apollo-core/p-c22f70f4.entry.js +0 -1
- package/dist/apollo-core/p-d3230277.entry.js +0 -1
- package/dist/apollo-core/p-d7f8ee34.entry.js +0 -1
- package/dist/apollo-core/p-d879c349.entry.js +0 -1
- package/dist/apollo-core/p-e4d50301.entry.js +0 -1
- package/dist/apollo-core/p-ea9cdd65.entry.js +0 -1
- package/dist/apollo-core/p-ukZKsqqq.js +0 -2
- package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
- package/dist/components/p-B6YLKDUX.js +0 -1
- package/dist/components/p-BSHdGbmH.js +0 -1
- package/dist/components/p-BZIZSovL.js +0 -1
- package/dist/components/p-CgemLtmL.js +0 -1
- package/dist/components/p-Dp62sBqX.js +0 -1
- package/dist/components/p-DqgnC_vS.js +0 -1
- package/dist/components/p-DtV4i45B.js +0 -1
- /package/dist/{utils → collection/utils}/form-bindings.js +0 -0
- /package/dist/{utils → collection/utils}/story-vrt.js +0 -0
- /package/dist/types/{third-party.d.ts → types/third-party.d.ts} +0 -0
- /package/dist/types/{home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils → utils}/form-bindings.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils → utils}/story-vrt.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,c as o,t as i}from"./p-
|
|
1
|
+
import{p as e,H as t,h as s,c as o,t as i}from"./p-B_6p2HCL.js";import{d as n}from"./p-6-DvgBzG.js";const l=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.dropdown=null}componentWillLoad(){this.dropdown=this.hostElement.closest("xpl-dropdown")}handleClick(e){if(!this.dropdown)return;const{closeOnSelect:t,mode:s}=this.dropdown;e.x&&e.y&&(this.dropdown.handleSelect(e,{component:this}),"single"===s&&t&&(this.dropdown.isOpen=!1))}handleKeyup(e){if(!this.dropdown)return;const{dropdown:t}=this,{closeOnSelect:s,mode:o,selectOnFocus:i}=this.dropdown;if(i&&["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Tab"].includes(e.key)){const{activeElement:i}=document,n=i?.closest("xpl-dropdown-option")??null;return t.handleSelect(e,{component:{hostElement:n}}),void("single"===o&&s&&(this.dropdown.isOpen=!1))}["Escape","Enter"].includes(e.key)&&(t.handleSelect(e,{component:this}),("Escape"===e.key||this.dropdown.closeOnSelect&&"Enter"===e.key)&&(this.dropdown.isOpen=!1))}connectedCallback(){this.hostElement.addEventListener("click",this.handleClick.bind(this)),this.hostElement.addEventListener("keyup",this.handleKeyup.bind(this))}disconnectedCallback(){this.hostElement.removeEventListener("click",this.handleClick),this.hostElement.removeEventListener("keyup",this.handleKeyup)}render(){const{label:e,isSelected:t,isDisabled:i,value:n,subtitle:l,icon:c}=this;return s(o,{key:"cc7bdfecd0354f3b1f9080535e3014d946a697c4",class:{"xpl-dropdown-option":!0,"xpl-dropdown-option--disabled":!!i,"xpl-dropdown-option--selected":!!t},role:"option","aria-checked":t,"aria-disabled":i,"aria-selected":t,value:n},s("li",{key:"4ef95d229611225a2019d0d8871b81f2ae603b6a",class:"xpl-dropdown-list-item"},c&&s("xpl-icon",{key:"e8380b63e1aac6fb00e36ae565147edfd4588415",class:"xpl-dropdown-list-item__icon",icon:c,size:20}),e||s("slot",{key:"0c040b57a16cd9b2e9fbf18d04dd1cde215f81b1",name:"option"}),l&&s("span",{key:"f8518da421611e4f3e72f28f38ac294bca9e9aad",class:"xpl-dropdown-list-item__subtitle"},l)))}get hostElement(){return this}},[260,"xpl-dropdown-option",{isDisabled:[516,"disabled"],label:[1],value:[1],subtitle:[1],icon:[1],isSelected:[4,"selected"]}]);function c(){"undefined"!=typeof customElements&&["xpl-dropdown-option","xpl-icon"].forEach((e=>{switch(e){case"xpl-dropdown-option":customElements.get(i(e))||customElements.define(i(e),l);break;case"xpl-icon":customElements.get(i(e))||n()}}))}export{l as D,c as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,d as s,h as i,F as n,c as
|
|
1
|
+
import{p as e,H as t,d as s,h as i,F as n,c as l,t as o}from"./p-B_6p2HCL.js";import{t as a}from"./p-CzwViN3U.js";import{i as h}from"./p-Dqb1pIRo.js";import{d as c}from"./p-L9wSxXlk.js";import{d}from"./p-FS6KZMQV.js";import{d as r}from"./p-Fj_zi29t.js";import{d as p}from"./p-B54F4o_Z.js";import{d as u}from"./p-6-DvgBzG.js";import{d as m}from"./p-CthHapLu.js";import{v as b}from"./p-CK3_k8jD.js";let g;function f(e){return e.label||e.value||""}function x(e){return e.value||e.label||""}function v(e){return e.flatMap((e=>e.groupName&&e.options?e.options:[e]))}const w=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.selectChange=s(this,"selectChange",7),this.changeEvent=s(this,"changeEvent",7),this.dropdownStateChange=s(this,"dropdownStateChange",7),this.triggerDropdown=s(this,"triggerDropdown",7),this.choices=[],this.selectIcon="chevron-down",this.dropdownPlacement="bottom-start",this.mode="single",this.truncate=!0,this.active=!1,this.id=b(),this.keepFocus=!1,this.visibleChoices=1/0,this.choicesState=[],this.value=this.calculateValue(),this.dropdownOpenState=!1,this.container=null,this.dropdown=null,this.handleResizeThrottled=a((()=>{this.maybeTruncateChoices()}),250),this.handleTabKeyDown=e=>{"Tab"===e.key&&(this.keepFocus=!0)},this.handleTagRemove=e=>{const t=t=>e?.value&&t.value===e.value||e?.label&&t.label===e.label;this.choicesState=this.choicesState.map((e=>({...e,isSelected:!t(e)&&e.isSelected,options:e.options?.map((e=>({...e,isSelected:!t(e)&&e.isSelected})))})))},this.handleDropdownScroll=e=>{const t=this.dropdown?.querySelector(".xpl-dropdown-list");if(!t)return;const{scrollTop:s,scrollHeight:i,clientHeight:n}=t;(0===s&&e.deltaY<0||s+n>=i&&e.deltaY>0)&&e.preventDefault()}}onChoicesPropChanged(e){this.choicesState=this.initializeChoicesState()}onSelectedValuesPropChanged(){this.choicesState=this.initializeChoicesState()}onChoicesStateChanged(){this.update()}handleValueStateChange(e){this.selectChange.emit(e),this.changeEvent.emit("single"===this.mode?e:e?.length?e.split("|"):[]),this.customDisplayValue&&null!==this.container&&(this.container.querySelectorAll(".custom-display-value").forEach((t=>{t.classList.toggle("display-active",e.length>0),t.classList.toggle("display-inactive",0===e.length)})),this.container.querySelectorAll(".placeholder").forEach((t=>{t.classList.toggle("placeholder-hidden",e.length>0)})))}onDropdownOpenStateChanged(e){this.dropdownStateChange.emit(e)}initializeChoicesState(){return(this.choices??[]).map((e=>{const t="string"==typeof this.selectedValues?[this.selectedValues]:this.selectedValues;return{...e,isSelected:e.isSelected||!0===t?.includes(x(e)),options:e.options?.map((e=>({...e,isSelected:e.isSelected||!0===t?.includes(x(e))})))}}))}maybeTruncateChoices(){if(!h())return;if("single"===this.mode||!this.truncate)return;const e=this.container?.getBoundingClientRect().width;let t=0,s=0;const i=v(this.choicesState)?.filter((e=>e.isSelected));if(!i.length)return;const n=i.length;i.forEach(((n,l)=>(s+=function(e){const t=h()?(void 0===g&&(g=document.createElement("canvas").getContext("2d"),g&&(g.font="14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif")),g):null;return t?t.measureText(e).width+50:0}(f(i[l])),s>(e??0)-140||(t+=1),null))),t>=n&&(t=1/0),t<1&&(t=1),this.visibleChoices=t}closeDropdown(){this.dropdown?.isOpen&&(this.dropdown.isOpen=!1,this.active=!1)}calculateValue(){const e=v(this.choicesState).filter((e=>e.isSelected));return e.length?"single"===this.mode?x(e[0]):e.map((e=>x(e))).join("|"):""}update(){this.value=this.calculateValue(),this.maybeTruncateChoices()}renderLabel(){return this.label||this.description?i("label",{class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.label,this.description&&i("small",{class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)):null}renderSelectedTags(){let e=0;const t=v(this.choicesState).filter((e=>e.isSelected));return t.length?t.map(((s,n)=>e>=this.visibleChoices?null:(e+=1,i("xpl-tag",{disabled:this.disabled,onClose:()=>this.handleTagRemove(t[n])},f(t[n]))))):null}renderError(){return this.error?i("label",{class:"xpl-input-error",htmlFor:this.id},i("xpl-icon",{icon:"circle-warning"}),this.error):null}componentWillLoad(){this.choicesState=this.initializeChoicesState()}handleClickEvent(e){const t=e.target.closest(".xpl-select");null!==t&&t===this.container||this.closeDropdown()}handleKeyDown(e){"Escape"===e.key&&(this.active||this.container?.contains(document.activeElement))&&this.closeDropdown()}handleResize(){this.handleResizeThrottled()}componentDidLoad(){void 0!==this.truncateRafId&&cancelAnimationFrame(this.truncateRafId),this.truncateRafId=requestAnimationFrame((()=>{this.truncateRafId=void 0,this.maybeTruncateChoices()}))}disconnectedCallback(){this.handleResizeThrottled?.cancel(),void 0!==this.truncateRafId&&(cancelAnimationFrame(this.truncateRafId),this.truncateRafId=void 0)}handleDropdownTrigger(){if(this.disabled)return;const e=this.dropdown?.isOpen??!1,t=!e;this.triggerDropdown.emit({prevState:e,nextState:t}).defaultPrevented||(this.dropdownOpenState=t,this.dropdown&&(this.dropdown.isOpen=t))}async reset(){this.closeDropdown(),this.choicesState=this.choicesState.map((e=>({...e,isSelected:!1,options:e.options?.map((e=>({...e,isSelected:!1})))})))}render(){const e=v(this.choicesState).filter((e=>e.isSelected)),t=e[0]?.label||e[0]?.value,s=e.length>1&&this.visibleChoices<1/0&&this.truncate&&!this.customDisplayValue,o=`+ ${Math.abs(this.choicesState.filter((e=>e.isSelected)).length-this.visibleChoices)} more`;return i(l,{key:"b28e9dbd835634f20311d80b0793c722bb516d10",class:{"xpl-select":!0,"xpl-select--disabled":!!this.disabled,"xpl-select--no-truncate":!this.truncate,[this.classNames??""]:!!this.classNames},onKeyDown:this.handleTabKeyDown,ref:e=>{this.container=e}},this.renderLabel(),i("div",{key:"9becbbb7cc7ad5f36912adb9b2bafbfbd200729c",class:{"xpl-input":!0,"xpl-input--disabled":!!this.disabled,"xpl-input--error":void 0!==this.error}},i("div",{key:"725575d6e2ebde606deb2efa6d135cd93a358c6f",class:"xpl-input-wrapper"},i("button",{key:"e7c3d24ce1366bbb42817eb1627b89dfc9b7f669",class:"xpl-select__trigger",disabled:this.disabled,id:this.id,onKeyDown:this.handleTabKeyDown,onClick:e=>{e.preventDefault(),this.handleDropdownTrigger()},type:"button"},i("div",{key:"b32057bdf81dfb44a89a15a596e35efe9b1c56fb",class:{"xpl-select-value":!0,"xpl-select-value--active":"multi"===this.mode&&this.value.length>0,"has-value":this.value.length>0}},(()=>this.customDisplayValue?i(n,null,i("div",{class:{"custom-display-value":!0,"custom-display-value--inactive":0===this.value.length}},i("slot",{name:"custom-display-value"})),i("span",{class:{"xpl-placeholder--hidden":this.value.length>0}},this.placeholder)):"single"===this.mode?t||this.placeholder:this.value.length>0?this.renderSelectedTags():this.placeholder)(),s&&o),i("xpl-icon",{key:"f552cedcb15ff028a763ef6e8b5ee30f7a4e6720",class:"xpl-select__chevron-down",icon:this.selectIcon??"chevron-down"}))),!this.disabled&&i("xpl-dropdown",{key:"ef09a2f9fabb75050e0e69c1bc375b64d6584429",ref:e=>{this.dropdown=e??null},isOpen:this.dropdownOpenState,options:this.choicesState,selectedValues:this.selectedValues,mode:this.mode,triggerId:this.id,update:(e,{component:t})=>{const{options:s}=t;s&&s.length>0&&(this.choicesState=s)},onIsOpenChange:e=>{this.dropdownOpenState=e.detail},onWheel:this.handleDropdownScroll,anchorToTrigger:!0,flipFallbackPlacements:this.dropdownFlipFallbackPlacements,placement:this.dropdownPlacement}),this.renderError()),i("input",{key:"3963614dbc087fe3a10d44ab4554046755a581d2",type:"hidden",name:this.name,value:this.value}))}static get watchers(){return{choices:[{onChoicesPropChanged:0}],selectedValues:[{onSelectedValuesPropChanged:0}],choicesState:[{onChoicesStateChanged:0}],value:[{handleValueStateChange:0}],dropdownOpenState:[{onDropdownOpenStateChanged:0}]}}},[260,"xpl-select",{choices:[16],selectIcon:[1,"select-icon"],description:[1],disabled:[4],dropdownFlipFallbackPlacements:[16],dropdownPlacement:[1,"dropdown-placement"],error:[1],label:[1],mode:[1],name:[1],placeholder:[1],truncate:[4],customDisplayValue:[4,"custom-display-value"],selectedValues:[1,"selected-values"],classNames:[1,"class-names"],active:[32],id:[32],keepFocus:[32],visibleChoices:[32],choicesState:[32],value:[32],dropdownOpenState:[32],reset:[64]},[[8,"click","handleClickEvent"],[8,"keydown","handleKeyDown"],[9,"resize","handleResize"]],{choices:[{onChoicesPropChanged:0}],selectedValues:[{onSelectedValuesPropChanged:0}],choicesState:[{onChoicesStateChanged:0}],value:[{handleValueStateChange:0}],dropdownOpenState:[{onDropdownOpenStateChanged:0}]}]);function C(){"undefined"!=typeof customElements&&["xpl-select","xpl-dropdown","xpl-dropdown-group","xpl-dropdown-heading","xpl-dropdown-option","xpl-icon","xpl-tag"].forEach((e=>{switch(e){case"xpl-select":customElements.get(o(e))||customElements.define(o(e),w);break;case"xpl-dropdown":customElements.get(o(e))||c();break;case"xpl-dropdown-group":customElements.get(o(e))||d();break;case"xpl-dropdown-heading":customElements.get(o(e))||r();break;case"xpl-dropdown-option":customElements.get(o(e))||p();break;case"xpl-icon":customElements.get(o(e))||u();break;case"xpl-tag":customElements.get(o(e))||m()}}))}export{w as S,C as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as i,d as t,h as s,c as l,t as c}from"./p-
|
|
1
|
+
import{p as e,H as i,d as t,h as s,c as l,t as c}from"./p-B_6p2HCL.js";import{d as n}from"./p-6-DvgBzG.js";const a=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.inputChange=t(this,"inputChange",7),this.accept="",this.multiple=!1,this.hideTriggerOnSelect=!1,this.hideFileNames=!1,this.hideAcceptText=!1,this.files=null,this.openFileDialog=()=>{this.disabled||this.fileInput?.click()},this.handleFileChange=e=>{const i=e.target;this.files=i.files?Array.from(i.files):null},this.onRemoveFileByIndex=e=>{this.files=(this.files??[]).filter(((i,t)=>t!==e))}}onFilesChange(e){this.inputChange.emit({type:"file",value:e})}async removeFileByIndex(e){this.onRemoveFileByIndex(e)}render(){return s(l,{key:"87eead553435ce984945ccb72ca262bfd6123562",class:{"xpl-input-file":!0,"xpl-input-file--hide-trigger-on-select":!!this.hideTriggerOnSelect,"xpl-input-file--disabled":!!this.disabled}},s("span",{key:"f345204405d1bb784fc662fa3c29e9edaeca9c67",class:{"xpl-input-file__trigger-wrapper":!0,"xpl-input-file__trigger-wrapper--hidden":!!this.hideTriggerOnSelect&&(this.files?.length??0)>0},role:"button",tabIndex:0,onClick:this.openFileDialog},s("slot",{key:"46c4e817cb8f8b050b4de5c571757c7ed84698a7",name:"trigger"})),(this.files?.length??0)>0&&!this.hideFileNames&&s("ul",{key:"455af4a3cad84232464927efb880ce0a26cebf71",class:"xpl-input-file__file-list"},(this.files??[]).map(((e,i)=>s("li",{class:"xpl-input-file__file-item"},s("span",{class:"xpl-input-file__file-name"},e.name),s("xpl-icon",{icon:"x-circle",size:24,onClick:e=>{e.preventDefault(),e.stopPropagation(),this.onRemoveFileByIndex(i)},class:"xpl-input-file__remove-icon"}))))),this.accept&&!this.hideAcceptText&&s("span",{key:"77abc822d8d44b33f251d4ba9ef21cfc7dd6c287",class:"xpl-input-file__accept"},"Accepted file types: ",this.accept),s("input",{key:"d75ec23921943259d789b0f32828dca57864520e",onChange:this.handleFileChange,type:"file",ref:e=>{this.fileInput=e??void 0},hidden:!0,accept:this.accept,multiple:this.multiple,name:this.name}))}get el(){return this}static get watchers(){return{files:[{onFilesChange:0}]}}},[260,"xpl-input-file",{disabled:[4],name:[1],_id:[1],accept:[1],multiple:[4],hideTriggerOnSelect:[4,"hide-trigger-on-select"],hideFileNames:[4,"hide-file-names"],hideAcceptText:[4,"hide-accept-text"],files:[32],removeFileByIndex:[64]},void 0,{files:[{onFilesChange:0}]}]);function p(){"undefined"!=typeof customElements&&["xpl-input-file","xpl-icon"].forEach((e=>{switch(e){case"xpl-input-file":customElements.get(c(e))||customElements.define(c(e),a);break;case"xpl-icon":customElements.get(c(e))||n()}}))}export{a as I,p as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,d as s,h as l,c as a,t as i}from"./p-
|
|
1
|
+
import{p as e,H as t,d as s,h as l,c as a,t as i}from"./p-B_6p2HCL.js";import{d as c}from"./p-ULcrhk_V.js";import{d as r}from"./p-6-DvgBzG.js";const h=e=>{if("xpl-table-header-cell"!==e.tagName.toLowerCase())return"auto";const t=e,s="string"==typeof t.columnWidth?t.columnWidth.trim():"",l=e.getAttribute("column-width")?.trim()??"",a=s||l;if(a.length>0)return a;const i=t.width;if("number"==typeof i&&Number.isFinite(i)&&i>0)return`${Math.max(48,i)}px`;const c=e.getAttribute("width");if(null===c||""===c)return"auto";if(/^\s*\d+(\.\d+)?\s*$/.test(c)){const e=Number.parseFloat(c);return Number.isFinite(e)&&e>0?`${Math.max(48,e)}px`:"auto"}return c.trim()},n="data-xpl-selection-managed",o="data-xpl-row-reorder-managed",d=e=>{switch(e){case"asc":return"desc";case"desc":return null;default:return"asc"}},u=e=>{switch(e){case"asc":return"arrow-up";case"desc":return"arrow-down";default:return"dash"}},b=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.headerCheckboxChange=s(this,"headerCheckboxChange",7),this.headerSortChange=s(this,"headerSortChange",7),this.align="left",this.checked=!1,this.indeterminate=!1,this.label="",this.sortable=!1,this.type="label",this.onHeaderInnerCheckboxChange=e=>{const{detail:t}=e,s="boolean"==typeof t?t:Boolean(t);this.headerCheckboxChange.emit(s)},this.onSortActivate=e=>{if(e.preventDefault(),e.stopPropagation(),!this.sortable||"label"!==this.type)return;const t=this.getColumnIndex0(),s=this.getSortKeySlug();this.el.closest("xpl-table")||(this.sortDirection=d(this.sortDirection)),this.headerSortChange.emit({columnIndex:t,sortKey:s})}}watchColumnWidth(){this.notifyColumnWidthsChange()}watchWidth(){this.notifyColumnWidthsChange()}componentDidLoad(){this.notifyColumnWidthsChange()}notifyColumnWidthsChange(){this.el.dispatchEvent(new CustomEvent("xplTableColumnWidthsChange",{bubbles:!0,composed:!0}))}getColumnIndex0(){return Array.from(this.el.parentElement?.children??[]).indexOf(this.el)}getSortKeySlug(){const e=(this.sortKey??this.label??"").trim();return e.length>0?e.replace(/ /g,"-").toLowerCase():`column-${this.getColumnIndex0()}`}renderLabelText(){return l("span",{class:"xpl-table-header-cell__text"},this.label,l("slot",null))}renderLabelContent(){if(this.sortable){const e="asc"===this.sortDirection?"arrow-up":"arrow-down",t="asc"===this.sortDirection||"desc"===this.sortDirection;return l("button",{type:"button",class:"xpl-table-header-cell__sort",onClick:this.onSortActivate},this.renderLabelText(),l("xpl-icon",{class:{"xpl-table-header-cell__sort-icon":!0,"xpl-table-header-cell__sort-icon--active":t,"xpl-table-header-cell__sort-icon--default":!t},icon:e,size:16}))}return this.renderLabelText()}render(){const e=this.getColumnIndex0()+1,t=`xpl-table-header-cell--align-${"checkbox"!==this.type&&"icon"!==this.type||"left"!==this.align?this.align:"center"}`,s="label"===this.type&&this.sortable?"asc"===this.sortDirection?"ascending":"desc"===this.sortDirection?"descending":"none":void 0;return l(a,{role:"columnheader","aria-colindex":e,class:{"xpl-table-header-cell":!0,[t]:!0,"xpl-table-header-cell--checkbox":"checkbox"===this.type,"xpl-table-header-cell--icon":"icon"===this.type,"xpl-table-header-cell--empty":"empty"===this.type,"xpl-table-header-cell--sortable":this.sortable&&"label"===this.type},"aria-checked":"checkbox"===this.type?this.indeterminate?"mixed":this.checked?"true":"false":void 0,"aria-sort":s},"empty"===this.type?null:(()=>{switch(this.type){case"label":return this.renderLabelContent();case"checkbox":return l("xpl-checkbox",{ariaLabel:this.checkboxAriaLabel??"Select all rows",checked:this.checked,indeterminate:this.indeterminate,onCheckboxChange:this.onHeaderInnerCheckboxChange});case"icon":return this.icon?l("xpl-icon",{icon:this.icon,size:20}):null;case"empty":return null;default:return""}})())}get el(){return this}static get watchers(){return{columnWidth:[{watchColumnWidth:0}],width:[{watchWidth:0}]}}},[260,"xpl-table-header-cell",{align:[1],checkboxAriaLabel:[1,"checkbox-aria-label"],checked:[4],columnWidth:[513,"column-width"],icon:[1],indeterminate:[4],label:[1],sortDirection:[1537,"sort-direction"],sortKey:[1,"sort-key"],sortable:[4],type:[513],width:[514]},void 0,{columnWidth:[{watchColumnWidth:0}],width:[{watchWidth:0}]}]);function p(){"undefined"!=typeof customElements&&["xpl-table-header-cell","xpl-checkbox","xpl-icon"].forEach((e=>{switch(e){case"xpl-table-header-cell":customElements.get(i(e))||customElements.define(i(e),b);break;case"xpl-checkbox":customElements.get(i(e))||c();break;case"xpl-icon":customElements.get(i(e))||r()}}))}export{o as R,n as S,b as T,u as a,d as c,p as d,h as g}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as s,d as i,h as t,c as
|
|
1
|
+
import{p as e,H as s,d as i,h as t,c as a,t as d}from"./p-B_6p2HCL.js";import{v as l}from"./p-CK3_k8jD.js";const c=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.radioChange=i(this,"radioChange",7),this.id=l(),this.onChange=e=>{this.radioChange.emit(this.value?this.value:e.target.checked)}}get isChecked(){return void 0!==this.selectedValue&&void 0!==this.value?this.selectedValue===this.value:Boolean(this.checked)}render(){return t(a,{key:"dec063c59a7fe6bd9680d0bfcec55eabfa782ee0",class:{"xpl-checkbox-radio-container":!0,styled:!!this.styled,disabled:!!this.disabled}},t("input",{key:"ff51ff9e164c663b1583409f37a075a3bb0c03e3",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}),t("label",{key:"3d82a7ee345008e237ea52064774b6d751031450",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},t("slot",{key:"a04ec7ab9149a61f88391bb37556f81e9e172b6e"}),this.description&&t("small",{key:"b03619c554d2438cc152ff37fcaa02be3ba7e0bd",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)))}},[260,"xpl-radio",{checked:[4],description:[1],disabled:[4],name:[1],value:[1],required:[4],selectedValue:[1,"selected-value"],styled:[4],id:[32]}]);function h(){"undefined"!=typeof customElements&&["xpl-radio"].forEach((e=>{"xpl-radio"===e&&(customElements.get(d(e))||customElements.define(d(e),c))}))}export{c as R,h as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(t||{}),n=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(n||{}),e="type",o="value",l="serialized:";function s(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var r=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,n)=>n in t,u=(t,n)=>(0,console.error)(t,n),f="s-id",a="c-id",d="http://www.w3.org/1999/xlink",$="undefined"!=typeof window?window:{},p=$.HTMLElement||class{},v={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},h=(()=>{var t;let n=!1;try{null==(t=$.document)||t.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch(t){}return n})(),b=!1,m=[],y=[],g=()=>{var t;return(null==(t=$.document)?void 0:t.hidden)?N(O):v.raf(O)},w=(t,n)=>e=>{t.push(e),b||(b=!0,n&&4&v.i?N(O):g())},j=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){u(t)}t.length=0},O=()=>{j(m),j(y),(b=m.length>0)&&g()},N=t=>Promise.resolve(undefined).then(t),k=w(y,!0),x=t=>{const n=new URL(t,v.u);return n.origin!==$.location.origin?n.href:n.pathname},S=t=>v.u=t,M=t=>{const n=T(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&E(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!I(t,_(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&T(t,"childNodes").length&&M(t)}};function E(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||_(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...E(T(o,"childNodes"),n,e)]}return s}var I=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)_(l)!==n||!e&&l["s-sr"]||o.push(l);return o},L=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,A=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,r=T(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=T(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]},_=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function R(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===_(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function T(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var F=new WeakMap,C=t=>"object"==(t=typeof t)||"function"===t,D=(t,n,...e)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],f=n=>{for(let e=0;e<n.length;e++)if(o=n[e],Array.isArray(o))f(o);else if(null!=o&&"boolean"!=typeof o){if(r="function"!=typeof t&&!C(o))o=String(o);else if("function"!=typeof t&&void 0===o.i){u("Invalid vNode child");continue}r&&i?c[c.length-1].$+=o:c.push(r?U(null,o):o),i=r}};if(f(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,P);const a=U(t,null);return a.p=n,c.length>0&&(a.v=c),a.h=l,a.m=s,a},U=(t,n)=>({i:0,j:t,$:null!=n?n:null,O:null,v:null,p:null,h:null,m:null}),V={},P={forEach:(t,n)=>t.map(W).forEach(n),map:(t,n)=>t.map(W).map(n).map(B)},W=t=>({vattrs:t.p,vchildren:t.v,vkey:t.h,vname:t.m,vtag:t.j,vtext:t.$}),B=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),D(t.vtag,n,...t.vchildren||[])}const n=U(t.vtag,t.vtext);return n.p=t.vattrs,n.v=t.vchildren,n.h=t.vkey,n.m=t.vname,n},H=(t,n,e,o,l,s,r,i=[])=>{let c,u,f,d;if(1===s.nodeType){if(c=s.getAttribute(a),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=q({i:0,N:u[0],k:u[1],S:u[2],M:u[3],j:s.tagName.toLowerCase(),O:s,p:{class:s.className||""}}),n.push(f),s.removeAttribute(a),t.v||(t.v=[]);const o=f.O.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===f.j&&Y(o,u[2],f,s,t,n,e,0,i),f.O["s-sn"]=o,f.O.removeAttribute("s-sn")),void 0!==f.M&&(t.v[f.M]=f),t=f}if(s.shadowRoot)for(d=s.shadowRoot.childNodes.length-1;d>=0;d--)H(t,n,e,o,l,s.shadowRoot.childNodes[d],r,i);const $=s.__childNodes||s.childNodes;for(d=$.length-1;d>=0;d--)H(t,n,e,o,l,$[d],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=q({N:u[1],k:u[2],S:u[3],M:u[4]||"0",O:s,p:null,v:null,h:null,m:null,j:null,$:null}),"t"===c?(f.O=Z(s,3),f.O&&3===f.O.nodeType&&(f.$=f.O.textContent,n.push(f),s.remove(),r===f.N&&(t.v||(t.v=[]),t.v[f.M]=f))):"c"===c?(f.O=Z(s,8),f.O&&8===f.O.nodeType&&(n.push(f),s.remove())):f.N===r&&("s"===c?Y(s["s-sn"]=u[5]||"",u[2],f,s,t,n,e,0,i):"r"===c&&(l["s-cr"]=s,s["s-cn"]=!0)));else if(t&&"style"===t.j){const n=U(null,s.textContent);n.O=s,n.M="0",t.v=[n]}return t},z=(t,n)=>{if(1===t.nodeType){const e=t[f]||t.getAttribute(f);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)z(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)z(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},q=t=>({i:0,N:null,k:null,S:null,M:"0",O:null,p:null,v:null,h:null,m:null,j:null,$:null,...t});function Y(t,n,e,o,l,s,r,i,c){o["s-sr"]=!0,e.m=t||null,e.j="slot";const u=(null==l?void 0:l.O)?l.O["s-id"]||l.O.getAttribute("s-id"):"";{const s=e.O,r=u&&u!==e.N&&l.O.shadowRoot;J(c,n,t,o,r?u:e.N),R(o),r&&l.O.insertBefore(s,l.O.children[0])}s.push(e),r.push(e),l.v||(l.v=[]),l.v[e.M]=e}var J=(t,n,e,o,l)=>{var s,r;let i=o.nextSibling;if(t[n]=t[n]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==e&&(""!==e||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=e,t[n].push({slot:o,node:i,hostId:l})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},Z=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},G=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},K=class l{static fromLocalValue(t){const n=t[e],s=o in t?t[o]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((t=>l.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[n,e]of s){const o="object"==typeof n&&null!==n?l.fromLocalValue(n):n,s=l.fromLocalValue(e);t.set(o,s)}return t;case"object":const e={};for(const[t,n]of s)e[t]=l.fromLocalValue(n);return e;case"regexp":const{pattern:o,flags:r}=s;return new RegExp(o,r);case"set":const i=new Set;for(const t of s)i.add(l.fromLocalValue(t));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>l.fromLocalValue(t)))}static isLocalValueObject(l){if("object"!=typeof l||null===l)return!1;if(!l.hasOwnProperty(e))return!1;const s=l[e];return!!Object.values({...t,...n}).includes(s)&&("null"===s||"undefined"===s||l.hasOwnProperty(o))}};var Q,X,tt=(t,n)=>{return"string"==typeof t&&t.startsWith(l)?t="string"==typeof(e=t)&&e.startsWith(l)?K.fromLocalValue(JSON.parse(function(t){const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return(new TextDecoder).decode(e)}(e.slice(11)))):e:null==t||C(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?String(t):t;var e},nt=(t,n,e)=>{const o=t;return{emit:t=>et(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},et=(t,n,e)=>{const o=v.ce(n,e);return t.dispatchEvent(o),o},ot=(t,n,e,o,l,s,r)=>{if(e===o)return;let u=c(t,n),f=n.toLowerCase();if("class"===n){const n=t.classList,l=it(e);let s=it(o);if((t["s-si"]||t["s-sc"])&&r){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&Et(o,t);else if(t.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=i(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const r=C(o);if((u||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?u=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let i=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(n=f,i=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(n)||4&s&&!st(n))&&(i?t.removeAttributeNS(d,n):t.removeAttribute(n)):(!u||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,i?t.setAttributeNS(d,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):c($,f)?f.slice(2):f[2]+n.slice(3),e||o){const l=n.endsWith(ct);n=n.replace(ut,""),e&&v.rel(t,n,e,l),o&&v.ael(t,n,o,l)}},lt=new Set(["draggable","contenteditable","spellcheck"]),st=t=>lt.has(t)||t.startsWith("aria-"),rt=/\s/,it=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(rt):[]),ct="Capture",ut=new RegExp(ct+"$"),ft=(t,n,e,o)=>{const l=11===n.O.nodeType&&n.O.host?n.O.host:n.O,s=t&&t.p||{},r=n.p||{};for(const t of at(Object.keys(s)))t in r||ot(l,t,s[t],void 0,e,n.i,o);for(const t of at(Object.keys(r)))ot(l,t,s[t],r[t],e,n.i,o)};function at(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var dt=!1,$t=!1,pt=!1,vt=!1,ht=[],bt=[],mt=(t,n,e)=>{var o;const l=n.v[e];let s,r,i,c=0;if(dt||(pt=!0,"slot"===l.j&&(l.i|=l.v?2:1)),null!=l.$)s=l.O=$.document.createTextNode(l.$);else if(1&l.i)s=l.O=$.document.createTextNode(""),ft(null,l,vt);else{if(vt||(vt="svg"===l.j),!$.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.O=$.document.createElementNS(vt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!dt&&2&l.i?"slot-fb":l.j),vt&&"foreignObject"===l.j&&(vt=!1),ft(null,l,vt),l.v){const n="template"===l.j?s.content:s;for(c=0;c<l.v.length;++c)r=mt(t,l,c),r&&n.appendChild(r)}"svg"===l.j?vt=!1:"foreignObject"===s.tagName&&(vt=!0)}return s["s-hn"]=X,3&l.i&&(s["s-sr"]=!0,s["s-cr"]=Q,s["s-sn"]=l.m||"",s["s-rf"]=null==(o=l.p)?void 0:o.ref,R(s),i=t&&t.v&&t.v[e],i&&i.j===l.j&&t.O&&yt(t.O)),s},yt=t=>{v.i|=1;const n=t.closest(X.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(It(n,t,null!=e?e:null),t["s-sh"]=void 0,pt=!0)}v.i&=-2},gt=(t,n)=>{v.i|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===X&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==X&&o["s-ol"]&&(It(Nt(o).parentNode,o,Nt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,pt=!0),n&>(o,n)}v.i&=-2},wt=(t,n,e,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.j&&(i=i.content);l<=s;++l)o[l]&&(r=mt(null,e,l),r&&(o[l].O=r,It(i,r,Nt(n))))},jt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.O;Mt(n),t&&($t=!0,t["s-ol"]?t["s-ol"].remove():gt(t,!0),t.remove())}}},Ot=(t,n,e=!1)=>t.j===n.j&&("slot"===t.j?t.m===n.m:e?(e&&!t.h&&n.h&&(t.h=n.h),!0):t.h===n.h),Nt=t=>t&&t["s-ol"]||t,kt=(t,n,e=!1)=>{const o=n.O=t.O,l=t.v,s=n.v,r=n.j,i=n.$;let c;null==i?(vt="svg"===r||"foreignObject"!==r&&vt,"slot"!==r||dt||t.m!==n.m&&(n.O["s-sn"]=n.m||"",yt(n.O.parentElement)),ft(t,n,vt,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],$=n[a],p=o.length-1,v=o[0],h=o[p];const b="template"===e.j?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==$)$=n[--a];else if(null==v)v=o[++c];else if(null==h)h=o[--p];else if(Ot(d,v,l))kt(d,v,l),d=n[++i],v=o[++c];else if(Ot($,h,l))kt($,h,l),$=n[--a],h=o[--p];else if(Ot(d,h,l))"slot"!==d.j&&"slot"!==h.j||gt(d.O.parentNode,!1),kt(d,h,l),It(b,d.O,$.O.nextSibling),d=n[++i],h=o[--p];else if(Ot($,v,l))"slot"!==d.j&&"slot"!==h.j||gt($.O.parentNode,!1),kt($,v,l),It(b,$.O,d.O),$=n[--a],v=o[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].h&&n[f].h===v.h){u=f;break}u>=0?(r=n[u],r.j!==v.j?s=mt(n&&n[c],e,u):(kt(r,v,l),n[u]=void 0,s=r.O),v=o[++c]):(s=mt(n&&n[c],e,c),v=o[++c]),s&&It(Nt(d.O).parentNode,s,Nt(d.O))}i>a?wt(t,null==o[p+1]?null:o[p+1].O,e,o,c,p):c>p&&jt(n,i,a)})(o,l,n,s,e):null!==s?(null!==t.$&&(o.textContent=""),wt(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.v=l):jt(l,0,l.length-1),vt&&"svg"===r&&(vt=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.$!==i&&(o.data=i)},xt=[],St=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==t["s-hn"]||""!==l&&_(n)===l))if(L(n,l)){let e=xt.find((t=>t.I===n));$t=!0,n["s-sn"]=n["s-sn"]||l,e?(e.I["s-sh"]=t["s-hn"],e.L=t):(n["s-sh"]=t["s-hn"],xt.push({L:t,I:n})),n["s-sr"]&&xt.map((t=>{L(t.I,n["s-sn"])&&(e=xt.find((t=>t.I===n)),e&&!t.L&&(t.L=e.L))}))}else xt.some((t=>t.I===n))||xt.push({I:n})}1===t.nodeType&&St(t)}},Mt=t=>{t.p&&t.p.ref&&ht.push((()=>t.p.ref(null))),t.v&&t.v.map(Mt)},Et=(t,n)=>{bt.push((()=>t(n)))},It=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=_(t)||"";return{slotNode:E(T(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&l.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),n}return(null==t?void 0:t.__insertBefore)?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},Lt=(t,n,e=!1)=>{var o,l,s,r,i;const c=t.$hostElement$,u=t.o,f=t.A||U(null,null);var a;const d=(a=n)&&a.j===V?n:D(null,null,n);if(X=c.tagName,u._&&(d.p=d.p||{},u._.forEach((([t,n])=>{d.p[n]=c[t]}))),e&&d.p)for(const t of Object.keys(d.p))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.p[t]=c[t]);if(d.j=null,d.i|=4,t.A=d,d.O=f.O=c,dt=false,Q=c["s-cr"],$t=!1,kt(f,d,e),v.i|=1,pt){St(d.O);for(const t of xt){const n=t.I;if(!n["s-ol"]&&$.document){const t=$.document.createTextNode("");t["s-nr"]=n,It(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of xt){const n=t.I,i=t.L;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),i){const t=i.parentNode;let o=i.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(It(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=$.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,It(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(r=n["s-ih"])&&r)}n&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===n.nodeType&&(n.hidden=!0)}}if($t&&M(d.O),v.i&=-2,xt.length=0,!dt&&!(1&u.i)&&c["s-cr"]){const t=d.O.__childNodes||d.O.childNodes;for(const n of t)if(n["s-hn"]!==X&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(i=n.hidden)&&i),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=$.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],It(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}Q=void 0,ht.forEach((t=>t())),ht.length=0,bt.forEach((t=>t())),bt.length=0},At=(t,n)=>{if(n&&!t.R&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.R=()=>{n["s-p"].splice(e-1,1),o()})))}},_t=(t,n)=>{if(t.i|=16,4&t.i)return void(t.i|=512);At(t,t.T);const e=()=>Rt(t,n);if(!n)return k(e);queueMicrotask((()=>{e()}))},Rt=(t,n)=>{const e=t.$hostElement$,o=e;if(!o)throw new Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=Wt(o,n?"componentWillLoad":"componentWillUpdate",void 0,e),l=Tt(l,(()=>Wt(o,"componentWillRender",void 0,e))),Tt(l,(()=>Ct(t,o,n)))},Tt=(t,n)=>Ft(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Ft=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ct=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];Dt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Ut(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.i|=4,n.length=0)}},Dt=(t,n,e,o)=>{try{n=n.render(),t.i&=-17,t.i|=2,Lt(t,n,o)}catch(n){u(n,t.$hostElement$)}return null},Ut=t=>{const n=t.$hostElement$,e=n,o=t.T;Wt(e,"componentDidRender",void 0,n),64&t.i?Wt(e,"componentDidUpdate",void 0,n):(t.i|=64,Bt(n),Wt(e,"componentDidLoad",void 0,n),t.F(n),o||Pt()),t.R&&(t.R(),t.R=void 0),512&t.i&&N((()=>_t(t,!1))),t.i&=-517},Vt=t=>{var n;{const e=i(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.i)&&_t(e,!1),o}},Pt=()=>{var t;N((()=>et($,"appload",{detail:{namespace:"apollo-core"}}))),(null==(t=v.C)?void 0:t.size)&&v.C.clear()},Wt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){u(t,o)}},Bt=t=>t.classList.add("hydrated"),Ht=(t,n,e,o)=>{const l=i(t);if(!l)return;const s=t,r=l.l.get(n),c=l.i,f=s;e=tt(e,o.t[n][0]);const a=Number.isNaN(r)&&Number.isNaN(e);if(e!==r&&!a){if(l.l.set(n,e),o.D){const t=o.D[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&c||1&s)&&(f?f[o](e,r,n):l.U.push((()=>{l.V[o](e,r,n)})))}catch(t){u(t,s)}}))}if(2&c){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(e,r,n)&&!(16&c))return;16&c||_t(l,!1)}}},zt=(t,n)=>{var e,o;const l=t.prototype;{t.watchers&&!n.D&&(n.D=G(t.watchers)),t.deserializers&&!n.P&&(n.P=t.deserializers),t.serializers&&!n.W&&(n.W=t.serializers);const r=Object.entries(null!=(e=n.t)?e:{});r.map((([t,[e]])=>{if(31&e||32&e){const{get:o,set:r}=s(l,t)||{};o&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),Object.defineProperty(l,t,{get(){return o?o.apply(this):(n=t,i(this).l.get(n));var n},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(o){const l=i(this);if(l){if(r)return void 0===(32&e?this[t]:l.$hostElement$[t])&&l.l.get(t)&&(o=l.l.get(t)),r.apply(this,[tt(o,e)]),void Ht(this,t,o=32&e?this[t]:l.$hostElement$[t],n);Ht(this,t,o,n)}}})}}));{const e=new Map;l.attributeChangedCallback=function(t,o,s){v.jmp((()=>{var c;const u=e.get(t),f=i(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const e=null==f?void 0:f.i;if(f&&e&&!(8&e)&&s!==o){const l=this,r=null==(c=n.D)?void 0:c[t];null==r||r.forEach((n=>{const[[r,i]]=Object.entries(n);null!=l[r]&&(128&e||1&i)&&l[r].call(l,s,o,t)}))}return}const a=r.find((([t])=>t===u)),d=a?a[1][0]:0,$=4&d;if(512&d&&8&d&&!C(this[u])&&(null==(p=this[u])||!1===p?null:!0===p?"":String(p))===s)return;var p;const v=$&&null===s&&void 0===this[u];$&&(s=null!==s&&"false"!==s);const h=Object.getOwnPropertyDescriptor(l,u);v||s==this[u]||h.get&&!h.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.D)?o:{}),...r.filter((([t,n])=>31&n[0])).map((([t,o])=>{var l;const s=o[1]||t;return e.set(s,t),512&o[0]&&(null==(l=n._)||l.push([t,s])),s}))]))}}return t},qt=async(t,n)=>{try{32&n.i||(n.i|=32,n.i&=-1025,customElements.whenDefined(t.localName).then((()=>n.i|=128)));const e=n.T,o=()=>_t(n,!0);e&&e["s-rc"]?e["s-rc"].push(o):o()}catch(e){u(e,t),n.R&&(n.R(),n.R=void 0),!n.F||1024&n.i||n.F(t)}},Yt=t=>{if(!$.document)return;const n=t["s-cr"]=$.document.createComment("");n["s-cn"]=!0,It(t,n,t.firstChild)},Jt=(t,n)=>{const e={i:n[0],B:n[1]};try{e.t=n[2],e.H=n[3],e.D=G(t.D),e.P=t.P,e.W=t.W,e._=[];const o=t.prototype.connectedCallback,l=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const e={i:0,$hostElement$:t,o:n,l:new Map,q:new Map};e.Y=new Promise((t=>e.F=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o,512&n.i&&r(t,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=i(this);if(!t)return;Gt(this,t,e.H),this.__hasHostListenerAttached=!0}(t=>{if(!(1&v.i)){const n=i(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.i)Gt(t,n,e.H),(null==n?void 0:n.V)||(1024&n.i?setTimeout((()=>qt(t,n)),1e3):(null==n?void 0:n.Y)&&n.Y.then((()=>{})));else{let o;n.i|=1,o=t.getAttribute(f),o&&((t,n,e,o)=>{var l,s,r,c;const u=t.shadowRoot,a=[],d=[],p=U(n,null);p.O=t,!$.document||v.C&&v.C.size||z($.document.body,v.C=new Map),t[f]=e,t.removeAttribute(f),o.A=H(p,a,[],null,t,t,e,d);let h=0;const b=a.length;let m;for(;h<b;h++){m=a[h];const e=m.N+"."+m.k,o=v.C.get(e),s=m.O;if(u){if((null==(l=m.j)?void 0:l.toString().includes("-"))&&"slot-fb"!==m.j&&!m.O.shadowRoot){const t=i(m.O);if(t){const n=$.document.querySelector(`style[sty-id="${"sc-"+t.o.B}"]`);n&&null.unshift(n.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===m.j&&(s["s-cr"]=t["s-cr"]);"slot"===m.j&&(m.m=m.O["s-sn"]||m.O.name||null,m.v?(m.i|=2,m.O.childNodes.length||m.v.forEach((t=>{m.O.appendChild(t.O)}))):m.i|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),u||(s["s-oo"]=parseInt(m.k))),o&&!o["s-id"]&&v.C.delete(e)}const y=[],g=d.length;let w,j,O,N,k=0,x=0;for(;k<g;k++)if(w=d[k],w&&w.length)for(O=w.length,j=0;j<O;j++){if(N=w[j],y[N.hostId]||(y[N.hostId]=v.C.get(N.hostId)),!y[N.hostId])continue;const t=y[N.hostId];t.shadowRoot&&N.node.parentElement!==t&&t.insertBefore(N.node,null==(r=null==(s=w[j-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&u||(N.slot["s-cr"]||(N.slot["s-cr"]=t["s-cr"],N.slot["s-cr"]=!N.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),A(N.node,N.slot,0,N.node["s-oo"]||x),(null==(c=N.node.parentElement)?void 0:c.shadowRoot)&&N.node.getAttribute&&N.node.getAttribute("slot")&&N.node.removeAttribute("slot")),x=(N.node["s-oo"]||x)+1}o.$hostElement$=t})(t,e.B,o,n),o||12&e.i&&Yt(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){At(n,n.T=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),qt(t,n)}o()}})(this),o&&o.call(this)},disconnectedCallback(){(async t=>{if(!(1&v.i)){const n=i(t);(null==n?void 0:n.J)&&(n.J.map((t=>t())),n.J=void 0)}F.has(t)&&F.delete(t),t.shadowRoot&&F.has(t.shadowRoot)&&F.delete(t.shadowRoot)})(this),l&&l.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(t,"is",{value:e.B,configurable:!0}),zt(t,e)}catch(n){return u(n),t}},Zt=(t,n)=>n,Gt=(t,n,e)=>{e&&$.document&&e.map((([e,o,l])=>{const s=Qt($.document,t,e),r=Kt(n,l),i=Xt(e);v.ael(s,o,r,i),(n.J=n.J||[]).push((()=>v.rel(s,o,r,i)))}))},Kt=(t,n)=>e=>{try{t.$hostElement$[n](e)}catch(n){u(n,t.$hostElement$)}},Qt=(t,n,e)=>4&e?t:8&e?$:n,Xt=t=>h?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t),tn=t=>v.Z=t,nn=t=>Object.assign(v,t),en=new WeakMap;function on(t,n){let e=en.get(n);e||(e={i:0,o:{i:0,B:n.tagName},$hostElement$:n},en.set(n,e)),Lt(e,t)}function ln(t){return t}export{Zt as F,p as H,tn as a,nn as b,V as c,nt as d,Vt as f,x as g,D as h,Jt as p,on as r,S as s,ln as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as s,H as t,d as i,h as e,c as h,t as r}from"./p-
|
|
1
|
+
import{p as s,H as t,d as i,h as e,c as h,t as r}from"./p-B_6p2HCL.js";import{d as a}from"./p-6-DvgBzG.js";const n=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.blurEvent=i(this,"blurEvent",7),this.focusEvent=i(this,"focusEvent",7),this.inputEvent=i(this,"inputEvent",7),this.search=i(this,"search",7),this.valueChange=i(this,"valueChange",7),this.hasAncestorForm=!1,this.ariaLabel="Search",this.autocomplete="off",this.disabled=!1,this.hasError=!1,this.hasVisibleLabel=!1,this.placeholder="Search",this.readonly=!1,this.required=!1,this.shape="rounded",this.value="",this.handleInnerFormSubmit=s=>{s.preventDefault(),this.disabled||this.readonly||this.emitSearchCommit(this.value.trim())},this.handleClear=s=>{s.preventDefault(),this.disabled||this.readonly||(this.value="",this.valueChange.emit(""),this.inputEvent.emit(""),this.inputEl?.focus())},this.handleInput=s=>{const t=s.target;this.value=t.value,this.valueChange.emit(t.value),this.inputEvent.emit(t.value)},this.handleKeyDown=s=>{"Enter"===s.key&&(this.disabled||this.readonly||s.target.form||(s.preventDefault(),this.emitSearchCommit(this.value.trim())))},this.handleFocus=s=>{this.focusEvent.emit(s)},this.handleBlur=s=>{this.blurEvent.emit(s)}}connectedCallback(){this.syncAncestorFormFlag()}async setFocus(){this.inputEl?.focus()}syncAncestorFormFlag(){const s=this.el,t=Boolean(s&&"function"==typeof s.closest&&s.closest("form"));this.hasAncestorForm!==t&&(this.hasAncestorForm=t)}get hasValue(){return void 0!==this.value&&this.value.length>0}get resolvedInputAriaLabel(){if(!this.hasVisibleLabel)return(this.ariaLabel??"").trim()||"Search"}get rendersInnerSearchForm(){return!this.hasAncestorForm}emitSearchCommit(s){this.search.emit(s)}renderShell(){const s=e("div",{class:"xpl-input-search__shell"},e("span",{class:"xpl-input-search__icon","aria-hidden":"true"},e("xpl-icon",{icon:"magnifier",size:20})),e("input",{"aria-describedby":this.hasError?this.errorMessageId:void 0,"aria-invalid":this.hasError?"true":void 0,"aria-label":this.resolvedInputAriaLabel,autocomplete:this.autocomplete,class:"xpl-input-search__input",disabled:this.disabled,id:this.inputId,name:this.name,onBlur:this.handleBlur,onFocus:this.handleFocus,onInput:this.handleInput,onKeyDown:this.handleKeyDown,placeholder:this.placeholder,readonly:this.readonly,ref:s=>{this.inputEl=s??void 0},required:this.required,role:"searchbox",type:"text",value:this.value}),e("button",{"aria-hidden":this.hasValue?void 0:"true","aria-label":"Clear search",class:"xpl-input-search__clear",disabled:this.disabled||this.readonly,onClick:this.handleClear,type:"button"},e("xpl-icon",{icon:"circle-xmark",size:16})));return this.rendersInnerSearchForm?e("form",{class:"xpl-input-search__form",onSubmit:this.handleInnerFormSubmit},s):s}render(){return e(h,{key:"90b29d51b36655d1dc5f7fa9b67edf6382cb90af",class:{"xpl-input-search":!0,"xpl-input-search--disabled":this.disabled,"xpl-input-search--error":this.hasError,"xpl-input-search--has-value":this.hasValue,"xpl-input-search--readonly":this.readonly,"xpl-input-search--shape-box":"box"===this.shape}},this.renderShell())}get el(){return this}},[0,"xpl-input-search",{ariaLabel:[1,"aria-label"],autocomplete:[1],disabled:[4],errorMessageId:[1,"error-message-id"],hasError:[4,"has-error"],hasVisibleLabel:[4,"has-visible-label"],inputId:[1,"input-id"],name:[1],placeholder:[1],readonly:[4],required:[4],shape:[1],value:[1025],hasAncestorForm:[32],setFocus:[64]}]);function l(){"undefined"!=typeof customElements&&["xpl-input-search","xpl-icon"].forEach((s=>{switch(s){case"xpl-input-search":customElements.get(r(s))||customElements.define(r(s),n);break;case"xpl-icon":customElements.get(r(s))||a()}}))}export{n as I,l as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,H as d,h as s,c as t,t as a}from"./p-B_6p2HCL.js";const i=e(class extends d{constructor(e){super(),!1!==e&&this.__registerHost()}render(){let e="xpl-divider";return e+=` xpl-divider--${this.tier}`,s(t,{key:"af5215db4c71b69c9dba81383bd9ae2fa318d7f1",class:e},s("span",{key:"de353b8dd0fa49490b93295a0da8c783a0b664f4"},s("slot",{key:"9a10da3760366b90059113530c7e1799d1a3a89c"})))}},[260,"xpl-divider",{tier:[2]}]);function r(){"undefined"!=typeof customElements&&["xpl-divider"].forEach((e=>{"xpl-divider"===e&&(customElements.get(a(e))||customElements.define(a(e),i))}))}export{i as D,r as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,d as i,h as e,c as n,t as o}from"./p-BSHdGbmH.js";import{T as h,i as r}from"./p-Dqb1pIRo.js";import{d as a}from"./p-CQjJIHK6.js";const l="(max-width: 767px)",p="hoverClose",d=t(class t extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.navItemClick=i(this,"navItemClick",7),this.openChange=i(this,"openChange",7),this.dropdownPanelId=`xpl-top-nav-item-dropdown-${Math.random().toString(36).slice(2,11)}`,this.hoverOpened=!1,this.timers=new h,this.hasActiveDescendant=!1,this.hasDropdown=!1,this.isLeadingIconSlotPresent=!1,this.isMobileViewport=!1,this.hostListitemRole=!1,this.isTrailingIconSlotPresent=!1,this.active=!1,this.icon="",this.open=!1,this.openMode="click",this.selected=!1,this.onDocClickCapture=t=>{if(!this.hasDropdown||!this.open)return;const s=t.target;s&&!this.el.contains(s)&&(this.open=!1)},this.onDocKeyDownCapture=t=>{this.hasDropdown&&this.open&&"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),this.open=!1,this.focusTriggerAfterEscape())},this.handleClick=t=>{if(this.hasDropdown){if(t.preventDefault(),t.stopPropagation(),this.timers.clearCoalesced(p),this.open&&this.hoverOpened&&this.hoverModeActive()&&t.detail>0)return;return this.hoverOpened=!1,void(this.open=!this.open)}this.navItemClick.emit(t)},this.handleKeyDown=t=>{if(null!=this.href&&!this.hasDropdown&&" "===t.key){t.preventDefault();const s=this.el.querySelector(".xpl-top-nav-item__inner");s?.click()}},this.onMobileViewportChange=()=>{this.isMobileViewport=this.mobileMq?.matches??!1},this.handleMouseEnter=()=>{this.hasDropdown&&this.hoverModeActive()&&(this.timers.clearCoalesced(p),this.open||(this.hoverOpened=!0,this.open=!0))},this.handleMouseLeave=()=>{this.hasDropdown&&this.open&&this.hoverOpened&&this.timers.scheduleCoalesced(p,(()=>{this.hoverOpened&&!this.el.contains(this.el.ownerDocument.activeElement)&&(this.open=!1)}),150)}}onHasDropdownChanged(){this.hasDropdown||(this.open=!1),this.syncDropdownDocListeners()}onOpenChanged(t){this.openChange.emit(t),t||(this.hoverOpened=!1),t&&this.hasDropdown&&this.broadcastCloseOtherDropdownHosts()}connectedCallback(){r()&&"function"==typeof window.matchMedia&&(this.hoverOpenMq=window.matchMedia("(hover: hover) and (pointer: fine) and (min-width: 768px)"),this.mobileMq=window.matchMedia(l),this.mobileMq.addEventListener("change",this.onMobileViewportChange),this.isMobileViewport=this.mobileMq.matches),this.syncHostListitemRole(),this.syncHasDropdownFromDom(),this.syncDropdownDocListeners(),this.connectDropdownSlotObserver()}disconnectedCallback(){this.timers.dispose(),this.hoverOpenMq=void 0,this.mobileMq?.removeEventListener("change",this.onMobileViewportChange),this.mobileMq=void 0,this.disconnectDropdownSlotObserver(),this.disconnectListitemContextObservers();const t=this.el.ownerDocument;t.removeEventListener("click",this.onDocClickCapture,!0),t.removeEventListener("keydown",this.onDocKeyDownCapture,!0)}componentWillLoad(){this.syncHostListitemRole(),this.syncHasDropdownFromDom()}componentWillRender(){this.disconnectDropdownSlotObserver(),this.disconnectListitemContextObservers()}componentDidRender(){this.schedulePostRenderTopNavItemWork()}handleCloseNavDropdownRequest(){this.hasDropdown&&this.open&&(this.open=!1)}async closeMenu(){this.hasDropdown&&(this.open=!1)}async openMenu(){this.hasDropdown&&(this.timers.clearCoalesced(p),this.hoverOpened=!1,this.open=!0)}async toggleMenu(){this.hasDropdown&&(this.open=!this.open)}scheduleHasDropdownSyncFromObserver(){this.timers.scheduleCoalesced("hasDropdownSync",(()=>{this.el.isConnected&&this.syncHasDropdownFromDom()}))}connectDropdownSlotObserver(){this.disconnectDropdownSlotObserver(),"undefined"!=typeof MutationObserver&&(this.dropdownSlotObserver=new MutationObserver((()=>{this.scheduleHasDropdownSyncFromObserver()})),this.dropdownSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectDropdownSlotObserver(){this.dropdownSlotObserver?.disconnect(),this.dropdownSlotObserver=void 0}disconnectListitemContextObservers(){this.parentListitemContextObserver?.disconnect(),this.parentListitemContextObserver=void 0,this.selfListitemContextObserver?.disconnect(),this.selfListitemContextObserver=void 0}connectListitemContextObservers(){if(this.disconnectListitemContextObservers(),"undefined"==typeof MutationObserver||!this.el.isConnected)return;this.selfListitemContextObserver=new MutationObserver((()=>{this.schedulePostRenderTopNavItemWork()})),this.selfListitemContextObserver.observe(this.el,{attributes:!0,attributeFilter:["class","slot"]});const t=this.el.parentElement;if(t){this.parentListitemContextObserver=new MutationObserver((()=>{this.schedulePostRenderTopNavItemWork()}));const s="xpl-top-nav"===t.tagName.toLowerCase()&&"left-aside"===this.el.getAttribute("slot")?t.querySelector(".xpl-top-nav__left-primary"):null;this.parentListitemContextObserver.observe(s??t,{attributes:!0,attributeFilter:["role"],subtree:!1})}}schedulePostRenderTopNavItemWork(){this.timers.scheduleCoalesced("postRender",(()=>{this.el.isConnected&&(this.syncHostListitemRole(),this.syncHasDropdownFromDom(),this.connectListitemContextObservers(),this.connectDropdownSlotObserver())}))}syncDropdownDocListeners(){if(!r())return;const t=this.el.ownerDocument;t.removeEventListener("click",this.onDocClickCapture,!0),t.removeEventListener("keydown",this.onDocKeyDownCapture,!0),this.hasDropdown&&(t.addEventListener("click",this.onDocClickCapture,!0),t.addEventListener("keydown",this.onDocKeyDownCapture,!0))}hasSlottedChildOwnedByThisHost(t){return Array.from(this.el.querySelectorAll(`[slot="${t}"]`)).some((t=>t.closest("xpl-top-nav-item")===this.el))}syncHasDropdownFromDom(){const t=null!=this.el.querySelector('[slot="dropdown"]');t!==this.hasDropdown&&(this.hasDropdown=t);const s=this.hasSlottedChildOwnedByThisHost("leading-icon");s!==this.isLeadingIconSlotPresent&&(this.isLeadingIconSlotPresent=s);const i=this.hasSlottedChildOwnedByThisHost("trailing-icon");i!==this.isTrailingIconSlotPresent&&(this.isTrailingIconSlotPresent=i);const e=!!t&&(null!==this.el.querySelector('[slot="dropdown"] .xpl-top-nav-item--active')||null!==this.el.querySelector('[slot="dropdown"] .xpl-top-nav-item--selected'));e!==this.hasActiveDescendant&&(this.hasActiveDescendant=e)}getNavDropdownBroadcastRoot(){return this.el.closest("xpl-top-nav-menu")??this.el.closest("xpl-nav-header-menu")??this.el.closest("xpl-top-nav")??this.el.ownerDocument}broadcastCloseOtherDropdownHosts(){this.getNavDropdownBroadcastRoot().querySelectorAll("xpl-top-nav-item").forEach((t=>{t!==this.el&&t.parentElement===this.el.parentElement&&t.dispatchEvent(new CustomEvent("_xplCloseNavDropdown",{bubbles:!1}))}))}hoverModeActive(){return"hover"===this.openMode&&(this.hoverOpenMq?.matches??!1)}focusTriggerAfterEscape(){this.timers.scheduleCoalesced("focusTriggerAfterEscape",(()=>{this.el.isConnected&&this.el.querySelector(".xpl-top-nav-item__inner")?.focus()}))}static isInternalRenderedHostChild(t){return t.classList.contains("xpl-top-nav-item__inner")||t.classList.contains("xpl-top-nav-item__dropdown")}hasNonDropdownLightDomChild(){return Array.from(this.el.childNodes).some((s=>{if(s.nodeType===Node.TEXT_NODE)return Boolean(s.textContent?.trim());if(s.nodeType===Node.ELEMENT_NODE){const i=s;if(t.isInternalRenderedHostChild(i))return!1;const e=i.getAttribute("slot");return null==e||""===e}return!1}))}getInnerAriaLabel(){if(this.label?.trim())return;if(this.hasNonDropdownLightDomChild())return;const t=this.itemAriaLabel?.trim();return t||(this.icon?.trim()||this.isLeadingIconSlotPresent?"Navigation item":void 0)}computeHostListitemRole(){const{el:t}=this;if(t.classList.contains("xpl-top-nav__brand"))return!1;if("right-aside-mobile"===t.getAttribute("slot"))return!1;const s=t.parentElement;return"list"===s?.getAttribute("role")||null!=s&&"xpl-nav-header-menu"===s.tagName.toLowerCase()||null!=s&&"xpl-top-nav-menu"===s.tagName.toLowerCase()||"left-aside"===t.getAttribute("slot")&&"xpl-top-nav"===s?.tagName.toLowerCase()&&null!=s.querySelector('.xpl-top-nav__left-primary[role="list"]')}syncHostListitemRole(){const t=this.computeHostListitemRole();this.hostListitemRole!==t&&(this.hostListitemRole=t)}renderLabelContent(){if(!this.label)return e("slot",null);const t=this.description?.trim();return t?e("span",{class:"xpl-top-nav-item__label-group"},e("span",{class:"xpl-top-nav-item__label",title:this.label},this.label),e("span",{class:"xpl-top-nav-item__description"},t)):e("span",{class:"xpl-top-nav-item__label",title:this.label},this.label)}renderLeading(){return this.isLeadingIconSlotPresent?e("span",{class:"xpl-top-nav-item__leading"},e("slot",{name:"leading-icon"})):this.icon?e("span",{class:"xpl-top-nav-item__leading"},e("xpl-icon",{size:16,icon:this.icon})):null}renderTrailing(){return this.isTrailingIconSlotPresent?e("span",{class:"xpl-top-nav-item__trailing"},e("slot",{name:"trailing-icon"})):this.hasDropdown?e("span",{class:"xpl-top-nav-item__trailing"},e("xpl-icon",{icon:this.isMobileViewport?"chevron-right":"chevron-down"})):null}renderInner(){const t=this.selected?"page":void 0,s=this.hasDropdown?this.open?"true":"false":void 0,i=this.getInnerAriaLabel(),n={class:"xpl-top-nav-item__inner",tabIndex:0,"aria-current":t,"aria-expanded":s,"aria-haspopup":this.hasDropdown?"true":void 0,"aria-controls":this.hasDropdown?this.dropdownPanelId:void 0,...i?{"aria-label":i}:{},onClick:this.handleClick,onKeyDown:this.handleKeyDown};return null==this.href||this.hasDropdown?e("button",{...n,type:"button"},this.renderLeading(),this.renderLabelContent(),this.renderTrailing()):e("a",{...n,href:this.href},this.renderLeading(),this.renderLabelContent(),this.renderTrailing())}render(){return e(n,{key:"fe53cfd84cba8502089c4a3fae62dfed10c0cdf0",class:{"xpl-top-nav-item":!0,"xpl-top-nav-item--active":this.active,"xpl-top-nav-item--dropdown-open":this.hasDropdown&&this.open,"xpl-top-nav-item--has-active-descendant":this.hasActiveDescendant,"xpl-top-nav-item--has-dropdown":this.hasDropdown,"xpl-top-nav-item--selected":this.selected,dark:!0},onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,...this.hostListitemRole?{role:"listitem"}:{}},this.renderInner(),this.hasDropdown&&e("div",{key:"954f83c94bd56d9bd328212f2ecc070861b1fd54",id:this.dropdownPanelId,class:"xpl-top-nav-item__dropdown"},e("slot",{key:"4d830a9386f12026cd1a2ecb454bcb9df2202431",name:"dropdown"})))}get el(){return this}static get watchers(){return{hasDropdown:[{onHasDropdownChanged:0}],open:[{onOpenChanged:0}]}}},[260,"xpl-top-nav-item",{active:[516],description:[1],href:[1],icon:[1],itemAriaLabel:[1,"item-aria-label"],label:[1],open:[1540],openMode:[513,"open-mode"],selected:[516],hasActiveDescendant:[32],hasDropdown:[32],isLeadingIconSlotPresent:[32],isMobileViewport:[32],hostListitemRole:[32],isTrailingIconSlotPresent:[32],closeMenu:[64],openMenu:[64],toggleMenu:[64]},[[0,"_xplCloseNavDropdown","handleCloseNavDropdownRequest"]],{hasDropdown:[{onHasDropdownChanged:0}],open:[{onOpenChanged:0}]}]);function c(){"undefined"!=typeof customElements&&["xpl-top-nav-item","xpl-icon"].forEach((t=>{switch(t){case"xpl-top-nav-item":customElements.get(o(t))||customElements.define(o(t),d);break;case"xpl-icon":customElements.get(o(t))||a()}}))}export{d as T,l as a,c as d}
|
|
1
|
+
import{p as t,H as s,d as i,h as e,c as n,t as o}from"./p-B_6p2HCL.js";import{T as h,i as a}from"./p-Dqb1pIRo.js";import{d as r}from"./p-6-DvgBzG.js";const l="(max-width: 767px)",p="hoverClose",d=t(class t extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.navItemClick=i(this,"navItemClick",7),this.openChange=i(this,"openChange",7),this.dropdownPanelId=`xpl-top-nav-item-dropdown-${Math.random().toString(36).slice(2,11)}`,this.hoverOpened=!1,this.timers=new h,this.hasActiveDescendant=!1,this.hasDropdown=!1,this.isLeadingIconSlotPresent=!1,this.isMobileViewport=!1,this.hostListitemRole=!1,this.isTrailingIconSlotPresent=!1,this.active=!1,this.icon="",this.open=!1,this.openMode="click",this.selected=!1,this.onDocClickCapture=t=>{if(!this.hasDropdown||!this.open)return;const s=t.target;s&&!this.el.contains(s)&&(this.open=!1)},this.onDocKeyDownCapture=t=>{this.hasDropdown&&this.open&&"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),this.open=!1,this.focusTriggerAfterEscape())},this.handleClick=t=>{if(this.hasDropdown){if(t.preventDefault(),t.stopPropagation(),this.timers.clearCoalesced(p),this.open&&this.hoverOpened&&this.hoverModeActive()&&t.detail>0)return;return this.hoverOpened=!1,void(this.open=!this.open)}this.navItemClick.emit(t)},this.handleKeyDown=t=>{if(null!=this.href&&!this.hasDropdown&&" "===t.key){t.preventDefault();const s=this.el.querySelector(".xpl-top-nav-item__inner");s?.click()}},this.onMobileViewportChange=()=>{this.isMobileViewport=this.mobileMq?.matches??!1},this.handleMouseEnter=()=>{this.hasDropdown&&this.hoverModeActive()&&(this.timers.clearCoalesced(p),this.open||(this.hoverOpened=!0,this.open=!0))},this.handleMouseLeave=()=>{this.hasDropdown&&this.open&&this.hoverOpened&&this.timers.scheduleCoalesced(p,(()=>{this.hoverOpened&&!this.el.contains(this.el.ownerDocument.activeElement)&&(this.open=!1)}),150)}}onHasDropdownChanged(){this.hasDropdown||(this.open=!1),this.syncDropdownDocListeners()}onOpenChanged(t){this.openChange.emit(t),t||(this.hoverOpened=!1),t&&this.hasDropdown&&this.broadcastCloseOtherDropdownHosts()}connectedCallback(){a()&&"function"==typeof window.matchMedia&&(this.hoverOpenMq=window.matchMedia("(hover: hover) and (pointer: fine) and (min-width: 768px)"),this.mobileMq=window.matchMedia(l),this.mobileMq.addEventListener("change",this.onMobileViewportChange),this.isMobileViewport=this.mobileMq.matches),this.syncHostListitemRole(),this.syncHasDropdownFromDom(),this.syncDropdownDocListeners(),this.connectDropdownSlotObserver()}disconnectedCallback(){this.timers.dispose(),this.hoverOpenMq=void 0,this.mobileMq?.removeEventListener("change",this.onMobileViewportChange),this.mobileMq=void 0,this.disconnectDropdownSlotObserver(),this.disconnectListitemContextObservers();const t=this.el.ownerDocument;t.removeEventListener("click",this.onDocClickCapture,!0),t.removeEventListener("keydown",this.onDocKeyDownCapture,!0)}componentWillLoad(){this.syncHostListitemRole(),this.syncHasDropdownFromDom()}componentWillRender(){this.disconnectDropdownSlotObserver(),this.disconnectListitemContextObservers()}componentDidRender(){this.schedulePostRenderTopNavItemWork()}handleCloseNavDropdownRequest(){this.hasDropdown&&this.open&&(this.open=!1)}async closeMenu(){this.hasDropdown&&(this.open=!1)}async openMenu(){this.hasDropdown&&(this.timers.clearCoalesced(p),this.hoverOpened=!1,this.open=!0)}async toggleMenu(){this.hasDropdown&&(this.open=!this.open)}scheduleHasDropdownSyncFromObserver(){this.timers.scheduleCoalesced("hasDropdownSync",(()=>{this.el.isConnected&&this.syncHasDropdownFromDom()}))}connectDropdownSlotObserver(){this.disconnectDropdownSlotObserver(),"undefined"!=typeof MutationObserver&&(this.dropdownSlotObserver=new MutationObserver((()=>{this.scheduleHasDropdownSyncFromObserver()})),this.dropdownSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectDropdownSlotObserver(){this.dropdownSlotObserver?.disconnect(),this.dropdownSlotObserver=void 0}disconnectListitemContextObservers(){this.parentListitemContextObserver?.disconnect(),this.parentListitemContextObserver=void 0,this.selfListitemContextObserver?.disconnect(),this.selfListitemContextObserver=void 0}connectListitemContextObservers(){if(this.disconnectListitemContextObservers(),"undefined"==typeof MutationObserver||!this.el.isConnected)return;this.selfListitemContextObserver=new MutationObserver((()=>{this.schedulePostRenderTopNavItemWork()})),this.selfListitemContextObserver.observe(this.el,{attributes:!0,attributeFilter:["class","slot"]});const t=this.el.parentElement;if(t){this.parentListitemContextObserver=new MutationObserver((()=>{this.schedulePostRenderTopNavItemWork()}));const s="xpl-top-nav"===t.tagName.toLowerCase()&&"left-aside"===this.el.getAttribute("slot")?t.querySelector(".xpl-top-nav__left-primary"):null;this.parentListitemContextObserver.observe(s??t,{attributes:!0,attributeFilter:["role"],subtree:!1})}}schedulePostRenderTopNavItemWork(){this.timers.scheduleCoalesced("postRender",(()=>{this.el.isConnected&&(this.syncHostListitemRole(),this.syncHasDropdownFromDom(),this.connectListitemContextObservers(),this.connectDropdownSlotObserver())}))}syncDropdownDocListeners(){if(!a())return;const t=this.el.ownerDocument;t.removeEventListener("click",this.onDocClickCapture,!0),t.removeEventListener("keydown",this.onDocKeyDownCapture,!0),this.hasDropdown&&(t.addEventListener("click",this.onDocClickCapture,!0),t.addEventListener("keydown",this.onDocKeyDownCapture,!0))}hasSlottedChildOwnedByThisHost(t){return Array.from(this.el.querySelectorAll(`[slot="${t}"]`)).some((t=>t.closest("xpl-top-nav-item")===this.el))}syncHasDropdownFromDom(){const t=null!=this.el.querySelector('[slot="dropdown"]');t!==this.hasDropdown&&(this.hasDropdown=t);const s=this.hasSlottedChildOwnedByThisHost("leading-icon");s!==this.isLeadingIconSlotPresent&&(this.isLeadingIconSlotPresent=s);const i=this.hasSlottedChildOwnedByThisHost("trailing-icon");i!==this.isTrailingIconSlotPresent&&(this.isTrailingIconSlotPresent=i);const e=!!t&&(null!==this.el.querySelector('[slot="dropdown"] .xpl-top-nav-item--active')||null!==this.el.querySelector('[slot="dropdown"] .xpl-top-nav-item--selected'));e!==this.hasActiveDescendant&&(this.hasActiveDescendant=e)}getNavDropdownBroadcastRoot(){return this.el.closest("xpl-top-nav-menu")??this.el.closest("xpl-nav-header-menu")??this.el.closest("xpl-top-nav")??this.el.ownerDocument}broadcastCloseOtherDropdownHosts(){this.getNavDropdownBroadcastRoot().querySelectorAll("xpl-top-nav-item").forEach((t=>{t!==this.el&&t.parentElement===this.el.parentElement&&t.dispatchEvent(new CustomEvent("_xplCloseNavDropdown",{bubbles:!1}))}))}hoverModeActive(){return"hover"===this.openMode&&(this.hoverOpenMq?.matches??!1)}focusTriggerAfterEscape(){this.timers.scheduleCoalesced("focusTriggerAfterEscape",(()=>{this.el.isConnected&&this.el.querySelector(".xpl-top-nav-item__inner")?.focus()}))}static isInternalRenderedHostChild(t){return t.classList.contains("xpl-top-nav-item__inner")||t.classList.contains("xpl-top-nav-item__dropdown")}hasNonDropdownLightDomChild(){return Array.from(this.el.childNodes).some((s=>{if(s.nodeType===Node.TEXT_NODE)return Boolean(s.textContent?.trim());if(s.nodeType===Node.ELEMENT_NODE){const i=s;if(t.isInternalRenderedHostChild(i))return!1;const e=i.getAttribute("slot");return null==e||""===e}return!1}))}getInnerAriaLabel(){if(this.label?.trim())return;if(this.hasNonDropdownLightDomChild())return;const t=this.itemAriaLabel?.trim();return t||(this.icon?.trim()||this.isLeadingIconSlotPresent?"Navigation item":void 0)}computeHostListitemRole(){const{el:t}=this;if(t.classList.contains("xpl-top-nav__brand"))return!1;if("right-aside-mobile"===t.getAttribute("slot"))return!1;const s=t.parentElement;return"list"===s?.getAttribute("role")||null!=s&&"xpl-nav-header-menu"===s.tagName.toLowerCase()||null!=s&&"xpl-top-nav-menu"===s.tagName.toLowerCase()||"left-aside"===t.getAttribute("slot")&&"xpl-top-nav"===s?.tagName.toLowerCase()&&null!=s.querySelector('.xpl-top-nav__left-primary[role="list"]')}syncHostListitemRole(){const t=this.computeHostListitemRole();this.hostListitemRole!==t&&(this.hostListitemRole=t)}renderLabelContent(){if(!this.label)return e("slot",null);const t=this.description?.trim();return t?e("span",{class:"xpl-top-nav-item__label-group"},e("span",{class:"xpl-top-nav-item__label",title:this.label},this.label),e("span",{class:"xpl-top-nav-item__description"},t)):e("span",{class:"xpl-top-nav-item__label",title:this.label},this.label)}renderLeading(){return this.isLeadingIconSlotPresent?e("span",{class:"xpl-top-nav-item__leading"},e("slot",{name:"leading-icon"})):this.icon?e("span",{class:"xpl-top-nav-item__leading"},e("xpl-icon",{size:16,icon:this.icon})):null}renderTrailing(){return this.isTrailingIconSlotPresent?e("span",{class:"xpl-top-nav-item__trailing"},e("slot",{name:"trailing-icon"})):this.hasDropdown?e("span",{class:"xpl-top-nav-item__trailing"},e("xpl-icon",{icon:this.isMobileViewport?"chevron-right":"chevron-down"})):null}renderInner(){const t=this.selected?"page":void 0,s=this.hasDropdown?this.open?"true":"false":void 0,i=this.getInnerAriaLabel(),n={class:"xpl-top-nav-item__inner",tabIndex:0,"aria-current":t,"aria-expanded":s,"aria-haspopup":this.hasDropdown?"true":void 0,"aria-controls":this.hasDropdown?this.dropdownPanelId:void 0,...i?{"aria-label":i}:{},onClick:this.handleClick,onKeyDown:this.handleKeyDown};return null==this.href||this.hasDropdown?e("button",{...n,type:"button"},this.renderLeading(),this.renderLabelContent(),this.renderTrailing()):e("a",{...n,href:this.href},this.renderLeading(),this.renderLabelContent(),this.renderTrailing())}render(){return e(n,{key:"bc734cbb385801e337ce2dbe6c4526312e266d1c",class:{"xpl-top-nav-item":!0,"xpl-top-nav-item--active":this.active,"xpl-top-nav-item--dropdown-open":this.hasDropdown&&this.open,"xpl-top-nav-item--has-active-descendant":this.hasActiveDescendant,"xpl-top-nav-item--has-dropdown":this.hasDropdown,"xpl-top-nav-item--selected":this.selected,dark:!0},onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,...this.hostListitemRole?{role:"listitem"}:{}},this.renderInner(),this.hasDropdown&&e("div",{key:"1d30786f440f2c7cab378a8b495e3e4a7f24da72",id:this.dropdownPanelId,class:"xpl-top-nav-item__dropdown"},e("slot",{key:"6ac2aaaf93c5efae76ad36e0e15b784456a61a36",name:"dropdown"})))}get el(){return this}static get watchers(){return{hasDropdown:[{onHasDropdownChanged:0}],open:[{onOpenChanged:0}]}}},[260,"xpl-top-nav-item",{active:[516],description:[1],href:[1],icon:[1],itemAriaLabel:[1,"item-aria-label"],label:[1],open:[1540],openMode:[513,"open-mode"],selected:[516],hasActiveDescendant:[32],hasDropdown:[32],isLeadingIconSlotPresent:[32],isMobileViewport:[32],hostListitemRole:[32],isTrailingIconSlotPresent:[32],closeMenu:[64],openMenu:[64],toggleMenu:[64]},[[0,"_xplCloseNavDropdown","handleCloseNavDropdownRequest"]],{hasDropdown:[{onHasDropdownChanged:0}],open:[{onOpenChanged:0}]}]);function c(){"undefined"!=typeof customElements&&["xpl-top-nav-item","xpl-icon"].forEach((t=>{switch(t){case"xpl-top-nav-item":customElements.get(o(t))||customElements.define(o(t),d);break;case"xpl-icon":customElements.get(o(t))||r()}}))}export{d as T,l as a,c as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,d as i,h as s,c as a,F as l,t as r}from"./p-BSHdGbmH.js";import{d as n}from"./p-ohy3NrgH.js";import{d as h}from"./p-CFXvQqUO.js";import{d}from"./p-CV5nn1zR.js";import{d as o}from"./p-DtV4i45B.js";import{d as c}from"./p-CQjJIHK6.js";import{d as m}from"./p-1D7CWIJ-.js";const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.itemDragEnd=i(this,"itemDragEnd",7),this.itemDragStart=i(this,"itemDragStart",7),this.itemDrop=i(this,"itemDrop",7),this.itemSelect=i(this,"itemSelect",7),this.dragFromHandle=!1,this.slotPresence={actions:!1,avatar:!1,badges:!1,details:!1,errorText:!1,metadata:!1,stackedExtra1:!1,stackedExtra2:!1,stackedExtra3:!1,titleBadge:!1,title:!1},this.isKeyboardMode=!1,this.disabled=!1,this.error=!1,this.hidden=!1,this.keyboardActive=!1,this.reorderable=!1,this.selectable=!1,this.selected=!1,this.showDivider=!1,this.handleDragStart=t=>{if(this.disabled)return void t.preventDefault();if(!this.dragFromHandle)return void t.preventDefault();this.detachDragHandlePointerReleaseListeners(),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",this.itemId||this.el.id||""));const e=this.el.querySelector(".xpl-list-item__wrapper");e?.classList.add("dragging"),this.itemDragStart.emit({itemId:this.itemId,item:this.el})},this.handleDrop=t=>{this.disabled||(t.preventDefault(),this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1,this.itemDrop.emit({itemId:this.itemId,item:this.el}))},this.handleDragOver=t=>{this.disabled||(t.preventDefault(),t.dataTransfer&&this.reorderable&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{if(this.disabled)return;t.preventDefault();const e=this.el.querySelector(".xpl-list-item__wrapper");e?.classList.add("drag-over")},this.handleDragLeave=t=>{if(this.disabled)return;const e=this.el.querySelector(".xpl-list-item__wrapper");e&&!e.contains(t.relatedTarget)&&e.classList.remove("drag-over")},this.handleDragEnd=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1;const t=this.el.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging","drag-over");const e=this.el.parentElement;e&&Array.from(e.children).forEach((t=>{if("xpl-list-item"!==t.tagName.toLowerCase())return;const e=t.querySelector(".xpl-list-item__wrapper");e?.classList.remove("drag-over")})),this.itemDragEnd.emit({itemId:this.itemId,item:this.el})},this.handleDragHandleMouseDown=()=>{if(this.disabled)return;this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!0;const t=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1};document.addEventListener("pointerup",t,!0),document.addEventListener("pointercancel",t,!0),this.dragHandlePointerReleaseCleanup=()=>{document.removeEventListener("pointerup",t,!0),document.removeEventListener("pointercancel",t,!0)},this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{exitKeyboardMode:!0}}))},this.preventRowLinkNavigation=t=>{this.href&&(t.preventDefault(),t.stopPropagation())},this.handleMouseDown=()=>{this.isKeyboardMode&&this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))},this.handleDragHandleKeyDown=t=>{this.disabled?"Escape"===t.key&&this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))):"Escape"!==t.key?this.isKeyboardMode?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{direction:"ArrowUp"===t.key?"up":"down",item:this.el,itemId:this.itemId,keyboardMode:!0}}))):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{item:this.el,itemId:this.itemId,keyboardMode:!0}}))):this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}})))},this.handleRadioChange=()=>{this.disabled||this.itemSelect.emit({itemId:this.itemId})},this.handleRadioClick=t=>{this.href&&t.stopPropagation()}}handleItemChange(){this.updateSlotPresence()}handleKeyboardActiveChange(t){this.isKeyboardMode=t}handleSelectedChange(t){const e=this.el.querySelector('.xpl-list-item__selectable input[type="radio"]');e instanceof HTMLInputElement&&e.checked!==t&&(e.checked=t)}handleTitleBadgeVariantChange(){this.updateSlotPresence()}connectedCallback(){this.el.addEventListener("mousedown",this.handleMouseDown,!0)}disconnectedCallback(){this.el.removeEventListener("mousedown",this.handleMouseDown,!0),this.detachDragHandlePointerReleaseListeners()}componentWillLoad(){this.updateSlotPresence(),this.isKeyboardMode=!!this.keyboardActive;const t=this.el.getAttribute("item-id");t&&!this.itemId&&(this.itemId=t),this.el.id&&!this.itemId&&(this.itemId=this.el.id)}componentDidRender(){this.syncReorderDragHandleA11y()}handleSlotChange(){this.updateSlotPresence()}updateSlotPresence(){const t=this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant");this.slotPresence={actions:this.hasSlot("actions"),avatar:this.hasSlot("avatar"),badges:this.hasSlot("badges"),details:this.hasSlot("details"),errorText:this.hasSlot("error-text"),metadata:this.hasSlot("metadata"),stackedExtra1:this.hasSlot("stacked-extra-1"),stackedExtra2:this.hasSlot("stacked-extra-2"),stackedExtra3:this.hasSlot("stacked-extra-3"),title:this.hasSlot("title"),titleBadge:!!(this.titleBadgeVariant&&String(this.titleBadgeVariant).length>0||t&&t.length>0)}}detachDragHandlePointerReleaseListeners(){this.dragHandlePointerReleaseCleanup&&(this.dragHandlePointerReleaseCleanup(),this.dragHandlePointerReleaseCleanup=void 0)}hasSlot(t){if(Array.from(this.el.children).some((e=>e.getAttribute("slot")===t)))return!0;const e=Array.from(this.el.querySelectorAll(`slot[name="${t}"]`)).find((t=>t.closest("xpl-list-item")===this.el));return!(!e||"function"!=typeof e.assignedNodes)&&e.assignedNodes({flatten:!0}).length>0}getTitleSlotAccessibleText(){const t=Array.from(this.el.children).find((t=>"title"===t.getAttribute("slot")));if(t)return t.textContent??void 0;const e=Array.from(this.el.querySelectorAll('slot[name="title"]')).find((t=>t.closest("xpl-list-item")===this.el));return e&&"function"==typeof e.assignedNodes&&e.assignedNodes({flatten:!0}).map((t=>t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE?t.textContent??"":"")).join("").trim()||void 0}getRowIdForAccessibleLabel(){const t=this.itemId?.trim();if(t)return t;const e=this.el.getAttribute("item-id")?.trim();if(e)return e;const i=this.el.id?.trim();return i||""}getSelectableRadioLabel(){const t=this.getRowIdForAccessibleLabel();if(this.slotPresence.title){const e=this.getTitleSlotAccessibleText()?.trim();return e||(t?`Select ${t}`:"Select list item")}return t?`Select ${t}`:"Select list item"}renderPropBasedItem(){const{item:t}=this;if(!t)return null;const e=t.avatars||t.badges||t.subtext,i=t.href?"a":"div",l=t.href?{href:t.href}:{};return s(a,{role:"listitem",class:{"xpl-list-item":!0,"xpl-list-item--error":!!this.error,"xpl-list-item--disabled":!!this.disabled},hidden:this.hidden},function(t){return t.avatar&&"string"==typeof t.avatar?"/"===t.avatar.slice(0,1)||"http"===t.avatar.slice(0,4)?s("xpl-avatar",{src:t.avatar,name:t.title}):s("xpl-avatar",{name:t.title},t.avatar):null}(t),s(i,{class:"xpl-list-item-content",...l},s("div",{class:"xpl-list-left"},s("div",null,s("h4",null,t.title),t.metadata&&s("ul",{class:"xpl-list-item-metadata"},t.metadata.map((t=>"string"==typeof t?s("li",null,t):s("li",null,s("xpl-icon",{icon:t.icon})," ",t.text)))))),e&&s("div",{class:"xpl-list-right"},t.subtext&&s("div",{class:"xpl-list-item-subtext"},t.subtext),t.avatars&&s("div",{class:"xpl-avatar-group xpl-avatar-group--s"},t.avatars.map((t=>s("img",{src:t,alt:""})))),t.badges&&t.badges.map((t=>"string"==typeof t?s("xpl-badge",null,t):s("xpl-badge",{dot:t.dot,variant:t.variant},t.text)))),t.href?s("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},s("xpl-icon",{icon:"chevron-right",size:12})):null))}renderTitleBadge(){if(!this.slotPresence.titleBadge)return null;const t=this.titleBadgeVariant||this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant")||"purple";return s("div",{class:"xpl-list-item__title-badge"},s("xpl-badge",{dotOnly:!0,size:"small",variant:t}))}renderSlotBasedItem(){const t=this.slotPresence.details||this.slotPresence.badges||this.slotPresence.actions,e=this.slotPresence.title||this.slotPresence.metadata||this.slotPresence.stackedExtra1||this.slotPresence.stackedExtra2||this.slotPresence.stackedExtra3,i=this.radioName||this.el.getAttribute("radio-name")||"",r=this.reorderable&&!this.disabled,n="xpl-list-item__wrapper",h={draggable:r,onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,onDragEnd:this.handleDragEnd},d=s(l,null,r&&s("div",{class:"xpl-list-item__reorderable"},s("xpl-button",{class:{"xpl-list-item__drag-handle":!0,"xpl-list-item__drag-handle--keyboard-mode":this.isKeyboardMode},type:"button",variant:"tertiary",sentiment:"neutral",iconOnly:!0,icon:this.isKeyboardMode?"caret-expand-y":"grip-dots-vertical",disabled:this.disabled,onClick:this.preventRowLinkNavigation,onMouseDown:this.handleDragHandleMouseDown,onKeyDown:this.handleDragHandleKeyDown})),this.selectable&&i?s("div",{class:"xpl-list-item__selectable",onClick:this.handleRadioClick},s("xpl-radio",{checked:this.selected,disabled:this.disabled,name:i,value:this.itemId??"",onRadioChange:this.handleRadioChange},this.getSelectableRadioLabel())):null,this.slotPresence.avatar&&s("div",{class:"xpl-list-item__avatar",onClick:this.preventRowLinkNavigation},s("slot",{name:"avatar"})),e&&s("div",{class:"xpl-list-item__stacked"},(this.slotPresence.title||this.slotPresence.titleBadge)&&s("div",{class:"xpl-list-item__title-row"},s("div",{class:"xpl-list-item__title-wrapper"},this.renderTitleBadge(),s("slot",{name:"title"}))),this.showDivider&&s("xpl-divider",null),this.slotPresence.metadata&&s("div",{class:"xpl-list-item__metadata-row"},s("slot",{name:"metadata"})),this.slotPresence.stackedExtra1&&s("div",{class:"xpl-list-item__stacked-extra-1"},s("slot",{name:"stacked-extra-1"})),this.slotPresence.stackedExtra2&&s("div",{class:"xpl-list-item__stacked-extra-2"},s("slot",{name:"stacked-extra-2"})),this.slotPresence.stackedExtra3&&s("div",{class:"xpl-list-item__stacked-extra-3"},s("slot",{name:"stacked-extra-3"}))),t&&s("div",{class:"xpl-list-item__right"},this.slotPresence.details&&s("div",{class:"xpl-list-item__details"},s("slot",{name:"details"})),this.slotPresence.badges&&s("div",{class:"xpl-list-item__badges"},s("slot",{name:"badges"})),this.slotPresence.actions&&s("div",{class:"xpl-list-item__actions",onClick:this.preventRowLinkNavigation},s("slot",{name:"actions"}))),this.href?s("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},s("xpl-icon",{icon:"chevron-right",size:12})):null);return s(a,{class:{"xpl-list-item":!0,"xpl-list-item--error":!(!this.error&&!this.slotPresence.errorText),"xpl-list-item--disabled":!!this.disabled,"xpl-list-item--slot-based":!0,"xpl-list-item--selected":!!this.selected},hidden:this.hidden},this.href?s("div",{role:"listitem",class:"xpl-list-item__listitem-shell"},s("a",{class:n,href:this.href,...h},d)):s("div",{role:"listitem",class:n,...h},d),this.slotPresence.errorText&&s("div",{class:"xpl-list-item__error-text"},s("xpl-icon",{icon:"circle-warning",size:16}),s("slot",{name:"error-text"})))}syncReorderDragHandleA11y(){if(!this.reorderable||this.disabled)return;const t=this.el.querySelector("xpl-button.xpl-list-item__drag-handle"),e=t?.querySelector("button");e&&(e.setAttribute("aria-label",this.isKeyboardMode?"Press arrow up or down to reorder, Escape to exit":"Press Enter or Space to activate keyboard reorder mode, or drag to reorder"),e.setAttribute("aria-pressed",this.isKeyboardMode?"true":"false"))}render(){return this.hidden?s(a,{hidden:!0}):this.item?this.renderPropBasedItem():this.renderSlotBasedItem()}get el(){return this}static get watchers(){return{item:[{handleItemChange:0}],keyboardActive:[{handleKeyboardActiveChange:0}],selected:[{handleSelectedChange:0}],titleBadgeVariant:[{handleTitleBadgeVariantChange:0}]}}},[260,"xpl-list-item",{disabled:[4],error:[4],hidden:[4],href:[1],item:[16],itemId:[1025,"item-id"],keyboardActive:[4,"keyboard-active"],radioName:[1,"radio-name"],reorderable:[4],selectable:[4],selected:[4],showDivider:[4,"show-divider"],titleBadgeVariant:[1,"title-badge-variant"],slotPresence:[32],isKeyboardMode:[32]},[[0,"slotchange","handleSlotChange"]],{item:[{handleItemChange:0}],keyboardActive:[{handleKeyboardActiveChange:0}],selected:[{handleSelectedChange:0}],titleBadgeVariant:[{handleTitleBadgeVariantChange:0}]}]);function x(){"undefined"!=typeof customElements&&["xpl-list-item","xpl-avatar","xpl-badge","xpl-button","xpl-divider","xpl-icon","xpl-radio"].forEach((t=>{switch(t){case"xpl-list-item":customElements.get(r(t))||customElements.define(r(t),p);break;case"xpl-avatar":customElements.get(r(t))||n();break;case"xpl-badge":customElements.get(r(t))||h();break;case"xpl-button":customElements.get(r(t))||d();break;case"xpl-divider":customElements.get(r(t))||o();break;case"xpl-icon":customElements.get(r(t))||c();break;case"xpl-radio":customElements.get(r(t))||m()}}))}export{p as X,x as d}
|
|
1
|
+
import{p as t,H as e,d as i,h as s,c as a,F as l,t as r}from"./p-B_6p2HCL.js";import{d as n}from"./p-Dn1Qsv0Y.js";import{d as h}from"./p-fstojyQr.js";import{d as o}from"./p-gs07oY0j.js";import{d}from"./p-CIcKTXQj.js";import{d as c}from"./p-6-DvgBzG.js";import{d as m}from"./p-BU4pW_6c.js";const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.itemDragEnd=i(this,"itemDragEnd",7),this.itemDragStart=i(this,"itemDragStart",7),this.itemDrop=i(this,"itemDrop",7),this.itemSelect=i(this,"itemSelect",7),this.dragFromHandle=!1,this.slotPresence={actions:!1,avatar:!1,badges:!1,details:!1,errorText:!1,metadata:!1,stackedExtra1:!1,stackedExtra2:!1,stackedExtra3:!1,titleBadge:!1,title:!1},this.isKeyboardMode=!1,this.disabled=!1,this.error=!1,this.hidden=!1,this.keyboardActive=!1,this.reorderable=!1,this.selectable=!1,this.selected=!1,this.showDivider=!1,this.handleDragStart=t=>{if(this.disabled)return void t.preventDefault();if(!this.dragFromHandle)return void t.preventDefault();this.detachDragHandlePointerReleaseListeners(),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",this.itemId||this.el.id||""));const e=this.el.querySelector(".xpl-list-item__wrapper");e?.classList.add("dragging"),this.itemDragStart.emit({itemId:this.itemId,item:this.el})},this.handleDrop=t=>{this.disabled||(t.preventDefault(),this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1,this.itemDrop.emit({itemId:this.itemId,item:this.el}))},this.handleDragOver=t=>{this.disabled||(t.preventDefault(),t.dataTransfer&&this.reorderable&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{if(this.disabled)return;t.preventDefault();const e=this.el.querySelector(".xpl-list-item__wrapper");e?.classList.add("drag-over")},this.handleDragLeave=t=>{if(this.disabled)return;const e=this.el.querySelector(".xpl-list-item__wrapper");e&&!e.contains(t.relatedTarget)&&e.classList.remove("drag-over")},this.handleDragEnd=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1;const t=this.el.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging","drag-over");const e=this.el.parentElement;e&&Array.from(e.children).forEach((t=>{if("xpl-list-item"!==t.tagName.toLowerCase())return;const e=t.querySelector(".xpl-list-item__wrapper");e?.classList.remove("drag-over")})),this.itemDragEnd.emit({itemId:this.itemId,item:this.el})},this.handleDragHandleMouseDown=()=>{if(this.disabled)return;this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!0;const t=()=>{this.detachDragHandlePointerReleaseListeners(),this.dragFromHandle=!1};document.addEventListener("pointerup",t,!0),document.addEventListener("pointercancel",t,!0),this.dragHandlePointerReleaseCleanup=()=>{document.removeEventListener("pointerup",t,!0),document.removeEventListener("pointercancel",t,!0)},this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{exitKeyboardMode:!0}}))},this.preventRowLinkNavigation=t=>{this.href&&(t.preventDefault(),t.stopPropagation())},this.handleMouseDown=()=>{this.isKeyboardMode&&this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))},this.handleDragHandleKeyDown=t=>{this.disabled?"Escape"===t.key&&this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}}))):"Escape"!==t.key?this.isKeyboardMode?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{direction:"ArrowUp"===t.key?"up":"down",item:this.el,itemId:this.itemId,keyboardMode:!0}}))):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{item:this.el,itemId:this.itemId,keyboardMode:!0}}))):this.isKeyboardMode&&(t.preventDefault(),this.el.dispatchEvent(new CustomEvent("xplListItemReorder",{bubbles:!0,composed:!0,detail:{itemId:this.itemId,exitKeyboardMode:!0}})))},this.handleRadioChange=()=>{this.disabled||this.itemSelect.emit({itemId:this.itemId})},this.handleRadioClick=t=>{this.href&&t.stopPropagation()}}handleItemChange(){this.updateSlotPresence()}handleKeyboardActiveChange(t){this.isKeyboardMode=t}handleSelectedChange(t){const e=this.el.querySelector('.xpl-list-item__selectable input[type="radio"]');e instanceof HTMLInputElement&&e.checked!==t&&(e.checked=t)}handleTitleBadgeVariantChange(){this.updateSlotPresence()}connectedCallback(){this.el.addEventListener("mousedown",this.handleMouseDown,!0)}disconnectedCallback(){this.el.removeEventListener("mousedown",this.handleMouseDown,!0),this.detachDragHandlePointerReleaseListeners()}componentWillLoad(){this.updateSlotPresence(),this.isKeyboardMode=!!this.keyboardActive;const t=this.el.getAttribute("item-id");t&&!this.itemId&&(this.itemId=t),this.el.id&&!this.itemId&&(this.itemId=this.el.id)}componentDidRender(){this.syncReorderDragHandleA11y()}handleSlotChange(){this.updateSlotPresence()}updateSlotPresence(){const t=this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant");this.slotPresence={actions:this.hasSlot("actions"),avatar:this.hasSlot("avatar"),badges:this.hasSlot("badges"),details:this.hasSlot("details"),errorText:this.hasSlot("error-text"),metadata:this.hasSlot("metadata"),stackedExtra1:this.hasSlot("stacked-extra-1"),stackedExtra2:this.hasSlot("stacked-extra-2"),stackedExtra3:this.hasSlot("stacked-extra-3"),title:this.hasSlot("title"),titleBadge:!!(this.titleBadgeVariant&&String(this.titleBadgeVariant).length>0||t&&t.length>0)}}detachDragHandlePointerReleaseListeners(){this.dragHandlePointerReleaseCleanup&&(this.dragHandlePointerReleaseCleanup(),this.dragHandlePointerReleaseCleanup=void 0)}hasSlot(t){if(Array.from(this.el.children).some((e=>e.getAttribute("slot")===t)))return!0;const e=Array.from(this.el.querySelectorAll(`slot[name="${t}"]`)).find((t=>t.closest("xpl-list-item")===this.el));return!(!e||"function"!=typeof e.assignedNodes)&&e.assignedNodes({flatten:!0}).length>0}getTitleSlotAccessibleText(){const t=Array.from(this.el.children).find((t=>"title"===t.getAttribute("slot")));if(t)return t.textContent??void 0;const e=Array.from(this.el.querySelectorAll('slot[name="title"]')).find((t=>t.closest("xpl-list-item")===this.el));return e&&"function"==typeof e.assignedNodes&&e.assignedNodes({flatten:!0}).map((t=>t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE?t.textContent??"":"")).join("").trim()||void 0}getRowIdForAccessibleLabel(){const t=this.itemId?.trim();if(t)return t;const e=this.el.getAttribute("item-id")?.trim();if(e)return e;const i=this.el.id?.trim();return i||""}getSelectableRadioLabel(){const t=this.getRowIdForAccessibleLabel();if(this.slotPresence.title){const e=this.getTitleSlotAccessibleText()?.trim();return e||(t?`Select ${t}`:"Select list item")}return t?`Select ${t}`:"Select list item"}renderPropBasedItem(){const{item:t}=this;if(!t)return null;const e=t.avatars||t.badges||t.subtext,i=t.href?"a":"div",l=t.href?{href:t.href}:{};return s(a,{role:"listitem",class:{"xpl-list-item":!0,"xpl-list-item--error":!!this.error,"xpl-list-item--disabled":!!this.disabled},hidden:this.hidden},function(t){return t.avatar&&"string"==typeof t.avatar?"/"===t.avatar.slice(0,1)||"http"===t.avatar.slice(0,4)?s("xpl-avatar",{src:t.avatar,name:t.title}):s("xpl-avatar",{name:t.title},t.avatar):null}(t),s(i,{class:"xpl-list-item-content",...l},s("div",{class:"xpl-list-left"},s("div",null,s("h4",null,t.title),t.metadata&&s("ul",{class:"xpl-list-item-metadata"},t.metadata.map((t=>"string"==typeof t?s("li",null,t):s("li",null,s("xpl-icon",{icon:t.icon})," ",t.text)))))),e&&s("div",{class:"xpl-list-right"},t.subtext&&s("div",{class:"xpl-list-item-subtext"},t.subtext),t.avatars&&s("div",{class:"xpl-avatar-group xpl-avatar-group--s"},t.avatars.map((t=>s("img",{src:t,alt:""})))),t.badges&&t.badges.map((t=>"string"==typeof t?s("xpl-badge",null,t):s("xpl-badge",{dot:t.dot,variant:t.variant},t.text)))),t.href?s("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},s("xpl-icon",{icon:"chevron-right",size:12})):null))}renderTitleBadge(){if(!this.slotPresence.titleBadge)return null;const t=this.titleBadgeVariant||this.el.getAttribute("title-badge-variant")||this.el.getAttribute("titlebadgevariant")||"purple";return s("div",{class:"xpl-list-item__title-badge"},s("xpl-badge",{dotOnly:!0,size:"small",variant:t}))}renderSlotBasedItem(){const t=this.slotPresence.details||this.slotPresence.badges||this.slotPresence.actions,e=this.slotPresence.title||this.slotPresence.metadata||this.slotPresence.stackedExtra1||this.slotPresence.stackedExtra2||this.slotPresence.stackedExtra3,i=this.radioName||this.el.getAttribute("radio-name")||"",r=this.reorderable&&!this.disabled,n="xpl-list-item__wrapper",h={draggable:r,onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,onDragEnd:this.handleDragEnd},o=s(l,null,r&&s("div",{class:"xpl-list-item__reorderable"},s("xpl-button",{class:{"xpl-list-item__drag-handle":!0,"xpl-list-item__drag-handle--keyboard-mode":this.isKeyboardMode},type:"button",variant:"tertiary",sentiment:"neutral",iconOnly:!0,icon:this.isKeyboardMode?"caret-expand-y":"grip-dots-vertical",disabled:this.disabled,onClick:this.preventRowLinkNavigation,onMouseDown:this.handleDragHandleMouseDown,onKeyDown:this.handleDragHandleKeyDown})),this.selectable&&i?s("div",{class:"xpl-list-item__selectable",onClick:this.handleRadioClick},s("xpl-radio",{checked:this.selected,disabled:this.disabled,name:i,value:this.itemId??"",onRadioChange:this.handleRadioChange},this.getSelectableRadioLabel())):null,this.slotPresence.avatar&&s("div",{class:"xpl-list-item__avatar",onClick:this.preventRowLinkNavigation},s("slot",{name:"avatar"})),e&&s("div",{class:"xpl-list-item__stacked"},(this.slotPresence.title||this.slotPresence.titleBadge)&&s("div",{class:"xpl-list-item__title-row"},s("div",{class:"xpl-list-item__title-wrapper"},this.renderTitleBadge(),s("slot",{name:"title"}))),this.showDivider&&s("xpl-divider",null),this.slotPresence.metadata&&s("div",{class:"xpl-list-item__metadata-row"},s("slot",{name:"metadata"})),this.slotPresence.stackedExtra1&&s("div",{class:"xpl-list-item__stacked-extra-1"},s("slot",{name:"stacked-extra-1"})),this.slotPresence.stackedExtra2&&s("div",{class:"xpl-list-item__stacked-extra-2"},s("slot",{name:"stacked-extra-2"})),this.slotPresence.stackedExtra3&&s("div",{class:"xpl-list-item__stacked-extra-3"},s("slot",{name:"stacked-extra-3"}))),t&&s("div",{class:"xpl-list-item__right"},this.slotPresence.details&&s("div",{class:"xpl-list-item__details"},s("slot",{name:"details"})),this.slotPresence.badges&&s("div",{class:"xpl-list-item__badges"},s("slot",{name:"badges"})),this.slotPresence.actions&&s("div",{class:"xpl-list-item__actions",onClick:this.preventRowLinkNavigation},s("slot",{name:"actions"}))),this.href?s("span",{class:"xpl-list-item__link-chevron","aria-hidden":"true"},s("xpl-icon",{icon:"chevron-right",size:12})):null);return s(a,{class:{"xpl-list-item":!0,"xpl-list-item--error":!(!this.error&&!this.slotPresence.errorText),"xpl-list-item--disabled":!!this.disabled,"xpl-list-item--slot-based":!0,"xpl-list-item--selected":!!this.selected},hidden:this.hidden},this.href?s("div",{role:"listitem",class:"xpl-list-item__listitem-shell"},s("a",{class:n,href:this.href,...h},o)):s("div",{role:"listitem",class:n,...h},o),this.slotPresence.errorText&&s("div",{class:"xpl-list-item__error-text"},s("xpl-icon",{icon:"circle-warning",size:16}),s("slot",{name:"error-text"})))}syncReorderDragHandleA11y(){if(!this.reorderable||this.disabled)return;const t=this.el.querySelector("xpl-button.xpl-list-item__drag-handle"),e=t?.querySelector("button");e&&(e.setAttribute("aria-label",this.isKeyboardMode?"Press arrow up or down to reorder, Escape to exit":"Press Enter or Space to activate keyboard reorder mode, or drag to reorder"),e.setAttribute("aria-pressed",this.isKeyboardMode?"true":"false"))}render(){return this.hidden?s(a,{hidden:!0}):this.item?this.renderPropBasedItem():this.renderSlotBasedItem()}get el(){return this}static get watchers(){return{item:[{handleItemChange:0}],keyboardActive:[{handleKeyboardActiveChange:0}],selected:[{handleSelectedChange:0}],titleBadgeVariant:[{handleTitleBadgeVariantChange:0}]}}},[260,"xpl-list-item",{disabled:[4],error:[4],hidden:[4],href:[1],item:[16],itemId:[1025,"item-id"],keyboardActive:[4,"keyboard-active"],radioName:[1,"radio-name"],reorderable:[4],selectable:[4],selected:[4],showDivider:[4,"show-divider"],titleBadgeVariant:[1,"title-badge-variant"],slotPresence:[32],isKeyboardMode:[32]},[[0,"slotchange","handleSlotChange"]],{item:[{handleItemChange:0}],keyboardActive:[{handleKeyboardActiveChange:0}],selected:[{handleSelectedChange:0}],titleBadgeVariant:[{handleTitleBadgeVariantChange:0}]}]);function x(){"undefined"!=typeof customElements&&["xpl-list-item","xpl-avatar","xpl-badge","xpl-button","xpl-divider","xpl-icon","xpl-radio"].forEach((t=>{switch(t){case"xpl-list-item":customElements.get(r(t))||customElements.define(r(t),p);break;case"xpl-avatar":customElements.get(r(t))||n();break;case"xpl-badge":customElements.get(r(t))||h();break;case"xpl-button":customElements.get(r(t))||o();break;case"xpl-divider":customElements.get(r(t))||d();break;case"xpl-icon":customElements.get(r(t))||c();break;case"xpl-radio":customElements.get(r(t))||m()}}))}export{p as X,x as d}
|