@scania/tegel 1.13.0 → 1.13.2

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 (137) hide show
  1. package/dist/cjs/index-ca8040ad.js +8 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
  4. package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
  5. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
  8. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  9. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +2 -2
  10. package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -2
  11. package/dist/cjs/tds-popover-core.cjs.entry.js +5 -1
  12. package/dist/cjs/tds-popover-menu.cjs.entry.js +10 -2
  13. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +85 -0
  14. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +5 -5
  15. package/dist/cjs/tds-table-body-row.cjs.entry.js +2 -2
  16. package/dist/cjs/tds-table-footer.cjs.entry.js +2 -2
  17. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +85 -0
  18. package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
  19. package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
  20. package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
  21. package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
  22. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  23. package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  25. package/dist/cjs/tegel.cjs.js +1 -1
  26. package/dist/collection/collection-manifest.json +2 -0
  27. package/dist/collection/components/popover-canvas/popover-canvas.js +36 -2
  28. package/dist/collection/components/popover-core/popover-core.js +26 -1
  29. package/dist/collection/components/popover-menu/popover-menu.js +36 -2
  30. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +62 -0
  31. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +124 -0
  32. package/dist/collection/components/table/table-body-row/table-body-row.js +2 -2
  33. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +2 -0
  34. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +4 -4
  35. package/dist/collection/components/table/table-footer/table-footer.js +2 -2
  36. package/dist/collection/components/table/table-header/table-header.js +2 -2
  37. package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
  38. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +53 -0
  39. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +141 -0
  40. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  41. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  42. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  43. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  44. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  45. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  46. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
  47. package/dist/collection/components/text-field/text-field.js +5 -5
  48. package/dist/collection/components/textarea/textarea.js +3 -3
  49. package/dist/collection/components/toast/toast.js +3 -3
  50. package/dist/collection/components/toggle/toggle.js +1 -1
  51. package/dist/collection/components/tooltip/tooltip.js +2 -2
  52. package/dist/components/{p-82e02472.js → p-a9609e88.js} +14 -4
  53. package/dist/components/{p-f0240c00.js → p-dc461e7b.js} +7 -2
  54. package/dist/components/tds-folder-tab.js +2 -2
  55. package/dist/components/tds-folder-tabs.js +2 -2
  56. package/dist/components/tds-header-cell.js +1 -1
  57. package/dist/components/tds-header-dropdown.js +2 -2
  58. package/dist/components/tds-header-launcher.js +2 -2
  59. package/dist/components/tds-inline-tab.js +2 -2
  60. package/dist/components/tds-inline-tabs.js +2 -2
  61. package/dist/components/tds-navigation-tab.js +2 -2
  62. package/dist/components/tds-navigation-tabs.js +2 -2
  63. package/dist/components/tds-popover-canvas.js +1 -1
  64. package/dist/components/tds-popover-core.js +1 -1
  65. package/dist/components/tds-popover-menu.js +14 -4
  66. package/dist/components/tds-table-body-input-wrapper.d.ts +11 -0
  67. package/dist/components/tds-table-body-input-wrapper.js +112 -0
  68. package/dist/components/tds-table-body-row-expandable.js +5 -5
  69. package/dist/components/tds-table-body-row.js +2 -2
  70. package/dist/components/tds-table-footer.js +2 -2
  71. package/dist/components/tds-table-header-input-wrapper.d.ts +11 -0
  72. package/dist/components/tds-table-header-input-wrapper.js +112 -0
  73. package/dist/components/tds-table-header.js +2 -2
  74. package/dist/components/tds-table-toolbar.js +2 -2
  75. package/dist/components/tds-text-field.js +5 -5
  76. package/dist/components/tds-textarea.js +3 -3
  77. package/dist/components/tds-toast.js +3 -3
  78. package/dist/components/tds-toggle.js +1 -1
  79. package/dist/components/tds-tooltip.js +3 -3
  80. package/dist/esm/index-51d04e39.js +8 -0
  81. package/dist/esm/loader.js +1 -1
  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-popover-canvas.entry.js +10 -2
  90. package/dist/esm/tds-popover-core.entry.js +5 -1
  91. package/dist/esm/tds-popover-menu.entry.js +10 -2
  92. package/dist/esm/tds-table-body-input-wrapper.entry.js +81 -0
  93. package/dist/esm/tds-table-body-row-expandable.entry.js +5 -5
  94. package/dist/esm/tds-table-body-row.entry.js +2 -2
  95. package/dist/esm/tds-table-footer.entry.js +2 -2
  96. package/dist/esm/tds-table-header-input-wrapper.entry.js +81 -0
  97. package/dist/esm/tds-table-header.entry.js +2 -2
  98. package/dist/esm/tds-table-toolbar.entry.js +2 -2
  99. package/dist/esm/tds-text-field.entry.js +5 -5
  100. package/dist/esm/tds-textarea.entry.js +3 -3
  101. package/dist/esm/tds-toast.entry.js +3 -3
  102. package/dist/esm/tds-toggle.entry.js +1 -1
  103. package/dist/esm/tds-tooltip.entry.js +2 -2
  104. package/dist/esm/tegel.js +1 -1
  105. package/dist/tegel/p-0a4fe3db.entry.js +1 -0
  106. package/dist/tegel/{p-b6dd7392.entry.js → p-1ba22b41.entry.js} +1 -1
  107. package/dist/tegel/{p-f43bfa17.entry.js → p-2da2c193.entry.js} +1 -1
  108. package/dist/tegel/{p-a4bcae48.entry.js → p-3e859e33.entry.js} +1 -1
  109. package/dist/tegel/{p-bddc3443.entry.js → p-480c6c28.entry.js} +1 -1
  110. package/dist/tegel/p-4bab99d5.entry.js +1 -0
  111. package/dist/tegel/{p-456fa517.entry.js → p-56dfd78a.entry.js} +1 -1
  112. package/dist/tegel/{p-b5b95994.entry.js → p-578f6d73.entry.js} +1 -1
  113. package/dist/tegel/{p-f3876938.entry.js → p-5c0bb8e1.entry.js} +1 -1
  114. package/dist/tegel/{p-cf34d35e.entry.js → p-80edba0f.entry.js} +1 -1
  115. package/dist/tegel/p-9de400f4.entry.js +1 -0
  116. package/dist/tegel/{p-cb3bdd79.entry.js → p-a97dd06a.entry.js} +1 -1
  117. package/dist/tegel/{p-657273a9.entry.js → p-ac09f8d4.entry.js} +1 -1
  118. package/dist/tegel/{p-ddf91fe4.entry.js → p-ada411aa.entry.js} +1 -1
  119. package/dist/tegel/{p-2570419b.entry.js → p-b34cf70d.entry.js} +1 -1
  120. package/dist/tegel/{p-1ad6baed.entry.js → p-b8593b29.entry.js} +1 -1
  121. package/dist/tegel/{p-4af1e025.entry.js → p-c12eaac3.entry.js} +1 -1
  122. package/dist/tegel/{p-db7244a0.entry.js → p-cd289e17.entry.js} +1 -1
  123. package/dist/tegel/{p-4c0dcd84.entry.js → p-e237cdcc.entry.js} +1 -1
  124. package/dist/tegel/{p-fce4b1ee.entry.js → p-e6a5dda4.entry.js} +1 -1
  125. package/dist/tegel/p-f0d46e61.entry.js +1 -0
  126. package/dist/tegel/{p-d14009a8.entry.js → p-f823777e.entry.js} +1 -1
  127. package/dist/tegel/tegel.css +3 -3
  128. package/dist/tegel/tegel.esm.js +1 -1
  129. package/dist/types/components/popover-canvas/popover-canvas.d.ts +3 -0
  130. package/dist/types/components/popover-core/popover-core.d.ts +2 -0
  131. package/dist/types/components/popover-menu/popover-menu.d.ts +3 -0
  132. package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +16 -0
  133. package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +16 -0
  134. package/dist/types/components.d.ts +56 -0
  135. package/package.json +39 -29
  136. package/dist/tegel/p-3534e1a7.entry.js +0 -1
  137. package/dist/tegel/p-ba079890.entry.js +0 -1
@@ -58,12 +58,12 @@ export class TdsToast {
58
58
  const usesHeaderSlot = hasSlot('header', this.host);
59
59
  const usesSubheaderSlot = hasSlot('subheader', this.host);
60
60
  const usesActionsSlot = hasSlot('actions', this.host);
61
- return (h(Host, { key: 'c6d8408449213af94bdcb52dc5d8433770baea50', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
61
+ return (h(Host, { key: 'f0ddc729628a45f868868f2b265f31d7df9a0411', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
62
62
  hide: this.hidden,
63
63
  show: !this.hidden,
64
- } }, h("div", { key: '0afa424fe1601689702a252043d5f779c7514a42', class: `
64
+ } }, h("div", { key: '73e3f624e617544d84ec2c7306ace9fb990070b9', class: `
65
65
  wrapper
66
- ${this.variant}` }, h("tds-icon", { key: '901b872f4a8f7cbb9c322f3ef61c163ec8abe5f7', name: this.getIconName(), size: "20px" }), h("div", { key: 'bff3f23b0635157ad275dcaad97215e86e45f44b', class: `content` }, h("div", { key: 'c806be8599140274994ec5fb7a9456f557563cec', class: "header-subheader" }, this.header && h("div", { key: '03f02a55b39fbc5ee137ad4204ffd7f0f89379e0', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '63058b8052c4a5fe943a3dc66dcfba9374cca63c', name: "header" }), this.subheader && h("div", { key: '706453138001deee57287c380b7930ba17604645', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '0faac5d6021b3d36c6b2902494a57635d73cd837', name: "subheader" })), usesActionsSlot && (h("div", { key: '35c67082ad0016816916e87aca2027d90bd23c63', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '88aa252c50e61103c1762a34b259bd9750a8b565', name: "actions" })))), this.closable && (h("button", { key: '33b1822b7e591f1c89bc8bbad56fd3fccd554934', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: 'e414151a1b74f6c03efb264a9f5129c97e7083ff', name: "cross", size: "20px" }))))));
66
+ ${this.variant}` }, h("tds-icon", { key: 'bbeab9085851de6cc3d870421d8ea18c7e15471a', name: this.getIconName(), size: "20px" }), h("div", { key: '45b568761c09added6f0c3815d518fb541ba077a', class: `content` }, h("div", { key: '65aaac22e0b6439b3975e465493bc59e01ac7131', class: "header-subheader" }, this.header && h("div", { key: 'cd856ec5c2c118c52d942010f40cd90499f735b7', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '96157619f2e4fc59cd197bffb948cd4844d997b1', name: "header" }), this.subheader && h("div", { key: '3ba6782ba25b311d1c57b76791c0055db3f92ec2', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'e820491ceaa28771acd2b7661c5ddf7d9574a492', name: "subheader" })), usesActionsSlot && (h("div", { key: '72b25af2d7efbbb54b4f349c038c7efb684086f6', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '8c534d3b51d9f8c30148c0f601613d3395b8930e', name: "actions" })))), this.closable && (h("button", { key: 'a81bc7b2836bbec456260e80a1eb6e9d345ccdcf', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '7988501b679a147d62f6879db443bbfc64211871', name: "cross", size: "20px" }))))));
67
67
  }
68
68
  static get is() { return "tds-toast"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -29,7 +29,7 @@ export class TdsToggle {
29
29
  };
30
30
  }
31
31
  render() {
32
- return (h("div", { key: '0d243a59400988863389f3a66c847bd0fb848844', class: "tds-toggle" }, this.headline && (h("div", { key: 'a8eb6d04f1dcf6ba4a646b2fef55b991d71cd0c1', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '1e736480e3449364a3de9911d991271c12770471', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: 'e71e01203291273241e8c2331fc0921c37f3ca76', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: '236d8bbf052973f056c09f033d57fbe3c8f4b2e8', name: "label" }))));
32
+ return (h("div", { key: '125bc9f156074abd27fcf74c67f2af2e26998741', class: "tds-toggle" }, this.headline && (h("div", { key: 'a72a46de4f01ebb31961f3c348329aed34b71294', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '3ca94acbcd90d291e1b77ad8680ccd058b242023', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '77cccf34c1737b5a55f6903f20a68bd7f109b2ed', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: 'ad408d7719105369ca6e1b7465564c1126785f18', name: "label" }))));
33
33
  }
34
34
  static get is() { return "tds-toggle"; }
35
35
  static get encapsulation() { return "scoped"; }
@@ -51,7 +51,7 @@ export class TdsTooltip {
51
51
  }
52
52
  render() {
53
53
  var _a;
54
- return (h(Host, { key: '2e3b4815fdae077fa27e37cbec9efb357667e031' }, h("tds-popover-core", Object.assign({ key: '807cdcd91ef5f67082ddd3a7a0d5cc5cac20882e' }, this.inheritedAttributes, { class: {
54
+ return (h(Host, { key: '93961300d93daf9eb0fa1f15e59c6bdfbea5f77b' }, h("tds-popover-core", Object.assign({ key: '1d2c6b17012d5040632df84b221eac247e890696' }, this.inheritedAttributes, { class: {
55
55
  'tds-tooltip': true,
56
56
  [`tds-tooltip-${this.border}`]: true,
57
57
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -60,7 +60,7 @@ export class TdsTooltip {
60
60
  this.show = true;
61
61
  }, onInternalTdsClose: () => {
62
62
  this.show = false;
63
- } }), this.text, h("slot", { key: 'cf99ac4955c0f29722f5fd7ed1f6f22f22c22d20' }))));
63
+ } }), this.text, h("slot", { key: 'd5a4357f2875a0f5f9b958b26adb8cc6f794e900' }))));
64
64
  }
65
65
  static get is() { return "tds-tooltip"; }
66
66
  static get encapsulation() { return "scoped"; }
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { i as inheritAttributes } from './p-3fe9cbbf.js';
3
- import { d as defineCustomElement$1 } from './p-f0240c00.js';
3
+ import { d as defineCustomElement$1 } from './p-dc461e7b.js';
4
4
 
5
5
  const popoverCanvasCss = ".tds-popover-canvas.sc-tds-popover-canvas{box-sizing:border-box;display:inline-block;color:var(--tds-popover-canvas-color);background-color:var(--tds-popover-canvas-background);box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:900}.tds-popover-canvas.sc-tds-popover-canvas *.sc-tds-popover-canvas{box-sizing:border-box}";
6
6
  const TdsPopoverCanvasStyle0 = popoverCanvasCss;
@@ -17,16 +17,24 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
17
17
  this.offsetSkidding = 0;
18
18
  this.offsetDistance = 8;
19
19
  this.modifiers = [];
20
+ this.childRef = undefined;
21
+ }
22
+ /** Property for closing popover programmatically */
23
+ async close() {
24
+ var _a;
25
+ (_a = this.childRef) === null || _a === void 0 ? void 0 : _a.close();
20
26
  }
21
27
  componentWillLoad() {
22
28
  this.inheritedAttributes = inheritAttributes(this.host, ['style', 'class']);
23
29
  }
24
30
  render() {
25
31
  var _a;
26
- return (h(Host, { key: '5153aa04024220ad4288ed437138b93d74f80a6a' }, h("tds-popover-core", Object.assign({ key: '235ec48c061014a672e94b747f27027447bdf12e' }, this.inheritedAttributes, { class: {
32
+ return (h(Host, { key: '6585164269ddef7083e5aed2bcfa4ea5ab7d32ba' }, h("tds-popover-core", Object.assign({ key: '9470ac2faa94611ece2c9394717a7bb9d63eb5b1' }, this.inheritedAttributes, { class: {
27
33
  'tds-popover-canvas': true,
28
34
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
29
- }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click' }), h("div", { key: 'e9f2e8770c67fec0702cfbb4f251a40d11068c20' }, h("slot", { key: '317abb807c6450672dd33a28f4b9e1b7ded381a6' })))));
35
+ }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
36
+ this.childRef = el;
37
+ } }), h("div", { key: '330a63a0ef5c9f057d877dae9977b8bc25987771' }, h("slot", { key: '38787385e51260e4a140f83d5eb22f03deb6e30e' })))));
30
38
  }
31
39
  get host() { return this; }
32
40
  static get style() { return TdsPopoverCanvasStyle0; }
@@ -37,7 +45,9 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
37
45
  "placement": [1],
38
46
  "offsetSkidding": [2, "offset-skidding"],
39
47
  "offsetDistance": [2, "offset-distance"],
40
- "modifiers": [16]
48
+ "modifiers": [16],
49
+ "childRef": [32],
50
+ "close": [64]
41
51
  }]);
42
52
  function defineCustomElement() {
43
53
  if (typeof customElements === "undefined") {
@@ -1839,6 +1839,10 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
1839
1839
  this.target = undefined;
1840
1840
  this.isShown = false;
1841
1841
  }
1842
+ /** Property for closing popover programmatically */
1843
+ async close() {
1844
+ this.setIsShown(false);
1845
+ }
1842
1846
  onAnyClick(event) {
1843
1847
  if (this.trigger === 'click' && this.isShown && this.show === null) {
1844
1848
  // Source: https://lamplightdev.com/blog/2021/04/10/how-to-detect-clicks-outside-of-a-web-component/
@@ -1950,7 +1954,7 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
1950
1954
  if (this.autoHide) {
1951
1955
  hostStyle = { display: this.isShown ? 'block' : 'none' };
1952
1956
  }
1953
- return (h(Host, { key: 'd6d0d9c0d7268b3cf65f839f6908e881898cb303', style: hostStyle, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '8e61239ce95b4c2d4743c72659314a953601c3be' })));
1957
+ return (h(Host, { key: '7829c25ef7722b84b829c59135df59cafd745338', style: hostStyle, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '0cf6fceefad0557bce25ac728d36ff177794ef96' })));
1954
1958
  }
1955
1959
  get host() { return this; }
1956
1960
  static get watchers() { return {
@@ -1971,7 +1975,8 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
1971
1975
  "renderedShowValue": [32],
1972
1976
  "popperInstance": [32],
1973
1977
  "target": [32],
1974
- "isShown": [32]
1978
+ "isShown": [32],
1979
+ "close": [64]
1975
1980
  }, [[8, "click", "onAnyClick"], [8, "internalTdsShow", "onTdsShow"]], {
1976
1981
  "show": ["onShowChange"],
1977
1982
  "referenceEl": ["onReferenceElChanged"],
@@ -21,8 +21,8 @@ const TdsFolderTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsFolderTab exten
21
21
  this.selected = selected;
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: '101be5c67007e8f1f6e35527ac929a774ae58495', role: "listitem" }, h("div", { key: 'e1d6ebec7a43f096fd635dabd02639a37c4dfc30', class: `${this.disabled ? 'disabled' : ''}
25
- ${this.selected ? 'selected' : ''}`, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '4e4b490dea87f381ed8ff0695d4128b9e62c0b27' }))));
24
+ return (h(Host, { key: '3c4a3fe10ff0011f1f9619232c2216cbfcbfb148', role: "listitem" }, h("div", { key: '61fb49491d4f0c2098277b33f13c41ca34782563', class: `${this.disabled ? 'disabled' : ''}
25
+ ${this.selected ? 'selected' : ''}`, style: { width: `${this.tabWidth}px` } }, h("slot", { key: 'f57d05129e3185aa36887a84ff980b8a44ec20a4' }))));
26
26
  }
27
27
  static get style() { return TdsFolderTabStyle0; }
28
28
  }, [1, "tds-folder-tab", {
@@ -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: '8c90acd4a7f46a37ffabb568f4c37e183140e953', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '9184c054af4bc54f68e896f7b17e86cd3454cd6e', class: "wrapper", ref: (el) => {
169
+ return (h(Host, { key: '748bacbb3d58d37735385a8c926dacb637d8eff1', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4c4f764a6a8c8a095bd1d030ef85a34014d8d284', class: "wrapper", ref: (el) => {
170
170
  this.navWrapperElement = el;
171
- } }, h("button", { key: 'd7f0043b76715faa3144d775d08139d2da02212f', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: 'c88e7ad84aacef16bf34811f132ffc0d8657fa23', name: "chevron_left", size: "20px" })), h("slot", { key: 'b8dd6342cb887b85304b238346818ed40b9bec10', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'c2c34ad8d08ef45e6bb3e7b5c39735f3674957d8', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '1ddb3be79edec73d684b3f74d1b3d8292ba08514', name: "chevron_right", size: "20px" })))));
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" })))));
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: 'bf923a391d612d2167d45c6b4a38f483b03893c0', class: {
117
+ return (h(Host, { key: '6a051465b3a5af5460f7c5ac112798b521f9b4a8', 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,
@@ -3,8 +3,8 @@ import { g as generateUniqueId } from './p-11648030.js';
3
3
  import { d as defineCustomElement$6 } from './p-30de8ac4.js';
4
4
  import { d as defineCustomElement$5 } from './p-0676aa23.js';
5
5
  import { d as defineCustomElement$4 } from './p-3e74be57.js';
6
- import { d as defineCustomElement$3 } from './p-82e02472.js';
7
- import { d as defineCustomElement$2 } from './p-f0240c00.js';
6
+ import { d as defineCustomElement$3 } from './p-a9609e88.js';
7
+ import { d as defineCustomElement$2 } from './p-dc461e7b.js';
8
8
 
9
9
  const headerDropdownCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host{height:var(--tds-header-height);position:relative}:host .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-top-right-radius:0;border-top-left-radius:0}:host .menu:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .menu::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .menu::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .menu::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .menu::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .menu{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}:host .state-open .dropdown-icon{transform:rotatetds-z-index(180deg)}:host .state-open .button{position:relative;z-index:901}";
10
10
  const TdsHeaderDropdownStyle0 = headerDropdownCss;
@@ -5,8 +5,8 @@ import { d as defineCustomElement$7 } from './p-30de8ac4.js';
5
5
  import { d as defineCustomElement$6 } from './p-0676aa23.js';
6
6
  import { d as defineCustomElement$5 } from './p-8e74bb22.js';
7
7
  import { d as defineCustomElement$4 } from './p-3e74be57.js';
8
- import { d as defineCustomElement$3 } from './p-82e02472.js';
9
- import { d as defineCustomElement$2 } from './p-f0240c00.js';
8
+ import { d as defineCustomElement$3 } from './p-a9609e88.js';
9
+ import { d as defineCustomElement$2 } from './p-dc461e7b.js';
10
10
 
11
11
  const headerLauncherCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host .wrapper{height:var(--tds-header-height);position:relative}:host .wrapper .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-radius:0}:host .wrapper .menu:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .wrapper .menu::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .wrapper .menu::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .wrapper .menu::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .wrapper .menu::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .wrapper .menu{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}@media all and (max-width: 384px){:host .wrapper .menu{width:100vw}}:host .wrapper.state-list-type-menu .menu{height:calc(100vh - var(--tds-header-height))}:host .wrapper.state-open .button{position:relative;z-index:901}";
12
12
  const TdsHeaderLauncherStyle0 = headerLauncherCss;
@@ -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: 'd3603943b36ee39920c10699008d81fa3752918d', role: "listitem" }, h("div", { key: 'a36bc8b02787dc0aac7bc048520c9721762b7acf', class: `inline-tab-item ${this.selected ? 'selected' : ''}
20
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '7c46252d0119b406cce0395a4a3112c781f40330' }))));
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' }))));
21
21
  }
22
22
  static get style() { return TdsInlineTabStyle0; }
23
23
  }, [1, "tds-inline-tab", {
@@ -166,9 +166,9 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
166
166
  this.removeEventListenerFromTabs();
167
167
  }
168
168
  render() {
169
- return (h(Host, { key: '555e316c060f61dc63109016fac6905b228e6bee', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1c44ccc797541d755c9ce0ead94b9a032afa5c09', class: "wrapper", ref: (el) => {
169
+ return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
170
170
  this.navWrapperElement = el;
171
- } }, h("button", { key: 'd09970fd677477d6bd28b97243ed867b5aa72b71', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '035eebcadfeba3ce8ee90034f709e92cfbd87152', name: "chevron_left", size: "20px" })), h("slot", { key: 'effa5144b2fd95de8fffa50146cd1c87dd010776', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '3c889a25b419fc4b5eb0eafef16800bc5ae72f78', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '57bb719894cfc20931c599c810bb0abec0273520', name: "chevron_right", size: "20px" })))));
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" })))));
172
172
  }
173
173
  get host() { return this; }
174
174
  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: '43185969215e564763f8f0a7b729fd9fad61f711', role: "listitem" }, h("div", { key: '4c7e0bf7cbee825fb685c6cb2f91c416f16b1db3', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
20
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '3ca45a310141c7eb3c9c2f725058a5ab14136d63' }))));
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' }))));
21
21
  }
22
22
  static get style() { return TdsNavigationTabStyle0; }
23
23
  }, [1, "tds-navigation-tab", {
@@ -164,9 +164,9 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
164
164
  this.removeEventListenerFromTabs();
165
165
  }
166
166
  render() {
167
- return (h(Host, { key: 'fea2449aaf66f65617b3752cbfc7f26aaa4804a1', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '9281904c74032d5b80b27c0b7d8fc1296403dae9', class: "wrapper", ref: (el) => {
167
+ return (h(Host, { key: 'eaf7fd47f5f4132d7920d5deafb659828cab01e9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1fe0e2f45e6cf32175a3ef6c556aa63ba3b46b97', class: "wrapper", ref: (el) => {
168
168
  this.navWrapperElement = el;
169
- } }, h("button", { key: '5a6ba7233ed7de5cda5dc346c28a4e492be7641c', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '49963f53d5a4eb603750128f3e9d172654c59ef2', name: "chevron_left", size: "20px" })), h("slot", { key: 'a1eac2f21563c0b4995c87693da1cf6bd6fe7a83', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6c141970ae26167f2f6ce7f0f4205fbab5f61faa', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'c3dece9ef9a120ddce0a16fea959e285b8e308fe', name: "chevron_right", size: "20px" })))));
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" })))));
170
170
  }
171
171
  get host() { return this; }
172
172
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { T as TdsPopoverCanvas$1, d as defineCustomElement$1 } from './p-82e02472.js';
1
+ import { T as TdsPopoverCanvas$1, d as defineCustomElement$1 } from './p-a9609e88.js';
2
2
 
3
3
  const TdsPopoverCanvas = TdsPopoverCanvas$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { T as TdsPopoverCore$1, d as defineCustomElement$1 } from './p-f0240c00.js';
1
+ import { T as TdsPopoverCore$1, d as defineCustomElement$1 } from './p-dc461e7b.js';
2
2
 
3
3
  const TdsPopoverCore = TdsPopoverCore$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { i as inheritAttributes } from './p-3fe9cbbf.js';
3
- import { d as defineCustomElement$2 } from './p-f0240c00.js';
3
+ import { d as defineCustomElement$2 } from './p-dc461e7b.js';
4
4
 
5
5
  const popoverMenuCss = ".tds-popover-menu.sc-tds-popover-menu{box-sizing:border-box;overflow:hidden;width:160px;background-color:var(--tds-popover-menu-background);padding:16px 6px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:900}.tds-popover-menu.sc-tds-popover-menu *.sc-tds-popover-menu{box-sizing:border-box}.tds-popover-menu.fluid-width.sc-tds-popover-menu{width:unset}tds-popover-core.sc-tds-popover-menu{padding:6px 0 !important}.sc-tds-popover-menu-s>tds-divider{display:block;padding:6px !important}";
6
6
  const TdsPopoverMenuStyle0 = popoverMenuCss;
@@ -17,17 +17,25 @@ const TdsPopoverMenu$1 = /*@__PURE__*/ proxyCustomElement(class TdsPopoverMenu e
17
17
  this.offsetSkidding = 0;
18
18
  this.offsetDistance = 8;
19
19
  this.fluidWidth = false;
20
+ this.childRef = undefined;
21
+ }
22
+ /** Property for closing popover programmatically */
23
+ async close() {
24
+ var _a;
25
+ (_a = this.childRef) === null || _a === void 0 ? void 0 : _a.close();
20
26
  }
21
27
  componentWillLoad() {
22
28
  this.inheritedAttributes = inheritAttributes(this.host, ['style', 'class']);
23
29
  }
24
30
  render() {
25
31
  var _a;
26
- return (h(Host, { key: '47943a2179fab944d4cc73f169aec2dc8f2a8c53' }, h("tds-popover-core", { key: 'a85fd5e4088454a894bc0ad61be796f07352189f', class: {
32
+ return (h(Host, { key: '36c12148ce4507dd4b157fff5be30760d2374bdd' }, h("tds-popover-core", { key: '92d5abfd7e7213dcb22c92fa401a21dfeef76edd', class: {
27
33
  'tds-popover-menu': true,
28
34
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
29
35
  'fluid-width': this.fluidWidth,
30
- }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance }, h("div", { key: 'bd29b75fded2138f37aa48f2c4cb4008817c6fe5', role: "list" }, h("slot", { key: '807d404d14fcac1236995a53df36840170643208' })))));
36
+ }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
37
+ this.childRef = el;
38
+ } }, h("div", { key: '6b3a893d1d0a9c32a3846c7216a4fdac92a4222c', role: "list" }, h("slot", { key: 'cae075f5e187b5f59638f6f2a9ff8c38e716bcbb' })))));
31
39
  }
32
40
  get host() { return this; }
33
41
  static get style() { return TdsPopoverMenuStyle0; }
@@ -38,7 +46,9 @@ const TdsPopoverMenu$1 = /*@__PURE__*/ proxyCustomElement(class TdsPopoverMenu e
38
46
  "placement": [1],
39
47
  "offsetSkidding": [2, "offset-skidding"],
40
48
  "offsetDistance": [2, "offset-distance"],
41
- "fluidWidth": [4, "fluid-width"]
49
+ "fluidWidth": [4, "fluid-width"],
50
+ "childRef": [32],
51
+ "close": [64]
42
52
  }]);
43
53
  function defineCustomElement$1() {
44
54
  if (typeof customElements === "undefined") {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TdsTableBodyInputWrapper extends Components.TdsTableBodyInputWrapper, HTMLElement {}
4
+ export const TdsTableBodyInputWrapper: {
5
+ prototype: TdsTableBodyInputWrapper;
6
+ new (): TdsTableBodyInputWrapper;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,112 @@
1
+ import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
+ import { d as defineCustomElement$2 } from './p-3e74be57.js';
3
+
4
+ const tableBodyInputWrapperCss = ":host{position:relative}:host(.focused-input-wrapper) tds-icon{display:inline-block}:host(.show-icon) ::slotted(input){padding-right:var(--tds-spacing-element-24)}:host(:hover) tds-icon{display:inline-block}:host(:hover) ::slotted(input:not(:focus)){background-color:var(--tds-table-input-background-hover)}tds-icon.edit-icon{display:none;position:absolute;right:10px;top:1px;pointer-events:none;cursor:pointer}::slotted(input){box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding-left:var(--tds-spacing-element-16);padding-right:var(--tds-spacing-element-16);color:var(--tds-table-color);background-color:transparent;height:48px;border-radius:0;border:0;border-bottom:2px solid transparent;width:100%;cursor:pointer}::slotted(input)::placeholder{color:var(--tds-table-color)}::slotted(input:disabled){background-color:var(--tds-table-input-background-disabled)}::slotted(input:focus){outline:none;background-color:var(--tds-table-input-background-focus);border-bottom:2px solid var(--tds-text-field-bar)}:host(.tds-table__compact) ::slotted(input){height:32px;}";
5
+ const TdsTableBodyInputWrapperStyle0 = tableBodyInputWrapperCss;
6
+
7
+ const relevantTableProps = ['compactDesign'];
8
+ const TdsTableBodyInputWrapper$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyInputWrapper extends H {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.__attachShadow();
13
+ this.showIcon = true;
14
+ this.renderSlot = true;
15
+ this.inputFocused = false;
16
+ this.compactDesign = false;
17
+ this.tableId = '';
18
+ }
19
+ internalTdsPropChangeListener(event) {
20
+ if (this.tableId === event.detail.tableId) {
21
+ event.detail.changed
22
+ .filter((changedProp) => relevantTableProps.includes(changedProp))
23
+ .forEach((changedProp) => {
24
+ if (typeof this[changedProp] === 'undefined') {
25
+ console.error(`Table prop is not supported: ${changedProp}`); // More informative error
26
+ throw new Error(`Table prop is not supported: ${changedProp}`);
27
+ }
28
+ this[changedProp] = event.detail[changedProp];
29
+ });
30
+ }
31
+ }
32
+ connectedCallback() {
33
+ const tableEl = this.host.closest('tds-table');
34
+ if (tableEl) {
35
+ this.tableId = tableEl.getAttribute('table-id');
36
+ }
37
+ else {
38
+ console.error('Failed to find parent tds-table element.');
39
+ }
40
+ }
41
+ componentWillLoad() {
42
+ const tableEl = this.host.closest('tds-table');
43
+ if (tableEl) {
44
+ relevantTableProps.forEach((tablePropName) => {
45
+ this[tablePropName] = tableEl[tablePropName];
46
+ });
47
+ }
48
+ else {
49
+ console.error('Failed to find parent tds-table element.');
50
+ }
51
+ }
52
+ handleSlotChange() {
53
+ this.validateSlot();
54
+ }
55
+ validateSlot() {
56
+ const children = Array.from(this.host.children).filter((element) => element.tagName === 'INPUT');
57
+ if (children.length !== 1) {
58
+ console.warn('TABLE-BODY-INPUT-WRAPPER: Wrapper only accepts input as children.');
59
+ this.renderSlot = false;
60
+ }
61
+ else {
62
+ if (!this.renderSlot)
63
+ this.renderSlot = true;
64
+ const input = children[0];
65
+ input.addEventListener('focus', () => {
66
+ this.inputFocused = true;
67
+ });
68
+ input.addEventListener('blur', () => {
69
+ this.inputFocused = false;
70
+ });
71
+ }
72
+ }
73
+ render() {
74
+ return (h(Host, { key: 'c40a17a264d914934ea4f0e5c4a27b58f06d8055', class: {
75
+ 'focused-input-wrapper': this.inputFocused,
76
+ 'show-icon': this.showIcon,
77
+ 'tds-table__compact': this.compactDesign,
78
+ } }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { class: "edit-icon", slot: "icon", size: "16px", name: "edit" })) : null));
79
+ }
80
+ get host() { return this; }
81
+ static get style() { return TdsTableBodyInputWrapperStyle0; }
82
+ }, [1, "tds-table-body-input-wrapper", {
83
+ "showIcon": [4, "show-icon"],
84
+ "renderSlot": [32],
85
+ "inputFocused": [32],
86
+ "compactDesign": [32],
87
+ "tableId": [32]
88
+ }, [[16, "internalTdsTablePropChange", "internalTdsPropChangeListener"]]]);
89
+ function defineCustomElement$1() {
90
+ if (typeof customElements === "undefined") {
91
+ return;
92
+ }
93
+ const components = ["tds-table-body-input-wrapper", "tds-icon"];
94
+ components.forEach(tagName => { switch (tagName) {
95
+ case "tds-table-body-input-wrapper":
96
+ if (!customElements.get(tagName)) {
97
+ customElements.define(tagName, TdsTableBodyInputWrapper$1);
98
+ }
99
+ break;
100
+ case "tds-icon":
101
+ if (!customElements.get(tagName)) {
102
+ defineCustomElement$2();
103
+ }
104
+ break;
105
+ } });
106
+ }
107
+ defineCustomElement$1();
108
+
109
+ const TdsTableBodyInputWrapper = TdsTableBodyInputWrapper$1;
110
+ const defineCustomElement = defineCustomElement$1;
111
+
112
+ export { TdsTableBodyInputWrapper, defineCustomElement };
@@ -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{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: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)}";
5
5
  const TdsTableBodyRowExpandableStyle0 = tableBodyRowExpandableCss;
6
6
 
7
7
  const relevantTableProps = [
@@ -86,18 +86,18 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
86
86
  this.sendValue();
87
87
  }
88
88
  render() {
89
- return (h(Host, { key: '542357b920775b6abce4e3b2dbe03dee5303e2ee', class: {
89
+ return (h(Host, { key: 'cd23997b2d0b659691199b0f6a7be6aa51689ee4', class: {
90
90
  'tds-table__row': true,
91
91
  'tds-table__row-expand--active': this.isExpanded,
92
92
  'tds-table__compact': this.compactDesign,
93
93
  'tds-table--divider': this.verticalDividers,
94
- } }, h("tr", { key: 'ef75d8bfb300fa32185bf65059c7c7303e0796fc', class: {
94
+ } }, h("tr", { key: 'a3fec49a0b97a35f61db7c31dfc023ba3acebd86', class: {
95
95
  'tds-table__row': true,
96
96
  'tds-table__row--expanded': this.isExpanded,
97
- }, part: "row" }, h("td", { key: '5a6a5e6aa793447f4d7f667fb3aa44c10d5e9aa5', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: 'ac9258f6922efb133d9b3f676271fff8309b81f8', class: "tds-table__expand-control-container" }, h("input", { key: '023c0ebba1845e376993ab2761cedc7fb2123d19', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: 'bbdc01972b2cdc61b59376fd60ae26f377c4274f', class: "tds-expendable-row-icon" }, h("svg", { key: '4cc97d85f6a43814746d4833a684cf3d9aa78dcf', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '7a8cdff1044b0edbc68ff781ee1bf7efb1d4dd02', "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: '01393ce1817a0aadb468fce0abac6ca3c0fc5e69' })), h("tr", { key: '34a33b5edcb395a11870f2fb3dd977064328d72c', class: {
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
98
  'tds-table__row-expand': true,
99
99
  'tds-table__row-expand--expanded': this.isExpanded,
100
- }, part: "expand-row" }, h("td", { key: '0b2eceb0c5a81337de2ac40eb324d198023790f4', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: 'c38cffba7013bd8f7bafd4e443b9550c09d0cbe3', name: "expand-row" })))));
100
+ }, part: "expand-row" }, h("td", { key: 'f0c746d12fae92eae3e6bf9651c826fb3aacbefe', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: '0a9e454379a7a6a72b3d6ea33a66a4aaaac09e8f', name: "expand-row" })))));
101
101
  }
102
102
  get host() { return this; }
103
103
  static get watchers() { return {
@@ -54,12 +54,12 @@ const TdsTableBodyRow$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyRow
54
54
  });
55
55
  }
56
56
  render() {
57
- return (h(Host, { key: '568df05f38e664b80bc4f8a79f5fa6036b0367f9', class: {
57
+ return (h(Host, { key: '2b99a5336354cb5e7e2e7ef9c81bac76a55c6895', class: {
58
58
  'tds-table__row': true,
59
59
  'tds-table__row--selected': this.selected,
60
60
  'tds-table__compact': this.compactDesign,
61
61
  'tds-table--divider': this.verticalDividers,
62
- } }, this.multiselect && (h("td", { key: '936bbaf30630ac9b16cc35234bc10bb38acd5f6b', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '44f6fdd316079ed175bbc609f65d447a52d11b9a', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '1b71459782d2a14682f7b98fef03c6924753f111' })));
62
+ } }, this.multiselect && (h("td", { key: '049e91ea474a539b6fbe344db4aed9de42297f3d', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '2af9307e3143db71cae028c1cc2116382b20f4c9', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '2eff0d398eb53934ca0b152d25422a5febbbffbb' })));
63
63
  }
64
64
  get host() { return this; }
65
65
  static get style() { return TdsTableBodyRowStyle0; }
@@ -103,10 +103,10 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
103
103
  this.storeLastCorrectValue(this.paginationValue);
104
104
  }
105
105
  render() {
106
- return (h(Host, { key: '5ad60a88018eb67ce0e6a1c11b31a4ab49d28103', class: {
106
+ return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
107
107
  'tds-table--compact': this.compactDesign,
108
108
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
109
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: 'c3df22ed332b3e0b5964a40b3ef6e2fb9e7847bb', class: "tds-table__footer-row" }, h("td", { key: '9ba6be5a63bc5150312e07baba026d853767c171', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '5a772abf14cee6aa8143bf20628e576bf6294707', class: "tds-table__pagination" }, h("div", { key: '26cba6033dc7089cdfe044f457b76f869b103cab', class: "tds-table__row-selector" }), h("div", { key: 'bde7a9338de67b94d8d05908d91ef14ba0aabdb5', class: "tds-table__page-selector" }, h("input", { key: '00af6505e27bf4ada9af7baa0c3cea77f38c6eab', 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: '420147b53d1a37d44b66153e6ea39212bc60a09d', class: "tds-table__footer-text" }, "of ", h("span", { key: '94659781759ca4047c6438b384e572f29391f08b' }, this.pages), " pages"), h("button", { key: '1f19864726a3b9e899f9d4541de07ec588ec59da', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '2767b545e48df7618b3f853cd3e51b16058574a3', name: "chevron_left", size: "20px" })), h("button", { key: 'cb3f308dc45e176c98b92a9050b542e4d4de83df', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '28037a03f7933d2502e6f955c0a07861d5937fa0', name: "chevron_right", size: "20px" })))))))));
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" })))))))));
110
110
  }
111
111
  get host() { return this; }
112
112
  static get style() { return TdsTableFooterStyle0; }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TdsTableHeaderInputWrapper extends Components.TdsTableHeaderInputWrapper, HTMLElement {}
4
+ export const TdsTableHeaderInputWrapper: {
5
+ prototype: TdsTableHeaderInputWrapper;
6
+ new (): TdsTableHeaderInputWrapper;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;