@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
|
@@ -6,11 +6,11 @@ export class XplPanel {
|
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
const hasAccent = this.accent !== 'none';
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '7e2a96b285cc06379f8f7f98ae44affcfac0c8dc', class: {
|
|
10
10
|
'xpl-panel': true,
|
|
11
11
|
[`xpl-panel--accent-${this.accent}`]: hasAccent,
|
|
12
12
|
[`xpl-panel--padding-${this.padding}`]: true,
|
|
13
|
-
} }, hasAccent && h("div", { key: '
|
|
13
|
+
} }, hasAccent && h("div", { key: '3a6740a44c18c9973c86a314d26bd565971c19f2', "aria-hidden": "true", class: "xpl-panel__accent" }), h("div", { key: 'd4951bd49e7600a58fa0ecb31fddf4df1dfe7956', class: "xpl-panel__content" }, h("slot", { key: '2374d130b274a64e875b0c4b1ce03b34d96554b4' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "xpl-panel"; }
|
|
16
16
|
static get properties() {
|
|
@@ -234,16 +234,16 @@ export class Popover {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
render() {
|
|
237
|
-
return (h(Host, { key: '
|
|
237
|
+
return (h(Host, { key: 'b747fcdda5987a1d0506486d325cdf9a57cab6a8' }, h("div", { key: '547d595121db1b713c204eb5ac173828fff4b35b', class: {
|
|
238
238
|
'xpl-popover': true,
|
|
239
239
|
[`xpl-popover--${this.actualPosition}`]: true,
|
|
240
240
|
'xpl-popover--is-open': this.isOpenState,
|
|
241
|
-
} }, h("span", { key: '
|
|
241
|
+
} }, h("span", { key: 'd12773148d327475c8ff51fbb5a717c95231cabf', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
|
|
242
242
|
this.triggerRef = el;
|
|
243
|
-
} }, h("slot", { key: '
|
|
243
|
+
} }, h("slot", { key: '6322dc3b9e7292eeb41aaf5c662aa99273868c7d', name: "trigger" })), this.display === 'arrow' && (h("div", { key: '2a3fe87cc9a82c8e914f6917a999bdd4433b9042', class: "xpl-popover__arrow" }, h("svg", { key: 'a191461ac07cf6693d5461aa4d343214e62ed6ef', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '61003e404b4e031057e0d2ef39a31bc9b7fba6df', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), h("path", { key: '15de3ff2ec9657fd3e47410de79d2362076c797b', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), h("div", { key: 'ec4ae8672673fa63b918ab6222a6fbf7099758ff', class: {
|
|
244
244
|
'xpl-popover__content': true,
|
|
245
245
|
[`xpl-popover__content--display-${this.display}`]: true,
|
|
246
|
-
}, ref: (el) => (this.contentRef = el) }, h("slot", { key: '
|
|
246
|
+
}, ref: (el) => (this.contentRef = el) }, h("slot", { key: '50c82f8c1833c91f6e2aabdfe3773725c9d9296d' })))));
|
|
247
247
|
}
|
|
248
248
|
static get is() { return "xpl-popover"; }
|
|
249
249
|
static get properties() {
|
|
@@ -25,12 +25,12 @@ export class ProgressBar {
|
|
|
25
25
|
return this.variant === 'indeterminate';
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '7c374a5f2f89aed6b0c3a0daa4cc843efea8d262', class: {
|
|
29
29
|
'xpl-progress-bar': true,
|
|
30
30
|
[`xpl-progress-bar--${this.size}`]: true,
|
|
31
31
|
[`xpl-progress-bar--${this.variant}`]: true,
|
|
32
32
|
'xpl-progress-bar--complete': this.isComplete,
|
|
33
|
-
} }, h("div", { key: '
|
|
33
|
+
} }, h("div", { key: 'f1be4a82fbb87ffac27bb2b8d0f479ad36aae340', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (h("div", { key: 'd415f09b3d0d237bc348b33470162d2b44048856', class: "xpl-progress-bar__header" }, this.label && h("div", { key: '48bc06b81c4445d811e6cd5f3ac086192cbcb392', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (h("div", { key: 'd31ccfc3ed1f956fdc89e01ca262b606219bb78e', class: "xpl-progress-bar__icon" }, this.isError ? (h("xpl-icon", { icon: "circle-xmark-1" })) : (h("xpl-icon", { icon: "circle-check-1" })))))), h("div", { key: '5c97c6193a2ebb0626052953f1a11c9afc258da8', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, h("div", { class: "xpl-progress-bar__indeterminate" }))) : (h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (h("div", { key: '8e78ed094ab41425272b1818cc004a9094c3632d', class: "xpl-progress-bar__helper" }, this.helperText)))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "xpl-progress-bar"; }
|
|
36
36
|
static get properties() {
|
|
@@ -55,7 +55,7 @@ export class ProgressIndicator {
|
|
|
55
55
|
? `Progress: all ${totalSteps} ${totalSteps === 1 ? 'step' : 'steps'} complete`
|
|
56
56
|
: `Progress: step ${currentStepNumber} of ${totalSteps}`
|
|
57
57
|
: 'Progress';
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '2fa8128b81b665f0733e3c905cb99eaa1917e719', class: hostClasses, role: "group", "aria-label": ariaLabel }, h("div", { key: '279079d456f72748c77ac9f06281c838307ba092', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "xpl-progress-indicator"; }
|
|
61
61
|
static get properties() {
|
|
@@ -20,14 +20,14 @@ export class Radio {
|
|
|
20
20
|
return Boolean(this.checked);
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'e3626967beb86dee46de974dd2a3c8993314d2d0', class: {
|
|
24
24
|
'xpl-checkbox-radio-container': true,
|
|
25
25
|
styled: !!this.styled,
|
|
26
26
|
disabled: !!this.disabled,
|
|
27
|
-
} }, h("input", { key: '
|
|
27
|
+
} }, h("input", { key: 'cdc8d7968dd78031f33b4f72024698f7afec27cf', class: "xpl-radio", type: "radio", checked: this.isChecked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, onChange: this.onChange, value: this.value }), h("label", { key: '5bb2243b7fe42b219d3fa3696c92321b116f8c72', class: {
|
|
28
28
|
'xpl-label': true,
|
|
29
29
|
'xpl-label--disabled': !!this.disabled,
|
|
30
|
-
}, htmlFor: this.id }, h("slot", { key: '
|
|
30
|
+
}, htmlFor: this.id }, h("slot", { key: '85f1bf2c73111b8f5c0b0ae26343f590c8a50faf' }), this.description && (h("small", { key: '6452b050fe0df584373a45d105434fe31a8a82ba', class: {
|
|
31
31
|
'xpl-description': true,
|
|
32
32
|
'xpl-description--disabled': !!this.disabled,
|
|
33
33
|
} }, this.description)))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SecondaryNav {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '6fd3db4309ecb98fb1739fd69d964297a77a46eb', class: "xpl-secondary-nav" }, h("nav", { key: 'c08a1df306cee05760b6761409ebfb4ba87c2e4f', "aria-label": "Secondary Nav" }, h("slot", { key: '9d5d0657bdd581bce000f1ace49be8c1d018fe47' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "xpl-secondary-nav"; }
|
|
7
7
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { v4 as uuid } from "uuid";
|
|
2
|
+
export const GROUPED_SELECT_CHOICES = (subtitle) => [
|
|
3
|
+
{
|
|
4
|
+
groupName: 'Group 1',
|
|
5
|
+
options: [
|
|
6
|
+
{ label: 'Choice 1', subtitle },
|
|
7
|
+
{ label: 'Choice 2', subtitle },
|
|
8
|
+
{ label: 'Choice 3', subtitle },
|
|
9
|
+
],
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
groupName: 'Group 2',
|
|
13
|
+
options: [{ label: 'Choice 4' }, { label: 'Choice 5' }, { label: 'Choice 6' }],
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
export const FLAT_SELECT_CHOICES = [
|
|
17
|
+
{ label: 'Choice 1', value: 'choice-1' },
|
|
18
|
+
{ label: 'Choice 2', value: 'choice-2' },
|
|
19
|
+
{ label: 'Choice 3', value: 'choice-3' },
|
|
20
|
+
{ label: 'Choice 4', value: 'choice-4' },
|
|
21
|
+
{ label: 'Choice 5', value: 'choice-5' },
|
|
22
|
+
{ label: 'Choice 6', value: 'choice-6' },
|
|
23
|
+
];
|
|
24
|
+
export function stripEmptySelectSentinels(args) {
|
|
25
|
+
return Object.fromEntries(Object.entries(args).filter(([key, value]) => !((key === 'error' || key === 'selectIcon') && value === '')));
|
|
26
|
+
}
|
|
27
|
+
export function buildSelectAttrs(args) {
|
|
28
|
+
let attrs = '';
|
|
29
|
+
if (args.label)
|
|
30
|
+
attrs += ` label="${args.label}"`;
|
|
31
|
+
if (args.description)
|
|
32
|
+
attrs += ` description="${args.description}"`;
|
|
33
|
+
if (args.mode !== 'single')
|
|
34
|
+
attrs += ` mode="${args.mode}"`;
|
|
35
|
+
if (args.disabled)
|
|
36
|
+
attrs += ` disabled`;
|
|
37
|
+
if (args.error)
|
|
38
|
+
attrs += ` error="${args.error}"`;
|
|
39
|
+
if (args.mode === 'multi' && !args.truncate)
|
|
40
|
+
attrs += ` truncate="false"`;
|
|
41
|
+
if (args.customDisplayValue)
|
|
42
|
+
attrs += ` custom-display-value`;
|
|
43
|
+
if (args.selectIcon)
|
|
44
|
+
attrs += ` select-icon="${args.selectIcon}"`;
|
|
45
|
+
if (args.placeholder)
|
|
46
|
+
attrs += ` placeholder="${args.placeholder}"`;
|
|
47
|
+
return attrs;
|
|
48
|
+
}
|
|
49
|
+
export function buildSelectPropertyScript(id, choices, selectedValues, preventDefault) {
|
|
50
|
+
const statements = [`component.choices = ${JSON.stringify(choices, null, 2)};`];
|
|
51
|
+
if (selectedValues !== undefined &&
|
|
52
|
+
selectedValues !== '' &&
|
|
53
|
+
!(Array.isArray(selectedValues) && selectedValues.length === 0)) {
|
|
54
|
+
statements.push(`component.selectedValues = ${JSON.stringify(selectedValues)};`);
|
|
55
|
+
}
|
|
56
|
+
if (preventDefault) {
|
|
57
|
+
statements.push(`component.addEventListener('triggerDropdown', function(event) {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
});`);
|
|
60
|
+
}
|
|
61
|
+
return `(function() {
|
|
62
|
+
const component = document.getElementById("${id}");
|
|
63
|
+
${statements.join('\n ')}
|
|
64
|
+
})();`;
|
|
65
|
+
}
|
|
66
|
+
export function renderSelectStory(args) {
|
|
67
|
+
const id = uuid();
|
|
68
|
+
const attrs = `${buildSelectAttrs(args)} id="${id}"`;
|
|
69
|
+
const slotContent = args.customDisplayValue
|
|
70
|
+
? `<div slot="custom-display-value">${args.customDisplayValueContent || ''}</div>`
|
|
71
|
+
: '';
|
|
72
|
+
return `
|
|
73
|
+
<div style="width:75vw">
|
|
74
|
+
<div style="position: relative; min-width: 200px; width: 100%">
|
|
75
|
+
<xpl-select${attrs}>${slotContent}</xpl-select>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<script>
|
|
79
|
+
${buildSelectPropertyScript(id, args.choices, args.selectedValues, args.preventDefaultTriggerDropdown)}
|
|
80
|
+
</script>
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
@@ -270,21 +270,21 @@ export class Select {
|
|
|
270
270
|
this.truncate &&
|
|
271
271
|
!this.customDisplayValue;
|
|
272
272
|
const truncatedText = `+ ${Math.abs(this.choicesState.filter((a) => a.isSelected).length - this.visibleChoices)} more`;
|
|
273
|
-
return (h(Host, { key: '
|
|
273
|
+
return (h(Host, { key: 'b080c68630c2c0c6bfeffb6ce27c9b9363898ecc', class: {
|
|
274
274
|
'xpl-select': true,
|
|
275
275
|
'xpl-select--disabled': !!this.disabled,
|
|
276
276
|
'xpl-select--no-truncate': !this.truncate,
|
|
277
277
|
[this.classNames ?? '']: !!this.classNames,
|
|
278
278
|
}, onKeyDown: this.handleTabKeyDown, ref: (el) => {
|
|
279
279
|
this.container = el;
|
|
280
|
-
} }, this.renderLabel(), h("div", { key: '
|
|
280
|
+
} }, this.renderLabel(), h("div", { key: 'c2913a9da7988d4e24fd788718637bcebd93fcb6', class: {
|
|
281
281
|
'xpl-input': true,
|
|
282
282
|
'xpl-input--disabled': !!this.disabled,
|
|
283
283
|
'xpl-input--error': this.error !== undefined,
|
|
284
|
-
} }, h("div", { key: '
|
|
284
|
+
} }, h("div", { key: '58ea7fdb31c591b2726258d786ca5550219bcd89', class: "xpl-input-wrapper" }, h("button", { key: 'c4c2b2f0a90cd4ef407b8797fd65b86062387678', class: "xpl-select__trigger", disabled: this.disabled, id: this.id, onKeyDown: this.handleTabKeyDown, onClick: (e) => {
|
|
285
285
|
e.preventDefault();
|
|
286
286
|
this.handleDropdownTrigger();
|
|
287
|
-
}, type: "button" }, h("div", { key: '
|
|
287
|
+
}, type: "button" }, h("div", { key: '7ddc58167d4363991c92d90ee6e0881f04bc725f', class: {
|
|
288
288
|
'xpl-select-value': true,
|
|
289
289
|
'xpl-select-value--active': this.mode === 'multi' && this.value.length > 0,
|
|
290
290
|
'has-value': this.value.length > 0,
|
|
@@ -304,7 +304,7 @@ export class Select {
|
|
|
304
304
|
return this.renderSelectedTags();
|
|
305
305
|
}
|
|
306
306
|
return this.placeholder;
|
|
307
|
-
})(), isTextTruncated && truncatedText), h("xpl-icon", { key: '
|
|
307
|
+
})(), isTextTruncated && truncatedText), h("xpl-icon", { key: '8640f1e46263c802edf0e9b18f53d2eb6b2a78a3', class: "xpl-select__chevron-down", icon: this.selectIcon ?? 'chevron-down' }))), !this.disabled && (h("xpl-dropdown", { key: '6fb8d97e175894715a6dbc6ed17bc5b15829ed13', ref: (el) => {
|
|
308
308
|
this.dropdown = el ?? null;
|
|
309
309
|
}, isOpen: this.dropdownOpenState, options: this.choicesState, selectedValues: this.selectedValues, mode: this.mode, triggerId: this.id, update: (_e, { component }) => {
|
|
310
310
|
const { options } = component;
|
|
@@ -313,7 +313,7 @@ export class Select {
|
|
|
313
313
|
}
|
|
314
314
|
}, onIsOpenChange: (e) => {
|
|
315
315
|
this.dropdownOpenState = e.detail;
|
|
316
|
-
}, onWheel: this.handleDropdownScroll, anchorToTrigger: true, flipFallbackPlacements: this.dropdownFlipFallbackPlacements, placement: this.dropdownPlacement })), this.renderError()), h("input", { key: '
|
|
316
|
+
}, onWheel: this.handleDropdownScroll, anchorToTrigger: true, flipFallbackPlacements: this.dropdownFlipFallbackPlacements, placement: this.dropdownPlacement })), this.renderError()), h("input", { key: '734ef739b61de3320ce777994853cb90ab8271d2', type: "hidden", name: this.name, value: this.value })));
|
|
317
317
|
}
|
|
318
318
|
static get is() { return "xpl-select"; }
|
|
319
319
|
static get properties() {
|
package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js
CHANGED
|
@@ -82,8 +82,8 @@ export class SideNavHeaderItem {
|
|
|
82
82
|
const showTrailing = this.hasTrailingSlot || showAutoChevron;
|
|
83
83
|
const leading = showLeading ? (h("span", { class: "xpl-side-nav-header-item__leading" }, h("slot", { name: "leading" }, this.icon ? h("xpl-icon", { icon: this.icon, size: 16 }) : null))) : null;
|
|
84
84
|
const trailing = showTrailing ? (h("span", { class: "xpl-side-nav-header-item__trailing", "aria-hidden": showAutoChevron ? 'true' : undefined }, h("slot", { name: "trailing" }, showAutoChevron ? (h("xpl-icon", { icon: "chevron-expand-y", size: 16 })) : null))) : null;
|
|
85
|
-
const content = (h("span", { key: '
|
|
86
|
-
return (h(Host, { key: '
|
|
85
|
+
const content = (h("span", { key: 'ff3b2d318760011f01eb6fc3f2a7aefb8e4ff216', class: "xpl-side-nav-header-item__content" }, leading, h("span", { key: '8675686f88cba081281fa76ffcbd9b1b9f121cac', class: "xpl-side-nav-header-item__label" }, this.label ?? ''), trailing));
|
|
86
|
+
return (h(Host, { key: '1a35eb9ef7530a17b3adc06ebe8b06dc1adc6fa9', class: {
|
|
87
87
|
'xpl-side-nav-header-item': true,
|
|
88
88
|
'xpl-side-nav-header-item--product-label': !isSubAccount,
|
|
89
89
|
'xpl-side-nav-header-item--sub-account': isSubAccount,
|
|
@@ -101,14 +101,14 @@ export class SideNavItem {
|
|
|
101
101
|
expanded: this.expanded,
|
|
102
102
|
selected: this.selected,
|
|
103
103
|
};
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: '33de33212fc2c0fe5ed3ae6cd8aba38178052a03', class: {
|
|
105
105
|
'xpl-side-nav-item': true,
|
|
106
106
|
'xpl-side-nav-item--link-disabled': this.link && this.disabled,
|
|
107
107
|
} }, this.link ? (h("slot", null)) : (h("button", { type: "button", class: buttonClass, "aria-current": this.selected ? 'page' : undefined, "aria-expanded": this.hasChildren ? (this.expanded ? 'true' : 'false') : undefined, onClick: this.handleClick, disabled: this.disabled }, h("span", { class: "xpl-side-nav-item__leading" }, h("slot", { name: "leading" }, this.icon ? (h("xpl-icon", { icon: this.icon, size: 16 })) : null)), h("span", { class: "xpl-side-nav-item__label" }, this.label ?? ''), (this.hasTrailingSlot || this.hasChildren) && (h("span", { class: {
|
|
108
108
|
'xpl-side-nav-item__trailing': true,
|
|
109
109
|
'xpl-side-nav-item__trailing--chevron': showAutoChevron,
|
|
110
110
|
expanded: showAutoChevron && this.expanded,
|
|
111
|
-
}, "aria-hidden": showAutoChevron ? 'true' : undefined }, h("slot", { name: "trailing" }, showAutoChevron ? (h("xpl-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: 16 })) : null))))), this.hasChildren && !this.link && (h("div", { key: '
|
|
111
|
+
}, "aria-hidden": showAutoChevron ? 'true' : undefined }, h("slot", { name: "trailing" }, showAutoChevron ? (h("xpl-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: 16 })) : null))))), this.hasChildren && !this.link && (h("div", { key: 'd9e6ea08b992177a943eb43e64702deee74a95d8', class: `xpl-side-nav-item__children ${this.expanded ? 'expanded' : ''}`, inert: !this.expanded ? true : undefined }, h("div", { key: '7a5709e3c20d569fbc7ab1425280096dc21cb40f', class: "xpl-side-nav-item__children-inner" }, h("slot", { key: '883d0336ad81eb78b52dab740440191e57f92618' }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "xpl-side-nav-item"; }
|
|
114
114
|
static get properties() {
|
package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js
CHANGED
|
@@ -82,17 +82,17 @@ export class SideNavSection {
|
|
|
82
82
|
const hasHeading = !!this.heading?.trim();
|
|
83
83
|
const childrenId = this.childrenId ?? ensureSideNavSectionChildrenId(this.el, this.childrenId);
|
|
84
84
|
const titleRow = [
|
|
85
|
-
h("span", { key: '
|
|
86
|
-
h("span", { key: '
|
|
85
|
+
h("span", { key: 'c3a19938fa87b21552b5fdff800baf2ee97c186c', class: "xpl-side-nav-section__title" }, this.heading ?? ''),
|
|
86
|
+
h("span", { key: '9303238b226f336cbf0527ef91c2c5d8bce7771c', class: "xpl-side-nav-section__badge", hidden: !this.hasBadgeSlot }, h("slot", { key: '40921f618390e462b0ac69adc0206acd82b884ca', name: "badge" })),
|
|
87
87
|
this.collapsible ? (h("span", { class: "xpl-side-nav-section__chevron", "aria-hidden": "true" }, h("xpl-icon", { icon: this.expanded ? 'chevron-down' : 'chevron-right', size: 16 }))) : null,
|
|
88
88
|
];
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: 'fae9c5e2d179a174aae5114a21a442fa787269ad', class: {
|
|
90
90
|
'xpl-side-nav-section': true,
|
|
91
91
|
'xpl-side-nav-section--static': !this.collapsible,
|
|
92
|
-
} }, this.collapsible ? (h("button", { type: "button", class: "xpl-side-nav-section__header", "aria-expanded": this.expanded ? 'true' : 'false', "aria-controls": childrenId, "aria-label": hasHeading || this.hasNamedBadgeSlot ? undefined : 'Toggle section', onClick: this.handleHeaderClick }, titleRow)) : (h("div", { class: "xpl-side-nav-section__header" }, titleRow)), h("div", { key: '
|
|
92
|
+
} }, this.collapsible ? (h("button", { type: "button", class: "xpl-side-nav-section__header", "aria-expanded": this.expanded ? 'true' : 'false', "aria-controls": childrenId, "aria-label": hasHeading || this.hasNamedBadgeSlot ? undefined : 'Toggle section', onClick: this.handleHeaderClick }, titleRow)) : (h("div", { class: "xpl-side-nav-section__header" }, titleRow)), h("div", { key: 'c33a5478f2c226b915fddf006802312eb7de29e9', id: childrenId, class: {
|
|
93
93
|
'xpl-side-nav-section__children': true,
|
|
94
94
|
expanded: showChildren,
|
|
95
|
-
}, inert: !showChildren ? true : undefined }, h("div", { key: '
|
|
95
|
+
}, inert: !showChildren ? true : undefined }, h("div", { key: 'ed7de4040c1e5677ad3b74eb65fc4f6357bab3b6', class: "xpl-side-nav-section__children-inner" }, h("slot", { key: '3f8434e92bb7fcdd7c8a825481a12ef24ba1da28' })))));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "xpl-side-nav-section"; }
|
|
98
98
|
static get properties() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Host, h, } from "@stencil/core";
|
|
1
|
+
import { Host, h, forceUpdate, } from "@stencil/core";
|
|
2
2
|
import { isBrowser } from "../../utils/lifecycle";
|
|
3
3
|
import { SIDE_NAV_CLOSE_ANIMATION_MS, SIDE_NAV_MOBILE_MQ } from "./side-nav-constants";
|
|
4
4
|
export class SideNav {
|
|
@@ -246,16 +246,20 @@ export class SideNav {
|
|
|
246
246
|
}
|
|
247
247
|
return node.parentElement === this.el || node.closest('.xpl-side-nav__header') !== null;
|
|
248
248
|
};
|
|
249
|
-
const
|
|
249
|
+
const headerNodes = Array.from(this.el.querySelectorAll('[slot="nav-header"]')).filter(projectsToHeader);
|
|
250
|
+
const next = headerNodes.length > 0;
|
|
250
251
|
if (next !== this.hasHeaderSlot) {
|
|
251
252
|
this.hasHeaderSlot = next;
|
|
253
|
+
return;
|
|
252
254
|
}
|
|
255
|
+
if (next && headerNodes.some((node) => node.parentElement === this.el))
|
|
256
|
+
forceUpdate(this);
|
|
253
257
|
}
|
|
254
258
|
render() {
|
|
255
|
-
return (h(Host, { key: '
|
|
259
|
+
return (h(Host, { key: '9d8ca908a77dd47e5789708ebb87e0e76ac5a22e', class: {
|
|
256
260
|
'xpl-side-nav': true,
|
|
257
261
|
'xpl-side-nav--open': this.open,
|
|
258
|
-
} }, h("xpl-button", { key: '
|
|
262
|
+
} }, h("xpl-button", { key: 'eab3df496e7ec249b78f76e9250361b1dccc3cd6', class: "xpl-side-nav__toggle", variant: "tertiary", iconOnly: true, icon: this.open ? 'sidebar-left-hide' : 'sidebar-left-show', "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Close navigation menu' : 'Open navigation menu', onClick: this.onToggleClick }), h("div", { key: '4f46792c09ff5c98ae87f27bfb3050c74b847c3f', class: "xpl-side-nav__wrapper" }, h("nav", { key: '55a34c0ba7498f7ad531b519d5d9e6f6a225cfc9', class: "xpl-side-nav__content", "aria-label": this.label }, h("div", { key: '8ff330aef09d3ae1624f8752efbff3a2720e55c5', class: "xpl-side-nav__scroll-area" }, this.hasHeaderSlot && (h("div", { key: '19c0235f1b45454cbe8fd9403351cfabebc5f539', class: "xpl-side-nav__header" }, h("slot", { key: '77a3a18b401714a746c8d8f0d2457e9a949068ca', name: "nav-header" }))), h("div", { key: '8a7c00b508d238f0043dc5dfc6c141d7255967bd', class: "xpl-side-nav__section" }, h("slot", { key: 'b4b11bf6937840704cb9d40483e6b19014bd5236', name: "section" }))), h("div", { key: '766bcd4652c5c680975a3c61c4b2fe4759351a4e', class: "xpl-side-nav__footer" }, h("slot", { key: '04acabfdb7f27e8ed6b6569001493f985f344a1e', name: "nav-footer" })))), h("xpl-backdrop", { key: '9e0c074fbb705e7b665672c79ed85e62e28d2e95', class: "xpl-side-nav__backdrop", onClick: this.onBackdropClick })));
|
|
259
263
|
}
|
|
260
264
|
static get is() { return "xpl-side-nav"; }
|
|
261
265
|
static get properties() {
|
|
@@ -5,7 +5,7 @@ export class Skeleton {
|
|
|
5
5
|
this.size = 'custom';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '4c8f4f0e0742c67f965d04aed382259cd120d922', class: {
|
|
9
9
|
'xpl-skeleton': true,
|
|
10
10
|
[`xpl-skeleton--shape-${this.shape}`]: true,
|
|
11
11
|
[`xpl-skeleton--size-${this.size}`]: true,
|
|
@@ -29,7 +29,7 @@ export class Slideout {
|
|
|
29
29
|
this.handleScroll();
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '0031856dad46059b22c544b17d9c3c486fad49ef', class: "xpl-slideout" }, this.backdrop && this.isOpen && (h("xpl-backdrop", { key: '476ebe60d3761a12edce8a70b79c5458a3a49b88', onClick: this.handleClose })), h("aside", { key: 'e093e4f88719d109e1b76e5843fa799adf77023a', class: `slideout slideout--${!this.isOpen && 'closed'}` }, h("header", { key: '861ce3bafb6f104cd088788e86d5dec891d34559', class: "header" }, h("div", { key: 'f4a9a82d62a118acf4847ae32f6699755103cdeb', class: "title" }, h("slot", { key: '142fabb21a5894d0e505b3555b1de49a3457f01a', name: "title" }), h("xpl-button", { key: 'b5424c903db35139aca7070a223c3e8ccad0286d', class: "close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleClose }, h("xpl-icon", { key: 'a7597b061ba78ec8877f4ca119ddfe4fb6f07057', icon: "xmark" }))), h("div", { key: 'fbd6496bcd1854cbbe584a62a27621cc6c730472', class: "subtitle" }, h("slot", { key: 'a9a059571945b74f064d1b4c6a672a7964ff20d7', name: "subtitle" })), h("div", { key: '575d405c99e6a0ded114d274832d7c9a119f8acd', class: "search" }, h("slot", { key: '6db25fde2a6decdfe2f280aae9f784b1e992d070', name: "search" }))), h("xpl-divider", { key: 'dd382afb3181fbad00b1efacd438842c23249978', tier: 0, class: "divider top" }), h("article", { key: 'a8832b326372ede5872d2004308f8dff30955e1a', class: "content", tabIndex: 0 }, h("slot", { key: 'e46c7df8ebc6caecbc82117dd7b5097377dcf163', name: "content" })), this.showFooter && (h("footer", { key: '41e237ffa63f9dfc50ca1792848f4087375edecc' }, h("xpl-divider", { key: '888ece8b783152856696cf792c1db7abedd393fa', tier: 0, class: "divider bottom" }), h("div", { key: '4ee6dcf7cb794ca32c3e0095b9d3ffdda2578870', class: "footer" }, h("slot", { key: '286ecc097c88e7b6655fb27f707cb6163e49374b', name: "tertiary" }), h("slot", { key: '9154a9de3de154cb8f228a00875d81b4c8d1899a', name: "secondary" }), h("slot", { key: 'c510b271b930b8419b8ed26e4a9ce444453f9330', name: "primary" })))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "xpl-slideout"; }
|
|
35
35
|
static get properties() {
|
|
@@ -9,10 +9,10 @@ export class TabPanel {
|
|
|
9
9
|
const t = this.target ?? '';
|
|
10
10
|
const panelId = tabPanelDomId(groupId, t);
|
|
11
11
|
const labelledBy = tabTriggerId(groupId, t);
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'b92d723fe68be63d6438fab8ae8f93a06122c29a', "aria-labelledby": labelledBy, class: {
|
|
13
13
|
'xpl-tab-panel': true,
|
|
14
14
|
'xpl-tab-panel--selected': this.selected,
|
|
15
|
-
}, id: panelId, role: "tabpanel" }, h("slot", { key: '
|
|
15
|
+
}, id: panelId, role: "tabpanel" }, h("slot", { key: 'e18aeb92b7082c0c2e809396570b43ac41c34f87' })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "xpl-tab-panel"; }
|
|
18
18
|
static get properties() {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XplTableBody {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: '5a82de617cad4d37dace81ad6a636db1e3a944df', class: "xpl-table-body", role: "rowgroup" }, h("slot", { key: 'd141e2e041789142eb69c6b3453b25523e4ecf59' })));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "xpl-table-body"; }
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XplTableFooter {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: '7c0c20a91c48433b21a8a83094d614de532b317b', class: "xpl-table-footer", role: "rowgroup" }, h("slot", { key: 'aebc40fc1edc9ced7b2420303d3a38897c24939f' })));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "xpl-table-footer"; }
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XplTableFooterCell {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.align = 'left';
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return (h(Host, { key: '331e85728bbd31aa7cde4fe169874879518b92bd', class: {
|
|
8
|
+
'xpl-table-footer-cell': true,
|
|
9
|
+
[`xpl-table-footer-cell--align-${this.align}`]: true,
|
|
10
|
+
}, role: "gridcell" }, h("slot", { key: '29f074c9c81b9cf38bca0ef3eb92a54a408b2436' })));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "xpl-table-footer-cell"; }
|
|
13
|
+
static get properties() {
|
|
14
|
+
return {
|
|
15
|
+
"align": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"mutable": false,
|
|
18
|
+
"complexType": {
|
|
19
|
+
"original": "'center' | 'left' | 'right'",
|
|
20
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
21
|
+
"references": {}
|
|
22
|
+
},
|
|
23
|
+
"required": false,
|
|
24
|
+
"optional": false,
|
|
25
|
+
"docs": {
|
|
26
|
+
"tags": [],
|
|
27
|
+
"text": "Horizontal alignment of footer cell content."
|
|
28
|
+
},
|
|
29
|
+
"getter": false,
|
|
30
|
+
"setter": false,
|
|
31
|
+
"reflect": false,
|
|
32
|
+
"attribute": "align",
|
|
33
|
+
"defaultValue": "'left'"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XplTableRow {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.disabled = false;
|
|
5
|
+
this.selected = false;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { key: '506e56b764d82707482e58a0715fd342219ef7d9', class: {
|
|
9
|
+
'xpl-table-row': true,
|
|
10
|
+
'xpl-table-row--disabled': this.disabled,
|
|
11
|
+
'xpl-table-row--selected': this.selected,
|
|
12
|
+
}, role: "row" }, h("slot", { key: 'db534bcb1e92bb92441476542c0eaa920f6914e8' })));
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "xpl-table-row"; }
|
|
15
|
+
static get properties() {
|
|
16
|
+
return {
|
|
17
|
+
"disabled": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"mutable": false,
|
|
20
|
+
"complexType": {
|
|
21
|
+
"original": "boolean",
|
|
22
|
+
"resolved": "boolean",
|
|
23
|
+
"references": {}
|
|
24
|
+
},
|
|
25
|
+
"required": false,
|
|
26
|
+
"optional": false,
|
|
27
|
+
"docs": {
|
|
28
|
+
"tags": [],
|
|
29
|
+
"text": "Whether the row and its cells are disabled."
|
|
30
|
+
},
|
|
31
|
+
"getter": false,
|
|
32
|
+
"setter": false,
|
|
33
|
+
"reflect": true,
|
|
34
|
+
"attribute": "disabled",
|
|
35
|
+
"defaultValue": "false"
|
|
36
|
+
},
|
|
37
|
+
"rowId": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "string",
|
|
42
|
+
"resolved": "string",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": true,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": "Stable identifier for selection."
|
|
50
|
+
},
|
|
51
|
+
"getter": false,
|
|
52
|
+
"setter": false,
|
|
53
|
+
"reflect": true,
|
|
54
|
+
"attribute": "row-id"
|
|
55
|
+
},
|
|
56
|
+
"selected": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "boolean",
|
|
61
|
+
"resolved": "boolean",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": "Whether the row is visually selected."
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false,
|
|
72
|
+
"reflect": true,
|
|
73
|
+
"attribute": "selected",
|
|
74
|
+
"defaultValue": "false"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -145,24 +145,24 @@ export class Table {
|
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
const rowFooterData = this.footer !== undefined ? Array.from(this.footer) : [];
|
|
148
|
-
return (h(Host, { key: '
|
|
148
|
+
return (h(Host, { key: '1e6bf436320a44e1e22e8590a881bc90c4a091d5' }, h("div", { key: '3d2e5361fbe615a6ae8ebe916ce07e00f82c444c', class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => {
|
|
149
149
|
if (el)
|
|
150
150
|
this.container = el;
|
|
151
|
-
} }, h("table", { key: '
|
|
151
|
+
} }, h("table", { key: '036672b3ba45a90a42f906c155ce3d59e33c8a7a', class: {
|
|
152
152
|
'xpl-table': true,
|
|
153
153
|
'xpl-table--striped': !!this.striped,
|
|
154
154
|
'xpl-table--freeze': !!this.freeze,
|
|
155
155
|
'xpl-table--has-scrolled': this.hasScrolled,
|
|
156
|
-
} }, this.columns && (h("thead", { key: '
|
|
156
|
+
} }, this.columns && (h("thead", { key: 'bf0d5a808624234ba985c1c32064f1dab11bfefa' }, this.columns.map((column, i) => {
|
|
157
157
|
const iconType = getIconType(this.sortTypeArray?.[i]);
|
|
158
158
|
const isColumnSortable = !!(this.isSortable && this.sortableColumns[i]);
|
|
159
159
|
return (h("th", null, h("label", { onClick: (e) => this.handleSort(e, isColumnSortable, i, column.replace(/ /g, '-').toLowerCase()), class: isColumnSortable ? 'cursor-pointer' : '' }, this.multiselect && i === 0 && (h("xpl-checkbox", { checked: this.areAllSelected, indeterminate: !this.areAllSelected &&
|
|
160
160
|
this.selected.some((a) => a), onClick: (e) => e.stopPropagation(), onCheckboxChange: (e) => this.selectAll(e), value: this.selectAllValue, "aria-label": "Select all rows" })), column, isColumnSortable && !!this.sortTypeArray[i] && (h("xpl-icon", { icon: iconType, size: 16 })))));
|
|
161
|
-
}))), h("tbody", { key: '
|
|
161
|
+
}))), h("tbody", { key: '7915dbfbf1a9b68719c4168e09c5f0e3ab7fa35a' }, this.rowData.map((row, rowNum) => (h("tr", { class: this.selected && this.selected[rowNum]
|
|
162
162
|
? 'xpl-table-row-selected'
|
|
163
163
|
: '' }, row.map((cell, i) => (h("td", null, this.multiselect && i === 0 ? (h("label", null, h("xpl-checkbox", { checked: !!this.selected[rowNum], onCheckboxChange: (e) => this.selectOne(e, rowNum), value: this.selectedValues.length > 0
|
|
164
164
|
? this.selectedValues[rowNum]
|
|
165
|
-
: `xpl-table-checkbox-${rowNum}`, "aria-label": `Select row ${rowNum + 1}` }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))))))))), rowFooterData.length > 0 && (h("tfoot", { key: '
|
|
165
|
+
: `xpl-table-checkbox-${rowNum}`, "aria-label": `Select row ${rowNum + 1}` }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))))))))), rowFooterData.length > 0 && (h("tfoot", { key: '78ee72f80c77e61c6234be9500770780952ca669' }, rowFooterData.map((row) => (h("tr", null, row.map((cell) => (h("td", null, h("div", { innerHTML: cell })))))))))))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "xpl-table"; }
|
|
168
168
|
static get properties() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class TableHeader {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '94e6c6f38fa4672ef3c728bf196946801da855d4', role: "row", class: "xpl-table-header" }, h("slot", { key: 'fa41686f082c65d27555273945f734a36c670869' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "xpl-table-header"; }
|
|
7
7
|
}
|
|
@@ -74,39 +74,6 @@ export function renderTabsStoryMarkup(args, context = {}) {
|
|
|
74
74
|
}
|
|
75
75
|
return buildTabsMarkup({ ...args, value });
|
|
76
76
|
}
|
|
77
|
-
export const tabsPlainDomUnderlineStoryHtml = `<---- Non-interactive plain DOM (tabs.css BEM). Not the <xpl-tabs> API; use the Web Component tab for that. Ids mirror the scoped pattern (data-tabs-instance-id + target). ---->
|
|
78
|
-
<div class="xpl-tabs" data-tabs-instance-id="xpl-tg-1">
|
|
79
|
-
<xpl-select class-names="xpl-tabs__mobile-select" selected-values="tab0"></xpl-select>
|
|
80
|
-
<nav class="xpl-tabs__headings" role="tablist" aria-orientation="horizontal">
|
|
81
|
-
<div class="xpl-tabs__active-bar"></div>
|
|
82
|
-
<div class="xpl-tab xpl-tab--selected">
|
|
83
|
-
<button class="xpl-tab__button" type="button" role="tab" id="xpl-tg-1-tab-tab0" aria-controls="xpl-tg-1-panel-tab0" aria-selected="true"><xpl-icon class="xpl-tab__icon" icon="user" size="16"></xpl-icon>Tab 1<xpl-badge class="xpl-tab__badge" dot-only variant="purple">4</xpl-badge></button>
|
|
84
|
-
</div>
|
|
85
|
-
<div class="xpl-tab">
|
|
86
|
-
<button class="xpl-tab__button" type="button" role="tab" id="xpl-tg-1-tab-tab1" aria-controls="xpl-tg-1-panel-tab1" aria-selected="false"><xpl-icon class="xpl-tab__icon" icon="user" size="16"></xpl-icon>Tab 2<xpl-badge class="xpl-tab__badge" dot-only variant="purple">4</xpl-badge></button>
|
|
87
|
-
</div>
|
|
88
|
-
</nav>
|
|
89
|
-
<div class="xpl-tabs__panels">
|
|
90
|
-
<div class="xpl-tab-panel xpl-tab-panel--selected" role="tabpanel" id="xpl-tg-1-panel-tab0" aria-labelledby="xpl-tg-1-tab-tab0">Content for tab 1</div>
|
|
91
|
-
<div class="xpl-tab-panel" role="tabpanel" id="xpl-tg-1-panel-tab1" aria-labelledby="xpl-tg-1-tab-tab1">Content for tab 2</div>
|
|
92
|
-
</div>
|
|
93
|
-
</div>`;
|
|
94
|
-
export const tabsPlainDomSegmentStoryHtml = `<---- Segment (type='segment'): Stencil renders xpl-tab.xpl-tab--segment > xpl-button; xpl-tab assigns id, role, and aria-* on the inner native <button>. Plain buttons below only illustrate tablist ↔ tabpanel id wiring (not .xpl-tab__button). ---->
|
|
95
|
-
<div class="xpl-tabs xpl-tabs--segment" data-tabs-instance-id="xpl-tg-2">
|
|
96
|
-
<xpl-select class-names="xpl-tabs__mobile-select" selected-values="tab0"></xpl-select>
|
|
97
|
-
<nav class="xpl-tabs__headings" role="tablist" aria-orientation="horizontal">
|
|
98
|
-
<div class="xpl-tab xpl-tab--segment xpl-tab--selected">
|
|
99
|
-
<button type="button" role="tab" id="xpl-tg-2-tab-tab0" aria-controls="xpl-tg-2-panel-tab0" aria-selected="true">Segment 1</button>
|
|
100
|
-
</div>
|
|
101
|
-
<div class="xpl-tab xpl-tab--segment">
|
|
102
|
-
<button type="button" role="tab" id="xpl-tg-2-tab-tab1" aria-controls="xpl-tg-2-panel-tab1" aria-selected="false">Segment 2</button>
|
|
103
|
-
</div>
|
|
104
|
-
</nav>
|
|
105
|
-
<div class="xpl-tabs__panels">
|
|
106
|
-
<div class="xpl-tab-panel xpl-tab-panel--selected" role="tabpanel" id="xpl-tg-2-panel-tab0" aria-labelledby="xpl-tg-2-tab-tab0">Content for segment 1</div>
|
|
107
|
-
<div class="xpl-tab-panel" role="tabpanel" id="xpl-tg-2-panel-tab1" aria-labelledby="xpl-tg-2-tab-tab1">Content for segment 2</div>
|
|
108
|
-
</div>
|
|
109
|
-
</div>`;
|
|
110
77
|
export const tabsStoryBaseArgTypes = {
|
|
111
78
|
type: {
|
|
112
79
|
options: ['tabs', 'segment'],
|