@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
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
var v4 = require('./v4-_2BfiRUa.js');
|
|
5
|
+
var index$1 = require('./index-BvmWjxWc.js');
|
|
6
|
+
var lifecycle = require('./lifecycle-DeSsFfQZ.js');
|
|
7
|
+
|
|
8
|
+
const Input = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.blurEvent = index.createEvent(this, "blurEvent", 7);
|
|
12
|
+
this.focusEvent = index.createEvent(this, "focusEvent", 7);
|
|
13
|
+
this.inputEvent = index.createEvent(this, "inputEvent", 7);
|
|
14
|
+
this.search = index.createEvent(this, "search", 7);
|
|
15
|
+
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
16
|
+
this.multiline = false;
|
|
17
|
+
this.dateFormat = 'Y-m-d';
|
|
18
|
+
this.timeFormat = '24h';
|
|
19
|
+
this.allowCustomOption = false;
|
|
20
|
+
this.mode = 'single';
|
|
21
|
+
this.accept = '';
|
|
22
|
+
this.multiple = false;
|
|
23
|
+
this.hideTriggerOnSelect = false;
|
|
24
|
+
this.hideFileNames = false;
|
|
25
|
+
this.hideAcceptText = false;
|
|
26
|
+
this.defaultCountry = 'US';
|
|
27
|
+
this.isInternational = true;
|
|
28
|
+
this.ariaLabel = '';
|
|
29
|
+
this.type = 'text';
|
|
30
|
+
this.handleChildValueChange = (event) => {
|
|
31
|
+
event.stopPropagation();
|
|
32
|
+
this.valueChange.emit(event.detail);
|
|
33
|
+
};
|
|
34
|
+
this.valueChanged = (event) => {
|
|
35
|
+
const target = event.target;
|
|
36
|
+
this.valueChange.emit(target.value);
|
|
37
|
+
};
|
|
38
|
+
this.characterCount = 0;
|
|
39
|
+
this.passwordVisible = false;
|
|
40
|
+
this.hasPreSlotContent = false;
|
|
41
|
+
this.handleBlur = (ev) => {
|
|
42
|
+
this.blurEvent.emit(ev);
|
|
43
|
+
};
|
|
44
|
+
this.handleFocus = (ev) => {
|
|
45
|
+
this.focusEvent.emit(ev);
|
|
46
|
+
};
|
|
47
|
+
this.handleInput = (ev) => {
|
|
48
|
+
if (this.multiline) {
|
|
49
|
+
this.updateCharacterCount();
|
|
50
|
+
}
|
|
51
|
+
const { value } = ev.target;
|
|
52
|
+
this.inputEvent.emit(value);
|
|
53
|
+
};
|
|
54
|
+
this.handleSearchBlurForward = (event) => {
|
|
55
|
+
const { detail } = event;
|
|
56
|
+
if (!detail) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
event.stopPropagation();
|
|
60
|
+
this.blurEvent.emit(detail);
|
|
61
|
+
};
|
|
62
|
+
this.handleSearchCommit = (event) => {
|
|
63
|
+
event.stopPropagation();
|
|
64
|
+
this.search.emit(event.detail);
|
|
65
|
+
};
|
|
66
|
+
this.handleSearchFocusForward = (event) => {
|
|
67
|
+
const { detail } = event;
|
|
68
|
+
if (!detail) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
event.stopPropagation();
|
|
72
|
+
this.focusEvent.emit(detail);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
connectedCallback() {
|
|
76
|
+
this.syncPreSlotContent();
|
|
77
|
+
this.connectPreSlotObserver();
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() {
|
|
80
|
+
if (this.preSlotSyncTimeoutId !== undefined) {
|
|
81
|
+
clearTimeout(this.preSlotSyncTimeoutId);
|
|
82
|
+
this.preSlotSyncTimeoutId = undefined;
|
|
83
|
+
}
|
|
84
|
+
this.disconnectPreSlotObserver();
|
|
85
|
+
}
|
|
86
|
+
componentWillLoad() {
|
|
87
|
+
if (this._id === undefined || this._id === null || this._id === '')
|
|
88
|
+
this._id = v4.v4();
|
|
89
|
+
if (this.multiline && this.maxCharacterCount !== undefined) {
|
|
90
|
+
this.characterCount = this.value !== undefined ? this.value.length : 0;
|
|
91
|
+
}
|
|
92
|
+
this.syncPreSlotContent();
|
|
93
|
+
}
|
|
94
|
+
componentWillRender() {
|
|
95
|
+
this.disconnectPreSlotObserver();
|
|
96
|
+
}
|
|
97
|
+
componentDidRender() {
|
|
98
|
+
this.schedulePreSlotSync();
|
|
99
|
+
}
|
|
100
|
+
async setFocus() {
|
|
101
|
+
if (this.type === 'search') {
|
|
102
|
+
await this.searchInputRef?.setFocus();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
this.input?.focus();
|
|
106
|
+
}
|
|
107
|
+
connectPreSlotObserver() {
|
|
108
|
+
this.disconnectPreSlotObserver();
|
|
109
|
+
if (this.multiline || this.type === 'search' || typeof MutationObserver === 'undefined') {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
this.preSlotObserver = new MutationObserver(() => {
|
|
113
|
+
this.schedulePreSlotSync();
|
|
114
|
+
});
|
|
115
|
+
this.preSlotObserver.observe(this.el, {
|
|
116
|
+
childList: true,
|
|
117
|
+
subtree: true,
|
|
118
|
+
attributes: true,
|
|
119
|
+
attributeFilter: ['slot'],
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
disconnectPreSlotObserver() {
|
|
123
|
+
this.preSlotObserver?.disconnect();
|
|
124
|
+
this.preSlotObserver = undefined;
|
|
125
|
+
}
|
|
126
|
+
schedulePreSlotSync() {
|
|
127
|
+
if (this.preSlotSyncTimeoutId !== undefined) {
|
|
128
|
+
clearTimeout(this.preSlotSyncTimeoutId);
|
|
129
|
+
}
|
|
130
|
+
this.preSlotSyncTimeoutId = setTimeout(() => {
|
|
131
|
+
this.preSlotSyncTimeoutId = undefined;
|
|
132
|
+
if (!this.el.isConnected) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.syncPreSlotContent();
|
|
136
|
+
this.connectPreSlotObserver();
|
|
137
|
+
}, 0);
|
|
138
|
+
}
|
|
139
|
+
syncPreSlotContent() {
|
|
140
|
+
if (this.multiline || this.type === 'search') {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const next = Array.from(this.el.querySelectorAll('[slot="pre"]')).some((node) => node.closest('xpl-input') === this.el);
|
|
144
|
+
if (next !== this.hasPreSlotContent) {
|
|
145
|
+
this.hasPreSlotContent = next;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
updateCharacterCount() {
|
|
149
|
+
this.characterCount = this.input?.value.length ?? 0;
|
|
150
|
+
}
|
|
151
|
+
renderInput() {
|
|
152
|
+
switch (this.type) {
|
|
153
|
+
case 'file':
|
|
154
|
+
return (index.h("xpl-input-file", { accept: this.accept, disabled: this.disabled, hideAcceptText: this.hideAcceptText, hideFileNames: this.hideFileNames, hideTriggerOnSelect: this.hideTriggerOnSelect, multiple: this.multiple, name: this.name, onInputChange: this.handleChildValueChange, _id: this._id }, index.h("slot", { name: "trigger" })));
|
|
155
|
+
case 'color':
|
|
156
|
+
return (index.h("xpl-input-color", { disabled: this.disabled, value: this.value, placeholder: this.placeholder, required: this.required, hideEyeDropper: this.hideEyeDropper, onInputChange: this.handleChildValueChange }));
|
|
157
|
+
case 'date':
|
|
158
|
+
return (index.h("xpl-input-date", { inputId: this._id, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, post: this.post, pre: this.pre, max: this.max, min: this.min, dateFormat: this.dateFormat, mode: this.mode, onValueChange: this.handleChildValueChange }));
|
|
159
|
+
case 'time':
|
|
160
|
+
return (index.h("xpl-input-time", { inputId: this._id, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, max: this.max, min: this.min, step: this.step, mode: this.mode, timeFormat: this.timeFormat, allowCustomOption: this.allowCustomOption, onValueChange: this.handleChildValueChange }));
|
|
161
|
+
case 'phone':
|
|
162
|
+
return (index.h("xpl-input-phone", { inputId: this._id, disabled: this.disabled, error: this.error !== undefined, name: this.name, required: this.required, readonly: this.readonly, value: this.value, placeholder: this.placeholder, defaultCountry: this.defaultCountry, preferredCountries: this.preferredCountries, isInternational: this.isInternational, onValueChange: this.handleChildValueChange }));
|
|
163
|
+
case 'search': {
|
|
164
|
+
const hasVisibleLabel = Boolean((this.label ?? '').trim());
|
|
165
|
+
const hasError = this.error !== undefined;
|
|
166
|
+
const hasErrorMessage = hasError && (this.error?.length ?? 0) > 0;
|
|
167
|
+
return (index.h("xpl-input-search", { ariaLabel: (this.ariaLabel ?? '').trim() || 'Search', autocomplete: this.autocomplete ?? 'off', disabled: this.disabled, errorMessageId: hasErrorMessage ? `${this._id}-error` : undefined, hasError: hasError, hasVisibleLabel: hasVisibleLabel, inputId: this._id ?? '', name: this.name, onBlurEvent: this.handleSearchBlurForward, onFocusEvent: this.handleSearchFocusForward, onSearch: this.handleSearchCommit, onValueChange: this.handleChildValueChange, placeholder: this.placeholder ?? 'Search', readonly: this.readonly, ref: (el) => {
|
|
168
|
+
this.searchInputRef = el ?? undefined;
|
|
169
|
+
}, required: this.required, shape: this.shape ?? 'rounded', value: this.value ?? '' }));
|
|
170
|
+
}
|
|
171
|
+
default:
|
|
172
|
+
return (index.h("div", { class: "xpl-input-wrapper" }, !this.multiline && (index.h("label", { class: {
|
|
173
|
+
'xpl-input-pre': true,
|
|
174
|
+
'xpl-input-pre--hidden': !this.pre && !this.hasPreSlotContent,
|
|
175
|
+
}, htmlFor: this._id }, index.h("slot", { name: "pre" }, this.pre))), !this.multiline ? (index.h("input", { autocomplete: this.autocomplete, disabled: this.disabled, id: this._id, max: this.max, min: this.min, name: this.name, placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
|
|
176
|
+
this.input = el ?? undefined;
|
|
177
|
+
}, required: this.required, step: this.step, type: this.type, value: this.value, onChange: this.valueChanged, onFocus: this.handleFocus, onBlur: this.handleBlur, onInput: this.handleInput })) : (index.h("textarea", { disabled: this.disabled, id: this._id, name: this.name, placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
|
|
178
|
+
this.input = el ?? undefined;
|
|
179
|
+
}, required: this.required, onChange: this.valueChanged, onFocus: this.handleFocus, onBlur: this.handleBlur, onInput: this.handleInput }, this.value)), this.type === 'password' && (index.h("button", { "aria-label": "Toggle password visibility", class: "xpl-input-password", onClick: () => {
|
|
180
|
+
this.passwordVisible = !this.passwordVisible;
|
|
181
|
+
}, role: "presentation" }, index.h("xpl-icon", { icon: this.passwordVisible ? 'eye-closed' : 'eye', size: 24 }))), this.post && !this.multiline && (index.h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)), this.multiline && this.maxCharacterCount !== undefined && (index.h("span", { class: "xpl-input-characters" }, this.characterCount, "/", this.maxCharacterCount))));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
render() {
|
|
185
|
+
let hasError = false;
|
|
186
|
+
if (this.error !== undefined) {
|
|
187
|
+
hasError = true;
|
|
188
|
+
}
|
|
189
|
+
else if (this.multiline &&
|
|
190
|
+
this.maxCharacterCount !== undefined &&
|
|
191
|
+
this.characterCount > this.maxCharacterCount) {
|
|
192
|
+
hasError = true;
|
|
193
|
+
}
|
|
194
|
+
return (index.h(index.Host, { key: '94a5e19a36756ac43ebbe6d3996a2ffbf475da24', class: {
|
|
195
|
+
'xpl-input': true,
|
|
196
|
+
'xpl-input--disabled': !!this.disabled,
|
|
197
|
+
'xpl-input--error': hasError,
|
|
198
|
+
'xpl-input--readonly': !!this.readonly,
|
|
199
|
+
[`xpl-input--${this.type}`]: true,
|
|
200
|
+
} }, this.label && (index.h("label", { key: 'd41b5e5245483e2ea235c910f85cd6a21b100dec', class: "xpl-input-label", htmlFor: this._id }, this.label, this.description && index.h("small", { key: 'c9d55823b8b97678b2f5f4374446c3693e6dceaa' }, this.description))), this.renderInput(), (this.error?.length ?? 0) > 0 && (index.h("label", { key: '20e5a1d2af06e571f0757aa60633438f79a6a17d', class: "xpl-input-error", htmlFor: this._id, id: `${this._id}-error` }, index.h("xpl-icon", { key: 'a193ee5f1d3e0d8479fa8dfd66ab27edeb400d30', icon: "circle-warning", size: 16 }), index.h("span", { key: 'acf686fe036d1a1e9cb944ff773dda86e90ff39a' }, this.error)))));
|
|
201
|
+
}
|
|
202
|
+
get el() { return index.getElement(this); }
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
function isInsideFixedPosition(element) {
|
|
206
|
+
if (!lifecycle.isBrowser()) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
let el = element.parentElement;
|
|
210
|
+
while (el && el !== document.body && el !== document.documentElement) {
|
|
211
|
+
if (getComputedStyle(el).position === 'fixed') {
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
el = el.parentElement;
|
|
215
|
+
}
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
function getNearestScrollableAncestor(element) {
|
|
219
|
+
if (!lifecycle.isBrowser()) {
|
|
220
|
+
return undefined;
|
|
221
|
+
}
|
|
222
|
+
let el = element.parentElement;
|
|
223
|
+
while (el && el !== document.body && el !== document.documentElement) {
|
|
224
|
+
const style = getComputedStyle(el);
|
|
225
|
+
const overflow = style.overflow + style.overflowX + style.overflowY;
|
|
226
|
+
if (/auto|scroll/.test(overflow)) {
|
|
227
|
+
return el;
|
|
228
|
+
}
|
|
229
|
+
el = el.parentElement;
|
|
230
|
+
}
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const arrowSvg = (rotate = false) => `<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="${rotate
|
|
235
|
+
? 'M0.557948 5.6813L6.06209 0.132167C6.23831 -0.0440556 6.52327 -0.0440556 6.69949 0.132167L7.44187 0.874551C7.61809 1.05077 7.61809 1.33573 7.44187 1.51195L2.99882 6L7.44187 10.488C7.61809 10.6643 7.61809 10.9492 7.44187 11.1254L6.69949 11.8678C6.52327 12.0441 6.23831 12.0441 6.06209 11.8678L0.557948 6.3187C0.381726 6.14248 0.381726 5.85752 0.557948 5.6813Z'
|
|
236
|
+
: 'M7.44187 6.3187L1.93773 11.8678C1.76151 12.0441 1.47655 12.0441 1.30033 11.8678L0.557948 11.1254C0.381726 10.9492 0.381726 10.6643 0.557948 10.488L5.001 6L0.557948 1.51195C0.381726 1.33573 0.381726 1.05077 0.557948 0.874551L1.30033 0.132167C1.47655 -0.0440556 1.76151 -0.0440556 1.93773 0.132167L7.44187 5.6813C7.6181 5.85752 7.6181 6.14248 7.44187 6.3187Z'}" /></svg>`;
|
|
237
|
+
const InputDate = class {
|
|
238
|
+
constructor(hostRef) {
|
|
239
|
+
index.registerInstance(this, hostRef);
|
|
240
|
+
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
241
|
+
this.hasErrorStateChanged = index.createEvent(this, "hasErrorStateChanged", 7);
|
|
242
|
+
this.rangeSelected = index.createEvent(this, "rangeSelected", 7);
|
|
243
|
+
this.dateFormat = 'Y-m-d';
|
|
244
|
+
this.mode = 'single';
|
|
245
|
+
this.flatpickrStaticLayout = false;
|
|
246
|
+
this.valueChanged = (event) => {
|
|
247
|
+
const target = event.target;
|
|
248
|
+
this.valueChange.emit(target.value);
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
onHasErrorStateChanged(newValue) {
|
|
252
|
+
this.hasErrorStateChanged.emit(newValue);
|
|
253
|
+
}
|
|
254
|
+
onValueChanged(newValue) {
|
|
255
|
+
this.flatpickrInstance?.setDate(newValue);
|
|
256
|
+
}
|
|
257
|
+
connectedCallback() {
|
|
258
|
+
queueMicrotask(() => this.ensureFlatpickr());
|
|
259
|
+
}
|
|
260
|
+
disconnectedCallback() {
|
|
261
|
+
this.flatpickrInstance?.destroy();
|
|
262
|
+
this.flatpickrInstance = undefined;
|
|
263
|
+
this.flatpickrStaticLayout = false;
|
|
264
|
+
this.unwrapStaleFlatpickrWrapper();
|
|
265
|
+
}
|
|
266
|
+
componentDidRender() {
|
|
267
|
+
this.ensureFlatpickr();
|
|
268
|
+
}
|
|
269
|
+
ensureFlatpickr() {
|
|
270
|
+
if (!lifecycle.isBrowser()) {
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
if (this.flatpickrInstance || !this.input || !this.el.isConnected) {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
this.unwrapStaleFlatpickrWrapper();
|
|
277
|
+
this.initFlatpickr();
|
|
278
|
+
}
|
|
279
|
+
initFlatpickr() {
|
|
280
|
+
const { input } = this;
|
|
281
|
+
if (!input) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
const insideFixed = isInsideFixedPosition(this.el);
|
|
285
|
+
this.flatpickrInstance = index$1.flatpickr(input, {
|
|
286
|
+
allowInput: true,
|
|
287
|
+
...(insideFixed
|
|
288
|
+
? { static: true }
|
|
289
|
+
: { appendTo: getNearestScrollableAncestor(this.el) }),
|
|
290
|
+
dateFormat: this.dateFormat,
|
|
291
|
+
defaultDate: this.value,
|
|
292
|
+
maxDate: this.max,
|
|
293
|
+
minDate: this.min,
|
|
294
|
+
mode: this.mode,
|
|
295
|
+
nextArrow: arrowSvg(),
|
|
296
|
+
prevArrow: arrowSvg(true),
|
|
297
|
+
onClose: (selectedDates) => {
|
|
298
|
+
const minRequiredDates = !this.required ? 0 : this.mode === 'single' ? 1 : 2;
|
|
299
|
+
this.hasErrorState = selectedDates.length < minRequiredDates ? 'required' : null;
|
|
300
|
+
if (selectedDates.length === 2) {
|
|
301
|
+
const [start, end] = selectedDates;
|
|
302
|
+
this.rangeSelected.emit({
|
|
303
|
+
start,
|
|
304
|
+
end,
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
queueMicrotask(() => {
|
|
310
|
+
if (this.flatpickrStaticLayout !== insideFixed) {
|
|
311
|
+
this.flatpickrStaticLayout = insideFixed;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
unwrapStaleFlatpickrWrapper() {
|
|
316
|
+
const { input } = this;
|
|
317
|
+
const wrapper = input?.parentElement;
|
|
318
|
+
if (!wrapper?.classList.contains('flatpickr-wrapper')) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const parent = wrapper.parentElement;
|
|
322
|
+
if (!parent) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
while (wrapper.firstChild) {
|
|
326
|
+
parent.insertBefore(wrapper.firstChild, wrapper);
|
|
327
|
+
}
|
|
328
|
+
parent.removeChild(wrapper);
|
|
329
|
+
}
|
|
330
|
+
render() {
|
|
331
|
+
return (index.h(index.Host, { key: '768d9bffdb7431a48824590f9ae61f8e77735e98', class: {
|
|
332
|
+
'xpl-input-date': true,
|
|
333
|
+
[`xpl-input-date--mode-${this.mode}`]: true,
|
|
334
|
+
'xpl-input-date--error': !!this.hasErrorState,
|
|
335
|
+
'xpl-input-date--flatpickr-static': this.flatpickrStaticLayout,
|
|
336
|
+
} }, index.h("div", { key: '5b3421bad3bc8474b3724fc7a4287ccf98bd1ba5', class: "xpl-input-wrapper" }, this.pre && (index.h("label", { key: 'f0e88d0052247c15decc6de2635db1fb847fdd94', class: "xpl-input-pre", htmlFor: this.inputId }, this.pre)), index.h("input", { key: '251ddfab7140c7a13fd2ef36d7baefe81ed3e716', type: "date", id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, ref: (el) => {
|
|
337
|
+
this.input = el ?? undefined;
|
|
338
|
+
}, onChange: (event) => {
|
|
339
|
+
this.valueChanged(event);
|
|
340
|
+
} }), index.h("xpl-icon", { key: '6828c8024496963a2a480091a40326154e21d1f5', class: "xpl-input-calendar", icon: "calendar", size: 24 }), this.post && (index.h("label", { key: 'e08267b6ffc0d605b557e69784b54757621182c7', class: "xpl-input-post", htmlFor: this.inputId }, this.post)))));
|
|
341
|
+
}
|
|
342
|
+
get el() { return index.getElement(this); }
|
|
343
|
+
static get watchers() { return {
|
|
344
|
+
"hasErrorState": [{
|
|
345
|
+
"onHasErrorStateChanged": 0
|
|
346
|
+
}],
|
|
347
|
+
"value": [{
|
|
348
|
+
"onValueChanged": 0
|
|
349
|
+
}]
|
|
350
|
+
}; }
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
const InputFile = class {
|
|
354
|
+
constructor(hostRef) {
|
|
355
|
+
index.registerInstance(this, hostRef);
|
|
356
|
+
this.inputChange = index.createEvent(this, "inputChange", 7);
|
|
357
|
+
this.accept = '';
|
|
358
|
+
this.multiple = false;
|
|
359
|
+
this.hideTriggerOnSelect = false;
|
|
360
|
+
this.hideFileNames = false;
|
|
361
|
+
this.hideAcceptText = false;
|
|
362
|
+
this.files = null;
|
|
363
|
+
this.openFileDialog = () => {
|
|
364
|
+
if (this.disabled) {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
this.fileInput?.click();
|
|
368
|
+
};
|
|
369
|
+
this.handleFileChange = (event) => {
|
|
370
|
+
const target = event.target;
|
|
371
|
+
this.files = target.files ? Array.from(target.files) : null;
|
|
372
|
+
};
|
|
373
|
+
this.onRemoveFileByIndex = (fileIndex) => {
|
|
374
|
+
this.files = (this.files ?? []).filter((_, i) => i !== fileIndex);
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
onFilesChange(newFiles) {
|
|
378
|
+
this.inputChange.emit({
|
|
379
|
+
type: 'file',
|
|
380
|
+
value: newFiles,
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
async removeFileByIndex(fileIndex) {
|
|
384
|
+
this.onRemoveFileByIndex(fileIndex);
|
|
385
|
+
}
|
|
386
|
+
render() {
|
|
387
|
+
return (index.h(index.Host, { key: 'baa52af5a8ee6222ff745cece6e59d9480165af6', class: {
|
|
388
|
+
'xpl-input-file': true,
|
|
389
|
+
'xpl-input-file--hide-trigger-on-select': !!this.hideTriggerOnSelect,
|
|
390
|
+
'xpl-input-file--disabled': !!this.disabled,
|
|
391
|
+
} }, index.h("span", { key: '802ed05f26bd1e2a618f5e09bea7370fe69a4718', class: {
|
|
392
|
+
'xpl-input-file__trigger-wrapper': true,
|
|
393
|
+
'xpl-input-file__trigger-wrapper--hidden': !!this.hideTriggerOnSelect && (this.files?.length ?? 0) > 0,
|
|
394
|
+
}, role: "button", tabIndex: 0, onClick: this.openFileDialog }, index.h("slot", { key: '487381f2b34d2ad528f1b32f976e5513c1e29c11', name: "trigger" })), (this.files?.length ?? 0) > 0 && !this.hideFileNames && (index.h("ul", { key: 'fe7b503a89a65af02cbb39b93b518b2dde790a34', class: "xpl-input-file__file-list" }, (this.files ?? []).map((file, fileIndex) => (index.h("li", { class: "xpl-input-file__file-item" }, index.h("span", { class: "xpl-input-file__file-name" }, file.name), index.h("xpl-icon", { icon: "x-circle", size: 24, onClick: (e) => {
|
|
395
|
+
e.preventDefault();
|
|
396
|
+
e.stopPropagation();
|
|
397
|
+
this.onRemoveFileByIndex(fileIndex);
|
|
398
|
+
}, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (index.h("span", { key: '6e5e54426f2b33858b374d09014ec0096fa43bb4', class: "xpl-input-file__accept" }, "Accepted file types: ", this.accept)), index.h("input", { key: '81d08e97d8d2c8a59640348e295261f9acd439cc', onChange: this.handleFileChange, type: "file", ref: (el) => {
|
|
399
|
+
this.fileInput = el ?? undefined;
|
|
400
|
+
}, hidden: true, accept: this.accept, multiple: this.multiple, name: this.name })));
|
|
401
|
+
}
|
|
402
|
+
get el() { return index.getElement(this); }
|
|
403
|
+
static get watchers() { return {
|
|
404
|
+
"files": [{
|
|
405
|
+
"onFilesChange": 0
|
|
406
|
+
}]
|
|
407
|
+
}; }
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
const InputSearch = class {
|
|
411
|
+
constructor(hostRef) {
|
|
412
|
+
index.registerInstance(this, hostRef);
|
|
413
|
+
this.blurEvent = index.createEvent(this, "blurEvent", 7);
|
|
414
|
+
this.focusEvent = index.createEvent(this, "focusEvent", 7);
|
|
415
|
+
this.inputEvent = index.createEvent(this, "inputEvent", 7);
|
|
416
|
+
this.search = index.createEvent(this, "search", 7);
|
|
417
|
+
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
418
|
+
this.hasAncestorForm = false;
|
|
419
|
+
this.ariaLabel = 'Search';
|
|
420
|
+
this.autocomplete = 'off';
|
|
421
|
+
this.disabled = false;
|
|
422
|
+
this.hasError = false;
|
|
423
|
+
this.hasVisibleLabel = false;
|
|
424
|
+
this.placeholder = 'Search';
|
|
425
|
+
this.readonly = false;
|
|
426
|
+
this.required = false;
|
|
427
|
+
this.shape = 'rounded';
|
|
428
|
+
this.value = '';
|
|
429
|
+
this.handleInnerFormSubmit = (event) => {
|
|
430
|
+
event.preventDefault();
|
|
431
|
+
if (this.disabled || this.readonly) {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
this.emitSearchCommit(this.value.trim());
|
|
435
|
+
};
|
|
436
|
+
this.handleClear = (event) => {
|
|
437
|
+
event.preventDefault();
|
|
438
|
+
if (this.disabled || this.readonly) {
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
this.value = '';
|
|
442
|
+
this.valueChange.emit('');
|
|
443
|
+
this.inputEvent.emit('');
|
|
444
|
+
this.inputEl?.focus();
|
|
445
|
+
};
|
|
446
|
+
this.handleInput = (event) => {
|
|
447
|
+
const target = event.target;
|
|
448
|
+
this.value = target.value;
|
|
449
|
+
this.valueChange.emit(target.value);
|
|
450
|
+
this.inputEvent.emit(target.value);
|
|
451
|
+
};
|
|
452
|
+
this.handleKeyDown = (event) => {
|
|
453
|
+
if (event.key !== 'Enter')
|
|
454
|
+
return;
|
|
455
|
+
if (this.disabled || this.readonly) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
const input = event.target;
|
|
459
|
+
if (input.form) {
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
event.preventDefault();
|
|
463
|
+
this.emitSearchCommit(this.value.trim());
|
|
464
|
+
};
|
|
465
|
+
this.handleFocus = (event) => {
|
|
466
|
+
this.focusEvent.emit(event);
|
|
467
|
+
};
|
|
468
|
+
this.handleBlur = (event) => {
|
|
469
|
+
this.blurEvent.emit(event);
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
connectedCallback() {
|
|
473
|
+
this.syncAncestorFormFlag();
|
|
474
|
+
}
|
|
475
|
+
async setFocus() {
|
|
476
|
+
this.inputEl?.focus();
|
|
477
|
+
}
|
|
478
|
+
syncAncestorFormFlag() {
|
|
479
|
+
const root = this.el;
|
|
480
|
+
const next = Boolean(root && typeof root.closest === 'function' && root.closest('form'));
|
|
481
|
+
if (this.hasAncestorForm !== next) {
|
|
482
|
+
this.hasAncestorForm = next;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
get hasValue() {
|
|
486
|
+
return this.value !== undefined && this.value.length > 0;
|
|
487
|
+
}
|
|
488
|
+
get resolvedInputAriaLabel() {
|
|
489
|
+
if (this.hasVisibleLabel) {
|
|
490
|
+
return undefined;
|
|
491
|
+
}
|
|
492
|
+
return (this.ariaLabel ?? '').trim() || 'Search';
|
|
493
|
+
}
|
|
494
|
+
get rendersInnerSearchForm() {
|
|
495
|
+
return !this.hasAncestorForm;
|
|
496
|
+
}
|
|
497
|
+
emitSearchCommit(detail) {
|
|
498
|
+
this.search.emit(detail);
|
|
499
|
+
}
|
|
500
|
+
renderShell() {
|
|
501
|
+
const shell = (index.h("div", { class: "xpl-input-search__shell" }, index.h("span", { class: "xpl-input-search__icon", "aria-hidden": "true" }, index.h("xpl-icon", { icon: "magnifier", size: 20 })), index.h("input", { "aria-describedby": this.hasError ? this.errorMessageId : undefined, "aria-invalid": this.hasError ? 'true' : undefined, "aria-label": this.resolvedInputAriaLabel, autocomplete: this.autocomplete, class: "xpl-input-search__input", disabled: this.disabled, id: this.inputId, name: this.name, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
|
|
502
|
+
this.inputEl = el ?? undefined;
|
|
503
|
+
}, required: this.required, role: "searchbox", type: "text", value: this.value }), index.h("button", { "aria-hidden": this.hasValue ? undefined : 'true', "aria-label": "Clear search", class: "xpl-input-search__clear", disabled: this.disabled || this.readonly, onClick: this.handleClear, type: "button" }, index.h("xpl-icon", { icon: "circle-xmark", size: 16 }))));
|
|
504
|
+
if (this.rendersInnerSearchForm) {
|
|
505
|
+
return (index.h("form", { class: "xpl-input-search__form", onSubmit: this.handleInnerFormSubmit }, shell));
|
|
506
|
+
}
|
|
507
|
+
return shell;
|
|
508
|
+
}
|
|
509
|
+
render() {
|
|
510
|
+
return (index.h(index.Host, { key: '4a152d3a8db620391334488e1c6c3cdbe9250ba3', class: {
|
|
511
|
+
'xpl-input-search': true,
|
|
512
|
+
'xpl-input-search--disabled': this.disabled,
|
|
513
|
+
'xpl-input-search--error': this.hasError,
|
|
514
|
+
'xpl-input-search--has-value': this.hasValue,
|
|
515
|
+
'xpl-input-search--readonly': this.readonly,
|
|
516
|
+
'xpl-input-search--shape-box': this.shape === 'box',
|
|
517
|
+
} }, this.renderShell()));
|
|
518
|
+
}
|
|
519
|
+
get el() { return index.getElement(this); }
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
exports.xpl_input = Input;
|
|
523
|
+
exports.xpl_input_date = InputDate;
|
|
524
|
+
exports.xpl_input_file = InputFile;
|
|
525
|
+
exports.xpl_input_search = InputSearch;
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-3cBvw409.js');
|
|
4
|
+
var slotPresence = require('./slot-presence-HmQUW2Ba.js');
|
|
4
5
|
|
|
6
|
+
const GRAPH_CONTENT_SLOT = 'graph-content';
|
|
5
7
|
const LargeCard = class {
|
|
6
8
|
constructor(hostRef) {
|
|
7
9
|
index.registerInstance(this, hostRef);
|
|
10
|
+
this.graphContentPresent = false;
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
this.syncGraphContentSlot();
|
|
14
|
+
this.connectGraphContentSlotObserver();
|
|
15
|
+
}
|
|
16
|
+
disconnectedCallback() {
|
|
17
|
+
if (this.graphContentSlotSyncTimeoutId !== undefined) {
|
|
18
|
+
clearTimeout(this.graphContentSlotSyncTimeoutId);
|
|
19
|
+
this.graphContentSlotSyncTimeoutId = undefined;
|
|
20
|
+
}
|
|
21
|
+
this.disconnectGraphContentSlotObserver();
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.syncGraphContentSlot();
|
|
8
25
|
}
|
|
9
26
|
componentDidLoad() {
|
|
10
27
|
if (this.link) {
|
|
@@ -16,10 +33,52 @@ const LargeCard = class {
|
|
|
16
33
|
anchorEl.appendChild(anchorSpan);
|
|
17
34
|
}
|
|
18
35
|
}
|
|
36
|
+
componentWillRender() {
|
|
37
|
+
this.disconnectGraphContentSlotObserver();
|
|
38
|
+
}
|
|
39
|
+
componentDidRender() {
|
|
40
|
+
this.scheduleGraphContentSlotSync();
|
|
41
|
+
}
|
|
42
|
+
connectGraphContentSlotObserver() {
|
|
43
|
+
this.disconnectGraphContentSlotObserver();
|
|
44
|
+
if (typeof MutationObserver === 'undefined') {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.graphContentSlotObserver = new MutationObserver(() => {
|
|
48
|
+
this.scheduleGraphContentSlotSync();
|
|
49
|
+
});
|
|
50
|
+
this.graphContentSlotObserver.observe(this.el, {
|
|
51
|
+
childList: true,
|
|
52
|
+
subtree: true,
|
|
53
|
+
attributes: true,
|
|
54
|
+
attributeFilter: ['slot'],
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
disconnectGraphContentSlotObserver() {
|
|
58
|
+
this.graphContentSlotObserver?.disconnect();
|
|
59
|
+
this.graphContentSlotObserver = undefined;
|
|
60
|
+
}
|
|
61
|
+
scheduleGraphContentSlotSync() {
|
|
62
|
+
if (this.graphContentSlotSyncTimeoutId !== undefined) {
|
|
63
|
+
clearTimeout(this.graphContentSlotSyncTimeoutId);
|
|
64
|
+
}
|
|
65
|
+
this.graphContentSlotSyncTimeoutId = setTimeout(() => {
|
|
66
|
+
this.graphContentSlotSyncTimeoutId = undefined;
|
|
67
|
+
if (!this.el.isConnected) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
this.syncGraphContentSlot();
|
|
71
|
+
this.connectGraphContentSlotObserver();
|
|
72
|
+
}, 0);
|
|
73
|
+
}
|
|
74
|
+
syncGraphContentSlot() {
|
|
75
|
+
const hasGraphContent = slotPresence.hostHasNamedSlot(this.el, GRAPH_CONTENT_SLOT);
|
|
76
|
+
if (hasGraphContent !== this.graphContentPresent) {
|
|
77
|
+
this.graphContentPresent = hasGraphContent;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
19
80
|
render() {
|
|
20
|
-
|
|
21
|
-
const hasContentSlot = this.el.querySelector(`[slot="${contentSlot}"]`);
|
|
22
|
-
return (index.h(index.Host, { key: '30865d2efaf693257afb21c768981e2785c81ad4', role: "group", class: `xpl-large-card ${this.link ? 'xpl-large-card__link' : ''}`, tabindex: "0" }, index.h("dt", { key: 'bf95f5c52d36b3aa9174222ea2f3bb7e788f5992', class: "xpl-large-card__header" }, index.h("header", { key: '5a18e7dfe1544b65fa13e9b918d06ca0fdabb9f2' }, index.h("slot", { key: '94e9bd081a2c1fe5eb57cb8cedd0ab1224bb5bb3', name: "title" }, this.name), this.link && (index.h("span", { key: '082622ba8e2446dc65fe4f37ee1e15bab1c8785d', class: "xpl-data-card__header-arrow" }, index.h("xpl-icon", { key: '407180586601126e1ea5fb2c6af006d109067b39', icon: "chevron-right", size: 16 })))), this.description && (index.h("div", { key: '381711e6390dd685b0951d7dd08faeb6f9ef34f3', class: "xpl-large-card__description" }, this.description))), index.h("dd", { key: '2cf8a71574bef72aee76720525e26288b92cecc2', class: "xpl-large-card__body" }, hasContentSlot && index.h("slot", { key: '03a58f57d713de2abad1b815a77c91f340ef1f0a', name: contentSlot }))));
|
|
81
|
+
return (index.h(index.Host, { key: '9fdddb5c8d02400545f57499c92af0ee0aa4be67', role: "group", class: `xpl-large-card ${this.link ? 'xpl-large-card__link' : ''}`, tabindex: "0" }, index.h("dt", { key: '3854e5f89efa2c968f7abeb8284c0ab8e3e31fda', class: "xpl-large-card__header" }, index.h("header", { key: '0057d377780108f886dae2d9a6a1f3d81748b5fc' }, index.h("slot", { key: '243d38d7635a2e288a1ec7f7894b772d5005acee', name: "title" }, this.name), this.link && (index.h("span", { key: 'f2ce2ff09a50471ee255bac8bda406908c272388', class: "xpl-large-card__header-arrow" }, index.h("xpl-icon", { key: '86233617aaf74a137d84639e1477c311671fad7b', icon: "chevron-right", size: 16 })))), this.description && (index.h("div", { key: 'ab0c0134a2468d22d122dfe810306d570beee8e8', class: "xpl-large-card__description" }, this.description))), index.h("dd", { key: '6fb1262327dc91fd0a982bd31ee7deaa94625e12', class: "xpl-large-card__body" }, this.graphContentPresent && index.h("slot", { key: 'b1e170a19004aad87015786307b926e58d031751', name: GRAPH_CONTENT_SLOT }))));
|
|
23
82
|
}
|
|
24
83
|
get el() { return index.getElement(this); }
|
|
25
84
|
};
|