@xplortech/apollo-core 2.6.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 +737 -63
- package/build/style.css +5415 -1805
- package/dist/apollo-core/apollo-core.css +62 -22
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-8a1affce.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-42016063.entry.js → p-28d12fd3.entry.js} +1 -1
- package/dist/apollo-core/p-3eb5eb7c.entry.js +1 -0
- 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-02167464.entry.js → p-7eb86c63.entry.js} +1 -1
- package/dist/apollo-core/{p-1fd3dc87.entry.js → p-84254a24.entry.js} +1 -1
- package/dist/apollo-core/p-9f2a0321.entry.js +1 -0
- package/dist/apollo-core/{p-C_Z2nG0p.js → p-C7bgJs6C.js} +2 -2
- 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-DH6pgWru.js → index-BQ97-AWw.js} +18 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/xpl-accordion.cjs.entry.js +3 -3
- package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
- package/dist/cjs/{xpl-avatar_47.cjs.entry.js → xpl-avatar_61.cjs.entry.js} +6096 -1461
- package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-calendar.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +3 -3
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/xpl-grid.cjs.entry.js +2 -2
- package/dist/cjs/xpl-large-card.cjs.entry.js +2 -2
- package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
- package/dist/cjs/xpl-toggle.cjs.entry.js +4 -4
- package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +18 -7
- package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
- package/dist/collection/components/xpl-avatar/avatar.stories.js +122 -107
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +249 -15
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/badge.stories.js +1 -33
- package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +4 -3
- 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 +21 -3
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +47 -25
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -1
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +2 -2
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +2 -2
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +46 -53
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
- package/dist/collection/components/xpl-input/input.stories.js +96 -1
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +485 -0
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input.js +130 -18
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
- 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 +579 -21
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +1 -1
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +3 -3
- package/dist/collection/components/xpl-panel/panel.stories.js +5 -3
- package/dist/collection/components/xpl-panel/xpl-panel.js +3 -3
- package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/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 +3 -3
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/xpl-select.js +6 -6
- package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
- package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +2 -2
- package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +1 -1
- package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
- package/dist/collection/components/xpl-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 +261 -8
- package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +22 -15
- 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 +1448 -143
- 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 +338 -62
- package/dist/collection/components/xpl-tag/tag.stories.js +153 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +312 -9
- package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/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 +1 -1
- 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-avatar2.js +1 -1
- package/dist/components/xpl-backdrop2.js +1 -1
- package/dist/components/xpl-badge2.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-button2.js +1 -1
- package/dist/components/xpl-calendar.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-divider2.js +1 -1
- package/dist/components/xpl-dropdown-group2.js +1 -1
- package/dist/components/xpl-dropdown-heading2.js +1 -1
- package/dist/components/xpl-dropdown-option2.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-icon2.js +1 -1
- package/dist/components/xpl-input-date2.js +1 -1
- package/dist/components/xpl-input-file2.js +1 -1
- 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-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.js +1 -1
- package/dist/components/xpl-popover2.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.d.ts +11 -0
- package/dist/components/xpl-progress-indicator.js +1 -0
- package/dist/components/xpl-radio2.js +1 -1
- package/dist/components/xpl-secondary-nav.js +1 -1
- package/dist/components/xpl-select2.js +1 -1
- package/dist/components/xpl-side-nav-item.js +1 -1
- package/dist/components/xpl-side-nav.js +1 -1
- package/dist/components/xpl-skeleton.js +1 -1
- package/dist/components/xpl-slideout.js +1 -1
- package/dist/components/xpl-spotlight.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-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-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-avatar/readme.md +289 -15
- package/dist/docs/xpl-badge/readme.md +14 -9
- package/dist/docs/xpl-banner/readme.md +48 -11
- package/dist/docs/xpl-button/readme.md +28 -18
- package/dist/docs/xpl-calendar/readme.md +1 -1
- package/dist/docs/xpl-checkbox/readme.md +19 -16
- package/dist/docs/xpl-divider/readme.md +6 -4
- package/dist/docs/xpl-dropdown/readme.md +1 -1
- 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 +15 -3
- package/dist/docs/xpl-input/readme.md +66 -41
- package/dist/docs/xpl-input/xpl-input-color/readme.md +1 -0
- package/dist/docs/xpl-input/xpl-input-phone/readme.md +1 -0
- package/dist/docs/xpl-input/xpl-input-search/readme.md +175 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +1 -0
- 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-pagination/readme.md +1 -0
- package/dist/docs/xpl-panel/readme.md +108 -17
- package/dist/docs/xpl-popover/readme.md +2 -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 +2 -1
- package/dist/docs/xpl-side-nav/readme.md +2 -2
- package/dist/docs/xpl-slideout/readme.md +1 -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 +62 -8
- package/dist/docs/xpl-tag/readme.md +379 -4
- package/dist/docs/xpl-toast/readme.md +1 -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-C_Z2nG0p.js → index-C7bgJs6C.js} +18 -16
- package/dist/esm/loader.js +3 -3
- package/dist/esm/xpl-accordion.entry.js +3 -3
- package/dist/esm/xpl-application-shell.entry.js +2 -2
- package/dist/esm/{xpl-avatar_47.entry.js → xpl-avatar_61.entry.js} +6082 -1461
- package/dist/esm/xpl-button-row.entry.js +2 -2
- package/dist/esm/xpl-calendar.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table-cell.entry.js +3 -3
- package/dist/esm/xpl-dynamic-table-row.entry.js +3 -3
- package/dist/esm/xpl-dynamic-table.entry.js +2 -2
- package/dist/esm/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +2 -2
- package/dist/esm/xpl-large-card.entry.js +2 -2
- package/dist/esm/xpl-main-nav.entry.js +2 -2
- package/dist/esm/xpl-toggle.entry.js +4 -4
- package/dist/esm/xpl-toolbar.entry.js +3 -3
- package/dist/types/components/xpl-avatar/avatar.stories.d.ts +88 -29
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +29 -2
- package/dist/types/components/xpl-badge/badge.stories.d.ts +0 -19
- package/dist/types/components/xpl-button/xpl-button.d.ts +7 -0
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +4 -3
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +9 -10
- package/dist/types/components/xpl-input/input.stories.d.ts +1 -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.d.ts +13 -5
- 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 +55 -2
- package/dist/types/components/xpl-panel/panel.stories.d.ts +2 -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-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 +14 -1
- package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +2 -1
- 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-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 +123 -21
- 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 +37 -18
- package/dist/types/components/xpl-tag/tag.stories.d.ts +65 -0
- package/dist/types/components/xpl-tag/xpl-tag.d.ts +36 -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.d.ts +1888 -148
- package/dist/types/utils/lifecycle.d.ts +16 -0
- package/dist/types/utils/tab-a11y-ids.d.ts +4 -0
- package/package.json +3 -3
- package/dist/apollo-core/p-0bce3874.entry.js +0 -1
- package/dist/apollo-core/p-5549756c.entry.js +0 -1
- package/dist/apollo-core/p-56fa4941.entry.js +0 -1
- package/dist/apollo-core/p-76c324da.entry.js +0 -1
- package/dist/apollo-core/p-7a3224b4.entry.js +0 -1
- package/dist/apollo-core/p-7e924697.entry.js +0 -1
- package/dist/apollo-core/p-9efca9e1.entry.js +0 -1
- package/dist/apollo-core/p-b252b380.entry.js +0 -1
- package/dist/apollo-core/p-c91daac1.entry.js +0 -1
- package/dist/apollo-core/p-d9b62508.entry.js +0 -1
- package/dist/apollo-core/p-eaea16d1.entry.js +0 -1
- package/dist/apollo-core/p-eed13bca.entry.js +0 -1
- package/dist/apollo-core/p-f5af9539.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-cell/xpl-table-header-cell.d.ts +0 -13
- /package/dist/types/components/{xpl-table-header → xpl-table/xpl-table-header}/xpl-table-header.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as r}from"./p-C_Z2nG0p.js";const s=class{constructor(a){e(this,a)}render(){return a(r,{key:"1724195feab553e1f5f468352be234a5f867e75a",role:"row",class:"xpl-table-header"},a("slot",{key:"14d458367da08aed53b57a4ccda1d26740922e05"}))}};export{s as xpl_table_header}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as l}from"./p-C_Z2nG0p.js";const i=class{constructor(a){e(this,a),this.withSubnav=!1,this.withUtility=!0,this.navWidth="default",this.navOpen=!0}closeNavOnMobile(){window.innerWidth<=640&&(this.navOpen=!1)}navToggleHandler(){this.navOpen=!this.navOpen}navWithHandler(e){this.navWidth=e.detail}onWindowResize(){this.closeNavOnMobile()}connectedCallback(){this.closeNavOnMobile()}componentWillLoad(){this.navOpen=void 0!==this.isNavOpenAtStartup?this.isNavOpenAtStartup:this.navOpen}render(){let e="xpl-application-shell";this.withUtility&&(e+=" xpl-application-shell--with_utility");let i="xpl-application-shell__nav";return i+=this.navOpen?` xpl-application-shell__nav--${this.navWidth}--open`:` xpl-application-shell__nav--${this.navWidth}`,a(l,{key:"7a06051142cc71f5a900e65562e464f5580f369e",class:e},a("div",{key:"00cb4f2294999e77bc88aa32917287a93989ceb3",class:i},a("slot",{key:"de0a3f5415273c4d36390b6e345e9c046ebeda05",name:"nav"})),a("div",{key:"605faac64e0b770b2d3e52d0b6f169898de827bc",class:"xpl-application-shell__subnav"},a("slot",{key:"040b8b6f5aa7642636b33f65f2eff6f1070b1b2f",name:"subnav"})),a("div",{key:"ee1e3e5c51d4e048fd4fda7bf6e438d29c8c2ade",class:"xpl-application-shell__utility"},a("slot",{key:"6118de3716d41e9f8cc03abb5efd4c2e8541adf7",name:"utility"})),a("div",{key:"3aa64a066e680e74bac8b988f579d51593bc3ace",class:"xpl-application-shell__content"},a("slot",{key:"aba788b0aa8f8ab92bb5c577b5951c98d21c9f36",name:"content"})),a("xpl-backdrop",{key:"f72d69bbfe9171193293148810700e9ff00e372d",onClick:()=>this.navToggleHandler(),class:{"xpl-application-shell__backdrop--open":this.navOpen},relative:!0}))}};export{i as xpl_application_shell}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as t,g as c}from"./p-C_Z2nG0p.js";const s=class{constructor(a){e(this,a),this.selectedItemCount=0}componentDidLoad(){const e=this.el.querySelector('[slot="actions-right"]');null!==e&&(e.style.marginLeft="auto")}listenToSelectedItemCountChange(e){this.selectedItemCount=e.detail.length}render(){return a(t,{key:"48056451ad54987de8d046a3892cc1011ed41bbb",class:{"xpl-toolbar":!0,dark:!0,hidden:0===this.selectedItemCount}},a("div",{key:"3c9680e4cf006dee69372d271a0720b6802767bc",class:"toolbar"},a("p",{key:"afcfba4a2d5c73d6bf602b94340280dcc28d6493",class:"selected-item-count"},this.selectedItemCount," Selected"),a("div",{key:"fdadc34738fcf397a38772ab817c3a5bc1e5015f",class:"actions"},a("slot",{key:"b6571d83f8ac800143e4f9cd62559aac83c7e424",name:"actions-left"}),a("slot",{key:"30aa34da340647dbcb79f8862c5ca9647ebedb12",name:"actions-right"}))))}get el(){return c(this)}};export{s as xpl_toolbar}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c,h as a,H as s}from"./p-C_Z2nG0p.js";const i=class{constructor(a){t(this,a),this.clickPrimary=c(this,"clickPrimary",7),this.clickSecondary=c(this,"clickSecondary",7),this.clickTertiary=c(this,"clickTertiary",7),this.onPrimary=()=>this.clickPrimary.emit(),this.onSecondary=()=>this.clickSecondary.emit(),this.onTertiary=()=>this.clickTertiary.emit()}render(){return a(s,{key:"0f5bf4d086cbafb8b03f854ea11b495ee5009cdf",class:"xpl-button-row"},a("div",{key:"64ab05ca8cba9cf4c2a8feca5a6233a6a4b6a7e4",class:"xpl-button-row-inner"},a("div",{key:"2e8d97b9fb7f7a31e0014b255342c0f2fb3ce7ac",class:"xpl-button-row__left"},this.secondary&&a("xpl-button",{key:"d368c7228a9f12143cff4978ced0a5eac35ff8a3",variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary)),a("div",{key:"a2a1860115ab9ac09d6ddd01ffd1e6e49d1ac874",class:"xpl-button-row__right"},this.tertiary&&a("xpl-button",{key:"98f77b4745b72e8321e37d307c0a298f1e52045f",variant:"subtle",type:"button",onClick:this.onTertiary},this.tertiary),this.secondary&&a("xpl-button",{key:"7f605c1221e856825e044dc908834f52c9e0374a",variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary),this.primary&&a("xpl-button",{key:"f83653973db8aec83cc3ec0da3cdf25431c18304",class:"xpl-button-row__primary",onClick:this.onPrimary},this.primary))))}};export{i as xpl_button_row}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as e,H as r,g as o}from"./p-C_Z2nG0p.js";const i=class{constructor(e){s(this,e),this.sortChanged=t(this,"sortChanged",7),this.sortable=!1,this.label="",this.type="label",this.sortDirection="none"}toggleSort(){this.sortDirection="asc"===this.sortDirection?"desc":"desc"===this.sortDirection?"none":"asc",this.sortChanged.emit(this.sortDirection)}render(){const s=Array.from(this.el.parentElement.children).indexOf(this.el)+1,t=()=>{switch(this.type){case"label":return e("span",null,this.label);case"checkbox":return e("xpl-checkbox",null);case"icon":return e("xpl-icon",{icon:this.icon,size:20});default:return""}};return e(r,{role:"columnheader","aria-colindex":s,class:"xpl-table-header-cell "+(this.sortable?"sortable":"non-sortable"),style:{width:`${this.width}px`}},this.sortable?e("button",{onClick:()=>this.toggleSort()},t(),(()=>{switch(this.sortDirection){case"none":return e("xpl-icon",{class:"sort-icon",icon:"arrow-down",size:16});case"asc":return e("xpl-icon",{class:"sort-icon sort-icon--sorted",icon:"arrow-up",size:16});case"desc":return e("xpl-icon",{class:"sort-icon sort-icon--sorted",icon:"arrow-down",size:16});default:return""}})()):t())}get el(){return o(this)}};export{i as xpl_table_header_cell}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DH6pgWru.js');
|
|
4
|
-
|
|
5
|
-
const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
|
|
6
|
-
const hasRight = avatars || badges || subtext;
|
|
7
|
-
const inner = (index.h(index.Fragment, null, avatar &&
|
|
8
|
-
(avatar.slice(0, 1) === '/' || avatar.slice(0, 4) === 'http' ? (index.h("xpl-avatar", { src: avatar, name: title })) : (index.h("xpl-avatar", { name: title }, avatar))), index.h("div", { class: "xpl-list-item-content" }, index.h("div", { class: "xpl-list-left" }, index.h("div", null, index.h("h4", null, title), metadata && (index.h("ul", { class: "xpl-list-item-metadata" }, metadata.map((d) => {
|
|
9
|
-
if (typeof d === 'string') {
|
|
10
|
-
return index.h("li", null, d);
|
|
11
|
-
}
|
|
12
|
-
return (index.h("li", null, index.h("xpl-icon", { icon: d.icon }), " ", d.text));
|
|
13
|
-
}))))), hasRight && (index.h("div", { class: "xpl-list-right" }, subtext && index.h("div", { class: "xpl-list-item-subtext" }, subtext), avatars && (index.h("div", { class: "xpl-avatar-group xpl-avatar-group--s" }, avatars.map((a) => (index.h("img", { src: a, alt: "" }))))), badges &&
|
|
14
|
-
badges.map((b) => {
|
|
15
|
-
if (typeof b === 'string') {
|
|
16
|
-
return index.h("xpl-badge", null, b);
|
|
17
|
-
}
|
|
18
|
-
return (index.h("xpl-badge", { dot: b.dot, variant: b.variant }, b.text));
|
|
19
|
-
}))))));
|
|
20
|
-
return href ? (index.h("a", { class: "xpl-list-item", href: href }, inner)) : (index.h("div", { class: "xpl-list-item" }, inner));
|
|
21
|
-
};
|
|
22
|
-
const List = class {
|
|
23
|
-
constructor(hostRef) {
|
|
24
|
-
index.registerInstance(this, hostRef);
|
|
25
|
-
this.items = [];
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (index.h(index.Host, { key: '441b4eae6f2837f20b58221819ca3c10a2fb3491' }, this.items.map((item) => (index.h(ListItemCpt, Object.assign({}, item))))));
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
exports.xpl_list = List;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DH6pgWru.js');
|
|
4
|
-
|
|
5
|
-
const TableHeaderCell = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
index.registerInstance(this, hostRef);
|
|
8
|
-
this.sortChanged = index.createEvent(this, "sortChanged", 7);
|
|
9
|
-
this.sortable = false;
|
|
10
|
-
this.label = '';
|
|
11
|
-
this.type = 'label';
|
|
12
|
-
this.sortDirection = 'none';
|
|
13
|
-
}
|
|
14
|
-
toggleSort() {
|
|
15
|
-
if (this.sortDirection === 'asc') {
|
|
16
|
-
this.sortDirection = 'desc';
|
|
17
|
-
}
|
|
18
|
-
else if (this.sortDirection === 'desc') {
|
|
19
|
-
this.sortDirection = 'none';
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.sortDirection = 'asc';
|
|
23
|
-
}
|
|
24
|
-
this.sortChanged.emit(this.sortDirection);
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const colIndex = Array.from(this.el.parentElement.children).indexOf(this.el) + 1;
|
|
28
|
-
const renderContent = () => {
|
|
29
|
-
switch (this.type) {
|
|
30
|
-
case 'label':
|
|
31
|
-
return index.h("span", null, this.label);
|
|
32
|
-
case 'checkbox':
|
|
33
|
-
return index.h("xpl-checkbox", null);
|
|
34
|
-
case 'icon':
|
|
35
|
-
return index.h("xpl-icon", { icon: this.icon, size: 20 });
|
|
36
|
-
default:
|
|
37
|
-
return '';
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const renderSortIcon = () => {
|
|
41
|
-
switch (this.sortDirection) {
|
|
42
|
-
case 'none':
|
|
43
|
-
return index.h("xpl-icon", { class: "sort-icon", icon: "arrow-down", size: 16 });
|
|
44
|
-
case 'asc':
|
|
45
|
-
return (index.h("xpl-icon", { class: "sort-icon sort-icon--sorted", icon: "arrow-up", size: 16 }));
|
|
46
|
-
case 'desc':
|
|
47
|
-
return (index.h("xpl-icon", { class: "sort-icon sort-icon--sorted", icon: "arrow-down", size: 16 }));
|
|
48
|
-
default:
|
|
49
|
-
return '';
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return (index.h(index.Host, { role: "columnheader", "aria-colindex": colIndex, class: `xpl-table-header-cell ${this.sortable ? 'sortable' : 'non-sortable'}`, style: { width: `${this.width}px` } }, this.sortable ? (index.h("button", { onClick: () => this.toggleSort() }, renderContent(), renderSortIcon())) : (renderContent())));
|
|
53
|
-
}
|
|
54
|
-
get el() { return index.getElement(this); }
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
exports.xpl_table_header_cell = TableHeaderCell;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DH6pgWru.js');
|
|
4
|
-
|
|
5
|
-
const TableHeader = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
index.registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (index.h(index.Host, { key: '1724195feab553e1f5f468352be234a5f867e75a', role: "row", class: "xpl-table-header" }, index.h("slot", { key: '14d458367da08aed53b57a4ccda1d26740922e05' })));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.xpl_table_header = TableHeader;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Progress',
|
|
3
|
-
component: 'xpl-progress',
|
|
4
|
-
argTypes: {
|
|
5
|
-
steps: { control: { type: 'object' } },
|
|
6
|
-
},
|
|
7
|
-
parameters: {
|
|
8
|
-
actions: {
|
|
9
|
-
handles: ['currentStepChange'],
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
tags: ['beta'],
|
|
13
|
-
};
|
|
14
|
-
export const Progress = ({ steps }) => `
|
|
15
|
-
<div style="padding: 20px">
|
|
16
|
-
<xpl-progress id="progress-stepper" steps="${JSON.stringify(steps)}"></xpl-progress>
|
|
17
|
-
|
|
18
|
-
<div style="margin-top: 30px; display: flex; gap: 10px;">
|
|
19
|
-
<xpl-button id="prev-btn" disabled variant="secondary">Previous</xpl-button>
|
|
20
|
-
<xpl-button id="next-btn">Next</xpl-button>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
(function() {
|
|
25
|
-
const progress = document.getElementById('progress-stepper');
|
|
26
|
-
progress.steps = ${JSON.stringify(steps)};
|
|
27
|
-
progress.currentStep = 0;
|
|
28
|
-
|
|
29
|
-
const prevBtn = document.getElementById('prev-btn');
|
|
30
|
-
const nextBtn = document.getElementById('next-btn');
|
|
31
|
-
|
|
32
|
-
prevBtn.addEventListener('click', () => {
|
|
33
|
-
if (progress.currentStep > 0) {
|
|
34
|
-
progress.currentStep -= 1;
|
|
35
|
-
nextBtn.disabled = false;
|
|
36
|
-
|
|
37
|
-
if (progress.currentStep === 0) {
|
|
38
|
-
prevBtn.disabled = true;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
progress.dispatchEvent(new CustomEvent('currentStepChange', {
|
|
42
|
-
bubbles: true,
|
|
43
|
-
composed: true,
|
|
44
|
-
detail: { step: progress.currentStep }
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
nextBtn.addEventListener('click', () => {
|
|
50
|
-
if (progress.currentStep < ${steps.length - 1}) {
|
|
51
|
-
progress.currentStep += 1;
|
|
52
|
-
prevBtn.disabled = false;
|
|
53
|
-
|
|
54
|
-
if (progress.currentStep === ${steps.length - 1}) {
|
|
55
|
-
nextBtn.disabled = true;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
progress.dispatchEvent(new CustomEvent('currentStepChange', {
|
|
59
|
-
bubbles: true,
|
|
60
|
-
composed: true,
|
|
61
|
-
detail: { step: progress.currentStep }
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
})();
|
|
66
|
-
</script>
|
|
67
|
-
</div>
|
|
68
|
-
`;
|
|
69
|
-
const defaultSteps = ['Details', 'Location', 'Instructor', 'Customers', 'Pricing', 'Review'];
|
|
70
|
-
Progress.args = {
|
|
71
|
-
steps: defaultSteps,
|
|
72
|
-
};
|
|
73
|
-
Progress.parameters = {
|
|
74
|
-
'web-component': {
|
|
75
|
-
render: Progress(Progress.args),
|
|
76
|
-
},
|
|
77
|
-
html: {
|
|
78
|
-
render: `
|
|
79
|
-
<div style="padding: 20px">
|
|
80
|
-
<div class="xpl-progress">
|
|
81
|
-
<div class="xpl-progress-container">
|
|
82
|
-
${defaultSteps
|
|
83
|
-
.map((step, index) => `
|
|
84
|
-
<div class="xpl-progress-step ${index === 0 ? 'xpl-progress-step-active' : ''}">
|
|
85
|
-
<div class="xpl-progress-step-content">
|
|
86
|
-
<div class="xpl-progress-step-circle">${index + 1}</div>
|
|
87
|
-
<div class="xpl-progress-step-text">${step}</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
`)
|
|
91
|
-
.join('')}
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
|
|
95
|
-
<div style="margin-top: 30px; display: flex; gap: 10px;">
|
|
96
|
-
<button class="secondary" disabled>Previous</button>
|
|
97
|
-
<button>Next</button>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
`,
|
|
101
|
-
},
|
|
102
|
-
design: {
|
|
103
|
-
type: 'figma',
|
|
104
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=12705-29149&p=f&t=vVY2x58f7oPprNSr-11',
|
|
105
|
-
},
|
|
106
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class Progress {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.currentStep = 0;
|
|
5
|
-
}
|
|
6
|
-
getCircleClass(index) {
|
|
7
|
-
if (this.currentStep < index)
|
|
8
|
-
return '';
|
|
9
|
-
if (this.currentStep === index)
|
|
10
|
-
return 'xpl-progress-step-active';
|
|
11
|
-
return 'xpl-progress-step-finished';
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const className = 'xpl-progress';
|
|
15
|
-
const steps = this.steps || [];
|
|
16
|
-
return (h(Host, { key: '13245e4ec2137ea46a325fb6d8d70c41be0307f1', class: className }, h("div", { key: 'd88e32dd9227ee388a7a6688863ce0a44354701c', class: "xpl-progress-container" }, steps.map((step, index) => (h("div", { class: `xpl-progress-step ${this.getCircleClass(index)}` }, h("div", { class: "xpl-progress-step-content" }, h("div", { class: "xpl-progress-step-circle" }, index + 1), h("div", { class: "xpl-progress-step-text" }, step))))))));
|
|
17
|
-
}
|
|
18
|
-
static get is() { return "xpl-progress"; }
|
|
19
|
-
static get properties() {
|
|
20
|
-
return {
|
|
21
|
-
"steps": {
|
|
22
|
-
"type": "unknown",
|
|
23
|
-
"mutable": true,
|
|
24
|
-
"complexType": {
|
|
25
|
-
"original": "string[]",
|
|
26
|
-
"resolved": "string[]",
|
|
27
|
-
"references": {}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": true,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": "The steps is an array of the steps name."
|
|
34
|
-
},
|
|
35
|
-
"getter": false,
|
|
36
|
-
"setter": false
|
|
37
|
-
},
|
|
38
|
-
"currentStep": {
|
|
39
|
-
"type": "number",
|
|
40
|
-
"mutable": true,
|
|
41
|
-
"complexType": {
|
|
42
|
-
"original": "number",
|
|
43
|
-
"resolved": "number",
|
|
44
|
-
"references": {}
|
|
45
|
-
},
|
|
46
|
-
"required": false,
|
|
47
|
-
"optional": false,
|
|
48
|
-
"docs": {
|
|
49
|
-
"tags": [],
|
|
50
|
-
"text": "Current step, is the index of the current active step"
|
|
51
|
-
},
|
|
52
|
-
"getter": false,
|
|
53
|
-
"setter": false,
|
|
54
|
-
"reflect": false,
|
|
55
|
-
"attribute": "current-step",
|
|
56
|
-
"defaultValue": "0"
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Dynamic Table/Table Header',
|
|
3
|
-
component: 'xpl-table-header',
|
|
4
|
-
argTypes: {
|
|
5
|
-
firstCellType: {
|
|
6
|
-
control: 'select',
|
|
7
|
-
options: ['label', 'checkbox', 'icon'],
|
|
8
|
-
},
|
|
9
|
-
firstCellLabel: {
|
|
10
|
-
control: 'text',
|
|
11
|
-
},
|
|
12
|
-
firstCellIcon: {
|
|
13
|
-
control: 'select',
|
|
14
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
15
|
-
},
|
|
16
|
-
firstCellWidth: {
|
|
17
|
-
control: 'number',
|
|
18
|
-
},
|
|
19
|
-
firstCellSortable: { control: 'boolean' },
|
|
20
|
-
secondCellType: {
|
|
21
|
-
control: 'select',
|
|
22
|
-
options: ['label', 'checkbox', 'icon'],
|
|
23
|
-
},
|
|
24
|
-
secondCellLabel: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
},
|
|
27
|
-
secondCellIcon: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
30
|
-
},
|
|
31
|
-
secondCellWidth: {
|
|
32
|
-
control: 'number',
|
|
33
|
-
},
|
|
34
|
-
secondCellSortable: { control: 'boolean' },
|
|
35
|
-
thirdCellType: {
|
|
36
|
-
control: 'select',
|
|
37
|
-
options: ['label', 'checkbox', 'icon'],
|
|
38
|
-
},
|
|
39
|
-
thirdCellLabel: {
|
|
40
|
-
control: 'text',
|
|
41
|
-
},
|
|
42
|
-
thirdCellIcon: {
|
|
43
|
-
control: 'select',
|
|
44
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
45
|
-
},
|
|
46
|
-
thirdCellWidth: {
|
|
47
|
-
control: 'number',
|
|
48
|
-
},
|
|
49
|
-
thirdCellSortable: { control: 'boolean' },
|
|
50
|
-
},
|
|
51
|
-
tags: ['beta'],
|
|
52
|
-
};
|
|
53
|
-
export const TableHeader = ({ firstCellType, firstCellLabel, firstCellIcon, firstCellWidth, firstCellSortable, secondCellType, secondCellLabel, secondCellIcon, secondCellWidth, secondCellSortable, thirdCellType, thirdCellLabel, thirdCellIcon, thirdCellWidth, thirdCellSortable, }) => `
|
|
54
|
-
<xpl-dynamic-table>
|
|
55
|
-
<div slot="header">
|
|
56
|
-
<xpl-table-header>
|
|
57
|
-
<xpl-table-header-cell
|
|
58
|
-
type=${firstCellType}
|
|
59
|
-
label="${firstCellLabel}"
|
|
60
|
-
icon=${firstCellIcon}
|
|
61
|
-
width=${firstCellWidth}
|
|
62
|
-
sortable=${firstCellSortable}
|
|
63
|
-
></xpl-table-header-cell>
|
|
64
|
-
<xpl-table-header-cell
|
|
65
|
-
type=${secondCellType}
|
|
66
|
-
label="${secondCellLabel}"
|
|
67
|
-
icon=${secondCellIcon}
|
|
68
|
-
width=${secondCellWidth}
|
|
69
|
-
sortable=${secondCellSortable}
|
|
70
|
-
></xpl-table-header-cell>
|
|
71
|
-
<xpl-table-header-cell
|
|
72
|
-
type=${thirdCellType}
|
|
73
|
-
label="${thirdCellLabel}"
|
|
74
|
-
icon=${thirdCellIcon}
|
|
75
|
-
width=${thirdCellWidth}
|
|
76
|
-
sortable=${thirdCellSortable}
|
|
77
|
-
>
|
|
78
|
-
</xpl-table-header-cell>
|
|
79
|
-
</xpl-table-header>
|
|
80
|
-
</div>
|
|
81
|
-
</xpl-dynamic-table>
|
|
82
|
-
|
|
83
|
-
`;
|
|
84
|
-
TableHeader.args = {
|
|
85
|
-
firstCellType: 'label',
|
|
86
|
-
firstCellLabel: '',
|
|
87
|
-
firstCellIcon: 'heart',
|
|
88
|
-
firstCellWidth: 48,
|
|
89
|
-
firstCellSortable: false,
|
|
90
|
-
secondCellType: 'icon',
|
|
91
|
-
secondCellLabel: 'Column Item 2',
|
|
92
|
-
secondCellIcon: 'heart',
|
|
93
|
-
secondCellWidth: 48,
|
|
94
|
-
secondCellSortable: false,
|
|
95
|
-
thirdCellType: 'label',
|
|
96
|
-
thirdCellLabel: 'Column Item 3',
|
|
97
|
-
thirdCellIcon: 'heart',
|
|
98
|
-
thirdCellWidth: 208,
|
|
99
|
-
thirdCellSortable: true,
|
|
100
|
-
};
|
|
101
|
-
TableHeader.parameters = {
|
|
102
|
-
'web-component': {
|
|
103
|
-
render: TableHeader(TableHeader.args),
|
|
104
|
-
},
|
|
105
|
-
html: {
|
|
106
|
-
render: `
|
|
107
|
-
<tr class="xpl-table-header table-header">
|
|
108
|
-
<th class="header-cell">
|
|
109
|
-
<span></span>
|
|
110
|
-
</th>
|
|
111
|
-
<th class="header-cell">
|
|
112
|
-
<xpl-icon class="header-icon" icon="heart"></xpl-icon>
|
|
113
|
-
</th>
|
|
114
|
-
<th class="header-cell">
|
|
115
|
-
<button class="sortable">
|
|
116
|
-
<span class="sortable-text">Column Item 3</span>
|
|
117
|
-
<xpl-icon class="sort-icon" icon="arrow-down"></xpl-icon>
|
|
118
|
-
</button>
|
|
119
|
-
</th>
|
|
120
|
-
</tr>`,
|
|
121
|
-
},
|
|
122
|
-
design: {
|
|
123
|
-
type: 'figma',
|
|
124
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=14764-42036&p=f&t=xrSF2t7u1Brg2fnZ-11',
|
|
125
|
-
},
|
|
126
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class TableHeader {
|
|
3
|
-
render() {
|
|
4
|
-
return (h(Host, { key: '1724195feab553e1f5f468352be234a5f867e75a', role: "row", class: "xpl-table-header" }, h("slot", { key: '14d458367da08aed53b57a4ccda1d26740922e05' })));
|
|
5
|
-
}
|
|
6
|
-
static get is() { return "xpl-table-header"; }
|
|
7
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Dynamic Table/Table Header Cell',
|
|
3
|
-
component: 'xpl-table-header-cell',
|
|
4
|
-
argTypes: {
|
|
5
|
-
type: {
|
|
6
|
-
control: 'select',
|
|
7
|
-
options: ['label', 'checkbox', 'icon'],
|
|
8
|
-
},
|
|
9
|
-
label: {
|
|
10
|
-
control: 'text',
|
|
11
|
-
},
|
|
12
|
-
icon: {
|
|
13
|
-
control: 'select',
|
|
14
|
-
options: ['chevron-down', 'chevron-up', 'heart', 'dollar-sign'],
|
|
15
|
-
},
|
|
16
|
-
width: {
|
|
17
|
-
control: 'number',
|
|
18
|
-
},
|
|
19
|
-
sortable: { control: 'boolean' },
|
|
20
|
-
},
|
|
21
|
-
tags: ['beta'],
|
|
22
|
-
};
|
|
23
|
-
export const TableHeaderCell = ({ type, label, icon, width, sortable }) => `
|
|
24
|
-
<xpl-table-header-cell
|
|
25
|
-
type=${type}
|
|
26
|
-
label="${label}"
|
|
27
|
-
icon=${icon}
|
|
28
|
-
width=${width}
|
|
29
|
-
sortable=${sortable}
|
|
30
|
-
></xpl-table-header-cell>
|
|
31
|
-
`;
|
|
32
|
-
TableHeaderCell.args = {
|
|
33
|
-
type: 'label',
|
|
34
|
-
label: 'Column Item',
|
|
35
|
-
icon: 'chevron-down',
|
|
36
|
-
width: null,
|
|
37
|
-
sortable: false,
|
|
38
|
-
};
|
|
39
|
-
TableHeaderCell.parameters = {
|
|
40
|
-
'web-component': {
|
|
41
|
-
render: TableHeaderCell(TableHeaderCell.args),
|
|
42
|
-
},
|
|
43
|
-
html: {
|
|
44
|
-
render: ({ type, label, icon, width, sortable }) => {
|
|
45
|
-
const renderContent = () => {
|
|
46
|
-
switch (type) {
|
|
47
|
-
case 'label':
|
|
48
|
-
return `<span>${label}</span>`;
|
|
49
|
-
case 'checkbox':
|
|
50
|
-
return `<input type="checkbox" class="xpl-checkbox">`;
|
|
51
|
-
case 'icon':
|
|
52
|
-
return `<xpl-icon icon="${icon}"></xpl-icon>`;
|
|
53
|
-
default:
|
|
54
|
-
return '';
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
return `
|
|
58
|
-
<th class="header-cell" style="width: ${width}px">
|
|
59
|
-
${sortable
|
|
60
|
-
? `
|
|
61
|
-
<button class="sortable">
|
|
62
|
-
${renderContent()}
|
|
63
|
-
<xpl-icon icon="arrow-down"></xpl-icon>
|
|
64
|
-
</button>
|
|
65
|
-
`
|
|
66
|
-
: `<div class="non-sortable">renderContent()</div>`}
|
|
67
|
-
</th>
|
|
68
|
-
`;
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
design: {
|
|
72
|
-
type: 'figma',
|
|
73
|
-
url: 'https://www.figma.com/design/MjjYek73MFnHmVNdm45Sd1/Apollo-Web?node-id=14764-42036&p=f&t=xrSF2t7u1Brg2fnZ-11',
|
|
74
|
-
},
|
|
75
|
-
};
|