@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
@@ -166,9 +166,9 @@ const TdsFolderTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsFolderTabs ext
166
166
  this.removeEventListenerFromTabs();
167
167
  }
168
168
  render() {
169
- return (h(Host, { key: '748bacbb3d58d37735385a8c926dacb637d8eff1', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4c4f764a6a8c8a095bd1d030ef85a34014d8d284', class: "wrapper", ref: (el) => {
169
+ return (h(Host, { key: '3164044436f7029d85c4eed0ff7e0cc2b4e35752', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '59beaa0776ff83a30e84b69c5715a2f0d62ec6d9', class: "wrapper", ref: (el) => {
170
170
  this.navWrapperElement = el;
171
- } }, h("button", { key: 'ca859bdc9b9d10a7bcfaae194bbee508f308c1a2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '70aaa7044418b79234b9f3bd7eef2c1e0bf96e61', name: "chevron_left", size: "20px" })), h("slot", { key: 'ca1990c7333322885aa37b164cc7d74708b22116', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6321d42b6a42a9bf63ae844b94541f56806195fd', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '40a0e7a3297bdf6d4abbe5fc62114020fdb7aee3', name: "chevron_right", size: "20px" })))));
171
+ } }, h("button", { key: '0bd461d469592983e08043c23e295c21df04c80f', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: 'd21448eea9cab4d73087fec72d29270b52bf0999', name: "chevron_left", size: "20px" })), h("slot", { key: 'efe348a98b964486a73d1aac235ce894277c6249', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'ea819f59668994e328410941b5b7455620ecb321', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'c52241bb7c77eabbdb8de5a19bb4400c32aa2062', name: "chevron_right", size: "20px" })))));
172
172
  }
173
173
  get host() { return this; }
174
174
  static get watchers() { return {
@@ -114,7 +114,7 @@ const TdsTableHeaderCell = /*@__PURE__*/ proxyCustomElement(class TdsTableHeader
114
114
  this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
115
115
  }
116
116
  render() {
117
- return (h(Host, { key: '6a051465b3a5af5460f7c5ac112798b521f9b4a8', class: {
117
+ return (h(Host, { key: 'c40924cf774a94e3f78d114eb91632fe57388ba2', class: {
118
118
  'tds-table__header-cell': true,
119
119
  'tds-table__header-cell--sortable': this.sortable,
120
120
  'tds-table__header-cell--is-sorted': this.sortedByMyKey,
@@ -16,8 +16,8 @@ const TdsInlineTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTab exten
16
16
  this.selected = selected;
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '56d12f8a46ac69783e0f6cc060b9f99151fbe846', role: "listitem" }, h("div", { key: '01b43d6447a5122efaf0b8d58254708dad49fa39', class: `inline-tab-item ${this.selected ? 'selected' : ''}
20
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'bf865d7caa72ee0fa2aff284e55dd2a794ffb620' }))));
19
+ return (h(Host, { key: 'd15c7d658b9f90d01743d8f4fe6d14714a73e3f8', role: "listitem" }, h("div", { key: 'cc3324aa2ee065c9c9fd78c0e55c5c096a975d4d', class: `inline-tab-item ${this.selected ? 'selected' : ''}
20
+ ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '68bed317582717cb72d40f6b91d304a3a3df9d47' }))));
21
21
  }
22
22
  static get style() { return TdsInlineTabStyle0; }
23
23
  }, [1, "tds-inline-tab", {
@@ -173,9 +173,9 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
173
173
  this.removeEventListenerFromTabs();
174
174
  }
175
175
  render() {
176
- return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
176
+ return (h(Host, { key: '71f42e22f75a1fe4ca4f906b2151ed1a4c324e51', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '33e457be72862e642f2a867243f6325f94d210e8', class: "wrapper", ref: (el) => {
177
177
  this.navWrapperElement = el;
178
- }, 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" })))));
178
+ }, 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" })))));
179
179
  }
180
180
  get host() { return this; }
181
181
  static get watchers() { return {
@@ -16,8 +16,8 @@ const TdsNavigationTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationT
16
16
  this.selected = selected;
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: 'f8daf87eb0fce9c5229c6223a4188875000b4003', role: "listitem" }, h("div", { key: '692831fb82b1822550b6d715977970b327cb3448', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
20
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'afe5caebb5389f4386aa6c6ab57f9a81d2482a61' }))));
19
+ return (h(Host, { key: '46ce3b8e878eca4c970f29371cb17a0c7ec1789a', role: "listitem" }, h("div", { key: '51331675d8898d5bca9758ed9c09194c6dbfde23', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
20
+ ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'd326748125d8e6a366268c581139bb859ef8feeb' }))));
21
21
  }
22
22
  static get style() { return TdsNavigationTabStyle0; }
23
23
  }, [1, "tds-navigation-tab", {
@@ -173,9 +173,9 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
173
173
  this.removeEventListenerFromTabs();
174
174
  }
175
175
  render() {
176
- return (h(Host, { key: 'fbb3223e9c88c43d51773210c5599cc644fc8df5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'dbcd27f8adba0b6ef38071346bf38eba6dcaedd1', class: "wrapper", ref: (el) => {
176
+ return (h(Host, { key: 'fa440271f692e4893d4374ccd081308b5b4623e5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '434fba65da78ac84c018252c52440d20984ab7b3', class: "wrapper", ref: (el) => {
177
177
  this.navWrapperElement = el;
178
- }, 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" })))));
178
+ }, 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" })))));
179
179
  }
180
180
  get host() { return this; }
181
181
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
2
2
  import { g as generateUniqueId } from './p-11648030.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 = [
@@ -20,6 +20,7 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
20
20
  this.colSpan = null;
21
21
  this.rowId = generateUniqueId();
22
22
  this.expanded = undefined;
23
+ this.overflow = 'auto';
23
24
  this.isExpanded = false;
24
25
  this.tableId = '';
25
26
  this.columnsNumber = null;
@@ -46,12 +47,12 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
46
47
  this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded });
47
48
  }
48
49
  }
49
- /** method to expand table row */
50
+ /** Method to expand table row */
50
51
  async expand() {
51
52
  this.isExpanded = true;
52
53
  this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded });
53
54
  }
54
- /** method to collapse table row */
55
+ /** Method to collapse table row */
55
56
  async collapse() {
56
57
  this.isExpanded = false;
57
58
  this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded });
@@ -86,18 +87,20 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
86
87
  this.sendValue();
87
88
  }
88
89
  render() {
89
- return (h(Host, { key: 'cd23997b2d0b659691199b0f6a7be6aa51689ee4', class: {
90
+ return (h(Host, { key: '46a17e89125c4647a7a3db2c04cb8dff90dcc06a', class: {
90
91
  'tds-table__row': true,
91
92
  'tds-table__row-expand--active': this.isExpanded,
92
93
  'tds-table__compact': this.compactDesign,
93
94
  'tds-table--divider': this.verticalDividers,
94
- } }, h("tr", { key: 'a3fec49a0b97a35f61db7c31dfc023ba3acebd86', class: {
95
+ } }, h("tr", { key: '656a636f2444586e1c78fb5c5de45c623a47e2b5', class: {
95
96
  'tds-table__row': true,
96
97
  'tds-table__row--expanded': this.isExpanded,
97
- }, 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: {
98
+ }, 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: {
98
99
  'tds-table__row-expand': true,
99
100
  'tds-table__row-expand--expanded': this.isExpanded,
100
- }, part: "expand-row" }, h("td", { key: 'f0c746d12fae92eae3e6bf9651c826fb3aacbefe', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: '0a9e454379a7a6a72b3d6ea33a66a4aaaac09e8f', name: "expand-row" })))));
101
+ }, part: "expand-row" }, h("td", { key: '38ee3a00705e910161f43894990f987596f3f139', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("div", { key: '5fccf84bd2f7454afc3bb036210294e55f80f781', style: {
102
+ overflow: this.overflow,
103
+ } }, h("slot", { key: '01a7f9edf532244bd4f7205b339ffcafb93ceb20', name: "expand-row" }))))));
101
104
  }
102
105
  get host() { return this; }
103
106
  static get watchers() { return {
@@ -108,6 +111,7 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
108
111
  "colSpan": [2, "col-span"],
109
112
  "rowId": [513, "row-id"],
110
113
  "expanded": [516],
114
+ "overflow": [513],
111
115
  "isExpanded": [32],
112
116
  "tableId": [32],
113
117
  "columnsNumber": [32],
@@ -1,9 +1,13 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.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$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody extends H {
8
12
  constructor() {
9
13
  super();
@@ -20,6 +24,7 @@ const TdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody exten
20
24
  this.multiselectArrayJSON = undefined;
21
25
  this.mainCheckboxStatus = false;
22
26
  this.columnsNumber = 0;
27
+ this.zebraMode = 'none';
23
28
  this.tableId = '';
24
29
  }
25
30
  internalTdsPropChangeListener(event) {
@@ -48,10 +53,7 @@ const TdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody exten
48
53
  });
49
54
  }
50
55
  componentWillRender() {
51
- const headerElement = this.host.parentElement.querySelector('tds-table-header');
52
- const headerColumnsNo = headerElement
53
- ? this.host.parentElement.querySelector('tds-table-header').children.length
54
- : 0;
56
+ const headerColumnsNo = this.host.parentElement.querySelector('tds-table-header').children.length;
55
57
  // multiselect and expended features requires one extra column for controls...
56
58
  if (this.multiselect || this.expandableRows) {
57
59
  this.columnsNumber = headerColumnsNo + 1;
@@ -61,7 +63,12 @@ const TdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody exten
61
63
  }
62
64
  }
63
65
  render() {
64
- return (h(Host, { key: '5f7031a5167cd4bf867bb7813cf9fabb8c9405b9', "data-selected-rows": this.multiselectArrayJSON }, h("slot", { key: 'ccc4113754dec3e5b5da2447867de906d009dd93' })));
66
+ return (h(Host, { key: '0e5ac81e32535901ac4940316a474472368cca86', "data-selected-rows": this.multiselectArrayJSON, class: {
67
+ 'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
68
+ 'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
69
+ 'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
70
+ 'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
71
+ } }, h("slot", { key: 'c43f3047fc836b0d7f147e00680befd56b25721c' })));
65
72
  }
66
73
  get host() { return this; }
67
74
  static get style() { return TdsTableBodyStyle0; }
@@ -73,6 +80,7 @@ const TdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody exten
73
80
  "multiselectArrayJSON": [32],
74
81
  "mainCheckboxStatus": [32],
75
82
  "columnsNumber": [32],
83
+ "zebraMode": [32],
76
84
  "tableId": [32]
77
85
  }, [[16, "internalTdsTablePropChange", "internalTdsPropChangeListener"], [16, "internalTdsRowChange", "bodyCheckboxListener"]]]);
78
86
  function defineCustomElement$1() {
@@ -1,7 +1,10 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
2
+ import { d as defineCustomElement$5 } from './p-e4d7c655.js';
3
+ import { d as defineCustomElement$4 } from './p-e7eab204.js';
4
+ import { d as defineCustomElement$3 } from './p-1c256b8d.js';
2
5
  import { d as defineCustomElement$2 } from './p-3e74be57.js';
3
6
 
4
- 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)}}";
7
+ 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)}}";
5
8
  const TdsTableFooterStyle0 = tableFooterCss;
6
9
 
7
10
  const relevantTableProps = [
@@ -17,17 +20,28 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
17
20
  this.__registerHost();
18
21
  this.__attachShadow();
19
22
  this.tdsPagination = createEvent(this, "tdsPagination", 7);
23
+ this.emitTdsPagination = () => {
24
+ if (this.rowsperpage) {
25
+ this.tdsPagination.emit({
26
+ tableId: this.tableId,
27
+ paginationValue: Number(this.paginationValue),
28
+ rowsPerPage: this.rowsPerPageValue,
29
+ });
30
+ }
31
+ else {
32
+ this.tdsPagination.emit({
33
+ tableId: this.tableId,
34
+ paginationValue: Number(this.paginationValue),
35
+ });
36
+ }
37
+ };
20
38
  this.previousPage = () => {
21
39
  /** If pages and greater or equal to 2, decrease pagination value.
22
40
  * This is to not get under 1 in pagination value. */
23
41
  if (this.paginationValue >= 2) {
24
42
  this.paginationValue--;
25
43
  }
26
- /* Emits pagination event. */
27
- this.tdsPagination.emit({
28
- tableId: this.tableId,
29
- paginationValue: Number(this.paginationValue),
30
- });
44
+ this.emitTdsPagination();
31
45
  this.storeLastCorrectValue(this.paginationValue);
32
46
  };
33
47
  this.nextPage = () => {
@@ -36,14 +50,23 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
36
50
  if (this.paginationValue <= this.pages) {
37
51
  this.paginationValue++;
38
52
  }
39
- this.tdsPagination.emit({
40
- tableId: this.tableId,
41
- paginationValue: Number(this.paginationValue),
42
- });
53
+ this.emitTdsPagination();
54
+ this.storeLastCorrectValue(this.paginationValue);
55
+ };
56
+ this.lastPage = () => {
57
+ this.paginationValue = this.pages;
58
+ this.emitTdsPagination();
59
+ this.storeLastCorrectValue(this.paginationValue);
60
+ };
61
+ this.firstPage = () => {
62
+ this.paginationValue = 1;
63
+ this.emitTdsPagination();
43
64
  this.storeLastCorrectValue(this.paginationValue);
44
65
  };
45
66
  this.pagination = false;
46
67
  this.paginationValue = 1;
68
+ this.rowsperpage = true;
69
+ this.rowsPerPageValues = [10, 25, 50];
47
70
  this.pages = null;
48
71
  this.cols = null;
49
72
  this.columnsNumber = 0;
@@ -51,6 +74,7 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
51
74
  this.lastCorrectValue = undefined;
52
75
  this.tableId = '';
53
76
  this.horizontalScrollWidth = null;
77
+ this.rowsPerPageValue = this.rowsPerPageValues[0];
54
78
  }
55
79
  internalTdsPropChangeListener(event) {
56
80
  if (this.tableId === event.detail.tableId) {
@@ -96,12 +120,13 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
96
120
  else {
97
121
  this.paginationValue = insertedValue;
98
122
  }
99
- this.tdsPagination.emit({
100
- tableId: this.tableId,
101
- paginationValue: Number(this.paginationValue),
102
- });
123
+ this.emitTdsPagination();
103
124
  this.storeLastCorrectValue(this.paginationValue);
104
125
  }
126
+ rowsPerPageChange(event) {
127
+ this.rowsPerPageValue = parseInt(event.detail.value);
128
+ this.emitTdsPagination();
129
+ }
105
130
  getStyles() {
106
131
  const styles = {};
107
132
  if (this.horizontalScrollWidth) {
@@ -110,35 +135,56 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
110
135
  return styles;
111
136
  }
112
137
  render() {
113
- return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
138
+ var _a;
139
+ return (h(Host, { key: 'a47ca76a46aae73aca5ce929c70c2e76f8c2c853', class: {
114
140
  'tds-table--compact': this.compactDesign,
115
141
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
116
- }, 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" })))))))));
142
+ }, 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) => {
143
+ return (h("tds-dropdown-option", { value: `${value}` }, value));
144
+ }))))), 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" })))))))));
117
145
  }
118
146
  get host() { return this; }
119
147
  static get style() { return TdsTableFooterStyle0; }
120
148
  }, [1, "tds-table-footer", {
121
149
  "pagination": [516],
122
150
  "paginationValue": [1538, "pagination-value"],
151
+ "rowsperpage": [516],
152
+ "rowsPerPageValues": [16],
123
153
  "pages": [514],
124
154
  "cols": [2],
125
155
  "columnsNumber": [32],
126
156
  "compactDesign": [32],
127
157
  "lastCorrectValue": [32],
128
158
  "tableId": [32],
129
- "horizontalScrollWidth": [32]
159
+ "horizontalScrollWidth": [32],
160
+ "rowsPerPageValue": [32]
130
161
  }, [[16, "internalTdsTablePropChange", "internalTdsPropChangeListener"]]]);
131
162
  function defineCustomElement$1() {
132
163
  if (typeof customElements === "undefined") {
133
164
  return;
134
165
  }
135
- const components = ["tds-table-footer", "tds-icon"];
166
+ const components = ["tds-table-footer", "tds-checkbox", "tds-dropdown", "tds-dropdown-option", "tds-icon"];
136
167
  components.forEach(tagName => { switch (tagName) {
137
168
  case "tds-table-footer":
138
169
  if (!customElements.get(tagName)) {
139
170
  customElements.define(tagName, TdsTableFooter$1);
140
171
  }
141
172
  break;
173
+ case "tds-checkbox":
174
+ if (!customElements.get(tagName)) {
175
+ defineCustomElement$5();
176
+ }
177
+ break;
178
+ case "tds-dropdown":
179
+ if (!customElements.get(tagName)) {
180
+ defineCustomElement$4();
181
+ }
182
+ break;
183
+ case "tds-dropdown-option":
184
+ if (!customElements.get(tagName)) {
185
+ defineCustomElement$3();
186
+ }
187
+ break;
142
188
  case "tds-icon":
143
189
  if (!customElements.get(tagName)) {
144
190
  defineCustomElement$2();
@@ -71,7 +71,7 @@ const TdsTableHeaderInputWrapper$1 = /*@__PURE__*/ proxyCustomElement(class TdsT
71
71
  }
72
72
  }
73
73
  render() {
74
- return (h(Host, { key: '43243a6c8e1a0ef0f18d9f1f1d4cd4cba6bc15b4', class: {
74
+ return (h(Host, { key: '733f9d487fd530eea4b597368c5ecdc46fd8dedd', class: {
75
75
  'focused-input-wrapper': this.inputFocused,
76
76
  'show-icon': this.showIcon,
77
77
  'tds-table__compact': this.compactDesign,
@@ -88,11 +88,11 @@ const TdsTableHeaderRow = /*@__PURE__*/ proxyCustomElement(class TdsTableHeaderR
88
88
  });
89
89
  }
90
90
  render() {
91
- return (h(Host, { key: '5f212887d3d35e32240e9745d62685b7024100e1', class: {
91
+ return (h(Host, { key: '08dd2d38a8df4e8715c780dde55d81d52a26b26f', class: {
92
92
  'tds-table--compact': this.compactDesign,
93
93
  'tds-table--divider': this.verticalDividers,
94
94
  'tds-table--toolbar-available': this.enableToolbarDesign,
95
- } }, 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' }))));
95
+ } }, 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' }))));
96
96
  }
97
97
  get host() { return this; }
98
98
  static get style() { return TdsTableHeaderStyle0; }
@@ -69,10 +69,10 @@ const TdsTableToolbar$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableToolbar
69
69
  return styles;
70
70
  }
71
71
  render() {
72
- return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
72
+ return (h(Host, { key: 'c3488722c0a27313efa13acafeab81ca23c6c765', class: {
73
73
  'tds-table--compact': this.compactDesign,
74
74
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
75
- }, 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" })))));
75
+ }, 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" })))));
76
76
  }
77
77
  get host() { return this; }
78
78
  static get style() { return TdsTableToolbarStyle0; }
@@ -17,6 +17,7 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
17
17
  this.expandableRows = false;
18
18
  this.responsive = false;
19
19
  this.modeVariant = null;
20
+ this.zebraMode = 'none';
20
21
  this.horizontalScrollWidth = null;
21
22
  this.tableId = generateUniqueId();
22
23
  this.enableHorizontalScrollToolbarDesign = false;
@@ -73,6 +74,9 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
73
74
  noMinWidthChanged(newValue) {
74
75
  this.emitInternalTdsPropChange('noMinWidth', newValue);
75
76
  }
77
+ zebraModeChanged(newValue) {
78
+ this.emitInternalTdsPropChange('zebraMode', newValue);
79
+ }
76
80
  modeVariantChanged(newValue) {
77
81
  this.emitInternalTdsPropChange('modeVariant', newValue);
78
82
  }
@@ -88,11 +92,11 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
88
92
  }
89
93
  }
90
94
  render() {
91
- return (h(Host, { key: '580c1c90c9f4556b16037c3200ae739a891bea88', class: {
95
+ return (h(Host, { key: '4d156fac32972a0493c44dc235134370f503c43c', class: {
92
96
  'tds-table--responsive': this.responsive,
93
97
  'tds-mode-variant-primary': this.modeVariant === 'primary',
94
98
  'tds-mode-variant-secondary': this.modeVariant === 'secondary',
95
- } }, h("table", { key: 'f2e9d248c5e93e6d83cfcd74408f99ed54c1ae95', style: this.getStyles(), class: {
99
+ } }, h("table", { key: 'da2663a9406f0f5a68ba789fd9ae16e474f28b6e', style: this.getStyles(), class: {
96
100
  'tds-table': true,
97
101
  'tds-table--compact': this.compactDesign,
98
102
  'tds-table--divider': this.verticalDividers,
@@ -103,7 +107,7 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
103
107
  'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
104
108
  'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
105
109
  'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
106
- } }, h("slot", { key: '74edfe5bc755d4a7880b1368452f2906ebc5346a' }))));
110
+ } }, h("slot", { key: '1fc2d3dc9a43c87adea2ad500f573838c23bd2ca' }))));
107
111
  }
108
112
  get host() { return this; }
109
113
  static get watchers() { return {
@@ -112,6 +116,7 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
112
116
  "compactDesign": ["compactDesignChanged"],
113
117
  "verticalDividers": ["verticalDividersChanged"],
114
118
  "noMinWidth": ["noMinWidthChanged"],
119
+ "zebraMode": ["zebraModeChanged"],
115
120
  "modeVariant": ["modeVariantChanged"],
116
121
  "horizontalScrollWidth": ["widthChanged"]
117
122
  }; }
@@ -124,6 +129,7 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
124
129
  "expandableRows": [516, "expandable-rows"],
125
130
  "responsive": [516],
126
131
  "modeVariant": [513, "mode-variant"],
132
+ "zebraMode": [513, "zebra-mode"],
127
133
  "horizontalScrollWidth": [1, "horizontal-scroll-width"],
128
134
  "tableId": [1, "table-id"],
129
135
  "enableHorizontalScrollToolbarDesign": [32],
@@ -135,6 +141,7 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
135
141
  "compactDesign": ["compactDesignChanged"],
136
142
  "verticalDividers": ["verticalDividersChanged"],
137
143
  "noMinWidth": ["noMinWidthChanged"],
144
+ "zebraMode": ["zebraModeChanged"],
138
145
  "modeVariant": ["modeVariantChanged"],
139
146
  "horizontalScrollWidth": ["widthChanged"]
140
147
  }]);
@@ -55,7 +55,7 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
55
55
  var _a;
56
56
  const usesPrefixSlot = hasSlot('prefix', this.host);
57
57
  const usesSuffixSlot = hasSlot('suffix', this.host);
58
- return (h("div", { key: '1b4348574e1a9e7e315c61a2d555b487b619f22e', class: {
58
+ return (h("div", { key: 'd75b1ef11a730f7133c176776d6ff2f7713c302e', class: {
59
59
  'form-text-field-nomin': this.noMinWidth,
60
60
  'form-text-field': !this.focusInput || this.disabled,
61
61
  'text-field-focus': this.focusInput && !this.disabled,
@@ -69,12 +69,12 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
69
69
  'form-text-field-sm': this.size === 'sm',
70
70
  'form-text-field-error': this.state === 'error',
71
71
  'form-text-field-success': this.state === 'success',
72
- } }, 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: {
72
+ } }, 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: {
73
73
  'text-field-slot-wrap-prefix': true,
74
74
  'text-field-error': this.state === 'error',
75
75
  'text-field-success': this.state === 'success',
76
76
  'text-field-default': this.state === 'default',
77
- } }, 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: {
77
+ } }, 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: {
78
78
  'text-field-input': true,
79
79
  'text-field-input-sm': this.size === 'sm',
80
80
  'text-field-input-md': this.size === 'md',
@@ -87,13 +87,13 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
87
87
  if (!this.readOnly) {
88
88
  this.handleBlur(event);
89
89
  }
90
- } }), 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: {
90
+ } }), 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: {
91
91
  'text-field-slot-wrap-suffix': true,
92
92
  'text-field-error': this.state === 'error',
93
93
  'text-field-success': this.state === 'success',
94
94
  'text-field-default': this.state === 'default',
95
95
  'tds-u-display-none': this.readOnly,
96
- } }, 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))))));
96
+ } }, 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))))));
97
97
  }
98
98
  get host() { return this; }
99
99
  static get style() { return TdsTextFieldStyle0; }
@@ -49,7 +49,7 @@ const TdsTextarea$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextarea extends
49
49
  }
50
50
  render() {
51
51
  var _a;
52
- return (h("div", { key: 'f110536792da6122221dc6941b6da71900ea2111', class: `
52
+ return (h("div", { key: 'fc3599b1d61b75327840068968001f2df6ec6b05', class: `
53
53
  textarea-container
54
54
  ${this.labelPosition === 'inside' ? 'textarea-label-inside' : ''}
55
55
  ${this.focusInput ? 'textarea-focus' : ''}
@@ -59,7 +59,7 @@ const TdsTextarea$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextarea extends
59
59
  ${this.value ? 'textarea-data' : ''}
60
60
  ${this.state === 'error' || this.state === 'success' ? `textarea-${this.state}` : ''}
61
61
  ${this.noMinWidth ? 'no-min-width' : ''}
62
- ` }, 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) => {
62
+ ` }, 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) => {
63
63
  if (!this.readOnly) {
64
64
  this.handleFocus(event);
65
65
  }
@@ -67,7 +67,7 @@ const TdsTextarea$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextarea extends
67
67
  if (!this.readOnly) {
68
68
  this.handleBlur(event);
69
69
  }
70
- }, 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))));
70
+ }, 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))));
71
71
  }
72
72
  static get style() { return TdsTextareaStyle0; }
73
73
  }, [2, "tds-textarea", {