@scania/tegel 1.15.0 → 1.16.0-tdsheaderitems-beta.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/dist/cjs/index-ca8040ad.js +4 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +2 -3
- package/dist/cjs/{tds-dropdown.cjs.entry.js → tds-dropdown_2.cjs.entry.js} +93 -4
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +10 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +10 -7
- package/dist/cjs/tds-table-body.cjs.entry.js +13 -3
- package/dist/cjs/tds-table-footer.cjs.entry.js +41 -16
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-table.cjs.entry.js +8 -3
- package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tds-toast.cjs.entry.js +3 -3
- package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +6 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +13 -0
- package/dist/collection/components/dropdown/dropdown.js +5 -5
- package/dist/collection/components/header/header.js +10 -1
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.js +29 -4
- package/dist/collection/components/table/table-body/table-body.css +28 -0
- package/dist/collection/components/table/table-body/table-body.js +13 -2
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -4
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +1 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +29 -8
- package/dist/collection/components/table/table-footer/table-footer.css +10 -0
- package/dist/collection/components/table/table-footer/table-footer.js +78 -18
- package/dist/collection/components/table/table-header/table-header.js +2 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
- package/dist/collection/components/text-field/text-field.js +5 -5
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/{esm/tds-dropdown-option.entry.js → components/p-1c256b8d.js} +45 -10
- package/dist/{esm/tds-dropdown.entry.js → components/p-e7eab204.js} +61 -12
- package/dist/components/tds-body-cell.js +2 -4
- package/dist/components/tds-dropdown-option.js +1 -124
- package/dist/components/tds-dropdown.js +1 -509
- package/dist/components/tds-folder-tab.js +2 -2
- package/dist/components/tds-folder-tabs.js +2 -2
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header.js +10 -1
- package/dist/components/tds-inline-tab.js +2 -2
- package/dist/components/tds-inline-tabs.js +2 -2
- package/dist/components/tds-navigation-tab.js +2 -2
- package/dist/components/tds-navigation-tabs.js +2 -2
- package/dist/components/tds-table-body-row-expandable.js +11 -7
- package/dist/components/tds-table-body.js +14 -3
- package/dist/components/tds-table-footer.js +64 -18
- package/dist/components/tds-table-header-input-wrapper.js +1 -1
- package/dist/components/tds-table-header.js +2 -2
- package/dist/components/tds-table-toolbar.js +2 -2
- package/dist/components/tds-table.js +10 -3
- package/dist/components/tds-text-field.js +5 -5
- package/dist/components/tds-textarea.js +3 -3
- package/dist/components/tds-toast.js +3 -3
- package/dist/components/tds-toggle.js +1 -1
- package/dist/components/tds-tooltip.js +2 -2
- package/dist/esm/index-51d04e39.js +4 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +2 -3
- package/dist/esm/tds-dropdown_2.entry.js +550 -0
- package/dist/esm/tds-folder-tab.entry.js +2 -2
- package/dist/esm/tds-folder-tabs.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +10 -1
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +2 -2
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +2 -2
- package/dist/esm/tds-table-body-row-expandable.entry.js +10 -7
- package/dist/esm/tds-table-body.entry.js +13 -3
- package/dist/esm/tds-table-footer.entry.js +41 -16
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +2 -2
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-table.entry.js +8 -3
- package/dist/esm/tds-text-field.entry.js +5 -5
- package/dist/esm/tds-textarea.entry.js +3 -3
- package/dist/esm/tds-toast.entry.js +3 -3
- package/dist/esm/tds-toggle.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/{p-480c6c28.entry.js → p-088bfcd4.entry.js} +1 -1
- package/dist/tegel/{p-a97dd06a.entry.js → p-1634247e.entry.js} +1 -1
- package/dist/tegel/{p-5c0bb8e1.entry.js → p-19571a64.entry.js} +1 -1
- package/dist/tegel/p-51e49417.entry.js +1 -0
- package/dist/tegel/{p-b34cf70d.entry.js → p-52be41ce.entry.js} +1 -1
- package/dist/tegel/{p-e237cdcc.entry.js → p-73dd2dbb.entry.js} +1 -1
- package/dist/tegel/p-7a83cf55.entry.js +1 -0
- package/dist/tegel/{p-c12eaac3.entry.js → p-831111e9.entry.js} +1 -1
- package/dist/tegel/{p-08642415.entry.js → p-91dcddd5.entry.js} +1 -1
- package/dist/tegel/{p-f823777e.entry.js → p-987084a5.entry.js} +1 -1
- package/dist/tegel/{p-c1f8f523.entry.js → p-a642c800.entry.js} +1 -1
- package/dist/tegel/p-aed1c5cf.entry.js +1 -0
- package/dist/tegel/{p-7c75d8d3.entry.js → p-b00bcf39.entry.js} +1 -1
- package/dist/tegel/{p-6b04a919.entry.js → p-bb129d43.entry.js} +1 -1
- package/dist/tegel/{p-578f6d73.entry.js → p-c790ef93.entry.js} +1 -1
- package/dist/tegel/p-d3541e17.entry.js +1 -0
- package/dist/tegel/{p-98f5b520.entry.js → p-e4343e51.entry.js} +1 -1
- package/dist/tegel/{p-1ba22b41.entry.js → p-e86f2d31.entry.js} +1 -1
- package/dist/tegel/p-f4b640af.entry.js +1 -0
- package/dist/tegel/{p-0a4fe3db.entry.js → p-ff5cd75f.entry.js} +1 -1
- package/dist/tegel/p-ff6b9486.entry.js +1 -0
- package/dist/tegel/{p-f3f1f357.entry.js → p-ff7ae8a3.entry.js} +1 -1
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +2 -0
- package/dist/types/components/table/table/table.d.ts +4 -0
- package/dist/types/components/table/table-body/table-body.d.ts +1 -0
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +0 -1
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +5 -4
- package/dist/types/components/table/table-footer/table-footer.d.ts +10 -0
- package/dist/types/components.d.ts +46 -4
- package/package.json +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +0 -95
- package/dist/tegel/p-36e88ce8.entry.js +0 -1
- package/dist/tegel/p-3e859e33.entry.js +0 -1
- package/dist/tegel/p-7cb43ebe.entry.js +0 -1
- package/dist/tegel/p-957c8b27.entry.js +0 -1
- package/dist/tegel/p-a2548553.entry.js +0 -1
- package/dist/tegel/p-e1842d99.entry.js +0 -1
- package/dist/tegel/p-e7fac8ad.entry.js +0 -1
|
@@ -342,7 +342,7 @@ export class TdsDropdown {
|
|
|
342
342
|
render() {
|
|
343
343
|
var _a, _b, _c, _d;
|
|
344
344
|
appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
|
|
345
|
-
return (h(Host, { key: '
|
|
345
|
+
return (h(Host, { key: '1e7eacac32eba892288cd94254053ef9d09b03f7', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '8a97e693abbf5ff8973fde64c1d383e926d5c5a8', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '55d98944321d2084de6cb3fd5f70b32b5b84d518', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
|
|
346
346
|
filter: true,
|
|
347
347
|
focus: this.filterFocus,
|
|
348
348
|
disabled: this.disabled,
|
|
@@ -385,11 +385,11 @@ export class TdsDropdown {
|
|
|
385
385
|
label-inside-as-placeholder
|
|
386
386
|
${this.size}
|
|
387
387
|
${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
|
|
388
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '
|
|
388
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: 'b661988b59447f31ab71e6d03da4b6226caab184', ref: (element) => (this.dropdownList = element), class: `dropdown-list
|
|
389
389
|
${this.size}
|
|
390
390
|
${this.open ? 'open' : 'closed'}
|
|
391
391
|
${this.getOpenDirection()}
|
|
392
|
-
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '
|
|
392
|
+
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '855021b97bdc5e56d8a2ebcd981e143aabb8a1ef', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'c282e26376e176e3eca36261eb269bfe4cce60da', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '6bce306c718a21a8eb5320da036a7f8909467d76', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: 'a15e4b87b4388fd44701db482b4be4a9cfee68f2', name: "error", size: "16px" }), this.helper))));
|
|
393
393
|
}
|
|
394
394
|
static get is() { return "tds-dropdown"; }
|
|
395
395
|
static get encapsulation() { return "shadow"; }
|
|
@@ -548,8 +548,8 @@ export class TdsDropdown {
|
|
|
548
548
|
"type": "string",
|
|
549
549
|
"mutable": false,
|
|
550
550
|
"complexType": {
|
|
551
|
-
"original": "'sm' | 'md' | 'lg'",
|
|
552
|
-
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
551
|
+
"original": "'xs' | 'sm' | 'md' | 'lg'",
|
|
552
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xs\"",
|
|
553
553
|
"references": {}
|
|
554
554
|
},
|
|
555
555
|
"required": false,
|
|
@@ -18,6 +18,15 @@ export class TdsHeader {
|
|
|
18
18
|
};
|
|
19
19
|
this.observer = new MutationObserver(callback);
|
|
20
20
|
}
|
|
21
|
+
updateRoles() {
|
|
22
|
+
const navElement = this.host.querySelector('.tds-header-component-list');
|
|
23
|
+
if (navElement) {
|
|
24
|
+
updateListChildrenRoles(navElement);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
handleSlotChange() {
|
|
28
|
+
this.updateRoles();
|
|
29
|
+
}
|
|
21
30
|
componentDidLoad() {
|
|
22
31
|
const hostElement = this.host;
|
|
23
32
|
const navElement = hostElement.querySelector('.tds-header-component-list');
|
|
@@ -32,7 +41,7 @@ export class TdsHeader {
|
|
|
32
41
|
}
|
|
33
42
|
render() {
|
|
34
43
|
const navAttributes = Object.assign({}, inheritAriaAttributes(this.host));
|
|
35
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '9444edcd74ab89d00450b398c6cb1a4f25ed9cd1' }, h("slot", { key: '9ee5c071427d56d71ebed3f4fb28540f26f756f4', name: "hamburger" }), h("slot", { key: 'ba6cb45780392f5682ff13b889c5500fc90dd1ce', name: "title" }), h("nav", Object.assign({ key: '1017dce61683cb6b9e1c80ef35332b6ea741c809' }, navAttributes), h("ul", { key: '043975c96c36ca0e4947d3c087f53ca05a594378', class: "tds-header-component-list" }, h("slot", { key: '71ec961aeaea24a74d5135bcf2434b34e62488f2', onSlotchange: () => this.handleSlotChange() }), h("li", { key: '1acf8c3b307df00d9751f071f9bf5b3e76bc9412', class: "tds-header-middle-spacer" }), h("slot", { key: '6e013e5ce40c2fb81f16ae8fdd338920bbc31396', name: "end" })))));
|
|
36
45
|
}
|
|
37
46
|
static get is() { return "tds-header"; }
|
|
38
47
|
static get originalStyleUrls() {
|
|
@@ -163,7 +163,7 @@ export class TdsSideMenu {
|
|
|
163
163
|
"references": {
|
|
164
164
|
"CollapseEvent": {
|
|
165
165
|
"location": "local",
|
|
166
|
-
"path": "/
|
|
166
|
+
"path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
167
167
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -187,7 +187,7 @@ export class TdsSideMenu {
|
|
|
187
187
|
"references": {
|
|
188
188
|
"CollapseEvent": {
|
|
189
189
|
"location": "local",
|
|
190
|
-
"path": "/
|
|
190
|
+
"path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
191
191
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -211,7 +211,7 @@ export class TdsSideMenu {
|
|
|
211
211
|
"references": {
|
|
212
212
|
"InternalTdsSideMenuPropChange": {
|
|
213
213
|
"location": "local",
|
|
214
|
-
"path": "/
|
|
214
|
+
"path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
215
215
|
"id": "src/components/side-menu/side-menu.tsx::InternalTdsSideMenuPropChange"
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -173,7 +173,7 @@ export class TdsStepper {
|
|
|
173
173
|
"references": {
|
|
174
174
|
"InternalTdsStepperPropChange": {
|
|
175
175
|
"location": "local",
|
|
176
|
-
"path": "/
|
|
176
|
+
"path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/stepper/stepper.tsx",
|
|
177
177
|
"id": "src/components/stepper/stepper.tsx::InternalTdsStepperPropChange"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -14,6 +14,7 @@ export class TdsTable {
|
|
|
14
14
|
this.expandableRows = false;
|
|
15
15
|
this.responsive = false;
|
|
16
16
|
this.modeVariant = null;
|
|
17
|
+
this.zebraMode = 'none';
|
|
17
18
|
this.horizontalScrollWidth = null;
|
|
18
19
|
this.tableId = generateUniqueId();
|
|
19
20
|
this.enableHorizontalScrollToolbarDesign = false;
|
|
@@ -70,6 +71,9 @@ export class TdsTable {
|
|
|
70
71
|
noMinWidthChanged(newValue) {
|
|
71
72
|
this.emitInternalTdsPropChange('noMinWidth', newValue);
|
|
72
73
|
}
|
|
74
|
+
zebraModeChanged(newValue) {
|
|
75
|
+
this.emitInternalTdsPropChange('zebraMode', newValue);
|
|
76
|
+
}
|
|
73
77
|
modeVariantChanged(newValue) {
|
|
74
78
|
this.emitInternalTdsPropChange('modeVariant', newValue);
|
|
75
79
|
}
|
|
@@ -85,11 +89,11 @@ export class TdsTable {
|
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '4d156fac32972a0493c44dc235134370f503c43c', class: {
|
|
89
93
|
'tds-table--responsive': this.responsive,
|
|
90
94
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
91
95
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
92
|
-
} }, h("table", { key: '
|
|
96
|
+
} }, h("table", { key: 'da2663a9406f0f5a68ba789fd9ae16e474f28b6e', style: this.getStyles(), class: {
|
|
93
97
|
'tds-table': true,
|
|
94
98
|
'tds-table--compact': this.compactDesign,
|
|
95
99
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -100,7 +104,7 @@ export class TdsTable {
|
|
|
100
104
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
101
105
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
102
106
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
103
|
-
} }, h("slot", { key: '
|
|
107
|
+
} }, h("slot", { key: '1fc2d3dc9a43c87adea2ad500f573838c23bd2ca' }))));
|
|
104
108
|
}
|
|
105
109
|
static get is() { return "tds-table"; }
|
|
106
110
|
static get encapsulation() { return "shadow"; }
|
|
@@ -241,6 +245,24 @@ export class TdsTable {
|
|
|
241
245
|
"reflect": true,
|
|
242
246
|
"defaultValue": "null"
|
|
243
247
|
},
|
|
248
|
+
"zebraMode": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "| 'rows-odd'\n | 'rows-even'\n | 'columns-odd'\n | 'columns-even'\n | 'none'",
|
|
253
|
+
"resolved": "\"columns-even\" | \"columns-odd\" | \"none\" | \"rows-even\" | \"rows-odd\"",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": false,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Enables zebra stripe mode on the table rows or columns."
|
|
261
|
+
},
|
|
262
|
+
"attribute": "zebra-mode",
|
|
263
|
+
"reflect": true,
|
|
264
|
+
"defaultValue": "'none'"
|
|
265
|
+
},
|
|
244
266
|
"horizontalScrollWidth": {
|
|
245
267
|
"type": "string",
|
|
246
268
|
"mutable": false,
|
|
@@ -305,7 +327,7 @@ export class TdsTable {
|
|
|
305
327
|
"references": {
|
|
306
328
|
"InternalTdsTablePropChange": {
|
|
307
329
|
"location": "local",
|
|
308
|
-
"path": "/
|
|
330
|
+
"path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/table/table/table.tsx",
|
|
309
331
|
"id": "src/components/table/table/table.tsx::InternalTdsTablePropChange"
|
|
310
332
|
}
|
|
311
333
|
}
|
|
@@ -350,6 +372,9 @@ export class TdsTable {
|
|
|
350
372
|
}, {
|
|
351
373
|
"propName": "noMinWidth",
|
|
352
374
|
"methodName": "noMinWidthChanged"
|
|
375
|
+
}, {
|
|
376
|
+
"propName": "zebraMode",
|
|
377
|
+
"methodName": "zebraModeChanged"
|
|
353
378
|
}, {
|
|
354
379
|
"propName": "modeVariant",
|
|
355
380
|
"methodName": "modeVariantChanged"
|
|
@@ -19,4 +19,32 @@ tds-table-body .tds-table__info-message {
|
|
|
19
19
|
vertical-align: top;
|
|
20
20
|
background-color: transparent;
|
|
21
21
|
transition: background-color 200ms ease;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
tds-table-body.tds-table--zebra-mode-rows-odd tds-table-body-row:nth-child(odd) {
|
|
25
|
+
background-color: var(--tds-table-zebra-mode-backround);
|
|
26
|
+
}
|
|
27
|
+
tds-table-body.tds-table--zebra-mode-rows-odd tds-table-body-row:nth-child(odd):hover {
|
|
28
|
+
background-color: var(--tds-table-body-row-background-hover);
|
|
29
|
+
}
|
|
30
|
+
tds-table-body.tds-table--zebra-mode-rows-even tds-table-body-row:nth-child(even) {
|
|
31
|
+
background-color: var(--tds-table-zebra-mode-backround);
|
|
32
|
+
}
|
|
33
|
+
tds-table-body.tds-table--zebra-mode-rows-even tds-table-body-row:nth-child(even):hover {
|
|
34
|
+
background-color: var(--tds-table-body-row-background-hover);
|
|
35
|
+
}
|
|
36
|
+
tds-table-body.tds-table--zebra-mode-columns-odd tds-body-cell:nth-child(odd) {
|
|
37
|
+
background-color: var(--tds-table-zebra-mode-backround);
|
|
38
|
+
}
|
|
39
|
+
tds-table-body.tds-table--zebra-mode-columns-odd tds-body-cell.tds-table__body-cell--hover:nth-child(odd) {
|
|
40
|
+
background-color: var(--tds-table-body-cell-background-hover);
|
|
41
|
+
}
|
|
42
|
+
tds-table-body.tds-table--zebra-mode-columns-even tds-body-cell:nth-child(even) {
|
|
43
|
+
background-color: var(--tds-table-zebra-mode-backround);
|
|
44
|
+
}
|
|
45
|
+
tds-table-body.tds-table--zebra-mode-columns-even tds-body-cell.tds-table__body-cell--hover:nth-child(even) {
|
|
46
|
+
background-color: var(--tds-table-body-cell-background-hover);
|
|
47
|
+
}
|
|
48
|
+
tds-table-body.tds-table--zebra-mode-columns-even tds-table-body-row:hover tds-body-cell, tds-table-body.tds-table--zebra-mode-columns-odd tds-table-body-row:hover tds-body-cell {
|
|
49
|
+
background-color: transparent;
|
|
22
50
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
const relevantTableProps = [
|
|
2
|
+
const relevantTableProps = [
|
|
3
|
+
'multiselect',
|
|
4
|
+
'expandableRows',
|
|
5
|
+
'zebraMode',
|
|
6
|
+
];
|
|
3
7
|
/**
|
|
4
8
|
* @slot <default> - <b>Unnamed slot.</b> For table rows.
|
|
5
9
|
*/
|
|
@@ -17,6 +21,7 @@ export class TdsTableBody {
|
|
|
17
21
|
this.multiselectArrayJSON = undefined;
|
|
18
22
|
this.mainCheckboxStatus = false;
|
|
19
23
|
this.columnsNumber = 0;
|
|
24
|
+
this.zebraMode = 'none';
|
|
20
25
|
this.tableId = '';
|
|
21
26
|
}
|
|
22
27
|
internalTdsPropChangeListener(event) {
|
|
@@ -55,7 +60,12 @@ export class TdsTableBody {
|
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '0e5ac81e32535901ac4940316a474472368cca86', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
64
|
+
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
65
|
+
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
66
|
+
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
67
|
+
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
68
|
+
} }, h("slot", { key: 'c43f3047fc836b0d7f147e00680befd56b25721c' })));
|
|
59
69
|
}
|
|
60
70
|
static get is() { return "tds-table-body"; }
|
|
61
71
|
static get originalStyleUrls() {
|
|
@@ -77,6 +87,7 @@ export class TdsTableBody {
|
|
|
77
87
|
"multiselectArrayJSON": {},
|
|
78
88
|
"mainCheckboxStatus": {},
|
|
79
89
|
"columnsNumber": {},
|
|
90
|
+
"zebraMode": {},
|
|
80
91
|
"tableId": {}
|
|
81
92
|
};
|
|
82
93
|
}
|
|
@@ -18,7 +18,6 @@ export class TdsTableBodyCell {
|
|
|
18
18
|
this.verticalDividers = false;
|
|
19
19
|
this.compactDesign = false;
|
|
20
20
|
this.noMinWidth = false;
|
|
21
|
-
this.whiteBackground = false;
|
|
22
21
|
this.tableId = '';
|
|
23
22
|
}
|
|
24
23
|
internalTdsPropChangeListener(event) {
|
|
@@ -81,13 +80,13 @@ export class TdsTableBodyCell {
|
|
|
81
80
|
// Conditionally set padding style
|
|
82
81
|
padding: paddingStyle,
|
|
83
82
|
};
|
|
84
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '30e53ca949c66ba4499463aa9e4710b48a5c6a2b', class: {
|
|
85
84
|
'tds-table__body-cell': true,
|
|
86
85
|
'tds-table__body-cell--hover': this.activeSorting,
|
|
87
86
|
'tds-table__compact': this.compactDesign,
|
|
88
87
|
'tds-table--divider': this.verticalDividers,
|
|
89
88
|
'tds-table--no-min-width': this.noMinWidth,
|
|
90
|
-
}, style: dynamicStyles }, this.cellValue, h("slot", { key: '
|
|
89
|
+
}, style: dynamicStyles }, this.cellValue, h("slot", { key: '800cc9978517c7486b87b603e3cff2d576e9a3fc' })));
|
|
91
90
|
}
|
|
92
91
|
static get is() { return "tds-body-cell"; }
|
|
93
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -181,7 +180,6 @@ export class TdsTableBodyCell {
|
|
|
181
180
|
"verticalDividers": {},
|
|
182
181
|
"compactDesign": {},
|
|
183
182
|
"noMinWidth": {},
|
|
184
|
-
"whiteBackground": {},
|
|
185
183
|
"tableId": {}
|
|
186
184
|
};
|
|
187
185
|
}
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -18,6 +18,7 @@ export class TdsTableBodyRowExpandable {
|
|
|
18
18
|
this.colSpan = null;
|
|
19
19
|
this.rowId = generateUniqueId();
|
|
20
20
|
this.expanded = undefined;
|
|
21
|
+
this.overflow = 'auto';
|
|
21
22
|
this.isExpanded = false;
|
|
22
23
|
this.tableId = '';
|
|
23
24
|
this.columnsNumber = null;
|
|
@@ -44,12 +45,12 @@ export class TdsTableBodyRowExpandable {
|
|
|
44
45
|
this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded });
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
/**
|
|
48
|
+
/** Method to expand table row */
|
|
48
49
|
async expand() {
|
|
49
50
|
this.isExpanded = true;
|
|
50
51
|
this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded });
|
|
51
52
|
}
|
|
52
|
-
/**
|
|
53
|
+
/** Method to collapse table row */
|
|
53
54
|
async collapse() {
|
|
54
55
|
this.isExpanded = false;
|
|
55
56
|
this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded });
|
|
@@ -84,18 +85,20 @@ export class TdsTableBodyRowExpandable {
|
|
|
84
85
|
this.sendValue();
|
|
85
86
|
}
|
|
86
87
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '46a17e89125c4647a7a3db2c04cb8dff90dcc06a', class: {
|
|
88
89
|
'tds-table__row': true,
|
|
89
90
|
'tds-table__row-expand--active': this.isExpanded,
|
|
90
91
|
'tds-table__compact': this.compactDesign,
|
|
91
92
|
'tds-table--divider': this.verticalDividers,
|
|
92
|
-
} }, h("tr", { key: '
|
|
93
|
+
} }, h("tr", { key: '656a636f2444586e1c78fb5c5de45c623a47e2b5', class: {
|
|
93
94
|
'tds-table__row': true,
|
|
94
95
|
'tds-table__row--expanded': this.isExpanded,
|
|
95
|
-
}, part: "row" }, h("td", { key: '
|
|
96
|
+
}, part: "row" }, h("td", { key: '65cb018b213aca84d520a737761e528a6244da8b', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: 'c029a732fe57be3189cfe51c456cb8cdd90739c2', class: "tds-table__expand-control-container" }, h("input", { key: '8bfe49a5a02b5467cd38563244910ea7544c7c5d', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: '31b764bf3293b551fc036a4d2a17db4d2c379ab6', class: "tds-expendable-row-icon" }, h("svg", { key: 'e35527f2c66ead3523736ea2dbaf0ce2fcfd3c69', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '00c9f5bca5b04898e0f17ab567e0826d39fe71c4', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '983217a323605c06a600a8db70174fd7464c826c' })), h("tr", { key: '5a2f7db44631b3d912ea93bc97b490d996803d4f', class: {
|
|
96
97
|
'tds-table__row-expand': true,
|
|
97
98
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
98
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
99
|
+
}, part: "expand-row" }, h("td", { key: '38ee3a00705e910161f43894990f987596f3f139', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("div", { key: '5fccf84bd2f7454afc3bb036210294e55f80f781', style: {
|
|
100
|
+
overflow: this.overflow,
|
|
101
|
+
} }, h("slot", { key: '01a7f9edf532244bd4f7205b339ffcafb93ceb20', name: "expand-row" }))))));
|
|
99
102
|
}
|
|
100
103
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
101
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -163,6 +166,24 @@ export class TdsTableBodyRowExpandable {
|
|
|
163
166
|
},
|
|
164
167
|
"attribute": "expanded",
|
|
165
168
|
"reflect": true
|
|
169
|
+
},
|
|
170
|
+
"overflow": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "'auto' | 'hidden'",
|
|
175
|
+
"resolved": "\"auto\" | \"hidden\"",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "Controls the overflow behavior of the expandable row content"
|
|
183
|
+
},
|
|
184
|
+
"attribute": "overflow",
|
|
185
|
+
"reflect": true,
|
|
186
|
+
"defaultValue": "'auto'"
|
|
166
187
|
}
|
|
167
188
|
};
|
|
168
189
|
}
|
|
@@ -228,7 +249,7 @@ export class TdsTableBodyRowExpandable {
|
|
|
228
249
|
"return": "Promise<void>"
|
|
229
250
|
},
|
|
230
251
|
"docs": {
|
|
231
|
-
"text": "
|
|
252
|
+
"text": "Method to expand table row",
|
|
232
253
|
"tags": []
|
|
233
254
|
}
|
|
234
255
|
},
|
|
@@ -245,7 +266,7 @@ export class TdsTableBodyRowExpandable {
|
|
|
245
266
|
"return": "Promise<void>"
|
|
246
267
|
},
|
|
247
268
|
"docs": {
|
|
248
|
-
"text": "
|
|
269
|
+
"text": "Method to collapse table row",
|
|
249
270
|
"tags": []
|
|
250
271
|
}
|
|
251
272
|
}
|
|
@@ -24,6 +24,16 @@
|
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
}
|
|
27
|
+
:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page,
|
|
28
|
+
:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
margin-right: 16px;
|
|
32
|
+
}
|
|
33
|
+
:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page p,
|
|
34
|
+
:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page p {
|
|
35
|
+
margin-right: 8px;
|
|
36
|
+
}
|
|
27
37
|
:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input {
|
|
28
38
|
font: var(--tds-detail-02);
|
|
29
39
|
letter-spacing: var(--tds-detail-02-ls);
|
|
@@ -8,17 +8,28 @@ function removeShakeAnimation(e) {
|
|
|
8
8
|
}
|
|
9
9
|
export class TdsTableFooter {
|
|
10
10
|
constructor() {
|
|
11
|
+
this.emitTdsPagination = () => {
|
|
12
|
+
if (this.rowsperpage) {
|
|
13
|
+
this.tdsPagination.emit({
|
|
14
|
+
tableId: this.tableId,
|
|
15
|
+
paginationValue: Number(this.paginationValue),
|
|
16
|
+
rowsPerPage: this.rowsPerPageValue,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this.tdsPagination.emit({
|
|
21
|
+
tableId: this.tableId,
|
|
22
|
+
paginationValue: Number(this.paginationValue),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
11
26
|
this.previousPage = () => {
|
|
12
27
|
/** If pages and greater or equal to 2, decrease pagination value.
|
|
13
28
|
* This is to not get under 1 in pagination value. */
|
|
14
29
|
if (this.paginationValue >= 2) {
|
|
15
30
|
this.paginationValue--;
|
|
16
31
|
}
|
|
17
|
-
|
|
18
|
-
this.tdsPagination.emit({
|
|
19
|
-
tableId: this.tableId,
|
|
20
|
-
paginationValue: Number(this.paginationValue),
|
|
21
|
-
});
|
|
32
|
+
this.emitTdsPagination();
|
|
22
33
|
this.storeLastCorrectValue(this.paginationValue);
|
|
23
34
|
};
|
|
24
35
|
this.nextPage = () => {
|
|
@@ -27,14 +38,23 @@ export class TdsTableFooter {
|
|
|
27
38
|
if (this.paginationValue <= this.pages) {
|
|
28
39
|
this.paginationValue++;
|
|
29
40
|
}
|
|
30
|
-
this.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
this.emitTdsPagination();
|
|
42
|
+
this.storeLastCorrectValue(this.paginationValue);
|
|
43
|
+
};
|
|
44
|
+
this.lastPage = () => {
|
|
45
|
+
this.paginationValue = this.pages;
|
|
46
|
+
this.emitTdsPagination();
|
|
47
|
+
this.storeLastCorrectValue(this.paginationValue);
|
|
48
|
+
};
|
|
49
|
+
this.firstPage = () => {
|
|
50
|
+
this.paginationValue = 1;
|
|
51
|
+
this.emitTdsPagination();
|
|
34
52
|
this.storeLastCorrectValue(this.paginationValue);
|
|
35
53
|
};
|
|
36
54
|
this.pagination = false;
|
|
37
55
|
this.paginationValue = 1;
|
|
56
|
+
this.rowsperpage = true;
|
|
57
|
+
this.rowsPerPageValues = [10, 25, 50];
|
|
38
58
|
this.pages = null;
|
|
39
59
|
this.cols = null;
|
|
40
60
|
this.columnsNumber = 0;
|
|
@@ -42,6 +62,7 @@ export class TdsTableFooter {
|
|
|
42
62
|
this.lastCorrectValue = undefined;
|
|
43
63
|
this.tableId = '';
|
|
44
64
|
this.horizontalScrollWidth = null;
|
|
65
|
+
this.rowsPerPageValue = this.rowsPerPageValues[0];
|
|
45
66
|
}
|
|
46
67
|
internalTdsPropChangeListener(event) {
|
|
47
68
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -87,12 +108,13 @@ export class TdsTableFooter {
|
|
|
87
108
|
else {
|
|
88
109
|
this.paginationValue = insertedValue;
|
|
89
110
|
}
|
|
90
|
-
this.
|
|
91
|
-
tableId: this.tableId,
|
|
92
|
-
paginationValue: Number(this.paginationValue),
|
|
93
|
-
});
|
|
111
|
+
this.emitTdsPagination();
|
|
94
112
|
this.storeLastCorrectValue(this.paginationValue);
|
|
95
113
|
}
|
|
114
|
+
rowsPerPageChange(event) {
|
|
115
|
+
this.rowsPerPageValue = parseInt(event.detail.value);
|
|
116
|
+
this.emitTdsPagination();
|
|
117
|
+
}
|
|
96
118
|
getStyles() {
|
|
97
119
|
const styles = {};
|
|
98
120
|
if (this.horizontalScrollWidth) {
|
|
@@ -101,10 +123,13 @@ export class TdsTableFooter {
|
|
|
101
123
|
return styles;
|
|
102
124
|
}
|
|
103
125
|
render() {
|
|
104
|
-
|
|
126
|
+
var _a;
|
|
127
|
+
return (h(Host, { key: 'a47ca76a46aae73aca5ce929c70c2e76f8c2c853', class: {
|
|
105
128
|
'tds-table--compact': this.compactDesign,
|
|
106
129
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
107
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
130
|
+
}, style: this.getStyles() }, h("tr", { key: '725d46b781fd8abe9748a1aabeff92ca419a4189', class: "tds-table__footer-row" }, h("td", { key: 'dce6cb9b634da75b37cd6181d12fbfdfa1eba34c', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '045cf654031b791addb51eb1c9a7b951cb5aec5c', class: "tds-table__pagination" }, h("div", { key: 'e321a6407dc41bb0d5ea8ff272a3ad5a73cc7bf9', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: 'c126a905a62dbbfad2b1f9b4e90e24ea0a5d1f7d', class: "rows-per-page" }, h("p", { key: '68da58804bf6bf222179368ff99b83aaa2e891b4' }, "Rows per page"), h("tds-dropdown", { key: '4db380d47b1944a45c31b083a69d4662c0951fa4', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => {
|
|
131
|
+
return (h("tds-dropdown-option", { value: `${value}` }, value));
|
|
132
|
+
}))))), h("div", { key: '81951e2a1405f7d8d9fb9d5602ded2652fa3574e', class: "tds-table__page-selector" }, h("input", { key: 'f9a0b0e94c31df6c7f6b78c8334f172b412fde64', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '9f03ddfb2efed8f29d932e4272f37cb7fea99366', class: "tds-table__footer-text" }, "of ", h("span", { key: '0e925460d959f6e00f83011d13e5ef2d7ed3cbb6' }, this.pages), " pages"), h("button", { key: '50da78d78b7ef971056e33ba0d0a1bac78149319', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h("tds-icon", { key: 'd69ea67ed2ff1dff364c9d3805b3cb29fd953050', name: "skip_backwards", size: "20px" })), h("button", { key: 'c3aeea0024fc6a72aea633d59c10db7729f76022', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '0df46c69a9682fb2a4ec4c75b15adc50b7d436da', name: "chevron_left", size: "20px" })), h("button", { key: '5bd78c3e14dc55421763ac78e19daac64c184e34', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'c0739697329a13021dd9cdb771b69491264962a5', name: "chevron_right", size: "20px" })), h("button", { key: 'b1317db56a99632abf132f619bc59c773e631e04', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h("tds-icon", { key: '3d6b0997ae36fd372aeb2099a304f02282766f7e', name: "skip_forward", size: "20px" })))))))));
|
|
108
133
|
}
|
|
109
134
|
static get is() { return "tds-table-footer"; }
|
|
110
135
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,6 +181,40 @@ export class TdsTableFooter {
|
|
|
156
181
|
"reflect": true,
|
|
157
182
|
"defaultValue": "1"
|
|
158
183
|
},
|
|
184
|
+
"rowsperpage": {
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "boolean",
|
|
189
|
+
"resolved": "boolean",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "Enable rows per page dropdown"
|
|
197
|
+
},
|
|
198
|
+
"attribute": "rowsperpage",
|
|
199
|
+
"reflect": true,
|
|
200
|
+
"defaultValue": "true"
|
|
201
|
+
},
|
|
202
|
+
"rowsPerPageValues": {
|
|
203
|
+
"type": "unknown",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "number[]",
|
|
207
|
+
"resolved": "number[]",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Set available rows per page values"
|
|
215
|
+
},
|
|
216
|
+
"defaultValue": "[10, 25, 50]"
|
|
217
|
+
},
|
|
159
218
|
"pages": {
|
|
160
219
|
"type": "number",
|
|
161
220
|
"mutable": false,
|
|
@@ -200,7 +259,8 @@ export class TdsTableFooter {
|
|
|
200
259
|
"compactDesign": {},
|
|
201
260
|
"lastCorrectValue": {},
|
|
202
261
|
"tableId": {},
|
|
203
|
-
"horizontalScrollWidth": {}
|
|
262
|
+
"horizontalScrollWidth": {},
|
|
263
|
+
"rowsPerPageValue": {}
|
|
204
264
|
};
|
|
205
265
|
}
|
|
206
266
|
static get events() {
|
|
@@ -215,8 +275,8 @@ export class TdsTableFooter {
|
|
|
215
275
|
"text": "Event to send current page value to tds-table-body component, can also be listened to in order to implement custom pagination logic."
|
|
216
276
|
},
|
|
217
277
|
"complexType": {
|
|
218
|
-
"original": "{\n tableId: string;\n paginationValue: number;\n }",
|
|
219
|
-
"resolved": "{ tableId: string; paginationValue: number; }",
|
|
278
|
+
"original": "{\n tableId: string;\n paginationValue: number;\n rowsPerPage?: number;\n }",
|
|
279
|
+
"resolved": "{ tableId: string; paginationValue: number; rowsPerPage?: number; }",
|
|
220
280
|
"references": {}
|
|
221
281
|
}
|
|
222
282
|
}];
|
|
@@ -82,11 +82,11 @@ export class TdsTableHeaderRow {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '08dd2d38a8df4e8715c780dde55d81d52a26b26f', class: {
|
|
86
86
|
'tds-table--compact': this.compactDesign,
|
|
87
87
|
'tds-table--divider': this.verticalDividers,
|
|
88
88
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
89
|
-
} }, h("tr", { key: '
|
|
89
|
+
} }, h("tr", { key: '5d5d3f8fa7293ce9e8b09fdb241225ce16e4b0d5' }, this.multiselect && (h("th", { key: '7b3034bd06348bc8df55a90fe13991f4910715a2', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '0cae18f657cb4121c8ed21437ff55cefa308a5ff', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '423b6ff577d3b65e7eb4f6e8a5f3f914d810904a', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '74eb896f4b1de85cf9b561b9aa10e6d9e309031c', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: 'a9b444c190c08a4eb53fa634281e2ff591046c5a' }))));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "tds-table-header"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -105,7 +105,7 @@ export class TdsTableHeaderCell {
|
|
|
105
105
|
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: 'c40924cf774a94e3f78d114eb91632fe57388ba2', class: {
|
|
109
109
|
'tds-table__header-cell': true,
|
|
110
110
|
'tds-table__header-cell--sortable': this.sortable,
|
|
111
111
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -63,7 +63,7 @@ export class TdsTableHeaderInputWrapper {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '733f9d487fd530eea4b597368c5ecdc46fd8dedd', class: {
|
|
67
67
|
'focused-input-wrapper': this.inputFocused,
|
|
68
68
|
'show-icon': this.showIcon,
|
|
69
69
|
'tds-table__compact': this.compactDesign,
|