@db-ux/wc-core-components 4.4.2 → 4.4.3

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 (184) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +9 -5
  3. package/dist/cjs/db-accordion.cjs.entry.js +8 -4
  4. package/dist/cjs/db-badge.cjs.entry.js +8 -4
  5. package/dist/cjs/db-brand.cjs.entry.js +8 -4
  6. package/dist/cjs/db-button.cjs.entry.js +8 -4
  7. package/dist/cjs/db-card.cjs.entry.js +9 -5
  8. package/dist/cjs/db-checkbox.cjs.entry.js +9 -5
  9. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +40 -20
  10. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +9 -5
  11. package/dist/cjs/db-custom-select.cjs.entry.js +14 -10
  12. package/dist/cjs/db-divider.cjs.entry.js +8 -4
  13. package/dist/cjs/db-drawer.cjs.entry.js +10 -6
  14. package/dist/cjs/db-header.cjs.entry.js +11 -7
  15. package/dist/cjs/db-icon.cjs.entry.js +8 -4
  16. package/dist/cjs/db-infotext.cjs.entry.js +8 -4
  17. package/dist/cjs/db-link.cjs.entry.js +8 -4
  18. package/dist/cjs/db-navigation-item.cjs.entry.js +10 -6
  19. package/dist/cjs/db-navigation.cjs.entry.js +9 -5
  20. package/dist/cjs/db-notification.cjs.entry.js +9 -5
  21. package/dist/cjs/db-page.cjs.entry.js +9 -5
  22. package/dist/cjs/db-popover.cjs.entry.js +11 -7
  23. package/dist/cjs/db-radio.cjs.entry.js +8 -4
  24. package/dist/cjs/db-section.cjs.entry.js +9 -5
  25. package/dist/cjs/db-select.cjs.entry.js +9 -5
  26. package/dist/cjs/db-stack.cjs.entry.js +9 -5
  27. package/dist/cjs/db-switch.cjs.entry.js +9 -5
  28. package/dist/cjs/db-tab-item_3.cjs.entry.js +25 -13
  29. package/dist/cjs/db-tabs.cjs.entry.js +9 -5
  30. package/dist/cjs/db-textarea.cjs.entry.js +9 -5
  31. package/dist/cjs/db-tooltip.cjs.entry.js +12 -7
  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-CEqZnn9s.js → index-Bh5ovRL2.js} +1 -1
  35. package/dist/cjs/index.cjs.js +2 -2
  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 -1
  39. package/dist/collection/components/accordion/accordion.js +7 -3
  40. package/dist/collection/components/accordion-item/accordion-item.js +8 -4
  41. package/dist/collection/components/badge/badge.js +7 -3
  42. package/dist/collection/components/brand/brand.js +7 -3
  43. package/dist/collection/components/button/button.js +7 -3
  44. package/dist/collection/components/card/card.js +8 -4
  45. package/dist/collection/components/checkbox/checkbox.js +8 -4
  46. package/dist/collection/components/custom-select/custom-select.js +12 -8
  47. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +8 -4
  48. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +8 -4
  49. package/dist/collection/components/custom-select-list/custom-select-list.js +8 -4
  50. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +7 -3
  51. package/dist/collection/components/divider/divider.js +7 -3
  52. package/dist/collection/components/drawer/drawer.js +9 -5
  53. package/dist/collection/components/header/header.js +8 -4
  54. package/dist/collection/components/icon/icon.js +7 -3
  55. package/dist/collection/components/infotext/infotext.js +7 -3
  56. package/dist/collection/components/input/input.js +8 -4
  57. package/dist/collection/components/link/link.js +7 -3
  58. package/dist/collection/components/navigation/navigation.js +8 -4
  59. package/dist/collection/components/navigation-item/navigation-item.js +7 -3
  60. package/dist/collection/components/notification/notification.js +8 -4
  61. package/dist/collection/components/page/page.js +8 -4
  62. package/dist/collection/components/popover/popover.js +9 -5
  63. package/dist/collection/components/radio/radio.js +7 -3
  64. package/dist/collection/components/section/section.js +8 -4
  65. package/dist/collection/components/select/select.js +8 -4
  66. package/dist/collection/components/stack/stack.js +8 -4
  67. package/dist/collection/components/switch/switch.js +13 -7
  68. package/dist/collection/components/tab-item/tab-item.js +8 -4
  69. package/dist/collection/components/tab-list/tab-list.js +8 -4
  70. package/dist/collection/components/tab-panel/tab-panel.js +8 -4
  71. package/dist/collection/components/tabs/tabs.js +8 -4
  72. package/dist/collection/components/tag/tag.js +8 -4
  73. package/dist/collection/components/textarea/textarea.js +8 -4
  74. package/dist/collection/components/tooltip/tooltip.js +10 -5
  75. package/dist/collection/utils/floating-components.js +65 -15
  76. package/dist/custom-elements.json +17369 -1424
  77. package/dist/db-ux/db-ux.esm.js +1 -1
  78. package/dist/db-ux/index.esm.js +1 -1
  79. package/dist/db-ux/p-1a72176e.entry.js +1 -0
  80. package/dist/db-ux/p-1b7f6a0b.entry.js +1 -0
  81. package/dist/db-ux/p-1da21066.entry.js +1 -0
  82. package/dist/db-ux/p-2d15e200.entry.js +1 -0
  83. package/dist/db-ux/p-312d52da.entry.js +1 -0
  84. package/dist/db-ux/p-3e6b86d6.entry.js +1 -0
  85. package/dist/db-ux/p-4aa16916.entry.js +1 -0
  86. package/dist/db-ux/p-4b69acea.entry.js +1 -0
  87. package/dist/db-ux/p-4cfff250.entry.js +1 -0
  88. package/dist/db-ux/p-5237e5d5.entry.js +1 -0
  89. package/dist/db-ux/p-5b1a0f0f.entry.js +1 -0
  90. package/dist/db-ux/p-5fa85b19.entry.js +1 -0
  91. package/dist/db-ux/p-64264628.entry.js +1 -0
  92. package/dist/db-ux/p-7351b5ab.entry.js +1 -0
  93. package/dist/db-ux/p-77150a25.entry.js +1 -0
  94. package/dist/db-ux/p-7c6b7578.entry.js +1 -0
  95. package/dist/db-ux/p-828a77d8.entry.js +1 -0
  96. package/dist/db-ux/p-9b47dc80.entry.js +1 -0
  97. package/dist/db-ux/p-DfYL98sI.js +1 -0
  98. package/dist/db-ux/p-a3a8ce36.entry.js +1 -0
  99. package/dist/db-ux/p-aa0f7280.entry.js +1 -0
  100. package/dist/db-ux/p-b07122c4.entry.js +1 -0
  101. package/dist/db-ux/p-b1fc0f4c.entry.js +1 -0
  102. package/dist/db-ux/p-c2624e1b.entry.js +1 -0
  103. package/dist/db-ux/p-c29d8e32.entry.js +1 -0
  104. package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
  105. package/dist/db-ux/p-cf50169a.entry.js +1 -0
  106. package/dist/db-ux/p-d4f3cfa2.entry.js +1 -0
  107. package/dist/db-ux/p-e05fee5a.entry.js +1 -0
  108. package/dist/db-ux/p-f40d2d61.entry.js +1 -0
  109. package/dist/db-ux/p-fcf8e274.entry.js +1 -0
  110. package/dist/db-ux/p-fe06f815.entry.js +1 -0
  111. package/dist/esm/db-accordion-item.entry.js +9 -5
  112. package/dist/esm/db-accordion.entry.js +8 -4
  113. package/dist/esm/db-badge.entry.js +8 -4
  114. package/dist/esm/db-brand.entry.js +8 -4
  115. package/dist/esm/db-button.entry.js +8 -4
  116. package/dist/esm/db-card.entry.js +9 -5
  117. package/dist/esm/db-checkbox.entry.js +9 -5
  118. package/dist/esm/db-custom-select-dropdown_5.entry.js +40 -20
  119. package/dist/esm/db-custom-select-form-field.entry.js +9 -5
  120. package/dist/esm/db-custom-select.entry.js +14 -10
  121. package/dist/esm/db-divider.entry.js +8 -4
  122. package/dist/esm/db-drawer.entry.js +10 -6
  123. package/dist/esm/db-header.entry.js +11 -7
  124. package/dist/esm/db-icon.entry.js +8 -4
  125. package/dist/esm/db-infotext.entry.js +8 -4
  126. package/dist/esm/db-link.entry.js +8 -4
  127. package/dist/esm/db-navigation-item.entry.js +10 -6
  128. package/dist/esm/db-navigation.entry.js +9 -5
  129. package/dist/esm/db-notification.entry.js +9 -5
  130. package/dist/esm/db-page.entry.js +9 -5
  131. package/dist/esm/db-popover.entry.js +11 -7
  132. package/dist/esm/db-radio.entry.js +8 -4
  133. package/dist/esm/db-section.entry.js +9 -5
  134. package/dist/esm/db-select.entry.js +9 -5
  135. package/dist/esm/db-stack.entry.js +9 -5
  136. package/dist/esm/db-switch.entry.js +9 -5
  137. package/dist/esm/db-tab-item_3.entry.js +25 -13
  138. package/dist/esm/db-tabs.entry.js +9 -5
  139. package/dist/esm/db-textarea.entry.js +9 -5
  140. package/dist/esm/db-tooltip.entry.js +12 -7
  141. package/dist/esm/db-ux.js +4 -4
  142. package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
  143. package/dist/esm/{index-BrThqi62.js → index-Crtu1dn6.js} +1 -1
  144. package/dist/esm/index.js +2 -2
  145. package/dist/esm/loader.js +3 -3
  146. package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
  147. package/dist/types/components/switch/model.d.ts +1 -1
  148. package/dist/types/components.d.ts +1 -0
  149. package/dist/types/shared/model.d.ts +2 -2
  150. package/dist/vscode.html-custom-data.json +1718 -294
  151. package/dist/web-types.json +2740 -666
  152. package/package.json +4 -4
  153. package/dist/db-ux/p-07bf3657.entry.js +0 -1
  154. package/dist/db-ux/p-0a89cbcd.entry.js +0 -1
  155. package/dist/db-ux/p-15539d9d.entry.js +0 -1
  156. package/dist/db-ux/p-41cb4673.entry.js +0 -1
  157. package/dist/db-ux/p-460073dd.entry.js +0 -1
  158. package/dist/db-ux/p-4a9b9909.entry.js +0 -1
  159. package/dist/db-ux/p-4ec09cf1.entry.js +0 -1
  160. package/dist/db-ux/p-57205dfd.entry.js +0 -1
  161. package/dist/db-ux/p-5775bf7a.entry.js +0 -1
  162. package/dist/db-ux/p-5bcde39a.entry.js +0 -1
  163. package/dist/db-ux/p-6341aaa9.entry.js +0 -1
  164. package/dist/db-ux/p-64573104.entry.js +0 -1
  165. package/dist/db-ux/p-6b63156d.entry.js +0 -1
  166. package/dist/db-ux/p-70822a27.entry.js +0 -1
  167. package/dist/db-ux/p-710a430d.entry.js +0 -1
  168. package/dist/db-ux/p-72d712b0.entry.js +0 -1
  169. package/dist/db-ux/p-7b7f4d03.entry.js +0 -1
  170. package/dist/db-ux/p-7bd4c573.entry.js +0 -1
  171. package/dist/db-ux/p-819cf20a.entry.js +0 -1
  172. package/dist/db-ux/p-87fdbcfb.entry.js +0 -1
  173. package/dist/db-ux/p-9051e26c.entry.js +0 -1
  174. package/dist/db-ux/p-934a708c.entry.js +0 -1
  175. package/dist/db-ux/p-9ffa5c48.entry.js +0 -1
  176. package/dist/db-ux/p-G-TursYV.js +0 -1
  177. package/dist/db-ux/p-a9af70eb.entry.js +0 -1
  178. package/dist/db-ux/p-aa8383a3.entry.js +0 -1
  179. package/dist/db-ux/p-ba1f69bd.entry.js +0 -1
  180. package/dist/db-ux/p-d273b998.entry.js +0 -1
  181. package/dist/db-ux/p-da4ee6ee.entry.js +0 -1
  182. package/dist/db-ux/p-e584e927.entry.js +0 -1
  183. package/dist/db-ux/p-fe185f98.entry.js +0 -1
  184. /package/dist/db-ux/{p-BrThqi62.js → p-Crtu1dn6.js} +0 -0
@@ -0,0 +1 @@
1
+ import{r as t,h as s}from"./p-Crtu1dn6.js";import{d as i,g as e,c as a}from"./p-C4x0SOcx.js";import{D as o}from"./p-RHqkTr-_.js";import{b as n}from"./p-DfYL98sI.js";const h=class{constructor(s){t(this,s),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&i((()=>{var s;n(t,this._ref,null!==(s=this.placement)&&void 0!==s?s:"bottom")}),1)}handleDocumentScroll(t){var s,i;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new o).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const s=this.getTrigger();s&&(null===(t=this._observer)||void 0===t||t.observe(s))}handleLeave(t){var s;const i=null==t?void 0:t.target;if(!(null==i?void 0:i.parentNode)||i.parentNode.querySelector(":focus")!==i&&i.parentNode.querySelector(":focus-within")!==i&&i.parentNode.querySelector(":hover")!==i){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new o).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(s=this._observer)||void 0===s||s.unobserve(t))}}getTrigger(){var t;if(this._ref){const s=Array.from(this._ref.children);if(s.length>=2){const i=s[0];return i.tagName.includes("-")?(null===(t=i.children)||void 0===t?void 0:t.length)>0?i.children[0]:null:i}}return null}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${e}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const s=t.find((({target:t})=>t===this.getTrigger()));s&&!s.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=Boolean(this.isExpanded).toString())}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-popover"),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t;return s("div",{key:"6b6c1e8a1b308dde8bae73df452abe94b0b4962d",class:a("db-popover",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"8276f71a50b4a588dfe8a9b8007338c895433835",name:"trigger"}),s("article",{key:"2931d9365bf99c8c539dc45ec8450fbe54e47cf2",class:"db-popover-content","data-spacing":this.spacing,"data-gap":e(this.gap),"data-animation":e(null===(t=this.animation)||void 0===t||t),"data-open":e(this.open),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},s("slot",{key:"49dbdd7f45e2ea48cc66b0463af29f0964ff7109"})))}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}};export{h as db_popover}
@@ -0,0 +1 @@
1
+ import{r as t,h as s}from"./p-Crtu1dn6.js";import{g as a,c as i}from"./p-C4x0SOcx.js";const d=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const d=s.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(d.name,`${e?`${e} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-infotext")}render(){var t;return s("span",{key:"1d72ab4201a2886684b736cc9909ffc2df914999",class:i("db-infotext",this.className),ref:t=>{this._ref=t},id:this.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-show-icon-leading":a(null===(t=this.showIcon)||void 0===t||t)},this.text?this.text:s("slot",null))}};export{d as db_infotext}
@@ -0,0 +1 @@
1
+ import{r as a,h as s}from"./p-Crtu1dn6.js";import{c as t}from"./p-C4x0SOcx.js";const e=class{constructor(s){a(this,s)}enableAttributePassing(a,s){const t=null==a?void 0:a.closest(s);if(a&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const c=s.item(e);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))a.setAttribute(c.name,c.value),t.removeAttribute(c.name);else if(c&&"data-density"!==c.name&&"class"!==c.name&&"style"===c.name)a.setAttribute(c.name,c.value),t.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),e=c.value.replace("hydrated","").trim(),i=a.getAttribute("class");a.setAttribute(c.name,`${i?`${i} `:""}${e}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(c.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation")}render(){return s("nav",{key:"ed23071c4f127474f38f663cd5c0536c94cfe526",class:t("db-navigation",this.className),ref:a=>{this._ref=a},id:this.id},s("menu",{key:"a54c6a1a1a7e5624287c0f5f7a93bc66bcb1a2f2"},s("slot",{key:"7fa106c1c7f1feae5ba622d89a4a4063ea5a8d93"})))}};export{e as db_navigation}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Crtu1dn6.js';
2
2
  import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
3
3
 
4
4
  const DBAccordionItem = class {
@@ -40,12 +40,16 @@ const DBAccordionItem = class {
40
40
  const attributes = parent.attributes;
41
41
  for (let i = 0; i < attributes.length; i++) {
42
42
  const attr = attributes.item(i);
43
- if (attr &&
43
+ if (attr && attr.name !== 'data-density' &&
44
44
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
45
45
  element.setAttribute(attr.name, attr.value);
46
46
  parent.removeAttribute(attr.name);
47
47
  }
48
- if (attr && attr.name === "class") {
48
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
49
+ element.setAttribute(attr.name, attr.value);
50
+ parent.removeAttribute(attr.name);
51
+ }
52
+ else if (attr && attr.name === "class") {
49
53
  const isWebComponent = attr.value.includes("hydrated");
50
54
  const value = attr.value.replace("hydrated", "").trim();
51
55
  const currentClass = element.getAttribute("class");
@@ -84,9 +88,9 @@ const DBAccordionItem = class {
84
88
  this.watch1Fn();
85
89
  }
86
90
  render() {
87
- return (h("li", { key: 'c2a0b702c0e173c96208dca96194f3f36ce5e417', class: cls("db-accordion-item", this.className), id: this.id }, h("details", { key: '7d396568c8cc585f5f05c24857168afbc3d639f7', "aria-disabled": getBooleanAsString(this.disabled), ref: (el) => {
91
+ return (h("li", { key: '3d451c7de0d3bbc3638c70a2955c450ff014ac9c', class: cls("db-accordion-item", this.className), id: this.id }, h("details", { key: '15e159f6dc3f0e08dce955d088b6cce4b3899125', "aria-disabled": getBooleanAsString(this.disabled), ref: (el) => {
88
92
  this._ref = el;
89
- }, name: this._name, open: this._open }, h("summary", { key: 'b4ef438974813de3761dc6f3a59add84bfe63b4c', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? h("slot", { name: "headline" }) : null), h("div", { key: '9087f0e04a68ec016e80b793f442ab02fd4316a9' }, this.text ? this.text : h("slot", null)))));
93
+ }, name: this._name, open: this._open }, h("summary", { key: 'd8338436859a61a032b5ec779c249e4af58689eb', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? h("slot", { name: "headline" }) : null), h("div", { key: 'de1fbd85cf4ccc2e3ee0aa87d0232292f25376cc' }, this.text ? this.text : h("slot", null)))));
90
94
  }
91
95
  static get watchers() { return {
92
96
  "_ref": [{
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, h } from './index-Crtu1dn6.js';
2
2
  import { u as uuid, c as cls } from './index-C4x0SOcx.js';
3
3
 
4
4
  const DBAccordion = class {
@@ -31,12 +31,16 @@ const DBAccordion = class {
31
31
  const attributes = parent.attributes;
32
32
  for (let i = 0; i < attributes.length; i++) {
33
33
  const attr = attributes.item(i);
34
- if (attr &&
34
+ if (attr && attr.name !== 'data-density' &&
35
35
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
36
36
  element.setAttribute(attr.name, attr.value);
37
37
  parent.removeAttribute(attr.name);
38
38
  }
39
- if (attr && attr.name === "class") {
39
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
40
+ element.setAttribute(attr.name, attr.value);
41
+ parent.removeAttribute(attr.name);
42
+ }
43
+ else if (attr && attr.name === "class") {
40
44
  const isWebComponent = attr.value.includes("hydrated");
41
45
  const value = attr.value.replace("hydrated", "").trim();
42
46
  const currentClass = element.getAttribute("class");
@@ -124,7 +128,7 @@ const DBAccordion = class {
124
128
  }
125
129
  render() {
126
130
  var _a;
127
- return (h("ul", { key: '8b685b2a23ec00359a75ae143121c023d86a5eb5', class: cls("db-accordion", this.className), ref: (el) => {
131
+ return (h("ul", { key: '7a53323d44434d5996ec63b36c1f3c0f5791c0e1', class: cls("db-accordion", this.className), ref: (el) => {
128
132
  this._ref = el;
129
133
  }, id: this.id, "data-variant": this.variant }, !this.items ? h("slot", null) : null, this.items
130
134
  ? (_a = this.convertItems()) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h("db-accordion-item", { key: `accordion-item-${index}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, h } from './index-Crtu1dn6.js';
2
2
  import { a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
3
3
  import { c as cls } from './index-C4x0SOcx.js';
4
4
 
@@ -18,12 +18,16 @@ const DBBadge = class {
18
18
  const attributes = parent.attributes;
19
19
  for (let i = 0; i < attributes.length; i++) {
20
20
  const attr = attributes.item(i);
21
- if (attr &&
21
+ if (attr && attr.name !== 'data-density' &&
22
22
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
23
23
  element.setAttribute(attr.name, attr.value);
24
24
  parent.removeAttribute(attr.name);
25
25
  }
26
- if (attr && attr.name === "class") {
26
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
27
+ element.setAttribute(attr.name, attr.value);
28
+ parent.removeAttribute(attr.name);
29
+ }
30
+ else if (attr && attr.name === "class") {
27
31
  const isWebComponent = attr.value.includes("hydrated");
28
32
  const value = attr.value.replace("hydrated", "").trim();
29
33
  const currentClass = element.getAttribute("class");
@@ -64,7 +68,7 @@ const DBBadge = class {
64
68
  }
65
69
  render() {
66
70
  var _a, _b;
67
- return (h("span", { key: '1415e44da7031e4b0f94a1909f0b2a86ee42f771', class: cls("db-badge", this.className), ref: (el) => {
71
+ return (h("span", { key: 'a7f9f4fadf050ee85d7fd4cd0a0d4059b62f4feb', class: cls("db-badge", this.className), ref: (el) => {
68
72
  this._ref = el;
69
73
  }, id: this.id, "data-semantic": this.semantic, "data-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-label": ((_a = this.placement) === null || _a === void 0 ? void 0 : _a.startsWith("corner")) && ((_b = this.label) !== null && _b !== void 0 ? _b : DEFAULT_LABEL) }, this.text ? this.text : h("slot", null)));
70
74
  }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, h } from './index-Crtu1dn6.js';
2
2
  import { q as DEFAULT_ICON } from './constants-BdL-nI5y.js';
3
3
  import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
4
4
 
@@ -17,12 +17,16 @@ const DBBrand = class {
17
17
  const attributes = parent.attributes;
18
18
  for (let i = 0; i < attributes.length; i++) {
19
19
  const attr = attributes.item(i);
20
- if (attr &&
20
+ if (attr && attr.name !== 'data-density' &&
21
21
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
22
22
  element.setAttribute(attr.name, attr.value);
23
23
  parent.removeAttribute(attr.name);
24
24
  }
25
- if (attr && attr.name === "class") {
25
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
26
+ element.setAttribute(attr.name, attr.value);
27
+ parent.removeAttribute(attr.name);
28
+ }
29
+ else if (attr && attr.name === "class") {
26
30
  const isWebComponent = attr.value.includes("hydrated");
27
31
  const value = attr.value.replace("hydrated", "").trim();
28
32
  const currentClass = element.getAttribute("class");
@@ -43,7 +47,7 @@ const DBBrand = class {
43
47
  }
44
48
  render() {
45
49
  var _a;
46
- return (h("div", { key: '9014cc8dfb318b456ae6115abe7217a1d1cca73b', class: cls("db-brand", this.className), ref: (el) => {
50
+ return (h("div", { key: '0d5da13b94918698efe2d8bc1adbbe293403ee3b', class: cls("db-brand", this.className), ref: (el) => {
47
51
  this._ref = el;
48
52
  }, "data-icon": this.hideLogo ? "none" : (_a = this.icon) !== null && _a !== void 0 ? _a : DEFAULT_ICON, "data-show-icon": getBooleanAsString(this.showIcon), id: this.id }, this.text ? this.text : h("slot", null)));
49
53
  }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Crtu1dn6.js';
2
2
  import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-C4x0SOcx.js';
3
3
 
4
4
  const DBButton = class {
@@ -26,12 +26,16 @@ const DBButton = class {
26
26
  const attributes = parent.attributes;
27
27
  for (let i = 0; i < attributes.length; i++) {
28
28
  const attr = attributes.item(i);
29
- if (attr &&
29
+ if (attr && attr.name !== 'data-density' &&
30
30
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
31
31
  element.setAttribute(attr.name, attr.value);
32
32
  parent.removeAttribute(attr.name);
33
33
  }
34
- if (attr && attr.name === "class") {
34
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
35
+ element.setAttribute(attr.name, attr.value);
36
+ parent.removeAttribute(attr.name);
37
+ }
38
+ else if (attr && attr.name === "class") {
35
39
  const isWebComponent = attr.value.includes("hydrated");
36
40
  const value = attr.value.replace("hydrated", "").trim();
37
41
  const currentClass = element.getAttribute("class");
@@ -52,7 +56,7 @@ const DBButton = class {
52
56
  }
53
57
  render() {
54
58
  var _a, _b;
55
- return (h("button", { key: '8b0105e19d08c13e28e3ad8053d17d33d6699272', class: cls("db-button", this.className), ref: (el) => {
59
+ return (h("button", { key: '952146baca92fb27e48b5369b9aed2ca5ef0e057', class: cls("db-button", this.className), ref: (el) => {
56
60
  this._ref = el;
57
61
  }, id: this.id, type: this.getButtonType(), disabled: getBoolean(this.disabled, "disabled"), "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-show-icon": getBooleanAsString((_b = this.showIconLeading) !== null && _b !== void 0 ? _b : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": getBooleanAsString(this.noText), name: this.name, form: this.form, value: this.value }, this.text ? this.text : h("slot", null)));
58
62
  }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Crtu1dn6.js';
2
2
  import { c as cls } from './index-C4x0SOcx.js';
3
3
 
4
4
  const DBCard = class {
@@ -22,12 +22,16 @@ const DBCard = class {
22
22
  const attributes = parent.attributes;
23
23
  for (let i = 0; i < attributes.length; i++) {
24
24
  const attr = attributes.item(i);
25
- if (attr &&
25
+ if (attr && attr.name !== 'data-density' &&
26
26
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
27
27
  element.setAttribute(attr.name, attr.value);
28
28
  parent.removeAttribute(attr.name);
29
29
  }
30
- if (attr && attr.name === "class") {
30
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
31
+ element.setAttribute(attr.name, attr.value);
32
+ parent.removeAttribute(attr.name);
33
+ }
34
+ else if (attr && attr.name === "class") {
31
35
  const isWebComponent = attr.value.includes("hydrated");
32
36
  const value = attr.value.replace("hydrated", "").trim();
33
37
  const currentClass = element.getAttribute("class");
@@ -47,9 +51,9 @@ const DBCard = class {
47
51
  this.enableAttributePassing(this._ref, "db-card");
48
52
  }
49
53
  render() {
50
- return (h("div", { key: '823ca29890a1a4f29f4ff4f7bb1829e77314546b', class: cls("db-card", this.className), ref: (el) => {
54
+ return (h("div", { key: 'bd0f8bb8e254da7ac028b05ca73329189111c4a1', class: cls("db-card", this.className), ref: (el) => {
51
55
  this._ref = el;
52
- }, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, h("slot", { key: '532b03614fa83513efc8f97b6a9a7faceff62039' })));
56
+ }, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, h("slot", { key: '1ccf3a3ec5e169032692bd47443e36ae11592ab4' })));
53
57
  }
54
58
  };
55
59
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Crtu1dn6.js';
2
2
  import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-BdL-nI5y.js';
3
3
  import { h as hasVoiceOver, d as delay, s as stringPropVisible, e as getBoolean, u as uuid, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
4
4
  import { a as addCheckedResetEventListener } from './form-components-BLsiOrPI.js';
@@ -80,12 +80,16 @@ const DBCheckbox = class {
80
80
  const attributes = parent.attributes;
81
81
  for (let i = 0; i < attributes.length; i++) {
82
82
  const attr = attributes.item(i);
83
- if (attr &&
83
+ if (attr && attr.name !== 'data-density' &&
84
84
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
85
85
  element.setAttribute(attr.name, attr.value);
86
86
  parent.removeAttribute(attr.name);
87
87
  }
88
- if (attr && attr.name === "class") {
88
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
89
+ element.setAttribute(attr.name, attr.value);
90
+ parent.removeAttribute(attr.name);
91
+ }
92
+ else if (attr && attr.name === "class") {
89
93
  const isWebComponent = attr.value.includes("hydrated");
90
94
  const value = attr.value.replace("hydrated", "").trim();
91
95
  const currentClass = element.getAttribute("class");
@@ -191,9 +195,9 @@ const DBCheckbox = class {
191
195
  }
192
196
  render() {
193
197
  var _a;
194
- return (h("div", { key: 'a7cda04be04a1c763f8a7aa6918a212ffe8e0003', class: cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: 'a3195afb100309cb33b8471025b868db5bfdc7c5', htmlFor: this._id }, h("input", { key: '937c3f7cd98f519fd8034c644491f55caafb2411', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
198
+ return (h("div", { key: '14207f00c5b68441e94201de7569324756b657d7', class: cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '577bdb32a38254f72a969d6da16fb220c620e156', htmlFor: this._id }, h("input", { key: 'ecbed0f4b8347617f2cc6d017b09a56d495b922d', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
195
199
  this._ref = el;
196
- }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : h("slot", 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: 'ae673ae94efc3d0abd19f8f067befebea3b3139b', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'e32b0d1e2647e03068b5ee09f3183b25fc82b7e7', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
200
+ }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : h("slot", 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: 'eae86bcaa2fe6e0fe39249fa5f9a7ae13e172f63', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '420c4244393b3ee266c374db1662dacfa43a0bce', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
197
201
  }
198
202
  static get watchers() { return {
199
203
  "_ref": [{
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, c as createEvent } from './index-BrThqi62.js';
1
+ import { r as registerInstance, h, c as createEvent } from './index-Crtu1dn6.js';
2
2
  import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-C4x0SOcx.js';
3
3
  import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, a as DEFAULT_LABEL, m as DEFAULT_REMOVE } from './constants-BdL-nI5y.js';
4
4
  import { c as addValueResetEventListener } from './form-components-BLsiOrPI.js';
@@ -19,12 +19,16 @@ const DBCustomSelectDropdown = class {
19
19
  const attributes = parent.attributes;
20
20
  for (let i = 0; i < attributes.length; i++) {
21
21
  const attr = attributes.item(i);
22
- if (attr &&
22
+ if (attr && attr.name !== 'data-density' &&
23
23
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
24
24
  element.setAttribute(attr.name, attr.value);
25
25
  parent.removeAttribute(attr.name);
26
26
  }
27
- if (attr && attr.name === "class") {
27
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
28
+ element.setAttribute(attr.name, attr.value);
29
+ parent.removeAttribute(attr.name);
30
+ }
31
+ else if (attr && attr.name === "class") {
28
32
  const isWebComponent = attr.value.includes("hydrated");
29
33
  const value = attr.value.replace("hydrated", "").trim();
30
34
  const currentClass = element.getAttribute("class");
@@ -44,9 +48,9 @@ const DBCustomSelectDropdown = class {
44
48
  this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
45
49
  }
46
50
  render() {
47
- return (h("article", { key: '98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
51
+ return (h("article", { key: 'ac22786c8688e2f979e626155cb8dea54a5380b7', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
48
52
  this._ref = el;
49
- }, id: this.id, "data-width": this.width }, h("slot", { key: '25bcaa79bdf8168feffce0a59c0adbc656023e64' })));
53
+ }, id: this.id, "data-width": this.width }, h("slot", { key: '2257275bfc7a9f75e944d61e8afc7493770478b5' })));
50
54
  }
51
55
  };
52
56
 
@@ -65,12 +69,16 @@ const DBCustomSelectList = class {
65
69
  const attributes = parent.attributes;
66
70
  for (let i = 0; i < attributes.length; i++) {
67
71
  const attr = attributes.item(i);
68
- if (attr &&
72
+ if (attr && attr.name !== 'data-density' &&
69
73
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
70
74
  element.setAttribute(attr.name, attr.value);
71
75
  parent.removeAttribute(attr.name);
72
76
  }
73
- if (attr && attr.name === "class") {
77
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
78
+ element.setAttribute(attr.name, attr.value);
79
+ parent.removeAttribute(attr.name);
80
+ }
81
+ else if (attr && attr.name === "class") {
74
82
  const isWebComponent = attr.value.includes("hydrated");
75
83
  const value = attr.value.replace("hydrated", "").trim();
76
84
  const currentClass = element.getAttribute("class");
@@ -90,9 +98,9 @@ const DBCustomSelectList = class {
90
98
  this.enableAttributePassing(this._ref, "db-custom-select-list");
91
99
  }
92
100
  render() {
93
- return (h("div", { key: 'f47e219aac45d07e958a94969205260af981bcf1', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
101
+ return (h("div", { key: '5f26917a02c72091c5d2c0a21a04b2f45b983b35', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
94
102
  this._ref = el;
95
- }, id: this.id }, h("ul", { key: 'adca0d159ec4cd5d2dc46f11fe41006276dba94f' }, h("slot", { key: 'abb6edfb683a3e4a42512b2185854099c66f1f3c' }))));
103
+ }, id: this.id }, h("ul", { key: '5eaa90fa614daa186d2b10064066e2cc030da8eb' }, h("slot", { key: '15289fd4ac602d6f182fb112f66e716e56f79101' }))));
96
104
  }
97
105
  };
98
106
 
@@ -125,12 +133,16 @@ const DBCustomSelectListItem = class {
125
133
  const attributes = parent.attributes;
126
134
  for (let i = 0; i < attributes.length; i++) {
127
135
  const attr = attributes.item(i);
128
- if (attr &&
136
+ if (attr && attr.name !== 'data-density' &&
129
137
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
130
138
  element.setAttribute(attr.name, attr.value);
131
139
  parent.removeAttribute(attr.name);
132
140
  }
133
- if (attr && attr.name === "class") {
141
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
142
+ element.setAttribute(attr.name, attr.value);
143
+ parent.removeAttribute(attr.name);
144
+ }
145
+ else if (attr && attr.name === "class") {
134
146
  const isWebComponent = attr.value.includes("hydrated");
135
147
  const value = attr.value.replace("hydrated", "").trim();
136
148
  const currentClass = element.getAttribute("class");
@@ -157,7 +169,7 @@ const DBCustomSelectListItem = class {
157
169
  this.watch0Fn();
158
170
  }
159
171
  render() {
160
- return (h("li", { key: '1155e389f33c440e04b5e7ca71732d108925e2cd', class: cls("db-custom-select-list-item", this.className, {
172
+ return (h("li", { key: 'fd25b48f61d95cc1c81526edf9413aef628f7472', class: cls("db-custom-select-list-item", this.className, {
161
173
  "db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
162
174
  "db-radio": this.type !== "checkbox" && !this.isGroupTitle,
163
175
  }), ref: (el) => {
@@ -268,12 +280,16 @@ const DBInput = class {
268
280
  const attributes = parent.attributes;
269
281
  for (let i = 0; i < attributes.length; i++) {
270
282
  const attr = attributes.item(i);
271
- if (attr &&
283
+ if (attr && attr.name !== 'data-density' &&
272
284
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
273
285
  element.setAttribute(attr.name, attr.value);
274
286
  parent.removeAttribute(attr.name);
275
287
  }
276
- if (attr && attr.name === "class") {
288
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
289
+ element.setAttribute(attr.name, attr.value);
290
+ parent.removeAttribute(attr.name);
291
+ }
292
+ else if (attr && attr.name === "class") {
277
293
  const isWebComponent = attr.value.includes("hydrated");
278
294
  const value = attr.value.replace("hydrated", "").trim();
279
295
  const currentClass = element.getAttribute("class");
@@ -369,7 +385,7 @@ const DBInput = class {
369
385
  }
370
386
  render() {
371
387
  var _a, _b, _c, _d, _e, _f, _g, _h;
372
- return (h("div", { key: 'b6b5870b00e7a3ef0155004291fc9c646863faa9', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: 'ac47e1bd7206de27075a86e3b5bf59647cffa8de', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: '40170ba9d207c96b4e86232f367a70a3301eb914', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
388
+ return (h("div", { key: '394d66670226d01b6f790d13bdbc8eb00fb376ca', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '981344e97a91cb8c369587870e532af85fcb29c3', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'e7536b30d16211cc3842e7dd6e74bffe5749685f', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
373
389
  this._ref = el;
374
390
  }, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
375
391
  getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
@@ -381,7 +397,7 @@ const DBInput = class {
381
397
  "color",
382
398
  ].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
383
399
  ? "textbox"
384
- : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'dd4cf602903406782a97e88ad8ccb8aacb903421' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '081dc92e27a0b81733d3200f97686fbe5fa15f76', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '43be19988deae0484f47eed9b19e0556238b558d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
400
+ : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'f5e0e8f70ab5b9ad772f38fdc8d4124e0a77faeb' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'ffb47610dff1d37759eda1f9a5022bbabbe2a7a4', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '102226d02f55e79a6e3af37899544545da43a98b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
385
401
  }
386
402
  static get watchers() { return {
387
403
  "_ref": [{
@@ -432,12 +448,16 @@ const DBTag = class {
432
448
  const attributes = parent.attributes;
433
449
  for (let i = 0; i < attributes.length; i++) {
434
450
  const attr = attributes.item(i);
435
- if (attr &&
451
+ if (attr && attr.name !== 'data-density' &&
436
452
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
437
453
  element.setAttribute(attr.name, attr.value);
438
454
  parent.removeAttribute(attr.name);
439
455
  }
440
- if (attr && attr.name === "class") {
456
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
457
+ element.setAttribute(attr.name, attr.value);
458
+ parent.removeAttribute(attr.name);
459
+ }
460
+ else if (attr && attr.name === "class") {
441
461
  const isWebComponent = attr.value.includes("hydrated");
442
462
  const value = attr.value.replace("hydrated", "").trim();
443
463
  const currentClass = element.getAttribute("class");
@@ -458,9 +478,9 @@ const DBTag = class {
458
478
  }
459
479
  render() {
460
480
  var _a;
461
- return (h("div", { key: 'db86fabfde3f9d1e41a863f58db34eb88d067440', class: cls("db-tag", this.className), ref: (el) => {
481
+ return (h("div", { key: 'c0f6907ce1246c8047c5af115a093ecaa4032a55', class: cls("db-tag", this.className), ref: (el) => {
462
482
  this._ref = el;
463
- }, 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));
483
+ }, 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: 'c5e244aebde8e2fa54bcd61e66d69559a607a952', name: "content" }), h("slot", { key: '7356f14f2c11b4180f1f59ef8bd5a4e0dffb9d9c' }), 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));
464
484
  }
465
485
  };
466
486
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, h } from './index-Crtu1dn6.js';
2
2
  import { c as cls } from './index-C4x0SOcx.js';
3
3
 
4
4
  const DBCustomSelectFormField = class {
@@ -16,12 +16,16 @@ const DBCustomSelectFormField = class {
16
16
  const attributes = parent.attributes;
17
17
  for (let i = 0; i < attributes.length; i++) {
18
18
  const attr = attributes.item(i);
19
- if (attr &&
19
+ if (attr && attr.name !== 'data-density' &&
20
20
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
21
  element.setAttribute(attr.name, attr.value);
22
22
  parent.removeAttribute(attr.name);
23
23
  }
24
- if (attr && attr.name === "class") {
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
25
29
  const isWebComponent = attr.value.includes("hydrated");
26
30
  const value = attr.value.replace("hydrated", "").trim();
27
31
  const currentClass = element.getAttribute("class");
@@ -41,9 +45,9 @@ const DBCustomSelectFormField = class {
41
45
  this.enableAttributePassing(this._ref, "db-custom-select-form-field");
42
46
  }
43
47
  render() {
44
- return (h("summary", { key: '22a05256e65e56208335b9a5c840e75988a57182', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
48
+ return (h("summary", { key: '4ade22e5e7d664747ba44a25cea8778ee76de2c0', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
45
49
  this._ref = el;
46
- }, id: this.id }, h("slot", { key: '3c6c62df9bf0d2a73e37a9ad69d3a46daa672984' })));
50
+ }, id: this.id }, h("slot", { key: '457f965d451fcd6e03199b4273a2e0ebb6b85bb1' })));
47
51
  }
48
52
  };
49
53
 
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-Crtu1dn6.js';
2
2
  import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, d as DEFAULT_LABEL_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
3
3
  import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid, g as getBooleanAsString, e as getBoolean, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
4
4
  import { D as DocumentClickListener } from './document-click-listener-CmYoXpGE.js';
5
5
  import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
6
- import { a as handleFixedDropdown } from './floating-components-G-TursYV.js';
6
+ import { a as handleFixedDropdown } from './floating-components-DfYL98sI.js';
7
7
  import { b as addResetEventListener } from './form-components-BLsiOrPI.js';
8
8
 
9
9
  const DBCustomSelect = class {
@@ -477,12 +477,16 @@ const DBCustomSelect = class {
477
477
  const attributes = parent.attributes;
478
478
  for (let i = 0; i < attributes.length; i++) {
479
479
  const attr = attributes.item(i);
480
- if (attr &&
480
+ if (attr && attr.name !== 'data-density' &&
481
481
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
482
482
  element.setAttribute(attr.name, attr.value);
483
483
  parent.removeAttribute(attr.name);
484
484
  }
485
- if (attr && attr.name === "class") {
485
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
486
+ element.setAttribute(attr.name, attr.value);
487
+ parent.removeAttribute(attr.name);
488
+ }
489
+ else if (attr && attr.name === "class") {
486
490
  const isWebComponent = attr.value.includes("hydrated");
487
491
  const value = attr.value.replace("hydrated", "").trim();
488
492
  const currentClass = element.getAttribute("class");
@@ -771,19 +775,19 @@ const DBCustomSelect = class {
771
775
  }
772
776
  render() {
773
777
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
774
- return (h("div", { key: '5ab3c80f3af53b7795e709feaea160e4aa26f281', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
778
+ return (h("div", { key: 'bb7f2bd039a1d7f97bca1408e4c462c029963128', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
775
779
  this._ref = el;
776
780
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
777
781
  this.selectedType === "tag" &&
778
782
  this.multiple
779
783
  ? "above"
780
- : this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '281d6b75a9ae62b6e2f59c04876603988366952d', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '26029a01c106666155c40cac98a7f67739145491', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
784
+ : this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'cf9b29fb5c955bd22928803a491d7a76463c1c42', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'ab1c6f7adafe07b6d91cb12abb058e41faa27c82', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
781
785
  this.selectRef = el;
782
- }, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
786
+ }, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
783
787
  ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
784
- : null)), h("details", { key: '60f50d851ebf3b180094bdbd1c9acb3c6e1069af', ref: (el) => {
788
+ : null)), h("details", { key: 'ba829c0fb72fe74896a927f06cb9f8005621524b', ref: (el) => {
785
789
  this.detailsRef = el;
786
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '369ba87529acc1e3b2d12869174eff0a824c0176' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
790
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '90e00cda7265025b8299ff92bfac46f2f242c899' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
787
791
  this.searchInputRef = el;
788
792
  }, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
789
793
  ? this._infoTextId
@@ -793,7 +797,7 @@ const DBCustomSelect = class {
793
797
  this.selectAllRef = el;
794
798
  }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
795
799
  ? this.getOptionLabel(option)
796
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: 'b4a9cebfe1db06422f428bac4d04d581bcadbb95', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), 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: 'a407a98afeecf7634770f34e2f427a09d657419a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '4465c3745c21e5333c8498927416fd0f244673dd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
800
+ : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '5cc4a48735e41b769c36e059d613f8c83b641ba1', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), 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: 'ac47ebdaff258f7e19f2dbf447054369a919633c', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'c568834fa90ab614cad1dcdc4de89daf25df1ffb', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
797
801
  }
798
802
  static get watchers() { return {
799
803
  "detailsRef": [{