@scania/tegel 1.15.0 → 1.16.0-tdsheaderitem-beta.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 (147) 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-header.cjs.entry.js +11 -1
  9. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  10. package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
  11. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +2 -2
  13. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +10 -7
  14. package/dist/cjs/tds-table-body.cjs.entry.js +13 -3
  15. package/dist/cjs/tds-table-footer.cjs.entry.js +41 -16
  16. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
  18. package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
  19. package/dist/cjs/tds-table.cjs.entry.js +8 -3
  20. package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
  21. package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
  22. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  23. package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  25. package/dist/cjs/tegel.cjs.js +1 -1
  26. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +6 -0
  27. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -1
  28. package/dist/collection/components/dropdown/dropdown.css +13 -0
  29. package/dist/collection/components/dropdown/dropdown.js +5 -5
  30. package/dist/collection/components/header/header.js +11 -1
  31. package/dist/collection/components/side-menu/side-menu.js +3 -3
  32. package/dist/collection/components/stepper/stepper.js +1 -1
  33. package/dist/collection/components/table/table/table.js +29 -4
  34. package/dist/collection/components/table/table-body/table-body.css +28 -0
  35. package/dist/collection/components/table/table-body/table-body.js +13 -2
  36. package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -4
  37. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +1 -1
  38. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +29 -8
  39. package/dist/collection/components/table/table-footer/table-footer.css +10 -0
  40. package/dist/collection/components/table/table-footer/table-footer.js +78 -18
  41. package/dist/collection/components/table/table-header/table-header.js +2 -2
  42. package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
  43. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
  44. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  45. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  46. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  47. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  48. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  49. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  50. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
  51. package/dist/collection/components/text-field/text-field.js +5 -5
  52. package/dist/collection/components/textarea/textarea.js +3 -3
  53. package/dist/collection/components/toast/toast.js +3 -3
  54. package/dist/collection/components/toggle/toggle.js +1 -1
  55. package/dist/collection/components/tooltip/tooltip.js +2 -2
  56. package/dist/{esm/tds-dropdown-option.entry.js → components/p-1c256b8d.js} +45 -10
  57. package/dist/{esm/tds-dropdown.entry.js → components/p-e7eab204.js} +61 -12
  58. package/dist/components/tds-body-cell.js +2 -4
  59. package/dist/components/tds-dropdown-option.js +1 -124
  60. package/dist/components/tds-dropdown.js +1 -509
  61. package/dist/components/tds-folder-tab.js +2 -2
  62. package/dist/components/tds-folder-tabs.js +2 -2
  63. package/dist/components/tds-header-cell.js +1 -1
  64. package/dist/components/tds-header.js +11 -1
  65. package/dist/components/tds-inline-tab.js +2 -2
  66. package/dist/components/tds-inline-tabs.js +2 -2
  67. package/dist/components/tds-navigation-tab.js +2 -2
  68. package/dist/components/tds-navigation-tabs.js +2 -2
  69. package/dist/components/tds-table-body-row-expandable.js +11 -7
  70. package/dist/components/tds-table-body.js +14 -3
  71. package/dist/components/tds-table-footer.js +64 -18
  72. package/dist/components/tds-table-header-input-wrapper.js +1 -1
  73. package/dist/components/tds-table-header.js +2 -2
  74. package/dist/components/tds-table-toolbar.js +2 -2
  75. package/dist/components/tds-table.js +10 -3
  76. package/dist/components/tds-text-field.js +5 -5
  77. package/dist/components/tds-textarea.js +3 -3
  78. package/dist/components/tds-toast.js +3 -3
  79. package/dist/components/tds-toggle.js +1 -1
  80. package/dist/components/tds-tooltip.js +2 -2
  81. package/dist/esm/index-51d04e39.js +4 -8
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/tds-body-cell.entry.js +2 -3
  84. package/dist/esm/tds-dropdown_2.entry.js +550 -0
  85. package/dist/esm/tds-folder-tab.entry.js +2 -2
  86. package/dist/esm/tds-folder-tabs.entry.js +2 -2
  87. package/dist/esm/tds-header-cell.entry.js +1 -1
  88. package/dist/esm/tds-header.entry.js +11 -1
  89. package/dist/esm/tds-inline-tab.entry.js +2 -2
  90. package/dist/esm/tds-inline-tabs.entry.js +2 -2
  91. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  92. package/dist/esm/tds-navigation-tabs.entry.js +2 -2
  93. package/dist/esm/tds-table-body-row-expandable.entry.js +10 -7
  94. package/dist/esm/tds-table-body.entry.js +13 -3
  95. package/dist/esm/tds-table-footer.entry.js +41 -16
  96. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  97. package/dist/esm/tds-table-header.entry.js +2 -2
  98. package/dist/esm/tds-table-toolbar.entry.js +2 -2
  99. package/dist/esm/tds-table.entry.js +8 -3
  100. package/dist/esm/tds-text-field.entry.js +5 -5
  101. package/dist/esm/tds-textarea.entry.js +3 -3
  102. package/dist/esm/tds-toast.entry.js +3 -3
  103. package/dist/esm/tds-toggle.entry.js +1 -1
  104. package/dist/esm/tds-tooltip.entry.js +2 -2
  105. package/dist/esm/tegel.js +1 -1
  106. package/dist/tegel/{p-480c6c28.entry.js → p-088bfcd4.entry.js} +1 -1
  107. package/dist/tegel/{p-a97dd06a.entry.js → p-1634247e.entry.js} +1 -1
  108. package/dist/tegel/{p-5c0bb8e1.entry.js → p-19571a64.entry.js} +1 -1
  109. package/dist/tegel/p-51e49417.entry.js +1 -0
  110. package/dist/tegel/{p-b34cf70d.entry.js → p-52be41ce.entry.js} +1 -1
  111. package/dist/tegel/{p-e237cdcc.entry.js → p-73dd2dbb.entry.js} +1 -1
  112. package/dist/tegel/p-7a83cf55.entry.js +1 -0
  113. package/dist/tegel/{p-c12eaac3.entry.js → p-831111e9.entry.js} +1 -1
  114. package/dist/tegel/{p-08642415.entry.js → p-91dcddd5.entry.js} +1 -1
  115. package/dist/tegel/{p-f823777e.entry.js → p-987084a5.entry.js} +1 -1
  116. package/dist/tegel/{p-c1f8f523.entry.js → p-a642c800.entry.js} +1 -1
  117. package/dist/tegel/p-aed1c5cf.entry.js +1 -0
  118. package/dist/tegel/{p-7c75d8d3.entry.js → p-b00bcf39.entry.js} +1 -1
  119. package/dist/tegel/{p-6b04a919.entry.js → p-bb129d43.entry.js} +1 -1
  120. package/dist/tegel/{p-578f6d73.entry.js → p-c790ef93.entry.js} +1 -1
  121. package/dist/tegel/p-d3541e17.entry.js +1 -0
  122. package/dist/tegel/p-dc22ae73.entry.js +1 -0
  123. package/dist/tegel/{p-98f5b520.entry.js → p-e4343e51.entry.js} +1 -1
  124. package/dist/tegel/{p-1ba22b41.entry.js → p-e86f2d31.entry.js} +1 -1
  125. package/dist/tegel/p-f4b640af.entry.js +1 -0
  126. package/dist/tegel/{p-0a4fe3db.entry.js → p-ff5cd75f.entry.js} +1 -1
  127. package/dist/tegel/{p-f3f1f357.entry.js → p-ff7ae8a3.entry.js} +1 -1
  128. package/dist/tegel/tegel.css +2 -2
  129. package/dist/tegel/tegel.esm.js +1 -1
  130. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +1 -1
  131. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  132. package/dist/types/components/header/header.d.ts +2 -0
  133. package/dist/types/components/table/table/table.d.ts +4 -0
  134. package/dist/types/components/table/table-body/table-body.d.ts +1 -0
  135. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +0 -1
  136. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +5 -4
  137. package/dist/types/components/table/table-footer/table-footer.d.ts +10 -0
  138. package/dist/types/components.d.ts +46 -4
  139. package/package.json +1 -1
  140. package/dist/cjs/tds-dropdown-option.cjs.entry.js +0 -95
  141. package/dist/tegel/p-36e88ce8.entry.js +0 -1
  142. package/dist/tegel/p-3e859e33.entry.js +0 -1
  143. package/dist/tegel/p-7cb43ebe.entry.js +0 -1
  144. package/dist/tegel/p-957c8b27.entry.js +0 -1
  145. package/dist/tegel/p-a2548553.entry.js +0 -1
  146. package/dist/tegel/p-e1842d99.entry.js +0 -1
  147. package/dist/tegel/p-e7fac8ad.entry.js +0 -1
@@ -170,9 +170,9 @@ const TdsInlineTabs = class {
170
170
  this.removeEventListenerFromTabs();
171
171
  }
172
172
  render() {
173
- return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
173
+ return (h(Host, { key: '71f42e22f75a1fe4ca4f906b2151ed1a4c324e51', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '33e457be72862e642f2a867243f6325f94d210e8', class: "wrapper", ref: (el) => {
174
174
  this.navWrapperElement = el;
175
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'af53b300c3420a52fd2cad793ca9acb333e71478', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'd21f7a30e597d429eccedcaa8569e7dc7170c145', name: "chevron_left", size: "20px" })), h("slot", { key: '39e1b21aa75fa86850827f87f5793292d01a97c7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '8848014869eb92505d97f15cc3f8f2234dadc9c5', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '130a7c2c926b312491f735dac63b67e91a632058', name: "chevron_right", size: "20px" })))));
175
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '786a1655c5efe5f2a079c62cb89300a99149c3fb', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'df2f3798cb6cb4ea446932cdf8ce84ac068c57ff', name: "chevron_left", size: "20px" })), h("slot", { key: 'b5e14ca573a2ac7a4e20defd05b412a941e72f0b', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'da0b823e674c5eacd325f69e98e14f4def9c477f', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '2bdd7110bb4b22c4dfabc1a5ef2acf9e7592b9b9', name: "chevron_right", size: "20px" })))));
176
176
  }
177
177
  get host() { return getElement(this); }
178
178
  static get watchers() { return {
@@ -14,8 +14,8 @@ const TdsNavigationTab = class {
14
14
  this.selected = selected;
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: 'f8daf87eb0fce9c5229c6223a4188875000b4003', role: "listitem" }, h("div", { key: '692831fb82b1822550b6d715977970b327cb3448', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
18
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'afe5caebb5389f4386aa6c6ab57f9a81d2482a61' }))));
17
+ return (h(Host, { key: '46ce3b8e878eca4c970f29371cb17a0c7ec1789a', role: "listitem" }, h("div", { key: '51331675d8898d5bca9758ed9c09194c6dbfde23', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
18
+ ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'd326748125d8e6a366268c581139bb859ef8feeb' }))));
19
19
  }
20
20
  };
21
21
  TdsNavigationTab.style = TdsNavigationTabStyle0;
@@ -170,9 +170,9 @@ const TdsNavigationTabs = class {
170
170
  this.removeEventListenerFromTabs();
171
171
  }
172
172
  render() {
173
- return (h(Host, { key: 'fbb3223e9c88c43d51773210c5599cc644fc8df5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'dbcd27f8adba0b6ef38071346bf38eba6dcaedd1', class: "wrapper", ref: (el) => {
173
+ return (h(Host, { key: 'fa440271f692e4893d4374ccd081308b5b4623e5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '434fba65da78ac84c018252c52440d20984ab7b3', class: "wrapper", ref: (el) => {
174
174
  this.navWrapperElement = el;
175
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'afdac4d596a8b9ea1de0fc483eda96d487ad17ed', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '1ff5064f5bd2b5ba26e0e28b7d3beeae892a2a67', name: "chevron_left", size: "20px" })), h("slot", { key: 'bfcf00b43116a1c03507a5d93bd0bafc2a987eb7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'af4361d7dc949762577e3d74162bfa768f6dfa89', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '7ffa8829a1b2ae8f408aa1bab6770f27726fb1c1', name: "chevron_right", size: "20px" })))));
175
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '29d8d76a06c82f06b1c2aa15a3d023d238b05f10', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '1936dee5d3476a0d2c46b4d64a7a26848320c9d7', name: "chevron_left", size: "20px" })), h("slot", { key: '9e4cffce9188a7d517636e4b32ef8574a8bea78a', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '3af05aee3183425bdcd5c2f5f65f0c8920ba8622', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '075726ba4074a4e9452248115968d3b21104e929', name: "chevron_right", size: "20px" })))));
176
176
  }
177
177
  get host() { return getElement(this); }
178
178
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
  import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
3
3
 
4
- const tableBodyRowExpandableCss = ":host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:scroll;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell--expand{border-right:1px solid var(--tds-table-divider)}";
4
+ const tableBodyRowExpandableCss = ":host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:auto;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell--expand{border-right:1px solid var(--tds-table-divider)}";
5
5
  const TdsTableBodyRowExpandableStyle0 = tableBodyRowExpandableCss;
6
6
 
7
7
  const relevantTableProps = [
@@ -18,6 +18,7 @@ const TdsTableBodyRowExpandable = class {
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 @@ const TdsTableBodyRowExpandable = class {
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 @@ const TdsTableBodyRowExpandable = class {
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
  get host() { return getElement(this); }
101
104
  static get watchers() { return {
@@ -1,9 +1,13 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const tableBodyCss = ":host,tds-table-body{box-sizing:border-box;display:table-row-group}:host *,tds-table-body *{box-sizing:border-box}:host .tds-table__info-message,tds-table-body .tds-table__info-message{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:table-cell;box-sizing:border-box;color:var(--tds-table-color);padding:var(--tds-spacing-element-16);min-width:192px;vertical-align:top;background-color:transparent;transition:background-color 200ms ease}";
3
+ const tableBodyCss = ":host,tds-table-body{box-sizing:border-box;display:table-row-group}:host *,tds-table-body *{box-sizing:border-box}:host .tds-table__info-message,tds-table-body .tds-table__info-message{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:table-cell;box-sizing:border-box;color:var(--tds-table-color);padding:var(--tds-spacing-element-16);min-width:192px;vertical-align:top;background-color:transparent;transition:background-color 200ms ease}tds-table-body.tds-table--zebra-mode-rows-odd tds-table-body-row:nth-child(odd){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-rows-odd tds-table-body-row:nth-child(odd):hover{background-color:var(--tds-table-body-row-background-hover)}tds-table-body.tds-table--zebra-mode-rows-even tds-table-body-row:nth-child(even){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-rows-even tds-table-body-row:nth-child(even):hover{background-color:var(--tds-table-body-row-background-hover)}tds-table-body.tds-table--zebra-mode-columns-odd tds-body-cell:nth-child(odd){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-columns-odd tds-body-cell.tds-table__body-cell--hover:nth-child(odd){background-color:var(--tds-table-body-cell-background-hover)}tds-table-body.tds-table--zebra-mode-columns-even tds-body-cell:nth-child(even){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-columns-even tds-body-cell.tds-table__body-cell--hover:nth-child(even){background-color:var(--tds-table-body-cell-background-hover)}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{background-color:transparent}";
4
4
  const TdsTableBodyStyle0 = tableBodyCss;
5
5
 
6
- const relevantTableProps = ['multiselect', 'expandableRows'];
6
+ const relevantTableProps = [
7
+ 'multiselect',
8
+ 'expandableRows',
9
+ 'zebraMode',
10
+ ];
7
11
  const TdsTableBody = class {
8
12
  constructor(hostRef) {
9
13
  registerInstance(this, hostRef);
@@ -19,6 +23,7 @@ const TdsTableBody = class {
19
23
  this.multiselectArrayJSON = undefined;
20
24
  this.mainCheckboxStatus = false;
21
25
  this.columnsNumber = 0;
26
+ this.zebraMode = 'none';
22
27
  this.tableId = '';
23
28
  }
24
29
  internalTdsPropChangeListener(event) {
@@ -57,7 +62,12 @@ const TdsTableBody = class {
57
62
  }
58
63
  }
59
64
  render() {
60
- return (h(Host, { key: '891bbd417703b240531383d54d5644cf39462573', "data-selected-rows": this.multiselectArrayJSON }, h("slot", { key: '409bc90e7c6d49588a7ec1796cfbad734c333c40' })));
65
+ return (h(Host, { key: '0e5ac81e32535901ac4940316a474472368cca86', "data-selected-rows": this.multiselectArrayJSON, class: {
66
+ 'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
67
+ 'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
68
+ 'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
69
+ 'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
70
+ } }, h("slot", { key: 'c43f3047fc836b0d7f147e00680befd56b25721c' })));
61
71
  }
62
72
  get host() { return getElement(this); }
63
73
  };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:48px}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 16px}:host .tds-table__footer-cell .tds-table__pagination{height:48px;display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:54px;height:30px;border:none;border-radius:4px;transition:background-color 250ms ease;margin-right:4px;padding-left:16px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:32px;width:32px;border-radius:4px;transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:20px;width:20px;fill:var(--tds-table-color)}:host(.tds-table--compact){height:32px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:32px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:24px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}:host(.footer__horizontal-scroll){display:inline-table;position:absolute;margin-top:10px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}";
3
+ const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:48px}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 16px}:host .tds-table__footer-cell .tds-table__pagination{height:48px;display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page{display:flex;align-items:center;margin-right:16px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page p,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page p{margin-right:8px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:54px;height:30px;border:none;border-radius:4px;transition:background-color 250ms ease;margin-right:4px;padding-left:16px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:32px;width:32px;border-radius:4px;transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:20px;width:20px;fill:var(--tds-table-color)}:host(.tds-table--compact){height:32px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:32px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:24px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}:host(.footer__horizontal-scroll){display:inline-table;position:absolute;margin-top:10px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}";
4
4
  const TdsTableFooterStyle0 = tableFooterCss;
5
5
 
6
6
  const relevantTableProps = [
@@ -14,17 +14,28 @@ const TdsTableFooter = class {
14
14
  constructor(hostRef) {
15
15
  registerInstance(this, hostRef);
16
16
  this.tdsPagination = createEvent(this, "tdsPagination", 7);
17
+ this.emitTdsPagination = () => {
18
+ if (this.rowsperpage) {
19
+ this.tdsPagination.emit({
20
+ tableId: this.tableId,
21
+ paginationValue: Number(this.paginationValue),
22
+ rowsPerPage: this.rowsPerPageValue,
23
+ });
24
+ }
25
+ else {
26
+ this.tdsPagination.emit({
27
+ tableId: this.tableId,
28
+ paginationValue: Number(this.paginationValue),
29
+ });
30
+ }
31
+ };
17
32
  this.previousPage = () => {
18
33
  /** If pages and greater or equal to 2, decrease pagination value.
19
34
  * This is to not get under 1 in pagination value. */
20
35
  if (this.paginationValue >= 2) {
21
36
  this.paginationValue--;
22
37
  }
23
- /* Emits pagination event. */
24
- this.tdsPagination.emit({
25
- tableId: this.tableId,
26
- paginationValue: Number(this.paginationValue),
27
- });
38
+ this.emitTdsPagination();
28
39
  this.storeLastCorrectValue(this.paginationValue);
29
40
  };
30
41
  this.nextPage = () => {
@@ -33,14 +44,23 @@ const TdsTableFooter = class {
33
44
  if (this.paginationValue <= this.pages) {
34
45
  this.paginationValue++;
35
46
  }
36
- this.tdsPagination.emit({
37
- tableId: this.tableId,
38
- paginationValue: Number(this.paginationValue),
39
- });
47
+ this.emitTdsPagination();
48
+ this.storeLastCorrectValue(this.paginationValue);
49
+ };
50
+ this.lastPage = () => {
51
+ this.paginationValue = this.pages;
52
+ this.emitTdsPagination();
53
+ this.storeLastCorrectValue(this.paginationValue);
54
+ };
55
+ this.firstPage = () => {
56
+ this.paginationValue = 1;
57
+ this.emitTdsPagination();
40
58
  this.storeLastCorrectValue(this.paginationValue);
41
59
  };
42
60
  this.pagination = false;
43
61
  this.paginationValue = 1;
62
+ this.rowsperpage = true;
63
+ this.rowsPerPageValues = [10, 25, 50];
44
64
  this.pages = null;
45
65
  this.cols = null;
46
66
  this.columnsNumber = 0;
@@ -48,6 +68,7 @@ const TdsTableFooter = class {
48
68
  this.lastCorrectValue = undefined;
49
69
  this.tableId = '';
50
70
  this.horizontalScrollWidth = null;
71
+ this.rowsPerPageValue = this.rowsPerPageValues[0];
51
72
  }
52
73
  internalTdsPropChangeListener(event) {
53
74
  if (this.tableId === event.detail.tableId) {
@@ -93,12 +114,13 @@ const TdsTableFooter = class {
93
114
  else {
94
115
  this.paginationValue = insertedValue;
95
116
  }
96
- this.tdsPagination.emit({
97
- tableId: this.tableId,
98
- paginationValue: Number(this.paginationValue),
99
- });
117
+ this.emitTdsPagination();
100
118
  this.storeLastCorrectValue(this.paginationValue);
101
119
  }
120
+ rowsPerPageChange(event) {
121
+ this.rowsPerPageValue = parseInt(event.detail.value);
122
+ this.emitTdsPagination();
123
+ }
102
124
  getStyles() {
103
125
  const styles = {};
104
126
  if (this.horizontalScrollWidth) {
@@ -107,10 +129,13 @@ const TdsTableFooter = class {
107
129
  return styles;
108
130
  }
109
131
  render() {
110
- return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
132
+ var _a;
133
+ return (h(Host, { key: 'a47ca76a46aae73aca5ce929c70c2e76f8c2c853', class: {
111
134
  'tds-table--compact': this.compactDesign,
112
135
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
113
- }, 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" })))))))));
136
+ }, 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) => {
137
+ return (h("tds-dropdown-option", { value: `${value}` }, value));
138
+ }))))), 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" })))))))));
114
139
  }
115
140
  get host() { return getElement(this); }
116
141
  };
@@ -68,7 +68,7 @@ const TdsTableHeaderInputWrapper = class {
68
68
  }
69
69
  }
70
70
  render() {
71
- return (h(Host, { key: '43243a6c8e1a0ef0f18d9f1f1d4cd4cba6bc15b4', class: {
71
+ return (h(Host, { key: '733f9d487fd530eea4b597368c5ecdc46fd8dedd', class: {
72
72
  'focused-input-wrapper': this.inputFocused,
73
73
  'show-icon': this.showIcon,
74
74
  'tds-table__compact': this.compactDesign,
@@ -85,11 +85,11 @@ const TdsTableHeaderRow = class {
85
85
  });
86
86
  }
87
87
  render() {
88
- return (h(Host, { key: '5f212887d3d35e32240e9745d62685b7024100e1', class: {
88
+ return (h(Host, { key: '08dd2d38a8df4e8715c780dde55d81d52a26b26f', class: {
89
89
  'tds-table--compact': this.compactDesign,
90
90
  'tds-table--divider': this.verticalDividers,
91
91
  'tds-table--toolbar-available': this.enableToolbarDesign,
92
- } }, 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' }))));
92
+ } }, 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' }))));
93
93
  }
94
94
  get host() { return getElement(this); }
95
95
  };
@@ -66,10 +66,10 @@ const TdsTableToolbar = class {
66
66
  return styles;
67
67
  }
68
68
  render() {
69
- return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
69
+ return (h(Host, { key: 'c3488722c0a27313efa13acafeab81ca23c6c765', class: {
70
70
  'tds-table--compact': this.compactDesign,
71
71
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
72
- }, 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" })))));
72
+ }, 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" })))));
73
73
  }
74
74
  get host() { return getElement(this); }
75
75
  };
@@ -15,6 +15,7 @@ const TdsTable = class {
15
15
  this.expandableRows = false;
16
16
  this.responsive = false;
17
17
  this.modeVariant = null;
18
+ this.zebraMode = 'none';
18
19
  this.horizontalScrollWidth = null;
19
20
  this.tableId = generateUniqueId();
20
21
  this.enableHorizontalScrollToolbarDesign = false;
@@ -71,6 +72,9 @@ const TdsTable = class {
71
72
  noMinWidthChanged(newValue) {
72
73
  this.emitInternalTdsPropChange('noMinWidth', newValue);
73
74
  }
75
+ zebraModeChanged(newValue) {
76
+ this.emitInternalTdsPropChange('zebraMode', newValue);
77
+ }
74
78
  modeVariantChanged(newValue) {
75
79
  this.emitInternalTdsPropChange('modeVariant', newValue);
76
80
  }
@@ -86,11 +90,11 @@ const TdsTable = class {
86
90
  }
87
91
  }
88
92
  render() {
89
- return (h(Host, { key: '580c1c90c9f4556b16037c3200ae739a891bea88', class: {
93
+ return (h(Host, { key: '4d156fac32972a0493c44dc235134370f503c43c', class: {
90
94
  'tds-table--responsive': this.responsive,
91
95
  'tds-mode-variant-primary': this.modeVariant === 'primary',
92
96
  'tds-mode-variant-secondary': this.modeVariant === 'secondary',
93
- } }, h("table", { key: 'f2e9d248c5e93e6d83cfcd74408f99ed54c1ae95', style: this.getStyles(), class: {
97
+ } }, h("table", { key: 'da2663a9406f0f5a68ba789fd9ae16e474f28b6e', style: this.getStyles(), class: {
94
98
  'tds-table': true,
95
99
  'tds-table--compact': this.compactDesign,
96
100
  'tds-table--divider': this.verticalDividers,
@@ -101,7 +105,7 @@ const TdsTable = class {
101
105
  'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
102
106
  'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
103
107
  'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
104
- } }, h("slot", { key: '74edfe5bc755d4a7880b1368452f2906ebc5346a' }))));
108
+ } }, h("slot", { key: '1fc2d3dc9a43c87adea2ad500f573838c23bd2ca' }))));
105
109
  }
106
110
  get host() { return getElement(this); }
107
111
  static get watchers() { return {
@@ -110,6 +114,7 @@ const TdsTable = class {
110
114
  "compactDesign": ["compactDesignChanged"],
111
115
  "verticalDividers": ["verticalDividersChanged"],
112
116
  "noMinWidth": ["noMinWidthChanged"],
117
+ "zebraMode": ["zebraModeChanged"],
113
118
  "modeVariant": ["modeVariantChanged"],
114
119
  "horizontalScrollWidth": ["widthChanged"]
115
120
  }; }
@@ -53,7 +53,7 @@ const TdsTextField = class {
53
53
  var _a;
54
54
  const usesPrefixSlot = hasSlot('prefix', this.host);
55
55
  const usesSuffixSlot = hasSlot('suffix', this.host);
56
- return (h("div", { key: '1b4348574e1a9e7e315c61a2d555b487b619f22e', class: {
56
+ return (h("div", { key: 'd75b1ef11a730f7133c176776d6ff2f7713c302e', class: {
57
57
  'form-text-field-nomin': this.noMinWidth,
58
58
  'form-text-field': !this.focusInput || this.disabled,
59
59
  'text-field-focus': this.focusInput && !this.disabled,
@@ -67,12 +67,12 @@ const TdsTextField = class {
67
67
  'form-text-field-sm': this.size === 'sm',
68
68
  'form-text-field-error': this.state === 'error',
69
69
  'form-text-field-success': this.state === 'success',
70
- } }, this.labelPosition === 'outside' && (h("div", { key: '7f604df386ece3c8c01e5b60e75ef80de4500e81', class: "text-field-label-outside" }, h("div", { key: 'c13f468f76d9484c016a8218d9cc73b18724458f' }, this.label))), h("div", { key: '992c9076d7b1f9c6bec1847851bcfd989b6b0497', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'dfb616b9083ce42d90c180b5217e2e60ee3784af', class: {
70
+ } }, this.labelPosition === 'outside' && (h("div", { key: 'd1058c58a68782725d425d22ee3982605e375d4b', class: "text-field-label-outside" }, h("div", { key: 'c15fb3eb6f0345e2c58efd21711113c9f17a6223' }, this.label))), h("div", { key: '8795ee1b898c4b9b503588e31f4dac1354154a5c', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '9b78e21a8aa003b976110467d28cc0cdd7e8da96', class: {
71
71
  'text-field-slot-wrap-prefix': true,
72
72
  'text-field-error': this.state === 'error',
73
73
  'text-field-success': this.state === 'success',
74
74
  'text-field-default': this.state === 'default',
75
- } }, h("slot", { key: '98ed143615ad68a3cd51aca034999bfc279fce6b', name: "prefix" }))), h("div", { key: '8079b57a7e047255ed45f3f1ba9e28655a16ebed', class: "text-field-input-container" }, h("input", { key: '11782cd5c55f092a02ec741ecd9b20f2b8bfae91', ref: (inputEl) => (this.textInput = inputEl), class: {
75
+ } }, h("slot", { key: 'e393a751374617fba0eb3153027ccc7c687546ae', name: "prefix" }))), h("div", { key: '5acc43f4064dee1294d9590f2978e6d2a68642a0', class: "text-field-input-container" }, h("input", { key: '12c6abdf65142b09efe6bd293c21f447307606f8', ref: (inputEl) => (this.textInput = inputEl), class: {
76
76
  'text-field-input': true,
77
77
  'text-field-input-sm': this.size === 'sm',
78
78
  'text-field-input-md': this.size === 'md',
@@ -85,13 +85,13 @@ const TdsTextField = class {
85
85
  if (!this.readOnly) {
86
86
  this.handleBlur(event);
87
87
  }
88
- } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'f72126827829ec26bafee0b5d0eb29a9b96e8628', class: "text-field-label-inside" }, this.label))), h("div", { key: 'c21c6a8cd0d5c8a4814efa1a8f93a5e99b3e092e', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '9029f584ea0ef6cc081985a087692e066394a01b', class: {
88
+ } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '4f4b7888d0b25431b9716ae9082188945ee1b36f', class: "text-field-label-inside" }, this.label))), h("div", { key: '797624248b2d5a5d2ea20687f1952c9b4d8945d5', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '8a629c0927d391aea80a4b6d6ef4040772e9ded0', class: {
89
89
  'text-field-slot-wrap-suffix': true,
90
90
  'text-field-error': this.state === 'error',
91
91
  'text-field-success': this.state === 'success',
92
92
  'text-field-default': this.state === 'default',
93
93
  'tds-u-display-none': this.readOnly,
94
- } }, h("slot", { key: 'f50d3a85bfd324529516a2b8180129e194202465', name: "suffix" }))), h("span", { key: '6f7f160b3a1b425a7ace18b748b64e50cfd8389f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '82b1d06cfb8a3b08543a77c839ccfcba2e9fae13', name: "edit_inactive", size: "20px" })), h("span", { key: '0c9c2ab0b8f620db172050e1db1dd4324b3ab094', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '84c9baa2bce9159f5ea084ed35051a878cfac1f9', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '888d0185686e5ba16bf7b4a064ea1926e17d5c96', class: "text-field-helper-error-state" }, h("tds-icon", { key: '752d5c6c9dee5a7eff5abae9d60e2eb353ee2e60', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'ead6aba2e4f11010dc4d6c17977abaac0b242e76', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '27e1880b203314c781260116b99fd1474a6a8041', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
94
+ } }, h("slot", { key: '2de42ce855242335dc1a25248e09527534be0152', name: "suffix" }))), h("span", { key: '422c8b07010a7dd59d8653c65f76ab79dbf4284b', class: "text-field-icon__readonly" }, h("tds-icon", { key: '254a6cf7c6fcde19447e0275d6984f16d1bf4385', name: "edit_inactive", size: "20px" })), h("span", { key: '8625d2334c62556ac6484ee81ac05a5caef87e33', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '82bc517d9d3be59c5861687334465b41d768ff63', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '25366fcd3b55885a5433b36560be8e6849c15875', class: "text-field-helper-error-state" }, h("tds-icon", { key: '8cdbc0ae8ec4efd992cecbb1588ba96c0600783e', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: '232f3e4f400c49f8c065190d9353202b94419ef1', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '9ccc2d350603c6ad5ed6c49e84e00f8adcc2cd91', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
95
95
  }
96
96
  get host() { return getElement(this); }
97
97
  };
@@ -47,7 +47,7 @@ const TdsTextarea = class {
47
47
  }
48
48
  render() {
49
49
  var _a;
50
- return (h("div", { key: 'f110536792da6122221dc6941b6da71900ea2111', class: `
50
+ return (h("div", { key: 'fc3599b1d61b75327840068968001f2df6ec6b05', class: `
51
51
  textarea-container
52
52
  ${this.labelPosition === 'inside' ? 'textarea-label-inside' : ''}
53
53
  ${this.focusInput ? 'textarea-focus' : ''}
@@ -57,7 +57,7 @@ const TdsTextarea = class {
57
57
  ${this.value ? 'textarea-data' : ''}
58
58
  ${this.state === 'error' || this.state === 'success' ? `textarea-${this.state}` : ''}
59
59
  ${this.noMinWidth ? 'no-min-width' : ''}
60
- ` }, this.labelPosition !== 'no-label' && h("span", { key: '67784499bde176257853f1f4c7a8757ce98b07ee', class: 'textarea-label' }, this.label), h("div", { key: '7ad9c6b9c897995a98af2b9e9babefc3e2ae8831', class: "textarea-wrapper" }, h("textarea", { key: '94d944bb5e9722d89f7b0c98d18199c52f81b458', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
60
+ ` }, this.labelPosition !== 'no-label' && h("span", { key: '5ac3d5ef752a55f241865fe51bdb7aa96416731b', class: 'textarea-label' }, this.label), h("div", { key: '310c4a2a51391c366e17eca98ee22903d1620b16', class: "textarea-wrapper" }, h("textarea", { key: '4b83ff31486dea966a4a4a9df35d83043ad1a616', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
61
61
  if (!this.readOnly) {
62
62
  this.handleFocus(event);
63
63
  }
@@ -65,7 +65,7 @@ const TdsTextarea = class {
65
65
  if (!this.readOnly) {
66
66
  this.handleBlur(event);
67
67
  }
68
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '719da60a6975556fa37b2104d435bf99fb99efa5', class: "textarea-resizer-icon" }, h("svg", { key: '6b6969d6e49824fb8791343ac62bd1a9f5c4e0fa', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '1e4d31007fef3c520cfa32686cf9b888919b314a', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), h("span", { key: '144143c8af4351e0d2370ebeb0c50a0124ab8f9b', class: "textarea-icon__readonly" }, h("tds-icon", { key: 'e2c0ab89e72258d46bc6479b663f4d62466fa8b0', name: "edit_inactive" })), h("span", { key: 'c07af4893c1fd32de8988c1ef6ef3b77c4a63768', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'dd8ae6cbd2cdde4a08392c6905faae07bd7d58e7', class: 'textarea-helper' }, this.state === 'error' && h("tds-icon", { key: 'c282dcee39da4e70d207e41221c557852a06fb43', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '7f05bc68e67825742fe9c8c49853a39fabf1199e', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '32dd0095c4500558fbe9c9d46ba6db3eb67d9034', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
68
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '7718db97412e86796819e23584037833d762d6ce', class: "textarea-resizer-icon" }, h("svg", { key: '2b59b518d8bb6a61f6cbbbfb9bd2ec67938e91b6', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '99c42c62b8e6a17c6acf6824d6e08ae88a3ed2bf', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), h("span", { key: '5c4a4cad4aa805df35ce264c34f9cdde678b1804', class: "textarea-icon__readonly" }, h("tds-icon", { key: 'c5fe3371e08431c38a3979c226f64b79c35fed23', name: "edit_inactive" })), h("span", { key: 'e4261be8ce8cf8fc9cba5f25e6d4c52de4503f67', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'a58d64d87a5f971f3e51356a839beea73dfff4b4', class: 'textarea-helper' }, this.state === 'error' && h("tds-icon", { key: '39dfd4c2c356817e5f3b39af7f4e90334de79ac0', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '8df0493b694ddce5cd3669f00527329df2c29e06', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '8604248491d68a2b70531c028661573de48deb27', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
69
69
  }
70
70
  };
71
71
  TdsTextarea.style = TdsTextareaStyle0;
@@ -59,12 +59,12 @@ const TdsToast = class {
59
59
  const usesHeaderSlot = hasSlot('header', this.host);
60
60
  const usesSubheaderSlot = hasSlot('subheader', this.host);
61
61
  const usesActionsSlot = hasSlot('actions', this.host);
62
- return (h(Host, { key: 'f0ddc729628a45f868868f2b265f31d7df9a0411', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
62
+ return (h(Host, { key: 'ee07540896c1aae0d8025b16e6b7794f1c5d8f4a', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
63
63
  hide: this.hidden,
64
64
  show: !this.hidden,
65
- } }, h("div", { key: '73e3f624e617544d84ec2c7306ace9fb990070b9', class: `
65
+ } }, h("div", { key: '20a502c69ea5923dbd53fb8749c0c03a4aa4977b', class: `
66
66
  wrapper
67
- ${this.variant}` }, h("tds-icon", { key: 'bbeab9085851de6cc3d870421d8ea18c7e15471a', name: this.getIconName(), size: "20px" }), h("div", { key: '45b568761c09added6f0c3815d518fb541ba077a', class: `content` }, h("div", { key: '65aaac22e0b6439b3975e465493bc59e01ac7131', class: "header-subheader" }, this.header && h("div", { key: 'cd856ec5c2c118c52d942010f40cd90499f735b7', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '96157619f2e4fc59cd197bffb948cd4844d997b1', name: "header" }), this.subheader && h("div", { key: '3ba6782ba25b311d1c57b76791c0055db3f92ec2', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'e820491ceaa28771acd2b7661c5ddf7d9574a492', name: "subheader" })), usesActionsSlot && (h("div", { key: '72b25af2d7efbbb54b4f349c038c7efb684086f6', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '8c534d3b51d9f8c30148c0f601613d3395b8930e', name: "actions" })))), this.closable && (h("button", { key: 'a81bc7b2836bbec456260e80a1eb6e9d345ccdcf', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '7988501b679a147d62f6879db443bbfc64211871', name: "cross", size: "20px" }))))));
67
+ ${this.variant}` }, h("tds-icon", { key: '4167e597b4603cdb7d522a8b86dcc9c5c382ecaa', name: this.getIconName(), size: "20px" }), h("div", { key: '31921a5a61b34711669cbc93583291581e95c86f', class: `content` }, h("div", { key: '6d45456ec0c53cba6714af755a6fc2fa4db4405a', class: "header-subheader" }, this.header && h("div", { key: '3ac77ce9dfea028f0207214d99221ea5de0025cd', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'c746b1e1bd696fa8ed85e39bea4b6df0404a1a14', name: "header" }), this.subheader && h("div", { key: '3f6496b6942d9a6ff9a425cd60e396d813f4da1b', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '8c3c3a8f926dbc077c63a562cd54afba693d6ea6', name: "subheader" })), usesActionsSlot && (h("div", { key: 'dc5e027546c10825168bf0907280479f29688c3d', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'e7593549992a4842a7f6c35ab93c06b902ad469b', name: "actions" })))), this.closable && (h("button", { key: '7b3d02c1b27263f550445a18a3f94a5064375a78', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '69dffbd7b7e6be0dabd264683ea1bbf7c9413fae', name: "cross", size: "20px" }))))));
68
68
  }
69
69
  get host() { return getElement(this); }
70
70
  };
@@ -32,7 +32,7 @@ const TdsToggle = class {
32
32
  };
33
33
  }
34
34
  render() {
35
- return (h("div", { key: '125bc9f156074abd27fcf74c67f2af2e26998741', class: "tds-toggle" }, this.headline && (h("div", { key: 'a72a46de4f01ebb31961f3c348329aed34b71294', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '3ca94acbcd90d291e1b77ad8680ccd058b242023', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '77cccf34c1737b5a55f6903f20a68bd7f109b2ed', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: 'ad408d7719105369ca6e1b7465564c1126785f18', name: "label" }))));
35
+ return (h("div", { key: 'a740337f48412e83ddb8518fd88b7bfa9fb56930', class: "tds-toggle" }, this.headline && (h("div", { key: 'f768b325a07cbadb06bdf8a7ae3e41586b9e5d1b', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: 'e10313611123f0f6ab5f0477ff533218289096e4', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '5a46a186950ce374c963da377d41b64431c249af', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: '103d423193d379770333a78844e733c05402b010', name: "label" }))));
36
36
  }
37
37
  get host() { return getElement(this); }
38
38
  };
@@ -53,7 +53,7 @@ const TdsTooltip = class {
53
53
  }
54
54
  render() {
55
55
  var _a;
56
- return (h(Host, { key: '93961300d93daf9eb0fa1f15e59c6bdfbea5f77b' }, h("tds-popover-core", Object.assign({ key: '1d2c6b17012d5040632df84b221eac247e890696' }, this.inheritedAttributes, { class: {
56
+ return (h(Host, { key: '6ddab8bdc240b9b286226593656bbc5ab89f375d' }, h("tds-popover-core", Object.assign({ key: '82235fdf92c5d1fb7a63b2a756a59c8516e1e8c2' }, this.inheritedAttributes, { class: {
57
57
  'tds-tooltip': true,
58
58
  [`tds-tooltip-${this.border}`]: true,
59
59
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -62,7 +62,7 @@ const TdsTooltip = class {
62
62
  this.show = true;
63
63
  }, onInternalTdsClose: () => {
64
64
  this.show = false;
65
- } }), this.text, h("slot", { key: 'd5a4357f2875a0f5f9b958b26adb8cc6f794e900' }))));
65
+ } }), this.text, h("slot", { key: '579448ad9309452a0be5aedb906da8059f56b122' }))));
66
66
  }
67
67
  get host() { return getElement(this); }
68
68
  };