@xplortech/apollo-core 2.12.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.typings/apollo-components.html-data.json +61 -0
- package/AGENTS.md +4 -4
- package/README.md +30 -3
- package/build/components/modal.css +1 -1
- package/build/components/table-body.css +1 -0
- package/build/components/table-footer-cell.css +1 -0
- package/build/components/table-footer.css +1 -0
- package/build/components/table-row.css +1 -0
- package/build/components/top-nav.css +1 -1
- package/build/components-manifest.json +13 -1
- package/build/core.css +1 -1
- package/build/style.css +1 -1
- package/dist/apollo-core/apollo-core.css +1 -1
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-d37488d4.entry.js → p-0368a1df.entry.js} +1 -1
- package/dist/apollo-core/p-056a99e4.entry.js +1 -0
- package/dist/apollo-core/p-068e3532.entry.js +1 -0
- package/dist/apollo-core/{p-121d1a4b.entry.js → p-06a9a27b.entry.js} +1 -1
- package/dist/apollo-core/{p-9747cf43.entry.js → p-0958c719.entry.js} +1 -1
- package/dist/apollo-core/p-0a0a6e43.entry.js +1 -0
- package/dist/apollo-core/{p-643c8038.entry.js → p-149ddd12.entry.js} +1 -1
- package/dist/apollo-core/p-1a94c2d9.entry.js +1 -0
- package/dist/apollo-core/{p-efa21ec0.entry.js → p-2139f9f6.entry.js} +1 -1
- package/dist/apollo-core/{p-76f64d65.entry.js → p-28bce81a.entry.js} +1 -1
- package/dist/apollo-core/{p-1a417191.entry.js → p-2938ab4f.entry.js} +1 -1
- package/dist/apollo-core/{p-4e61587f.entry.js → p-2c995d80.entry.js} +1 -1
- package/dist/apollo-core/p-2faa7b9c.entry.js +1 -0
- package/dist/apollo-core/p-30b1b700.entry.js +1 -0
- package/dist/apollo-core/p-32084caf.entry.js +1 -0
- package/dist/apollo-core/p-38586952.entry.js +1 -0
- package/dist/apollo-core/{p-707b1918.entry.js → p-47bda204.entry.js} +1 -1
- package/dist/apollo-core/{p-f199ad66.entry.js → p-4a2323b3.entry.js} +1 -1
- package/dist/apollo-core/{p-c25aebe5.entry.js → p-4ad79534.entry.js} +1 -1
- package/dist/apollo-core/{p-e4ae3f60.entry.js → p-4d4acd1f.entry.js} +1 -1
- package/dist/apollo-core/p-50fae269.entry.js +1 -0
- package/dist/apollo-core/{p-7f105d63.entry.js → p-54903322.entry.js} +1 -1
- package/dist/apollo-core/{p-8a81ef98.entry.js → p-5730d96c.entry.js} +1 -1
- package/dist/apollo-core/{p-46d21684.entry.js → p-581b702c.entry.js} +1 -1
- package/dist/apollo-core/{p-853418be.entry.js → p-5d9a593e.entry.js} +1 -1
- package/dist/apollo-core/{p-e00ed4f4.entry.js → p-60cb3cfb.entry.js} +1 -1
- package/dist/apollo-core/p-722b145a.entry.js +1 -0
- package/dist/apollo-core/p-75e5bfe0.entry.js +1 -0
- package/dist/apollo-core/p-77fe3cc1.entry.js +1 -0
- package/dist/apollo-core/{p-26861d09.entry.js → p-790709c0.entry.js} +1 -1
- package/dist/apollo-core/{p-7976cd3b.entry.js → p-82812126.entry.js} +1 -1
- package/dist/apollo-core/{p-c427a31d.entry.js → p-83bb7607.entry.js} +1 -1
- package/dist/apollo-core/p-8664d88b.entry.js +1 -0
- package/dist/apollo-core/{p-3d9c90ee.entry.js → p-9064badb.entry.js} +1 -1
- package/dist/apollo-core/{p-5ca18bc1.entry.js → p-91895c40.entry.js} +1 -1
- package/dist/apollo-core/p-969d5cca.entry.js +1 -0
- package/dist/apollo-core/p-99a79cf4.entry.js +1 -0
- package/dist/apollo-core/p-abdf199b.entry.js +1 -0
- package/dist/apollo-core/p-ae8a5f66.entry.js +1 -0
- package/dist/apollo-core/{p-9b0174b1.entry.js → p-af8ebf49.entry.js} +1 -1
- package/dist/apollo-core/p-b29025b2.entry.js +1 -0
- package/dist/apollo-core/{p-fd2756d8.entry.js → p-b45179fb.entry.js} +1 -1
- package/dist/apollo-core/p-b5a61076.entry.js +1 -0
- package/dist/apollo-core/p-bf7d8e18.entry.js +1 -0
- package/dist/apollo-core/p-c48e4884.entry.js +1 -0
- package/dist/apollo-core/{p-b537f72d.entry.js → p-ca4652b3.entry.js} +1 -1
- package/dist/apollo-core/{p-bb22ed2a.entry.js → p-cb5b15c2.entry.js} +1 -1
- package/dist/apollo-core/p-cc57f20d.entry.js +1 -0
- package/dist/apollo-core/{p-fef6c256.entry.js → p-cdacfcd4.entry.js} +1 -1
- package/dist/apollo-core/{p-616c5a32.entry.js → p-cdb5b5c4.entry.js} +1 -1
- package/dist/apollo-core/p-d0bc7c45.entry.js +1 -0
- package/dist/apollo-core/{p-ff8acf15.entry.js → p-d41b8f46.entry.js} +1 -1
- package/dist/apollo-core/{p-9bf2ff9f.entry.js → p-d443291f.entry.js} +1 -1
- package/dist/apollo-core/p-d724c419.entry.js +1 -0
- package/dist/apollo-core/p-d9070ae5.entry.js +1 -0
- package/dist/apollo-core/p-dca48977.entry.js +1 -0
- package/dist/apollo-core/p-e1833287.entry.js +1 -0
- package/dist/apollo-core/{p-601b3ab5.entry.js → p-e2890eb1.entry.js} +1 -1
- package/dist/apollo-core/p-e2b73b60.entry.js +1 -0
- package/dist/apollo-core/p-e7e445b0.entry.js +1 -0
- package/dist/apollo-core/p-f1c103ff.entry.js +1 -0
- package/dist/apollo-core/{p-0463c29f.entry.js → p-f3a2c79b.entry.js} +1 -1
- package/dist/apollo-core/p-ffc2f0cf.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +1 -1
- package/dist/cjs/index-3cBvw409.js +16 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/xpl-accordion.cjs.entry.js +2 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +5 -4
- package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/xpl-badge.cjs.entry.js +1 -1
- package/dist/cjs/xpl-banner.cjs.entry.js +2 -2
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
- package/dist/cjs/xpl-button.cjs.entry.js +1 -1
- package/dist/cjs/xpl-calendar.cjs.entry.js +1 -1
- package/dist/cjs/xpl-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
- package/dist/cjs/xpl-content-area.cjs.entry.js +1 -1
- package/dist/cjs/xpl-dashboard.cjs.entry.js +1 -1
- package/dist/cjs/xpl-data-card.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +14 -11
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +1 -1
- package/dist/cjs/xpl-icon.cjs.entry.js +2 -2
- package/dist/cjs/xpl-input-color.cjs.entry.js +13 -13
- package/dist/cjs/xpl-input-phone.cjs.entry.js +5 -5
- package/dist/cjs/xpl-input-time.cjs.entry.js +2 -2
- package/dist/cjs/xpl-input_4.cjs.entry.js +15 -14
- package/dist/cjs/xpl-large-card.cjs.entry.js +1 -1
- package/dist/cjs/xpl-list.cjs.entry.js +2 -2
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-modal.cjs.entry.js +50 -21
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +2 -2
- package/dist/cjs/xpl-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-pagination.cjs.entry.js +4 -4
- package/dist/cjs/xpl-panel.cjs.entry.js +2 -2
- package/dist/cjs/xpl-popover.cjs.entry.js +4 -4
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-select_2.cjs.entry.js +8 -8
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +5 -5
- package/dist/cjs/xpl-side-nav.cjs.entry.js +7 -3
- package/dist/cjs/xpl-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/xpl-slideout.cjs.entry.js +1 -1
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-body.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-footer-cell.cjs.entry.js +18 -0
- package/dist/cjs/xpl-table-footer.cjs.entry.js +14 -0
- package/dist/cjs/xpl-table-header.cjs.entry.js +1 -1
- package/dist/cjs/xpl-table-row.cjs.entry.js +20 -0
- package/dist/cjs/xpl-table.cjs.entry.js +5 -5
- package/dist/cjs/xpl-tabs.cjs.entry.js +5 -5
- package/dist/cjs/xpl-toast.cjs.entry.js +2 -2
- package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
- package/dist/cjs/xpl-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +2 -2
- package/dist/cjs/xpl-top-nav.cjs.entry.js +5 -5
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +1 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +2 -2
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/xpl-button.js +1 -1
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +3 -3
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -1
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +2 -2
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +10 -7
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +1 -1
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input.js +7 -6
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
- package/dist/collection/components/xpl-list/xpl-list.js +2 -2
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +50 -21
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +4 -4
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js +3 -3
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/select.shared.js +82 -0
- package/dist/collection/components/xpl-select/xpl-select.js +6 -6
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +2 -2
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +5 -5
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +8 -4
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +1 -1
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +2 -2
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +37 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +78 -0
- package/dist/collection/components/xpl-table/xpl-table.js +5 -5
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-tabs/tabs.shared.js +0 -33
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +5 -5
- package/dist/collection/components/xpl-tag/xpl-tag.js +2 -2
- package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +5 -5
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-9VnxPQLs.js +1 -0
- package/dist/components/p-B2oLZUDD.js +1 -0
- package/dist/components/p-BYYFsuD3.js +1 -0
- package/dist/components/p-BZtxVB1R.js +1 -0
- package/dist/components/{p-BGqQbjLl.js → p-BdpZR4KO.js} +1 -1
- package/dist/components/{p-DywQ3S73.js → p-Chpgh5SL.js} +1 -1
- package/dist/components/{p-2jYZ7ACH.js → p-CiHTfk3E.js} +1 -1
- package/dist/components/p-CnVGKN63.js +1 -0
- package/dist/components/p-Cz7zDaI4.js +1 -0
- package/dist/components/{p-CjbPCnPP.js → p-D--kzomA.js} +1 -1
- package/dist/components/p-D4rv6CNJ.js +1 -0
- package/dist/components/{p-Dzp5p-eh.js → p-DAb-txW3.js} +1 -1
- package/dist/components/p-DYmvElhR.js +1 -0
- package/dist/components/{p-DsRsm61K.js → p-EfW0v54z.js} +1 -1
- package/dist/components/{p-DWUJ_jsx.js → p-JyNpXfDe.js} +1 -1
- package/dist/components/{p-DS2Kv5fl.js → p-U0JYwf4c.js} +1 -1
- package/dist/components/p-YG9Jza0y.js +1 -0
- package/dist/components/{p-imCMp2Nl.js → p-l3EZ-agL.js} +1 -1
- package/dist/components/p-oIn1krdu.js +1 -0
- package/dist/components/p-wIU7KUhA.js +1 -0
- package/dist/components/{p-BnTsRbko.js → p-xFsB212F.js} +1 -1
- package/dist/components/p-xtOHikY0.js +1 -0
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.js +1 -1
- package/dist/components/xpl-avatar.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-banner.js +1 -1
- package/dist/components/xpl-breadcrumb-item.js +1 -1
- package/dist/components/xpl-breadcrumbs.js +1 -1
- package/dist/components/xpl-button-row.js +1 -1
- package/dist/components/xpl-button.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-choicelist.js +1 -1
- package/dist/components/xpl-content-area.js +1 -1
- package/dist/components/xpl-dashboard.js +1 -1
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon.js +1 -1
- package/dist/components/xpl-input-color.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-phone.js +1 -1
- package/dist/components/xpl-input-search.js +1 -1
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list-item.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-side-nav-header-item.js +1 -1
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.js +1 -1
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.js +1 -1
- package/dist/components/xpl-tab-panel.js +1 -1
- package/dist/components/xpl-tab.js +1 -1
- package/dist/components/xpl-table-body.d.ts +11 -0
- package/dist/components/xpl-table-body.js +1 -0
- package/dist/components/xpl-table-footer-cell.d.ts +11 -0
- package/dist/components/xpl-table-footer-cell.js +1 -0
- package/dist/components/xpl-table-footer.d.ts +11 -0
- package/dist/components/xpl-table-footer.js +1 -0
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- package/dist/components/xpl-table-row.d.ts +11 -0
- package/dist/components/xpl-table-row.js +1 -0
- package/dist/components/xpl-table.js +1 -1
- package/dist/components/xpl-tabs.js +1 -1
- package/dist/components/xpl-tag.js +1 -1
- package/dist/components/xpl-toast.js +1 -1
- package/dist/components/xpl-toggle.js +1 -1
- package/dist/components/xpl-toolbar.js +1 -1
- package/dist/components/xpl-tooltip.js +1 -1
- package/dist/components/xpl-top-nav-item.js +1 -1
- package/dist/components/xpl-top-nav-menu.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-modal/readme.md +18 -2
- package/dist/docs/xpl-table/xpl-table-body/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +16 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +31 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +34 -0
- package/dist/docs.json +207 -6
- package/dist/esm/apollo-core.js +1 -1
- package/dist/esm/index-ukZKsqqq.js +16 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/xpl-accordion.entry.js +2 -2
- package/dist/esm/xpl-application-shell.entry.js +1 -1
- package/dist/esm/xpl-avatar_3.entry.js +5 -4
- package/dist/esm/xpl-backdrop.entry.js +1 -1
- package/dist/esm/xpl-badge.entry.js +1 -1
- package/dist/esm/xpl-banner.entry.js +2 -2
- package/dist/esm/xpl-breadcrumb-item.entry.js +1 -1
- package/dist/esm/xpl-breadcrumbs.entry.js +1 -1
- package/dist/esm/xpl-button-row.entry.js +1 -1
- package/dist/esm/xpl-button.entry.js +1 -1
- package/dist/esm/xpl-calendar.entry.js +1 -1
- package/dist/esm/xpl-checkbox.entry.js +3 -3
- package/dist/esm/xpl-choicelist.entry.js +1 -1
- package/dist/esm/xpl-content-area.entry.js +1 -1
- package/dist/esm/xpl-dashboard.entry.js +1 -1
- package/dist/esm/xpl-data-card.entry.js +2 -2
- package/dist/esm/xpl-dropdown_4.entry.js +14 -11
- package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table.entry.js +2 -2
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-header-accordion.entry.js +1 -1
- package/dist/esm/xpl-icon.entry.js +2 -2
- package/dist/esm/xpl-input-color.entry.js +13 -13
- package/dist/esm/xpl-input-phone.entry.js +5 -5
- package/dist/esm/xpl-input-time.entry.js +2 -2
- package/dist/esm/xpl-input_4.entry.js +15 -14
- package/dist/esm/xpl-large-card.entry.js +1 -1
- package/dist/esm/xpl-list.entry.js +2 -2
- package/dist/esm/xpl-main-nav.entry.js +1 -1
- package/dist/esm/xpl-modal.entry.js +50 -21
- package/dist/esm/xpl-nav-header-menu.entry.js +2 -2
- package/dist/esm/xpl-nav-item.entry.js +2 -2
- package/dist/esm/xpl-pagination.entry.js +4 -4
- package/dist/esm/xpl-panel.entry.js +2 -2
- package/dist/esm/xpl-popover.entry.js +4 -4
- package/dist/esm/xpl-progress-bar.entry.js +2 -2
- package/dist/esm/xpl-progress-indicator.entry.js +1 -1
- package/dist/esm/xpl-secondary-nav.entry.js +1 -1
- package/dist/esm/xpl-select_2.entry.js +8 -8
- package/dist/esm/xpl-side-nav-header-item.entry.js +2 -2
- package/dist/esm/xpl-side-nav-item.entry.js +2 -2
- package/dist/esm/xpl-side-nav-section.entry.js +5 -5
- package/dist/esm/xpl-side-nav.entry.js +8 -4
- package/dist/esm/xpl-skeleton.entry.js +1 -1
- package/dist/esm/xpl-slideout.entry.js +1 -1
- package/dist/esm/xpl-tab-panel.entry.js +2 -2
- package/dist/esm/xpl-table-body.entry.js +12 -0
- package/dist/esm/xpl-table-footer-cell.entry.js +16 -0
- package/dist/esm/xpl-table-footer.entry.js +12 -0
- package/dist/esm/xpl-table-header.entry.js +1 -1
- package/dist/esm/xpl-table-row.entry.js +18 -0
- package/dist/esm/xpl-table.entry.js +5 -5
- package/dist/esm/xpl-tabs.entry.js +5 -5
- package/dist/esm/xpl-toast.entry.js +2 -2
- package/dist/esm/xpl-toggle.entry.js +3 -3
- package/dist/esm/xpl-toolbar.entry.js +2 -2
- package/dist/esm/xpl-tooltip.entry.js +1 -1
- package/dist/esm/xpl-top-nav-item.entry.js +2 -2
- package/dist/esm/xpl-top-nav-menu.entry.js +2 -2
- package/dist/esm/xpl-top-nav.entry.js +5 -5
- package/dist/esm/xpl-utility-bar.entry.js +1 -1
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +7 -1
- package/dist/types/components/xpl-select/select.shared.d.ts +23 -0
- package/dist/types/components/xpl-table/xpl-table-body/xpl-table-body.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +3 -0
- package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +4 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +6 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +0 -2
- package/dist/types/components.d.ts +98 -0
- package/hydrate/index.js +302 -176
- package/hydrate/index.mjs +302 -176
- package/package.json +42 -46
- package/dist/apollo-core/p-0095174c.entry.js +0 -1
- package/dist/apollo-core/p-020ecd66.entry.js +0 -1
- package/dist/apollo-core/p-091411e3.entry.js +0 -1
- package/dist/apollo-core/p-0be4dbb8.entry.js +0 -1
- package/dist/apollo-core/p-1139fac0.entry.js +0 -1
- package/dist/apollo-core/p-140a96c7.entry.js +0 -1
- package/dist/apollo-core/p-26b6a0ed.entry.js +0 -1
- package/dist/apollo-core/p-39e71d86.entry.js +0 -1
- package/dist/apollo-core/p-3dd1de49.entry.js +0 -1
- package/dist/apollo-core/p-4129d971.entry.js +0 -1
- package/dist/apollo-core/p-5afc9831.entry.js +0 -1
- package/dist/apollo-core/p-5d25a84a.entry.js +0 -1
- package/dist/apollo-core/p-5e5c5016.entry.js +0 -1
- package/dist/apollo-core/p-638fd9b1.entry.js +0 -1
- package/dist/apollo-core/p-724c5038.entry.js +0 -1
- package/dist/apollo-core/p-80a11cad.entry.js +0 -1
- package/dist/apollo-core/p-875e0eaa.entry.js +0 -1
- package/dist/apollo-core/p-8ddbf2e2.entry.js +0 -1
- package/dist/apollo-core/p-a33b0943.entry.js +0 -1
- package/dist/apollo-core/p-ba41bbd5.entry.js +0 -1
- package/dist/apollo-core/p-cde21f72.entry.js +0 -1
- package/dist/apollo-core/p-d288c1d1.entry.js +0 -1
- package/dist/apollo-core/p-d3f2b8b8.entry.js +0 -1
- package/dist/apollo-core/p-dfaba114.entry.js +0 -1
- package/dist/apollo-core/p-e2a16242.entry.js +0 -1
- package/dist/apollo-core/p-ec488f9c.entry.js +0 -1
- package/dist/apollo-core/p-f2bfe6a6.entry.js +0 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +0 -84
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +0 -755
- package/dist/collection/components/xpl-avatar/avatar.stories.js +0 -157
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +0 -38
- package/dist/collection/components/xpl-badge/badge.stories.js +0 -104
- package/dist/collection/components/xpl-banner/banner.stories.js +0 -69
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +0 -139
- package/dist/collection/components/xpl-button/button.stories.js +0 -144
- package/dist/collection/components/xpl-button-row/button-row.stories.js +0 -68
- package/dist/collection/components/xpl-calendar/calendar.stories.js +0 -71
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +0 -92
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +0 -162
- package/dist/collection/components/xpl-content-area/content-area.stories.js +0 -44
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +0 -57
- package/dist/collection/components/xpl-data-card/data-card.stories.js +0 -170
- package/dist/collection/components/xpl-divider/divider.stories.js +0 -47
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +0 -395
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +0 -169
- package/dist/collection/components/xpl-grid/grid.stories.js +0 -85
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +0 -56
- package/dist/collection/components/xpl-icon/icons.stories.js +0 -161
- package/dist/collection/components/xpl-input/input.stories.js +0 -712
- package/dist/collection/components/xpl-large-card/large-card.stories.js +0 -155
- package/dist/collection/components/xpl-list/list.stories.js +0 -398
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +0 -312
- package/dist/collection/components/xpl-modal/modal.stories.js +0 -100
- package/dist/collection/components/xpl-pagination/pagination.stories.js +0 -65
- package/dist/collection/components/xpl-panel/panel.stories.js +0 -62
- package/dist/collection/components/xpl-popover/popover.stories.js +0 -174
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +0 -105
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +0 -126
- package/dist/collection/components/xpl-radio/radio.stories.js +0 -115
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +0 -83
- package/dist/collection/components/xpl-select/select.stories.js +0 -300
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +0 -1070
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +0 -80
- package/dist/collection/components/xpl-slideout/slideout.stories.js +0 -122
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +0 -392
- package/dist/collection/components/xpl-table/table.stories.js +0 -156
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -134
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -83
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +0 -40
- package/dist/collection/components/xpl-tabs/tabs.stories.js +0 -43
- package/dist/collection/components/xpl-tag/tag.stories.js +0 -159
- package/dist/collection/components/xpl-toast/toast.stories.js +0 -112
- package/dist/collection/components/xpl-toggle/toggle.stories.js +0 -95
- package/dist/collection/components/xpl-toolbar/toolbar.stories.js +0 -39
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +0 -67
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +0 -764
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +0 -94
- package/dist/components/p-Bseq_BgD.js +0 -1
- package/dist/components/p-CCgZCY_A.js +0 -1
- package/dist/components/p-CJzsLWeV.js +0 -1
- package/dist/components/p-CRKY79vL.js +0 -1
- package/dist/components/p-Cjxw-qOg.js +0 -1
- package/dist/components/p-D6JUVA1x.js +0 -1
- package/dist/components/p-DFGw0APN.js +0 -1
- package/dist/components/p-DLLQBDCb.js +0 -1
- package/dist/components/p-Di1NDy0w.js +0 -1
- package/dist/components/p-DkM7jyQB.js +0 -1
- package/dist/components/p-Mehog36m.js +0 -1
- package/dist/components/p-RYnBuuDE.js +0 -1
- package/dist/css/typography.stories.js +0 -153
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +0 -46
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +0 -46
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +0 -39
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +0 -23
- package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -87
- package/dist/types/components/xpl-banner/banner.stories.d.ts +0 -79
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +0 -40
- package/dist/types/components/xpl-button/button.stories.d.ts +0 -136
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +0 -34
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +0 -45
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +0 -51
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +0 -30
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +0 -19
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +0 -22
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +0 -113
- package/dist/types/components/xpl-divider/divider.stories.d.ts +0 -28
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +0 -177
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +0 -30
- package/dist/types/components/xpl-grid/grid.stories.d.ts +0 -109
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +0 -32
- package/dist/types/components/xpl-icon/icons.stories.d.ts +0 -31
- package/dist/types/components/xpl-input/input.stories.d.ts +0 -441
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +0 -57
- package/dist/types/components/xpl-list/list.stories.d.ts +0 -385
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +0 -19
- package/dist/types/components/xpl-modal/modal.stories.d.ts +0 -103
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +0 -31
- package/dist/types/components/xpl-panel/panel.stories.d.ts +0 -30
- package/dist/types/components/xpl-popover/popover.stories.d.ts +0 -21
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +0 -62
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +0 -64
- package/dist/types/components/xpl-radio/radio.stories.d.ts +0 -96
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +0 -8
- package/dist/types/components/xpl-select/select.stories.d.ts +0 -158
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +0 -173
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +0 -36
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +0 -124
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +0 -203
- package/dist/types/components/xpl-table/table.stories.d.ts +0 -67
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +0 -80
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +0 -36
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +0 -134
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +0 -107
- package/dist/types/components/xpl-tag/tag.stories.d.ts +0 -68
- package/dist/types/components/xpl-toast/toast.stories.d.ts +0 -70
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +0 -53
- package/dist/types/components/xpl-toolbar/toolbar.stories.d.ts +0 -35
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +0 -29
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +0 -549
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +0 -27
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/story-function.d.ts +0 -11
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/.storybook/utils/wait-for-hydration.d.ts +0 -1
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/src/css/typography.stories.d.ts +0 -76
- /package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/{src/utils → utils}/form-bindings.d.ts +0 -0
- /package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/{src/utils → utils}/story-vrt.d.ts +0 -0
|
@@ -103,10 +103,13 @@ const Dropdown = class {
|
|
|
103
103
|
this.previousOptionCount = 0;
|
|
104
104
|
this.handleClickOutside = ({ target }) => {
|
|
105
105
|
const { triggerId } = this;
|
|
106
|
+
const targetEl = target;
|
|
106
107
|
const triggerElement = triggerId ? document.getElementById(triggerId) : null;
|
|
107
|
-
const isTriggerOrChild = triggerElement?.contains(
|
|
108
|
-
const isInside = this.hostElement.contains(
|
|
109
|
-
|
|
108
|
+
const isTriggerOrChild = triggerElement?.contains(targetEl);
|
|
109
|
+
const isInside = this.hostElement.contains(targetEl);
|
|
110
|
+
const labelEl = targetEl?.closest('label');
|
|
111
|
+
const isTriggerLabel = !!labelEl && !!triggerId && labelEl.getAttribute('for') === triggerId;
|
|
112
|
+
if (!isInside && !isTriggerOrChild && !isTriggerLabel && this.isOpen) {
|
|
110
113
|
this.isOpen = false;
|
|
111
114
|
}
|
|
112
115
|
};
|
|
@@ -434,7 +437,7 @@ const Dropdown = class {
|
|
|
434
437
|
const shouldVirtualize = this.isVirtualized;
|
|
435
438
|
let listContent;
|
|
436
439
|
if (!hasOptions) {
|
|
437
|
-
listContent = h("slot", { key: '
|
|
440
|
+
listContent = h("slot", { key: '1673c7d33d7dc1d16bf56081df85976ed389a38f', name: "options" });
|
|
438
441
|
}
|
|
439
442
|
else if (shouldVirtualize) {
|
|
440
443
|
const { rowHeight, overscan } = VIRTUAL_LIST;
|
|
@@ -442,18 +445,18 @@ const Dropdown = class {
|
|
|
442
445
|
const start = Math.min(this.virtualStart, total);
|
|
443
446
|
const fallbackEnd = Math.min(total, Math.ceil(300 / rowHeight) + overscan * 2);
|
|
444
447
|
const end = this.virtualEnd > start ? this.virtualEnd : fallbackEnd;
|
|
445
|
-
listContent = (h("li", { key: '
|
|
448
|
+
listContent = (h("li", { key: '94094d9464c2f4ded9714f7ed16ca2b426c19794', class: "xpl-dropdown__virtual-sizer", style: { height: `${total * rowHeight}px` } }, options.slice(start, end).map((option, i) => renderOption(option, start + i))));
|
|
446
449
|
}
|
|
447
450
|
else {
|
|
448
451
|
listContent = options.map((option) => renderOption(option));
|
|
449
452
|
}
|
|
450
|
-
return (h(Host, { key: '
|
|
453
|
+
return (h(Host, { key: '6e2fe2b904530c7966a23b3715485ea9ed415880', "aria-expanded": isOpen ? 'true' : 'false', class: {
|
|
451
454
|
'xpl-dropdown': true,
|
|
452
455
|
'xpl-dropdown--multi': mode === 'multi',
|
|
453
456
|
'xpl-dropdown--open': isOpen,
|
|
454
457
|
'xpl-dropdown--anchor-to-trigger': this.anchorToTrigger,
|
|
455
458
|
'xpl-dropdown--virtualized': shouldVirtualize,
|
|
456
|
-
}, role: "listbox" }, h("slot", { key: '
|
|
459
|
+
}, role: "listbox" }, h("slot", { key: 'b9c87382e07b23b326fab22b8423021f8c4a83f8', name: "header" }), h("ul", { key: '3824b650e2bbcb09fdea7f25ab19afa9a7dd8abe', class: "xpl-dropdown-list", ref: (el) => {
|
|
457
460
|
this.setListEl(el);
|
|
458
461
|
}, onScroll: shouldVirtualize ? this.handleVirtualScroll : undefined }, listContent)));
|
|
459
462
|
}
|
|
@@ -492,7 +495,7 @@ const DropdownGroup = class {
|
|
|
492
495
|
const hasOptions = options && options.length;
|
|
493
496
|
const mappedOptions = hasOptions &&
|
|
494
497
|
options.map(({ groupName: optsGroupName, ...properties }) => optsGroupName ? (h("xpl-dropdown-group", { label: optsGroupName, ...properties })) : (h("xpl-dropdown-option", { ...properties })));
|
|
495
|
-
return (h(Host, { key: '
|
|
498
|
+
return (h(Host, { key: '232eccef872d6563c056b3b709d3a741473de2b0', role: "group", "aria-label": groupName }, h("li", { key: '2185c7b55139ab7b144290c94ab53675a6224b46', class: "xpl-dropdown-list-item" }, h("xpl-dropdown-heading", { key: '26c0d13d0742fd34eb629c668bd929e5541fffb8', label: groupName }), h("ul", { key: '0f13b81deda008bf0588393ff1a4102a5c7a171d', class: "xpl-dropdown-list" }, mappedOptions || h("slot", { key: '70cf6f662d1471c815f5e7c747080d7558efe407', name: "options" })))));
|
|
496
499
|
}
|
|
497
500
|
};
|
|
498
501
|
|
|
@@ -501,7 +504,7 @@ const DropdownHeading = class {
|
|
|
501
504
|
registerInstance(this, hostRef);
|
|
502
505
|
}
|
|
503
506
|
render() {
|
|
504
|
-
return (h(Host, { key: '
|
|
507
|
+
return (h(Host, { key: '04265224adcc5b65f53d2e35d0cfef470931ce41', class: { 'xpl-dropdown-heading': true }, role: "presentation" }, h("span", { key: '27293255cdfe35d207f3f0155beae3dc4b737e0d' }, this.label || h("slot", { key: 'b5bbee144360b2e5da681864e3dae6c2cafd2552', name: "heading" }))));
|
|
505
508
|
}
|
|
506
509
|
};
|
|
507
510
|
|
|
@@ -560,11 +563,11 @@ const DropdownOptionCpnt = class {
|
|
|
560
563
|
}
|
|
561
564
|
render() {
|
|
562
565
|
const { label, isSelected, isDisabled, value, subtitle, icon } = this;
|
|
563
|
-
return (h(Host, { key: '
|
|
566
|
+
return (h(Host, { key: 'f4fa4b0a3150fafd4b1c259aa140925219487898', class: {
|
|
564
567
|
'xpl-dropdown-option': true,
|
|
565
568
|
'xpl-dropdown-option--disabled': !!isDisabled,
|
|
566
569
|
'xpl-dropdown-option--selected': !!isSelected,
|
|
567
|
-
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, h("li", { key: '
|
|
570
|
+
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, h("li", { key: '417af38233cd4765cc54a0cc4541bb5caeaf10ab', class: "xpl-dropdown-list-item" }, icon && (h("xpl-icon", { key: '48cbe69b056142ce5ef5cd6c608a99f1defd2e9f', class: "xpl-dropdown-list-item__icon", icon: icon, size: 20 })), label || h("slot", { key: '14b86d61bab431487cdef906a0a9b138d6ab4bbb', name: "option" }), subtitle && h("span", { key: 'c7ff5ee61b08f7a94d107183127c0b9cff0b49b5', class: "xpl-dropdown-list-item__subtitle" }, subtitle))));
|
|
568
571
|
}
|
|
569
572
|
get hostElement() { return getElement(this); }
|
|
570
573
|
};
|
|
@@ -23,9 +23,9 @@ const DynamicTableCell = class {
|
|
|
23
23
|
const colIndex = this.el.parentElement
|
|
24
24
|
? Array.from(this.el.parentElement.children).indexOf(this.el) + 1
|
|
25
25
|
: 0;
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '6a4eea3dcf826a18c24068acea56dc63261220f4', role: "gridcell", "aria-colindex": colIndex, class: "xpl-dynamic-table-cell", ref: (el) => {
|
|
27
27
|
this.hostElement = el ?? undefined;
|
|
28
|
-
} }, h("slot", { key: '
|
|
28
|
+
} }, h("slot", { key: '138598bb74c49c32b649f0955a53cb8ea479e04f' })));
|
|
29
29
|
}
|
|
30
30
|
get el() { return getElement(this); }
|
|
31
31
|
};
|
|
@@ -26,9 +26,9 @@ const DynamicTableRow = class {
|
|
|
26
26
|
const classList = `xpl-dynamic-table-row
|
|
27
27
|
${this.isDisabled ? 'disabled' : ''}
|
|
28
28
|
${this.selected ? 'selected' : ''}`;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '4b0e558771154ca42ab57235d9b38861831d7eeb', role: "row", class: classList, ref: (el) => {
|
|
30
30
|
this.hostElement = el ?? undefined;
|
|
31
|
-
} }, h("slot", { key: '
|
|
31
|
+
} }, h("slot", { key: '8b2b1a78d797c9a5fcaa8b31db2a41f57335b683' })));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -44,10 +44,10 @@ const DynamicTable = class {
|
|
|
44
44
|
this.updateColumnCount();
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h("div", { key: '
|
|
47
|
+
return (h("div", { key: '9fdd0a6b9adfad92d89ff30873009e08ca981124', role: "grid", class: {
|
|
48
48
|
'xpl-dynamic-table': true,
|
|
49
49
|
'xpl-dynamic-table--accordion': this.hasAccordion,
|
|
50
|
-
}, "aria-colcount": this.colCount }, h("slot", { key: '
|
|
50
|
+
}, "aria-colcount": this.colCount }, h("slot", { key: 'a105d82f752d34618a0603c59f85ea9e2ee6c3dd', name: "header" }), h("slot", { key: '24817b404a5a6f50ab1f17674a85391a8645f728', name: "body" })));
|
|
51
51
|
}
|
|
52
52
|
get el() { return getElement(this); }
|
|
53
53
|
};
|
|
@@ -14,7 +14,7 @@ const GridItem = class {
|
|
|
14
14
|
className += ` xpl-grid-item-sm-${this.sm}`;
|
|
15
15
|
className += ` xpl-grid-item-md-${this.md}`;
|
|
16
16
|
className += ` xpl-grid-item-lg-${this.lg}`;
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '0fc1d60f8f0d0df7208302a3668930afdb1dc5ba', class: className }, h("slot", { key: '0385c17beb3982d060b4e2a4bdd0fd16f924a0d3' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ const Grid = class {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return h(Host, { key: '
|
|
29
|
+
return h(Host, { key: '94440d9d2f50c8712e7e4599409101da361f66d8', class: "xpl-grid" });
|
|
30
30
|
}
|
|
31
31
|
get container() { return getElement(this); }
|
|
32
32
|
};
|
|
@@ -54,7 +54,7 @@ const HeaderAccordion = class {
|
|
|
54
54
|
this.updateParentCheckbox(initialCheckoxesValue);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '7a9c486fd491732cafa29086b3e3edab9090fcef', class: "xpl-header-accordion" }, h("div", { key: 'c63b756d6336e89b7976fb9a072782ed9d67a7c9', class: `header-accordion header-accordion--${this.expanded ? 'expanded' : 'collapsed'}` }, this.hasCheckbox && (h("xpl-checkbox", { key: '65d41ff6f70d0cc9022f0337335305737a23617d', class: "xpl-header-accordion__parent-checkbox", checked: this.parentChecked, disabled: this.disabled, indeterminate: this.parentIndeterminate, onCheckboxChange: (event) => this.handleParentCheckboxChange(event.detail) })), h("button", { key: '514f9bfe4a024416b8a4e152472c2bd7bbe3ab1d', "aria-expanded": this.expanded, "aria-controls": this.contentId, class: "toggle-area", onClick: this.toggleAccordion, type: "button" }, h("slot", { key: '29a2434b4a4be46751f4425b7837f11324547e1a', name: "title" }), h("xpl-icon", { key: 'cf2e043da31d9845e6b4db91022f67c3abb4918d', size: 16, icon: "chevron-down", class: this.expanded ? 'rotate' : undefined }))), h("div", { key: '6bcc05f2ebf545ef67fa7cf1e3bb1e6f39f0f170', id: this.contentId, role: "region", class: !this.expanded ? 'content--hidden' : 'content--shown' }, h("slot", { key: '6bbcd7e23979d93d88168f173766f86701ecc382', name: "content" }))));
|
|
58
58
|
}
|
|
59
59
|
get el() { return getElement(this); }
|
|
60
60
|
static get watchers() { return {
|
|
@@ -13989,10 +13989,10 @@ const Icon = class {
|
|
|
13989
13989
|
let wrapperClasses = 'xpl-icon__wrapper ';
|
|
13990
13990
|
if (this.backgroundColor)
|
|
13991
13991
|
wrapperClasses += `xpl-icon__wrapper--with-background xpl-icon__wrapper--with-background--${this.backgroundColor}`;
|
|
13992
|
-
return (h(Host, { key: '
|
|
13992
|
+
return (h(Host, { key: '2969450a00c78280dca3b7ed44f98f8699c41808' }, h("figure", { key: '56dc93a59a43dc28eb7479696b8d97656a7c7c68', class: wrapperClasses }, h("span", { key: 'f6133fba12fc84a6547575e70997c131c1771ef2', "aria-label": this.icon, role: "img", class: "xpl-icon", style: {
|
|
13993
13993
|
width: `${options.width}px`,
|
|
13994
13994
|
height: `${options.height}px`,
|
|
13995
|
-
}, innerHTML: apolloIcons.getIcon(this.icon)?.toSVG(options) }), h("figcaption", { key: '
|
|
13995
|
+
}, innerHTML: apolloIcons.getIcon(this.icon)?.toSVG(options) }), h("figcaption", { key: 'c5c9fa42d7c00ea35666b81c7f8ba39f4482572c' }, this.icon, " icon"))));
|
|
13996
13996
|
}
|
|
13997
13997
|
};
|
|
13998
13998
|
Icon.style = xplIconCss();
|
|
@@ -125,7 +125,7 @@ const rgbToHex = (r, g, b) => [r, g, b].map((x) => x.toString(16).padStart(2, '0
|
|
|
125
125
|
const stringToObjectColor = (input) => {
|
|
126
126
|
if (input.startsWith('#')) {
|
|
127
127
|
if (!/^#([a-fA-F\d]{6})$/.test(input)) {
|
|
128
|
-
throw new Error('Only 6-digit hex format supported (e.g. #aabbcc)');
|
|
128
|
+
throw new Error('xpl-input-color: Only 6-digit hex format supported (e.g. #aabbcc)');
|
|
129
129
|
}
|
|
130
130
|
const hex = input.toLowerCase().slice(1);
|
|
131
131
|
const r = parseInt(hex.slice(0, 2), 16);
|
|
@@ -136,7 +136,7 @@ const stringToObjectColor = (input) => {
|
|
|
136
136
|
if (input.startsWith('rgba') || input.startsWith('rgb')) {
|
|
137
137
|
const match = input.match(/[\d.]+/g)?.map(Number);
|
|
138
138
|
if (!match || match.length < 3) {
|
|
139
|
-
throw new Error('Invalid rgba/rgb format');
|
|
139
|
+
throw new Error('xpl-input-color: Invalid rgba/rgb format');
|
|
140
140
|
}
|
|
141
141
|
const [r, g, b, a = 1] = match;
|
|
142
142
|
const toHex = (n) => n.toString(16).padStart(2, '0');
|
|
@@ -146,19 +146,19 @@ const stringToObjectColor = (input) => {
|
|
|
146
146
|
if (input.startsWith('hsla') || input.startsWith('hsl')) {
|
|
147
147
|
const match = input.match(/[\d.]+/g)?.map(Number);
|
|
148
148
|
if (!match || match.length < 3) {
|
|
149
|
-
throw new Error('Invalid hsla/hsl format');
|
|
149
|
+
throw new Error('xpl-input-color: Invalid hsla/hsl format');
|
|
150
150
|
}
|
|
151
151
|
const [hue, saturation, lightness, alpha = 1] = match;
|
|
152
152
|
const rgba = hslaToRgba(hue, saturation, lightness, alpha);
|
|
153
153
|
const rgbaParts = rgba.match(/[\d.]+/g)?.map(Number);
|
|
154
154
|
if (!rgbaParts || rgbaParts.length < 3) {
|
|
155
|
-
throw new Error('Invalid hsla/hsl format');
|
|
155
|
+
throw new Error('xpl-input-color: Invalid hsla/hsl format');
|
|
156
156
|
}
|
|
157
157
|
const [r, g, b] = rgbaParts;
|
|
158
158
|
const hex = rgbToHex(r, g, b);
|
|
159
159
|
return { hex: hex.toLowerCase(), r, g, b, a: alpha };
|
|
160
160
|
}
|
|
161
|
-
throw new Error('Unsupported color format');
|
|
161
|
+
throw new Error('xpl-input-color: Unsupported color format');
|
|
162
162
|
};
|
|
163
163
|
const objectToStringColor = (color) => {
|
|
164
164
|
if (!color.a || color.a === 1) {
|
|
@@ -376,16 +376,16 @@ const InputColor = class {
|
|
|
376
376
|
top: `${y}px`,
|
|
377
377
|
background: `rgb(${r}, ${g}, ${b})`,
|
|
378
378
|
};
|
|
379
|
-
return (h(Host, { key: '
|
|
379
|
+
return (h(Host, { key: '2c4bff1c1b56afdc1b4192a2d7c1e0a1f5ebc073', class: "xpl-input-color" }, h("xpl-popover", { key: 'ba545a5022a532ef2fde8c795bee19f2680514c1', disabled: this.disabled, display: "menu" }, h("div", { key: '180e066079da1a97ba31bcaf66d443df8a0c48ca', slot: "trigger" }, h("div", { key: 'c3cc0cb1484c4111b60b736b750571552437d0cf', class: {
|
|
380
380
|
'xpl-input-color__display': true,
|
|
381
381
|
'xpl-input-color__display--disabled': !!this.disabled,
|
|
382
382
|
'xpl-input-color__display--error': !!this.hasErrorState,
|
|
383
|
-
} }, h("span", { key: '
|
|
383
|
+
} }, h("span", { key: '72aaff4e9a54da1f766d1de85bd58216c866a4b7', class: "xpl-input-color__color", style: {
|
|
384
384
|
background: objectToStringColor(this.colorValues),
|
|
385
|
-
} }), this.colorValues.hex ? (h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (h("xpl-icon", { key: '
|
|
385
|
+
} }), this.colorValues.hex ? (h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (h("xpl-icon", { key: 'f55cfde9a119e9f0de379bc1bfb5b5d4b53aa992', size: 20, icon: "eye-dropper", class: "xpl-input-color__icon", onClick: (e) => {
|
|
386
386
|
e.stopPropagation();
|
|
387
387
|
this.openEyeDropper();
|
|
388
|
-
} })))), h("div", { key: '
|
|
388
|
+
} })))), h("div", { key: 'f80f215000d3a906d65f7f6673c6d8eaabe3fc6d', class: "xpl-input-color__menu" }, h("div", { key: '4701c99f8a528900c34005b7c26d9fa544b664d8', class: "xpl-input-color__sl-grid", ref: (el) => {
|
|
389
389
|
this.colorInputElements.slGrid = el ?? undefined;
|
|
390
390
|
}, style: {
|
|
391
391
|
background: [
|
|
@@ -393,9 +393,9 @@ const InputColor = class {
|
|
|
393
393
|
`linear-gradient(to right, #fff, #fff0)`,
|
|
394
394
|
`rgb(${hueBaseColor.r} ${hueBaseColor.g} ${hueBaseColor.b})`,
|
|
395
395
|
].join(', '),
|
|
396
|
-
}, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, h("div", { key: '
|
|
396
|
+
}, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, h("div", { key: '3e0ec5c0821dfed35190053f5e4f147cb7b55eb0', class: "xpl-input-color__sl-thumb", style: slThumbStyle })), h("div", { key: '1b278a13c88aa663a2b8217fbc3524ee213e0f3b', class: "xpl-input-color__grid" }, h("input", { key: '5e35bdd6e7776848a2d2eb32a00deb3ec349c21d', type: "range", min: "0", max: "360", value: this.hue, class: "xpl-input-color__slider xpl-input-color__hue", name: "color-hue-slider", ref: (el) => {
|
|
397
397
|
this.colorInputElements.hue = el ?? undefined;
|
|
398
|
-
} }), h("input", { key: '
|
|
398
|
+
} }), h("input", { key: '1119341201878e5c8511fa3e241afba15eab6d9b', type: "range", min: "0", max: "1", step: "0.01", value: a, class: "xpl-input-color__slider xpl-input-color__alpha", name: "color-alpha-slider", ref: (el) => {
|
|
399
399
|
this.colorInputElements.alpha = el ?? undefined;
|
|
400
400
|
}, style: {
|
|
401
401
|
backgroundImage: [
|
|
@@ -405,9 +405,9 @@ const InputColor = class {
|
|
|
405
405
|
`linear-gradient(45deg, transparent 75%, #ccc 75%)`,
|
|
406
406
|
`linear-gradient(-45deg, transparent 75%, #ccc 75%)`,
|
|
407
407
|
].join(', '),
|
|
408
|
-
} }), h("div", { key: '
|
|
408
|
+
} }), h("div", { key: '3804928b107e92bddbc3afa3fa883caafddbd06b', class: "xpl-input-color__preview", style: {
|
|
409
409
|
background: `rgba(${r}, ${g}, ${b}, ${a})`,
|
|
410
|
-
} })), h("div", { key: '
|
|
410
|
+
} })), h("div", { key: '86961ee31d82724a76f6598bd547c8e650e27f24', class: "xpl-input-color__inputs" }, [
|
|
411
411
|
'hex',
|
|
412
412
|
'r',
|
|
413
413
|
'g',
|
|
@@ -475,20 +475,20 @@ const InputPhone = class {
|
|
|
475
475
|
this.hasErrorState = null;
|
|
476
476
|
}
|
|
477
477
|
render() {
|
|
478
|
-
return (h(Host, { key: '
|
|
478
|
+
return (h(Host, { key: '124c8feabed1cf383f2eb65e77dd2517c96ea01c', class: {
|
|
479
479
|
'xpl-input-phone': true,
|
|
480
480
|
'xpl-input-phone--error': !!this.hasErrorState || !!this.error,
|
|
481
481
|
'xpl-input-phone--open': this.dropdownOpen,
|
|
482
482
|
'xpl-input-phone--domestic': !this.isInternational,
|
|
483
|
-
} }, h("div", { key: '
|
|
483
|
+
} }, h("div", { key: '6b2a17efd488aa18ac8dea1e86d12884ceb51e90', class: "xpl-input-wrapper" }, this.isInternational && (h("button", { key: 'd3f8e42841532f8c37a131545007af3213c1b9e0', type: "button", id: this.triggerId, class: "xpl-input-phone__trigger", disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpen ? 'true' : 'false', "aria-label": "Select country", onClick: this.handleTriggerClick }, this.selectedCountry?.name && (h("xpl-icon", { key: 'cb52527ba28d95a93cba734bb6d1b3ab8e14a388', class: "xpl-input-phone__flag", icon: getCountryIconName(this.selectedCountry.name), size: 24, "aria-hidden": "true" })), h("xpl-icon", { key: '7942dae0973871635b7b64e0697d8c25352ac3bf', class: "xpl-input-phone__trigger-icon", icon: "chevron-down", size: 20, "aria-hidden": "true" }))), h("div", { key: '24b810a9e03c7774ad6576cc9f03888d5da9d3aa', class: "xpl-input-phone__input-wrap" }, this.isInternational && (h("span", { key: 'eb7684aad427a10615c23326a2a2628a4a12fbb0', class: "xpl-input-phone__dial-code" }, this.effectiveDialCode)), h("input", { key: '8e429f156e36f101413e1d5168bb38a2ca9bdebf', ref: (el) => {
|
|
484
484
|
this.inputEl = el ?? undefined;
|
|
485
|
-
}, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState || this.error ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (h("button", { key: '
|
|
485
|
+
}, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState || this.error ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (h("button", { key: '403e1b9e35a7bfd2ba356c16c4d5e9178541f876', type: "button", class: "xpl-input-phone__clear", "aria-label": "Clear phone number", onClick: this.handleClear }, h("xpl-icon", { key: 'aee1381d3a7dcec64c708ecfa67266eef442850e', icon: "x-circle", size: 16 }))))), this.isInternational && this.isEditable && (h("xpl-dropdown", { key: '9d14a65f3ac538b4e420151927a0c349adf3688d', ref: (el) => {
|
|
486
486
|
this.dropdownRef = el ?? undefined;
|
|
487
487
|
}, isOpen: this.dropdownOpen, triggerId: this.triggerId, anchorToTrigger: true, closeOnSelect: true, mode: "single", options: this.dropdownOptions, update: this.handleDropdownUpdate, onIsOpenChange: (e) => {
|
|
488
488
|
this.dropdownOpen = e.detail;
|
|
489
|
-
}, "aria-label": "Country" }, h("div", { key: '
|
|
489
|
+
}, "aria-label": "Country" }, h("div", { key: '87006a8a90ef37032775247a387896f065ce5673', slot: "header", class: "xpl-input-phone__search-wrap" }, h("xpl-input", { key: '26a99c318081e3215fa779191ee8a0f9c127489f', class: "xpl-input-phone__search", type: "text", label: "", placeholder: "Search", value: this.searchQuery, autocomplete: "off", onInputEvent: (e) => {
|
|
490
490
|
this.searchQuery = e.detail ?? '';
|
|
491
|
-
} }, h("xpl-icon", { key: '
|
|
491
|
+
} }, h("xpl-icon", { key: '4aee182e975ed805524ac93e3a34f055266b693b', slot: "pre", class: "xpl-input-phone__search-icon", icon: "magnifier", size: 20 })))))));
|
|
492
492
|
}
|
|
493
493
|
get el() { return getElement(this); }
|
|
494
494
|
static get watchers() { return {
|
|
@@ -173,11 +173,11 @@ const InputTime = class {
|
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return (h(Host, { key: '
|
|
176
|
+
return (h(Host, { key: '5494cc0a537152b9d8dfa03e5281b21e6bb6eee2', class: {
|
|
177
177
|
'xpl-input-time': true,
|
|
178
178
|
[`xpl-input-time--mode-${this.mode}`]: true,
|
|
179
179
|
'xpl-input-time--error': !!this.hasErrorState,
|
|
180
|
-
} }, h("xpl-input", { key: '
|
|
180
|
+
} }, h("xpl-input", { key: '0d32784cd9fc8acacae1854a966bb426fa135fb5', pre: h("xpl-icon", { class: "xpl-input-time__clock-icon", icon: "clock", size: 24 }), post: this.timeFormat === '12h' ? this.amPm || 'AM' : undefined, type: "text", _id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, onInput: this.handleInput, value: this.formattedValue, onFocusEvent: this.handleFocus, onBlurEvent: this.handleBlur, onClick: this.handleClick }), !this.readonly && !this.disabled && (h("xpl-dropdown", { key: '206c668ca8ee29ceffaf14f14acd90fb076fc0ae', options: this.options, isOpen: this.showOptions, ref: (el) => {
|
|
181
181
|
this.dropdown = el ?? undefined;
|
|
182
182
|
}, class: "xpl-input-time__dropdown" }))));
|
|
183
183
|
}
|
|
@@ -157,11 +157,12 @@ const Input = class {
|
|
|
157
157
|
case 'time':
|
|
158
158
|
return (h("xpl-input-time", { inputId: this._id, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, max: this.max, min: this.min, step: this.step, mode: this.mode, timeFormat: this.timeFormat, allowCustomOption: this.allowCustomOption, onValueChange: this.handleChildValueChange }));
|
|
159
159
|
case 'phone':
|
|
160
|
-
return (h("xpl-input-phone", { inputId: this._id, disabled: this.disabled, error:
|
|
160
|
+
return (h("xpl-input-phone", { inputId: this._id, disabled: this.disabled, error: this.error !== undefined, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, defaultCountry: this.defaultCountry, preferredCountries: this.preferredCountries, isInternational: this.isInternational, onValueChange: this.handleChildValueChange }));
|
|
161
161
|
case 'search': {
|
|
162
162
|
const hasVisibleLabel = Boolean((this.label ?? '').trim());
|
|
163
|
-
const
|
|
164
|
-
|
|
163
|
+
const hasError = this.error !== undefined;
|
|
164
|
+
const hasErrorMessage = hasError && (this.error?.length ?? 0) > 0;
|
|
165
|
+
return (h("xpl-input-search", { ariaLabel: (this.ariaLabel ?? '').trim() || 'Search', autocomplete: this.autocomplete ?? 'off', disabled: this.disabled, errorMessageId: hasErrorMessage ? `${this._id}-error` : undefined, hasError: hasError, hasVisibleLabel: hasVisibleLabel, inputId: this._id ?? '', name: this.name, onBlurEvent: this.handleSearchBlurForward, onFocusEvent: this.handleSearchFocusForward, onSearch: this.handleSearchCommit, onValueChange: this.handleChildValueChange, placeholder: this.placeholder ?? 'Search', readonly: this.readonly, ref: (el) => {
|
|
165
166
|
this.searchInputRef = el ?? undefined;
|
|
166
167
|
}, required: this.required, shape: this.shape ?? 'rounded', value: this.value ?? '' }));
|
|
167
168
|
}
|
|
@@ -180,7 +181,7 @@ const Input = class {
|
|
|
180
181
|
}
|
|
181
182
|
render() {
|
|
182
183
|
let hasError = false;
|
|
183
|
-
if (this.error) {
|
|
184
|
+
if (this.error !== undefined) {
|
|
184
185
|
hasError = true;
|
|
185
186
|
}
|
|
186
187
|
else if (this.multiline &&
|
|
@@ -188,13 +189,13 @@ const Input = class {
|
|
|
188
189
|
this.characterCount > this.maxCharacterCount) {
|
|
189
190
|
hasError = true;
|
|
190
191
|
}
|
|
191
|
-
return (h(Host, { key: '
|
|
192
|
+
return (h(Host, { key: '94a5e19a36756ac43ebbe6d3996a2ffbf475da24', class: {
|
|
192
193
|
'xpl-input': true,
|
|
193
194
|
'xpl-input--disabled': !!this.disabled,
|
|
194
195
|
'xpl-input--error': hasError,
|
|
195
196
|
'xpl-input--readonly': !!this.readonly,
|
|
196
197
|
[`xpl-input--${this.type}`]: true,
|
|
197
|
-
} }, this.label && (h("label", { key: '
|
|
198
|
+
} }, this.label && (h("label", { key: 'd41b5e5245483e2ea235c910f85cd6a21b100dec', class: "xpl-input-label", htmlFor: this._id }, this.label, this.description && h("small", { key: 'c9d55823b8b97678b2f5f4374446c3693e6dceaa' }, this.description))), this.renderInput(), (this.error?.length ?? 0) > 0 && (h("label", { key: '20e5a1d2af06e571f0757aa60633438f79a6a17d', class: "xpl-input-error", htmlFor: this._id, id: `${this._id}-error` }, h("xpl-icon", { key: 'a193ee5f1d3e0d8479fa8dfd66ab27edeb400d30', icon: "circle-warning", size: 16 }), h("span", { key: 'acf686fe036d1a1e9cb944ff773dda86e90ff39a' }, this.error)))));
|
|
198
199
|
}
|
|
199
200
|
get el() { return getElement(this); }
|
|
200
201
|
};
|
|
@@ -325,16 +326,16 @@ const InputDate = class {
|
|
|
325
326
|
parent.removeChild(wrapper);
|
|
326
327
|
}
|
|
327
328
|
render() {
|
|
328
|
-
return (h(Host, { key: '
|
|
329
|
+
return (h(Host, { key: '768d9bffdb7431a48824590f9ae61f8e77735e98', class: {
|
|
329
330
|
'xpl-input-date': true,
|
|
330
331
|
[`xpl-input-date--mode-${this.mode}`]: true,
|
|
331
332
|
'xpl-input-date--error': !!this.hasErrorState,
|
|
332
333
|
'xpl-input-date--flatpickr-static': this.flatpickrStaticLayout,
|
|
333
|
-
} }, h("div", { key: '
|
|
334
|
+
} }, h("div", { key: '5b3421bad3bc8474b3724fc7a4287ccf98bd1ba5', class: "xpl-input-wrapper" }, this.pre && (h("label", { key: 'f0e88d0052247c15decc6de2635db1fb847fdd94', class: "xpl-input-pre", htmlFor: this.inputId }, this.pre)), h("input", { key: '251ddfab7140c7a13fd2ef36d7baefe81ed3e716', type: "date", id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, ref: (el) => {
|
|
334
335
|
this.input = el ?? undefined;
|
|
335
336
|
}, onChange: (event) => {
|
|
336
337
|
this.valueChanged(event);
|
|
337
|
-
} }), h("xpl-icon", { key: '
|
|
338
|
+
} }), h("xpl-icon", { key: '6828c8024496963a2a480091a40326154e21d1f5', class: "xpl-input-calendar", icon: "calendar", size: 24 }), this.post && (h("label", { key: 'e08267b6ffc0d605b557e69784b54757621182c7', class: "xpl-input-post", htmlFor: this.inputId }, this.post)))));
|
|
338
339
|
}
|
|
339
340
|
get el() { return getElement(this); }
|
|
340
341
|
static get watchers() { return {
|
|
@@ -381,18 +382,18 @@ const InputFile = class {
|
|
|
381
382
|
this.onRemoveFileByIndex(fileIndex);
|
|
382
383
|
}
|
|
383
384
|
render() {
|
|
384
|
-
return (h(Host, { key: '
|
|
385
|
+
return (h(Host, { key: 'baa52af5a8ee6222ff745cece6e59d9480165af6', class: {
|
|
385
386
|
'xpl-input-file': true,
|
|
386
387
|
'xpl-input-file--hide-trigger-on-select': !!this.hideTriggerOnSelect,
|
|
387
388
|
'xpl-input-file--disabled': !!this.disabled,
|
|
388
|
-
} }, h("span", { key: '
|
|
389
|
+
} }, h("span", { key: '802ed05f26bd1e2a618f5e09bea7370fe69a4718', class: {
|
|
389
390
|
'xpl-input-file__trigger-wrapper': true,
|
|
390
391
|
'xpl-input-file__trigger-wrapper--hidden': !!this.hideTriggerOnSelect && (this.files?.length ?? 0) > 0,
|
|
391
|
-
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, h("slot", { key: '
|
|
392
|
+
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, h("slot", { key: '487381f2b34d2ad528f1b32f976e5513c1e29c11', name: "trigger" })), (this.files?.length ?? 0) > 0 && !this.hideFileNames && (h("ul", { key: 'fe7b503a89a65af02cbb39b93b518b2dde790a34', class: "xpl-input-file__file-list" }, (this.files ?? []).map((file, fileIndex) => (h("li", { class: "xpl-input-file__file-item" }, h("span", { class: "xpl-input-file__file-name" }, file.name), h("xpl-icon", { icon: "x-circle", size: 24, onClick: (e) => {
|
|
392
393
|
e.preventDefault();
|
|
393
394
|
e.stopPropagation();
|
|
394
395
|
this.onRemoveFileByIndex(fileIndex);
|
|
395
|
-
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (h("span", { key: '
|
|
396
|
+
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (h("span", { key: '6e5e54426f2b33858b374d09014ec0096fa43bb4', class: "xpl-input-file__accept" }, "Accepted file types: ", this.accept)), h("input", { key: '81d08e97d8d2c8a59640348e295261f9acd439cc', onChange: this.handleFileChange, type: "file", ref: (el) => {
|
|
396
397
|
this.fileInput = el ?? undefined;
|
|
397
398
|
}, hidden: true, accept: this.accept, multiple: this.multiple, name: this.name })));
|
|
398
399
|
}
|
|
@@ -504,7 +505,7 @@ const InputSearch = class {
|
|
|
504
505
|
return shell;
|
|
505
506
|
}
|
|
506
507
|
render() {
|
|
507
|
-
return (h(Host, { key: '
|
|
508
|
+
return (h(Host, { key: '4a152d3a8db620391334488e1c6c3cdbe9250ba3', class: {
|
|
508
509
|
'xpl-input-search': true,
|
|
509
510
|
'xpl-input-search--disabled': this.disabled,
|
|
510
511
|
'xpl-input-search--error': this.hasError,
|
|
@@ -76,7 +76,7 @@ const LargeCard = class {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '9fdddb5c8d02400545f57499c92af0ee0aa4be67', role: "group", class: `xpl-large-card ${this.link ? 'xpl-large-card__link' : ''}`, tabindex: "0" }, h("dt", { key: '3854e5f89efa2c968f7abeb8284c0ab8e3e31fda', class: "xpl-large-card__header" }, h("header", { key: '0057d377780108f886dae2d9a6a1f3d81748b5fc' }, h("slot", { key: '243d38d7635a2e288a1ec7f7894b772d5005acee', name: "title" }, this.name), this.link && (h("span", { key: 'f2ce2ff09a50471ee255bac8bda406908c272388', class: "xpl-large-card__header-arrow" }, h("xpl-icon", { key: '86233617aaf74a137d84639e1477c311671fad7b', icon: "chevron-right", size: 16 })))), this.description && (h("div", { key: 'ab0c0134a2468d22d122dfe810306d570beee8e8', class: "xpl-large-card__description" }, this.description))), h("dd", { key: '6fb1262327dc91fd0a982bd31ee7deaa94625e12', class: "xpl-large-card__body" }, this.graphContentPresent && h("slot", { key: 'b1e170a19004aad87015786307b926e58d031751', name: GRAPH_CONTENT_SLOT }))));
|
|
80
80
|
}
|
|
81
81
|
get el() { return getElement(this); }
|
|
82
82
|
};
|
|
@@ -369,10 +369,10 @@ const List = class {
|
|
|
369
369
|
render() {
|
|
370
370
|
const ariaLabelledBy = this.labelledBy?.trim() ? this.labelledBy.trim() : undefined;
|
|
371
371
|
const ariaLabel = !ariaLabelledBy && this.label?.trim() ? this.label.trim() : undefined;
|
|
372
|
-
return (h(Host, { key: '
|
|
372
|
+
return (h(Host, { key: '8b055baaf9acc04df19be097d0fb5bcb86c7165a', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, this.items?.map((item, index) => {
|
|
373
373
|
const legacyRowId = item.id ?? `item-${index}`;
|
|
374
374
|
return (h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
|
|
375
|
-
}), h("slot", { key: '
|
|
375
|
+
}), h("slot", { key: '103e3fb6cb29f9527b090dd9e53412528ed7b9c2' }), this.reorderable ? (h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
|
|
376
376
|
}
|
|
377
377
|
get el() { return getElement(this); }
|
|
378
378
|
static get watchers() { return {
|
|
@@ -16,7 +16,7 @@ const MainNav = class {
|
|
|
16
16
|
this.navWidthHandler();
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '936e7393a8037c6c78c7a6d5d284d9c37be2f866', class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", { key: '45fd74c979b53bbd8080ca92ea15e3135d0d49ae' }, h("header", { key: 'cb692d0e90aa70bce5e09af43e54d864849f4800', "aria-label": "Sidebar Header" }, h("slot", { key: '778c33ef024895ca44616ef9655843330e3c563b', name: "logo" }), h("slot", { key: '7728db09b46999e708c46d10d5de56c65ab9a9fa', name: "brand-name" })), h("div", { key: '0376fefe7921b061f3f2fdc972aa381ed7d124a2', class: "xpl-main-nav__main_section" }, h("slot", { key: '12a61a53d6c93695d38c70d9a953fe4e37438178', name: "navigation" })), h("footer", { key: '8cd0e32231e155324c78878dcaad955ab7b3e4fb', class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { key: 'cdaf0bec22d3d8229441e7e036c3fcbcb244c32f', name: "footer" })))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ukZKsqqq.js';
|
|
2
2
|
|
|
3
|
+
let modalInstanceCount = 0;
|
|
3
4
|
const Modal = class {
|
|
4
5
|
constructor(hostRef) {
|
|
5
6
|
registerInstance(this, hostRef);
|
|
6
7
|
this.modalClosed = createEvent(this, "modalClosed", 7);
|
|
7
8
|
this.dialogElement = null;
|
|
9
|
+
this.titleId = `xpl-modal-title-${(modalInstanceCount += 1)}`;
|
|
8
10
|
this.isOpen = false;
|
|
9
11
|
this.size = 'medium';
|
|
10
12
|
this.variant = 'default';
|
|
@@ -27,34 +29,47 @@ const Modal = class {
|
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
|
-
|
|
31
|
-
this.
|
|
32
|
-
if (!this.dialogElement) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
this.updateModalState();
|
|
36
|
-
this.dialogElement.addEventListener('cancel', this.handleDialogClose);
|
|
37
|
-
this.dialogElement.addEventListener('click', this.handleNativeBackdropClick);
|
|
32
|
+
connectedCallback() {
|
|
33
|
+
this.bindDialog();
|
|
38
34
|
}
|
|
39
35
|
disconnectedCallback() {
|
|
40
36
|
this.clearCloseTimer();
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
this.unbindDialog();
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
this.bindDialog();
|
|
45
41
|
}
|
|
46
42
|
updateModalState() {
|
|
43
|
+
this.clearCloseTimer();
|
|
47
44
|
if (this.isOpen) {
|
|
48
|
-
this.
|
|
49
|
-
|
|
45
|
+
this.openDialog();
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.scheduleClose();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
bindDialog() {
|
|
52
|
+
const dialog = this.element.querySelector('dialog');
|
|
53
|
+
if (!dialog) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
this.dialogElement = dialog;
|
|
57
|
+
dialog.removeEventListener('cancel', this.handleDialogClose);
|
|
58
|
+
dialog.removeEventListener('click', this.handleNativeBackdropClick);
|
|
59
|
+
dialog.addEventListener('cancel', this.handleDialogClose);
|
|
60
|
+
dialog.addEventListener('click', this.handleNativeBackdropClick);
|
|
61
|
+
this.updateModalState();
|
|
62
|
+
}
|
|
63
|
+
unbindDialog() {
|
|
64
|
+
const dialog = this.dialogElement;
|
|
65
|
+
if (!dialog) {
|
|
66
|
+
return;
|
|
50
67
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
this.closeTimerId = setTimeout(() => {
|
|
54
|
-
this.closeTimerId = undefined;
|
|
55
|
-
this.dialogElement?.close();
|
|
56
|
-
}, 250);
|
|
68
|
+
if (dialog.open && typeof dialog.close === 'function') {
|
|
69
|
+
dialog.close();
|
|
57
70
|
}
|
|
71
|
+
dialog.removeEventListener('cancel', this.handleDialogClose);
|
|
72
|
+
dialog.removeEventListener('click', this.handleNativeBackdropClick);
|
|
58
73
|
}
|
|
59
74
|
clearCloseTimer() {
|
|
60
75
|
if (this.closeTimerId !== undefined) {
|
|
@@ -62,8 +77,22 @@ const Modal = class {
|
|
|
62
77
|
this.closeTimerId = undefined;
|
|
63
78
|
}
|
|
64
79
|
}
|
|
80
|
+
openDialog() {
|
|
81
|
+
if (this.dialogElement && !this.dialogElement.open) {
|
|
82
|
+
this.dialogElement.showModal?.();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
scheduleClose() {
|
|
86
|
+
if (!this.dialogElement || typeof this.dialogElement.close !== 'function') {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this.closeTimerId = setTimeout(() => {
|
|
90
|
+
this.closeTimerId = undefined;
|
|
91
|
+
this.dialogElement?.close();
|
|
92
|
+
}, 250);
|
|
93
|
+
}
|
|
65
94
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '3194d5377b7438543a3f6e6ab41fd7c307674a28', class: "xpl-modal" }, this.isOpen && h("xpl-backdrop", { key: 'dfc30ff7879364920669a1d1ebfdaea39951b966' }), h("dialog", { key: 'bfb33a8d97d17981f582768b0e34b0d167cf60cb', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}`, "aria-labelledby": this.titleId }, h("div", { key: '0b71adc30bde109aa831a28200c918a458a7da52', class: "xpl-modal__header" }, h("div", { key: '657c5aad60fa85e4285e299dcbe24209742277e6', class: "xpl-modal__title" }, h("xpl-button", { key: '2301014d0f4bd129dbbfc7b1eb242db98622f866', type: "button", class: "xpl-modal__close-button", "icon-only": true, variant: "tertiary", "aria-label": "Close modal", onClick: this.handleDialogClose }, h("xpl-icon", { key: 'a978ff514926ca4b319c4920b2057baa50a1fb24', icon: "xmark" })), this.variant === 'warning' && (h("xpl-icon", { key: '2a1cf704d1aa75170d53ef3887a4d1e7874762fa', size: 20, icon: "triangle-warning", class: "xpl-modal__alert-icon" })), h("span", { key: 'd2bcd4c5b4596e80875eb9000ee75d592e41ce74', class: "xpl-modal__title-text", id: this.titleId }, h("slot", { key: 'cf009856b6e86bab36bc16a249ad9b3ebc09fd1c', name: "title" }))), h("div", { key: '29258401d4ec72c81a5a7e28e2365efd2227445e', class: "xpl-modal__subtitle" }, h("slot", { key: '9f749c62f55edabcec4dc5d8677ad9b45e64be50', name: "subtitle" }))), h("div", { key: 'f12dd8ee02ef7f9aeeedd0d7c7b5ffe52c24a336', class: "xpl-modal__body" }, h("slot", { key: '0a9e2d67a7842075560e1cf846e4b3d18bfe1bee', name: "body" })), h("div", { key: '720e9bf0cb5746b31b7dee9cb1ad4226eb13bf11', class: "xpl-modal__footer" }, h("slot", { key: '819ba75ee04742fb872c0345b4cc1732891856ee', name: "primary" }), h("slot", { key: 'b74d4339586fd2d863791d6cb6cd3d593a9c9785', name: "secondary" }), h("slot", { key: 'a4d437d7e9142bf91307edae5ed5dbd89e8921f0', name: "tertiary" })))));
|
|
67
96
|
}
|
|
68
97
|
get element() { return getElement(this); }
|
|
69
98
|
static get watchers() { return {
|
|
@@ -72,11 +72,11 @@ const NavHeaderMenu = class {
|
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
74
|
const hasProfile = !!this.username || !!this.email;
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: '36df50ceb427be007b8da6c4e6154ab0267e7e6b', class: {
|
|
76
76
|
'xpl-nav-header-menu': true,
|
|
77
77
|
'xpl-nav-header-menu--has-right-aside-mobile': this.rightAsideMobilePresent,
|
|
78
78
|
dark: true,
|
|
79
|
-
} }, hasProfile && (h("div", { key: '
|
|
79
|
+
} }, hasProfile && (h("div", { key: '5906352d9c6580f96cb3e1ba3ae841b04c136a27', class: "xpl-nav-header-menu__profile" }, h("div", { key: '38ad80fe95f2ea56e12f3dfeea32af734f31aafd', class: "xpl-nav-header-menu__info" }, this.username && (h("div", { key: 'a58f2ab162da92c5afbfaf01234748a6478a61db', class: "xpl-nav-header-menu__username", title: this.username }, this.username)), this.email && (h("div", { key: 'd91f764a3b4278937d1bac6ed670f1e2abf899b0', class: "xpl-nav-header-menu__email", title: this.email }, this.email))))), h("div", { key: '78fade2c6cc2ec049b40ca3093f77855b46ee7db', class: "xpl-nav-header-menu__right-aside-mobile" }, h("slot", { key: '9715e86a06f642f1b0455e43f12fc83c1fdc20f8', name: "right-aside-mobile" })), h("div", { key: 'c1893f276e93629ff8dd96f807579b2b991ea884', class: "xpl-nav-header-menu__slot", role: "list" }, h("slot", { key: '23218885442af87a956216af71b598c2eb478eff' }))));
|
|
80
80
|
}
|
|
81
81
|
get el() { return getElement(this); }
|
|
82
82
|
};
|