@scania/tegel 1.31.0 → 1.31.1-asset-load-order-local-first.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
  2. package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
  3. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  6. package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  8. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -4
  9. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-table-toolbar.cjs.entry.js +3 -3
  11. package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
  12. package/dist/cjs/tds-textarea.cjs.entry.js +4 -4
  13. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  14. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  15. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  16. package/dist/collection/assets/logos/scania-logotype.png +0 -0
  17. package/dist/collection/assets/logos/scania-logotype.svg +2355 -0
  18. package/dist/collection/assets/logos/scania-wordmark-white.png +0 -0
  19. package/dist/collection/assets/logos/scania-wordmark.png +0 -0
  20. package/dist/collection/assets/logos/scania-wordmark.svg +17 -0
  21. package/dist/collection/components/footer/footer.css +1 -1
  22. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +1 -1
  23. package/dist/collection/components/popover-core/tds-popover-core.css +0 -8307
  24. package/dist/collection/components/slider/slider-stories-setup.js +235 -0
  25. package/dist/collection/components/table/table-toolbar/table-toolbar.css +6 -1
  26. package/dist/collection/components/table/table-toolbar/table-toolbar.js +3 -2
  27. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  28. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  29. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  30. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  31. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  32. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -4
  33. package/dist/collection/components/text-field/text-field.js +5 -5
  34. package/dist/collection/components/textarea/textarea.js +4 -4
  35. package/dist/collection/components/toast/toast.js +3 -3
  36. package/dist/collection/components/toggle/toggle.js +2 -2
  37. package/dist/collection/components/tooltip/tooltip.js +2 -2
  38. package/dist/collection/stories/formatHtmlPreview.js +10 -0
  39. package/dist/components/{p-4420365f.js → p-9cee9d7f.js} +3 -3
  40. package/dist/components/p-d3866be7.js +2098 -0
  41. package/dist/components/{p-516d8085.js → p-df84759a.js} +1 -1
  42. package/dist/components/tds-folder-tab.js +2 -2
  43. package/dist/components/tds-folder-tabs.js +2 -2
  44. package/dist/components/tds-footer.js +1 -1
  45. package/dist/components/tds-header-brand-symbol.js +1 -1
  46. package/dist/components/tds-header-dropdown.js +2 -2
  47. package/dist/components/tds-header-launcher.js +2 -2
  48. package/dist/components/tds-inline-tab.js +2 -2
  49. package/dist/components/tds-inline-tabs.js +2 -2
  50. package/dist/components/tds-navigation-tab.js +2 -2
  51. package/dist/components/tds-navigation-tabs.js +4 -4
  52. package/dist/components/tds-popover-canvas.js +1 -1
  53. package/dist/components/tds-popover-core.js +1 -1
  54. package/dist/components/tds-popover-menu.js +1 -1
  55. package/dist/components/tds-table-toolbar.js +3 -3
  56. package/dist/components/tds-text-field.js +5 -5
  57. package/dist/components/tds-textarea.js +6 -6
  58. package/dist/components/tds-toast.js +3 -3
  59. package/dist/components/tds-toggle.js +2 -2
  60. package/dist/components/tds-tooltip.js +1 -1
  61. package/dist/esm/tds-folder-tab.entry.js +2 -2
  62. package/dist/esm/tds-folder-tabs.entry.js +2 -2
  63. package/dist/esm/tds-footer.entry.js +1 -1
  64. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  65. package/dist/esm/tds-inline-tab.entry.js +2 -2
  66. package/dist/esm/tds-inline-tabs.entry.js +2 -2
  67. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  68. package/dist/esm/tds-navigation-tabs.entry.js +4 -4
  69. package/dist/esm/tds-popover-core.entry.js +1 -1
  70. package/dist/esm/tds-table-toolbar.entry.js +3 -3
  71. package/dist/esm/tds-text-field.entry.js +5 -5
  72. package/dist/esm/tds-textarea.entry.js +4 -4
  73. package/dist/esm/tds-toast.entry.js +3 -3
  74. package/dist/esm/tds-toggle.entry.js +2 -2
  75. package/dist/esm/tds-tooltip.entry.js +2 -2
  76. package/dist/tegel/assets/logos/scania-logotype.png +0 -0
  77. package/dist/tegel/assets/logos/scania-logotype.svg +2355 -0
  78. package/dist/tegel/assets/logos/scania-wordmark-white.png +0 -0
  79. package/dist/tegel/assets/logos/scania-wordmark.png +0 -0
  80. package/dist/tegel/assets/logos/scania-wordmark.svg +17 -0
  81. package/dist/tegel/p-0cac9ea6.entry.js +1 -0
  82. package/dist/tegel/{p-a1262f8f.entry.js → p-106e048d.entry.js} +1 -1
  83. package/dist/tegel/{p-2286d4c3.entry.js → p-10dfd194.entry.js} +1 -1
  84. package/dist/tegel/{p-b9603974.entry.js → p-1297d40e.entry.js} +1 -1
  85. package/dist/tegel/{p-0ca95c76.entry.js → p-212e1fff.entry.js} +1 -1
  86. package/dist/tegel/p-3a92d554.entry.js +1 -0
  87. package/dist/tegel/{p-2774f177.entry.js → p-46b66490.entry.js} +1 -1
  88. package/dist/tegel/{p-1116da44.entry.js → p-52adc30c.entry.js} +1 -1
  89. package/dist/tegel/{p-87ba6285.entry.js → p-64be21db.entry.js} +1 -1
  90. package/dist/tegel/{p-d29a777f.entry.js → p-67b4b2cf.entry.js} +1 -1
  91. package/dist/tegel/{p-e7a452a8.entry.js → p-76faaf70.entry.js} +1 -1
  92. package/dist/tegel/{p-9d8bb017.entry.js → p-78823da3.entry.js} +1 -1
  93. package/dist/tegel/{p-6631ea34.entry.js → p-bb1d069f.entry.js} +1 -1
  94. package/dist/tegel/{p-051c9000.entry.js → p-c7b0253c.entry.js} +1 -1
  95. package/dist/tegel/p-cbe217bf.entry.js +1 -0
  96. package/dist/tegel/tegel.css +2 -2
  97. package/dist/tegel/tegel.esm.js +1 -1
  98. package/dist/types/components/slider/slider-stories-setup.d.ts +233 -0
  99. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
  100. package/dist/types/stories/formatHtmlPreview.d.ts +2 -0
  101. package/package.json +1 -1
  102. package/scripts/copy-assets.mjs +32 -30
  103. package/dist/components/p-96e83134.js +0 -2098
  104. package/dist/tegel/p-26e8f033.entry.js +0 -1
  105. package/dist/tegel/p-5ade1970.entry.js +0 -1
  106. package/dist/tegel/p-b58c7bed.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
2
2
 
3
- const tableToolbarCss = ":host{box-sizing:border-box;display:table-caption;position:relative;background-color:var(--tds-table-toolbar-background);color:var(--tds-table-color);padding:0 var(--tds-spacing-element-16);height:64px;border-top-left-radius:4px;border-top-right-radius:4px}:host *{box-sizing:border-box}:host .tds-table__upper-bar-flex{width:100%;height:100%;display:flex;justify-content:space-between}:host .tds-table__title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding-top:var(--tds-spacing-element-16);text-align:left}:host .tds-table__actionbar,:host slot[name=end]::slotted(*){display:flex;align-self:center}:host .tds-table__searchbar{display:flex;align-self:center;position:relative;height:40px;width:40px;border-radius:4px 4px 0 0;transition:background-color 250ms ease, width 250ms ease;overflow:hidden;background-color:transparent}:host .tds-table__searchbar::after{content:\"\";width:100%;height:2px;position:absolute;bottom:0;background-color:var(--tds-blue-400);transform:scaleX(0);transition:transform 150ms ease}:host .tds-table__searchbar:focus-within::after{transform:scaleX(100%)}:host .tds-table__searchbar:focus-within,:host .tds-table__searchbar.tds-table__searchbar--active{width:208px;background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:focus-within:hover,:host .tds-table__searchbar.tds-table__searchbar--active:hover{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar .tds-table__searchbar-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-table-color);z-index:1;width:100%;height:100%;border:none;padding:0 36px 0 16px;background-color:transparent;outline:none;cursor:pointer}:host .tds-table__searchbar .tds-table__searchbar-input :focus{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:hover{background-color:var(--tds-table-toolbar-searchbar-background-hover)}:host .tds-table__searchbar .tds-table__searchbar-icon{z-index:0;position:absolute;right:9px;top:9px;width:20px;height:20px}:host(.toolbar__horizontal-scroll){position:absolute;top:var(--tds-spacing-element-16)}:host(.tds-table--compact){height:56px}";
3
+ const tableToolbarCss = ":host{box-sizing:border-box;display:table-caption;position:relative;background-color:var(--tds-table-toolbar-background);color:var(--tds-table-color);padding:0 var(--tds-spacing-element-16);height:64px;border-top-left-radius:4px;border-top-right-radius:4px}:host *{box-sizing:border-box}:host .tds-table__upper-bar-flex{width:100%;height:100%;display:flex;justify-content:space-between}:host .tds-table__actionbar-left{display:flex}:host .tds-table__title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding-top:var(--tds-spacing-element-16);text-align:left;margin-right:var(--tds-spacing-element-8)}:host .tds-table__actionbar,:host slot[name=end]::slotted(*),:host slot[name=start]::slotted(*){display:flex;align-self:center}:host .tds-table__searchbar{display:flex;align-self:center;position:relative;height:40px;width:40px;border-radius:4px 4px 0 0;transition:background-color 250ms ease, width 250ms ease;overflow:hidden;background-color:transparent}:host .tds-table__searchbar::after{content:\"\";width:100%;height:2px;position:absolute;bottom:0;background-color:var(--tds-blue-400);transform:scaleX(0);transition:transform 150ms ease}:host .tds-table__searchbar:focus-within::after{transform:scaleX(100%)}:host .tds-table__searchbar:focus-within,:host .tds-table__searchbar.tds-table__searchbar--active{width:208px;background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:focus-within:hover,:host .tds-table__searchbar.tds-table__searchbar--active:hover{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar .tds-table__searchbar-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-table-color);z-index:1;width:100%;height:100%;border:none;padding:0 36px 0 16px;background-color:transparent;outline:none;cursor:pointer}:host .tds-table__searchbar .tds-table__searchbar-input :focus{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:hover{background-color:var(--tds-table-toolbar-searchbar-background-hover)}:host .tds-table__searchbar .tds-table__searchbar-icon{z-index:0;position:absolute;right:9px;top:9px;width:20px;height:20px}:host(.toolbar__horizontal-scroll){position:absolute;top:var(--tds-spacing-element-16)}:host(.tds-table--compact){height:56px}";
4
4
  const TdsTableToolbarStyle0 = tableToolbarCss;
5
5
 
6
6
  const relevantTableProps = [
@@ -70,10 +70,10 @@ const TdsTableToolbar = class {
70
70
  return styles;
71
71
  }
72
72
  render() {
73
- return (h(Host, { key: '7ff5d6032f2ada9a95d5fa33286ad31940163dfc', class: {
73
+ return (h(Host, { key: '76acde1b3c55f421cedae9bf932f923813272fe3', class: {
74
74
  'tds-table--compact': this.compactDesign,
75
75
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
76
- }, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '9975a508256b56731dd51f7687a16dff7994cf2a', class: "tds-table__upper-bar-flex" }, h("caption", { key: '997271d59b13fe9f88086e8bc5334d6412887fe8', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle), h("div", { key: '6da0901c59e6e053cadfb540ded0e738e492f8ed', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'dfb2a778e959c5b26d42be07378b52c09c9f95d3', class: "tds-table__searchbar" }, h("input", { key: '13918cd96afb703cf71a0aeeb1dd3014a4cba665', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: 'a95553216a9a0c94fbd08c43ef44c95389a82f7e', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '6a9396e3f6f8508acb802e92b320b5c8f2cda517', name: "search", size: "20px" })))), h("slot", { key: '7cf66ff8283724f421e6bdc018cee62f4cd480b1', name: "end" })))));
76
+ }, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: 'e6fe2f411ebde77befeb99992b5157bba3651fbf', class: "tds-table__upper-bar-flex" }, h("div", { key: 'f61dc1de54a73c28a2ef10dcae2a5a629ae76c57', class: "tds-table__actionbar-left" }, this.tableTitle && (h("caption", { key: 'ca50269d08eab742cb759d371937739fd0a87eff', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), h("slot", { key: '275b233ff233a9f90d936553fa31015f72f21899', name: "start" })), h("div", { key: 'd2ed2b7918e8f8d8e23c34bd8114ee1e69cdb681', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'cd0bd112e3ab6b31c96e10bc4b2eb32715766d58', class: "tds-table__searchbar" }, h("input", { key: '3dbcdf5394477fb55d41c2ee0ddcea1e50ffcd64', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: '0a34bfd7cd50c88604af01dfc9bef1adae7d8999', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '98a376c6db7d249e060dafffef18c9345730e25c', name: "search", size: "20px" })))), h("slot", { key: 'e4400d9ddb0f6435315569e1f64f34bc04d8054f', name: "end" })))));
77
77
  }
78
78
  get host() { return getElement(this); }
79
79
  };
@@ -81,7 +81,7 @@ const TdsTextField = class {
81
81
  var _a;
82
82
  const usesPrefixSlot = hasSlot('prefix', this.host);
83
83
  const usesSuffixSlot = hasSlot('suffix', this.host);
84
- return (h("div", { key: '81cbb5cca60842e284e60630307f246b50650d79', class: {
84
+ return (h("div", { key: '985928ef59662762648f2d95d5decad2e3188e05', class: {
85
85
  'form-text-field': true,
86
86
  'form-text-field-nomin': this.noMinWidth,
87
87
  'text-field-focus': this.focusInput && !this.disabled,
@@ -99,12 +99,12 @@ const TdsTextField = class {
99
99
  'form-text-field-sm': this.size === 'sm',
100
100
  'form-text-field-error': this.state === 'error',
101
101
  'form-text-field-success': this.state === 'success',
102
- } }, this.labelPosition === 'outside' && (h("div", { key: '57bc0784f18f9ed2c4fd31699832599ac73ceb32', class: "text-field-label-outside" }, h("label", { key: '8cadf1065d6556d6f9dc74b70d3c36b48db86e38', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'd191fdf981ac742c4a95fa69202607f0c73606d7', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'de76fcf2db999b9e21b33bf3554d22e4e7648574', class: {
102
+ } }, this.labelPosition === 'outside' && (h("div", { key: '7a409b43a1fee8b7b078abc5f96c925ab97bcedc', class: "text-field-label-outside" }, h("label", { key: 'c6bdaab4e6f81a95aa71a4e23a1f02fb1bcef9ec', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '945f7901a92850da22ab84c5fe77e2d97738aaa9', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '5d6cb2facb8ff90b7393409b769c2b5e5a860421', class: {
103
103
  'text-field-slot-wrap-prefix': true,
104
104
  'text-field-error': this.state === 'error',
105
105
  'text-field-success': this.state === 'success',
106
106
  'text-field-default': this.state === 'default',
107
- } }, h("slot", { key: 'ab87f5a55f1a7d94bbcb624bc1c4f864c0136cf8', name: "prefix" }))), h("div", { key: '7097450497a908bef52ab5d28966267c984f433d', class: "text-field-input-container" }, h("input", { key: 'f25d3c0ce37078cf018aa80cea8d5e055656f2c1', ref: (inputEl) => {
107
+ } }, h("slot", { key: 'b0f0e3ebb96dbd2af021150b68690af566db44b9', name: "prefix" }))), h("div", { key: 'c5b172ee6c561256ab930490113f406b88eae67c', class: "text-field-input-container" }, h("input", { key: '2e0a9070b41bde39a2a0f14b132f474692eb0e04', ref: (inputEl) => {
108
108
  this.textInput = inputEl;
109
109
  }, class: {
110
110
  'text-field-input': true,
@@ -119,13 +119,13 @@ const TdsTextField = class {
119
119
  if (!this.readOnly) {
120
120
  this.handleBlur(event);
121
121
  }
122
- }, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '40a00f563ef4c62345a39d03937f0824ccef0c44', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'b41eb0927e23dff6fd12a8304f7bff5a8b743a54', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '0d26ee8cb9838ee91574119ae0e1febb06318c9c', class: {
122
+ }, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'ffb3bbb84ab718c2259134f32ee6dd0eb348cb9f', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '166da0147311d28064b7e03bbefd1a0ee18db5ca', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '4bb21d12957bf65d525931c88a5a89fff49d4eaf', class: {
123
123
  'text-field-slot-wrap-suffix': true,
124
124
  'text-field-error': this.state === 'error',
125
125
  'text-field-success': this.state === 'success',
126
126
  'text-field-default': this.state === 'default',
127
127
  'tds-u-display-none': this.readOnly,
128
- } }, h("slot", { key: '1af3d2006e55936a8afcce17ca9519b9bb9907c5', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: '89b9f9b62e50006f933ab36974f8d6c6e2dab9c8', class: "text-field-icon__readonly" }, h("tds-icon", { key: '44cc31f05988149991d58d090187e444b33ec62e', name: "edit_inactive", size: "20px" }))), h("span", { key: '73f3021a39c0a880224879356866cd214ccb225e', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: 'c70487a997117103ec68ddbdf86d0ca9701f2202', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'dee32001897276fe40813ef0b29077d31a331b0d', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '31e68824fb88938e6c7fc3f9f80a84bce101a8f9', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '63e22a80312fdd7365a8aec9a5fcd7c8104c376a', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: 'e31d5df19bbf0d8278f2f2dbc7d978d770378a89', class: {
128
+ } }, h("slot", { key: '7e67dbc8f4f67cb0c7d194e01e5787ae18ffab13', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: 'd213ec000d837cbd4b711468ef3cfa826cc65ac2', class: "text-field-icon__readonly" }, h("tds-icon", { key: '56b8b76a5771889f9f36ab683dcba6906bff42a6', name: "edit_inactive", size: "20px" }))), h("span", { key: '9e8fa95602a1ce5630f30947b59decc700c06c8b', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: '9e8547e06a25e7da98ff977ac6be1b79d27e4151', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'daeea67a48a15d27785f31dfcb69fb75e31ab85b', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '974bad3f97b23d69a20130bf66b6c72ef47f68bc', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '687cad3cb0451a262f836089851e9a2e08f2c74e', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: '431709fb793dde8845b20698e722a7c140bb32b6', class: {
129
129
  'text-field-textcounter-divider': true,
130
130
  'text-field-textcounter-disabled': this.disabled,
131
131
  } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
@@ -40,7 +40,7 @@ const TdsTextarea = class {
40
40
  }
41
41
  // Data input event in value prop
42
42
  handleInput(event) {
43
- if (event.target instanceof HTMLInputElement) {
43
+ if (event.target instanceof HTMLTextAreaElement) {
44
44
  this.value = event.target.value;
45
45
  this.tdsInput.emit(event);
46
46
  }
@@ -67,7 +67,7 @@ const TdsTextarea = class {
67
67
  }
68
68
  render() {
69
69
  var _a;
70
- return (h("div", { key: 'b0af8053153a8752a82d1b4f9a1f3c6e347ba4e5', class: {
70
+ return (h("div", { key: '1d9b2b46f64dfd4b65af35b266544c0164373c06', class: {
71
71
  'textarea-container': true,
72
72
  'textarea-label-inside': this.labelPosition === 'inside',
73
73
  'textarea-focus': this.focusInput,
@@ -77,7 +77,7 @@ const TdsTextarea = class {
77
77
  'textarea-data': this.value !== '',
78
78
  [`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
79
79
  'no-min-width': this.noMinWidth,
80
- } }, this.labelPosition !== 'no-label' && (h("label", { key: 'e7acfb3ee16ae429ae5b530c678de7178cfadb37', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '8e4a259a015dbb7d5f52eb890c0b1865c7d23c2a', class: "textarea-wrapper" }, h("textarea", { key: 'af0bf0fe69baa4c33c8d628a509ef2771d581728', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
80
+ } }, this.labelPosition !== 'no-label' && (h("label", { key: '971f3f72566f19851a28617e5c8a7889eb0acea8', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: 'c3d6ed6c8f842d7561aa254c54eee44f48ce4d63', class: "textarea-wrapper" }, h("textarea", { key: 'a9381e6a8546c7f318b171549352964e31fd305b', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
81
81
  this.textEl = inputEl;
82
82
  }, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
83
83
  if (!this.readOnly) {
@@ -87,7 +87,7 @@ const TdsTextarea = class {
87
87
  if (!this.readOnly) {
88
88
  this.handleBlur(event);
89
89
  }
90
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: 'a4d4472cc29ceee2df18621253e4790298dab8e6', class: "textarea-resizer-icon" }, h("svg", { key: '086a281f3fec5590ddb8563ef1e65136d4b831d4', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5d6935da052a1163db2d6526e2c419a9e7621b80', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '9b6e37cfdb98c9dbc5207a7a615dda7bc53a12f9', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '847bf8835a69bb18cc248fc0a79fb63cd56cd4bc', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: 'fc952bfb4ded2a415d8877a02b42cc5ca852aa92', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: '73ab74707b95ac4be6fe44da50fbd85034010c30', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && !this.readOnly && h("tds-icon", { key: '0a51fe5b3ca770969ad7c42155c16ddf1349a215', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: 'faaa8a3ea81472dc078084e25d6513b2633118b7', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '1a465fbeacf28fff5fa4bac5f6f03c94b01538e6', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
90
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: '7252559ca80fb56ca1098d7c90c1519c3a77b402', class: "textarea-resizer-icon" }, h("svg", { key: '4402cced255cb35600747461cf2c4f2d42f7cca9', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '4387fb4738c677135fccd467856595908ba31632', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: 'dd0ec749e9e82f43c95d452fb79357b826ab5451', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '9606d2c2aa9f4916893dc0c25f0d076df308853a', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '28812e6359ab9747156d2c75094bd26bdee32edf', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: 'e17f24de9e69ff4a0a91dc2acaa1933edff86228', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (h("tds-icon", { key: '7b2968586c351df3a6ced7da57ac53b256f4ac45', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: 'ab34044bd4e96d1e98df40e7b6517bc2fcaa6140', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'b515878f1e8427b79c242bfe3a13df505d6c7304', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
91
91
  }
92
92
  };
93
93
  TdsTextarea.style = TdsTextareaStyle0;
@@ -66,12 +66,12 @@ const TdsToast = class {
66
66
  const usesHeaderSlot = hasSlot('header', this.host);
67
67
  const usesSubheaderSlot = hasSlot('subheader', this.host);
68
68
  const usesActionsSlot = hasSlot('actions', this.host);
69
- return (h(Host, { key: 'b5f8ebf48f31ced7100681b06339ba896d6eca64', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
69
+ return (h(Host, { key: '433c25165487688ff40c78a0455d30cedd08c76f', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
70
70
  hide: this.hidden,
71
71
  show: !this.hidden,
72
- } }, h("div", { key: 'bd1e5c5c04b8aa66cb44241fb37711df0d797d28', class: `
72
+ } }, h("div", { key: '2734573a413d9cdf1a329675fe0e0db374243cbf', class: `
73
73
  wrapper
74
- ${this.variant}` }, h("tds-icon", { key: 'aa6e3fd61ad5a2e962f6e70d48ce266b7c8913e0', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '8502cb5c3b305942fe14ffde76ee4dfc63758ce8', class: `content` }, h("div", { key: '5ef927acd2e0d6bba51c4b20b79fee1240c821ef', class: "header-subheader" }, this.header && h("div", { key: 'c568d13668da3502c5f34810fea5f3a9d9629572', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'e9316b99d758019127faf05adb9ae1754e3ea910', name: "header" }), this.subheader && h("div", { key: '428e2659621c6eb4ddb302b9cab6902d93d2f514', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2ec858d2feeaf679ab8aa061cab2156f926e29a2', name: "subheader" })), usesActionsSlot && (h("div", { key: '3f4836e54bedbeb3b02b78c0ac0bfa47770c4f80', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '76fa5d8534ea34010968a7183e07e62a4be3e5f7', name: "actions" })))), this.closable && (h("button", { key: '8076fa3d885b7649758b084301e092d083103ecd', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: 'f9bf7fa804352e9d09bbdc6251fe02c89cb174a8', name: "cross", size: "20px", svgTitle: "cross" }))))));
74
+ ${this.variant}` }, h("tds-icon", { key: '88d4ab6fd55d64c93ad3089c695d0fa4075208a6', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '02de15f884420946530d2e04c330987f73c9ca44', class: `content` }, h("div", { key: '4eb8c6a13a7bb53313a18b47bfa8e2ab1211cdbc', class: "header-subheader" }, this.header && h("div", { key: '1b707e29cdd68a5cc73a2b694b8b93698cbac661', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'ffe2b463f8fc6e4ca3b563d7a4ae55968cb4a478', name: "header" }), this.subheader && h("div", { key: '8164b591452e4a6f025f752951c678a15443fff9', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2bca8428e8eb128cf8c0f62b31a0da54ef555df3', name: "subheader" })), usesActionsSlot && (h("div", { key: 'de84bc19257b09127b861b357240509a7346f2e7', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'b85a46c5dc97dc7d3b95feb816145731887711fb', name: "actions" })))), this.closable && (h("button", { key: '69adb03d815ece9e50cf436957927c5dcd4d3ab8', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '9b4f062079caa32c5900202aaf1c2a7a5ef8e18c', name: "cross", size: "20px", svgTitle: "cross" }))))));
75
75
  }
76
76
  get host() { return getElement(this); }
77
77
  };
@@ -41,10 +41,10 @@ const TdsToggle = class {
41
41
  }
42
42
  }
43
43
  render() {
44
- return (h("div", { key: 'f1151ef33eaf8ee11761badb74dcb24916481ce1', class: "tds-toggle" }, this.headline && (h("div", { key: '848f0bf92aa6e21a7d84dea6d3cc41f3228cbb9b', class: {
44
+ return (h("div", { key: '01d3faf866451cf2e09694d614b1cca9defa1f69', class: "tds-toggle" }, this.headline && (h("div", { key: '2809bf2c3653c20ca6b93280b3391255b2285d8c', class: {
45
45
  'toggle-headline': true,
46
46
  'disabled': this.disabled,
47
- } }, this.headline)), h("input", { key: '25907b86ae6fe55dca60b1254a3901bb090a8d36', "aria-label": this.tdsAriaLabel, "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" }), this.labelSlot && (h("label", { key: 'ef3c492d3d3c7bddc34c64bfcc568e47f17a2cd1', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '339f355bbba7f3c18de4049df1d0a82d87884f44', name: "label" })))));
47
+ } }, this.headline)), h("input", { key: '52ab62b4d4c506ca74533ffafc68247accae612b', "aria-label": this.tdsAriaLabel, "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" }), this.labelSlot && (h("label", { key: '73f43d7134ff9a9ecded6b8b153b1590014e2a80', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: 'efe7c2a3f76f9990a00b1156d66b78c0e26e6411', name: "label" })))));
48
48
  }
49
49
  get host() { return getElement(this); }
50
50
  };
@@ -60,7 +60,7 @@ const TdsTooltip = class {
60
60
  }
61
61
  render() {
62
62
  var _a;
63
- return (h(Host, { key: 'c09e902febe788fe0f38d9abca24864bfbf59b2d', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '2ae840c2abe03714f071034bda652265ef09fc9b' }, this.inheritedAttributes, { class: {
63
+ return (h(Host, { key: 'e7229ee89dea45931af9d12f04b2f31a9c0f7be2', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: 'e4b263f4414f6ce9d2e557fc5431040d718aff3c' }, this.inheritedAttributes, { class: {
64
64
  'tds-tooltip': true,
65
65
  [`tds-tooltip-${this.border}`]: true,
66
66
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -73,7 +73,7 @@ const TdsTooltip = class {
73
73
  // @ts-ignore
74
74
  onInternalTdsClose: () => {
75
75
  this.show = false;
76
- }, defaultShow: this.defaultShow }), this.text, h("slot", { key: 'f0211f7e337709f4b8d0e8e4374c0ebd39635f25' }))));
76
+ }, defaultShow: this.defaultShow }), this.text, h("slot", { key: '41797812218d42837bb56b393a5e20c612cc51ad' }))));
77
77
  }
78
78
  get host() { return getElement(this); }
79
79
  };