@xplortech/apollo-core 2.7.0 → 2.7.1
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 +97 -180
- package/build/style.css +220 -951
- package/dist/apollo-core/apollo-core.css +5 -35
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-6c956d4e.entry.js → p-0bf50890.entry.js} +1 -1
- package/dist/apollo-core/p-1947e7a8.entry.js +1 -0
- package/dist/apollo-core/p-27928cb0.entry.js +1 -0
- package/dist/apollo-core/p-34438721.entry.js +1 -0
- package/dist/apollo-core/p-35c2f72d.entry.js +1 -0
- package/dist/apollo-core/p-368c81f1.entry.js +1 -0
- package/dist/apollo-core/p-36ba29da.entry.js +1 -0
- package/dist/apollo-core/p-406b27a8.entry.js +1 -0
- package/dist/apollo-core/p-5d63b4ce.entry.js +1 -0
- package/dist/apollo-core/{p-7eb86c63.entry.js → p-6a15f1e0.entry.js} +1 -1
- package/dist/apollo-core/p-8d692d05.entry.js +1 -0
- package/dist/apollo-core/{p-28d12fd3.entry.js → p-b61d7952.entry.js} +1 -1
- package/dist/apollo-core/{p-084d26ed.entry.js → p-ca127ee8.entry.js} +1 -1
- package/dist/apollo-core/p-d1c9c233.entry.js +1 -0
- package/dist/apollo-core/p-dc205893.entry.js +1 -0
- package/dist/apollo-core/p-e2a5d41c.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +1 -1
- package/dist/cjs/index-BQ97-AWw.js +10 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/xpl-accordion.cjs.entry.js +2 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
- package/dist/cjs/{xpl-avatar_61.cjs.entry.js → xpl-avatar_54.cjs.entry.js} +238 -1683
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
- package/dist/cjs/xpl-calendar.cjs.entry.js +1 -1
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-large-card.cjs.entry.js +1 -1
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-table-header-cell.cjs.entry.js +57 -0
- package/dist/cjs/xpl-table-header.cjs.entry.js +14 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
- package/dist/cjs/xpl-toolbar.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -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-backdrop/xpl-backdrop.js +1 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
- package/dist/collection/components/xpl-banner/xpl-banner.js +2 -2
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
- package/dist/collection/components/xpl-button/xpl-button.js +1 -1
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
- package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +25 -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 +77 -7
- 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 +53 -46
- package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
- package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
- package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
- package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +5 -5
- package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +1 -1
- package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
- package/dist/collection/components/xpl-input/xpl-input.js +2 -2
- package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
- package/dist/collection/components/xpl-list/xpl-list.js +2 -2
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
- package/dist/collection/components/xpl-modal/xpl-modal.js +1 -1
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
- package/dist/collection/components/xpl-pagination/pagination.stories.js +18 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +7 -3
- package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
- package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
- package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
- package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js +3 -3
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
- package/dist/collection/components/xpl-select/xpl-select.js +58 -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-tab-panel/xpl-tab-panel.js +2 -2
- package/dist/collection/components/xpl-table/table.stories.js +67 -319
- package/dist/collection/components/xpl-table/xpl-table.js +151 -1456
- package/dist/collection/components/xpl-table-header/table-header.stories.js +126 -0
- package/dist/collection/components/xpl-table-header/xpl-table-header.js +7 -0
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +75 -0
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +188 -0
- package/dist/collection/components/xpl-tabs/xpl-tabs.js +5 -5
- package/dist/collection/components/xpl-tag/xpl-tag.js +2 -2
- package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
- package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
- package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
- package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
- package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +5 -5
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/xpl-accordion.js +1 -1
- package/dist/components/xpl-application-shell.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-search2.js +1 -1
- package/dist/components/xpl-input2.js +1 -1
- package/dist/components/xpl-large-card.js +1 -1
- package/dist/components/xpl-list.js +1 -1
- package/dist/components/xpl-main-nav.js +1 -1
- package/dist/components/xpl-modal.js +1 -1
- package/dist/components/xpl-nav-header-menu.js +1 -1
- package/dist/components/xpl-nav-item.js +1 -1
- package/dist/components/xpl-pagination.js +1 -1
- package/dist/components/xpl-panel.js +1 -1
- package/dist/components/xpl-popover2.js +1 -1
- package/dist/components/xpl-progress-bar.js +1 -1
- package/dist/components/xpl-progress-indicator.js +1 -1
- package/dist/components/xpl-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-tab-panel.js +1 -1
- package/dist/components/xpl-table-header-cell.js +1 -1
- package/dist/components/xpl-table-header.js +1 -1
- 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-item2.js +1 -1
- package/dist/components/xpl-top-nav.js +1 -1
- package/dist/components/xpl-utility-bar.js +1 -1
- package/dist/docs/xpl-checkbox/readme.md +5 -7
- package/dist/docs/xpl-dropdown/readme.md +13 -11
- package/dist/docs/xpl-dynamic-table/readme.md +19 -22
- package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -20
- package/dist/docs/xpl-dynamic-table-row/readme.md +19 -21
- package/dist/docs/xpl-icon/readme.md +1 -1
- package/dist/docs/xpl-select/readme.md +17 -15
- package/dist/docs/xpl-table/readme.md +46 -110
- package/dist/docs/{xpl-table/xpl-table-header → xpl-table-header}/readme.md +13 -13
- package/dist/docs/xpl-table-header-cell/readme.md +47 -0
- package/dist/esm/apollo-core.js +1 -1
- package/dist/esm/index-C7bgJs6C.js +10 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/xpl-accordion.entry.js +2 -2
- package/dist/esm/xpl-application-shell.entry.js +1 -1
- package/dist/esm/{xpl-avatar_61.entry.js → xpl-avatar_54.entry.js} +239 -1677
- package/dist/esm/xpl-button-row.entry.js +1 -1
- package/dist/esm/xpl-calendar.entry.js +1 -1
- package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table.entry.js +1 -1
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-large-card.entry.js +1 -1
- package/dist/esm/xpl-main-nav.entry.js +1 -1
- package/dist/esm/xpl-table-header-cell.entry.js +55 -0
- package/dist/esm/xpl-table-header.entry.js +12 -0
- package/dist/esm/xpl-toggle.entry.js +3 -3
- package/dist/esm/xpl-toolbar.entry.js +2 -2
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +2 -2
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -0
- package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +10 -9
- package/dist/types/components/xpl-pagination/pagination.stories.d.ts +13 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +3 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +19 -161
- package/dist/types/components/xpl-table/xpl-table.d.ts +21 -123
- package/dist/types/components/{xpl-table/xpl-table-header → xpl-table-header}/table-header.stories.d.ts +16 -13
- package/dist/types/components/{xpl-table/xpl-table-header-cell → xpl-table-header-cell}/table-header-cell.stories.d.ts +20 -24
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +13 -0
- package/dist/types/components.d.ts +89 -391
- package/package.json +10 -1
- package/dist/apollo-core/p-146d5d55.entry.js +0 -1
- package/dist/apollo-core/p-16742606.entry.js +0 -1
- package/dist/apollo-core/p-3eb5eb7c.entry.js +0 -1
- package/dist/apollo-core/p-4882f0bd.entry.js +0 -1
- package/dist/apollo-core/p-64b34268.entry.js +0 -1
- package/dist/apollo-core/p-71b75f36.entry.js +0 -1
- package/dist/apollo-core/p-84254a24.entry.js +0 -1
- package/dist/apollo-core/p-9f2a0321.entry.js +0 -1
- package/dist/apollo-core/p-cde83ab0.entry.js +0 -1
- package/dist/apollo-core/p-e7363036.entry.js +0 -1
- package/dist/collection/components/xpl-table/utils/move-row-dom.js +0 -50
- package/dist/collection/components/xpl-table/utils/table-internal.js +0 -58
- package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +0 -7
- package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +0 -155
- package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +0 -7
- package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +0 -37
- package/dist/collection/components/xpl-table/xpl-table-header/table-header.stories.js +0 -131
- package/dist/collection/components/xpl-table/xpl-table-header/xpl-table-header.js +0 -7
- package/dist/collection/components/xpl-table/xpl-table-header-cell/table-header-cell.stories.js +0 -105
- package/dist/collection/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.js +0 -402
- package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +0 -121
- package/dist/components/lifecycle.js +0 -1
- package/dist/components/xpl-table-body.d.ts +0 -11
- package/dist/components/xpl-table-body.js +0 -1
- package/dist/components/xpl-table-cell.d.ts +0 -11
- package/dist/components/xpl-table-cell.js +0 -1
- package/dist/components/xpl-table-cell2.js +0 -1
- package/dist/components/xpl-table-footer-cell.d.ts +0 -11
- package/dist/components/xpl-table-footer-cell.js +0 -1
- package/dist/components/xpl-table-footer-cell2.js +0 -1
- package/dist/components/xpl-table-footer.d.ts +0 -11
- package/dist/components/xpl-table-footer.js +0 -1
- package/dist/components/xpl-table-header-cell2.js +0 -1
- package/dist/components/xpl-table-row.d.ts +0 -11
- package/dist/components/xpl-table-row.js +0 -1
- package/dist/docs/xpl-table/xpl-table-body/readme.md +0 -10
- package/dist/docs/xpl-table/xpl-table-cell/readme.md +0 -33
- package/dist/docs/xpl-table/xpl-table-footer/readme.md +0 -10
- package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +0 -30
- package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +0 -66
- package/dist/docs/xpl-table/xpl-table-row/readme.md +0 -19
- package/dist/types/components/xpl-table/utils/move-row-dom.d.ts +0 -3
- package/dist/types/components/xpl-table/utils/table-internal.d.ts +0 -8
- package/dist/types/components/xpl-table/xpl-table-body/xpl-table-body.d.ts +0 -3
- package/dist/types/components/xpl-table/xpl-table-cell/xpl-table-cell.d.ts +0 -11
- package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +0 -3
- package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +0 -4
- package/dist/types/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.d.ts +0 -32
- package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +0 -13
- /package/dist/types/components/{xpl-table/xpl-table-header → xpl-table-header}/xpl-table-header.d.ts +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class TableHeader {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: '7b36c9e640bd43ac38ea2625e7600e8699a13c5f', role: "row", class: "xpl-table-header" }, h("slot", { key: 'd03fe894a829477b6bf25dbd6dfa724b224b8d42' })));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "xpl-table-header"; }
|
|
7
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class TableHeaderCell {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.sortable = false;
|
|
5
|
+
this.label = '';
|
|
6
|
+
this.type = 'label';
|
|
7
|
+
this.sortDirection = 'none';
|
|
8
|
+
}
|
|
9
|
+
toggleSort() {
|
|
10
|
+
if (this.sortDirection === 'asc') {
|
|
11
|
+
this.sortDirection = 'desc';
|
|
12
|
+
}
|
|
13
|
+
else if (this.sortDirection === 'desc') {
|
|
14
|
+
this.sortDirection = 'none';
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.sortDirection = 'asc';
|
|
18
|
+
}
|
|
19
|
+
this.sortChanged.emit(this.sortDirection);
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const colIndex = Array.from(this.el.parentElement.children).indexOf(this.el) + 1;
|
|
23
|
+
const renderContent = () => {
|
|
24
|
+
switch (this.type) {
|
|
25
|
+
case 'label':
|
|
26
|
+
return h("span", null, this.label);
|
|
27
|
+
case 'checkbox':
|
|
28
|
+
return h("xpl-checkbox", null);
|
|
29
|
+
case 'icon':
|
|
30
|
+
return h("xpl-icon", { icon: this.icon, size: 20 });
|
|
31
|
+
default:
|
|
32
|
+
return '';
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const renderSortIcon = () => {
|
|
36
|
+
switch (this.sortDirection) {
|
|
37
|
+
case 'none':
|
|
38
|
+
return h("xpl-icon", { class: "sort-icon", icon: "arrow-down", size: 16 });
|
|
39
|
+
case 'asc':
|
|
40
|
+
return (h("xpl-icon", { class: "sort-icon sort-icon--sorted", icon: "arrow-up", size: 16 }));
|
|
41
|
+
case 'desc':
|
|
42
|
+
return (h("xpl-icon", { class: "sort-icon sort-icon--sorted", icon: "arrow-down", size: 16 }));
|
|
43
|
+
default:
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (h(Host, { role: "columnheader", "aria-colindex": colIndex, class: `xpl-table-header-cell ${this.sortable ? 'sortable' : 'non-sortable'}`, style: { width: `${this.width}px` } }, this.sortable ? (h("button", { onClick: () => this.toggleSort() }, renderContent(), renderSortIcon())) : (renderContent())));
|
|
48
|
+
}
|
|
49
|
+
static get is() { return "xpl-table-header-cell"; }
|
|
50
|
+
static get properties() {
|
|
51
|
+
return {
|
|
52
|
+
"icon": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "string",
|
|
57
|
+
"resolved": "string",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": true,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": "Icon to display in the cell.\n\nSee [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names."
|
|
65
|
+
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
68
|
+
"reflect": false,
|
|
69
|
+
"attribute": "icon"
|
|
70
|
+
},
|
|
71
|
+
"sortable": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "boolean",
|
|
76
|
+
"resolved": "boolean",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [{
|
|
83
|
+
"name": "property",
|
|
84
|
+
"text": "{boolean} - Whether the cell is sortable or not"
|
|
85
|
+
}],
|
|
86
|
+
"text": ""
|
|
87
|
+
},
|
|
88
|
+
"getter": false,
|
|
89
|
+
"setter": false,
|
|
90
|
+
"reflect": false,
|
|
91
|
+
"attribute": "sortable",
|
|
92
|
+
"defaultValue": "false"
|
|
93
|
+
},
|
|
94
|
+
"label": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "string",
|
|
99
|
+
"resolved": "string",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": true,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [{
|
|
106
|
+
"name": "property",
|
|
107
|
+
"text": "{string} - Text to display in the cell"
|
|
108
|
+
}],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"getter": false,
|
|
112
|
+
"setter": false,
|
|
113
|
+
"reflect": false,
|
|
114
|
+
"attribute": "label",
|
|
115
|
+
"defaultValue": "''"
|
|
116
|
+
},
|
|
117
|
+
"type": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "'label' | 'checkbox' | 'icon'",
|
|
122
|
+
"resolved": "\"checkbox\" | \"icon\" | \"label\"",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [{
|
|
129
|
+
"name": "property",
|
|
130
|
+
"text": "{string} - The type of cell to render"
|
|
131
|
+
}],
|
|
132
|
+
"text": ""
|
|
133
|
+
},
|
|
134
|
+
"getter": false,
|
|
135
|
+
"setter": false,
|
|
136
|
+
"reflect": false,
|
|
137
|
+
"attribute": "type",
|
|
138
|
+
"defaultValue": "'label'"
|
|
139
|
+
},
|
|
140
|
+
"width": {
|
|
141
|
+
"type": "number",
|
|
142
|
+
"mutable": false,
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "number",
|
|
145
|
+
"resolved": "number",
|
|
146
|
+
"references": {}
|
|
147
|
+
},
|
|
148
|
+
"required": false,
|
|
149
|
+
"optional": true,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [{
|
|
152
|
+
"name": "property",
|
|
153
|
+
"text": "{number} - Width of the cell, in pixels. Minimum width is 48px. If no value is provided, it will default\nto fit the content of the cell with 16px of padding on each side"
|
|
154
|
+
}],
|
|
155
|
+
"text": ""
|
|
156
|
+
},
|
|
157
|
+
"getter": false,
|
|
158
|
+
"setter": false,
|
|
159
|
+
"reflect": false,
|
|
160
|
+
"attribute": "width"
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
static get states() {
|
|
165
|
+
return {
|
|
166
|
+
"sortDirection": {}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
static get events() {
|
|
170
|
+
return [{
|
|
171
|
+
"method": "sortChanged",
|
|
172
|
+
"name": "sortChanged",
|
|
173
|
+
"bubbles": true,
|
|
174
|
+
"cancelable": true,
|
|
175
|
+
"composed": true,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Emitted when the sort direction changes."
|
|
179
|
+
},
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "'asc' | 'desc' | 'none'",
|
|
182
|
+
"resolved": "\"asc\" | \"desc\" | \"none\"",
|
|
183
|
+
"references": {}
|
|
184
|
+
}
|
|
185
|
+
}];
|
|
186
|
+
}
|
|
187
|
+
static get elementRef() { return "el"; }
|
|
188
|
+
}
|
|
@@ -317,11 +317,11 @@ export class Tabs {
|
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
319
|
const isSegment = this.type === 'segment';
|
|
320
|
-
return (h(Host, { key: '
|
|
320
|
+
return (h(Host, { key: '9998ae067e13e7c08338ae29bfe05bc3adacaa87', class: {
|
|
321
321
|
'xpl-tabs': true,
|
|
322
322
|
'xpl-tabs--full-width': this.fullWidth,
|
|
323
323
|
'xpl-tabs--segment': isSegment,
|
|
324
|
-
}, "data-choices-tick": this.choicesTick }, h("xpl-select", { key: '
|
|
324
|
+
}, "data-choices-tick": this.choicesTick }, h("xpl-select", { key: '18209c354e77267a13ce0c7380df0e419595cca7', classNames: this.mobileSelectClassNames(), choices: this.renderChoices(), disabled: this.disabled, selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
|
|
325
325
|
if (event.detail) {
|
|
326
326
|
this.isMobileSelectChange = true;
|
|
327
327
|
}
|
|
@@ -332,17 +332,17 @@ export class Tabs {
|
|
|
332
332
|
this.tabChange.emit(selectedValue);
|
|
333
333
|
this.isMobileSelectChange = false;
|
|
334
334
|
}
|
|
335
|
-
} }), h("nav", { key: '
|
|
335
|
+
} }), h("nav", { key: 'cf1bf2ec95fbbe7f0a6b8774cc5ce26928c7d6ca', "aria-orientation": "horizontal", class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
|
|
336
336
|
this.headingsContainerRef = el;
|
|
337
337
|
}, onTabChange: (event) => {
|
|
338
338
|
event.stopPropagation();
|
|
339
339
|
this.isMobileSelectChange = false;
|
|
340
340
|
this.handleTabChange(event.detail);
|
|
341
341
|
this.tabChange.emit(event.detail);
|
|
342
|
-
} }, !isSegment && (h("div", { key: '
|
|
342
|
+
} }, !isSegment && (h("div", { key: '5bfd13566a17723ec166a934bc72e59307eacb8c', class: "xpl-tabs__active-bar", style: {
|
|
343
343
|
transform: `translateX(${this.activeBarPosition.left}px)`,
|
|
344
344
|
width: `${this.activeBarPosition.width}px`,
|
|
345
|
-
} })), h("slot", { key: '
|
|
345
|
+
} })), h("slot", { key: '52baf508a46759fe908f8721b3089d3db0189383', name: "heading" })), h("div", { key: '363fe87f244eace0dc0af0903e0b8c25da3a613f', class: "xpl-tabs__panels" }, h("slot", { key: 'f3872844f486cf831bca26a228eba88fa18b42c3', name: "panel" }))));
|
|
346
346
|
}
|
|
347
347
|
static get is() { return "xpl-tabs"; }
|
|
348
348
|
static get properties() {
|
|
@@ -121,7 +121,7 @@ export class Tag {
|
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
123
|
const dragEnabled = this.isDraggable && !this.disabled;
|
|
124
|
-
return (h(Host, { key: '
|
|
124
|
+
return (h(Host, { key: '7e85098bb9f5e8c0fceee3e7947337e0799c4de8', class: {
|
|
125
125
|
'xpl-tag': true,
|
|
126
126
|
'xpl-tag-container': true,
|
|
127
127
|
'xpl-tag--disabled': this.disabled,
|
|
@@ -129,7 +129,7 @@ export class Tag {
|
|
|
129
129
|
'xpl-tag--dragging': this.isDragging,
|
|
130
130
|
'xpl-tag--draggable': dragEnabled,
|
|
131
131
|
'xpl-tag--sm': this.size === 'sm',
|
|
132
|
-
}, onDragOver: dragEnabled ? this.handleDragOver : undefined, onDragEnter: dragEnabled ? this.handleDragEnter : undefined, onDragStart: this.isDraggable ? this.handleHostDragStart : undefined }, dragEnabled ? (h("div", { class: "xpl-tag__content xpl-tag", role: "button", tabIndex: 0, draggable: true, "aria-grabbed": String(this.isDragging), onClick: this.handleTagClick, onKeyDown: this.handleContentKeyDown, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd }, h("slot", null))) : (h("button", { class: "xpl-tag__content xpl-tag", type: "button", disabled: this.disabled, onClick: this.handleTagClick }, h("slot", null))), this.dismissible && (h("button", { key: '
|
|
132
|
+
}, onDragOver: dragEnabled ? this.handleDragOver : undefined, onDragEnter: dragEnabled ? this.handleDragEnter : undefined, onDragStart: this.isDraggable ? this.handleHostDragStart : undefined }, dragEnabled ? (h("div", { class: "xpl-tag__content xpl-tag", role: "button", tabIndex: 0, draggable: true, "aria-grabbed": String(this.isDragging), onClick: this.handleTagClick, onKeyDown: this.handleContentKeyDown, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd }, h("slot", null))) : (h("button", { class: "xpl-tag__content xpl-tag", type: "button", disabled: this.disabled, onClick: this.handleTagClick }, h("slot", null))), this.dismissible && (h("button", { key: 'cb875506819a0a58d42add85a1a09e95e4786eba', class: "xpl-tag__dismiss xpl-tag__close", type: "button", draggable: false, disabled: this.disabled, "aria-label": `Dismiss ${this.dismissAriaLabelSuffix}`, onClick: this.handleDismissClick }, h("xpl-icon", { key: '431f061a4c96dacb9dc76a753c9d2de01491b2be', icon: "xmark", size: 10 })))));
|
|
133
133
|
}
|
|
134
134
|
static get is() { return "xpl-tag"; }
|
|
135
135
|
static get properties() {
|
|
@@ -35,9 +35,9 @@ export class Toast {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
var _a;
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '4f470ceb525c35a86ddbf65365fac1674ebe7033', class: `xpl-toast xpl-toast--${this.variant}`, onAnimationEnd: this.handleAnimationEnd }, h("div", { key: '04da6ca2777ceb222da2f4fd831d8aef5101a667', class: "xpl-toast__left" }, this.showIcon && (h("div", { key: '0e5e75aa05e96361700c0c7b9eccbc4c5b75a00c', class: `xpl-toast__icon xpl-toast__icon--${this.variant}` }, this.getIcon())), h("div", { key: 'f1ccc651318b6d7128255918bdd68ef36a249e9f', class: "xpl-toast__notification" }, h("p", { key: '1ae879d8a670a0f1a4928bfa2a0692581040dca1', class: "xpl-toast__title" }, h("slot", { key: 'b819a773c11b88cb00f8638db8a960de55ce6508', name: "title" })), this.caption !== '' && (h("p", { key: '8f6eb8dd769e4aaf5b16b3caafd9e9ec5408a7e1', class: "xpl-toast__caption" }, (_a = this.caption) === null || _a === void 0 ? void 0 : _a.substring(0, 85))))), h("div", { key: '46ae2f04fa38b50d2a07082b6972590f6bd28005', class: "xpl-toast__action", ref: (el) => {
|
|
39
39
|
this.actionSlot = el;
|
|
40
|
-
} }, h("slot", { key: '
|
|
40
|
+
} }, h("slot", { key: '69512a9b482bb54252527d798dfa2884a19b7d8c', name: "action" })), this.dismissable && (h("div", { key: '818a5f9dde1a9c9b7ab3cd62cd807200e3687af6', class: "xpl-toast__close" }, h("button", { key: '3a617189f8f031e119a125efce0ab35a7f5cf31f', tabIndex: 0, onClick: this.dismiss }, h("xpl-icon", { key: 'd86187aed0665da278f953be5ab92f7051f44438', icon: "x" }))))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "xpl-toast"; }
|
|
43
43
|
static get properties() {
|
|
@@ -12,13 +12,13 @@ export class Toggle {
|
|
|
12
12
|
let className = 'xpl-toggle';
|
|
13
13
|
if (this.variant === 'small')
|
|
14
14
|
className += ' xpl-toggle--small';
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '0cf2e99934bbe447559fbe88cc61989bbfabbdea', class: containerClassName }, (this.heading || this.description) && (h("label", { key: '7ab6e5535b8d88a5aabb5ced76faca68b2a8abcd', class: {
|
|
16
16
|
'xpl-label': true,
|
|
17
17
|
'xpl-label--disabled': this.disabled,
|
|
18
|
-
}, htmlFor: this.id }, this.heading, this.description && (h("small", { key: '
|
|
18
|
+
}, htmlFor: this.id }, this.heading, this.description && (h("small", { key: '0b8157e097f3890d6c521c399cf1f9c25514e341', class: {
|
|
19
19
|
'xpl-description': true,
|
|
20
20
|
'xpl-description--disabled': this.disabled,
|
|
21
|
-
} }, this.description)))), h("input", { key: '
|
|
21
|
+
} }, this.description)))), h("input", { key: '3bcfe674974e16e50a38d17836da0aa1c49fd6dc', class: className, type: "checkbox", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name }), this.label && h("label", { key: 'cc91cdb86fb6bb4c7bfbabb6d47edf03adb53857', htmlFor: this.id }, this.label)));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "xpl-toggle"; }
|
|
24
24
|
static get properties() {
|
|
@@ -12,11 +12,11 @@ export class Toolbar {
|
|
|
12
12
|
this.selectedItemCount = event.detail.length;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '156bc52063283c17215e1d3a90c25939ae92685b', class: {
|
|
16
16
|
'xpl-toolbar': true,
|
|
17
17
|
dark: true,
|
|
18
18
|
hidden: this.selectedItemCount === 0,
|
|
19
|
-
} }, h("div", { key: '
|
|
19
|
+
} }, h("div", { key: '184e28d57a16d8ba6e10f29a95c931a036f44515', class: "toolbar" }, h("p", { key: 'ff6a7137db216c71859eac4398bbaf8bc6fe18f9', class: "selected-item-count" }, this.selectedItemCount, " Selected"), h("div", { key: 'a610539a08383a3d1d3dad8d95a8b75f43eaf1a3', class: "actions" }, h("slot", { key: 'dd8ea3150b40926ab40f36d38770daaa969a6fff', name: "actions-left" }), h("slot", { key: 'b51f8940fb52dd6880841a917574f782e0d0c72c', name: "actions-right" })))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "xpl-toolbar"; }
|
|
22
22
|
static get properties() {
|
|
@@ -6,7 +6,7 @@ export class Tooltip {
|
|
|
6
6
|
this.hideArrow = false;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'a118d629923a433680360f746e063ca94d5f1c6a' }, h("div", { key: 'cfd9742ee2cebd56994480bd2a601cb4e93b12a9', class: "xpl-tooltip-container" }, h("slot", { key: '8aae99e1a187f8f737e896ccfd00d67f1cfeb3b3' }), h("div", { key: '4b418074b2ac7f8760f09e3af033ea93f7a0012e', class: `xpl-tooltip xpl-tooltip--${this.position}` }, this.text), !this.hideArrow && (h("div", { key: 'ef6a166f78250f1f98eae41661fd7020b36eeaae', class: "xpl-tooltip-arrow" }, h(TooltipArrow, { key: '7baecae00ab178f715c89443d250b068861afe5f' }))))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "xpl-tooltip"; }
|
|
12
12
|
static get properties() {
|
|
@@ -64,11 +64,11 @@ export class NavHeaderMenu {
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const hasProfile = !!this.username || !!this.email;
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '451149dc9d73f705492fc65bf4f014b8efa4ee8a', class: {
|
|
68
68
|
'xpl-nav-header-menu': true,
|
|
69
69
|
'xpl-nav-header-menu--has-right-aside-mobile': this.rightAsideMobilePresent,
|
|
70
70
|
dark: true,
|
|
71
|
-
} }, hasProfile && (h("div", { key: '
|
|
71
|
+
} }, hasProfile && (h("div", { key: 'f42b560492c110644d52b10f708a3ed650833861', class: "xpl-nav-header-menu__profile" }, h("div", { key: '6d98f720af85cbf8164bea7500175d6bfbb9465b', class: "xpl-nav-header-menu__info" }, this.username && (h("div", { key: '9d52880dc41c11e71ac3cc107d8009eccb787bac', class: "xpl-nav-header-menu__username" }, this.username)), this.email && (h("div", { key: 'd1b71ac2c4f6aaf5efd7b1910b8848f97ab08bf0', class: "xpl-nav-header-menu__email" }, this.email))))), h("div", { key: 'e1b298c39ccbe0f68b8d60fa82714572f656ab1e', class: "xpl-nav-header-menu__right-aside-mobile" }, h("slot", { key: 'fbb8d26c38a4a50568e8836ac3af4409fe6c93c0', name: "right-aside-mobile" })), h("div", { key: 'cbe858338ec04cdd3b74285f95b0466432924be2', class: "xpl-nav-header-menu__slot", role: "list" }, h("slot", { key: 'b47ccc7f955a30d8b9d9b884fa3d920d45958f7c' }))));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "xpl-nav-header-menu"; }
|
|
74
74
|
static get properties() {
|
|
@@ -301,14 +301,14 @@ export class TopNavItem {
|
|
|
301
301
|
return (h("div", Object.assign({}, shared, { role: "button" }), this.icon && h("xpl-icon", { size: 16, icon: this.icon }), this.label ? (h("span", { class: "xpl-top-nav-item__label", title: this.label }, this.label)) : (h("slot", null)), this.hasDropdown && h("xpl-icon", { icon: "chevron-down" })));
|
|
302
302
|
}
|
|
303
303
|
render() {
|
|
304
|
-
return (h(Host, Object.assign({ key: '
|
|
304
|
+
return (h(Host, Object.assign({ key: '4758b54726318591f140bcfea8d4db22c70c96ff', class: {
|
|
305
305
|
'xpl-top-nav-item': true,
|
|
306
306
|
'xpl-top-nav-item--active': this.active,
|
|
307
307
|
'xpl-top-nav-item--dropdown-open': this.open,
|
|
308
308
|
'xpl-top-nav-item--has-dropdown': this.hasDropdown,
|
|
309
309
|
'xpl-top-nav-item--selected': this.selected,
|
|
310
310
|
dark: true,
|
|
311
|
-
} }, (this.hostListitemRole ? { role: 'listitem' } : {})), this.renderInner(), this.hasDropdown && (h("div", { key: '
|
|
311
|
+
} }, (this.hostListitemRole ? { role: 'listitem' } : {})), this.renderInner(), this.hasDropdown && (h("div", { key: '65f53889e4815fb974d7abe12d13dd8be19c1943', class: "xpl-top-nav-item__dropdown" }, h("slot", { key: '2f4f164deaec561be73a13e2303cc13e037699bb', name: "dropdown" })))));
|
|
312
312
|
}
|
|
313
313
|
static get is() { return "xpl-top-nav-item"; }
|
|
314
314
|
static get properties() {
|
|
@@ -236,7 +236,7 @@ export class TopNav {
|
|
|
236
236
|
}
|
|
237
237
|
render() {
|
|
238
238
|
var _a, _b, _c, _d;
|
|
239
|
-
return (h(Host, { key: '
|
|
239
|
+
return (h(Host, { key: '9f65d609c6b4cf08b2899216fe8bc70fe0e12db9', class: {
|
|
240
240
|
'xpl-top-nav': true,
|
|
241
241
|
'xpl-top-nav--nav-control': Boolean(this.navControl),
|
|
242
242
|
'xpl-top-nav--open': this.open,
|
|
@@ -244,15 +244,15 @@ export class TopNav {
|
|
|
244
244
|
'xpl-top-nav--has-brand': this.hasBrand,
|
|
245
245
|
'xpl-top-nav--has-user-menu': this.hasUserMenu,
|
|
246
246
|
dark: true,
|
|
247
|
-
} }, h("nav", { key: '
|
|
247
|
+
} }, h("nav", { key: 'a3d613acbe13866886bca363372127e8e869ec2c', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : 'top-navigation-bar', class: "xpl-top-nav__bar" }, h("div", { key: 'b7057ef80f36e98def53bbfc2a39bd30bacd9b4c', class: "xpl-top-nav__inner-left" }, this.navControl && (h("button", { key: '3c4091842c7e4c1a62fea5446f6e29486617b11a', type: "button", class: "xpl-top-nav__nav-control", "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Close navigation menu' : 'Open navigation menu', onClick: this.onNavToggle }, h("xpl-icon", { key: 'cd5fd2cd1cf1dae5c765b63678e14cb87588c3b2', class: "xpl-top-nav__control-icon", icon: "menu", size: 20 }))), this.hasBrand && (h("div", { key: '3cabfe3ce8ff58d9aed0ed9b4adccd896f6cad08', class: "xpl-top-nav__brand-bar" }, h("xpl-top-nav-item", { key: 'bca3924f36affd16b6c17d0d8cc1ccc57c488ef6', class: "xpl-top-nav__brand", href: this.brandHref, onNavItemClick: this.onBrandNavItemClick }, ((_b = this.brandLogo) === null || _b === void 0 ? void 0 : _b.trim()) ? (h("img", { class: "xpl-top-nav__brand-logo", src: this.brandLogo, alt: ((_c = this.brandName) === null || _c === void 0 ? void 0 : _c.trim())
|
|
248
248
|
? this.brandName.trim()
|
|
249
|
-
: 'Brand' })) : this.brandLogoSlotPresent ? (h("span", { class: "xpl-top-nav__brand-logo-slot" }, h("slot", { name: "brand-logo" }))) : null, ((_d = this.brandName) === null || _d === void 0 ? void 0 : _d.trim()) ? (h("span", { class: "xpl-top-nav__brand-name" }, this.brandName.trim())) : null))), h("div", { key: '
|
|
249
|
+
: 'Brand' })) : this.brandLogoSlotPresent ? (h("span", { class: "xpl-top-nav__brand-logo-slot" }, h("slot", { name: "brand-logo" }))) : null, ((_d = this.brandName) === null || _d === void 0 ? void 0 : _d.trim()) ? (h("span", { class: "xpl-top-nav__brand-name" }, this.brandName.trim())) : null))), h("div", { key: '1e9a1af5fbeca22c0f440556c121c38b8528d9ba', class: {
|
|
250
250
|
'xpl-top-nav__aside': true,
|
|
251
251
|
'xpl-nav-left': true,
|
|
252
|
-
} }, h("div", { key: '
|
|
252
|
+
} }, h("div", { key: 'b5d67e1adf5bc6a751be3d8bfa448bdb682039bc', class: "xpl-top-nav__left-primary", role: "list" }, h("slot", { key: 'c738eb6fbda41c8320fa2645fb88f43ef11731b6', name: "left-aside" })))), h("div", { key: '8573832a3922746b2301f9bc8b4fa6ab7e1ac441', class: {
|
|
253
253
|
'xpl-top-nav__aside': true,
|
|
254
254
|
'xpl-nav-right': true,
|
|
255
|
-
} }, h("div", { key: '
|
|
255
|
+
} }, h("div", { key: 'a21b318496a47000cde7a0346d3376999e7893ea', class: "xpl-nav-right__list" }, h("div", { key: '5934e7d3976b13abba77b4361b4fe1c6f49bcc2e', class: "xpl-top-nav__right-rail" }, h("div", { key: '49b44ea3d59eec32d6859978754e81ce6acc1bec', class: "xpl-top-nav__right-lead" }, h("slot", { key: '054671b75354700b873a85f08998a14d7fc7073b', name: "right-aside" })), this.hasUserMenu ? (h("div", { class: "xpl-top-nav__right-user" }, h("xpl-popover", { class: "xpl-top-nav__user-popover dark", position: "bottom-end", display: "menu" }, this.userMenuTriggerSlotPresent ? (h("slot", { name: "user-menu-trigger", slot: "trigger" })) : this.usesBuiltInChildAccountTrigger ? (h("xpl-button", { slot: "trigger", class: "xpl-top-nav__child-account-trigger", type: "button", variant: "tertiary", icon: "chevron-down", iconPosition: "end", iconOnly: this.childAccountLabelText.length === 0, "aria-haspopup": "dialog", "aria-label": this.childAccountLabelText.length > 0
|
|
256
256
|
? undefined
|
|
257
257
|
: 'Open account menu' }, this.childAccountLabelText.length > 0
|
|
258
258
|
? this.childAccountLabelText
|
|
@@ -11,7 +11,7 @@ export class UtilityBar {
|
|
|
11
11
|
this.open = this.isNavOpenAtStartup !== undefined ? this.isNavOpenAtStartup : this.open;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '2af96247c611b67255b7f285dfb2b8b1dada47cc' }, h("nav", { key: '135186097dd0d8f308a1a08b5fbf4a5537c10f25', "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (h("div", null, h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle() }, h("xpl-icon", { class: "xpl-utility-nav__bars", icon: "three-bars" })), h("slot", { name: "aside" }))) : (h("slot", { name: "aside" })), h("slot", { key: '3346444f9813b20d8c4ed13b5a0784205dcfbbb1', name: "main" }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "xpl-utility-bar"; }
|
|
17
17
|
static get properties() {
|