@xplortech/apollo-core 2.5.0 → 2.7.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 +1156 -115
- package/build/style.css +12151 -5333
- package/dist/apollo-core/apollo-core.css +68 -37
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-f4c2626d.entry.js → p-084d26ed.entry.js} +1 -1
- package/dist/apollo-core/p-146d5d55.entry.js +1 -0
- package/dist/apollo-core/p-16742606.entry.js +1 -0
- package/dist/apollo-core/{p-0ac33b3a.entry.js → p-28d12fd3.entry.js} +1 -1
- package/dist/apollo-core/{p-7d245bf0.entry.js → p-3eb5eb7c.entry.js} +1 -1
- package/dist/apollo-core/p-4882f0bd.entry.js +1 -0
- package/dist/apollo-core/p-64b34268.entry.js +1 -0
- package/dist/apollo-core/p-6c956d4e.entry.js +1 -0
- package/dist/apollo-core/p-71b75f36.entry.js +1 -0
- package/dist/apollo-core/p-7eb86c63.entry.js +1 -0
- package/dist/apollo-core/{p-0e1877a2.entry.js → p-84254a24.entry.js} +1 -1
- package/dist/apollo-core/p-9f2a0321.entry.js +1 -0
- package/dist/apollo-core/p-C7bgJs6C.js +2 -0
- package/dist/apollo-core/p-cde83ab0.entry.js +1 -0
- package/dist/apollo-core/p-e7363036.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +3 -3
- package/dist/cjs/{index-D__N_vw2.js → index-BQ97-AWw.js} +149 -96
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/xpl-accordion.cjs.entry.js +5 -5
- package/dist/cjs/xpl-application-shell.cjs.entry.js +4 -4
- package/dist/cjs/{xpl-avatar_41.cjs.entry.js → xpl-avatar_61.cjs.entry.js} +9154 -1989
- package/dist/cjs/xpl-button-row.cjs.entry.js +4 -4
- package/dist/cjs/xpl-calendar.cjs.entry.js +4 -4
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +5 -5
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +4 -4
- package/dist/cjs/xpl-grid-item.cjs.entry.js +4 -4
- package/dist/cjs/xpl-grid.cjs.entry.js +4 -4
- package/dist/cjs/xpl-large-card.cjs.entry.js +4 -4
- package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -4
- package/dist/cjs/xpl-toggle.cjs.entry.js +6 -6
- package/dist/cjs/xpl-toolbar.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +26 -8
- package/dist/collection/components/xpl-accordion/accordion.stories.js +4 -0
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +3 -3
- package/dist/collection/components/xpl-application-shell/application-shell.stories.js +4 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +2 -2
- package/dist/collection/components/xpl-avatar/avatar.stories.js +122 -103
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +250 -16
- package/dist/collection/components/xpl-backdrop/backdrop.stories.js +4 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +2 -2
- package/dist/collection/components/xpl-badge/badge.stories.js +76 -33
- package/dist/collection/components/xpl-badge/xpl-badge.js +122 -14
- package/dist/collection/components/xpl-banner/banner.stories.js +64 -0
- package/dist/collection/components/xpl-banner/xpl-banner.js +296 -0
- package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +4 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +2 -2
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +2 -2
- package/dist/collection/components/xpl-button/button.stories.js +102 -98
- package/dist/collection/components/xpl-button/xpl-button.js +201 -93
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +2 -2
- package/dist/collection/components/xpl-calendar/calendar.stories.js +4 -0
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +2 -2
- package/dist/collection/components/xpl-checkbox/checkbox.stories.js +4 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +48 -26
- package/dist/collection/components/xpl-choicelist/choicelist.stories.js +4 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +2 -2
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +2 -2
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +2 -2
- package/dist/collection/components/xpl-data-card/data-card.stories.js +4 -0
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +3 -3
- package/dist/collection/components/xpl-divider/divider.stories.js +4 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +29 -4
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +120 -79
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +3 -3
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +3 -3
- package/dist/collection/components/xpl-grid/xpl-grid.js +2 -2
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +2 -2
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +47 -54
- package/dist/collection/components/xpl-icon/xpl-icon.js +3 -3
- package/dist/collection/components/xpl-input/input.stories.js +170 -9
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +9 -9
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +55 -17
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-phone/phone-country-data.js +58 -0
- package/dist/collection/components/xpl-input/xpl-input-phone/phone-format.js +219 -0
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +469 -0
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +485 -0
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input.js +223 -17
- package/dist/collection/components/xpl-large-card/large-card.stories.js +4 -0
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +2 -2
- package/dist/collection/components/xpl-list/list.stories.js +300 -63
- package/dist/collection/components/xpl-list/xpl-list-item/xpl-list-item.js +818 -0
- package/dist/collection/components/xpl-list/xpl-list.js +580 -22
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +2 -2
- package/dist/collection/components/xpl-modal/modal.stories.js +4 -0
- package/dist/collection/components/xpl-modal/xpl-modal.js +2 -2
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +3 -3
- package/dist/collection/components/xpl-pagination/pagination.stories.js +4 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +4 -4
- package/dist/collection/components/xpl-panel/panel.stories.js +53 -0
- package/dist/collection/components/xpl-panel/xpl-panel.js +60 -0
- package/dist/collection/components/xpl-popover/popover.stories.js +4 -0
- package/dist/collection/components/xpl-popover/xpl-popover.js +5 -5
- package/dist/collection/components/xpl-progress-bar/progress-bar.stories.js +96 -0
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +158 -0
- package/dist/collection/components/xpl-progress-indicator/progress-indicator.stories.js +118 -0
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +171 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +4 -4
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +2 -2
- package/dist/collection/components/xpl-select/xpl-select.js +7 -7
- package/dist/collection/components/xpl-side-nav/side-nav.stories.js +519 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +259 -0
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +32 -0
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +2 -2
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +2 -2
- package/dist/collection/components/xpl-spotlight/spotlight.stories.js +385 -0
- package/dist/collection/components/xpl-spotlight/xpl-spotlight.js +1085 -0
- package/dist/collection/components/xpl-tab/xpl-tab.js +262 -9
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +23 -16
- package/dist/collection/components/xpl-table/table.stories.js +319 -67
- package/dist/collection/components/xpl-table/utils/move-row-dom.js +50 -0
- package/dist/collection/components/xpl-table/utils/table-internal.js +58 -0
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +155 -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-header/table-header.stories.js +131 -0
- package/dist/collection/components/xpl-table/xpl-table-header/xpl-table-header.js +7 -0
- package/dist/collection/components/xpl-table/xpl-table-header-cell/table-header-cell.stories.js +105 -0
- package/dist/collection/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.js +402 -0
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +121 -0
- package/dist/collection/components/xpl-table/xpl-table.js +1449 -144
- package/dist/collection/components/xpl-tabs/segment-control.stories.js +31 -0
- package/dist/collection/components/xpl-tabs/tabs.shared.js +156 -0
- package/dist/collection/components/xpl-tabs/tabs.stories.js +10 -60
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +339 -63
- package/dist/collection/components/xpl-tag/tag.stories.js +153 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +313 -10
- package/dist/collection/components/xpl-toast/xpl-toast.js +3 -3
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +4 -4
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +3 -3
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +2 -2
- package/dist/collection/components/xpl-top-nav/top-nav.stories.js +625 -0
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +122 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +481 -0
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +433 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +2 -2
- package/dist/collection/utils/layout-ancestors.js +22 -0
- package/dist/collection/utils/lifecycle.js +79 -0
- package/dist/collection/utils/tab-a11y-ids.js +22 -0
- package/dist/components/floating-ui.dom.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/lifecycle.js +1 -0
- package/dist/components/tab-a11y-ids.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-avatar2.js +1 -1
- package/dist/components/xpl-backdrop.js +1 -1
- package/dist/components/xpl-backdrop2.js +1 -1
- package/dist/components/xpl-badge.js +1 -1
- package/dist/components/xpl-badge2.js +1 -1
- package/dist/components/xpl-banner.d.ts +11 -0
- package/dist/components/xpl-banner.js +1 -0
- 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-button2.js +1 -1
- package/dist/components/xpl-calendar.js +1 -1
- package/dist/components/xpl-checkbox.js +1 -1
- package/dist/components/xpl-checkbox2.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-divider2.js +1 -1
- package/dist/components/xpl-dropdown-group.js +1 -1
- package/dist/components/xpl-dropdown-group2.js +1 -1
- package/dist/components/xpl-dropdown-heading.js +1 -1
- package/dist/components/xpl-dropdown-heading2.js +1 -1
- package/dist/components/xpl-dropdown-option.js +1 -1
- package/dist/components/xpl-dropdown-option2.js +1 -1
- package/dist/components/xpl-dropdown.js +1 -1
- package/dist/components/xpl-dropdown2.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-icon2.js +1 -1
- package/dist/components/xpl-input-date.js +1 -1
- package/dist/components/xpl-input-date2.js +1 -1
- package/dist/components/xpl-input-file.js +1 -1
- package/dist/components/xpl-input-file2.js +1 -1
- package/dist/components/xpl-input-phone.d.ts +11 -0
- package/dist/components/xpl-input-phone.js +1 -0
- package/dist/components/xpl-input-search.d.ts +11 -0
- package/dist/components/xpl-input-search.js +1 -0
- package/dist/components/xpl-input-search2.js +1 -0
- package/dist/components/xpl-input-time.js +1 -1
- package/dist/components/xpl-input.js +1 -1
- package/dist/components/xpl-input2.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/{xpl-progress.d.ts → xpl-list-item.d.ts} +4 -4
- package/dist/components/xpl-list-item.js +1 -0
- package/dist/components/xpl-list-item2.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/xpl-nav-header-menu.js +1 -0
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.d.ts +11 -0
- package/dist/components/xpl-panel.js +1 -0
- package/dist/components/xpl-popover.js +1 -1
- package/dist/components/xpl-popover2.js +1 -1
- package/dist/components/xpl-progress-bar.d.ts +11 -0
- package/dist/components/xpl-progress-bar.js +1 -0
- package/dist/components/xpl-progress-indicator.d.ts +11 -0
- package/dist/components/xpl-progress-indicator.js +1 -0
- package/dist/components/xpl-radio.js +1 -1
- package/dist/components/xpl-radio2.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select.js +1 -1
- package/dist/components/xpl-select2.js +1 -1
- package/dist/components/xpl-side-nav-item.d.ts +11 -0
- package/dist/components/xpl-side-nav-item.js +1 -0
- package/dist/components/xpl-side-nav.d.ts +11 -0
- package/dist/components/xpl-side-nav.js +1 -0
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.d.ts +11 -0
- package/dist/components/xpl-spotlight.js +1 -0
- 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-cell.d.ts +11 -0
- package/dist/components/xpl-table-cell.js +1 -0
- package/dist/components/xpl-table-cell2.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-cell2.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-cell2.js +1 -0
- 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-tag2.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-tooltip2.js +1 -1
- package/dist/components/xpl-top-nav-item.d.ts +11 -0
- package/dist/components/xpl-top-nav-item.js +1 -0
- package/dist/components/xpl-top-nav-item2.js +1 -0
- package/dist/components/xpl-top-nav.d.ts +11 -0
- package/dist/components/xpl-top-nav.js +1 -0
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +4 -0
- package/dist/docs/xpl-avatar/readme.md +291 -12
- package/dist/docs/xpl-backdrop/readme.md +1 -1
- package/dist/docs/xpl-badge/readme.md +104 -6
- package/dist/docs/xpl-banner/readme.md +203 -0
- package/dist/docs/xpl-button/readme.md +161 -14
- package/dist/docs/xpl-button-row/readme.md +1 -0
- package/dist/docs/xpl-calendar/readme.md +2 -1
- package/dist/docs/xpl-checkbox/readme.md +19 -14
- package/dist/docs/xpl-choicelist/readme.md +1 -0
- package/dist/docs/xpl-data-card/readme.md +2 -2
- package/dist/docs/xpl-divider/readme.md +6 -4
- package/dist/docs/xpl-dropdown/readme.md +15 -12
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +1 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +6 -0
- package/dist/docs/xpl-dynamic-table/readme.md +22 -19
- package/dist/docs/xpl-dynamic-table-cell/readme.md +20 -18
- package/dist/docs/xpl-dynamic-table-row/readme.md +21 -19
- package/dist/docs/xpl-icon/readme.md +27 -3
- package/dist/docs/xpl-input/readme.md +72 -37
- package/dist/docs/xpl-input/xpl-input-color/readme.md +5 -0
- package/dist/docs/xpl-input/xpl-input-phone/readme.md +168 -0
- package/dist/docs/xpl-input/xpl-input-search/readme.md +175 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +5 -0
- package/dist/docs/xpl-large-card/readme.md +1 -1
- package/dist/docs/xpl-list/readme.md +320 -10
- package/dist/docs/xpl-list/xpl-list-item/readme.md +99 -0
- package/dist/docs/xpl-modal/readme.md +3 -0
- package/dist/docs/xpl-pagination/readme.md +4 -0
- package/dist/docs/xpl-panel/readme.md +174 -0
- package/dist/docs/xpl-popover/readme.md +3 -1
- package/dist/docs/xpl-progress-bar/readme.md +145 -0
- package/dist/docs/xpl-progress-indicator/readme.md +234 -0
- package/dist/docs/xpl-radio/readme.md +6 -4
- package/dist/docs/xpl-select/readme.md +3 -1
- package/dist/docs/xpl-side-nav/readme.md +71 -0
- package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +115 -0
- package/dist/docs/xpl-slideout/readme.md +2 -1
- package/dist/docs/xpl-spotlight/readme.md +235 -0
- package/dist/docs/xpl-tab/readme.md +43 -7
- package/dist/docs/xpl-tab-panel/readme.md +42 -0
- package/dist/docs/xpl-table/readme.md +110 -46
- package/dist/docs/xpl-table/xpl-table-body/readme.md +10 -0
- package/dist/docs/xpl-table/xpl-table-cell/readme.md +33 -0
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +10 -0
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +30 -0
- package/dist/docs/{xpl-table-header → xpl-table/xpl-table-header}/readme.md +13 -13
- package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +66 -0
- package/dist/docs/xpl-table/xpl-table-row/readme.md +19 -0
- package/dist/docs/xpl-tabs/readme.md +63 -8
- package/dist/docs/xpl-tag/readme.md +379 -4
- package/dist/docs/xpl-toast/readme.md +56 -1
- package/dist/docs/xpl-top-nav/readme.md +179 -0
- package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +81 -0
- package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +87 -0
- package/dist/esm/apollo-core.js +4 -4
- package/dist/esm/{index-DhZas3eX.js → index-C7bgJs6C.js} +149 -97
- package/dist/esm/loader.js +3 -3
- package/dist/esm/xpl-accordion.entry.js +5 -5
- package/dist/esm/xpl-application-shell.entry.js +4 -4
- package/dist/esm/{xpl-avatar_41.entry.js → xpl-avatar_61.entry.js} +9087 -1942
- package/dist/esm/xpl-button-row.entry.js +4 -4
- package/dist/esm/xpl-calendar.entry.js +4 -4
- package/dist/esm/xpl-dynamic-table-cell.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table-row.entry.js +5 -5
- package/dist/esm/xpl-dynamic-table.entry.js +4 -4
- package/dist/esm/xpl-grid-item.entry.js +4 -4
- package/dist/esm/xpl-grid.entry.js +4 -4
- package/dist/esm/xpl-large-card.entry.js +4 -4
- package/dist/esm/xpl-main-nav.entry.js +4 -4
- package/dist/esm/xpl-toggle.entry.js +6 -6
- package/dist/esm/xpl-toolbar.entry.js +5 -5
- package/dist/types/components/xpl-accordion/xpl-accordion.d.ts +1 -1
- package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +4 -0
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -1
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +90 -27
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +30 -3
- package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +4 -0
- package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +1 -1
- package/dist/types/components/xpl-badge/badge.stories.d.ts +47 -11
- package/dist/types/components/xpl-badge/xpl-badge.d.ts +9 -2
- package/dist/types/components/xpl-banner/banner.stories.d.ts +77 -0
- package/dist/types/components/xpl-banner/xpl-banner.d.ts +20 -0
- package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +4 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +1 -1
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +1 -1
- package/dist/types/components/xpl-button/button.stories.d.ts +68 -30
- package/dist/types/components/xpl-button/xpl-button.d.ts +21 -8
- package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +1 -1
- package/dist/types/components/xpl-calendar/calendar.stories.d.ts +4 -0
- package/dist/types/components/xpl-calendar/xpl-calendar.d.ts +1 -1
- package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +4 -0
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +5 -4
- package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +4 -0
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -1
- package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +1 -1
- package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +1 -1
- package/dist/types/components/xpl-data-card/data-card.stories.d.ts +4 -0
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +1 -1
- package/dist/types/components/xpl-divider/divider.stories.d.ts +4 -0
- package/dist/types/components/xpl-divider/xpl-divider.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/dropdown-option.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +1 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +3 -2
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +11 -8
- package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +1 -1
- package/dist/types/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.d.ts +1 -1
- package/dist/types/components/xpl-dynamic-table-row/xpl-dynamic-table-row.d.ts +1 -1
- package/dist/types/components/xpl-grid/xpl-grid.d.ts +1 -1
- package/dist/types/components/xpl-grid-item/xpl-grid-item.d.ts +1 -1
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +10 -11
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +1 -1
- package/dist/types/components/xpl-input/input.stories.d.ts +37 -7
- package/dist/types/components/xpl-input/xpl-input-color/xpl-input-color.d.ts +1 -1
- package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +10 -3
- 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/phone-country-data.d.ts +13 -0
- package/dist/types/components/xpl-input/xpl-input-phone/phone-format.d.ts +5 -0
- package/dist/types/components/xpl-input/xpl-input-phone/xpl-input-phone.d.ts +48 -0
- package/dist/types/components/xpl-input/xpl-input-search/xpl-input-search.d.ts +39 -0
- 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 +23 -5
- package/dist/types/components/xpl-large-card/large-card.stories.d.ts +4 -0
- package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +1 -1
- package/dist/types/components/xpl-list/list.stories.d.ts +299 -13
- package/dist/types/components/xpl-list/listitem.d.ts +13 -0
- package/dist/types/components/xpl-list/xpl-list-item/xpl-list-item.d.ts +71 -0
- package/dist/types/components/xpl-list/xpl-list.d.ts +56 -3
- package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
- package/dist/types/components/xpl-modal/modal.stories.d.ts +4 -0
- package/dist/types/components/xpl-modal/xpl-modal.d.ts +1 -1
- package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +1 -1
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +4 -0
- package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
- package/dist/types/components/xpl-panel/panel.stories.d.ts +22 -0
- package/dist/types/components/xpl-panel/xpl-panel.d.ts +5 -0
- package/dist/types/components/xpl-popover/xpl-popover.d.ts +1 -1
- package/dist/types/components/xpl-progress-bar/progress-bar.stories.d.ts +73 -0
- package/dist/types/components/xpl-progress-bar/xpl-progress-bar.d.ts +15 -0
- package/dist/types/components/xpl-progress-indicator/progress-indicator.stories.d.ts +62 -0
- package/dist/types/components/xpl-progress-indicator/xpl-progress-indicator.d.ts +11 -0
- package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
- package/dist/types/components/xpl-secondary-nav/xpl-secondary-nav.d.ts +1 -1
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -1
- package/dist/types/components/xpl-side-nav/side-nav.stories.d.ts +80 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.d.ts +20 -0
- package/dist/types/components/xpl-side-nav/xpl-side-nav.d.ts +4 -0
- package/dist/types/components/xpl-skeleton/xpl-skeleton.d.ts +1 -1
- package/dist/types/components/xpl-slideout/xpl-slideout.d.ts +1 -1
- package/dist/types/components/xpl-spotlight/spotlight.stories.d.ts +197 -0
- package/dist/types/components/xpl-spotlight/xpl-spotlight.d.ts +101 -0
- package/dist/types/components/xpl-tab/xpl-tab.d.ts +15 -2
- package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +3 -2
- package/dist/types/components/xpl-table/table.stories.d.ts +161 -19
- package/dist/types/components/xpl-table/utils/move-row-dom.d.ts +3 -0
- package/dist/types/components/xpl-table/utils/table-internal.d.ts +8 -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-cell/xpl-table-cell.d.ts +11 -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-header → xpl-table/xpl-table-header}/table-header.stories.d.ts +13 -16
- package/dist/types/components/xpl-table/xpl-table-header/xpl-table-header.d.ts +3 -0
- package/dist/types/components/{xpl-table-header-cell → xpl-table/xpl-table-header-cell}/table-header-cell.stories.d.ts +24 -20
- package/dist/types/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.d.ts +32 -0
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +13 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +124 -22
- package/dist/types/components/xpl-tabs/segment-control.stories.d.ts +112 -0
- package/dist/types/components/xpl-tabs/tabs.shared.d.ts +156 -0
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +65 -12
- package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +38 -19
- package/dist/types/components/xpl-tag/tag.stories.d.ts +65 -0
- package/dist/types/components/xpl-tag/xpl-tag.d.ts +37 -2
- package/dist/types/components/xpl-toast/xpl-toast.d.ts +1 -1
- package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
- package/dist/types/components/xpl-toolbar/xpl-toolbar.d.ts +1 -1
- package/dist/types/components/xpl-tooltip/xpl-tooltip.d.ts +1 -1
- package/dist/types/components/xpl-top-nav/top-nav.stories.d.ts +471 -0
- package/dist/types/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.d.ts +18 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.d.ts +48 -0
- package/dist/types/components/xpl-top-nav/xpl-top-nav.d.ts +51 -0
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -1
- package/dist/types/components.d.ts +3059 -278
- package/dist/types/stencil-public-runtime.d.ts +23 -2
- package/dist/types/utils/layout-ancestors.d.ts +2 -0
- package/dist/types/utils/lifecycle.d.ts +16 -0
- package/dist/types/utils/tab-a11y-ids.d.ts +4 -0
- package/package.json +42 -28
- package/dist/apollo-core/p-1c2e4034.entry.js +0 -1
- package/dist/apollo-core/p-3b5f8989.entry.js +0 -1
- package/dist/apollo-core/p-4fab8172.entry.js +0 -1
- package/dist/apollo-core/p-576ce90f.entry.js +0 -1
- package/dist/apollo-core/p-5ec45742.entry.js +0 -1
- package/dist/apollo-core/p-77f0fd4a.entry.js +0 -1
- package/dist/apollo-core/p-7b7db57a.entry.js +0 -1
- package/dist/apollo-core/p-7c22b842.entry.js +0 -1
- package/dist/apollo-core/p-812bb0e4.entry.js +0 -1
- package/dist/apollo-core/p-845eef0d.entry.js +0 -1
- package/dist/apollo-core/p-9853028c.entry.js +0 -1
- package/dist/apollo-core/p-9d65ece7.entry.js +0 -1
- package/dist/apollo-core/p-DhZas3eX.js +0 -2
- package/dist/apollo-core/p-be292555.entry.js +0 -1
- package/dist/cjs/xpl-list.cjs.entry.js +0 -32
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +0 -57
- package/dist/cjs/xpl-table-header.cjs.entry.js +0 -14
- package/dist/collection/components/xpl-progress/progress.stories.js +0 -106
- package/dist/collection/components/xpl-progress/xpl-progress.js +0 -60
- package/dist/collection/components/xpl-table-header/table-header.stories.js +0 -126
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +0 -7
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +0 -75
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +0 -188
- package/dist/components/xpl-progress.js +0 -1
- package/dist/docs/xpl-progress/readme.md +0 -22
- package/dist/docs/xpl-table-header-cell/readme.md +0 -47
- package/dist/esm/xpl-list.entry.js +0 -30
- package/dist/esm/xpl-table-header-cell.entry.js +0 -55
- package/dist/esm/xpl-table-header.entry.js +0 -12
- package/dist/types/components/xpl-progress/progress.stories.d.ts +0 -38
- package/dist/types/components/xpl-progress/xpl-progress.d.ts +0 -6
- package/dist/types/components/xpl-table-header/xpl-table-header.d.ts +0 -3
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +0 -13
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
3
|
component: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
argTypes: {
|
|
5
12
|
firstCellType: {
|
|
6
13
|
control: "select";
|
|
@@ -16,9 +23,6 @@ declare const _default: {
|
|
|
16
23
|
firstCellWidth: {
|
|
17
24
|
control: "number";
|
|
18
25
|
};
|
|
19
|
-
firstCellSortable: {
|
|
20
|
-
control: "boolean";
|
|
21
|
-
};
|
|
22
26
|
secondCellType: {
|
|
23
27
|
control: "select";
|
|
24
28
|
options: string[];
|
|
@@ -33,9 +37,6 @@ declare const _default: {
|
|
|
33
37
|
secondCellWidth: {
|
|
34
38
|
control: "number";
|
|
35
39
|
};
|
|
36
|
-
secondCellSortable: {
|
|
37
|
-
control: "boolean";
|
|
38
|
-
};
|
|
39
40
|
thirdCellType: {
|
|
40
41
|
control: "select";
|
|
41
42
|
options: string[];
|
|
@@ -50,49 +51,45 @@ declare const _default: {
|
|
|
50
51
|
thirdCellWidth: {
|
|
51
52
|
control: "number";
|
|
52
53
|
};
|
|
53
|
-
thirdCellSortable: {
|
|
54
|
-
control: "boolean";
|
|
55
|
-
};
|
|
56
54
|
};
|
|
57
55
|
tags: string[];
|
|
58
56
|
};
|
|
59
57
|
export default _default;
|
|
60
58
|
export declare const TableHeader: {
|
|
61
|
-
({ firstCellType, firstCellLabel, firstCellIcon, firstCellWidth,
|
|
59
|
+
({ firstCellType, firstCellLabel, firstCellIcon, firstCellWidth, secondCellType, secondCellLabel, secondCellIcon, secondCellWidth, thirdCellType, thirdCellLabel, thirdCellIcon, thirdCellWidth, }: {
|
|
62
60
|
firstCellType: any;
|
|
63
61
|
firstCellLabel: any;
|
|
64
62
|
firstCellIcon: any;
|
|
65
63
|
firstCellWidth: any;
|
|
66
|
-
firstCellSortable: any;
|
|
67
64
|
secondCellType: any;
|
|
68
65
|
secondCellLabel: any;
|
|
69
66
|
secondCellIcon: any;
|
|
70
67
|
secondCellWidth: any;
|
|
71
|
-
secondCellSortable: any;
|
|
72
68
|
thirdCellType: any;
|
|
73
69
|
thirdCellLabel: any;
|
|
74
70
|
thirdCellIcon: any;
|
|
75
71
|
thirdCellWidth: any;
|
|
76
|
-
thirdCellSortable: any;
|
|
77
72
|
}): string;
|
|
78
73
|
args: {
|
|
79
74
|
firstCellType: string;
|
|
80
75
|
firstCellLabel: string;
|
|
81
76
|
firstCellIcon: string;
|
|
82
77
|
firstCellWidth: number;
|
|
83
|
-
firstCellSortable: boolean;
|
|
84
78
|
secondCellType: string;
|
|
85
79
|
secondCellLabel: string;
|
|
86
80
|
secondCellIcon: string;
|
|
87
81
|
secondCellWidth: number;
|
|
88
|
-
secondCellSortable: boolean;
|
|
89
82
|
thirdCellType: string;
|
|
90
83
|
thirdCellLabel: string;
|
|
91
84
|
thirdCellIcon: string;
|
|
92
85
|
thirdCellWidth: number;
|
|
93
|
-
thirdCellSortable: boolean;
|
|
94
86
|
};
|
|
95
87
|
parameters: {
|
|
88
|
+
docs: {
|
|
89
|
+
description: {
|
|
90
|
+
story: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
96
93
|
'web-component': {
|
|
97
94
|
render: string;
|
|
98
95
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
3
|
component: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
argTypes: {
|
|
5
12
|
type: {
|
|
6
13
|
control: "select";
|
|
@@ -13,43 +20,40 @@ declare const _default: {
|
|
|
13
20
|
control: "select";
|
|
14
21
|
options: string[];
|
|
15
22
|
};
|
|
16
|
-
|
|
17
|
-
control: "
|
|
23
|
+
align: {
|
|
24
|
+
control: "select";
|
|
25
|
+
options: string[];
|
|
18
26
|
};
|
|
19
|
-
|
|
27
|
+
checked: {
|
|
20
28
|
control: "boolean";
|
|
21
29
|
};
|
|
30
|
+
indeterminate: {
|
|
31
|
+
control: "boolean";
|
|
32
|
+
};
|
|
33
|
+
checkboxAriaLabel: {
|
|
34
|
+
control: "text";
|
|
35
|
+
};
|
|
22
36
|
};
|
|
23
37
|
tags: string[];
|
|
24
38
|
};
|
|
25
39
|
export default _default;
|
|
26
40
|
export declare const TableHeaderCell: {
|
|
27
|
-
(
|
|
28
|
-
type: any;
|
|
29
|
-
label: any;
|
|
30
|
-
icon: any;
|
|
31
|
-
width: any;
|
|
32
|
-
sortable: any;
|
|
33
|
-
}): string;
|
|
41
|
+
(args: Record<string, unknown>): string;
|
|
34
42
|
args: {
|
|
35
43
|
type: string;
|
|
36
44
|
label: string;
|
|
37
45
|
icon: string;
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
align: string;
|
|
47
|
+
checked: boolean;
|
|
48
|
+
indeterminate: boolean;
|
|
49
|
+
checkboxAriaLabel: string;
|
|
40
50
|
};
|
|
41
51
|
parameters: {
|
|
42
52
|
'web-component': {
|
|
43
|
-
render: string;
|
|
53
|
+
render: (args: Record<string, unknown>) => string;
|
|
44
54
|
};
|
|
45
55
|
html: {
|
|
46
|
-
render: (
|
|
47
|
-
type: any;
|
|
48
|
-
label: any;
|
|
49
|
-
icon: any;
|
|
50
|
-
width: any;
|
|
51
|
-
sortable: any;
|
|
52
|
-
}) => string;
|
|
56
|
+
render: (args: Record<string, unknown>) => string;
|
|
53
57
|
};
|
|
54
58
|
design: {
|
|
55
59
|
type: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export interface HeaderSortChangeDetail {
|
|
3
|
+
columnIndex: number;
|
|
4
|
+
sortKey: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class TableHeaderCell {
|
|
7
|
+
el: HTMLXplTableHeaderCellElement;
|
|
8
|
+
align: 'left' | 'right' | 'center';
|
|
9
|
+
checkboxAriaLabel?: string;
|
|
10
|
+
checked: boolean;
|
|
11
|
+
columnWidth?: string;
|
|
12
|
+
watchColumnWidth(): void;
|
|
13
|
+
icon?: string;
|
|
14
|
+
indeterminate: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
sortable: boolean;
|
|
17
|
+
sortDirection?: 'asc' | 'desc' | null;
|
|
18
|
+
sortKey?: string;
|
|
19
|
+
type: 'label' | 'checkbox' | 'icon' | 'empty';
|
|
20
|
+
width?: number;
|
|
21
|
+
watchWidth(): void;
|
|
22
|
+
headerCheckboxChange: EventEmitter<boolean>;
|
|
23
|
+
headerSortChange: EventEmitter<HeaderSortChangeDetail>;
|
|
24
|
+
componentDidLoad(): void;
|
|
25
|
+
private notifyColumnWidthsChange;
|
|
26
|
+
private onHeaderInnerCheckboxChange;
|
|
27
|
+
private getColumnIndex0;
|
|
28
|
+
private getSortKeySlug;
|
|
29
|
+
private onSortActivate;
|
|
30
|
+
private renderLabelContent;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class XplTableRow {
|
|
2
|
+
private cellObserver?;
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
onDisabledChange(): void;
|
|
6
|
+
rowId?: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
componentDidLoad(): void;
|
|
11
|
+
private propagateDisabledToCells;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -1,40 +1,142 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
export
|
|
2
|
+
export interface XplTableRowOrderChangeDetail {
|
|
3
|
+
rowId: string;
|
|
4
|
+
direction: 'up' | 'down';
|
|
5
|
+
orderedRowIds: string[];
|
|
6
|
+
fromIndex: number;
|
|
7
|
+
toIndex: number;
|
|
8
|
+
}
|
|
9
|
+
export interface XplTableSortChangedDetail {
|
|
10
|
+
colNum?: number;
|
|
11
|
+
colName?: string;
|
|
12
|
+
sortTypeArr?: ('asc' | 'desc' | null)[];
|
|
13
|
+
[slug: string]: 'asc' | 'desc' | null | number | string | ('asc' | 'desc' | null)[] | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class Table {
|
|
16
|
+
private container;
|
|
17
|
+
private columnWidthsToken;
|
|
18
|
+
private lastEmittedRowSelectionKey;
|
|
19
|
+
private selectAllValue;
|
|
20
|
+
private tableInstanceId?;
|
|
21
|
+
private draggedRow;
|
|
22
|
+
private pendingDragRow;
|
|
23
|
+
private pointerUpClearPending;
|
|
24
|
+
private reorderAnnounceRaf?;
|
|
25
|
+
private reorderKeyboardTimers;
|
|
26
|
+
private readonly onReorderHandleKeydown;
|
|
3
27
|
el: HTMLXplTableElement;
|
|
28
|
+
areAllSelected: boolean;
|
|
29
|
+
colCount: number;
|
|
30
|
+
hasScrolled: boolean;
|
|
31
|
+
private keyboardReorderRowId;
|
|
32
|
+
private reorderLiveMessage;
|
|
33
|
+
rowData: string[][];
|
|
34
|
+
rowFooterData: string[][];
|
|
35
|
+
selected: (string | boolean)[];
|
|
36
|
+
selectedRowIds: string[];
|
|
37
|
+
sortTypeArray: ('asc' | 'desc' | null)[];
|
|
4
38
|
columns?: string[];
|
|
39
|
+
watchColumns(): void;
|
|
5
40
|
data?: string[][];
|
|
41
|
+
watchData(): void;
|
|
6
42
|
footer?: string[][];
|
|
43
|
+
watchFooterData(): void;
|
|
7
44
|
freeze?: boolean;
|
|
45
|
+
isSortable?: boolean;
|
|
46
|
+
label?: string;
|
|
8
47
|
multiselect?: boolean;
|
|
9
|
-
|
|
48
|
+
reorderHandleIcon?: string;
|
|
49
|
+
watchReorderHandleIcon(): void;
|
|
50
|
+
reorderHandleIconKeyboard?: string;
|
|
51
|
+
watchReorderHandleIconKeyboard(): void;
|
|
52
|
+
rowReorderable?: boolean;
|
|
53
|
+
watchRowReorderable(next?: boolean): void;
|
|
54
|
+
selectable?: boolean;
|
|
55
|
+
watchSelectable(next?: boolean): void;
|
|
10
56
|
selectedValues?: string[];
|
|
11
|
-
isSortable?: boolean;
|
|
12
57
|
sortableColumns?: boolean[];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
58
|
+
striped?: boolean;
|
|
59
|
+
rowOrderChange: EventEmitter<XplTableRowOrderChangeDetail>;
|
|
60
|
+
rowSelectionChange: EventEmitter<{
|
|
61
|
+
selectedRowIds: string[];
|
|
62
|
+
}>;
|
|
63
|
+
sortChanged: EventEmitter<XplTableSortChangedDetail>;
|
|
19
64
|
tableSelect: EventEmitter;
|
|
20
|
-
|
|
21
|
-
|
|
65
|
+
componentWillLoad(): void;
|
|
66
|
+
componentDidLoad(): void;
|
|
67
|
+
componentDidUpdate(): void;
|
|
68
|
+
disconnectedCallback(): void;
|
|
69
|
+
handleHeaderCellColumnWidthsChange(ev: Event): void;
|
|
70
|
+
handleCompositionalCheckboxChange(ev: CustomEvent<string | boolean>): void;
|
|
71
|
+
handleCompositionalHeaderCheckboxChange(ev: CustomEvent<boolean>): void;
|
|
72
|
+
handlePointerDownExitKeyboardReorder(ev: PointerEvent): void;
|
|
73
|
+
private handleReorderHandleKeyDown;
|
|
74
|
+
handleRowReorderPointerDown(ev: PointerEvent): void;
|
|
75
|
+
handleRowReorderDragStart(ev: DragEvent): void;
|
|
76
|
+
handleRowReorderDragEnd(ev: DragEvent): void;
|
|
77
|
+
handleRowReorderDragOver(ev: DragEvent): void;
|
|
78
|
+
handleRowReorderDragEnter(ev: DragEvent): void;
|
|
79
|
+
handleRowReorderDragLeave(ev: DragEvent): void;
|
|
80
|
+
handleRowReorderDrop(ev: DragEvent): void;
|
|
81
|
+
private get isLegacyMode();
|
|
82
|
+
private ensureTableInstanceId;
|
|
83
|
+
private generateRowId;
|
|
84
|
+
private syncCompositionalLayout;
|
|
85
|
+
private getDirectChildTableSection;
|
|
86
|
+
private isDirectChildBodyRow;
|
|
87
|
+
private isCellInOurCompositionalHeader;
|
|
88
|
+
private getSelectionColumnIndex;
|
|
89
|
+
private static getBodyRowCells;
|
|
90
|
+
private queryBodyRows;
|
|
91
|
+
private querySelectableBodyRows;
|
|
92
|
+
private static getRowIdForRow;
|
|
93
|
+
private ensureBodyRowIds;
|
|
94
|
+
private removeManagedReorderCells;
|
|
95
|
+
private getSelectionSlotCellForReorderOrder;
|
|
96
|
+
private normalizeManagedColumnsOrder;
|
|
97
|
+
private syncReorderColumn;
|
|
98
|
+
private ensureHeaderReorderCell;
|
|
99
|
+
private ensureBodyReorderCells;
|
|
100
|
+
private getResolvedIconForRow;
|
|
101
|
+
private syncInjectedReorderHandleIcons;
|
|
102
|
+
private syncReorderHandleKeyboardA11y;
|
|
103
|
+
private attachReorderHandleKeydownListeners;
|
|
104
|
+
private detachReorderHandleKeydownListeners;
|
|
105
|
+
private performKeyboardRowReorder;
|
|
106
|
+
private ensureFooterReorderCells;
|
|
107
|
+
private static supportsSubgridBodyRow;
|
|
108
|
+
private applyReorderRowDraggableState;
|
|
109
|
+
private getVisibleBodyRowsForReorder;
|
|
110
|
+
private clearReorderDragOverClasses;
|
|
111
|
+
private clearPendingDragListeners;
|
|
112
|
+
private announceRowReorder;
|
|
113
|
+
private pruneStaleSelectedRowIds;
|
|
114
|
+
private static getBodyRowCheckboxAriaLabel;
|
|
115
|
+
private applyBodyCheckboxStates;
|
|
116
|
+
private getHeaderCheckboxCell;
|
|
117
|
+
private applyHeaderCheckboxState;
|
|
118
|
+
private syncRowSelectedProps;
|
|
119
|
+
private emitCompositionalSelection;
|
|
120
|
+
private isEventFromThisTable;
|
|
121
|
+
private static sortKeyFromHeaderCell;
|
|
122
|
+
handleCompositionalHeaderSort(ev: CustomEvent<{
|
|
123
|
+
columnIndex: number;
|
|
124
|
+
sortKey: string;
|
|
125
|
+
}>): void;
|
|
126
|
+
private legacySortStatePayload;
|
|
127
|
+
private legacySortChangedDetail;
|
|
128
|
+
private getCompositionalHeaderCells;
|
|
129
|
+
private updateColumnWidths;
|
|
130
|
+
private onGridScroll;
|
|
22
131
|
private selectAll;
|
|
23
132
|
private selectOne;
|
|
24
|
-
private
|
|
25
|
-
private
|
|
133
|
+
private onSelectionChange;
|
|
134
|
+
private onLegacyScroll;
|
|
26
135
|
private sortBy;
|
|
27
|
-
sortChanged: EventEmitter<{
|
|
28
|
-
colNum: number;
|
|
29
|
-
colName: string;
|
|
30
|
-
sortTypeArr: string[];
|
|
31
|
-
}>;
|
|
32
136
|
private handleSort;
|
|
33
137
|
private setData;
|
|
34
138
|
private setFooterData;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
watchColumns(): void;
|
|
38
|
-
componentWillLoad(): void;
|
|
139
|
+
private renderLegacy;
|
|
140
|
+
private renderCompositional;
|
|
39
141
|
render(): any;
|
|
40
142
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type TabsStoryArgs, type TabsStoryRenderContext } from './tabs.shared';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
actions: {
|
|
7
|
+
handles: string[];
|
|
8
|
+
};
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
argTypes: {
|
|
16
|
+
type: {
|
|
17
|
+
table: {
|
|
18
|
+
disable: true;
|
|
19
|
+
};
|
|
20
|
+
options: string[];
|
|
21
|
+
control: {
|
|
22
|
+
type: "select";
|
|
23
|
+
};
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
table: {
|
|
28
|
+
category: string;
|
|
29
|
+
};
|
|
30
|
+
control: {
|
|
31
|
+
type: "boolean";
|
|
32
|
+
};
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
fullWidth: {
|
|
36
|
+
table: {
|
|
37
|
+
category: string;
|
|
38
|
+
};
|
|
39
|
+
control: {
|
|
40
|
+
type: "boolean";
|
|
41
|
+
};
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
value: {
|
|
45
|
+
table: {
|
|
46
|
+
category: string;
|
|
47
|
+
};
|
|
48
|
+
control: {
|
|
49
|
+
type: "text";
|
|
50
|
+
};
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
tabCount: {
|
|
54
|
+
table: {
|
|
55
|
+
category: string;
|
|
56
|
+
};
|
|
57
|
+
control: {
|
|
58
|
+
type: "number";
|
|
59
|
+
min: number;
|
|
60
|
+
max: number;
|
|
61
|
+
step: number;
|
|
62
|
+
};
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
tabDisabled: {
|
|
66
|
+
table: {
|
|
67
|
+
category: string;
|
|
68
|
+
};
|
|
69
|
+
control: {
|
|
70
|
+
type: "boolean";
|
|
71
|
+
};
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
icon: {
|
|
75
|
+
table: {
|
|
76
|
+
category: string;
|
|
77
|
+
};
|
|
78
|
+
control: {
|
|
79
|
+
type: "text";
|
|
80
|
+
};
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
iconPosition: {
|
|
84
|
+
table: {
|
|
85
|
+
category: string;
|
|
86
|
+
};
|
|
87
|
+
options: string[];
|
|
88
|
+
control: {
|
|
89
|
+
type: "radio";
|
|
90
|
+
};
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export default _default;
|
|
96
|
+
export declare const SegmentControl: {
|
|
97
|
+
(args: TabsStoryArgs, context?: TabsStoryRenderContext): string;
|
|
98
|
+
args: TabsStoryArgs;
|
|
99
|
+
parameters: {
|
|
100
|
+
layout: string;
|
|
101
|
+
'web-component': {
|
|
102
|
+
render: string;
|
|
103
|
+
};
|
|
104
|
+
html: {
|
|
105
|
+
render: string;
|
|
106
|
+
};
|
|
107
|
+
design: {
|
|
108
|
+
type: string;
|
|
109
|
+
url: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export interface TabsStoryArgs {
|
|
2
|
+
type: 'tabs' | 'segment';
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
fullWidth: boolean;
|
|
5
|
+
value: string;
|
|
6
|
+
tabCount: number;
|
|
7
|
+
tabDisabled: boolean;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconPosition: 'start' | 'end';
|
|
10
|
+
}
|
|
11
|
+
export declare function escapeHtmlAttr(value: string): string;
|
|
12
|
+
export declare function clampTabCount(n: number): number;
|
|
13
|
+
export declare function coerceTabsStoryValue(args: TabsStoryArgs): string;
|
|
14
|
+
export declare function buildTabsMarkup(args: TabsStoryArgs): string;
|
|
15
|
+
export interface TabsStoryRenderContext {
|
|
16
|
+
updateArgs?: (next: Partial<TabsStoryArgs>) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function renderTabsStoryMarkup(args: TabsStoryArgs, context?: TabsStoryRenderContext): string;
|
|
19
|
+
export declare const tabsPlainDomUnderlineStoryHtml = "<---- Non-interactive plain DOM (tabs.css BEM). Not the <xpl-tabs> API; use the Web Component tab for that. Ids mirror the scoped pattern (data-tabs-instance-id + target). ---->\n<div class=\"xpl-tabs\" data-tabs-instance-id=\"xpl-tg-1\">\n <xpl-select class-names=\"xpl-tabs__mobile-select\" selected-values=\"tab0\"></xpl-select>\n <nav class=\"xpl-tabs__headings\" role=\"tablist\" aria-orientation=\"horizontal\">\n <div class=\"xpl-tabs__active-bar\"></div>\n <div class=\"xpl-tab xpl-tab--selected\">\n <button class=\"xpl-tab__button\" type=\"button\" role=\"tab\" id=\"xpl-tg-1-tab-tab0\" aria-controls=\"xpl-tg-1-panel-tab0\" aria-selected=\"true\">Tab 1</button>\n </div>\n <div class=\"xpl-tab\">\n <button class=\"xpl-tab__button\" type=\"button\" role=\"tab\" id=\"xpl-tg-1-tab-tab1\" aria-controls=\"xpl-tg-1-panel-tab1\" aria-selected=\"false\">Tab 2</button>\n </div>\n </nav>\n <div class=\"xpl-tabs__panels\">\n <div class=\"xpl-tab-panel xpl-tab-panel--selected\" role=\"tabpanel\" id=\"xpl-tg-1-panel-tab0\" aria-labelledby=\"xpl-tg-1-tab-tab0\">Content for tab 1</div>\n <div class=\"xpl-tab-panel\" role=\"tabpanel\" id=\"xpl-tg-1-panel-tab1\" aria-labelledby=\"xpl-tg-1-tab-tab1\">Content for tab 2</div>\n </div>\n</div>";
|
|
20
|
+
export declare const tabsPlainDomSegmentStoryHtml = "<---- Segment (type='segment'): Stencil renders xpl-tab.xpl-tab--segment > xpl-button; xpl-tab assigns id, role, and aria-* on the inner native <button>. Plain buttons below only illustrate tablist \u2194 tabpanel id wiring (not .xpl-tab__button). ---->\n<div class=\"xpl-tabs xpl-tabs--segment\" data-tabs-instance-id=\"xpl-tg-2\">\n <xpl-select class-names=\"xpl-tabs__mobile-select\" selected-values=\"tab0\"></xpl-select>\n <nav class=\"xpl-tabs__headings\" role=\"tablist\" aria-orientation=\"horizontal\">\n <div class=\"xpl-tab xpl-tab--segment xpl-tab--selected\">\n <button type=\"button\" role=\"tab\" id=\"xpl-tg-2-tab-tab0\" aria-controls=\"xpl-tg-2-panel-tab0\" aria-selected=\"true\">Segment 1</button>\n </div>\n <div class=\"xpl-tab xpl-tab--segment\">\n <button type=\"button\" role=\"tab\" id=\"xpl-tg-2-tab-tab1\" aria-controls=\"xpl-tg-2-panel-tab1\" aria-selected=\"false\">Segment 2</button>\n </div>\n </nav>\n <div class=\"xpl-tabs__panels\">\n <div class=\"xpl-tab-panel xpl-tab-panel--selected\" role=\"tabpanel\" id=\"xpl-tg-2-panel-tab0\" aria-labelledby=\"xpl-tg-2-tab-tab0\">Content for segment 1</div>\n <div class=\"xpl-tab-panel\" role=\"tabpanel\" id=\"xpl-tg-2-panel-tab1\" aria-labelledby=\"xpl-tg-2-tab-tab1\">Content for segment 2</div>\n </div>\n</div>";
|
|
21
|
+
export declare const tabsStoryBaseArgTypes: {
|
|
22
|
+
type: {
|
|
23
|
+
options: string[];
|
|
24
|
+
control: {
|
|
25
|
+
type: "select";
|
|
26
|
+
};
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
control: {
|
|
31
|
+
type: "boolean";
|
|
32
|
+
};
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
fullWidth: {
|
|
36
|
+
control: {
|
|
37
|
+
type: "boolean";
|
|
38
|
+
};
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
value: {
|
|
42
|
+
control: {
|
|
43
|
+
type: "text";
|
|
44
|
+
};
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
tabCount: {
|
|
48
|
+
control: {
|
|
49
|
+
type: "number";
|
|
50
|
+
min: number;
|
|
51
|
+
max: number;
|
|
52
|
+
step: number;
|
|
53
|
+
};
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
tabDisabled: {
|
|
57
|
+
control: {
|
|
58
|
+
type: "boolean";
|
|
59
|
+
};
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
icon: {
|
|
63
|
+
control: {
|
|
64
|
+
type: "text";
|
|
65
|
+
};
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
iconPosition: {
|
|
69
|
+
options: string[];
|
|
70
|
+
control: {
|
|
71
|
+
type: "radio";
|
|
72
|
+
};
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const segmentControlStoryArgTypes: {
|
|
77
|
+
type: {
|
|
78
|
+
table: {
|
|
79
|
+
disable: true;
|
|
80
|
+
};
|
|
81
|
+
options: string[];
|
|
82
|
+
control: {
|
|
83
|
+
type: "select";
|
|
84
|
+
};
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
disabled: {
|
|
88
|
+
table: {
|
|
89
|
+
category: string;
|
|
90
|
+
};
|
|
91
|
+
control: {
|
|
92
|
+
type: "boolean";
|
|
93
|
+
};
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
fullWidth: {
|
|
97
|
+
table: {
|
|
98
|
+
category: string;
|
|
99
|
+
};
|
|
100
|
+
control: {
|
|
101
|
+
type: "boolean";
|
|
102
|
+
};
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
value: {
|
|
106
|
+
table: {
|
|
107
|
+
category: string;
|
|
108
|
+
};
|
|
109
|
+
control: {
|
|
110
|
+
type: "text";
|
|
111
|
+
};
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
tabCount: {
|
|
115
|
+
table: {
|
|
116
|
+
category: string;
|
|
117
|
+
};
|
|
118
|
+
control: {
|
|
119
|
+
type: "number";
|
|
120
|
+
min: number;
|
|
121
|
+
max: number;
|
|
122
|
+
step: number;
|
|
123
|
+
};
|
|
124
|
+
description: string;
|
|
125
|
+
};
|
|
126
|
+
tabDisabled: {
|
|
127
|
+
table: {
|
|
128
|
+
category: string;
|
|
129
|
+
};
|
|
130
|
+
control: {
|
|
131
|
+
type: "boolean";
|
|
132
|
+
};
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
135
|
+
icon: {
|
|
136
|
+
table: {
|
|
137
|
+
category: string;
|
|
138
|
+
};
|
|
139
|
+
control: {
|
|
140
|
+
type: "text";
|
|
141
|
+
};
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
iconPosition: {
|
|
145
|
+
table: {
|
|
146
|
+
category: string;
|
|
147
|
+
};
|
|
148
|
+
options: string[];
|
|
149
|
+
control: {
|
|
150
|
+
type: "radio";
|
|
151
|
+
};
|
|
152
|
+
description: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export declare const tabsUnderlineDefaultArgs: TabsStoryArgs;
|
|
156
|
+
export declare const segmentControlDefaultArgs: TabsStoryArgs;
|