@scania/tegel 1.15.0-table-issue-beta.0 → 1.16.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.
Files changed (140) hide show
  1. package/dist/cjs/index-ca8040ad.js +4 -8
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/tds-body-cell.cjs.entry.js +2 -3
  4. package/dist/cjs/{tds-dropdown.cjs.entry.js → tds-dropdown_2.cjs.entry.js} +93 -4
  5. package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
  6. package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  9. package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
  10. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  11. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +10 -7
  13. package/dist/cjs/tds-table-body.cjs.entry.js +14 -7
  14. package/dist/cjs/tds-table-footer.cjs.entry.js +41 -16
  15. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
  17. package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
  18. package/dist/cjs/tds-table.cjs.entry.js +8 -3
  19. package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
  20. package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
  21. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  22. package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  24. package/dist/cjs/tegel.cjs.js +1 -1
  25. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +6 -0
  26. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -1
  27. package/dist/collection/components/dropdown/dropdown.css +13 -0
  28. package/dist/collection/components/dropdown/dropdown.js +5 -5
  29. package/dist/collection/components/side-menu/side-menu.js +3 -3
  30. package/dist/collection/components/stepper/stepper.js +1 -1
  31. package/dist/collection/components/table/table/table.js +29 -4
  32. package/dist/collection/components/table/table-body/table-body.css +28 -0
  33. package/dist/collection/components/table/table-body/table-body.js +14 -6
  34. package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -4
  35. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +1 -1
  36. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +29 -8
  37. package/dist/collection/components/table/table-footer/table-footer.css +10 -0
  38. package/dist/collection/components/table/table-footer/table-footer.js +78 -18
  39. package/dist/collection/components/table/table-header/table-header.js +2 -2
  40. package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
  41. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
  42. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  43. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  44. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  45. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  46. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  47. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  48. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
  49. package/dist/collection/components/text-field/text-field.js +5 -5
  50. package/dist/collection/components/textarea/textarea.js +3 -3
  51. package/dist/collection/components/toast/toast.js +3 -3
  52. package/dist/collection/components/toggle/toggle.js +1 -1
  53. package/dist/collection/components/tooltip/tooltip.js +2 -2
  54. package/dist/{esm/tds-dropdown-option.entry.js → components/p-1c256b8d.js} +45 -10
  55. package/dist/{esm/tds-dropdown.entry.js → components/p-e7eab204.js} +61 -12
  56. package/dist/components/tds-body-cell.js +2 -4
  57. package/dist/components/tds-dropdown-option.js +1 -124
  58. package/dist/components/tds-dropdown.js +1 -509
  59. package/dist/components/tds-folder-tab.js +2 -2
  60. package/dist/components/tds-folder-tabs.js +2 -2
  61. package/dist/components/tds-header-cell.js +1 -1
  62. package/dist/components/tds-inline-tab.js +2 -2
  63. package/dist/components/tds-inline-tabs.js +2 -2
  64. package/dist/components/tds-navigation-tab.js +2 -2
  65. package/dist/components/tds-navigation-tabs.js +2 -2
  66. package/dist/components/tds-table-body-row-expandable.js +11 -7
  67. package/dist/components/tds-table-body.js +15 -7
  68. package/dist/components/tds-table-footer.js +64 -18
  69. package/dist/components/tds-table-header-input-wrapper.js +1 -1
  70. package/dist/components/tds-table-header.js +2 -2
  71. package/dist/components/tds-table-toolbar.js +2 -2
  72. package/dist/components/tds-table.js +10 -3
  73. package/dist/components/tds-text-field.js +5 -5
  74. package/dist/components/tds-textarea.js +3 -3
  75. package/dist/components/tds-toast.js +3 -3
  76. package/dist/components/tds-toggle.js +1 -1
  77. package/dist/components/tds-tooltip.js +2 -2
  78. package/dist/esm/index-51d04e39.js +4 -8
  79. package/dist/esm/loader.js +1 -1
  80. package/dist/esm/tds-body-cell.entry.js +2 -3
  81. package/dist/esm/tds-dropdown_2.entry.js +550 -0
  82. package/dist/esm/tds-folder-tab.entry.js +2 -2
  83. package/dist/esm/tds-folder-tabs.entry.js +2 -2
  84. package/dist/esm/tds-header-cell.entry.js +1 -1
  85. package/dist/esm/tds-inline-tab.entry.js +2 -2
  86. package/dist/esm/tds-inline-tabs.entry.js +2 -2
  87. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  88. package/dist/esm/tds-navigation-tabs.entry.js +2 -2
  89. package/dist/esm/tds-table-body-row-expandable.entry.js +10 -7
  90. package/dist/esm/tds-table-body.entry.js +14 -7
  91. package/dist/esm/tds-table-footer.entry.js +41 -16
  92. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  93. package/dist/esm/tds-table-header.entry.js +2 -2
  94. package/dist/esm/tds-table-toolbar.entry.js +2 -2
  95. package/dist/esm/tds-table.entry.js +8 -3
  96. package/dist/esm/tds-text-field.entry.js +5 -5
  97. package/dist/esm/tds-textarea.entry.js +3 -3
  98. package/dist/esm/tds-toast.entry.js +3 -3
  99. package/dist/esm/tds-toggle.entry.js +1 -1
  100. package/dist/esm/tds-tooltip.entry.js +2 -2
  101. package/dist/esm/tegel.js +1 -1
  102. package/dist/tegel/{p-480c6c28.entry.js → p-088bfcd4.entry.js} +1 -1
  103. package/dist/tegel/{p-a97dd06a.entry.js → p-1634247e.entry.js} +1 -1
  104. package/dist/tegel/{p-5c0bb8e1.entry.js → p-19571a64.entry.js} +1 -1
  105. package/dist/tegel/p-51e49417.entry.js +1 -0
  106. package/dist/tegel/{p-b34cf70d.entry.js → p-52be41ce.entry.js} +1 -1
  107. package/dist/tegel/{p-e237cdcc.entry.js → p-73dd2dbb.entry.js} +1 -1
  108. package/dist/tegel/p-7a83cf55.entry.js +1 -0
  109. package/dist/tegel/{p-c12eaac3.entry.js → p-831111e9.entry.js} +1 -1
  110. package/dist/tegel/{p-08642415.entry.js → p-91dcddd5.entry.js} +1 -1
  111. package/dist/tegel/{p-f823777e.entry.js → p-987084a5.entry.js} +1 -1
  112. package/dist/tegel/{p-c1f8f523.entry.js → p-a642c800.entry.js} +1 -1
  113. package/dist/tegel/p-aed1c5cf.entry.js +1 -0
  114. package/dist/tegel/{p-7c75d8d3.entry.js → p-b00bcf39.entry.js} +1 -1
  115. package/dist/tegel/{p-6b04a919.entry.js → p-bb129d43.entry.js} +1 -1
  116. package/dist/tegel/{p-578f6d73.entry.js → p-c790ef93.entry.js} +1 -1
  117. package/dist/tegel/p-d3541e17.entry.js +1 -0
  118. package/dist/tegel/{p-98f5b520.entry.js → p-e4343e51.entry.js} +1 -1
  119. package/dist/tegel/{p-1ba22b41.entry.js → p-e86f2d31.entry.js} +1 -1
  120. package/dist/tegel/p-f4b640af.entry.js +1 -0
  121. package/dist/tegel/{p-0a4fe3db.entry.js → p-ff5cd75f.entry.js} +1 -1
  122. package/dist/tegel/{p-f3f1f357.entry.js → p-ff7ae8a3.entry.js} +1 -1
  123. package/dist/tegel/tegel.css +2 -2
  124. package/dist/tegel/tegel.esm.js +1 -1
  125. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +1 -1
  126. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  127. package/dist/types/components/table/table/table.d.ts +4 -0
  128. package/dist/types/components/table/table-body/table-body.d.ts +1 -0
  129. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +0 -1
  130. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +5 -4
  131. package/dist/types/components/table/table-footer/table-footer.d.ts +10 -0
  132. package/dist/types/components.d.ts +46 -4
  133. package/package.json +1 -1
  134. package/dist/cjs/tds-dropdown-option.cjs.entry.js +0 -95
  135. package/dist/tegel/p-36e88ce8.entry.js +0 -1
  136. package/dist/tegel/p-3e859e33.entry.js +0 -1
  137. package/dist/tegel/p-957c8b27.entry.js +0 -1
  138. package/dist/tegel/p-c7b2773d.entry.js +0 -1
  139. package/dist/tegel/p-e1842d99.entry.js +0 -1
  140. 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: '62778591bba0279591717580456056657bb96e44', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'd511a016571d4aa5b1b6db2e183356612c354a0b', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'e9a1f512fc81191d66918f967bc90cff26f13080', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
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: '33d624c7a3669842e5f3c10fff22182185a81eb6', ref: (element) => (this.dropdownList = element), class: `dropdown-list
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: 'f65db159240901a2df850c299d926fe2b21d48df', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'a1f2a9b42feea0ca9a332c4ec765b2053a186637', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '173ddb47f30e6901198a58221c274ddf4502cf15', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: 'f68ef6f14584bca3c932655be7e63451aac3863e', name: "error", size: "16px" }), this.helper))));
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,
@@ -163,7 +163,7 @@ export class TdsSideMenu {
163
163
  "references": {
164
164
  "CollapseEvent": {
165
165
  "location": "local",
166
- "path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
166
+ "path": "/home/runner/work/tegel/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": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
190
+ "path": "/home/runner/work/tegel/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": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
214
+ "path": "/home/runner/work/tegel/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": "/Users/charles.krook/Umain/tegel/packages/core/src/components/stepper/stepper.tsx",
176
+ "path": "/home/runner/work/tegel/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: '580c1c90c9f4556b16037c3200ae739a891bea88', class: {
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: 'f2e9d248c5e93e6d83cfcd74408f99ed54c1ae95', style: this.getStyles(), class: {
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: '74edfe5bc755d4a7880b1368452f2906ebc5346a' }))));
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": "/Users/charles.krook/Umain/tegel/packages/core/src/components/table/table/table.tsx",
330
+ "path": "/home/runner/work/tegel/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 = ['multiselect', 'expandableRows'];
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) {
@@ -45,10 +50,7 @@ export class TdsTableBody {
45
50
  });
46
51
  }
47
52
  componentWillRender() {
48
- const headerElement = this.host.parentElement.querySelector('tds-table-header');
49
- const headerColumnsNo = headerElement
50
- ? this.host.parentElement.querySelector('tds-table-header').children.length
51
- : 0;
53
+ const headerColumnsNo = this.host.parentElement.querySelector('tds-table-header').children.length;
52
54
  // multiselect and expended features requires one extra column for controls...
53
55
  if (this.multiselect || this.expandableRows) {
54
56
  this.columnsNumber = headerColumnsNo + 1;
@@ -58,7 +60,12 @@ export class TdsTableBody {
58
60
  }
59
61
  }
60
62
  render() {
61
- return (h(Host, { key: '5f7031a5167cd4bf867bb7813cf9fabb8c9405b9', "data-selected-rows": this.multiselectArrayJSON }, h("slot", { key: 'ccc4113754dec3e5b5da2447867de906d009dd93' })));
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' })));
62
69
  }
63
70
  static get is() { return "tds-table-body"; }
64
71
  static get originalStyleUrls() {
@@ -80,6 +87,7 @@ export class TdsTableBody {
80
87
  "multiselectArrayJSON": {},
81
88
  "mainCheckboxStatus": {},
82
89
  "columnsNumber": {},
90
+ "zebraMode": {},
83
91
  "tableId": {}
84
92
  };
85
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: '11e448416f213f9fdf6dea7bd5ccff4512c7a8dd', class: {
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: '5c7052d46ee8351e2710cf72fc4db07ff84bd843' })));
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
  }
@@ -57,7 +57,7 @@
57
57
  }
58
58
  :host .tds-table__row-expand .tds-table__cell-expand {
59
59
  max-width: 1px;
60
- overflow: scroll;
60
+ overflow: auto;
61
61
  padding: 16px 16px 16px 66px;
62
62
  color: var(--tds-table-color);
63
63
  }
@@ -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
- /** method to expand table row */
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
- /** method to collapse table row */
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: 'cd23997b2d0b659691199b0f6a7be6aa51689ee4', class: {
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: 'a3fec49a0b97a35f61db7c31dfc023ba3acebd86', class: {
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: 'd995074fc578640544f59df3426762ff6595dd0b', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: '0f905bda5651a8c9dc30094dbc402e5e618e4030', class: "tds-table__expand-control-container" }, h("input", { key: '9b316a0e3a44cfa21851a1ac2ec0980d53d3aa54', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: '022d891384b907d3ebce4b2138fef4f5c6f7d44f', class: "tds-expendable-row-icon" }, h("svg", { key: 'fb7ccb4d599e72a9d7a56808f59226779ffe611b', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '1e2c766463813a4b1edc32093abbbf501b99974b', "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: '7f0e3d93df3da8eeff969daa9aba8eecaa1e6e23' })), h("tr", { key: '89766434b64dd9bf0aecf805fdd494aab68f8af9', class: {
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: 'f0c746d12fae92eae3e6bf9651c826fb3aacbefe', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: '0a9e454379a7a6a72b3d6ea33a66a4aaaac09e8f', name: "expand-row" })))));
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": "method to expand table row",
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": "method to collapse table row",
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
- /* Emits pagination event. */
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.tdsPagination.emit({
31
- tableId: this.tableId,
32
- paginationValue: Number(this.paginationValue),
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.tdsPagination.emit({
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
- return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
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: 'cb4fc7ffecfa791f08a3da4a167459ccfb32e782', class: "tds-table__footer-row" }, h("td", { key: 'bf7388bc8aa26313cadba5333dc587d431a29867', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'ace766078c85f047034ac614712dc58b6dc7b540', class: "tds-table__pagination" }, h("div", { key: '0ef2c3c300bab7595773b65aa40da1399af4b7b8', class: "tds-table__row-selector" }), h("div", { key: '3fe2283dcbfd64fb54bd8faa9bd269dac22e81d8', class: "tds-table__page-selector" }, h("input", { key: '84295a91900f676742795c975f1706d4fbe196f6', 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: '88c7d7d7cfe66f2431b44c9ed38ebee5771f54b7', class: "tds-table__footer-text" }, "of ", h("span", { key: '42cf669a05c6e0e86a56aa568f2623c562bf83f6' }, this.pages), " pages"), h("button", { key: '3f022e45c6ca31ce542854c5e659349ab54b372a', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '253b1cb33d4038ce03ff8fdb0bad30ba46ab0c13', name: "chevron_left", size: "20px" })), h("button", { key: 'ad21b63c30fc638372c89bb366be77df419bf532', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '58a640745984554b8c7cba3ce07130063299223e', name: "chevron_right", size: "20px" })))))))));
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: '5f212887d3d35e32240e9745d62685b7024100e1', class: {
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: '1a40af0dddfb627c39ae5df47aedc80eb1006f04' }, this.multiselect && (h("th", { key: '17d16e6bf8964b30e0ce93a76c436112ac0a6540', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '98f282baf5a0b4a929ad04c850319e04955090a0', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '9d8115deb1403df121309d32a166ccc6eac685d5', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '7cc0e1c0d3d7ec9f4bef917a5b8346cca8bc58ae', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: '2f7aa3bd3acdd69f1f2a20d3525ad5901f0ac239' }))));
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: '6a051465b3a5af5460f7c5ac112798b521f9b4a8', class: {
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,
@@ -63,7 +63,7 @@ export class TdsTableHeaderInputWrapper {
63
63
  }
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: '43243a6c8e1a0ef0f18d9f1f1d4cd4cba6bc15b4', class: {
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,
@@ -63,10 +63,10 @@ export class TdsTableToolbar {
63
63
  return styles;
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
66
+ return (h(Host, { key: 'c3488722c0a27313efa13acafeab81ca23c6c765', class: {
67
67
  'tds-table--compact': this.compactDesign,
68
68
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
69
- }, style: this.getStyles() }, h("div", { key: 'ecbf925fcd58dd77de40fd4b15c0a57c07b8a1c0', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'd2f230c4944590897ac220fc2c35cd72008b8f4c', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'd75faf41e03bd19b1e268e85c884298c75d74450', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '7b098f02923e9580e1c8852dfcca11d4c21c75bd', class: "tds-table__searchbar" }, h("input", { key: 'c9d76e665ef26e197a7dad1e9ac83a0095ad66e9', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '1af8c1344e160cd494eeafc43c4f2422f7119d83', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '9c85fc3e817afcf7b548f2f851f3ce0970f82c00', name: "search", size: "20px" })))), h("slot", { key: 'ff6e2d21cc06fa5981e7814040d6d79581f8d974', name: "end" })))));
69
+ }, style: this.getStyles() }, h("div", { key: '688e2903c9b447cb0770a8ee15dc8d1c4d3608d3', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'a9c57a3b3cdbc61d7176163310cd8acda8ed58a2', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'ae28004762b94923faa433a9f13245ab8595493b', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0d85e682ee8a733fc61df0855ed1a56bd7356069', class: "tds-table__searchbar" }, h("input", { key: '50b9c945f34cb13d440ed448f8be58ea2900f9f7', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: 'eff520922329f0379f22cb31171b81887c6bbdf7', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '09c7d084aed40ec2a3a25dc1ca86d978b8ef39ec', name: "search", size: "20px" })))), h("slot", { key: '1b7dc61ec5ec9d5ac7e5ea116cedfd6a773d5628', name: "end" })))));
70
70
  }
71
71
  static get is() { return "tds-table-toolbar"; }
72
72
  static get encapsulation() { return "shadow"; }