@xplortech/apollo-core 2.11.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 +160 -10
- package/AGENTS.md +29 -5
- package/README.md +42 -3
- package/build/components/accordion.css +1 -0
- package/build/components/application-shell.css +1 -0
- package/build/components/avatar.css +1 -0
- package/build/components/backdrop.css +1 -0
- package/build/components/badge.css +1 -0
- package/build/components/banner.css +1 -0
- package/build/components/breadcrumbs.css +1 -0
- package/build/components/button-row.css +1 -0
- package/build/components/button.css +1 -0
- package/build/components/calendar.css +1 -0
- package/build/components/checkbox-radio.css +1 -0
- package/build/components/choicelist.css +1 -0
- package/build/components/content-area.css +1 -0
- package/build/components/dashboard.css +1 -0
- package/build/components/data-card.css +1 -0
- package/build/components/divider.css +1 -0
- package/build/components/dropdown.css +1 -0
- package/build/components/dynamic-table-cell.css +1 -0
- package/build/components/dynamic-table-row.css +1 -0
- package/build/components/dynamic-table.css +1 -0
- package/build/components/grid.css +1 -0
- package/build/components/header-accordion.css +1 -0
- package/build/components/icon.css +1 -0
- package/build/components/input-color.css +1 -0
- package/build/components/input-date.css +1 -0
- package/build/components/input-file.css +1 -0
- package/build/components/input-phone.css +1 -0
- package/build/components/input-search.css +1 -0
- package/build/components/input-time.css +1 -0
- package/build/components/input.css +1 -0
- package/build/components/label.css +1 -0
- package/build/components/large-card.css +1 -0
- package/build/components/list-action.css +1 -0
- package/build/components/list-item.css +1 -0
- package/build/components/list.css +1 -0
- package/build/components/main-nav.css +1 -0
- package/build/components/modal.css +1 -0
- package/build/components/nav-item.css +1 -0
- package/build/components/pagination.css +1 -0
- package/build/components/panel.css +1 -0
- package/build/components/popover.css +1 -0
- package/build/components/progress-bar.css +1 -0
- package/build/components/progress-indicator.css +1 -0
- package/build/components/secondary-nav.css +1 -0
- package/build/components/select.css +1 -0
- package/build/components/side-nav.css +1 -0
- package/build/components/skeleton.css +1 -0
- package/build/components/slideout.css +1 -0
- package/build/components/spotlight.css +1 -0
- 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-header-cell.css +1 -0
- package/build/components/table-header.css +1 -0
- package/build/components/table-row.css +1 -0
- package/build/components/table.css +1 -0
- package/build/components/tabs.css +1 -0
- package/build/components/tag.css +1 -0
- package/build/components/toast.css +1 -0
- package/build/components/toggle.css +1 -0
- package/build/components/toolbar.css +1 -0
- package/build/components/tooltip.css +1 -0
- package/build/components/top-nav.css +1 -0
- package/build/components/utility-bar.css +1 -0
- package/build/components-manifest.json +232 -0
- package/build/core.css +2 -0
- package/build/reset.css +394 -0
- package/build/style.css +2 -13345
- package/build/tailwind-theme.css +2 -0
- package/build/typography.css +1 -0
- package/build/variables/apollo.css +779 -0
- package/build/variables/field-edge.css +554 -0
- package/build/vendor/flatpickr.css +1 -0
- package/dist/apollo-core/apollo-core.css +2 -55
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/p-0368a1df.entry.js +1 -0
- 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-06a9a27b.entry.js +1 -0
- package/dist/apollo-core/p-0958c719.entry.js +1 -0
- package/dist/apollo-core/p-0a0a6e43.entry.js +1 -0
- package/dist/apollo-core/p-149ddd12.entry.js +1 -0
- package/dist/apollo-core/p-1M1pu0C2.js +1 -0
- package/dist/apollo-core/p-1a94c2d9.entry.js +1 -0
- package/dist/apollo-core/p-2139f9f6.entry.js +1 -0
- package/dist/apollo-core/p-256ece8b.entry.js +1 -0
- package/dist/apollo-core/p-28bce81a.entry.js +1 -0
- package/dist/apollo-core/p-2938ab4f.entry.js +1 -0
- package/dist/apollo-core/p-2c995d80.entry.js +1 -0
- 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-47bda204.entry.js +1 -0
- package/dist/apollo-core/p-4a2323b3.entry.js +1 -0
- package/dist/apollo-core/p-4ad79534.entry.js +1 -0
- package/dist/apollo-core/p-4d4acd1f.entry.js +1 -0
- package/dist/apollo-core/p-50fae269.entry.js +1 -0
- package/dist/apollo-core/p-54903322.entry.js +1 -0
- package/dist/apollo-core/p-5730d96c.entry.js +1 -0
- package/dist/apollo-core/p-581b702c.entry.js +1 -0
- package/dist/apollo-core/p-5d9a593e.entry.js +1 -0
- package/dist/apollo-core/p-60cb3cfb.entry.js +1 -0
- 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-790709c0.entry.js +1 -0
- package/dist/apollo-core/p-82812126.entry.js +1 -0
- package/dist/apollo-core/p-83bb7607.entry.js +1 -0
- package/dist/apollo-core/p-8664d88b.entry.js +1 -0
- package/dist/apollo-core/p-8845106f.entry.js +1 -0
- package/dist/apollo-core/p-8a925e9d.entry.js +1 -0
- package/dist/apollo-core/p-9064badb.entry.js +1 -0
- package/dist/apollo-core/p-91895c40.entry.js +1 -0
- 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-BFTU3MAI.js +1 -0
- package/dist/apollo-core/p-BQtbf88X.js +1 -0
- package/dist/apollo-core/p-CWdQxaaX.js +1 -0
- package/dist/apollo-core/p-C_PEOQWj.js +1 -0
- package/dist/apollo-core/p-CzwViN3U.js +1 -0
- package/dist/apollo-core/p-DkqlawVY.js +1 -0
- package/dist/apollo-core/p-Dqb1pIRo.js +1 -0
- package/dist/apollo-core/p-_r9-FML8.js +1 -0
- package/dist/apollo-core/p-a0d3b7f8.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-af8ebf49.entry.js +1 -0
- package/dist/apollo-core/p-b29025b2.entry.js +1 -0
- package/dist/apollo-core/p-b45179fb.entry.js +1 -0
- 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-ca4652b3.entry.js +1 -0
- package/dist/apollo-core/p-cb5b15c2.entry.js +1 -0
- package/dist/apollo-core/p-cc57f20d.entry.js +1 -0
- package/dist/apollo-core/p-cdacfcd4.entry.js +1 -0
- package/dist/apollo-core/p-cdb5b5c4.entry.js +1 -0
- package/dist/apollo-core/p-d0bc7c45.entry.js +1 -0
- package/dist/apollo-core/p-d41b8f46.entry.js +1 -0
- package/dist/apollo-core/p-d443291f.entry.js +1 -0
- 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-e2890eb1.entry.js +1 -0
- 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-f3a2c79b.entry.js +1 -0
- package/dist/apollo-core/p-ffc2f0cf.entry.js +1 -0
- package/dist/apollo-core/p-ukZKsqqq.js +2 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/apollo-core.cjs.js +2 -2
- package/dist/cjs/floating-ui.dom-DuvGwvW-.js +1710 -0
- package/dist/cjs/{index-BaXVr8ux.js → index-3cBvw409.js} +772 -9
- package/dist/cjs/index-DP4JWqOH.js +456 -0
- package/dist/cjs/{lifecycle-Bf3QwiVa.js → lifecycle-DeSsFfQZ.js} +4 -0
- package/dist/cjs/light-dom-slots-CS8Q9rRZ.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/side-nav-slot-utils-DMog5BVN.js +41 -0
- package/dist/cjs/slot-presence-HmQUW2Ba.js +10 -0
- package/dist/cjs/tab-a11y-ids--A4ZoXEj.js +27 -0
- package/dist/cjs/top-nav-constants-DckvgAo7.js +5 -0
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-avatar_3.cjs.entry.js +211 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +19 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +37 -0
- package/dist/cjs/xpl-banner.cjs.entry.js +74 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +14 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-button.cjs.entry.js +81 -0
- package/dist/cjs/xpl-calendar.cjs.entry.js +10 -6
- package/dist/cjs/xpl-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +68 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +15 -0
- package/dist/cjs/xpl-dashboard.cjs.entry.js +14 -0
- package/dist/cjs/xpl-data-card.cjs.entry.js +111 -0
- package/dist/cjs/xpl-dropdown_4.cjs.entry.js +580 -0
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +8 -6
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +11 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +6 -6
- package/dist/cjs/xpl-header-accordion.cjs.entry.js +69 -0
- package/dist/cjs/{xpl-avatar_54.cjs.entry.js → xpl-icon.cjs.entry.js} +1174 -10592
- package/dist/cjs/xpl-input-color.cjs.entry.js +435 -0
- package/dist/cjs/xpl-input-phone.cjs.entry.js +509 -0
- package/dist/cjs/xpl-input-time.cjs.entry.js +196 -0
- package/dist/cjs/xpl-input_4.cjs.entry.js +525 -0
- package/dist/cjs/xpl-large-card.cjs.entry.js +63 -4
- package/dist/cjs/xpl-list-item.cjs.entry.js +460 -0
- package/dist/cjs/xpl-list.cjs.entry.js +396 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-modal.cjs.entry.js +107 -0
- package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +86 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +112 -0
- package/dist/cjs/xpl-panel.cjs.entry.js +21 -0
- package/dist/cjs/xpl-popover.cjs.entry.js +265 -0
- package/dist/cjs/xpl-progress-bar.cjs.entry.js +41 -0
- package/dist/cjs/xpl-progress-indicator.cjs.entry.js +74 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +14 -0
- package/dist/cjs/xpl-select_2.cjs.entry.js +493 -0
- package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +101 -0
- package/dist/cjs/xpl-side-nav-item.cjs.entry.js +130 -0
- package/dist/cjs/xpl-side-nav-section.cjs.entry.js +105 -0
- package/dist/cjs/xpl-side-nav.cjs.entry.js +276 -0
- package/dist/cjs/xpl-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/xpl-slideout.cjs.entry.js +47 -0
- package/dist/cjs/xpl-spotlight.cjs.entry.js +722 -0
- package/dist/cjs/xpl-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/xpl-tab.cjs.entry.js +87 -0
- 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-cell.cjs.entry.js +5 -3
- package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
- package/dist/cjs/xpl-table-row.cjs.entry.js +20 -0
- package/dist/cjs/xpl-table.cjs.entry.js +185 -0
- package/dist/cjs/xpl-tabs.cjs.entry.js +373 -0
- package/dist/cjs/xpl-toast.cjs.entry.js +91 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/xpl-tooltip.cjs.entry.js +18 -0
- package/dist/cjs/xpl-top-nav-item.cjs.entry.js +435 -0
- package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +16 -22
- package/dist/cjs/xpl-top-nav.cjs.entry.js +342 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +23 -0
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +4 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +13 -16
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +4 -5
- package/dist/collection/components/xpl-banner/xpl-banner.js +7 -9
- 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 +17 -14
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +9 -5
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +7 -8
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +6 -6
- 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 +69 -5
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -17
- 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 +9 -5
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +113 -118
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +13 -19
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +7 -5
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +4 -4
- package/dist/collection/components/xpl-grid/xpl-grid.js +5 -5
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +7 -23
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -3
- package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +16 -10
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +47 -38
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +31 -14
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +11 -13
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +38 -41
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +5 -8
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +11 -10
- package/dist/collection/components/xpl-input/xpl-input.js +73 -40
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +69 -3
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +29 -31
- package/dist/collection/components/xpl-list/xpl-list.js +21 -26
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +61 -19
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +10 -12
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +36 -8
- 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 +7 -7
- 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 +91 -49
- package/dist/collection/components/xpl-side-nav/side-nav-slot-utils.js +35 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.js +201 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +10 -11
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +186 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +80 -13
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +3 -3
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +4 -1
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +44 -49
- package/dist/collection/components/xpl-tab/xpl-tab.js +63 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +3 -4
- 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 +52 -36
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +4 -2
- package/dist/collection/components/xpl-tabs/tabs.shared.js +75 -50
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +29 -25
- package/dist/collection/components/xpl-tag/xpl-tag.js +5 -7
- package/dist/collection/components/xpl-toast/xpl-toast.js +107 -56
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +5 -5
- 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 +11 -5
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +50 -32
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-menu/xpl-top-nav-menu.js +13 -18
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +96 -34
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/collection/utils/floating.js +69 -0
- package/dist/collection/utils/layout-ancestors.js +7 -0
- package/dist/collection/utils/lifecycle.js +13 -10
- package/dist/collection/utils/light-dom-slots.js +15 -0
- package/dist/collection/utils/slot-presence.js +6 -0
- package/dist/collection/utils/ssr-known-mismatches.js +50 -0
- package/dist/collection/utils/tab-a11y-ids.js +1 -2
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-1M1pu0C2.js +1 -0
- package/dist/components/{p-BxHFEnPN.js → p-9VnxPQLs.js} +1 -1
- package/dist/components/p-B2oLZUDD.js +1 -0
- package/dist/components/p-BQtbf88X.js +1 -0
- package/dist/components/p-BSHdGbmH.js +1 -0
- package/dist/components/p-BYYFsuD3.js +1 -0
- package/dist/components/p-BZtxVB1R.js +1 -0
- package/dist/components/p-BdpZR4KO.js +1 -0
- package/dist/components/p-C_PEOQWj.js +1 -0
- package/dist/components/p-Chpgh5SL.js +1 -0
- package/dist/components/p-CiHTfk3E.js +1 -0
- package/dist/components/p-CnVGKN63.js +1 -0
- package/dist/components/p-Cz7zDaI4.js +1 -0
- package/dist/components/p-D--kzomA.js +1 -0
- package/dist/components/p-D4rv6CNJ.js +1 -0
- package/dist/components/p-DAb-txW3.js +1 -0
- package/dist/components/p-DYmvElhR.js +1 -0
- package/dist/components/p-DkqlawVY.js +1 -0
- package/dist/components/p-Dqb1pIRo.js +1 -0
- package/dist/components/p-EfW0v54z.js +1 -0
- package/dist/components/p-JyNpXfDe.js +1 -0
- package/dist/components/p-U0JYwf4c.js +1 -0
- package/dist/components/p-YG9Jza0y.js +1 -0
- package/dist/components/p-_r9-FML8.js +1 -0
- package/dist/components/{p-ByJRw26d.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-xFsB212F.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/xpl-side-nav-header-item.js +1 -0
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav-section.d.ts +11 -0
- package/dist/components/xpl-side-nav-section.js +1 -0
- 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-application-shell/readme.md +33 -0
- package/dist/docs/xpl-backdrop/readme.md +7 -0
- package/dist/docs/xpl-badge/readme.md +2 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +9 -0
- package/dist/docs/xpl-button/readme.md +4 -2
- package/dist/docs/xpl-checkbox/readme.md +12 -0
- package/dist/docs/xpl-choicelist/readme.md +21 -0
- package/dist/docs/xpl-content-area/readme.md +8 -0
- package/dist/docs/xpl-data-card/readme.md +26 -0
- package/dist/docs/xpl-dropdown/readme.md +32 -6
- package/dist/docs/xpl-dynamic-table/readme.md +35 -0
- package/dist/docs/xpl-header-accordion/readme.md +18 -0
- package/dist/docs/xpl-icon/readme.md +21 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +18 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +13 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +9 -0
- package/dist/docs/xpl-large-card/readme.md +18 -0
- package/dist/docs/xpl-list/readme.md +2 -2
- package/dist/docs/xpl-list/xpl-list-item/readme.md +3 -3
- package/dist/docs/xpl-main-nav/readme.md +16 -0
- package/dist/docs/xpl-modal/readme.md +38 -2
- package/dist/docs/xpl-nav-item/readme.md +14 -0
- package/dist/docs/xpl-pagination/readme.md +29 -0
- package/dist/docs/xpl-radio/readme.md +12 -0
- package/dist/docs/xpl-secondary-nav/readme.md +25 -0
- package/dist/docs/xpl-select/readme.md +13 -0
- package/dist/docs/xpl-side-nav/readme.md +12 -7
- package/dist/docs/xpl-side-nav/xpl-side-nav-header-item/readme.md +155 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +16 -6
- package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +126 -0
- package/dist/docs/xpl-slideout/readme.md +23 -0
- package/dist/docs/xpl-tab/readme.md +14 -8
- package/dist/docs/xpl-table/readme.md +4 -4
- 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/xpl-toast/readme.md +90 -7
- package/dist/docs/xpl-toggle/readme.md +46 -0
- package/dist/docs/xpl-toolbar/readme.md +19 -0
- package/dist/docs/xpl-top-nav/readme.md +2 -1
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +5 -5
- package/dist/docs/xpl-utility-bar/readme.md +12 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +16642 -0
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/apollo-core.js +3 -3
- package/dist/esm/floating-ui.dom-1M1pu0C2.js +1702 -0
- package/dist/esm/index-BhYfWG18.js +454 -0
- package/dist/esm/{index-CXkZUm1c.js → index-ukZKsqqq.js} +772 -9
- package/dist/esm/{lifecycle-BUgtURvw.js → lifecycle-Dqb1pIRo.js} +4 -1
- package/dist/esm/light-dom-slots-DkqlawVY.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/side-nav-slot-utils-C_PEOQWj.js +37 -0
- package/dist/esm/slot-presence-_r9-FML8.js +8 -0
- package/dist/esm/tab-a11y-ids-BQtbf88X.js +23 -0
- package/dist/esm/top-nav-constants-CWdQxaaX.js +3 -0
- package/dist/esm/xpl-accordion.entry.js +5 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/xpl-avatar_3.entry.js +207 -0
- package/dist/esm/xpl-backdrop.entry.js +17 -0
- package/dist/esm/xpl-badge.entry.js +35 -0
- package/dist/esm/xpl-banner.entry.js +72 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +16 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +12 -0
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-button.entry.js +79 -0
- package/dist/esm/xpl-calendar.entry.js +10 -6
- package/dist/esm/xpl-checkbox.entry.js +30 -0
- package/dist/esm/xpl-choicelist.entry.js +66 -0
- package/dist/esm/xpl-content-area.entry.js +13 -0
- package/dist/esm/xpl-dashboard.entry.js +12 -0
- package/dist/esm/xpl-data-card.entry.js +109 -0
- package/dist/esm/xpl-dropdown_4.entry.js +575 -0
- package/dist/esm/xpl-dynamic-table-cell.entry.js +8 -6
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +11 -18
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +6 -6
- package/dist/esm/xpl-header-accordion.entry.js +67 -0
- package/dist/esm/{xpl-avatar_54.entry.js → xpl-icon.entry.js} +1174 -10539
- package/dist/esm/xpl-input-color.entry.js +433 -0
- package/dist/esm/xpl-input-phone.entry.js +507 -0
- package/dist/esm/xpl-input-time.entry.js +194 -0
- package/dist/esm/xpl-input_4.entry.js +520 -0
- package/dist/esm/xpl-large-card.entry.js +63 -4
- package/dist/esm/xpl-list-item.entry.js +458 -0
- package/dist/esm/xpl-list.entry.js +394 -0
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-modal.entry.js +105 -0
- package/dist/esm/xpl-nav-header-menu.entry.js +84 -0
- package/dist/esm/xpl-nav-item.entry.js +23 -0
- package/dist/esm/xpl-pagination.entry.js +110 -0
- package/dist/esm/xpl-panel.entry.js +19 -0
- package/dist/esm/xpl-popover.entry.js +263 -0
- package/dist/esm/xpl-progress-bar.entry.js +39 -0
- package/dist/esm/xpl-progress-indicator.entry.js +72 -0
- package/dist/esm/xpl-secondary-nav.entry.js +12 -0
- package/dist/esm/xpl-select_2.entry.js +490 -0
- package/dist/esm/xpl-side-nav-header-item.entry.js +99 -0
- package/dist/esm/xpl-side-nav-item.entry.js +128 -0
- package/dist/esm/xpl-side-nav-section.entry.js +103 -0
- package/dist/esm/xpl-side-nav.entry.js +274 -0
- package/dist/esm/xpl-skeleton.entry.js +24 -0
- package/dist/esm/xpl-slideout.entry.js +45 -0
- package/dist/esm/xpl-spotlight.entry.js +720 -0
- package/dist/esm/xpl-tab-panel.entry.js +22 -0
- package/dist/esm/xpl-tab.entry.js +85 -0
- 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-cell.entry.js +5 -3
- package/dist/esm/xpl-table-header.entry.js +2 -2
- package/dist/esm/xpl-table-row.entry.js +18 -0
- package/dist/esm/xpl-table.entry.js +183 -0
- package/dist/esm/xpl-tabs.entry.js +371 -0
- package/dist/esm/xpl-toast.entry.js +89 -0
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/esm/xpl-tooltip.entry.js +16 -0
- package/dist/esm/xpl-top-nav-item.entry.js +433 -0
- package/dist/esm/xpl-top-nav-menu.entry.js +15 -21
- package/dist/esm/xpl-top-nav.entry.js +340 -0
- package/dist/esm/xpl-utility-bar.entry.js +21 -0
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +12 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +7 -9
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +2 -1
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +0 -2
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +2 -2
- package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input.d.ts +11 -6
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +12 -0
- package/dist/types/components/xpl-list/listitem.d.ts +5 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +0 -1
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +10 -2
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +4 -2
- package/dist/types/components/xpl-select/select.shared.d.ts +23 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-side-nav/side-nav-slot-utils.d.ts +3 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-header-item/xpl-side-nav-header-item.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.d.ts +24 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +10 -0
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +1 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +5 -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-table/xpl-table.d.ts +8 -8
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +34 -2
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +13 -4
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +3 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +7 -2
- package/dist/types/components.d.ts +1109 -51
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils/form-bindings.d.ts +4 -0
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/utils/story-vrt.d.ts +1 -0
- package/dist/types/third-party.d.ts +20 -0
- package/dist/types/utils/floating.d.ts +26 -0
- package/dist/types/utils/lifecycle.d.ts +1 -1
- package/dist/types/utils/light-dom-slots.d.ts +6 -0
- package/dist/types/utils/slot-presence.d.ts +1 -0
- package/dist/types/utils/ssr-known-mismatches.d.ts +16 -0
- package/dist/utils/form-bindings.js +64 -0
- package/dist/utils/story-vrt.js +48 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +51795 -0
- package/hydrate/index.mjs +51785 -0
- package/hydrate/package.json +12 -0
- package/package.json +112 -59
- package/dist/apollo-core/p-048fdde0.entry.js +0 -1
- package/dist/apollo-core/p-0abc496e.entry.js +0 -1
- package/dist/apollo-core/p-1442c052.entry.js +0 -1
- package/dist/apollo-core/p-1e498763.entry.js +0 -1
- package/dist/apollo-core/p-26c3a508.entry.js +0 -1
- package/dist/apollo-core/p-3b8639b7.entry.js +0 -1
- package/dist/apollo-core/p-4ce52107.entry.js +0 -1
- package/dist/apollo-core/p-6710fb29.entry.js +0 -1
- package/dist/apollo-core/p-7e622809.entry.js +0 -1
- package/dist/apollo-core/p-87068144.entry.js +0 -1
- package/dist/apollo-core/p-BUgtURvw.js +0 -1
- package/dist/apollo-core/p-CXkZUm1c.js +0 -2
- package/dist/apollo-core/p-a3b4820a.entry.js +0 -1
- package/dist/apollo-core/p-b2d6dd0e.entry.js +0 -1
- package/dist/apollo-core/p-bd2249ef.entry.js +0 -1
- package/dist/apollo-core/p-c96b7957.entry.js +0 -1
- package/dist/apollo-core/p-d6be63cd.entry.js +0 -1
- package/dist/apollo-core/p-ddf76cee.entry.js +0 -1
- package/dist/apollo-core/p-f0554edd.entry.js +0 -1
- package/dist/collection/components/xpl-accordion/accordion.stories.js +0 -80
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +0 -737
- package/dist/collection/components/xpl-avatar/avatar.stories.js +0 -147
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +0 -24
- package/dist/collection/components/xpl-badge/badge.stories.js +0 -91
- package/dist/collection/components/xpl-banner/banner.stories.js +0 -69
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +0 -134
- package/dist/collection/components/xpl-button/button.stories.js +0 -142
- package/dist/collection/components/xpl-button-row/button-row.stories.js +0 -59
- package/dist/collection/components/xpl-calendar/calendar.stories.js +0 -63
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +0 -83
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +0 -138
- package/dist/collection/components/xpl-content-area/content-area.stories.js +0 -55
- package/dist/collection/components/xpl-dashboard/dashboard.stories.js +0 -48
- package/dist/collection/components/xpl-data-card/data-card.stories.js +0 -115
- package/dist/collection/components/xpl-divider/divider.stories.js +0 -36
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +0 -387
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +0 -165
- package/dist/collection/components/xpl-grid/grid.stories.js +0 -76
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +0 -52
- package/dist/collection/components/xpl-icon/icons.stories.js +0 -142
- package/dist/collection/components/xpl-input/input.stories.js +0 -696
- package/dist/collection/components/xpl-large-card/large-card.stories.js +0 -131
- package/dist/collection/components/xpl-list/list.stories.js +0 -389
- package/dist/collection/components/xpl-main-nav/main-nav.stories.js +0 -307
- package/dist/collection/components/xpl-modal/modal.stories.js +0 -91
- package/dist/collection/components/xpl-pagination/pagination.stories.js +0 -57
- package/dist/collection/components/xpl-panel/panel.stories.js +0 -53
- package/dist/collection/components/xpl-popover/popover.stories.js +0 -164
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +0 -96
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +0 -118
- package/dist/collection/components/xpl-radio/radio.stories.js +0 -106
- package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +0 -78
- package/dist/collection/components/xpl-select/select.stories.js +0 -297
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +0 -634
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +0 -71
- package/dist/collection/components/xpl-slideout/slideout.stories.js +0 -109
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +0 -385
- package/dist/collection/components/xpl-table/table.stories.js +0 -147
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -126
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -75
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +0 -31
- package/dist/collection/components/xpl-tabs/tabs.stories.js +0 -31
- package/dist/collection/components/xpl-tag/tag.stories.js +0 -153
- package/dist/collection/components/xpl-toast/toast.stories.js +0 -86
- package/dist/collection/components/xpl-toggle/toggle.stories.js +0 -88
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +0 -58
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +0 -745
- package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +0 -87
- package/dist/components/p-2xGSxBGa.js +0 -1
- package/dist/components/p-B8RYNiz-.js +0 -1
- package/dist/components/p-BDWXBWGE.js +0 -1
- package/dist/components/p-BJqNuBZr.js +0 -1
- package/dist/components/p-BT_Lq3Vd.js +0 -1
- package/dist/components/p-BUgtURvw.js +0 -1
- package/dist/components/p-B_sq_SAX.js +0 -1
- package/dist/components/p-Bsy-VVS5.js +0 -1
- package/dist/components/p-C5_Yo0ZP.js +0 -1
- package/dist/components/p-C8rmEAx6.js +0 -1
- package/dist/components/p-CF_YTx16.js +0 -1
- package/dist/components/p-CFpsSZyr.js +0 -1
- package/dist/components/p-CUYkG-PB.js +0 -1
- package/dist/components/p-CaW0fL0P.js +0 -1
- package/dist/components/p-CuisR8WP.js +0 -1
- package/dist/components/p-D2SFagIb.js +0 -1
- package/dist/components/p-DKUNbsb0.js +0 -1
- package/dist/components/p-DcXL24UI.js +0 -1
- package/dist/components/p-Dp3H99Yc.js +0 -1
- package/dist/components/p-M900WO1C.js +0 -1
- package/dist/components/p-Yj_QFaRn.js +0 -1
- package/dist/components/p-ZTFt9sBy.js +0 -1
- package/dist/components/p-gfb3l9Pr.js +0 -1
- package/dist/components/p-h1Gbk5lO.js +0 -1
- package/dist/css/typography.stories.js +0 -144
- package/dist/types/components/xpl-accordion/accordion.stories.d.ts +0 -37
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +0 -64
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +0 -138
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +0 -21
- package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -80
- package/dist/types/components/xpl-banner/banner.stories.d.ts +0 -79
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +0 -57
- package/dist/types/components/xpl-button/button.stories.d.ts +0 -132
- package/dist/types/components/xpl-button-row/button-row.stories.d.ts +0 -45
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +0 -62
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +0 -69
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +0 -44
- package/dist/types/components/xpl-content-area/content-area.stories.d.ts +0 -13
- package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +0 -31
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +0 -118
- package/dist/types/components/xpl-divider/divider.stories.d.ts +0 -41
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +0 -25
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +0 -45
- package/dist/types/components/xpl-grid/grid.stories.d.ts +0 -133
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +0 -48
- package/dist/types/components/xpl-icon/icons.stories.d.ts +0 -54
- package/dist/types/components/xpl-input/input.stories.d.ts +0 -240
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +0 -75
- package/dist/types/components/xpl-list/list.stories.d.ts +0 -353
- package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +0 -13
- package/dist/types/components/xpl-modal/modal.stories.d.ts +0 -103
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +0 -52
- package/dist/types/components/xpl-panel/panel.stories.d.ts +0 -22
- package/dist/types/components/xpl-popover/popover.stories.d.ts +0 -12
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +0 -73
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +0 -62
- package/dist/types/components/xpl-radio/radio.stories.d.ts +0 -93
- package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +0 -5
- package/dist/types/components/xpl-select/select.stories.d.ts +0 -168
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +0 -101
- package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +0 -26
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +0 -120
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +0 -197
- package/dist/types/components/xpl-table/table.stories.d.ts +0 -88
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +0 -107
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +0 -59
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +0 -112
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +0 -97
- package/dist/types/components/xpl-tag/tag.stories.d.ts +0 -65
- package/dist/types/components/xpl-toast/toast.stories.d.ts +0 -66
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +0 -71
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +0 -43
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +0 -540
- package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +0 -20
- package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +0 -90
|
@@ -1,31 +1,20 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s)
|
|
4
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
1
|
import { h, Host, } from "@stencil/core";
|
|
14
|
-
import {
|
|
2
|
+
import { dropdownMiddleware, getSide, startFloating, } from "../../utils/floating";
|
|
3
|
+
import { isBrowser } from "../../utils/lifecycle";
|
|
15
4
|
const VIRTUAL_LIST = {
|
|
16
5
|
rowHeight: 45,
|
|
17
6
|
overscan: 20,
|
|
18
7
|
virtualizeFrom: 200,
|
|
19
8
|
};
|
|
20
9
|
function renderOption(option, virtualIndex) {
|
|
21
|
-
const { groupName, options: opts, subtitle
|
|
10
|
+
const { groupName, options: opts, subtitle, ...properties } = option;
|
|
22
11
|
if (groupName) {
|
|
23
|
-
return (h("xpl-dropdown-group",
|
|
12
|
+
return (h("xpl-dropdown-group", { groupName: groupName, options: opts, ...properties }));
|
|
24
13
|
}
|
|
25
14
|
const isVirtual = virtualIndex !== undefined;
|
|
26
|
-
return (h("xpl-dropdown-option",
|
|
15
|
+
return (h("xpl-dropdown-option", { class: isVirtual ? 'xpl-dropdown-option--virtual' : undefined, style: isVirtual
|
|
27
16
|
? { transform: `translateY(${virtualIndex * VIRTUAL_LIST.rowHeight}px)` }
|
|
28
|
-
: undefined, subtitle: subtitle
|
|
17
|
+
: undefined, subtitle: subtitle, ...properties }));
|
|
29
18
|
}
|
|
30
19
|
export class Dropdown {
|
|
31
20
|
constructor() {
|
|
@@ -37,73 +26,19 @@ export class Dropdown {
|
|
|
37
26
|
this.anchorToTrigger = false;
|
|
38
27
|
this.placement = 'bottom-start';
|
|
39
28
|
this.selectOnFocus = false;
|
|
40
|
-
this.
|
|
29
|
+
this.floating = null;
|
|
41
30
|
this.virtualScrollRaf = null;
|
|
42
31
|
this.openAlignmentRaf = null;
|
|
43
32
|
this.previousOptionCount = 0;
|
|
44
|
-
this.updateDropdownPosition = async (triggerEl) => {
|
|
45
|
-
var _a, _b;
|
|
46
|
-
const { x, y, placement, middlewareData } = await computePosition(triggerEl, this.hostElement, {
|
|
47
|
-
strategy: 'fixed',
|
|
48
|
-
placement: this.placement,
|
|
49
|
-
middleware: [
|
|
50
|
-
offset(4),
|
|
51
|
-
flip(((_a = this.flipFallbackPlacements) === null || _a === void 0 ? void 0 : _a.length)
|
|
52
|
-
? { fallbackPlacements: this.flipFallbackPlacements }
|
|
53
|
-
: {}),
|
|
54
|
-
size({
|
|
55
|
-
apply: ({ availableHeight, rects }) => {
|
|
56
|
-
const listEl = this.hostElement.querySelector('.xpl-dropdown-list');
|
|
57
|
-
let usedBeforeList = 0;
|
|
58
|
-
if (listEl) {
|
|
59
|
-
const children = Array.from(this.hostElement.children);
|
|
60
|
-
const listIndex = children.indexOf(listEl);
|
|
61
|
-
children.slice(0, listIndex).forEach((child) => {
|
|
62
|
-
if (child instanceof HTMLElement) {
|
|
63
|
-
usedBeforeList += child.offsetHeight;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
const cs = getComputedStyle(this.hostElement);
|
|
68
|
-
const hostVerticalChrome = parseFloat(cs.paddingTop) +
|
|
69
|
-
parseFloat(cs.paddingBottom) +
|
|
70
|
-
parseFloat(cs.borderTopWidth) +
|
|
71
|
-
parseFloat(cs.borderBottomWidth);
|
|
72
|
-
const cssMaxHeight = listEl
|
|
73
|
-
? parseFloat(getComputedStyle(listEl).getPropertyValue('--xpl-dropdown-list-max-height'))
|
|
74
|
-
: Infinity;
|
|
75
|
-
const listMaxHeight = Math.min(cssMaxHeight, Math.max(0, availableHeight - usedBeforeList - hostVerticalChrome));
|
|
76
|
-
Object.assign(this.hostElement.style, {
|
|
77
|
-
width: `${rects.reference.width}px`,
|
|
78
|
-
});
|
|
79
|
-
if (listEl) {
|
|
80
|
-
listEl.style.maxHeight = `${listMaxHeight}px`;
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
}),
|
|
84
|
-
hide(),
|
|
85
|
-
],
|
|
86
|
-
});
|
|
87
|
-
if (!this.cleanupAutoUpdate)
|
|
88
|
-
return;
|
|
89
|
-
if ((_b = middlewareData.hide) === null || _b === void 0 ? void 0 : _b.referenceHidden) {
|
|
90
|
-
this.isOpen = false;
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const isAbove = placement.startsWith('top');
|
|
94
|
-
Object.assign(this.hostElement.style, {
|
|
95
|
-
left: `${x}px`,
|
|
96
|
-
top: `${y}px`,
|
|
97
|
-
});
|
|
98
|
-
this.hostElement.classList.toggle('xpl-dropdown--above', isAbove);
|
|
99
|
-
this.hostElement.classList.toggle('xpl-dropdown--below', !isAbove);
|
|
100
|
-
};
|
|
101
33
|
this.handleClickOutside = ({ target }) => {
|
|
102
34
|
const { triggerId } = this;
|
|
35
|
+
const targetEl = target;
|
|
103
36
|
const triggerElement = triggerId ? document.getElementById(triggerId) : null;
|
|
104
|
-
const isTriggerOrChild = triggerElement
|
|
105
|
-
const isInside = this.hostElement.contains(
|
|
106
|
-
|
|
37
|
+
const isTriggerOrChild = triggerElement?.contains(targetEl);
|
|
38
|
+
const isInside = this.hostElement.contains(targetEl);
|
|
39
|
+
const labelEl = targetEl?.closest('label');
|
|
40
|
+
const isTriggerLabel = !!labelEl && !!triggerId && labelEl.getAttribute('for') === triggerId;
|
|
41
|
+
if (!isInside && !isTriggerOrChild && !isTriggerLabel && this.isOpen) {
|
|
107
42
|
this.isOpen = false;
|
|
108
43
|
}
|
|
109
44
|
};
|
|
@@ -121,13 +56,12 @@ export class Dropdown {
|
|
|
121
56
|
});
|
|
122
57
|
};
|
|
123
58
|
this.setListEl = (el) => {
|
|
124
|
-
var _a, _b;
|
|
125
59
|
if (el === this.listEl)
|
|
126
60
|
return;
|
|
127
61
|
this.listEl = el;
|
|
128
|
-
|
|
62
|
+
this.listResizeObserver?.disconnect();
|
|
129
63
|
if (el && typeof ResizeObserver !== 'undefined') {
|
|
130
|
-
|
|
64
|
+
this.listResizeObserver ?? (this.listResizeObserver = new ResizeObserver(() => {
|
|
131
65
|
if (this.isVirtualized)
|
|
132
66
|
this.handleVirtualScroll();
|
|
133
67
|
}));
|
|
@@ -145,8 +79,7 @@ export class Dropdown {
|
|
|
145
79
|
};
|
|
146
80
|
}
|
|
147
81
|
onOptionsChanged() {
|
|
148
|
-
|
|
149
|
-
const total = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
82
|
+
const total = this.options?.length ?? 0;
|
|
150
83
|
const listReplaced = total !== this.previousOptionCount;
|
|
151
84
|
this.previousOptionCount = total;
|
|
152
85
|
if (!this.isVirtualized) {
|
|
@@ -161,7 +94,7 @@ export class Dropdown {
|
|
|
161
94
|
list.scrollTop = maxScroll;
|
|
162
95
|
}
|
|
163
96
|
if (this.isOpen && listReplaced) {
|
|
164
|
-
const selectedIndex =
|
|
97
|
+
const selectedIndex = this.options?.findIndex((option) => option.isSelected) ?? -1;
|
|
165
98
|
const outOfWindow = selectedIndex >= 0 &&
|
|
166
99
|
(selectedIndex < this.virtualStart || selectedIndex >= this.virtualEnd);
|
|
167
100
|
if (outOfWindow) {
|
|
@@ -195,7 +128,7 @@ export class Dropdown {
|
|
|
195
128
|
if (this.options && this.options.length > 0) {
|
|
196
129
|
const flatOptions = this.options.flatMap((curr) => curr.groupName && curr.options ? curr.options : [curr]);
|
|
197
130
|
flatOptions.forEach((option) => {
|
|
198
|
-
const optionValue = option.value || option.label;
|
|
131
|
+
const optionValue = option.value || option.label || '';
|
|
199
132
|
if (this.mode === 'single') {
|
|
200
133
|
option.isSelected = optionValue === newValues;
|
|
201
134
|
}
|
|
@@ -205,7 +138,7 @@ export class Dropdown {
|
|
|
205
138
|
}
|
|
206
139
|
});
|
|
207
140
|
const mapOptions = (option) => {
|
|
208
|
-
option.options = option.groupName ? option.options
|
|
141
|
+
option.options = option.groupName ? option.options?.map(mapOptions) : undefined;
|
|
209
142
|
return option;
|
|
210
143
|
};
|
|
211
144
|
this.options = this.options.map(mapOptions);
|
|
@@ -228,24 +161,25 @@ export class Dropdown {
|
|
|
228
161
|
}
|
|
229
162
|
}
|
|
230
163
|
connectedCallback() {
|
|
164
|
+
if (!isBrowser()) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
231
167
|
document.addEventListener('mousedown', this.handleClickOutside);
|
|
232
168
|
document.addEventListener('keydown', this.handleKeyDown);
|
|
233
169
|
}
|
|
234
170
|
disconnectedCallback() {
|
|
235
|
-
var _a;
|
|
236
171
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
237
172
|
document.removeEventListener('keydown', this.handleKeyDown);
|
|
238
173
|
this.stopPositioning();
|
|
239
174
|
this.cancelVirtualScroll();
|
|
240
|
-
|
|
175
|
+
this.listResizeObserver?.disconnect();
|
|
241
176
|
}
|
|
242
177
|
componentWillLoad() {
|
|
243
|
-
var _a, _b;
|
|
244
178
|
this.handleSelect = this.handleSelect.bind(this);
|
|
245
179
|
if (this.selectedValues) {
|
|
246
180
|
this.onSelectedValuesChanged(this.selectedValues, true);
|
|
247
181
|
}
|
|
248
|
-
this.previousOptionCount =
|
|
182
|
+
this.previousOptionCount = this.options?.length ?? 0;
|
|
249
183
|
}
|
|
250
184
|
componentDidLoad() {
|
|
251
185
|
if (this.isOpen) {
|
|
@@ -289,7 +223,7 @@ export class Dropdown {
|
|
|
289
223
|
}
|
|
290
224
|
});
|
|
291
225
|
const mapOptions = (option) => {
|
|
292
|
-
option.options = option.groupName ? option.options
|
|
226
|
+
option.options = option.groupName ? option.options?.map(mapOptions) : undefined;
|
|
293
227
|
return option;
|
|
294
228
|
};
|
|
295
229
|
this.options = options.map(mapOptions);
|
|
@@ -315,21 +249,67 @@ export class Dropdown {
|
|
|
315
249
|
if (!triggerEl)
|
|
316
250
|
return;
|
|
317
251
|
this.stopPositioning();
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
252
|
+
this.floating = startFloating(triggerEl, this.hostElement, {
|
|
253
|
+
placement: this.placement,
|
|
254
|
+
strategy: 'fixed',
|
|
255
|
+
middleware: dropdownMiddleware({
|
|
256
|
+
flipFallbackPlacements: this.flipFallbackPlacements,
|
|
257
|
+
sizeApply: ({ availableHeight, rects }) => {
|
|
258
|
+
const listEl = this.hostElement.querySelector('.xpl-dropdown-list');
|
|
259
|
+
let usedBeforeList = 0;
|
|
260
|
+
if (listEl) {
|
|
261
|
+
const children = Array.from(this.hostElement.children);
|
|
262
|
+
const listIndex = children.indexOf(listEl);
|
|
263
|
+
children.slice(0, listIndex).forEach((child) => {
|
|
264
|
+
if (child instanceof HTMLElement) {
|
|
265
|
+
usedBeforeList += child.offsetHeight;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
const cs = getComputedStyle(this.hostElement);
|
|
270
|
+
const hostVerticalChrome = parseFloat(cs.paddingTop) +
|
|
271
|
+
parseFloat(cs.paddingBottom) +
|
|
272
|
+
parseFloat(cs.borderTopWidth) +
|
|
273
|
+
parseFloat(cs.borderBottomWidth);
|
|
274
|
+
const cssMaxHeight = listEl
|
|
275
|
+
? parseFloat(getComputedStyle(listEl).getPropertyValue('--xpl-dropdown-list-max-height'))
|
|
276
|
+
: Infinity;
|
|
277
|
+
const listMaxHeight = Math.min(cssMaxHeight, Math.max(0, availableHeight - usedBeforeList - hostVerticalChrome));
|
|
278
|
+
Object.assign(this.hostElement.style, {
|
|
279
|
+
width: `${rects.reference.width}px`,
|
|
280
|
+
});
|
|
281
|
+
if (listEl) {
|
|
282
|
+
listEl.style.maxHeight = `${listMaxHeight}px`;
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
}),
|
|
286
|
+
onPosition: ({ x, y, placement: resolvedPlacement }) => {
|
|
287
|
+
if (!this.floating) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const isAbove = getSide(resolvedPlacement) === 'top';
|
|
291
|
+
Object.assign(this.hostElement.style, {
|
|
292
|
+
left: `${x}px`,
|
|
293
|
+
top: `${y}px`,
|
|
294
|
+
});
|
|
295
|
+
this.hostElement.classList.toggle('xpl-dropdown--above', isAbove);
|
|
296
|
+
this.hostElement.classList.toggle('xpl-dropdown--below', !isAbove);
|
|
297
|
+
},
|
|
298
|
+
onReferenceHidden: () => {
|
|
299
|
+
this.isOpen = false;
|
|
300
|
+
return true;
|
|
301
|
+
},
|
|
320
302
|
});
|
|
321
303
|
}
|
|
322
304
|
stopPositioning() {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
this.cleanupAutoUpdate();
|
|
326
|
-
this.cleanupAutoUpdate = null;
|
|
327
|
-
}
|
|
305
|
+
this.floating?.stop();
|
|
306
|
+
this.floating = null;
|
|
328
307
|
this.hostElement.style.left = '';
|
|
329
308
|
this.hostElement.style.top = '';
|
|
330
309
|
this.hostElement.style.width = '';
|
|
331
|
-
|
|
332
|
-
.querySelector('.xpl-dropdown-list')
|
|
310
|
+
this.hostElement
|
|
311
|
+
.querySelector('.xpl-dropdown-list')
|
|
312
|
+
?.style.removeProperty('max-height');
|
|
333
313
|
this.hostElement.classList.remove('xpl-dropdown--above', 'xpl-dropdown--below');
|
|
334
314
|
}
|
|
335
315
|
cancelVirtualScroll() {
|
|
@@ -349,7 +329,7 @@ export class Dropdown {
|
|
|
349
329
|
}
|
|
350
330
|
scrollSelectedIntoView() {
|
|
351
331
|
const { listEl: list, options } = this;
|
|
352
|
-
if (!list || !
|
|
332
|
+
if (!list || !options?.length || !this.isVirtualized)
|
|
353
333
|
return;
|
|
354
334
|
const selectedIndex = options.findIndex((option) => option.isSelected);
|
|
355
335
|
if (selectedIndex < 0)
|
|
@@ -360,9 +340,8 @@ export class Dropdown {
|
|
|
360
340
|
list.scrollTop = Math.max(0, Math.min(centered, maxScroll));
|
|
361
341
|
}
|
|
362
342
|
updateVirtualRange() {
|
|
363
|
-
var _a, _b;
|
|
364
343
|
const list = this.listEl;
|
|
365
|
-
const total =
|
|
344
|
+
const total = this.options?.length ?? 0;
|
|
366
345
|
if (!list || !total)
|
|
367
346
|
return;
|
|
368
347
|
const { rowHeight, overscan } = VIRTUAL_LIST;
|
|
@@ -387,7 +366,7 @@ export class Dropdown {
|
|
|
387
366
|
const shouldVirtualize = this.isVirtualized;
|
|
388
367
|
let listContent;
|
|
389
368
|
if (!hasOptions) {
|
|
390
|
-
listContent = h("slot", { key: '
|
|
369
|
+
listContent = h("slot", { key: '1673c7d33d7dc1d16bf56081df85976ed389a38f', name: "options" });
|
|
391
370
|
}
|
|
392
371
|
else if (shouldVirtualize) {
|
|
393
372
|
const { rowHeight, overscan } = VIRTUAL_LIST;
|
|
@@ -395,18 +374,18 @@ export class Dropdown {
|
|
|
395
374
|
const start = Math.min(this.virtualStart, total);
|
|
396
375
|
const fallbackEnd = Math.min(total, Math.ceil(300 / rowHeight) + overscan * 2);
|
|
397
376
|
const end = this.virtualEnd > start ? this.virtualEnd : fallbackEnd;
|
|
398
|
-
listContent = (h("li", { key: '
|
|
377
|
+
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))));
|
|
399
378
|
}
|
|
400
379
|
else {
|
|
401
380
|
listContent = options.map((option) => renderOption(option));
|
|
402
381
|
}
|
|
403
|
-
return (h(Host, { key: '
|
|
382
|
+
return (h(Host, { key: '6e2fe2b904530c7966a23b3715485ea9ed415880', "aria-expanded": isOpen ? 'true' : 'false', class: {
|
|
404
383
|
'xpl-dropdown': true,
|
|
405
384
|
'xpl-dropdown--multi': mode === 'multi',
|
|
406
385
|
'xpl-dropdown--open': isOpen,
|
|
407
386
|
'xpl-dropdown--anchor-to-trigger': this.anchorToTrigger,
|
|
408
387
|
'xpl-dropdown--virtualized': shouldVirtualize,
|
|
409
|
-
}, role: "listbox" }, h("slot", { key: '
|
|
388
|
+
}, role: "listbox" }, h("slot", { key: 'b9c87382e07b23b326fab22b8423021f8c4a83f8', name: "header" }), h("ul", { key: '3824b650e2bbcb09fdea7f25ab19afa9a7dd8abe', class: "xpl-dropdown-list", ref: (el) => {
|
|
410
389
|
this.setListEl(el);
|
|
411
390
|
}, onScroll: shouldVirtualize ? this.handleVirtualScroll : undefined }, listContent)));
|
|
412
391
|
}
|
|
@@ -526,8 +505,8 @@ export class Dropdown {
|
|
|
526
505
|
"references": {
|
|
527
506
|
"Placement": {
|
|
528
507
|
"location": "import",
|
|
529
|
-
"path": "
|
|
530
|
-
"id": "
|
|
508
|
+
"path": "../../utils/floating",
|
|
509
|
+
"id": "src/components/utils/floating.ts::Placement",
|
|
531
510
|
"referenceLocation": "Placement"
|
|
532
511
|
}
|
|
533
512
|
}
|
|
@@ -550,8 +529,8 @@ export class Dropdown {
|
|
|
550
529
|
"references": {
|
|
551
530
|
"Placement": {
|
|
552
531
|
"location": "import",
|
|
553
|
-
"path": "
|
|
554
|
-
"id": "
|
|
532
|
+
"path": "../../utils/floating",
|
|
533
|
+
"id": "src/components/utils/floating.ts::Placement",
|
|
555
534
|
"referenceLocation": "Placement"
|
|
556
535
|
}
|
|
557
536
|
}
|
|
@@ -630,9 +609,15 @@ export class Dropdown {
|
|
|
630
609
|
"type": "unknown",
|
|
631
610
|
"mutable": false,
|
|
632
611
|
"complexType": {
|
|
633
|
-
"original": "(e
|
|
634
|
-
"resolved": "(e:
|
|
612
|
+
"original": "(e: Event | null, context: { component: Dropdown }) => void",
|
|
613
|
+
"resolved": "(e: Event, context: { component: Dropdown; }) => void",
|
|
635
614
|
"references": {
|
|
615
|
+
"Event": {
|
|
616
|
+
"location": "import",
|
|
617
|
+
"path": "@stencil/core",
|
|
618
|
+
"id": "../../node_modules/@stencil/core/internal/stencil-core/index.d.ts::Event",
|
|
619
|
+
"referenceLocation": "Event"
|
|
620
|
+
},
|
|
636
621
|
"Dropdown": {
|
|
637
622
|
"location": "global",
|
|
638
623
|
"id": "global::Dropdown"
|
|
@@ -678,14 +663,14 @@ export class Dropdown {
|
|
|
678
663
|
return {
|
|
679
664
|
"handleSelect": {
|
|
680
665
|
"complexType": {
|
|
681
|
-
"signature": "(e:
|
|
666
|
+
"signature": "(e: Event | null, { component }: DropdownSelectContext) => Promise<void>",
|
|
682
667
|
"parameters": [{
|
|
683
668
|
"name": "e",
|
|
684
|
-
"type": "
|
|
669
|
+
"type": "Event",
|
|
685
670
|
"docs": ""
|
|
686
671
|
}, {
|
|
687
672
|
"name": "__1",
|
|
688
|
-
"type": "
|
|
673
|
+
"type": "DropdownSelectContext",
|
|
689
674
|
"docs": ""
|
|
690
675
|
}],
|
|
691
676
|
"references": {
|
|
@@ -693,15 +678,25 @@ export class Dropdown {
|
|
|
693
678
|
"location": "global",
|
|
694
679
|
"id": "global::Promise"
|
|
695
680
|
},
|
|
696
|
-
"
|
|
681
|
+
"Event": {
|
|
682
|
+
"location": "import",
|
|
683
|
+
"path": "@stencil/core",
|
|
684
|
+
"id": "../../node_modules/@stencil/core/internal/stencil-core/index.d.ts::Event",
|
|
685
|
+
"referenceLocation": "Event"
|
|
686
|
+
},
|
|
687
|
+
"DropdownSelectContext": {
|
|
697
688
|
"location": "global",
|
|
698
|
-
"id": "global::
|
|
689
|
+
"id": "global::DropdownSelectContext"
|
|
699
690
|
},
|
|
700
691
|
"DropdownItem": {
|
|
701
692
|
"location": "import",
|
|
702
693
|
"path": "./dropdown-option",
|
|
703
694
|
"id": "src/components/components/xpl-dropdown/dropdown-option.ts::DropdownItem",
|
|
704
695
|
"referenceLocation": "DropdownItem"
|
|
696
|
+
},
|
|
697
|
+
"HTMLXplDropdownOptionElement": {
|
|
698
|
+
"location": "global",
|
|
699
|
+
"id": "global::HTMLXplDropdownOptionElement"
|
|
705
700
|
}
|
|
706
701
|
},
|
|
707
702
|
"return": "Promise<void>"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class DynamicTable {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.selectedItemCount = 0;
|
|
5
4
|
this.colCount = 0;
|
|
5
|
+
this.hasAccordion = false;
|
|
6
|
+
this.selectedItemCount = 0;
|
|
6
7
|
}
|
|
7
8
|
updateColumnCount() {
|
|
8
9
|
const headerCells = this.el.querySelectorAll('xpl-table-header-cell');
|
|
@@ -15,7 +16,7 @@ export class DynamicTable {
|
|
|
15
16
|
}
|
|
16
17
|
return '1fr';
|
|
17
18
|
});
|
|
18
|
-
this.el.style.setProperty('--column-widths', columnWidths.join(' '));
|
|
19
|
+
this.el.style.setProperty('--xpl-column-widths', columnWidths.join(' '));
|
|
19
20
|
this.colCount = headerCells.length;
|
|
20
21
|
}
|
|
21
22
|
listenToDeselectEvent() {
|
|
@@ -24,24 +25,13 @@ export class DynamicTable {
|
|
|
24
25
|
}
|
|
25
26
|
listenToChangeEvent() {
|
|
26
27
|
const childCheckboxes = document.querySelectorAll('.xpl-dynamic-table xpl-checkbox:not([class^="xpl-header-accordion__parent-checkbox"]) input:not([disabled])');
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
.map((checkbox) => checkbox.getAttribute('data-id'));
|
|
28
|
+
const checkedCheckboxes = Array.from(childCheckboxes).filter((checkbox) => checkbox.checked);
|
|
29
|
+
const checkedIds = checkedCheckboxes.map((checkbox) => checkbox.getAttribute('data-id') ?? '');
|
|
30
30
|
this.selectedItemCount = checkedIds.length;
|
|
31
31
|
this.selectedItemCountChange.emit(checkedIds);
|
|
32
32
|
}
|
|
33
33
|
updateRowGap() {
|
|
34
|
-
|
|
35
|
-
if (!hasHeaderAccordion) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const selectors = ['.xpl-dynamic-table', '.xpl-dynamic-table > [slot="body"]'];
|
|
39
|
-
selectors.forEach((sel) => {
|
|
40
|
-
const element = this.el.querySelector(sel);
|
|
41
|
-
if (element !== null) {
|
|
42
|
-
element.style.rowGap = '0.5rem';
|
|
43
|
-
}
|
|
44
|
-
});
|
|
34
|
+
this.hasAccordion = this.el.querySelector('xpl-header-accordion') !== null;
|
|
45
35
|
}
|
|
46
36
|
componentDidLoad() {
|
|
47
37
|
this.updateColumnCount();
|
|
@@ -51,13 +41,17 @@ export class DynamicTable {
|
|
|
51
41
|
this.updateColumnCount();
|
|
52
42
|
}
|
|
53
43
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '9fdd0a6b9adfad92d89ff30873009e08ca981124', role: "grid", class: {
|
|
45
|
+
'xpl-dynamic-table': true,
|
|
46
|
+
'xpl-dynamic-table--accordion': this.hasAccordion,
|
|
47
|
+
}, "aria-colcount": this.colCount }, h("slot", { key: 'a105d82f752d34618a0603c59f85ea9e2ee6c3dd', name: "header" }), h("slot", { key: '24817b404a5a6f50ab1f17674a85391a8645f728', name: "body" })));
|
|
55
48
|
}
|
|
56
49
|
static get is() { return "xpl-dynamic-table"; }
|
|
57
50
|
static get states() {
|
|
58
51
|
return {
|
|
59
|
-
"
|
|
60
|
-
"
|
|
52
|
+
"colCount": {},
|
|
53
|
+
"hasAccordion": {},
|
|
54
|
+
"selectedItemCount": {}
|
|
61
55
|
};
|
|
62
56
|
}
|
|
63
57
|
static get events() {
|
|
@@ -10,7 +10,7 @@ export class DynamicTableCell {
|
|
|
10
10
|
this.updateSlottedComponentsWhenDisabled();
|
|
11
11
|
}
|
|
12
12
|
updateSlottedComponentsWhenDisabled() {
|
|
13
|
-
const slottedElements = this.hostElement
|
|
13
|
+
const slottedElements = this.hostElement?.querySelectorAll('*') ?? [];
|
|
14
14
|
slottedElements.forEach((element) => {
|
|
15
15
|
if ('disabled' in element) {
|
|
16
16
|
element.disabled = this.disabled;
|
|
@@ -18,10 +18,12 @@ export class DynamicTableCell {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
const colIndex =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
const colIndex = this.el.parentElement
|
|
22
|
+
? Array.from(this.el.parentElement.children).indexOf(this.el) + 1
|
|
23
|
+
: 0;
|
|
24
|
+
return (h(Host, { key: '6a4eea3dcf826a18c24068acea56dc63261220f4', role: "gridcell", "aria-colindex": colIndex, class: "xpl-dynamic-table-cell", ref: (el) => {
|
|
25
|
+
this.hostElement = el ?? undefined;
|
|
26
|
+
} }, h("slot", { key: '138598bb74c49c32b649f0955a53cb8ea479e04f' })));
|
|
25
27
|
}
|
|
26
28
|
static get is() { return "xpl-dynamic-table-cell"; }
|
|
27
29
|
static get properties() {
|
|
@@ -15,7 +15,7 @@ export class DynamicTableRow {
|
|
|
15
15
|
this.updateRowCellsDisabledState();
|
|
16
16
|
}
|
|
17
17
|
updateRowCellsDisabledState() {
|
|
18
|
-
const cells = this.hostElement
|
|
18
|
+
const cells = this.hostElement?.querySelectorAll('xpl-dynamic-table-cell') ?? [];
|
|
19
19
|
cells.forEach((cell) => {
|
|
20
20
|
cell.disabled = this.isDisabled;
|
|
21
21
|
});
|
|
@@ -24,9 +24,9 @@ export class DynamicTableRow {
|
|
|
24
24
|
const classList = `xpl-dynamic-table-row
|
|
25
25
|
${this.isDisabled ? 'disabled' : ''}
|
|
26
26
|
${this.selected ? 'selected' : ''}`;
|
|
27
|
-
return (h(Host, { key: '
|
|
28
|
-
this.hostElement = el;
|
|
29
|
-
} }, h("slot", { key: '
|
|
27
|
+
return (h(Host, { key: '4b0e558771154ca42ab57235d9b38861831d7eeb', role: "row", class: classList, ref: (el) => {
|
|
28
|
+
this.hostElement = el ?? undefined;
|
|
29
|
+
} }, h("slot", { key: '8b2b1a78d797c9a5fcaa8b31db2a41f57335b683' })));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "xpl-dynamic-table-row"; }
|
|
32
32
|
static get properties() {
|
|
@@ -7,10 +7,10 @@ export class Grid {
|
|
|
7
7
|
let smCounter = 0;
|
|
8
8
|
let xsCounter = 0;
|
|
9
9
|
items.forEach((item) => {
|
|
10
|
-
lgCounter +=
|
|
11
|
-
mdCounter +=
|
|
12
|
-
smCounter +=
|
|
13
|
-
xsCounter +=
|
|
10
|
+
lgCounter += Number(item.getAttribute('lg')) || 6;
|
|
11
|
+
mdCounter += Number(item.getAttribute('md')) || 6;
|
|
12
|
+
smCounter += Number(item.getAttribute('sm')) || 6;
|
|
13
|
+
xsCounter += Number(item.getAttribute('xs')) || 6;
|
|
14
14
|
if (lgCounter % 6 === 0)
|
|
15
15
|
item.classList.add('xpl-grid-item-lg-last');
|
|
16
16
|
if (mdCounter % 6 === 0)
|
|
@@ -22,7 +22,7 @@ export class Grid {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return h(Host, { key: '
|
|
25
|
+
return h(Host, { key: '94440d9d2f50c8712e7e4599409101da361f66d8', class: "xpl-grid" });
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "xpl-grid"; }
|
|
28
28
|
static get elementRef() { return "container"; }
|
|
@@ -12,7 +12,7 @@ export class GridItem {
|
|
|
12
12
|
className += ` xpl-grid-item-sm-${this.sm}`;
|
|
13
13
|
className += ` xpl-grid-item-md-${this.md}`;
|
|
14
14
|
className += ` xpl-grid-item-lg-${this.lg}`;
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '0fc1d60f8f0d0df7208302a3668930afdb1dc5ba', class: className }, h("slot", { key: '0385c17beb3982d060b4e2a4bdd0fd16f924a0d3' })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "xpl-grid-item"; }
|
|
18
18
|
static get properties() {
|
|
@@ -12,38 +12,26 @@ export class HeaderAccordion {
|
|
|
12
12
|
this.expanded = !this.expanded;
|
|
13
13
|
};
|
|
14
14
|
this.handleParentCheckboxChange = (checked) => {
|
|
15
|
-
var _a;
|
|
16
15
|
this.parentChecked = checked;
|
|
17
16
|
this.parentIndeterminate = false;
|
|
18
|
-
const childCheckboxes =
|
|
19
|
-
childCheckboxes
|
|
17
|
+
const childCheckboxes = this.el?.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');
|
|
18
|
+
childCheckboxes?.forEach((checkbox) => {
|
|
20
19
|
checkbox.checked = checked;
|
|
21
20
|
});
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
|
-
applyBorderRadiusToLastRow() {
|
|
25
|
-
var _a;
|
|
26
|
-
if (this.expanded) {
|
|
27
|
-
const rows = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('xpl-dynamic-table-row');
|
|
28
|
-
const lastRow = rows[rows.length - 1];
|
|
29
|
-
const cells = lastRow === null || lastRow === void 0 ? void 0 : lastRow.querySelectorAll('xpl-dynamic-table-cell');
|
|
30
|
-
cells[0].style.borderBottomLeftRadius = '0.5rem';
|
|
31
|
-
cells[cells.length - 1].style.borderBottomRightRadius = '0.5rem';
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
23
|
watchSelectedCount(selectedCount, _previousCount) {
|
|
35
24
|
if (selectedCount > -1) {
|
|
36
25
|
this.updateParentCheckbox(selectedCount);
|
|
37
26
|
}
|
|
38
27
|
}
|
|
39
28
|
updateParentCheckbox(selectedCount) {
|
|
40
|
-
|
|
41
|
-
const childCheckboxes = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');
|
|
29
|
+
const childCheckboxes = this.el?.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');
|
|
42
30
|
if (selectedCount === 0) {
|
|
43
31
|
this.parentChecked = false;
|
|
44
32
|
this.parentIndeterminate = false;
|
|
45
33
|
}
|
|
46
|
-
else if (selectedCount === childCheckboxes
|
|
34
|
+
else if (selectedCount === (childCheckboxes?.length ?? 0)) {
|
|
47
35
|
this.parentChecked = true;
|
|
48
36
|
this.parentIndeterminate = false;
|
|
49
37
|
}
|
|
@@ -53,10 +41,9 @@ export class HeaderAccordion {
|
|
|
53
41
|
}
|
|
54
42
|
}
|
|
55
43
|
handleChildCheckboxChange() {
|
|
56
|
-
var _a;
|
|
57
44
|
if (this.selectedCount === -1) {
|
|
58
|
-
const childCheckboxes =
|
|
59
|
-
const checkedCount = Array.from(childCheckboxes).filter((checkbox) => checkbox.checked).length;
|
|
45
|
+
const childCheckboxes = this.el?.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');
|
|
46
|
+
const checkedCount = Array.from(childCheckboxes ?? []).filter((checkbox) => checkbox.checked).length;
|
|
60
47
|
this.updateParentCheckbox(checkedCount);
|
|
61
48
|
}
|
|
62
49
|
}
|
|
@@ -64,11 +51,8 @@ export class HeaderAccordion {
|
|
|
64
51
|
const initialCheckoxesValue = this.selectedCount > -1 ? this.selectedCount : 0;
|
|
65
52
|
this.updateParentCheckbox(initialCheckoxesValue);
|
|
66
53
|
}
|
|
67
|
-
componentWillRender() {
|
|
68
|
-
this.applyBorderRadiusToLastRow();
|
|
69
|
-
}
|
|
70
54
|
render() {
|
|
71
|
-
return (h(Host, { key: '
|
|
55
|
+
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" }))));
|
|
72
56
|
}
|
|
73
57
|
static get is() { return "xpl-header-accordion"; }
|
|
74
58
|
static get properties() {
|