@db-ux/wc-core-components 4.4.0-loading-567cd0c → 4.4.1-floating-components-066d296

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 (165) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/db-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/db-brand.cjs.entry.js +1 -1
  6. package/dist/cjs/db-button.cjs.entry.js +1 -1
  7. package/dist/cjs/db-card.cjs.entry.js +1 -1
  8. package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
  9. package/dist/cjs/{db-custom-select-dropdown_6.cjs.entry.js → db-custom-select-dropdown_5.cjs.entry.js} +3 -255
  10. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
  11. package/dist/cjs/db-custom-select.cjs.entry.js +13 -11
  12. package/dist/cjs/db-divider.cjs.entry.js +2 -2
  13. package/dist/cjs/db-drawer.cjs.entry.js +4 -4
  14. package/dist/cjs/db-header.cjs.entry.js +5 -5
  15. package/dist/cjs/db-icon.cjs.entry.js +2 -2
  16. package/dist/cjs/db-infotext.cjs.entry.js +1 -1
  17. package/dist/cjs/db-link.cjs.entry.js +2 -2
  18. package/dist/cjs/db-navigation-item.cjs.entry.js +4 -4
  19. package/dist/cjs/db-navigation.cjs.entry.js +3 -3
  20. package/dist/cjs/db-notification.cjs.entry.js +3 -3
  21. package/dist/cjs/db-page.cjs.entry.js +3 -3
  22. package/dist/cjs/db-popover.cjs.entry.js +5 -5
  23. package/dist/cjs/db-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/db-section.cjs.entry.js +3 -3
  25. package/dist/cjs/db-select.cjs.entry.js +4 -4
  26. package/dist/cjs/db-stack.cjs.entry.js +3 -3
  27. package/dist/cjs/db-switch.cjs.entry.js +3 -3
  28. package/dist/cjs/db-tab-item_3.cjs.entry.js +7 -7
  29. package/dist/cjs/db-tabs.cjs.entry.js +3 -3
  30. package/dist/cjs/db-textarea.cjs.entry.js +3 -3
  31. package/dist/cjs/db-tooltip.cjs.entry.js +6 -5
  32. package/dist/cjs/db-ux.cjs.js +3 -3
  33. package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
  34. package/dist/cjs/{index-TxzPzc5I.js → index-Bi4QN5oK.js} +22 -50
  35. package/dist/cjs/index.cjs.js +2 -7
  36. package/dist/cjs/loader.cjs.js +2 -2
  37. package/dist/cjs/{navigation-DauGE-qj.js → navigation-BztJmEHf.js} +1 -1
  38. package/dist/collection/collection-manifest.json +1 -2
  39. package/dist/collection/components/custom-select/custom-select.js +17 -15
  40. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  41. package/dist/collection/components/divider/divider.js +1 -1
  42. package/dist/collection/components/drawer/drawer.js +3 -3
  43. package/dist/collection/components/header/header.js +2 -2
  44. package/dist/collection/components/icon/icon.js +1 -1
  45. package/dist/collection/components/link/link.js +1 -1
  46. package/dist/collection/components/navigation/navigation.js +2 -2
  47. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  48. package/dist/collection/components/notification/notification.js +2 -2
  49. package/dist/collection/components/page/page.js +2 -2
  50. package/dist/collection/components/popover/popover.js +3 -3
  51. package/dist/collection/components/radio/radio.js +1 -1
  52. package/dist/collection/components/section/section.js +2 -2
  53. package/dist/collection/components/select/select.js +3 -3
  54. package/dist/collection/components/stack/stack.js +2 -2
  55. package/dist/collection/components/switch/switch.js +2 -2
  56. package/dist/collection/components/tab-item/tab-item.js +2 -2
  57. package/dist/collection/components/tab-list/tab-list.js +2 -2
  58. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  59. package/dist/collection/components/tabs/tabs.js +2 -2
  60. package/dist/collection/components/tag/tag.js +2 -2
  61. package/dist/collection/components/textarea/textarea.js +2 -2
  62. package/dist/collection/components/tooltip/tooltip.js +4 -3
  63. package/dist/collection/index.js +0 -2
  64. package/dist/collection/utils/floating-components.js +65 -15
  65. package/dist/custom-elements.json +568 -2119
  66. package/dist/db-ux/db-ux.esm.js +1 -1
  67. package/dist/db-ux/index.esm.js +1 -1
  68. package/dist/db-ux/p-05XnVETo.js +2 -0
  69. package/dist/db-ux/p-09f188aa.entry.js +1 -0
  70. package/dist/db-ux/{p-f64ab366.entry.js → p-146365b4.entry.js} +1 -1
  71. package/dist/db-ux/p-1975c375.entry.js +1 -0
  72. package/dist/db-ux/{p-4b4916fb.entry.js → p-19c9285e.entry.js} +1 -1
  73. package/dist/db-ux/{p-fd4f5fac.entry.js → p-1ae2420e.entry.js} +1 -1
  74. package/dist/db-ux/p-1e76ee94.entry.js +1 -0
  75. package/dist/db-ux/p-2c0bd1d8.entry.js +1 -0
  76. package/dist/db-ux/{p-a95f6c84.entry.js → p-32fcf516.entry.js} +1 -1
  77. package/dist/db-ux/p-349276ca.entry.js +1 -0
  78. package/dist/db-ux/p-36f93663.entry.js +1 -0
  79. package/dist/db-ux/{p-4bda74c9.entry.js → p-47b821f7.entry.js} +1 -1
  80. package/dist/db-ux/p-5549d866.entry.js +1 -0
  81. package/dist/db-ux/{p-30ceac5f.entry.js → p-56984c5d.entry.js} +1 -1
  82. package/dist/db-ux/p-5b87a881.entry.js +1 -0
  83. package/dist/db-ux/{p-1bbe8d13.entry.js → p-5e8b2167.entry.js} +1 -1
  84. package/dist/db-ux/{p-642484ca.entry.js → p-5e8d052f.entry.js} +1 -1
  85. package/dist/db-ux/p-77840cb4.entry.js +1 -0
  86. package/dist/db-ux/{p-ada8a2ac.entry.js → p-8a0ca84b.entry.js} +1 -1
  87. package/dist/db-ux/{p-66e24856.entry.js → p-8d37aa19.entry.js} +1 -1
  88. package/dist/db-ux/{p-3aba68af.entry.js → p-8fb51989.entry.js} +1 -1
  89. package/dist/db-ux/p-90380da4.entry.js +1 -0
  90. package/dist/db-ux/{p-919ff123.entry.js → p-93506fdb.entry.js} +1 -1
  91. package/dist/db-ux/p-981d05c0.entry.js +1 -0
  92. package/dist/db-ux/p-DfYL98sI.js +1 -0
  93. package/dist/db-ux/{p-2a1481e9.entry.js → p-ba4084e8.entry.js} +1 -1
  94. package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
  95. package/dist/db-ux/{p-f3cc7450.entry.js → p-ced0df76.entry.js} +1 -1
  96. package/dist/db-ux/{p-34862d35.entry.js → p-cede20c2.entry.js} +1 -1
  97. package/dist/db-ux/{p-46b4ed7f.entry.js → p-d1974cb0.entry.js} +1 -1
  98. package/dist/db-ux/{p-0a073f5e.entry.js → p-d2fd9838.entry.js} +1 -1
  99. package/dist/db-ux/{p-8e63e73c.entry.js → p-ec270b7d.entry.js} +1 -1
  100. package/dist/db-ux/{p-8931bdc6.entry.js → p-f80474a6.entry.js} +1 -1
  101. package/dist/esm/db-accordion-item.entry.js +1 -1
  102. package/dist/esm/db-accordion.entry.js +1 -1
  103. package/dist/esm/db-badge.entry.js +1 -1
  104. package/dist/esm/db-brand.entry.js +1 -1
  105. package/dist/esm/db-button.entry.js +1 -1
  106. package/dist/esm/db-card.entry.js +1 -1
  107. package/dist/esm/db-checkbox.entry.js +1 -1
  108. package/dist/esm/{db-custom-select-dropdown_6.entry.js → db-custom-select-dropdown_5.entry.js} +5 -256
  109. package/dist/esm/db-custom-select-form-field.entry.js +3 -3
  110. package/dist/esm/db-custom-select.entry.js +13 -11
  111. package/dist/esm/db-divider.entry.js +2 -2
  112. package/dist/esm/db-drawer.entry.js +4 -4
  113. package/dist/esm/db-header.entry.js +5 -5
  114. package/dist/esm/db-icon.entry.js +2 -2
  115. package/dist/esm/db-infotext.entry.js +1 -1
  116. package/dist/esm/db-link.entry.js +2 -2
  117. package/dist/esm/db-navigation-item.entry.js +4 -4
  118. package/dist/esm/db-navigation.entry.js +3 -3
  119. package/dist/esm/db-notification.entry.js +3 -3
  120. package/dist/esm/db-page.entry.js +3 -3
  121. package/dist/esm/db-popover.entry.js +5 -5
  122. package/dist/esm/db-radio.entry.js +2 -2
  123. package/dist/esm/db-section.entry.js +3 -3
  124. package/dist/esm/db-select.entry.js +4 -4
  125. package/dist/esm/db-stack.entry.js +3 -3
  126. package/dist/esm/db-switch.entry.js +3 -3
  127. package/dist/esm/db-tab-item_3.entry.js +7 -7
  128. package/dist/esm/db-tabs.entry.js +3 -3
  129. package/dist/esm/db-textarea.entry.js +3 -3
  130. package/dist/esm/db-tooltip.entry.js +6 -5
  131. package/dist/esm/db-ux.js +4 -4
  132. package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
  133. package/dist/esm/{index-B6-lLNGQ.js → index-05XnVETo.js} +22 -50
  134. package/dist/esm/index.js +3 -6
  135. package/dist/esm/loader.js +3 -3
  136. package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
  137. package/dist/types/components/custom-select/custom-select.d.ts +1 -1
  138. package/dist/types/components.d.ts +582 -159
  139. package/dist/types/index.d.ts +0 -2
  140. package/dist/types/shared/model.d.ts +4 -6
  141. package/dist/types/stencil-public-runtime.d.ts +24 -1
  142. package/dist/vscode.html-custom-data.json +8 -158
  143. package/dist/web-types.json +31 -276
  144. package/package.json +4 -4
  145. package/dist/collection/components/loading-indicator/examples/_indicators.data.js +0 -91
  146. package/dist/collection/components/loading-indicator/index.js +0 -2
  147. package/dist/collection/components/loading-indicator/loading-indicator.js +0 -713
  148. package/dist/collection/components/loading-indicator/model.js +0 -2
  149. package/dist/db-ux/p-19def2d3.entry.js +0 -1
  150. package/dist/db-ux/p-5c55381c.entry.js +0 -1
  151. package/dist/db-ux/p-69ebe202.entry.js +0 -1
  152. package/dist/db-ux/p-78fd1504.entry.js +0 -1
  153. package/dist/db-ux/p-7c0621ef.entry.js +0 -1
  154. package/dist/db-ux/p-8ff8418d.entry.js +0 -1
  155. package/dist/db-ux/p-B6-lLNGQ.js +0 -2
  156. package/dist/db-ux/p-G-TursYV.js +0 -1
  157. package/dist/db-ux/p-a01a5c4a.entry.js +0 -1
  158. package/dist/db-ux/p-b05bc567.entry.js +0 -1
  159. package/dist/db-ux/p-c1825fa6.entry.js +0 -1
  160. package/dist/db-ux/p-e847596c.entry.js +0 -1
  161. package/dist/db-ux/p-f71548d2.entry.js +0 -1
  162. package/dist/types/components/loading-indicator/examples/_indicators.data.d.ts +0 -49
  163. package/dist/types/components/loading-indicator/index.d.ts +0 -2
  164. package/dist/types/components/loading-indicator/loading-indicator.d.ts +0 -56
  165. package/dist/types/components/loading-indicator/model.d.ts +0 -39
@@ -81,9 +81,9 @@ export class DBHeader {
81
81
  }
82
82
  render() {
83
83
  var _a;
84
- return (h("header", { key: 'f701b77c43467d06b10c109ff60694f70746eaf8', class: cls("db-header", this.className), ref: (el) => {
84
+ return (h("header", { key: 'f9850f5a6f59bee2ed97db4baea343e07aaff91a', class: cls("db-header", this.className), ref: (el) => {
85
85
  this._ref = el;
86
- }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '18c1b671c898c183bb352bb5f41978325cfa272e', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'dd79824d62aa735869d10c1d667a64de2ed61cd7', class: "db-header-drawer-navigation" }, h("div", { key: 'baab299c370aeb0133022ac8715a97af2d41e598', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '25fba42e53aedf89b9efcd6479df4a20c31b37a0' })), h("div", { key: 'ee9e0fab26a77cbc44edda5f200e6d52e24d4ae6', class: "db-header-meta-navigation" }, h("slot", { key: '6a94b711843f10518e84f335df875d6d454d28a0', name: "metaNavigation" }))), h("div", { key: '1a9f4e2ccb9ffaddbbf19ee640dc82d0db009ffa', class: "db-header-secondary-action" }, h("slot", { key: '23f705f72608e8b5fa08fabc0f97ce61449fa388', name: "secondaryAction" }))), h("div", { key: 'a033891b1a8260327c56591fb12516dbe159b5e1', class: "db-header-meta-navigation" }, h("slot", { key: 'cfa5ffd51164e184eb68e04e8d83f3fd7ba94927', name: "metaNavigation" })), h("div", { key: '04430a76404e9e282b7249beee655a8e86d78dd2', class: "db-header-navigation-bar" }, h("div", { key: '5461e8c087ae579079017b738fb4ac36ddd44624', class: "db-header-brand-container" }, h("slot", { key: 'eed71de59cfb3cc65dc24797830bb4b7243a09f6', name: "brand" })), h("div", { key: 'c83e6866e91abc17fbe6ef06f3e976c8237644e7', class: "db-header-navigation-container" }, h("div", { key: '7cd0f313b6d25b400e0f0324b6f9d7e0f4dab61e', class: "db-header-navigation" }, h("slot", { key: '850c0eb5d3f7979a311880e3cf7b4c6484668ac3' })), h("div", { key: '48c8d805965f4bf8d443fa66bf2d8f9b46e30377', class: "db-header-primary-action" }, h("slot", { key: '42b4b88ecb12aedd83aaf97411c746a222ef7e83', name: "primaryAction" }))), h("div", { key: '836ed1d499998a707bc302443ed4885ec3347a0b', class: "db-header-action-container" }, h("div", { key: '8a483f37b9de0e49a97c352690dcfc9b3e457aba', class: "db-header-burger-menu-container" }, h("db-button", { key: '32e96e0f6ae32b0c56d4540307a5cf5e92e35822', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: 'c0db759bb4ce588e6d2302e3284908501fa556cb', class: "db-header-secondary-action" }, h("slot", { key: 'c2b198053cb8c57eeeb18153691b926627787083', name: "secondaryAction" }))))));
86
+ }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'a42c28439d07e97a3842efe4fa1c143c23691b5f', class: "db-header-drawer-navigation" }, h("div", { key: '141165e04574db312d51b0b4c376c53ddace243e', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '2208e0677b1f15da56fd6be230523559fcb5f1da' })), h("div", { key: 'fb980500cdb2f6f3ce2fce2489c48ac27ebd256a', class: "db-header-meta-navigation" }, h("slot", { key: '7eea7189a1e82821fc3f0bd600bda5a040382e88', name: "metaNavigation" }))), h("div", { key: 'a492419586593d43edbada69ad136ad832902e15', class: "db-header-secondary-action" }, h("slot", { key: '90ed75a19c230c3a2af94b8e0b397c8712f9a0df', name: "secondaryAction" }))), h("div", { key: '1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4', class: "db-header-meta-navigation" }, h("slot", { key: 'd92c5a30a0131225f2b7b1428c5121fed241d8a7', name: "metaNavigation" })), h("div", { key: 'f65c8e6b2b997c281046f20e1ac7c89d8b5697f6', class: "db-header-navigation-bar" }, h("div", { key: 'be1e1017417595bbb4ff845b650f5edef1f4fd49', class: "db-header-brand-container" }, h("slot", { key: '5552b137967ae4659887ad67514fd0078ced1473', name: "brand" })), h("div", { key: '682e11b41f5131feb17cdf1e175b9bbcf8399740', class: "db-header-navigation-container" }, h("div", { key: '29f5a7afa6d8c014f6e574d72198289970e5324e', class: "db-header-navigation" }, h("slot", { key: 'f03956cf3368d3ec0dbaab3b3091c276eaf03a92' })), h("div", { key: '8a81b9ee537f84e14c9d41acf323552d6f239748', class: "db-header-primary-action" }, h("slot", { key: '78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6', name: "primaryAction" }))), h("div", { key: 'e1e913c181df2f73cc9fe4cda17f505a26b1ad04', class: "db-header-action-container" }, h("div", { key: '92d7c9c0e50f9aa86e15c18a2ac7dddabc241358', class: "db-header-burger-menu-container" }, h("db-button", { key: '775ca507ba24b19e411e529e9ad67fcdfa6f3dea', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: '7cd5a16e27c72e3e0635056df8bcb7f45461c9fb', class: "db-header-secondary-action" }, h("slot", { key: '09669c165311f8dc95961c64900d5ab36281700a', name: "secondaryAction" }))))));
87
87
  }
88
88
  static get is() { return "db-header"; }
89
89
  static get properties() {
@@ -41,7 +41,7 @@ export class DBIcon {
41
41
  this.enableAttributePassing(this._ref, "db-icon");
42
42
  }
43
43
  render() {
44
- return (h("span", { key: 'f74b58da121bb69df759870f24684f15fc63cd3c', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
44
+ return (h("span", { key: '3a67532009f85e493784e99774e230f52c588ccc', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
45
45
  this._ref = el;
46
46
  }, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
47
47
  }
@@ -42,7 +42,7 @@ export class DBLink {
42
42
  }
43
43
  render() {
44
44
  var _a, _b;
45
- return (h("a", { key: '9eec6b26274544cc6325624ad4028039610c8b2a', class: cls("db-link", this.className), ref: (el) => {
45
+ return (h("a", { key: 'a43d8889621390017c07dda184c570e54d7f81e0', class: cls("db-link", this.className), ref: (el) => {
46
46
  this._ref = el;
47
47
  }, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_a = this.referrerpolicy) !== null && _a !== void 0 ? _a : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
48
48
  }
@@ -46,9 +46,9 @@ export class DBNavigation {
46
46
  this._id = this.id || "navigation-" + uuid();
47
47
  }
48
48
  render() {
49
- return (h("nav", { key: '7ca06eb30c08a1b7a595a92d156cc35e1ed1fab0', class: cls("db-navigation", this.className), ref: (el) => {
49
+ return (h("nav", { key: 'ed27159179b89985cbf0711be7dc494ca820cf75', class: cls("db-navigation", this.className), ref: (el) => {
50
50
  this._ref = el;
51
- }, id: this._id }, h("menu", { key: '9fb0d02c73a39da0efa0e50f1b7836af84e729d7' }, h("slot", { key: '3f21156518d0bae763c8cd43a59b2d4bb579fa1e' }))));
51
+ }, id: this._id }, h("menu", { key: '6aa518535f6c802abec874a174d6e8d028572269' }, h("slot", { key: '2307ee2093cf4bcec3c8f4b8d5e8e88a8d78cf08' }))));
52
52
  }
53
53
  static get is() { return "db-navigation"; }
54
54
  static get properties() {
@@ -106,7 +106,7 @@ export class DBNavigationItem {
106
106
  }
107
107
  render() {
108
108
  var _a;
109
- return (h("li", { key: '2c1d3b2db5597946df4ea8bab748be7a3f4fe46a', class: cls("db-navigation-item", this.className), ref: (el) => {
109
+ return (h("li", { key: 'd00b7b4852a729301d545abaf1a65cd3e0cdcee7', class: cls("db-navigation-item", this.className), ref: (el) => {
110
110
  this._ref = el;
111
111
  }, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, id: this.subNavigationId, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
112
112
  }
@@ -52,13 +52,13 @@ export class DBNotification {
52
52
  }
53
53
  render() {
54
54
  var _a;
55
- return (h("div", { key: 'c02c5f52518a3ec9ef881a31c7fbfb82e6916ceb', class: cls("db-notification", this.className), ref: (el) => {
55
+ return (h("div", { key: 'd1b82284e12ea68b7b33ba90a760ebcd0ec867e2', class: cls("db-notification", this.className), ref: (el) => {
56
56
  this._ref = el;
57
57
  }, id: this.id, role: getNotificationRole({
58
58
  semantic: this.semantic,
59
59
  role: this.role,
60
60
  ariaLive: this.ariaLive,
61
- }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '6aa1d954e740bedd0fcd01698c2d96b6949f25a5', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '8319a32b151cd2fdfe68cf60d87efb5a0e2363b6' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: 'a2d398e89f54e8c9207e2865ed238c0a8672bfd8', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)) : null));
61
+ }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: 'a468ad7c9373bc359e404751ab736b7049e5bbe8', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '95f58e30be3685db12507152d980f6e2909b557a' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: 'd3c2d44714e5e332deae28d98ee800f8fb281f3f', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)) : null));
62
62
  }
63
63
  static get is() { return "db-notification"; }
64
64
  static get properties() {
@@ -61,9 +61,9 @@ export class DBPage {
61
61
  }
62
62
  }
63
63
  render() {
64
- return (h("div", { key: '0596f3a43bd9fb3eb3a5bf9db63bdf8f899b14ec', class: cls("db-page", this.className), ref: (el) => {
64
+ return (h("div", { key: '005b795411eb8ae8717d978eae32db515f7f6d87', class: cls("db-page", this.className), ref: (el) => {
65
65
  this._ref = el;
66
- }, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '44cab7ad5f1bbb8a89cec4702923d4f9956f9bcf', name: "header" }), h("main", { key: '2906f8b81485a608181844f7c8214e1c85c1c8cb', class: cls("db-main", this.mainClass) }, h("slot", { key: '1382d4f336daeda7c72dd6e72307e4ee3033ccd9' })), h("slot", { key: '96a74899d394ce2b669a5fe67ff02d6788041732', name: "footer" })));
66
+ }, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: 'd9afe2076d0f115c2e7e8dc362ccd6e1dd3c4df7', name: "header" }), h("main", { key: '2002d9fbc8a71df9d042da0e77dbdce9d9bd9ab5', class: cls("db-main", this.mainClass) }, h("slot", { key: '40fdc82ff79391f41ba9bd1886959e7f84ab7626' })), h("slot", { key: '0468545812365d7124bf4e3e9f9045aacce6786a', name: "footer" })));
67
67
  }
68
68
  static get is() { return "db-page"; }
69
69
  static get properties() {
@@ -27,7 +27,7 @@ export class DBPopover {
27
27
  const article = this._ref.querySelector("article");
28
28
  if (article) {
29
29
  // This is a workaround for angular
30
- utilsDelay(() => {
30
+ void utilsDelay(() => {
31
31
  var _a;
32
32
  handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
33
33
  }, 1);
@@ -166,9 +166,9 @@ export class DBPopover {
166
166
  }
167
167
  render() {
168
168
  var _a;
169
- return (h("div", { key: '409561d2c2dec5345bcab7bbdc92a344bb6f2069', class: cls("db-popover", this.className), ref: (el) => {
169
+ return (h("div", { key: 'b8da95165af96a1486a2a90df63886c98d73ff42', class: cls("db-popover", this.className), ref: (el) => {
170
170
  this._ref = el;
171
- }, id: this.id }, h("slot", { key: '8e9a5843169346cd41cb531fd735174a87a92cd2', name: "trigger" }), h("article", { key: '00ee2110c7c4a5df9bf293b8efb0bf8e644a07e2', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: 'cc09e84718d750bb182c633204ae42cb07a2e94d' }))));
171
+ }, id: this.id }, h("slot", { key: 'a8aabd06a96b791d23fa7bc037ad22feff8a370b', name: "trigger" }), h("article", { key: 'c349d59d154d8285ac4df1f1093503a65f1cad2d', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '76e4010918fec2ef4f79a6e7a10a79bc9744802a' }))));
172
172
  }
173
173
  static get is() { return "db-popover"; }
174
174
  static get properties() {
@@ -109,7 +109,7 @@ export class DBRadio {
109
109
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
110
110
  }
111
111
  render() {
112
- return (h("label", { key: '9c6681364dff418c05708d40a81c69b8779037e6', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: 'd3902515f8019bfbf1e39ae03974fc4edab34af5', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
112
+ return (h("label", { key: '2d573f1bd633fdedf2fde15c11d52cfa8a70b3ef', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: 'dd0ae78f833d0cd170824fd38aef50797529557a', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
113
113
  this._ref = el;
114
114
  }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : h("slot", null)));
115
115
  }
@@ -41,9 +41,9 @@ export class DBSection {
41
41
  this.enableAttributePassing(this._ref, "db-section");
42
42
  }
43
43
  render() {
44
- return (h("section", { key: 'fdb7506b1167523251283873a51a066d8e30cf1e', class: cls("db-section", this.className), ref: (el) => {
44
+ return (h("section", { key: '2d9f2702a0f18b257a3517ff002ff45984e07016', class: cls("db-section", this.className), ref: (el) => {
45
45
  this._ref = el;
46
- }, id: this.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: 'c0ee964ba8a8cbc41aa9d86194fdca837c1454c2' })));
46
+ }, id: this.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: 'c432a712362af876cadc2c40946280272886e74c' })));
47
47
  }
48
48
  static get is() { return "db-section"; }
49
49
  static get properties() {
@@ -216,14 +216,14 @@ export class DBSelect {
216
216
  }
217
217
  render() {
218
218
  var _a, _b, _c, _d, _e;
219
- return (h("div", { key: '5e43d8dedb742b468664f73828fb4b73fef2974a', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'cb80161c07a61b559ce4ac673975158df8bbdef3', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: 'b467fceec86ce6335ffef3763ebdb70ba5dee8e2', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
219
+ return (h("div", { key: '50e43dc0ffe52d1683df95a336201616975d7e22', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '5bbc909caa2c33aea4e4e2956d8bc133f939fd13', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: 'b6ef5a4f622219ee38433f643959c7db039a67db', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
220
220
  this._ref = el;
221
221
  }, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
222
222
  /* @ts-ignore */
223
223
  value: (_b = this.value) !== null && _b !== void 0 ? _b : this._value, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_c = this.ariaDescribedBy) !== null && _c !== void 0 ? _c : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_d = this.options) === null || _d === void 0 ? void 0 : _d.length) ? ((_e = this.options) === null || _e === void 0 ? void 0 : _e.map((option) => {
224
224
  var _a;
225
- return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option) }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected }, this.getOptionLabel(option)))));
226
- })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '8ba0d50a8732ebca71d7f1cb39868aaf81ee8814', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '9fa3b0f3ff448911c82bc2fb4b2fe88b295cc715', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
225
+ return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
226
+ })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '79703f10ff7c61b481e34e98ef2ad45133a3e2a4', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'e4667735054c370c14a954219060cc27b0a9007f', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
227
227
  }
228
228
  static get is() { return "db-select"; }
229
229
  static get properties() {
@@ -41,9 +41,9 @@ export class DBStack {
41
41
  this.enableAttributePassing(this._ref, "db-stack");
42
42
  }
43
43
  render() {
44
- return (h("div", { key: 'ac699e5febc5703f47f9c3427e2a6cd1004927b5', class: cls("db-stack", this.className), ref: (el) => {
44
+ return (h("div", { key: '64a5a45be3cfecebbe4fff818f6cbfeee462513c', class: cls("db-stack", this.className), ref: (el) => {
45
45
  this._ref = el;
46
- }, id: this.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: '7ad7fb4ca373c4b5b209e5b687bac5c9ffcbabfa' })));
46
+ }, id: this.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: '69bd35bb73645e26b9819c7d9fc062cba032b4d7' })));
47
47
  }
48
48
  static get is() { return "db-stack"; }
49
49
  static get properties() {
@@ -155,9 +155,9 @@ export class DBSwitch {
155
155
  }
156
156
  render() {
157
157
  var _a, _b, _c, _d;
158
- return (h("div", { key: '7f78c7b627c547924b52882f4fe1eb14e351c4a6', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: 'e627f1aabce606131fe8d3a42dbe456cd92b9729', htmlFor: this._id }, h("input", { key: '4798f66f7a9902f2d231ee3f8c4148bcb18a43ac', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
158
+ return (h("div", { key: 'f2dab897c89fa8aadd97abe59e81b4d7ef4561c5', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: '8d7c3e44a9f7c565224124d499abe6c3b96582f6', htmlFor: this._id }, h("input", { key: '1cba4d3dbe46c97cd9039442e61eb0d9baab0587', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
159
159
  this._ref = el;
160
- }, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : h("slot", null)), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '2ea7f182d6d9057e9ac9f3f6099439bda32ee0a5', size: "small", semantic: "critical", id: this._invalidMessageId }, (_d = (_c = this._invalidMessage) !== null && _c !== void 0 ? _c : this.invalidMessage) !== null && _d !== void 0 ? _d : DEFAULT_INVALID_MESSAGE), h("span", { key: '8838f4b3dffd9a17061e3b57f8ef5f963763bef3', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
160
+ }, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : h("slot", null)), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '9495dfc7fb2e3947f21b834792c4caeab411bbd0', size: "small", semantic: "critical", id: this._invalidMessageId }, (_d = (_c = this._invalidMessage) !== null && _c !== void 0 ? _c : this.invalidMessage) !== null && _d !== void 0 ? _d : DEFAULT_INVALID_MESSAGE), h("span", { key: '6e6b325689130fc5cdeef86d3a4f59299b5f8450', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
161
161
  }
162
162
  static get is() { return "db-switch"; }
163
163
  static get properties() {
@@ -109,9 +109,9 @@ export class DBTabItem {
109
109
  }
110
110
  render() {
111
111
  var _a, _b;
112
- return (h("li", { key: '0c6075d3d7ff13223b1a56901c25066413c9aca3', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: '6861488d412e24aefdcabc6728486f8028cb7eb9', htmlFor: this.id, "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString((_b = this.showIconLeading) !== null && _b !== void 0 ? _b : this.showIcon), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-no-text": getBooleanAsString(this.noText) }, h("input", { key: '5bc826c7f6b65c1be3ef74097912fb166a88e0c7', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
112
+ return (h("li", { key: '9bbc9bdc6c450f62ce790a2662b165f9fad484ea', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: 'e3a4e3afdd250587b5d0cef54eb7d8302980199f', htmlFor: this.id, "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString((_b = this.showIconLeading) !== null && _b !== void 0 ? _b : this.showIcon), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-no-text": getBooleanAsString(this.noText) }, h("input", { key: '372cd912646fd40dc31f49d344d60526442a0f7a', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
113
113
  this._ref = el;
114
- }, name: this._name, id: this.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '4f1eec8f005b8cb9cef0db1d8784fa619b9a5784' }))));
114
+ }, name: this._name, id: this.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '843e696cad853b5ce9d582f210efe86f3d270cb8' }))));
115
115
  }
116
116
  static get is() { return "db-tab-item"; }
117
117
  static get properties() {
@@ -46,9 +46,9 @@ export class DBTabList {
46
46
  this._id = this.id || "tab-list-" + uuid();
47
47
  }
48
48
  render() {
49
- return (h("div", { key: 'e4d71a4ffabd095644e3b5f0b7e09387e810f507', class: cls("db-tab-list", this.className), ref: (el) => {
49
+ return (h("div", { key: '4ef0a69cacaafb2205ebfea7826c3c1f64a84411', class: cls("db-tab-list", this.className), ref: (el) => {
50
50
  this._ref = el;
51
- }, id: this._id }, h("ul", { key: '05e7014331425c6b71f80fb38ea6edb8e41ad38f', role: "tablist" }, h("slot", { key: '6467c24bf96e42d4bf27426a52190c99dc27c02f' }))));
51
+ }, id: this._id }, h("ul", { key: 'cfdccc43bd366eb9c71137918a8ca92fd6a81b69', role: "tablist" }, h("slot", { key: 'c09711c4b398a3d6b26d62c87aaf0f050af32bdb' }))));
52
52
  }
53
53
  static get is() { return "db-tab-list"; }
54
54
  static get properties() {
@@ -41,9 +41,9 @@ export class DBTabPanel {
41
41
  this.enableAttributePassing(this._ref, "db-tab-panel");
42
42
  }
43
43
  render() {
44
- return (h("section", { key: '48de8c67facfb05c2988c3d69566c4b68c507405', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
44
+ return (h("section", { key: '312ef04379d3b4a094999f02ac919e3b0ac31877', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
45
45
  this._ref = el;
46
- }, id: this.id }, this.content ? this.content : null, h("slot", { key: 'a6adc5d34e5c5a7abb6c34fa12d23bf208d2ef2b' })));
46
+ }, id: this.id }, this.content ? this.content : null, h("slot", { key: '7848155bb7734db6835c0fe7fcf85eb37635110d' })));
47
47
  }
48
48
  static get is() { return "db-tab-panel"; }
49
49
  static get properties() {
@@ -204,10 +204,10 @@ export class DBTabs {
204
204
  }
205
205
  render() {
206
206
  var _a, _b, _c, _d;
207
- return (h("div", { key: '96c8670519fc8e178121be97b419e35cfb826075', class: cls("db-tabs", this.className), ref: (el) => {
207
+ return (h("div", { key: 'a53c2737f8238bbe266baa7d6e3f90649c52512a', class: cls("db-tabs", this.className), ref: (el) => {
208
208
  this._ref = el;
209
209
  }, id: this._id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_a = this.alignment) !== null && _a !== void 0 ? _a : "start", "data-width": (_b = this.width) !== null && _b !== void 0 ? _b : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_c = this.convertTabs()) === null || _c === void 0 ? void 0 : _c.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_d = this.convertTabs()) === null || _d === void 0 ? void 0 :
210
- _d.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '9f3f2fb4835adb10824bdb5410dabb694d4d5fbb' })));
210
+ _d.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: 'e8cf7f0c576b73cdd459ab4cf1f07f14c5ed1657' })));
211
211
  }
212
212
  static get is() { return "db-tabs"; }
213
213
  static get properties() {
@@ -58,9 +58,9 @@ export class DBTag {
58
58
  }
59
59
  render() {
60
60
  var _a;
61
- return (h("div", { key: '6be4d8cc4b856ac198e4c207860e9529c436060f', class: cls("db-tag", this.className), ref: (el) => {
61
+ return (h("div", { key: 'db86fabfde3f9d1e41a863f58db34eb88d067440', class: cls("db-tag", this.className), ref: (el) => {
62
62
  this._ref = el;
63
- }, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '3ed9ce9b0eb66bb92a2c4a5303be1b0d16001841', name: "content" }), h("slot", { key: '9098de64b545b04f81f6a980700879610f9ec7bc' }), this.text ? this.text : null, this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
63
+ }, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '1bef11e30ca670fa5bf1d438cd12c43e233cded4', name: "content" }), h("slot", { key: '3f94141f60688d0730478711748fa9dbb194f810' }), this.text ? this.text : null, this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
64
64
  }
65
65
  static get is() { return "db-tag"; }
66
66
  static get properties() {
@@ -182,10 +182,10 @@ export class DBTextarea {
182
182
  }
183
183
  render() {
184
184
  var _a, _b, _c, _d, _e;
185
- return (h("div", { key: '523bebc81d6e424b5d03762aeab7033f9d0aafb2', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '4054a26429d9e71770ec179563c523eea3fbafb7', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '07b74b6868d4b9eed859ae09fb8a7658700e1c57', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
185
+ return (h("div", { key: '3ac7e870ca2c9d8f366f07797fc15c238ddeab50', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: 'd3d0e209d0a14a54975cce835e50e4f57d09d1bd', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '7e7dce4db9a84230a9c736039eefd58022944cf8', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
186
186
  this._ref = el;
187
187
  }, id: this._id, "data-resize": this.resize, "data-hide-resizer": getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), readOnly: getBoolean(this.readOnly, "readOnly") ||
188
- getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_c = this.value) !== null && _c !== void 0 ? _c : this._value, "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds, placeholder: (_e = this.placeholder) !== null && _e !== void 0 ? _e : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'e305c1b1827697e920467a34a3dbf895c664ad20', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'efb2b1f4d91fbf5c6fedb83dc771f9a8111c8f55', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
188
+ getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_c = this.value) !== null && _c !== void 0 ? _c : this._value, "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds, placeholder: (_e = this.placeholder) !== null && _e !== void 0 ? _e : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'dc153c224d3acafa0a8d7f3ad37317b76cba01b8', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '21cd2120d06ec2891979d7a7fc0f1041031dabf2', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
189
189
  }
190
190
  static get is() { return "db-textarea"; }
191
191
  static get properties() {
@@ -37,7 +37,7 @@ export class DBTooltip {
37
37
  return;
38
38
  if (this._ref) {
39
39
  // This is a workaround for angular
40
- utilsDelay(() => {
40
+ void utilsDelay(() => {
41
41
  var _a;
42
42
  // Due to race conditions we need to check for _ref again
43
43
  if (this._ref) {
@@ -102,6 +102,7 @@ export class DBTooltip {
102
102
  if (this._ref && this.initialized && this._id) {
103
103
  const parent = this.getParent();
104
104
  if (parent) {
105
+ this.handleAutoPlacement(parent);
105
106
  ["mouseenter", "focusin"].forEach((event) => {
106
107
  parent.addEventListener(event, () => this.handleEnter(parent));
107
108
  });
@@ -139,9 +140,9 @@ export class DBTooltip {
139
140
  }
140
141
  render() {
141
142
  var _a, _b;
142
- return (h("i", { key: '0d352dbcd314a108dd543c0dbd5a1f3f3a0f9b9b', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
143
+ return (h("i", { key: 'e00df6c3323a5e03dcdab1b3b995921cad86a7d9', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
143
144
  this._ref = el;
144
- }, id: this._id, "data-emphasis": this.emphasis, "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, h("slot", { key: '8770a8d9640932a47f5d7f3a87a34029c58e83e6' })));
145
+ }, id: this._id, "data-emphasis": this.emphasis, "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, h("slot", { key: 'a08164faf64e493d0aebf674478f0125affd7a09' })));
145
146
  }
146
147
  static get is() { return "db-tooltip"; }
147
148
  static get properties() {
@@ -77,5 +77,3 @@ export * from './utils/document-scroll-listener';
77
77
  export * from './utils/floating-components';
78
78
  export * from './utils/index';
79
79
  export * from './utils/navigation';
80
- export * from "./components/loading-indicator";
81
- export * from "./components/loading-indicator/model";
@@ -228,10 +228,54 @@ export const getFloatingProps = (element, parent, placement) => {
228
228
  innerHeight
229
229
  };
230
230
  };
231
+ const MAX_ANCESTOR_DEPTH = 10;
232
+ const ancestorCache = new WeakMap();
233
+ const getAncestorHasCorrectedPlacement = (element) => {
234
+ if (ancestorCache.has(element)) {
235
+ return ancestorCache.get(element);
236
+ }
237
+ let current = element.parentElement;
238
+ let anchor = 0;
239
+ while (current && anchor < MAX_ANCESTOR_DEPTH) {
240
+ if (current.dataset['correctedPlacement']) {
241
+ ancestorCache.set(element, current);
242
+ return current;
243
+ }
244
+ current = current.parentElement;
245
+ anchor += 1;
246
+ }
247
+ ancestorCache.set(element, null);
248
+ return null;
249
+ };
231
250
  export const handleFixedPopover = (element, parent, placement) => {
232
- var _a;
233
- const distance = (_a = getComputedStyle(element).getPropertyValue('--db-popover-distance')) !== null && _a !== void 0 ? _a : '0px';
234
- const { top, height, width, childHeight, childWidth, right, left, bottom, correctedPlacement, innerWidth, innerHeight } = getFloatingProps(element, parent, placement);
251
+ var _a, _b;
252
+ const parentComputedStyles = getComputedStyle(parent);
253
+ const parentHasFloatingPosition = ['absolute', 'fixed'].includes(parentComputedStyles.position);
254
+ const ancestorWithCorrectedPlacement = getAncestorHasCorrectedPlacement(element);
255
+ const noFloatingAncestor = !ancestorWithCorrectedPlacement && !parentHasFloatingPosition;
256
+ const distance = (_b = (_a = getComputedStyle(element)) === null || _a === void 0 ? void 0 : _a.getPropertyValue('--db-popover-distance')) !== null && _b !== void 0 ? _b : '0px';
257
+ let { top, height, width, childHeight, childWidth, right, left, bottom, correctedPlacement, innerWidth, innerHeight } = getFloatingProps(element, parent, placement);
258
+ if (ancestorWithCorrectedPlacement) {
259
+ const ancestorRect = ancestorWithCorrectedPlacement.getBoundingClientRect();
260
+ left = Math.abs(left - ancestorRect.left);
261
+ right = (width + Math.abs(right - ancestorRect.right)) * 1.5; // We add a transform -50% later
262
+ top = Math.abs(top - ancestorRect.top);
263
+ bottom = (height + Math.abs(bottom - ancestorRect.bottom)) * 1.5; // We add a transform -50% later
264
+ }
265
+ if (parentHasFloatingPosition) {
266
+ /*
267
+ * If we have a floating element inside an element with position:absolute/fixed
268
+ * we need to calculate with relative values
269
+ * */
270
+ left = 0;
271
+ right = width;
272
+ top = 0;
273
+ bottom = height;
274
+ if (['auto', 'inherit', '0'].includes(parentComputedStyles.zIndex)) {
275
+ // We need the default zIndex for floating elements on the parent
276
+ parent.style.zIndex = '1';
277
+ }
278
+ }
235
279
  // Tooltip arrow position
236
280
  if (childWidth > width && (correctedPlacement.startsWith('bottom') || correctedPlacement.startsWith('top'))) {
237
281
  const diff = width / 2 / childWidth * 100;
@@ -241,6 +285,9 @@ export const handleFixedPopover = (element, parent, placement) => {
241
285
  else if (correctedPlacement.endsWith('end')) {
242
286
  element.style.setProperty('--db-tooltip-arrow-inline-start', `${100 - diff}%`);
243
287
  }
288
+ else {
289
+ element.style.setProperty('--db-tooltip-arrow-inline-start', `50%`);
290
+ }
244
291
  }
245
292
  if (childHeight > height && (correctedPlacement.startsWith('left') || correctedPlacement.startsWith('bottom'))) {
246
293
  const diff = height / 2 / childHeight * 100;
@@ -250,6 +297,9 @@ export const handleFixedPopover = (element, parent, placement) => {
250
297
  else if (correctedPlacement.endsWith('end')) {
251
298
  element.style.setProperty('--db-tooltip-arrow-block-start', `${100 - diff}%`);
252
299
  }
300
+ else {
301
+ element.style.setProperty('--db-tooltip-arrow-block-start', `50%`);
302
+ }
253
303
  }
254
304
  // Popover position
255
305
  if (correctedPlacement === 'right' || correctedPlacement === 'left') {
@@ -259,11 +309,11 @@ export const handleFixedPopover = (element, parent, placement) => {
259
309
  else if (correctedPlacement === 'right-start' || correctedPlacement === 'left-start') {
260
310
  const end = top + childHeight;
261
311
  element.style.insetBlockStart = `${top}px`;
262
- element.style.insetBlockEnd = `${end > innerHeight ? innerHeight : end}px`;
312
+ element.style.insetBlockEnd = `${!parentHasFloatingPosition && end > innerHeight ? innerHeight : end}px`;
263
313
  }
264
314
  else if (correctedPlacement === 'right-end' || correctedPlacement === 'left-end') {
265
315
  const start = bottom - childHeight;
266
- element.style.insetBlockStart = `${start < 0 ? 0 : start}px`;
316
+ element.style.insetBlockStart = `${!parentHasFloatingPosition && start < 0 ? 0 : start}px`;
267
317
  element.style.insetBlockEnd = `${bottom}px`;
268
318
  }
269
319
  else if (correctedPlacement === 'top' || correctedPlacement === 'bottom') {
@@ -273,32 +323,32 @@ export const handleFixedPopover = (element, parent, placement) => {
273
323
  else if (correctedPlacement === 'top-start' || correctedPlacement === 'bottom-start') {
274
324
  const end = left + childWidth;
275
325
  element.style.insetInlineStart = `${left}px`;
276
- element.style.insetInlineEnd = `${end > innerWidth ? innerWidth : end}px`;
326
+ element.style.insetInlineEnd = `${!parentHasFloatingPosition && end > innerWidth ? innerWidth : end}px`;
277
327
  }
278
328
  else if (correctedPlacement === 'top-end' || correctedPlacement === 'bottom-end') {
279
- const start = left - childWidth;
280
- element.style.insetInlineStart = `${right - childWidth}px`;
281
- element.style.insetInlineEnd = `${start < 0 ? 0 : start}px`;
329
+ const start = right - childWidth;
330
+ element.style.insetInlineStart = `${!parentHasFloatingPosition && start < 0 ? 0 : start}px`;
331
+ element.style.insetInlineEnd = `${right}px`;
282
332
  }
283
333
  if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('right')) {
284
334
  const end = right + childWidth;
285
335
  element.style.insetInlineStart = `calc(${right}px + ${distance})`;
286
- element.style.insetInlineEnd = `calc(${end > innerWidth ? innerWidth : end}px + ${distance})`;
336
+ element.style.insetInlineEnd = `calc(${noFloatingAncestor && end > innerWidth ? innerWidth : end}px + ${distance})`;
287
337
  }
288
338
  else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('left')) {
289
339
  const start = left - childWidth;
290
- element.style.insetInlineStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
340
+ element.style.insetInlineStart = `calc(${noFloatingAncestor && start < 0 ? 0 : start}px - ${distance})`;
291
341
  element.style.insetInlineEnd = `calc(${right}px - ${distance})`;
292
342
  }
293
343
  else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('top')) {
294
344
  const start = top - childHeight;
295
- element.style.insetBlockStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
296
- element.style.insetBlockEnd = `calc(${bottom}px - ${distance})`;
345
+ element.style.insetBlockStart = `calc(${noFloatingAncestor && start < 0 ? 0 : start}px - ${distance})`;
346
+ element.style.insetBlockEnd = `calc(${parentHasFloatingPosition ? start : bottom}px - ${distance})`;
297
347
  }
298
348
  else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('bottom')) {
299
349
  const end = bottom + childHeight;
300
- element.style.insetBlockStart = `calc(${bottom}px + ${distance})`;
301
- element.style.insetBlockEnd = `calc(${end > innerHeight ? innerHeight : end}px + ${distance})`;
350
+ element.style.insetBlockStart = `calc(${parentHasFloatingPosition ? end : bottom}px + ${distance})`;
351
+ element.style.insetBlockEnd = `calc(${noFloatingAncestor && end > innerHeight ? innerHeight : end}px + ${distance})`;
302
352
  }
303
353
  element.style.position = 'fixed';
304
354
  element.dataset['correctedPlacement'] = correctedPlacement;