@scania/tegel 1.21.1-config-for-china-beta.0 → 1.21.1-header-event-trigger-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -4
  3. package/dist/cjs/tds-text-field.cjs.entry.js +12 -6
  4. package/dist/cjs/tegel.cjs.js +1 -1
  5. package/dist/collection/components/accordion/accordion-item/accordion-item.css +0 -1
  6. package/dist/collection/components/accordion/accordion.css +0 -1
  7. package/dist/collection/components/badge/badge.css +0 -1
  8. package/dist/collection/components/banner/banner.css +0 -1
  9. package/dist/collection/components/block/block.css +0 -1
  10. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +0 -1
  11. package/dist/collection/components/breadcrumbs/breadcrumbs.css +0 -1
  12. package/dist/collection/components/button/button.css +0 -1
  13. package/dist/collection/components/card/card.css +0 -1
  14. package/dist/collection/components/checkbox/checkbox.css +0 -1
  15. package/dist/collection/components/chip/chip.css +0 -1
  16. package/dist/collection/components/datetime/datetime.css +0 -1
  17. package/dist/collection/components/divider/divider.css +0 -1
  18. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +0 -1
  19. package/dist/collection/components/dropdown/dropdown.css +0 -1
  20. package/dist/collection/components/footer/footer-group/footer-group.css +0 -1
  21. package/dist/collection/components/footer/footer-item/footer-item.css +0 -1
  22. package/dist/collection/components/footer/footer.css +0 -1
  23. package/dist/collection/components/header/core-header-item/core-header-item.css +0 -1
  24. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +0 -1
  25. package/dist/collection/components/header/header-dropdown/header-dropdown.css +0 -1
  26. package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -4
  27. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +0 -1
  28. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +0 -1
  29. package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.css +0 -1
  30. package/dist/collection/components/header/header-hamburger/header-hamburger.css +1 -1
  31. package/dist/collection/components/header/header-item/header-item.css +0 -1
  32. package/dist/collection/components/header/header-launcher/header-launcher.css +0 -1
  33. package/dist/collection/components/header/header-launcher-button/header-launcher-button.css +0 -1
  34. package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.css +0 -1
  35. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.css +0 -1
  36. package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.css +0 -1
  37. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.css +0 -1
  38. package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.css +0 -1
  39. package/dist/collection/components/header/header-title/header-title.css +0 -1
  40. package/dist/collection/components/header/header.css +1 -1
  41. package/dist/collection/components/icon/icon.css +0 -1
  42. package/dist/collection/components/link/link.css +0 -1
  43. package/dist/collection/components/message/message.css +0 -1
  44. package/dist/collection/components/modal/modal.css +0 -1
  45. package/dist/collection/components/popover-canvas/popover-canvas.css +0 -1
  46. package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.css +0 -1
  47. package/dist/collection/components/popover-menu/popover-menu.css +0 -1
  48. package/dist/collection/components/radio-button/radio-button.css +0 -1
  49. package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.css +0 -1
  50. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.css +1 -1
  51. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.css +0 -1
  52. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.css +0 -1
  53. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +0 -1
  54. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
  55. package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.css +0 -1
  56. package/dist/collection/components/side-menu/side-menu-user/side-menu-user.css +0 -1
  57. package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.css +0 -1
  58. package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.css +0 -1
  59. package/dist/collection/components/side-menu/side-menu.css +1 -1
  60. package/dist/collection/components/slider/slider.css +0 -1
  61. package/dist/collection/components/spinner/spinner.css +0 -1
  62. package/dist/collection/components/stepper/step/step.css +0 -1
  63. package/dist/collection/components/stepper/stepper.css +0 -1
  64. package/dist/collection/components/table/table/table.css +0 -1
  65. package/dist/collection/components/table/table-body/table-body.css +0 -1
  66. package/dist/collection/components/table/table-body-cell/table-body-cell.css +0 -1
  67. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +0 -1
  68. package/dist/collection/components/table/table-body-row/table-body-row.css +0 -1
  69. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +0 -1
  70. package/dist/collection/components/table/table-footer/table-footer.css +0 -1
  71. package/dist/collection/components/table/table-header/table-header.css +0 -1
  72. package/dist/collection/components/table/table-header-cell/table-header-cell.css +0 -1
  73. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +0 -1
  74. package/dist/collection/components/table/table-toolbar/table-toolbar.css +0 -1
  75. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +0 -1
  76. package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +0 -1
  77. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +0 -1
  78. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +0 -1
  79. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +0 -1
  80. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +0 -1
  81. package/dist/collection/components/text-field/text-field.css +0 -1
  82. package/dist/collection/components/text-field/text-field.js +34 -7
  83. package/dist/collection/components/textarea/textarea.css +0 -1
  84. package/dist/collection/components/toast/toast.css +0 -1
  85. package/dist/collection/components/toggle/toggle.css +0 -1
  86. package/dist/collection/components/tooltip/tooltip.css +0 -1
  87. package/dist/components/tds-header-dropdown.js +5 -4
  88. package/dist/components/tds-text-field.js +14 -7
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/tds-header-dropdown.entry.js +5 -4
  91. package/dist/esm/tds-text-field.entry.js +12 -6
  92. package/dist/esm/tegel.js +1 -1
  93. package/dist/tegel/p-7d39487c.entry.js +1 -0
  94. package/dist/tegel/p-b189b644.entry.js +1 -0
  95. package/dist/tegel/tegel.css +2 -2
  96. package/dist/tegel/tegel.esm.js +1 -1
  97. package/dist/types/components/text-field/text-field.d.ts +2 -0
  98. package/dist/types/components.d.ts +4 -0
  99. package/package.json +1 -1
  100. package/dist/tegel/p-0fe204ed.entry.js +0 -1
  101. package/dist/tegel/p-588a05aa.entry.js +0 -1
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-header-launcher-grid-title {
3
2
  all: unset;
4
3
  box-sizing: border-box;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: block;
4
3
  border-bottom: 1px solid var(--tds-nav-dropdown-item-border-color);
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-header-launcher-list-title {
3
2
  all: unset;
4
3
  box-sizing: border-box;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  h4 {
3
2
  box-sizing: border-box;
4
3
  color: var(--tds-header-nav-item-color);
@@ -1,4 +1,4 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */ /*
1
+ /*
2
2
  Contains spacing variables for the layout
3
3
  */
4
4
  :host {
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: inline-block;
4
3
  vertical-align: middle;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: inline;
4
3
  }
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host .wrapper {
3
2
  display: flex;
4
3
  padding: 16px;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  /* MIXINS */
3
2
  /* MODAL STYLING */
4
3
  .tds-modal {
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-popover-canvas {
3
2
  box-sizing: border-box;
4
3
  display: inline-block;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: block;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-popover-menu {
3
2
  box-sizing: border-box;
4
3
  overflow: hidden;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-radio-button {
3
2
  box-sizing: border-box;
4
3
  display: flex;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host button {
3
2
  height: 64px;
4
3
  width: 100%;
@@ -1,4 +1,4 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */ /*
1
+ /*
2
2
  Contains spacing variables for the layout
3
3
  */
4
4
  /** The breakpoint at which the layout changes from fixed size to full-width. */
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: block;
4
3
  }
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: block;
4
3
  width: 190px;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: block;
4
3
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */ /*
1
+ /*
2
2
  Contains spacing variables for the layout
3
3
  */
4
4
  :host {
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  position: fixed;
4
3
  width: 100%;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: flex;
4
3
  align-items: center;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host img,
3
2
  :host ::slotted(*) {
4
3
  width: 34px;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  display: block;
4
3
  font: var(--tds-headline-07);
@@ -1,4 +1,4 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */ /*
1
+ /*
2
2
  Contains spacing variables for the layout
3
3
  */
4
4
  :host {
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  tds-slider {
3
2
  box-sizing: border-box;
4
3
  width: 100%;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :root {
3
2
  --tds-spinner-background: var(--tds-blue-400);
4
3
  --tds-spinner-background-inverted: var(--tds-white);
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  position: relative;
4
3
  display: table-cell;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host [role=list] {
3
2
  display: flex;
4
3
  justify-content: space-evenly;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  --tds-scrollbar-width-standard: thin;
4
3
  --tds-scrollbar-width: 10px;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host,
3
2
  tds-table-body {
4
3
  box-sizing: border-box;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host(.tds-table__body-cell) {
3
2
  box-sizing: border-box;
4
3
  font: var(--tds-detail-02);
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  position: relative;
4
3
  }
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host(.tds-table__row) {
3
2
  box-sizing: border-box;
4
3
  display: table-row;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: contents;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: table-footer-group;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: table-header-group;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host(.tds-table__header-cell) {
3
2
  box-sizing: border-box;
4
3
  font: var(--tds-headline-07);
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  position: relative;
4
3
  }
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: table-caption;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  position: relative;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  overflow: hidden;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: block;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: flex;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: block;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host {
3
2
  box-sizing: border-box;
4
3
  display: flex;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .text-field-input-lg {
3
2
  all: unset;
4
3
  border-radius: 4px 4px 0 0;
@@ -1,5 +1,5 @@
1
- import { h } from "@stencil/core";
2
1
  import hasSlot from "../../utils/hasSlot";
2
+ import { h } from "@stencil/core";
3
3
  /**
4
4
  * @slot prefix - Slot for the prefix in the component.
5
5
  * @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
@@ -44,11 +44,17 @@ export class TdsTextField {
44
44
  this.focusInput = false;
45
45
  this.tdsBlur.emit(event);
46
46
  }
47
+ /** Method to handle focus */
48
+ async focusElement() {
49
+ if (this.textInput) {
50
+ this.textInput.focus();
51
+ }
52
+ }
47
53
  render() {
48
54
  var _a;
49
55
  const usesPrefixSlot = hasSlot('prefix', this.host);
50
56
  const usesSuffixSlot = hasSlot('suffix', this.host);
51
- return (h("div", { key: '614c64d5f56045d6056afcd3a16d7b78cbd3acc5', class: {
57
+ return (h("div", { key: 'fbbf85f381d4322a3806e26fd0d5fc99f418798d', class: {
52
58
  'form-text-field': true,
53
59
  'form-text-field-nomin': this.noMinWidth,
54
60
  'text-field-focus': this.focusInput && !this.disabled,
@@ -62,12 +68,12 @@ export class TdsTextField {
62
68
  'form-text-field-sm': this.size === 'sm',
63
69
  'form-text-field-error': this.state === 'error',
64
70
  'form-text-field-success': this.state === 'success',
65
- } }, this.labelPosition === 'outside' && (h("div", { key: '0da2f0d7993ebd1e95e863cd11d40091a94d57f8', class: "text-field-label-outside" }, h("div", { key: '71650b98f03e02d01a04e9702ca4937e2cfd03ad' }, this.label))), h("div", { key: 'f518629dc4c49b87904be917e11505fd53ee04c0', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'a99ee8bd33a1f5d4cc46045300ef6876a8956cb9', class: {
71
+ } }, this.labelPosition === 'outside' && (h("div", { key: '56af5e0e26cd43abbbea49de990bc07c6bb5b18c', class: "text-field-label-outside" }, h("div", { key: '874e3561ccf253e30f6b09902d76174293a1f332' }, this.label))), h("div", { key: 'fc43c855f7f374a2761feda34a6374be1a37ff90', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '7b5590cf8cb856942e30fd80c3115bf133062998', class: {
66
72
  'text-field-slot-wrap-prefix': true,
67
73
  'text-field-error': this.state === 'error',
68
74
  'text-field-success': this.state === 'success',
69
75
  'text-field-default': this.state === 'default',
70
- } }, h("slot", { key: 'baa1058fb32778494cbc18037292fb06912b825f', name: "prefix" }))), h("div", { key: 'b174c0f896119f19649fb51d92e387dcb9f76b96', class: "text-field-input-container" }, h("input", { key: '04bc2b5d71120d74e6180058b947af79261c2ab8', ref: (inputEl) => (this.textInput = inputEl), class: {
76
+ } }, h("slot", { key: 'df3ff67a7f8195e3317c6bef103ee19b98628fe3', name: "prefix" }))), h("div", { key: '7727642d6c2bc664785043f730d652a2ca21657c', class: "text-field-input-container" }, h("input", { key: '58ec947e5d401cc40224be16bd987c9d1a31237f', ref: (inputEl) => (this.textInput = inputEl), class: {
71
77
  'text-field-input': true,
72
78
  'text-field-input-sm': this.size === 'sm',
73
79
  'text-field-input-md': this.size === 'md',
@@ -80,16 +86,16 @@ export class TdsTextField {
80
86
  if (!this.readOnly) {
81
87
  this.handleBlur(event);
82
88
  }
83
- } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'aad5f749e3e65f8cd50b6a787d0cbef9e2b2c520', class: "text-field-label-inside" }, this.label))), h("div", { key: 'f51644bc25e9b38007473f93e4aa31465761b684', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'cae4d0baead1136b9ebaa3610eb0c32608c6dffa', class: {
89
+ } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '4ff4a198eea2803a08f3336c860a07788a4f7ca1', class: "text-field-label-inside" }, this.label))), h("div", { key: '734de1fb01e8f9c0a270af04d567b2fe0d891172', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'acd385a1e926ac1c66e4185e156ab47f796d3c5f', class: {
84
90
  'text-field-slot-wrap-suffix': true,
85
91
  'text-field-error': this.state === 'error',
86
92
  'text-field-success': this.state === 'success',
87
93
  'text-field-default': this.state === 'default',
88
94
  'tds-u-display-none': this.readOnly,
89
- } }, h("slot", { key: 'c5ce94203125d2f8fe86070b4f0b18cbbe7ba3c9', name: "suffix" }))), h("span", { key: '826a4e72800da38b8530d0a06f6e65c668ef3ee6', class: "text-field-icon__readonly" }, h("tds-icon", { key: '3a5d69f23abf0239df9f9d1bae25a92e00f01c3a', name: "edit_inactive", size: "20px" })), h("span", { key: '0b6a09634157678f3e241d6e18e5c732e3bfeb58', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '1dc81988d18d27a89f33924d0ec2b1dad6cc289e', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '40dd671f70b273d7ce13f9207dc5c59d5416d19d', class: "text-field-helper-error-state" }, h("tds-icon", { key: 'b7d5be3a521a76a4384415dc76305f21f4281b36', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'c9ec54b60483412e9df0874cbae021da5337c555', class: {
95
+ } }, h("slot", { key: '98e3ad6a1083ace81fd102a4386236321372158f', name: "suffix" }))), h("span", { key: 'c1020a1fb2ea2ec06f1cc3478328ff09f5dde12f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '2fa99d139b21034cff9699f8ca359b85333c048b', name: "edit_inactive", size: "20px" })), h("span", { key: '1bef6d45afd4586fca10e188b2ccadd4504750fc', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: 'b43c0ed2778672b5ea587214f45f353425030a45', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '6943b70f8ee2fe98a7ade493f62b1be9245c053b', class: "text-field-helper-error-state" }, h("tds-icon", { key: '1e4a5820aa41c0918aee84488476afa2d9bb27c4', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'e0f6a4ba6b781e1307f5abba906abba9a6631a74', class: {
90
96
  'text-field-textcounter': true,
91
97
  'text-field-textcounter-disabled': this.disabled,
92
- } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'ca55f298722d315d8ebe20fc4e9f64aec9230576', class: {
98
+ } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'ae2a52268ca86705b853043fb35bc0da19c7e2ae', class: {
93
99
  'text-field-textcounter-divider': true,
94
100
  'text-field-textcounter-disabled': this.disabled,
95
101
  } }, ' ', "/", ' '), this.maxLength))))));
@@ -495,5 +501,26 @@ export class TdsTextField {
495
501
  }
496
502
  }];
497
503
  }
504
+ static get methods() {
505
+ return {
506
+ "focusElement": {
507
+ "complexType": {
508
+ "signature": "() => Promise<void>",
509
+ "parameters": [],
510
+ "references": {
511
+ "Promise": {
512
+ "location": "global",
513
+ "id": "global::Promise"
514
+ }
515
+ },
516
+ "return": "Promise<void>"
517
+ },
518
+ "docs": {
519
+ "text": "Method to handle focus",
520
+ "tags": []
521
+ }
522
+ }
523
+ };
524
+ }
498
525
  static get elementRef() { return "host"; }
499
526
  }
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .textarea-container {
3
2
  border-radius: 4px 4px 0 0;
4
3
  position: relative;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  :host(.hide) {
3
2
  display: none;
4
3
  visibility: hidden;
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-toggle .disabled {
3
2
  cursor: not-allowed;
4
3
  }
@@ -1,4 +1,3 @@
1
- /** The breakpoint at which the layout changes from fixed size to full-width. */
2
1
  .tds-tooltip {
3
2
  box-sizing: border-box;
4
3
  font: var(--tds-detail-05);
@@ -17,6 +17,7 @@ const TdsHeaderDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderDrop
17
17
  this.uuid = generateUniqueId();
18
18
  this.handleSlottedItemClick = (event) => {
19
19
  const eventSource = event.target.tagName.toLowerCase();
20
+ console.log('eventSource', eventSource);
20
21
  if (['a', 'button'].includes(eventSource)) {
21
22
  this.open = false;
22
23
  }
@@ -38,20 +39,20 @@ const TdsHeaderDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderDrop
38
39
  this.open = !this.open;
39
40
  }
40
41
  render() {
41
- return (h(Host, { key: '73a8e824b891f66806fad583470460a30af641de' }, h("div", { key: '81e78a9f21b152ae4698ec6f693ead79eb40f936', class: {
42
+ return (h(Host, { key: '6a363efc99f39507a0b976ac2c6281327d10c12a' }, h("div", { key: 'bc02acb96787385a8aaeb579bf89e0ff96e5951d', class: {
42
43
  'state-open': this.open,
43
- } }, h("tds-header-item", { key: 'aab78709417d1fd623c9a9969246434d78bcc055', class: "button", active: this.open, selected: this.selected }, h("button", { key: 'dff4234a39520177ba3cc058511144431facb944', ref: (el) => {
44
+ }, style: { backgroundColor: 'orange' } }, "hej 1", h("tds-header-item", { key: 'bf446a54de86061c05df34ef504dcc751780d245', class: "button", active: this.open, selected: this.selected }, h("button", { key: 'b5e158cb5039d3e20556364727546963bf2a02de', ref: (el) => {
44
45
  this.buttonEl = el;
45
46
  }, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
46
47
  this.toggleDropdown();
47
- } }, h("slot", { key: 'ec32e95833f0bc4a93a18c0058c7bea979cde638', name: "icon" }), this.label, h("slot", { key: 'ab077d925ecbc941446bb9f1f6755dccae26e0ae', name: "label" }), !this.noDropdownIcon && (h("tds-icon", { key: 'eb45d913a11433c12e5add804c88fd7c33e343ea', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h("tds-popover-canvas", { key: 'bc15799eeb488984d58abe21cfc27ba695a395a0', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
48
+ } }, h("slot", { key: '424366c75df17c9a1b16435eaaf9c083a28f8297', name: "icon" }), this.label, h("slot", { key: '17186c0fa3ae56dc427c0a113fb97df0b307fc96', name: "label" }), !this.noDropdownIcon && (h("tds-icon", { key: 'fe07b5fcc4870e010163f7c2c7c0ccb1b4b62340', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h("tds-popover-canvas", { key: 'b7998b886c204b0f7754e07ba195f1dbb19c2c7c', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
48
49
  {
49
50
  name: 'flip',
50
51
  options: {
51
52
  fallbackPlacements: [],
52
53
  },
53
54
  },
54
- ] }, this.open ? (h("span", { onClick: (e) => this.handleSlottedItemClick(e), onKeyDown: (e) => e.key === 'Enter' && this.handleSlottedItemClick(e) }, h("slot", null))) : null)))));
55
+ ] }, this.open ? (h("span", { onClick: (e) => this.handleSlottedItemClick(e), onKeyDown: (e) => e.key === 'Enter' && this.handleSlottedItemClick(e), style: { backgroundColor: 'green' } }, "hej 2", h("slot", null))) : null)))));
55
56
  }
56
57
  get host() { return this; }
57
58
  static get style() { return TdsHeaderDropdownStyle0; }
@@ -51,11 +51,17 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
51
51
  this.focusInput = false;
52
52
  this.tdsBlur.emit(event);
53
53
  }
54
+ /** Method to handle focus */
55
+ async focusElement() {
56
+ if (this.textInput) {
57
+ this.textInput.focus();
58
+ }
59
+ }
54
60
  render() {
55
61
  var _a;
56
62
  const usesPrefixSlot = hasSlot('prefix', this.host);
57
63
  const usesSuffixSlot = hasSlot('suffix', this.host);
58
- return (h("div", { key: '614c64d5f56045d6056afcd3a16d7b78cbd3acc5', class: {
64
+ return (h("div", { key: 'fbbf85f381d4322a3806e26fd0d5fc99f418798d', class: {
59
65
  'form-text-field': true,
60
66
  'form-text-field-nomin': this.noMinWidth,
61
67
  'text-field-focus': this.focusInput && !this.disabled,
@@ -69,12 +75,12 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
69
75
  'form-text-field-sm': this.size === 'sm',
70
76
  'form-text-field-error': this.state === 'error',
71
77
  'form-text-field-success': this.state === 'success',
72
- } }, this.labelPosition === 'outside' && (h("div", { key: '0da2f0d7993ebd1e95e863cd11d40091a94d57f8', class: "text-field-label-outside" }, h("div", { key: '71650b98f03e02d01a04e9702ca4937e2cfd03ad' }, this.label))), h("div", { key: 'f518629dc4c49b87904be917e11505fd53ee04c0', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'a99ee8bd33a1f5d4cc46045300ef6876a8956cb9', class: {
78
+ } }, this.labelPosition === 'outside' && (h("div", { key: '56af5e0e26cd43abbbea49de990bc07c6bb5b18c', class: "text-field-label-outside" }, h("div", { key: '874e3561ccf253e30f6b09902d76174293a1f332' }, this.label))), h("div", { key: 'fc43c855f7f374a2761feda34a6374be1a37ff90', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '7b5590cf8cb856942e30fd80c3115bf133062998', class: {
73
79
  'text-field-slot-wrap-prefix': true,
74
80
  'text-field-error': this.state === 'error',
75
81
  'text-field-success': this.state === 'success',
76
82
  'text-field-default': this.state === 'default',
77
- } }, h("slot", { key: 'baa1058fb32778494cbc18037292fb06912b825f', name: "prefix" }))), h("div", { key: 'b174c0f896119f19649fb51d92e387dcb9f76b96', class: "text-field-input-container" }, h("input", { key: '04bc2b5d71120d74e6180058b947af79261c2ab8', ref: (inputEl) => (this.textInput = inputEl), class: {
83
+ } }, h("slot", { key: 'df3ff67a7f8195e3317c6bef103ee19b98628fe3', name: "prefix" }))), h("div", { key: '7727642d6c2bc664785043f730d652a2ca21657c', class: "text-field-input-container" }, h("input", { key: '58ec947e5d401cc40224be16bd987c9d1a31237f', ref: (inputEl) => (this.textInput = inputEl), class: {
78
84
  'text-field-input': true,
79
85
  'text-field-input-sm': this.size === 'sm',
80
86
  'text-field-input-md': this.size === 'md',
@@ -87,16 +93,16 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
87
93
  if (!this.readOnly) {
88
94
  this.handleBlur(event);
89
95
  }
90
- } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'aad5f749e3e65f8cd50b6a787d0cbef9e2b2c520', class: "text-field-label-inside" }, this.label))), h("div", { key: 'f51644bc25e9b38007473f93e4aa31465761b684', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'cae4d0baead1136b9ebaa3610eb0c32608c6dffa', class: {
96
+ } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '4ff4a198eea2803a08f3336c860a07788a4f7ca1', class: "text-field-label-inside" }, this.label))), h("div", { key: '734de1fb01e8f9c0a270af04d567b2fe0d891172', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'acd385a1e926ac1c66e4185e156ab47f796d3c5f', class: {
91
97
  'text-field-slot-wrap-suffix': true,
92
98
  'text-field-error': this.state === 'error',
93
99
  'text-field-success': this.state === 'success',
94
100
  'text-field-default': this.state === 'default',
95
101
  'tds-u-display-none': this.readOnly,
96
- } }, h("slot", { key: 'c5ce94203125d2f8fe86070b4f0b18cbbe7ba3c9', name: "suffix" }))), h("span", { key: '826a4e72800da38b8530d0a06f6e65c668ef3ee6', class: "text-field-icon__readonly" }, h("tds-icon", { key: '3a5d69f23abf0239df9f9d1bae25a92e00f01c3a', name: "edit_inactive", size: "20px" })), h("span", { key: '0b6a09634157678f3e241d6e18e5c732e3bfeb58', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '1dc81988d18d27a89f33924d0ec2b1dad6cc289e', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '40dd671f70b273d7ce13f9207dc5c59d5416d19d', class: "text-field-helper-error-state" }, h("tds-icon", { key: 'b7d5be3a521a76a4384415dc76305f21f4281b36', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'c9ec54b60483412e9df0874cbae021da5337c555', class: {
102
+ } }, h("slot", { key: '98e3ad6a1083ace81fd102a4386236321372158f', name: "suffix" }))), h("span", { key: 'c1020a1fb2ea2ec06f1cc3478328ff09f5dde12f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '2fa99d139b21034cff9699f8ca359b85333c048b', name: "edit_inactive", size: "20px" })), h("span", { key: '1bef6d45afd4586fca10e188b2ccadd4504750fc', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: 'b43c0ed2778672b5ea587214f45f353425030a45', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '6943b70f8ee2fe98a7ade493f62b1be9245c053b', class: "text-field-helper-error-state" }, h("tds-icon", { key: '1e4a5820aa41c0918aee84488476afa2d9bb27c4', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'e0f6a4ba6b781e1307f5abba906abba9a6631a74', class: {
97
103
  'text-field-textcounter': true,
98
104
  'text-field-textcounter-disabled': this.disabled,
99
- } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'ca55f298722d315d8ebe20fc4e9f64aec9230576', class: {
105
+ } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'ae2a52268ca86705b853043fb35bc0da19c7e2ae', class: {
100
106
  'text-field-textcounter-divider': true,
101
107
  'text-field-textcounter-disabled': this.disabled,
102
108
  } }, ' ', "/", ' '), this.maxLength))))));
@@ -121,7 +127,8 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
121
127
  "state": [1],
122
128
  "maxLength": [2, "max-length"],
123
129
  "autofocus": [4],
124
- "focusInput": [32]
130
+ "focusInput": [32],
131
+ "focusElement": [64]
125
132
  }]);
126
133
  function defineCustomElement$1() {
127
134
  if (typeof customElements === "undefined") {