@scania/tegel 1.14.0-scaling-card-beta.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  3. package/dist/cjs/tds-inline-tabs.cjs.entry.js +10 -3
  4. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +14 -5
  6. package/dist/cjs/tds-table-footer.cjs.entry.js +9 -2
  7. package/dist/cjs/tds-table-toolbar.cjs.entry.js +9 -2
  8. package/dist/cjs/tds-table.cjs.entry.js +10 -3
  9. package/dist/cjs/tegel.cjs.js +1 -1
  10. package/dist/collection/components/card/card.css +0 -1
  11. package/dist/collection/components/side-menu/side-menu.js +3 -3
  12. package/dist/collection/components/stepper/stepper.js +1 -1
  13. package/dist/collection/components/table/table/table.js +11 -4
  14. package/dist/collection/components/table/table-footer/table-footer.js +9 -2
  15. package/dist/collection/components/table/table-toolbar/table-toolbar.js +9 -2
  16. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +0 -4
  17. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +1 -0
  18. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +27 -2
  19. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +0 -4
  20. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +1 -0
  21. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +31 -4
  22. package/dist/components/tds-inline-tab.js +1 -1
  23. package/dist/components/tds-inline-tabs.js +11 -3
  24. package/dist/components/tds-navigation-tab.js +1 -1
  25. package/dist/components/tds-navigation-tabs.js +15 -5
  26. package/dist/components/tds-table-footer.js +9 -2
  27. package/dist/components/tds-table-toolbar.js +9 -2
  28. package/dist/components/tds-table.js +10 -3
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/tds-inline-tab.entry.js +1 -1
  31. package/dist/esm/tds-inline-tabs.entry.js +10 -3
  32. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  33. package/dist/esm/tds-navigation-tabs.entry.js +14 -5
  34. package/dist/esm/tds-table-footer.entry.js +9 -2
  35. package/dist/esm/tds-table-toolbar.entry.js +9 -2
  36. package/dist/esm/tds-table.entry.js +10 -3
  37. package/dist/esm/tegel.js +1 -1
  38. package/dist/tegel/p-08642415.entry.js +1 -0
  39. package/dist/tegel/p-6b04a919.entry.js +1 -0
  40. package/dist/tegel/{p-80edba0f.entry.js → p-7c75d8d3.entry.js} +1 -1
  41. package/dist/tegel/p-c1f8f523.entry.js +1 -0
  42. package/dist/tegel/p-e1842d99.entry.js +1 -0
  43. package/dist/tegel/p-e7fac8ad.entry.js +1 -0
  44. package/dist/tegel/{p-56dfd78a.entry.js → p-f3f1f357.entry.js} +1 -1
  45. package/dist/tegel/tegel.esm.js +1 -1
  46. package/dist/types/components/table/table/table.d.ts +1 -0
  47. package/dist/types/components/table/table-footer/table-footer.d.ts +1 -0
  48. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
  49. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
  50. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
  51. package/dist/types/components.d.ts +16 -0
  52. package/package.json +9 -9
  53. package/dist/tegel/p-ac09f8d4.entry.js +0 -1
  54. package/dist/tegel/p-ada411aa.entry.js +0 -1
  55. package/dist/tegel/p-b8593b29.entry.js +0 -1
  56. package/dist/tegel/p-c22c761c.entry.js +0 -1
  57. package/dist/tegel/p-e6a5dda4.entry.js +0 -1
@@ -93,11 +93,18 @@ export class TdsTableFooter {
93
93
  });
94
94
  this.storeLastCorrectValue(this.paginationValue);
95
95
  }
96
+ getStyles() {
97
+ const styles = {};
98
+ if (this.horizontalScrollWidth) {
99
+ styles.width = `${this.horizontalScrollWidth}px`;
100
+ }
101
+ return styles;
102
+ }
96
103
  render() {
97
- return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
104
+ return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
98
105
  'tds-table--compact': this.compactDesign,
99
106
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
100
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '6f6bfca5e7719084b2c4564b86806f6eb7867601', class: "tds-table__footer-row" }, h("td", { key: '2c4389dfa2c028798246a5c4d8b9bdcc05a780f2', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '0831e596963e20222feee940fb7d7d489f832b5e', class: "tds-table__pagination" }, h("div", { key: '1129e67d9b69b06a1fadde589f9ad37a1bd9fcca', class: "tds-table__row-selector" }), h("div", { key: '81e685df813d615027470d4c84c468bb2c5fccca', class: "tds-table__page-selector" }, h("input", { key: '4b116837ae02fcbf6b51b940587ae6159d40f5cb', 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: '927af4715b33f50679aef3ec5eccc5fd4044add7', class: "tds-table__footer-text" }, "of ", h("span", { key: '2d89421fbbbb0828623465f39edc506b9bfa82da' }, this.pages), " pages"), h("button", { key: '37916d812b7b4510b088b382f48b2d9f04d212b2', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'd89ac980f4c48fe6c14610f27ccc05e43994631e', name: "chevron_left", size: "20px" })), h("button", { key: '246b17fc6ff26e3830d5a359a4a5de844bc93a1b', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '6fa3441ed75b484974e50ee41ea1444bea7c30e2', name: "chevron_right", size: "20px" })))))))));
107
+ }, style: this.getStyles() }, h("tr", { key: 'cb4fc7ffecfa791f08a3da4a167459ccfb32e782', class: "tds-table__footer-row" }, h("td", { key: 'bf7388bc8aa26313cadba5333dc587d431a29867', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'ace766078c85f047034ac614712dc58b6dc7b540', class: "tds-table__pagination" }, h("div", { key: '0ef2c3c300bab7595773b65aa40da1399af4b7b8', class: "tds-table__row-selector" }), h("div", { key: '3fe2283dcbfd64fb54bd8faa9bd269dac22e81d8', class: "tds-table__page-selector" }, h("input", { key: '84295a91900f676742795c975f1706d4fbe196f6', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '88c7d7d7cfe66f2431b44c9ed38ebee5771f54b7', class: "tds-table__footer-text" }, "of ", h("span", { key: '42cf669a05c6e0e86a56aa568f2623c562bf83f6' }, this.pages), " pages"), h("button", { key: '3f022e45c6ca31ce542854c5e659349ab54b372a', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '253b1cb33d4038ce03ff8fdb0bad30ba46ab0c13', name: "chevron_left", size: "20px" })), h("button", { key: 'ad21b63c30fc638372c89bb366be77df419bf532', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '58a640745984554b8c7cba3ce07130063299223e', name: "chevron_right", size: "20px" })))))))));
101
108
  }
102
109
  static get is() { return "tds-table-footer"; }
103
110
  static get encapsulation() { return "shadow"; }
@@ -55,11 +55,18 @@ export class TdsTableToolbar {
55
55
  tdsTableSearchBar.classList.remove('tds-table__searchbar--active');
56
56
  }
57
57
  }
58
+ getStyles() {
59
+ const styles = {};
60
+ if (this.horizontalScrollWidth) {
61
+ styles.width = `${this.horizontalScrollWidth}px`;
62
+ }
63
+ return styles;
64
+ }
58
65
  render() {
59
- return (h(Host, { key: '9c864dc219ed17a50a4d84881c676e05b3e0ef92', class: {
66
+ return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
60
67
  'tds-table--compact': this.compactDesign,
61
68
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
62
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("div", { key: '035b5a5396344e3d682fb5370a4e1c0484045579', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'f1f5ba362eda8a0ae25fb63c89a25fe3606365c9', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'b94a83cf81e1aaa06d1b29a4e9207c99bccbbbbc', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '358798e484d1892acb6a4e7e3b30702002ba860d', class: "tds-table__searchbar" }, h("input", { key: 'f062bf19e13e312ee9089324bdfc6d4e2e9a1db4', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '9e874b39910b2d32b0a3193b14e01ed5f681b928', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '38d5a1b800d849b66a0c35d01d496fc4708f53c2', name: "search", size: "20px" })))), h("slot", { key: 'f362385a5719c51dbce2b213774b6397ede8714b', name: "end" })))));
69
+ }, style: this.getStyles() }, h("div", { key: 'ecbf925fcd58dd77de40fd4b15c0a57c07b8a1c0', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'd2f230c4944590897ac220fc2c35cd72008b8f4c', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'd75faf41e03bd19b1e268e85c884298c75d74450', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '7b098f02923e9580e1c8852dfcca11d4c21c75bd', class: "tds-table__searchbar" }, h("input", { key: 'c9d76e665ef26e197a7dad1e9ac83a0095ad66e9', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '1af8c1344e160cd494eeafc43c4f2422f7119d83', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '9c85fc3e817afcf7b548f2f851f3ce0970f82c00', name: "search", size: "20px" })))), h("slot", { key: 'ff6e2d21cc06fa5981e7814040d6d79581f8d974', name: "end" })))));
63
70
  }
64
71
  static get is() { return "tds-table-toolbar"; }
65
72
  static get encapsulation() { return "shadow"; }
@@ -81,10 +81,6 @@
81
81
  outline: none;
82
82
  }
83
83
 
84
- :host(.first) {
85
- margin-left: 32px;
86
- }
87
-
88
84
  :host(.last) {
89
85
  margin-right: 32px;
90
86
  }
@@ -24,6 +24,7 @@
24
24
  width: 100%;
25
25
  overflow-x: scroll;
26
26
  scrollbar-width: none;
27
+ gap: 16px;
27
28
  }
28
29
  :host .wrapper::-webkit-scrollbar {
29
30
  display: none;
@@ -60,6 +60,7 @@ export class TdsInlineTabs {
60
60
  this.modeVariant = 'primary';
61
61
  this.defaultSelectedIndex = 0;
62
62
  this.selectedIndex = undefined;
63
+ this.leftPadding = 32;
63
64
  this.showLeftScroll = false;
64
65
  this.showRightScroll = false;
65
66
  }
@@ -139,12 +140,18 @@ export class TdsInlineTabs {
139
140
  this.showRightScroll = false;
140
141
  }
141
142
  }
143
+ applyCustomLeftPadding() {
144
+ if (this.navWrapperElement) {
145
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
146
+ }
147
+ }
142
148
  handleSlotChange() {
143
149
  this.initializeTabs();
144
150
  this.addEventListenerToTabs();
145
151
  this.initializeSelectedTab();
146
152
  this.updateScrollButtons();
147
153
  this.addResizeObserver();
154
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
148
155
  }
149
156
  connectedCallback() {
150
157
  this.initializeTabs();
@@ -160,9 +167,9 @@ export class TdsInlineTabs {
160
167
  this.removeEventListenerFromTabs();
161
168
  }
162
169
  render() {
163
- return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
170
+ return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
164
171
  this.navWrapperElement = el;
165
- } }, h("button", { key: '646917420741478a9492cec16c066833d3e3266e', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '939eb79ed238163057dcc8316f6efdec89262ff8', name: "chevron_left", size: "20px" })), h("slot", { key: 'f3306035cce33e3efb3e89ab4650c3781703f9e5', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6b2023939d94eb9f9822e25fd4facce715fdf227', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0b2626c78903ce14239891aa667a61ed913097ac', name: "chevron_right", size: "20px" })))));
172
+ }, 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" })))));
166
173
  }
167
174
  static get is() { return "tds-inline-tabs"; }
168
175
  static get encapsulation() { return "shadow"; }
@@ -230,6 +237,24 @@ export class TdsInlineTabs {
230
237
  },
231
238
  "attribute": "selected-index",
232
239
  "reflect": true
240
+ },
241
+ "leftPadding": {
242
+ "type": "number",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "number",
246
+ "resolved": "number",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Custom left padding value for the wrapper element."
254
+ },
255
+ "attribute": "left-padding",
256
+ "reflect": true,
257
+ "defaultValue": "32"
233
258
  }
234
259
  };
235
260
  }
@@ -80,10 +80,6 @@
80
80
  outline: none;
81
81
  }
82
82
 
83
- :host(.first) {
84
- margin-left: 32px;
85
- }
86
-
87
83
  :host(.last) {
88
84
  margin-right: 32px;
89
85
  }
@@ -24,6 +24,7 @@
24
24
  width: 100%;
25
25
  overflow-x: scroll;
26
26
  scrollbar-width: none;
27
+ gap: 16px;
27
28
  }
28
29
  :host .wrapper::-webkit-scrollbar {
29
30
  display: none;
@@ -60,6 +60,7 @@ export class TdsNavigationTabs {
60
60
  this.modeVariant = 'primary';
61
61
  this.defaultSelectedIndex = 0;
62
62
  this.selectedIndex = undefined;
63
+ this.leftPadding = 32;
63
64
  this.showLeftScroll = false;
64
65
  this.showRightScroll = false;
65
66
  }
@@ -112,8 +113,10 @@ export class TdsNavigationTabs {
112
113
  child.classList.remove('last');
113
114
  child.classList.remove('first');
114
115
  });
115
- this.children[0].classList.add('first');
116
- this.children[this.children.length - 1].classList.add('last');
116
+ if (this.children.length > 0) {
117
+ this.children[0].classList.add('first');
118
+ this.children[this.children.length - 1].classList.add('last');
119
+ }
117
120
  }
118
121
  initializeSelectedTab() {
119
122
  if (this.selectedIndex === undefined) {
@@ -137,12 +140,18 @@ export class TdsNavigationTabs {
137
140
  this.showRightScroll = false;
138
141
  }
139
142
  }
143
+ applyCustomLeftPadding() {
144
+ if (this.navWrapperElement) {
145
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
146
+ }
147
+ }
140
148
  handleSlotChange() {
141
149
  this.initializeTabs();
142
150
  this.addEventListenerToTabs();
143
151
  this.initializeSelectedTab();
144
152
  this.updateScrollButtons();
145
153
  this.addResizeObserver();
154
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
146
155
  }
147
156
  connectedCallback() {
148
157
  this.initializeTabs();
@@ -158,9 +167,9 @@ export class TdsNavigationTabs {
158
167
  this.removeEventListenerFromTabs();
159
168
  }
160
169
  render() {
161
- return (h(Host, { key: 'eaf7fd47f5f4132d7920d5deafb659828cab01e9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1fe0e2f45e6cf32175a3ef6c556aa63ba3b46b97', class: "wrapper", ref: (el) => {
170
+ return (h(Host, { key: 'fbb3223e9c88c43d51773210c5599cc644fc8df5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'dbcd27f8adba0b6ef38071346bf38eba6dcaedd1', class: "wrapper", ref: (el) => {
162
171
  this.navWrapperElement = el;
163
- } }, h("button", { key: 'fa71abb901a1c6ab70dde90d759d9aa537a72ec2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '0aff4668869fa761e03e8c81ed054561787beb49', name: "chevron_left", size: "20px" })), h("slot", { key: '169f8b9eb18a33fb4fc739863eaf4a730e066c83', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '9c9757d3c818191ce5aec5bbd64699c04dfc07db', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'e38ac8674d9e3e4aeaa67bd888cd411002353634', name: "chevron_right", size: "20px" })))));
172
+ }, 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" })))));
164
173
  }
165
174
  static get is() { return "tds-navigation-tabs"; }
166
175
  static get encapsulation() { return "shadow"; }
@@ -228,6 +237,24 @@ export class TdsNavigationTabs {
228
237
  },
229
238
  "attribute": "selected-index",
230
239
  "reflect": true
240
+ },
241
+ "leftPadding": {
242
+ "type": "number",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "number",
246
+ "resolved": "number",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Custom left padding value for the wrapper element."
254
+ },
255
+ "attribute": "left-padding",
256
+ "reflect": true,
257
+ "defaultValue": "32"
231
258
  }
232
259
  };
233
260
  }
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
 
3
- const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
3
+ const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
4
4
  const TdsInlineTabStyle0 = inlineTabCss;
5
5
 
6
6
  const TdsInlineTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTab extends H {
@@ -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 { d as defineCustomElement$2 } from './p-3e74be57.js';
3
3
 
4
- const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
4
+ const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
5
5
  const TdsInlineTabsStyle0 = inlineTabsCss;
6
6
 
7
7
  const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs extends H {
@@ -66,6 +66,7 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
66
66
  this.modeVariant = 'primary';
67
67
  this.defaultSelectedIndex = 0;
68
68
  this.selectedIndex = undefined;
69
+ this.leftPadding = 32;
69
70
  this.showLeftScroll = false;
70
71
  this.showRightScroll = false;
71
72
  }
@@ -145,12 +146,18 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
145
146
  this.showRightScroll = false;
146
147
  }
147
148
  }
149
+ applyCustomLeftPadding() {
150
+ if (this.navWrapperElement) {
151
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
152
+ }
153
+ }
148
154
  handleSlotChange() {
149
155
  this.initializeTabs();
150
156
  this.addEventListenerToTabs();
151
157
  this.initializeSelectedTab();
152
158
  this.updateScrollButtons();
153
159
  this.addResizeObserver();
160
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
154
161
  }
155
162
  connectedCallback() {
156
163
  this.initializeTabs();
@@ -166,9 +173,9 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
166
173
  this.removeEventListenerFromTabs();
167
174
  }
168
175
  render() {
169
- return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
176
+ return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
170
177
  this.navWrapperElement = el;
171
- } }, h("button", { key: '646917420741478a9492cec16c066833d3e3266e', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '939eb79ed238163057dcc8316f6efdec89262ff8', name: "chevron_left", size: "20px" })), h("slot", { key: 'f3306035cce33e3efb3e89ab4650c3781703f9e5', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6b2023939d94eb9f9822e25fd4facce715fdf227', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0b2626c78903ce14239891aa667a61ed913097ac', name: "chevron_right", size: "20px" })))));
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" })))));
172
179
  }
173
180
  get host() { return this; }
174
181
  static get watchers() { return {
@@ -179,6 +186,7 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
179
186
  "modeVariant": [1, "mode-variant"],
180
187
  "defaultSelectedIndex": [2, "default-selected-index"],
181
188
  "selectedIndex": [514, "selected-index"],
189
+ "leftPadding": [514, "left-padding"],
182
190
  "showLeftScroll": [32],
183
191
  "showRightScroll": [32],
184
192
  "selectTab": [64],
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
 
3
- const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color) !important;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
3
+ const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color) !important;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
4
4
  const TdsNavigationTabStyle0 = navigationTabCss;
5
5
 
6
6
  const TdsNavigationTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationTab extends H {
@@ -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 { d as defineCustomElement$2 } from './p-3e74be57.js';
3
3
 
4
- const navigationTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
4
+ const navigationTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
5
5
  const TdsNavigationTabsStyle0 = navigationTabsCss;
6
6
 
7
7
  const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationTabs extends H {
@@ -66,6 +66,7 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
66
66
  this.modeVariant = 'primary';
67
67
  this.defaultSelectedIndex = 0;
68
68
  this.selectedIndex = undefined;
69
+ this.leftPadding = 32;
69
70
  this.showLeftScroll = false;
70
71
  this.showRightScroll = false;
71
72
  }
@@ -118,8 +119,10 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
118
119
  child.classList.remove('last');
119
120
  child.classList.remove('first');
120
121
  });
121
- this.children[0].classList.add('first');
122
- this.children[this.children.length - 1].classList.add('last');
122
+ if (this.children.length > 0) {
123
+ this.children[0].classList.add('first');
124
+ this.children[this.children.length - 1].classList.add('last');
125
+ }
123
126
  }
124
127
  initializeSelectedTab() {
125
128
  if (this.selectedIndex === undefined) {
@@ -143,12 +146,18 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
143
146
  this.showRightScroll = false;
144
147
  }
145
148
  }
149
+ applyCustomLeftPadding() {
150
+ if (this.navWrapperElement) {
151
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
152
+ }
153
+ }
146
154
  handleSlotChange() {
147
155
  this.initializeTabs();
148
156
  this.addEventListenerToTabs();
149
157
  this.initializeSelectedTab();
150
158
  this.updateScrollButtons();
151
159
  this.addResizeObserver();
160
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
152
161
  }
153
162
  connectedCallback() {
154
163
  this.initializeTabs();
@@ -164,9 +173,9 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
164
173
  this.removeEventListenerFromTabs();
165
174
  }
166
175
  render() {
167
- return (h(Host, { key: 'eaf7fd47f5f4132d7920d5deafb659828cab01e9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1fe0e2f45e6cf32175a3ef6c556aa63ba3b46b97', class: "wrapper", ref: (el) => {
176
+ return (h(Host, { key: 'fbb3223e9c88c43d51773210c5599cc644fc8df5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'dbcd27f8adba0b6ef38071346bf38eba6dcaedd1', class: "wrapper", ref: (el) => {
168
177
  this.navWrapperElement = el;
169
- } }, h("button", { key: 'fa71abb901a1c6ab70dde90d759d9aa537a72ec2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '0aff4668869fa761e03e8c81ed054561787beb49', name: "chevron_left", size: "20px" })), h("slot", { key: '169f8b9eb18a33fb4fc739863eaf4a730e066c83', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '9c9757d3c818191ce5aec5bbd64699c04dfc07db', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'e38ac8674d9e3e4aeaa67bd888cd411002353634', name: "chevron_right", size: "20px" })))));
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" })))));
170
179
  }
171
180
  get host() { return this; }
172
181
  static get watchers() { return {
@@ -177,6 +186,7 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
177
186
  "modeVariant": [1, "mode-variant"],
178
187
  "defaultSelectedIndex": [2, "default-selected-index"],
179
188
  "selectedIndex": [514, "selected-index"],
189
+ "leftPadding": [514, "left-padding"],
180
190
  "showLeftScroll": [32],
181
191
  "showRightScroll": [32],
182
192
  "selectTab": [64],
@@ -102,11 +102,18 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
102
102
  });
103
103
  this.storeLastCorrectValue(this.paginationValue);
104
104
  }
105
+ getStyles() {
106
+ const styles = {};
107
+ if (this.horizontalScrollWidth) {
108
+ styles.width = `${this.horizontalScrollWidth}px`;
109
+ }
110
+ return styles;
111
+ }
105
112
  render() {
106
- return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
113
+ return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
107
114
  'tds-table--compact': this.compactDesign,
108
115
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
109
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '6f6bfca5e7719084b2c4564b86806f6eb7867601', class: "tds-table__footer-row" }, h("td", { key: '2c4389dfa2c028798246a5c4d8b9bdcc05a780f2', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '0831e596963e20222feee940fb7d7d489f832b5e', class: "tds-table__pagination" }, h("div", { key: '1129e67d9b69b06a1fadde589f9ad37a1bd9fcca', class: "tds-table__row-selector" }), h("div", { key: '81e685df813d615027470d4c84c468bb2c5fccca', class: "tds-table__page-selector" }, h("input", { key: '4b116837ae02fcbf6b51b940587ae6159d40f5cb', 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: '927af4715b33f50679aef3ec5eccc5fd4044add7', class: "tds-table__footer-text" }, "of ", h("span", { key: '2d89421fbbbb0828623465f39edc506b9bfa82da' }, this.pages), " pages"), h("button", { key: '37916d812b7b4510b088b382f48b2d9f04d212b2', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'd89ac980f4c48fe6c14610f27ccc05e43994631e', name: "chevron_left", size: "20px" })), h("button", { key: '246b17fc6ff26e3830d5a359a4a5de844bc93a1b', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '6fa3441ed75b484974e50ee41ea1444bea7c30e2', name: "chevron_right", size: "20px" })))))))));
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" })))))))));
110
117
  }
111
118
  get host() { return this; }
112
119
  static get style() { return TdsTableFooterStyle0; }
@@ -61,11 +61,18 @@ const TdsTableToolbar$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableToolbar
61
61
  tdsTableSearchBar.classList.remove('tds-table__searchbar--active');
62
62
  }
63
63
  }
64
+ getStyles() {
65
+ const styles = {};
66
+ if (this.horizontalScrollWidth) {
67
+ styles.width = `${this.horizontalScrollWidth}px`;
68
+ }
69
+ return styles;
70
+ }
64
71
  render() {
65
- return (h(Host, { key: '9c864dc219ed17a50a4d84881c676e05b3e0ef92', class: {
72
+ return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
66
73
  'tds-table--compact': this.compactDesign,
67
74
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
68
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("div", { key: '035b5a5396344e3d682fb5370a4e1c0484045579', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'f1f5ba362eda8a0ae25fb63c89a25fe3606365c9', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'b94a83cf81e1aaa06d1b29a4e9207c99bccbbbbc', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '358798e484d1892acb6a4e7e3b30702002ba860d', class: "tds-table__searchbar" }, h("input", { key: 'f062bf19e13e312ee9089324bdfc6d4e2e9a1db4', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '9e874b39910b2d32b0a3193b14e01ed5f681b928', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '38d5a1b800d849b66a0c35d01d496fc4708f53c2', name: "search", size: "20px" })))), h("slot", { key: 'f362385a5719c51dbce2b213774b6397ede8714b', name: "end" })))));
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" })))));
69
76
  }
70
77
  get host() { return this; }
71
78
  static get style() { return TdsTableToolbarStyle0; }
@@ -51,6 +51,13 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
51
51
  });
52
52
  return selectedRowsData;
53
53
  }
54
+ getStyles() {
55
+ const styles = {};
56
+ if (this.horizontalScrollWidth) {
57
+ styles.width = `${this.horizontalScrollWidth}px`;
58
+ }
59
+ return styles;
60
+ }
54
61
  multiselectChanged(newValue) {
55
62
  this.emitInternalTdsPropChange('multiselect', newValue);
56
63
  }
@@ -81,11 +88,11 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
81
88
  }
82
89
  }
83
90
  render() {
84
- return (h(Host, { key: 'da929268a984ca0e81843132b2fafd6c79bec3b3', class: {
91
+ return (h(Host, { key: '580c1c90c9f4556b16037c3200ae739a891bea88', class: {
85
92
  'tds-table--responsive': this.responsive,
86
93
  'tds-mode-variant-primary': this.modeVariant === 'primary',
87
94
  'tds-mode-variant-secondary': this.modeVariant === 'secondary',
88
- } }, h("table", { key: '2ba662d97bc834a7a0d6d71338fc7c322bc15741', style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {}, class: {
95
+ } }, h("table", { key: 'f2e9d248c5e93e6d83cfcd74408f99ed54c1ae95', style: this.getStyles(), class: {
89
96
  'tds-table': true,
90
97
  'tds-table--compact': this.compactDesign,
91
98
  'tds-table--divider': this.verticalDividers,
@@ -96,7 +103,7 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
96
103
  'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
97
104
  'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
98
105
  'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
99
- } }, h("slot", { key: 'c95e71aeaac2f4378d440bb23ff890c9c4a76fdf' }))));
106
+ } }, h("slot", { key: '74edfe5bc755d4a7880b1368452f2906ebc5346a' }))));
100
107
  }
101
108
  get host() { return this; }
102
109
  static get watchers() { return {