@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
@@ -1,2 +0,0 @@
1
- export const LoadingIndicatorVariantList = ['progress-bar', 'onsite', 'inline'];
2
- export const LoadingIndicatorStateList = ['inactive', 'active', 'successful', 'critical'];
@@ -1 +0,0 @@
1
- import{r as t,h as a}from"./p-B6-lLNGQ.js";import{c as e,g as d}from"./p-C4x0SOcx.js";const s=class{constructor(a){t(this,a),this.fontsLoaded=!1}enableAttributePassing(t,a){const e=null==t?void 0:t.closest(a);if(t&&e){const a=e.attributes;for(let d=0;d<a.length;d++){const s=a.item(d);if(s&&(s.name.startsWith("data-")||s.name.startsWith("aria-"))&&(t.setAttribute(s.name,s.value),e.removeAttribute(s.name)),s&&"class"===s.name){const a=s.value.includes("hydrated"),d=s.value.replace("hydrated","").trim(),c=t.getAttribute("class");t.setAttribute(s.name,`${c?`${c} `:""}${d}`),a?e.setAttribute("class","hydrated"):e.removeAttribute(s.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-page"),this.fontsLoaded=!this.fadeIn,document&&this.fadeIn?document.fonts.ready.then((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0}disconnectedCallback(){"undefined"!=typeof window&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}render(){return a("div",{key:"0596f3a43bd9fb3eb3a5bf9db63bdf8f899b14ec",class:e("db-page",this.className),ref:t=>{this._ref=t},id:this.id,"data-variant":this.variant,"data-fade-in":d(this.fadeIn),"data-fonts-loaded":d(this.fontsLoaded)},a("slot",{key:"44cab7ad5f1bbb8a89cec4702923d4f9956f9bcf",name:"header"}),a("main",{key:"2906f8b81485a608181844f7c8214e1c85c1c8cb",class:e("db-main",this.mainClass)},a("slot",{key:"1382d4f336daeda7c72dd6e72307e4ee3033ccd9"})),a("slot",{key:"96a74899d394ce2b669a5fe67ff02d6788041732",name:"footer"}))}};export{s as db_page}
@@ -1 +0,0 @@
1
- import{r as t,h as i}from"./p-B6-lLNGQ.js";import{D as s}from"./p-BdL-nI5y.js";import{d as a,u as e,g as o,c as h}from"./p-C4x0SOcx.js";import{D as d}from"./p-RHqkTr-_.js";import{b as l}from"./p-G-TursYV.js";const n=class{constructor(i){t(this,i),this._id=s,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&a((()=>{var i;this._ref&&l(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,a;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(a=null==t?void 0:t.target)||void 0===a?void 0:a.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t;this._documentScrollListenerCallbackId&&(new d).removeCallback(this._documentScrollListenerCallbackId),null===(t=this._observer)||void 0===t||t.unobserve(this.getParent())}handleEnter(t){var i;this._documentScrollListenerCallbackId=(new d).addCallback((i=>this.handleDocumentScroll(i,t))),this.handleAutoPlacement(t),null===(i=this._observer)||void 0===i||i.observe(this.getParent())}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const e=i.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))&&(t.setAttribute(e.name,e.value),s.removeAttribute(e.name)),e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(e.name,`${o?`${o} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){if(this._ref&&this.initialized&&this._id){const t=this.getParent();t&&(["mouseenter","focusin"].forEach((i=>{t.addEventListener(i,(()=>this.handleEnter(t)))})),t.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseleave","focusout"].forEach((i=>{t.addEventListener(i,(()=>this.handleLeave()))})),t.dataset.hasTooltip="true",t.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id)),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tooltip"),this._id=this.id||"tooltip-"+e(),this.initialized=!0,this.watch0Fn()}render(){var t,s;return i("i",{key:"0d352dbcd314a108dd543c0dbd5a1f3f3a0f9b9b",class:h("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-animation":o(null===(t=this.animation)||void 0===t||t),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":o(null===(s=this.showArrow)||void 0===s||s),"data-placement":this.placement,onClick:t=>this.handleClick(t)},i("slot",{key:"8770a8d9640932a47f5d7f3a87a34029c58e83e6"}))}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}};export{n as db_tooltip}
@@ -1 +0,0 @@
1
- import{r as e,c as a,h as d}from"./p-B6-lLNGQ.js";import{p as t}from"./p-BdL-nI5y.js";import{a as s,e as c,c as i}from"./p-C4x0SOcx.js";import{i as b}from"./p-sP2NlPcu.js";import"./p-G-TursYV.js";const n=class{constructor(d){e(this,d),this.toggle=a(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1}handleToggle(e){e&&e.stopPropagation&&e.stopPropagation();const a=!c(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(a)}handleNavigationItemClick(e){b(e)&&this.handleToggle()}enableAttributePassing(e,a){const d=null==e?void 0:e.closest(a);if(e&&d){const a=d.attributes;for(let t=0;t<a.length;t++){const s=a.item(t);if(s&&(s.name.startsWith("data-")||s.name.startsWith("aria-"))&&(e.setAttribute(s.name,s.value),d.removeAttribute(s.name)),s&&"class"===s.name){const a=s.value.includes("hydrated"),t=s.value.replace("hydrated","").trim(),c=e.getAttribute("class");e.setAttribute(s.name,`${c?`${c} `:""}${t}`),a?d.setAttribute("class","hydrated"):d.removeAttribute(s.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(s(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-header"),this.initialized=!0,this.watch0Fn()}render(){var e;return d("header",{key:"f701b77c43467d06b10c109ff60694f70746eaf8",class:i("db-header",this.className),ref:e=>{this._ref=e},id:this.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("db-drawer",{key:"18c1b671c898c183bb352bb5f41978325cfa272e",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:c(this.drawerOpen),onClose:()=>this.handleToggle()},d("div",{key:"dd79824d62aa735869d10c1d667a64de2ed61cd7",class:"db-header-drawer-navigation"},d("div",{key:"baab299c370aeb0133022ac8715a97af2d41e598",class:"db-header-navigation",onClick:e=>this.handleNavigationItemClick(e)},d("slot",{key:"25fba42e53aedf89b9efcd6479df4a20c31b37a0"})),d("div",{key:"ee9e0fab26a77cbc44edda5f200e6d52e24d4ae6",class:"db-header-meta-navigation"},d("slot",{key:"6a94b711843f10518e84f335df875d6d454d28a0",name:"metaNavigation"}))),d("div",{key:"1a9f4e2ccb9ffaddbbf19ee640dc82d0db009ffa",class:"db-header-secondary-action"},d("slot",{key:"23f705f72608e8b5fa08fabc0f97ce61449fa388",name:"secondaryAction"}))),d("div",{key:"a033891b1a8260327c56591fb12516dbe159b5e1",class:"db-header-meta-navigation"},d("slot",{key:"cfa5ffd51164e184eb68e04e8d83f3fd7ba94927",name:"metaNavigation"})),d("div",{key:"04430a76404e9e282b7249beee655a8e86d78dd2",class:"db-header-navigation-bar"},d("div",{key:"5461e8c087ae579079017b738fb4ac36ddd44624",class:"db-header-brand-container"},d("slot",{key:"eed71de59cfb3cc65dc24797830bb4b7243a09f6",name:"brand"})),d("div",{key:"c83e6866e91abc17fbe6ef06f3e976c8237644e7",class:"db-header-navigation-container"},d("div",{key:"7cd0f313b6d25b400e0f0324b6f9d7e0f4dab61e",class:"db-header-navigation"},d("slot",{key:"850c0eb5d3f7979a311880e3cf7b4c6484668ac3"})),d("div",{key:"48c8d805965f4bf8d443fa66bf2d8f9b46e30377",class:"db-header-primary-action"},d("slot",{key:"42b4b88ecb12aedd83aaf97411c746a222ef7e83",name:"primaryAction"}))),d("div",{key:"836ed1d499998a707bc302443ed4885ec3347a0b",class:"db-header-action-container"},d("div",{key:"8a483f37b9de0e49a97c352690dcfc9b3e457aba",class:"db-header-burger-menu-container"},d("db-button",{key:"32e96e0f6ae32b0c56d4540307a5cf5e92e35822",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(e=this.burgerMenuLabel)&&void 0!==e?e:t)),d("div",{key:"c0db759bb4ce588e6d2302e3284908501fa556cb",class:"db-header-secondary-action"},d("slot",{key:"c2b198053cb8c57eeeb18153691b926627787083",name:"secondaryAction"})))))}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}};export{n as db_header}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-B6-lLNGQ.js";import{q as a}from"./p-BdL-nI5y.js";import{g as i,c as d}from"./p-C4x0SOcx.js";const o=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const a=null==s?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const d=t.item(i);if(d&&(d.name.startsWith("data-")||d.name.startsWith("aria-"))&&(s.setAttribute(d.name,d.value),a.removeAttribute(d.name)),d&&"class"===d.name){const t=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),o=s.getAttribute("class");s.setAttribute(d.name,`${o?`${o} `:""}${i}`),t?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-brand")}render(){var s;return t("div",{key:"9014cc8dfb318b456ae6115abe7217a1d1cca73b",class:d("db-brand",this.className),ref:s=>{this._ref=s},"data-icon":this.hideLogo?"none":null!==(s=this.icon)&&void 0!==s?s:a,"data-show-icon":i(this.showIcon),id:this.id},this.text?this.text:t("slot",null))}};export{o as db_brand}
@@ -1 +0,0 @@
1
- import{r as t,h as a}from"./p-B6-lLNGQ.js";import{g as s,c}from"./p-C4x0SOcx.js";const i=class{constructor(a){t(this,a)}enableAttributePassing(t,a){const s=null==t?void 0:t.closest(a);if(t&&s){const a=s.attributes;for(let c=0;c<a.length;c++){const i=a.item(c);if(i&&(i.name.startsWith("data-")||i.name.startsWith("aria-"))&&(t.setAttribute(i.name,i.value),s.removeAttribute(i.name)),i&&"class"===i.name){const a=i.value.includes("hydrated"),c=i.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?`${d} `:""}${c}`),a?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-stack")}render(){return a("div",{key:"ac699e5febc5703f47f9c3427e2a6cd1004927b5",class:c("db-stack",this.className),ref:t=>{this._ref=t},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":s(this.wrap)},a("slot",{key:"7ad7fb4ca373c4b5b209e5b687bac5c9ffcbabfa"}))}};export{i as db_stack}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-B6-lLNGQ.js";import{c as a}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 d=0;d<s.length;d++){const i=s.item(d);if(i&&(i.name.startsWith("data-")||i.name.startsWith("aria-"))&&(t.setAttribute(i.name,i.value),a.removeAttribute(i.name)),i&&"class"===i.name){const s=i.value.includes("hydrated"),d=i.value.replace("hydrated","").trim(),r=t.getAttribute("class");t.setAttribute(i.name,`${r?`${r} `:""}${d}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-divider")}render(){return s("div",{key:"46d2766f34dc660f82cda63261ea96da0a72115f",class:a("db-divider",this.className),ref:t=>{this._ref=t},id:this.id,"data-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}};export{d as db_divider}
@@ -1,2 +0,0 @@
1
- var t=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=function(t,n){for(;t;){const e=Object.getOwnPropertyDescriptor(t,n);if(null==e?void 0:e.get)return e;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[e]=n.l.has(e)?n.l.get(e):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},e=(n,e)=>{e&&(n.__stencil__getHostRef=()=>e,e.i=n,512&e.o.u&&t(n,e))},o=(t,n)=>n in t,l=(t,n)=>(0,console.error)(t,n),s=new Map,i="undefined"!=typeof window?window:{},r={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},c=t=>Promise.resolve(t),u=!1,f=[],a=[],d=(t,n)=>e=>{t.push(e),u||(u=!0,n&&4&r.u?v(h):r.raf(h))},p=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){l(t)}t.length=0},h=()=>{p(f),p(a),(u=f.length>0)&&r.raf(h)},v=t=>c().then(t),m=d(a,!0),b=t=>{const n=j(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&y(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!$(t,w(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&j(t,"childNodes").length&&b(t)}};function y(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||w(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...y(o.childNodes,n,e)]}return s}var $=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)w(l)!==n||!e&&l["s-sr"]||o.push(l);return o},g=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,w=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function j(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var O,k,N=new WeakMap,S=t=>"object"==(t=typeof t)||"function"===t,E=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&r?c[c.length-1].h+=o:c.push(i?C(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,R);const f=C(t,null);return f.v=n,c.length>0&&(f.m=c),f.$=l,f.j=s,f},C=(t,n)=>({u:0,O:t,h:null!=n?n:null,k:null,m:null,v:null,$:null,j:null}),M={},R={forEach:(t,n)=>t.map(x).forEach(n),map:(t,n)=>t.map(x).map(n).map(T)},x=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.h}),T=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),E(t.vtag,n,...t.vchildren||[])}const n=C(t.vtag,t.vtext);return n.v=t.vattrs,n.m=t.vchildren,n.$=t.vkey,n.j=t.vname,n},F=(t,n)=>null==t||S(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,L=(t,e)=>{const o=(t=>{var e;return null==(e=n(t))?void 0:e.$hostElement$})(t);return{emit:t=>A(o,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},A=(t,n,e)=>{const o=r.ce(n,e);return t.dispatchEvent(o),o},P=(t,n,e,l,s,c)=>{if(e===l)return;let u=o(t,n),f=n.toLowerCase();if("class"===n){const n=t.classList,o=_(e);let s=_(l);n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===n){for(const n in e)l&&null!=l[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in l)e&&l[n]===e[n]||(n.includes("-")?t.style.setProperty(n,l[n]):t.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&it(l,t);else if(u||"o"!==n[0]||"n"!==n[1]){const o=S(l);if((u||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[n]!==l&&(t[n]=l);else{const o=null==l?"":l;"list"===n?u=!1:null!=e&&t[n]==o||("function"==typeof t.__lookupSetter__(n)?t[n]=o:t.setAttribute(n,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!u||4&c||s)&&!o&&1===t.nodeType&&t.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):o(i,f)?f.slice(2):f[2]+n.slice(3),e||l){const o=n.endsWith(U);n=n.replace(W,""),e&&r.rel(t,n,e,o),l&&r.ael(t,n,l,o)}},D=/\s/,_=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),U="Capture",W=RegExp(U+"$"),B=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.v||{},s=n.v||{};for(const t of V(Object.keys(l)))t in s||P(o,t,l[t],void 0,e,n.u);for(const t of V(Object.keys(s)))P(o,t,l[t],s[t],e,n.u)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var q=!1,z=!1,H=!1,Y=!1,G=[],I=[],J=(t,n,e)=>{var o;const l=n.m[e];let s,r,c,u=0;if(q||(H=!0,"slot"===l.O&&(l.u|=l.m?2:1)),null!=l.h)s=l.k=i.document.createTextNode(l.h);else if(1&l.u)s=l.k=i.document.createTextNode(""),B(null,l,Y);else{if(Y||(Y="svg"===l.O),!i.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=i.document.createElementNS(Y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!q&&2&l.u?"slot-fb":l.O),Y&&"foreignObject"===l.O&&(Y=!1),B(null,l,Y),l.m){const n="template"===l.O?s.content:s;for(u=0;u<l.m.length;++u)r=J(t,l,u),r&&n.appendChild(r)}"svg"===l.O?Y=!1:"foreignObject"===s.tagName&&(Y=!0)}return s["s-hn"]=k,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=O,s["s-sn"]=l.j||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===w(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),c=t&&t.m&&t.m[e],c&&c.O===l.O&&t.k&&K(t.k)),s},K=t=>{r.u|=1;const n=t.closest(k.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(rt(n,t,null!=e?e:null),t["s-sh"]=void 0,H=!0)}r.u&=-2},Q=(t,n)=>{r.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===k&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==k&&o["s-ol"]&&(rt(nt(o).parentNode,o,nt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,H=!0),n&&Q(o,n)}r.u&=-2},X=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.O&&(r=r.content);l<=s;++l)o[l]&&(i=J(null,e,l),i&&(o[l].k=i,rt(r,i,nt(n))))},Z=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;st(n),t&&(z=!0,t["s-ol"]?t["s-ol"].remove():Q(t,!0),t.remove())}}},tt=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.j===n.j:e?(e&&!t.$&&n.$&&(t.$=n.$),!0):t.$===n.$),nt=t=>t&&t["s-ol"]||t,et=(t,n,e=!1)=>{const o=n.k=t.k,l=t.m,s=n.m,i=n.O,r=n.h;let c;null==r?(Y="svg"===i||"foreignObject"!==i&&Y,"slot"!==i||q||t.j!==n.j&&(n.k["s-sn"]=n.j||"",K(n.k.parentElement)),B(t,n,Y),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],p=n[a],h=o.length-1,v=o[0],m=o[h];const b="template"===e.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=n[++r];else if(null==p)p=n[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(tt(d,v,l))et(d,v,l),d=n[++r],v=o[++c];else if(tt(p,m,l))et(p,m,l),p=n[--a],m=o[--h];else if(tt(d,m,l))"slot"!==d.O&&"slot"!==m.O||Q(d.k.parentNode,!1),et(d,m,l),rt(b,d.k,p.k.nextSibling),d=n[++r],m=o[--h];else if(tt(p,v,l))"slot"!==d.O&&"slot"!==m.O||Q(p.k.parentNode,!1),et(p,v,l),rt(b,p.k,d.k),p=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].$&&n[f].$===v.$){u=f;break}u>=0?(i=n[u],i.O!==v.O?s=J(n&&n[c],e,u):(et(i,v,l),n[u]=void 0,s=i.k),v=o[++c]):(s=J(n&&n[c],e,c),v=o[++c]),s&&rt(nt(d.k).parentNode,s,nt(d.k))}r>a?X(t,null==o[h+1]?null:o[h+1].k,e,o,c,h):c>h&&Z(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),X(o,null,n,s,0,s.length-1)):!e&&null!==l&&Z(l,0,l.length-1),Y&&"svg"===i&&(Y=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.h!==r&&(o.data=r)},ot=[],lt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(g(n,l)){let e=ot.find((t=>t.N===n));z=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.S=t):(n["s-sh"]=t["s-hn"],ot.push({S:t,N:n})),n["s-sr"]&&ot.map((t=>{g(t.N,n["s-sn"])&&(e=ot.find((t=>t.N===n)),e&&!t.S&&(t.S=e.S))}))}else ot.some((t=>t.N===n))||ot.push({N:n})}1===t.nodeType&&lt(t)}},st=t=>{t.v&&t.v.ref&&G.push((()=>t.v.ref(null))),t.m&&t.m.map(st)},it=(t,n)=>{I.push((()=>t(n)))},rt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=w(t)||"";return{slotNode:y(j(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},ct=(t,n)=>{if(n&&!t.C&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.C=()=>{n["s-p"].splice(e-1,1),o()})))}},ut=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);ct(t,t.M);const e=()=>ft(t,n);if(!n)return m(e);queueMicrotask((()=>{e()}))},ft=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.R&&(t.R=!1,bt(o,"connectedCallback",void 0,e)),t.T.length&&t.T.forEach((t=>t(e))),l=bt(o,"componentWillLoad",void 0,e)):l=bt(o,"componentWillUpdate",void 0,e),l=at(l,(()=>bt(o,"componentWillRender",void 0,e))),at(l,(()=>pt(t,o,n)))},at=(t,n)=>dt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),dt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,pt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];ht(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>vt(t);0===n.length?e():(Promise.all(n).then(e),t.u|=4,n.length=0)}},ht=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,c,u;const f=t.$hostElement$,a=t.o,d=t.F||C(null,null),p=(t=>t&&t.O===M)(n)?n:E(null,null,n);if(k=f.tagName,e&&p.v)for(const t of Object.keys(p.v))f.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(p.v[t]=f[t]);if(p.O=null,p.u|=4,t.F=p,p.k=d.k=f,q=!1,O=f["s-cr"],z=!1,et(d,p,e),r.u|=1,H){lt(p.k);for(const t of ot){const n=t.N;if(!n["s-ol"]&&i.document){const t=i.document.createTextNode("");t["s-nr"]=n,rt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of ot){const n=t.N,r=t.S;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(rt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=i.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,rt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(c=n["s-ih"])&&c)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(z&&b(p.k),r.u&=-2,ot.length=0,!q&&!(1&a.u)&&f["s-cr"]){const t=p.k.__childNodes||p.k.childNodes;for(const n of t)if(n["s-hn"]!==k&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(u=n.hidden)&&u),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=i.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],rt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}O=void 0,G.forEach((t=>t())),G.length=0,I.forEach((t=>t())),I.length=0})(t,n,o)}catch(n){l(n,t.$hostElement$)}return null},vt=t=>{const n=t.$hostElement$,e=t.i,o=t.M;bt(e,"componentDidRender",void 0,n),64&t.u?bt(e,"componentDidUpdate",void 0,n):(t.u|=64,yt(n),bt(e,"componentDidLoad",void 0,n),t.L(n),o||mt()),t.C&&(t.C(),t.C=void 0),512&t.u&&v((()=>ut(t,!1))),t.u&=-517},mt=()=>{v((()=>A(i,"appload",{detail:{namespace:"db-ux"}})))},bt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){l(t,o)}},yt=t=>t.classList.add("hydrated"),$t=(t,e,o,s)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.A}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.l.get(e),u=i.u,f=i.i;if(o=F(o,s.t[e][0]),!(8&u&&void 0!==c||o===c||Number.isNaN(c)&&Number.isNaN(o))){if(i.l.set(e,o),s.P){const t=s.P[e];t&&t.map((t=>{try{const[[n,l]]=Object.entries(t);(128&u||1&l)&&(f?f[n](o,c,e):i.T.push((()=>{i.i[n](o,c,e)})))}catch(t){l(t,r)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,e))return;ut(i,!1)}}},gt=(t,e,o)=>{var l,s;const i=t.prototype;{t.watchers&&!e.P&&(e.P=t.watchers),t.deserializers&&!e.D&&(e.D=t.deserializers),t.serializers&&!e._&&(e._=t.serializers);const c=Object.entries(null!=(l=e.t)?l:{});if(c.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>n(this).l.get(e))(0,t);const o=n(this),l=o?o.i:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(i){if(r)return void 0===(32&l?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(s=i.l.get(t)),r.call(this,F(s,l)),void $t(this,t,s=32&l?this[t]:i.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return $t(this,t,s,e),void(1&o&&!i.i&&i.T.push((()=>{4096&e.t[t][0]&&i.i[t]!==i.l.get(t)&&(i.i[t]=s)})));const n=()=>{const n=i.i[t];!i.l.get(t)&&n&&i.l.set(t,n),i.i[t]=F(s,l),$t(this,t,i.i[t],e)};i.i?n():i.T.push((()=>{n()}))}}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){r.jmp((()=>{var r;const u=o.get(t),f=n(this);if(this.hasOwnProperty(u)&&(s=this[u],delete this[u]),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const n=null==f?void 0:f.u;if(f&&n&&!(8&n)&&s!==l){const o=f.i,i=null==(r=e.P)?void 0:r[t];null==i||i.forEach((e=>{const[[i,r]]=Object.entries(e);null!=o[i]&&(128&n||1&r)&&o[i].call(o,s,l,t)}))}return}const a=c.find((([t])=>t===u));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(i,u);s==this[u]||d.get&&!d.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.P)?s:{}),...c.filter((([t,n])=>31&n[0])).map((([t,n])=>{const e=n[1]||t;return o.set(e,t),e}))]))}}return t},wt=(t,n)=>{bt(t,"connectedCallback",void 0,n)},jt=(t,n)=>{bt(t,"disconnectedCallback",void 0,n||t)},Ot=(t,e={})=>{var o;if(!i.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],u=e.exclude||[],f=i.customElements,a=i.document.head,d=a.querySelector("meta[charset]"),p=i.document.createElement("style"),h=[];let v,m=!0;Object.assign(r,e),r.p=new URL(e.resourcesUrl||"./",i.document.baseURI).href;let b=!1;if(t.map((t=>{t[1].map((e=>{var o,a,d;const p={u:e[0],A:e[1],t:e[2],U:e[3]};4&p.u&&(b=!0),p.t=e[2],p.P=null!=(o=e[4])?o:{},p._=null!=(a=e[5])?a:{},p.D=null!=(d=e[6])?d:{};const y=p.A,$=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,W:new Map};e.B=new Promise((t=>e.L=t)),t["s-p"]=[],t["s-rc"]=[],e.T=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,p)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),m?h.push(this):r.jmp((()=>(t=>{if(!(1&r.u)){const e=n(t);if(!e)return;const o=e.o,r=()=>{};if(1&e.u)(null==e?void 0:e.i)?wt(e.i,t):(null==e?void 0:e.B)&&e.B.then((()=>wt(e.i,t)));else{e.u|=1,12&o.u&&(t=>{if(!i.document)return;const n=t["s-cr"]=i.document.createComment("");n["s-cn"]=!0,rt(t,n,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){ct(e,e.M=n);break}}o.t&&Object.entries(o.t).map((([n,[e]])=>{if(31&e&&n in t&&t[n]!==Object.prototype[n]){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.u))if(n.u|=32,e.V){const i=((t,n)=>{const e=t.A.replace(/-/g,"_"),o=t.V;if(!o)return;const i=s.get(o);return i?i[e]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[e])),(t=>{l(t,n.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${e.A}#${n.q}" was not found`);o.isProxied||(e.P=o.watchers,e._=o.serializers,e.D=o.deserializers,gt(o,e,2),o.isProxied=!0);const r=()=>{};n.u|=8;try{new o(n)}catch(n){l(n,t)}n.u&=-9,n.u|=128,r(),4&e.u?n.R=!0:wt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));const i=n.M,r=()=>ut(n,!0);i&&i["s-rc"]?i["s-rc"].push(r):r()})(t,e,o)}r()}})(this))))}disconnectedCallback(){r.jmp((()=>(async t=>{if(!(1&r.u)){const e=n(t);(null==e?void 0:e.i)?jt(e.i,t):(null==e?void 0:e.B)&&e.B.then((()=>jt(e.i,t)))}N.has(t)&&N.delete(t),t.shadowRoot&&N.has(t.shadowRoot)&&N.delete(t.shadowRoot)})(this))),r.raf((()=>{var t;const e=n(this);if(!e)return;const o=h.findIndex((t=>t===this));o>-1&&h.splice(o,1),(null==(t=null==e?void 0:e.F)?void 0:t.k)instanceof Node&&!e.F.k.isConnected&&delete e.F.k}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.B}};p.V=t[0],u.includes(y)||f.get(y)||(c.push(y),f.define(y,gt($,p,1)))}))})),c.length>0&&(b&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",p.innerHTML.length)){p.setAttribute("data-styles","");const t=null!=(o=r.H)?o:function(){var t,n,e;return null!=(e=null==(n=null==(t=i.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();null!=t&&p.setAttribute("nonce",t),a.insertBefore(p,d?d.nextSibling:a.firstChild)}m=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>v=setTimeout(mt,30)))},kt=(t,n)=>n,Nt=t=>r.H=t;export{kt as F,Ot as b,L as c,E as h,c as p,e as r,Nt as s}
@@ -1 +0,0 @@
1
- const t=t=>{const{outTop:o,outBottom:e,outLeft:i,outRight:l}=(t=>{var o;const{top:e,bottom:i,left:l,right:n}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:d}=window;let h=e<0,p=i>r,c=l<0,s=n>d;const a=t.dataset.outsideVy,f=t.dataset.outsideVx,g=null===(o=null==t?void 0:t.parentElement)||void 0===o?void 0:o.getBoundingClientRect();return g&&(a&&("top"===t.dataset.outsideVy?h=g.top-(i-g.bottom)<0:p=g.bottom+(g.top-e)>r),f&&("left"===t.dataset.outsideVx?c=g.left-(n-g.right)<0:s=g.right+(g.left-l)>d)),{outTop:h,outBottom:p,outLeft:c,outRight:s}})(t);let n={};return o||e?(n={vy:o?"top":"bottom"},t.dataset.outsideVy=n.vy):delete t.dataset.outsideVy,i||l?(n=Object.assign(Object.assign({},n),{vx:l?"right":"left"}),t.dataset.outsideVx=n.vx):delete t.dataset.outsideVx,n},o=(t,o,i)=>{if("9999"===getComputedStyle(t).zIndex)return;const{top:l,bottom:n,childHeight:r,childWidth:d,width:h,right:p,left:c,correctedPlacement:s}=e(t,o,i);"full"===t.dataset.width&&(t.style.inlineSize=`${h}px`),"top"===s||"bottom"===s||"top-start"===s||"bottom-start"===s?t.style.insetInlineStart=`${c}px`:"top-end"!==s&&"bottom-end"!==s||(t.style.insetInlineStart=p-d+"px"),(null==s?void 0:s.startsWith("top"))?t.style.insetBlockStart=l-r+"px":(null==s?void 0:s.startsWith("bottom"))&&(t.style.insetBlockStart=`${n}px`),t.style.position="fixed"},e=(t,o,e)=>{if(!t||!o)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:e,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const i=t.getBoundingClientRect(),{top:l,height:n,bottom:r,right:d,left:h,width:p}=o.getBoundingClientRect(),{innerHeight:c,innerWidth:s}=window;let a=i.height,f=i.width;"bottom"!==e&&"top"!==e||(f/=2),"left"!==e&&"right"!==e||(a/=2);const g=r+a>c,b=l-a<0,m=h-f<0,$=d+f>s;let u=e;return e.startsWith("bottom")?g?(u=null==e?void 0:e.replace("bottom","top"),m&&$?u="top":m?u="top-start":$&&(u="top-end")):m&&$?u="bottom":m?u="bottom-start":$&&(u="bottom-end"):e.startsWith("top")?b?(u=null==e?void 0:e.replace("top","bottom"),m&&$?u="bottom":m?u="bottom-start":$&&(u="bottom-end")):m&&$?u="top":m?u="top-start":$&&(u="top-end"):e.startsWith("left")?m?(u=null==e?void 0:e.replace("left","right"),g&&b?u="right":g?u="right-end":b&&(u="right-start")):g&&b?u="left":g?u="left-end":b&&(u="left-start"):u.startsWith("right")&&($?(u=null==e?void 0:e.replace("right","left"),g&&b?u="left":g?u="left-end":b&&(u="left-start")):g&&b?u="right":g?u="right-end":b&&(u="right-start")),{top:l,bottom:r,right:d,height:n,width:p,left:h,childHeight:i.height,childWidth:i.width,correctedPlacement:u,innerWidth:s,innerHeight:c}},i=(t,o,i)=>{var l;const n=null!==(l=getComputedStyle(t).getPropertyValue("--db-popover-distance"))&&void 0!==l?l:"0px",{top:r,height:d,width:h,childHeight:p,childWidth:c,right:s,left:a,bottom:f,correctedPlacement:g,innerWidth:b,innerHeight:m}=e(t,o,i);if(c>h&&(g.startsWith("bottom")||g.startsWith("top"))){const o=h/2/c*100;g.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-inline-start",`${o}%`):g.endsWith("end")&&t.style.setProperty("--db-tooltip-arrow-inline-start",100-o+"%")}if(p>d&&(g.startsWith("left")||g.startsWith("bottom"))){const o=d/2/p*100;g.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-block-start",`${o}%`):g.endsWith("end")&&t.style.setProperty("--db-tooltip-arrow-block-start",100-o+"%")}if("right"===g||"left"===g)t.style.insetBlockStart=`${r+d/2}px`;else if("right-start"===g||"left-start"===g){const o=r+p;t.style.insetBlockStart=`${r}px`,t.style.insetBlockEnd=`${o>m?m:o}px`}else if("right-end"===g||"left-end"===g){const o=f-p;t.style.insetBlockStart=`${o<0?0:o}px`,t.style.insetBlockEnd=`${f}px`}else if("top"===g||"bottom"===g)t.style.insetInlineStart=`${a+h/2}px`;else if("top-start"===g||"bottom-start"===g){const o=a+c;t.style.insetInlineStart=`${a}px`,t.style.insetInlineEnd=`${o>b?b:o}px`}else if("top-end"===g||"bottom-end"===g){const o=a-c;t.style.insetInlineStart=s-c+"px",t.style.insetInlineEnd=`${o<0?0:o}px`}if(null==g?void 0:g.startsWith("right")){const o=s+c;t.style.insetInlineStart=`calc(${s}px + ${n})`,t.style.insetInlineEnd=`calc(${o>b?b:o}px + ${n})`}else if(null==g?void 0:g.startsWith("left")){const o=a-c;t.style.insetInlineStart=`calc(${o<0?0:o}px - ${n})`,t.style.insetInlineEnd=`calc(${s}px - ${n})`}else if(null==g?void 0:g.startsWith("top")){const o=r-p;t.style.insetBlockStart=`calc(${o<0?0:o}px - ${n})`,t.style.insetBlockEnd=`calc(${f}px - ${n})`}else if(null==g?void 0:g.startsWith("bottom")){const o=f+p;t.style.insetBlockStart=`calc(${f}px + ${n})`,t.style.insetBlockEnd=`calc(${o>m?m:o}px + ${n})`}t.style.position="fixed",t.dataset.correctedPlacement=g};export{o as a,i as b,e as g,t as h}
@@ -1 +0,0 @@
1
- import{r as t,h as i,c as s}from"./p-B6-lLNGQ.js";import{c as a,e as h,u as e,g as d,h as c,d as l,s as n,i as o,k as r,f as u,j as b,b as v,l as f}from"./p-C4x0SOcx.js";import{l as m,g as w,h as y,j as g,f as p,k,b as x,a as $,m as _,D as F}from"./p-BdL-nI5y.js";import{c as C}from"./p-CAEpg8tJ.js";const D=class{constructor(i){t(this,i),this.width="fixed"}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const h=i.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))&&(t.setAttribute(h.name,h.value),s.removeAttribute(h.name)),h&&"class"===h.name){const i=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(h.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-dropdown")}render(){return i("article",{key:"98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23",class:a("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",ref:t=>{this._ref=t},id:this.id,"data-width":this.width},i("slot",{key:"25bcaa79bdf8168feffce0a59c0adbc656023e64"}))}},L=class{constructor(i){t(this,i)}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const h=i.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))&&(t.setAttribute(h.name,h.value),s.removeAttribute(h.name)),h&&"class"===h.name){const i=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(h.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-list")}render(){return i("div",{key:"f47e219aac45d07e958a94969205260af981bcf1",class:a("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,ref:t=>{this._ref=t},id:this.id},i("ul",{key:"adca0d159ec4cd5d2dc46f11fe41006276dba94f"},i("slot",{key:"abb6edfb683a3e4a42512b2185854099c66f1f3c"})))}},A=class{constructor(i){t(this,i),this.change=s(this,"change"),this._id=void 0,this.hasDivider=!1}handleChange(t){t.stopPropagation(),this.change&&this.change.emit(t)}getIconTrailing(){if(!this.isGroupTitle&&"checkbox"!==this.type)return h(this.checked,"checked")?"check":"x_placeholder"}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const h=i.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))&&(t.setAttribute(h.name,h.value),s.removeAttribute(h.name)),h&&"class"===h.name){const i=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(h.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){this.hasDivider=Boolean(this.isGroupTitle||this.showDivider)}watch0(){this.watch0Fn()}componentDidLoad(){var t;this.enableAttributePassing(this._ref,"db-custom-select-list-item"),this._id=null!==(t=this.id)&&void 0!==t?t:`custom-select-list-item-${e()}`,this.watch0Fn()}render(){return i("li",{key:"d94821da8bf1842933f6518079c9e463459bed2b",class:a("db-custom-select-list-item",this.className,{"db-checkbox":"checkbox"===this.type&&!this.isGroupTitle,"db-radio":"checkbox"!==this.type&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:this._id,"data-divider":d(this.hasDivider)},this.isGroupTitle?i("span",null,this.groupTitle):i("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":d(this.showIcon),"data-icon-trailing":this.getIconTrailing()},i("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:h(this.checked,"checked"),disabled:h(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),this.label?this.label:i("slot",null)))}static get watchers(){return{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}}},P=class{constructor(i){t(this,i),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._dataListId=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,a;(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)?(this._descByIds=this._validMessageId,c()&&(this._voiceOverFallback=null!==(a=this.validMessage)&&void 0!==a?a:k,l((()=>this._voiceOverFallback=""),1e3))):this._descByIds=n(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||m,c()&&(this._voiceOverFallback=this._invalidMessage,l((()=>this._voiceOverFallback=""),1e3)))}handleInput(t,i){this.input&&this.input.emit(t),this.handleValidation()}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}getDataList(){const t=this.dataList;return Array.from((o(t)?null==t?void 0:t.map((t=>({value:t,label:void 0}))):t)||[])}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const h=i.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))&&(t.setAttribute(h.name,h.value),s.removeAttribute(h.name)),h&&"class"===h.name){const i=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(h.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){var t;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||m}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._id){const i=this._id+p;this._messageId=i,this._validMessageId=this._id+w,this._invalidMessageId=this._id+y,this._dataListId=null!==(t=this.dataListId)&&void 0!==t?t:this._id+g,n(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){void 0!==this.value&&(this._value=this.value)}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),C(this._ref,{value:this.value,defaultValue:t},(t=>{this.handleChange(t,!0),this.handleInput(t,!0)}),i.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){var t;this.enableAttributePassing(this._ref,"db-input");const i=null!==(t=this.id)&&void 0!==t?t:`input-${e()}`;this._id=i,this._messageId=i+p,this._validMessageId=i+w,this._invalidMessageId=i+y,this._dataListId=i+g,this._invalidMessage=this.invalidMessage||m,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){var t,s,e,c,l,o,m,w;return i("div",{key:"b6b5870b00e7a3ef0155004291fc9c646863faa9",class:a("db-input",this.className),"data-variant":this.variant,"data-hide-label":f(this.showLabel),"data-show-icon":d(null!==(t=this.showIconLeading)&&void 0!==t?t:this.showIcon),"data-icon":null!==(s=this.iconLeading)&&void 0!==s?s:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":f(this.showRequiredAsterisk),"data-show-icon-trailing":d(this.showIconTrailing)},i("label",{key:"ac47e1bd7206de27075a86e3b5bf59647cffa8de",htmlFor:this._id},null!==(e=this.label)&&void 0!==e?e:$),i("input",{key:"40170ba9d207c96b4e86232f367a70a3301eb914","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:t=>{this._ref=t},id:this._id,name:this.name,type:this.type||"text",multiple:h(this.multiple,"multiple"),accept:this.accept,placeholder:null!==(c=this.placeholder)&&void 0!==c?c:x,disabled:h(this.disabled,"disabled"),required:h(this.required,"required"),step:b(this.step),value:null!==(l=this.value)&&void 0!==l?l:this._value,maxLength:u(this.maxLength,this.maxlength),minLength:u(this.minLength,this.minlength),max:r(this.max,this.type),min:r(this.min,this.type),readOnly:h(this.readOnly,"readOnly")||h(this.readonly,"readonly"),form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:h(this.autofocus,"autofocus"),enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),list:this.dataList&&this._dataListId,"aria-describedby":null!==(o=this.ariaDescribedBy)&&void 0!==o?o:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(m=this.type)&&void 0!==m?m:"")&&v()?"textbox":void 0}),this.dataList?i("datalist",{id:this._dataListId},null===(w=this.getDataList())||void 0===w?void 0:w.map((t=>i("option",{key:this._dataListId+"-option-"+t.value,value:t.value},t.label)))):null,i("slot",{key:"dd4cf602903406782a97e88ad8ccb8aacb903421"}),n(this.message,this.showMessage)?i("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?i("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||k):null,i("db-infotext",{key:"081dc92e27a0b81733d3200f97686fbe5fa15f76",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),i("span",{key:"43be19988deae0484f47eed9b19e0556238b558d","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:[{watch0:0},{watch3:0}],invalidMessage:[{watch0:0}],_id:[{watch1:0}],value:[{watch2:0}]}}},z=class{constructor(i){t(this,i),this.remove=s(this,"remove")}handleRemove(t){t&&(t.stopPropagation(),this.remove&&this.remove.emit(t))}getRemoveButtonText(){return this.removeButton?this.removeButton:_}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const h=i.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))&&(t.setAttribute(h.name,h.value),s.removeAttribute(h.name)),h&&"class"===h.name){const i=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(h.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tag")}render(){var t;return i("div",{key:"6be4d8cc4b856ac198e4c207860e9529c436060f",class:a("db-tag",this.className),ref:t=>{this._ref=t},id:this.id,"data-semantic":this.semantic,"data-emphasis":this.emphasis,"data-icon":this.icon,"data-show-check-state":d(null===(t=this.showCheckState)||void 0===t||t),"data-show-icon":d(this.showIcon),"data-no-text":d(this.noText),"data-overflow":d(this.overflow)},i("slot",{key:"3ed9ce9b0eb66bb92a2c4a5303be1b0d16001841",name:"content"}),i("slot",{key:"9098de64b545b04f81f6a980700879610f9ec7bc"}),this.text?this.text:null,"removable"===this.behavior?i("button",{class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",type:"button",onClick:t=>this.handleRemove(t)},i("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}},B=class{constructor(i){t(this,i),this.timeout=s(this,"timeout"),this.autoDisable=!0,this.indeterminate=!0,this.size="medium",this.variant="inline",this._id=F,this._loadingState="inactive",this._previousLoadingState=void 0,this._style={},this.initialized=!1}getPercentage(){if(!this.indeterminate&&this.value&&this.max)return`${(Number(this.value)/Number(this.max)).toFixed(2)}`}getRole(){if(this.role){if("none"===this.role)return;return this.role}return"status"}handleParentDisabled(){if(this._ref&&this.autoDisable&&this.initialized){let t=this._ref.parentElement;t&&"db-loading-indicator"===t.localName&&(t=t.parentElement),t&&"disabled"in t&&(t.disabled="inactive"!==this._loadingState)}}handleParentAria(t){if(this._ref&&this._id&&this.initialized){let i=this._ref.parentElement;if(i&&"db-loading-indicator"===i.localName&&(i=i.parentElement),!i)return;const s="button"===(null==i?void 0:i.localName);if(!s&&!this.overlay)return;const a=s?"aria-labelledby":"aria-describedby",h=i.getAttribute(a);let e=h?h.split(","):[];if(t||"inactive"===this._loadingState){if(!e.includes(this._id))return;e=e.filter((t=>t!==this._id)),s||(i.ariaBusy=null)}else e.includes(this._id)||e.push(this._id),s||(i.ariaBusy="active"===this._loadingState?"true":null);e.length?i.setAttribute(a,e.join(",")):i.removeAttribute(a)}}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const h=i.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))&&(t.setAttribute(h.name,h.value),s.removeAttribute(h.name)),h&&"class"===h.name){const i=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(h.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){this.handleParentDisabled()}watch0(){this.watch0Fn()}watch1Fn(){this.handleParentAria(!1)}watch1(){this.watch1Fn()}watch2Fn(){this.timeout&&"inactive"!==this._loadingState&&this._loadingState!==this._previousLoadingState&&(this._previousLoadingState=this._loadingState,l((()=>{this.timeout&&this.timeout.emit(this._loadingState)}),"active"===this._loadingState?5e3:2e3))}watch2(){this.watch2Fn()}watch3Fn(){this._loadingState!==this.state&&(this._loadingState=this.state?this.state:void 0===this.indeterminate||this.indeterminate?"active":"inactive")}watch3(){this.watch3Fn()}watch4Fn(){this._ref&&("slow"!==this.delay&&"fast"!==this.delay||l((()=>{this._ref&&(this._ref.dataset.delay="")}),"slow"===this.delay?500:250))}watch4(){this.watch4Fn()}watch5Fn(){this._style={"--db-loading-indicator-percentage":this.getPercentage()}}watch5(){this.watch5Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-loading-indicator"),this._id=this.id||"loading-indicator-"+e(),this.initialized=!0,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn()}disconnectedCallback(){this.handleParentAria(!0),this.handleParentDisabled()}render(){var t,s;return i("div",{key:"4467fd7c9ebec6fe699995183b870ea08fa60ba7",class:a("db-loading-indicator",this.className),ref:t=>{this._ref=t},style:this._style,"data-indeterminate":d(this.indeterminate),"data-size":this.size,"data-variant":this.variant,"data-delay":this.delay,"data-state":this._loadingState,"data-overlay":d(this.overlay)},"progress-bar"!==this.variant?i("svg",{class:"db-loading-indicator-circle","aria-hidden":"true",viewBox:"inline"===this.variant?"10 10 20 20":"32 32 64 64"},i("circle",{class:"db-loading-indicator-circle-track"}),i("circle",{class:"db-loading-indicator-circle-segment"})):null,i("div",{key:"7ea9f9fd64f1b7d073ca7917a4e8eb905eb344f0",role:this.getRole()},i("label",{key:"de7fd82a1e14e459735cf596f18104722965e7f2","data-show-label":d(this.showLabel),id:this._id},this.label?this.label:i("slot",null),i("progress",{key:"d2abf58f6595675e873056610e1bec18bf4dff85",value:this.indeterminate?void 0:null!==(t=this.value)&&void 0!==t?t:0,max:this.indeterminate?void 0:null!==(s=this.max)&&void 0!==s?s:100},this.indeterminate?void 0:this.progressText)),this.indeterminate?null:i("span",{"aria-hidden":"true","data-show-progress-text":d(this.showProgressText)},this.progressText)))}static get watchers(){return{_ref:[{watch0:0},{watch1:0},{watch4:0}],initialized:[{watch0:0},{watch1:0}],autoDisable:[{watch0:0}],_loadingState:[{watch0:0},{watch1:0},{watch2:0}],overlay:[{watch1:0}],_id:[{watch1:0}],timeout:[{watch2:0}],state:[{watch3:0}],delay:[{watch4:0}],indeterminate:[{watch5:0}],value:[{watch5:0}],max:[{watch5:0}]}}};export{D as db_custom_select_dropdown,L as db_custom_select_list,A as db_custom_select_list_item,P as db_input,B as db_loading_indicator,z as db_tag}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as i}from"./p-B6-lLNGQ.js";import{s as a}from"./p-BdL-nI5y.js";import{e,s as n,g as o,p as l,c}from"./p-C4x0SOcx.js";const d=class{constructor(i){s(this,i),this.close=t(this,"close")}handleClose(s){s&&(s.stopPropagation(),this.close&&this.close.emit(s))}enableAttributePassing(s,t){const i=null==s?void 0:s.closest(t);if(s&&i){const t=i.attributes;for(let a=0;a<t.length;a++){const e=t.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))&&(s.setAttribute(e.name,e.value),i.removeAttribute(e.name)),e&&"class"===e.name){const t=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),n=s.getAttribute("class");s.setAttribute(e.name,`${n?`${n} `:""}${a}`),t?i.setAttribute("class","hydrated"):i.removeAttribute(e.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-notification")}render(){var s;return i("div",{key:"c02c5f52518a3ec9ef881a31c7fbfb82e6916ceb",class:c("db-notification",this.className),ref:s=>{this._ref=s},id:this.id,role:l({semantic:this.semantic,role:this.role,ariaLive:this.ariaLive}),"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":!1!==e(this.showIcon)?this.icon:void 0,"data-show-icon":o(this.showIcon),"data-link-variant":this.linkVariant},i("slot",{key:"6aa1d954e740bedd0fcd01698c2d96b6949f25a5",name:"image"}),n(this.headline,this.showHeadline)?i("header",null,this.headline):null,i("p",{key:"8319a32b151cd2fdfe68cf60d87efb5a0e2363b6"},this.text?this.text:i("slot",null)),n(this.timestamp,this.showTimestamp)?i("span",null,this.timestamp):null,i("slot",{key:"a2d398e89f54e8c9207e2865ed238c0a8672bfd8",name:"link"}),e(this.closeable,"closeable")?i("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:!0,onClick:s=>this.handleClose(s)},null!==(s=this.closeButtonText)&&void 0!==s?s:a):null)}};export{d as db_notification}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-B6-lLNGQ.js";import{c as e}from"./p-C4x0SOcx.js";const a=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const e=null==s?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&(d.name.startsWith("data-")||d.name.startsWith("aria-"))&&(s.setAttribute(d.name,d.value),e.removeAttribute(d.name)),d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),c=s.getAttribute("class");s.setAttribute(d.name,`${c?`${c} `:""}${a}`),t?e.setAttribute("class","hydrated"):e.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-form-field")}render(){return t("summary",{key:"d99ab4a28f0604d5aa10d54e5da18ce976a93bf8",class:e("db-custom-select-form-field",this.className),ref:s=>{this._ref=s},id:this.id},t("slot",{key:"40f581da69159f298d83a097e08c2f74e5dfcb23"}))}};export{a as db_custom_select_form_field}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s}from"./p-B6-lLNGQ.js";import{l as h,g as a,h as e,f as d,k as l,b as n,r as o,a as r}from"./p-BdL-nI5y.js";import{h as c,d as v,s as u,u as b,f,e as m,l as p,c as w}from"./p-C4x0SOcx.js";import{c as y}from"./p-CAEpg8tJ.js";const x=class{constructor(s){t(this,s),this.input=i(this,"input"),this.change=i(this,"change"),this.blur=i(this,"blur"),this.focus=i(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,a;(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,c()&&(this._voiceOverFallback=null!==(a=this.validMessage)&&void 0!==a?a:l,v((()=>this._voiceOverFallback=""),1e3))):this._descByIds=u(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||h,c()&&(this._voiceOverFallback=this._invalidMessage,v((()=>this._voiceOverFallback=""),1e3)))}handleInput(t,i){this.input&&this.input.emit(t),this.handleValidation()}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let h=0;h<i.length;h++){const a=i.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))&&(t.setAttribute(a.name,a.value),s.removeAttribute(a.name)),a&&"class"===a.name){const i=a.value.includes("hydrated"),h=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e?`${e} `:""}${h}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||h}watch0(){this.watch0Fn()}watch1Fn(){if(this._id){const t=this._id+d;this._messageId=t,this._validMessageId=this._id+a,this._invalidMessageId=this._id+e,u(this.message,this.showMessage)&&(this._descByIds=t),this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){void 0!==this.value&&(this._value=this.value)}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),y(this._ref,{value:this.value,defaultValue:t},(t=>{this.handleChange(t,!0),this.handleInput(t,!0)}),i.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){var t;this.enableAttributePassing(this._ref,"db-textarea");const i=null!==(t=this.id)&&void 0!==t?t:`textarea-${b()}`;this._id=i,this._messageId=i+d,this._validMessageId=i+a,this._invalidMessageId=i+e,this._invalidMessage=this.invalidMessage||h,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){var t,i,h,a,e;return s("div",{key:"523bebc81d6e424b5d03762aeab7033f9d0aafb2",class:w("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":p(this.showRequiredAsterisk),"data-hide-label":p(this.showLabel)},s("label",{key:"4054a26429d9e71770ec179563c523eea3fbafb7",htmlFor:this._id},null!==(t=this.label)&&void 0!==t?t:r),s("textarea",{key:"07b74b6868d4b9eed859ae09fb8a7658700e1c57","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:t=>{this._ref=t},id:this._id,"data-resize":this.resize,"data-hide-resizer":p(null===(i=this.showResizer)||void 0===i||i),disabled:m(this.disabled,"disabled"),required:m(this.required,"required"),readOnly:m(this.readOnly,"readOnly")||m(this.readonly,"readonly"),form:this.form,maxLength:f(this.maxLength,this.maxlength),minLength:f(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),value:null!==(h=this.value)&&void 0!==h?h:this._value,"aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(e=this.placeholder)&&void 0!==e?e:n,rows:f(this.rows,o),cols:f(this.cols)}),u(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"e305c1b1827697e920467a34a3dbf895c664ad20",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"efb2b1f4d91fbf5c6fedb83dc771f9a8111c8f55","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:[{watch0:0},{watch3:0}],invalidMessage:[{watch0:0}],_id:[{watch1:0}],value:[{watch2:0}]}}};export{x as db_textarea}
@@ -1 +0,0 @@
1
- import{r as a,h as s}from"./p-B6-lLNGQ.js";import{D as t}from"./p-BdL-nI5y.js";import{u as i,c as e}from"./p-C4x0SOcx.js";const d=class{constructor(s){a(this,s),this._id=t}enableAttributePassing(a,s){const t=null==a?void 0:a.closest(s);if(a&&t){const s=t.attributes;for(let i=0;i<s.length;i++){const e=s.item(i);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))&&(a.setAttribute(e.name,e.value),t.removeAttribute(e.name)),e&&"class"===e.name){const s=e.value.includes("hydrated"),i=e.value.replace("hydrated","").trim(),d=a.getAttribute("class");a.setAttribute(e.name,`${d?`${d} `:""}${i}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation"),this._id=this.id||"navigation-"+i()}render(){return s("nav",{key:"7ca06eb30c08a1b7a595a92d156cc35e1ed1fab0",class:e("db-navigation",this.className),ref:a=>{this._ref=a},id:this._id},s("menu",{key:"9fb0d02c73a39da0efa0e50f1b7836af84e729d7"},s("slot",{key:"3f21156518d0bae763c8cd43a59b2d4bb579fa1e"})))}};export{d as db_navigation}
@@ -1,49 +0,0 @@
1
- import { PopoverDelayType, SizeType } from '../../../shared/model';
2
- import { LoadingIndicatorStateType, LoadingIndicatorVariantType } from '../model';
3
- export declare const indicators: {
4
- variant: LoadingIndicatorVariantType;
5
- progressText: string;
6
- progressTextState: string;
7
- label: string;
8
- }[];
9
- export declare const densities: {
10
- value: string;
11
- name: string;
12
- }[];
13
- export declare const indeterminateArray: {
14
- value: boolean;
15
- name: string;
16
- }[];
17
- export declare const sizes: {
18
- value: SizeType;
19
- name: string;
20
- }[];
21
- export declare const statesArray: {
22
- value: LoadingIndicatorStateType;
23
- name: string;
24
- }[];
25
- export declare const showLabels: {
26
- value: boolean;
27
- name: string;
28
- }[];
29
- export declare const showProgressTexts: {
30
- value: boolean;
31
- name: string;
32
- }[];
33
- export declare const overlays: {
34
- value: boolean;
35
- name: string;
36
- }[];
37
- export declare const delays: {
38
- value: PopoverDelayType;
39
- name: string;
40
- }[];
41
- export declare const buttonExamples: {
42
- overlay: boolean;
43
- name: string;
44
- }[];
45
- export type TimeoutStore = {
46
- loadingState: LoadingIndicatorStateType;
47
- onTimeoutFn: () => void;
48
- getLabel: (loadingState: LoadingIndicatorStateType | string) => string;
49
- };
@@ -1,2 +0,0 @@
1
- import { DBLoadingIndicator } from './loading-indicator';
2
- export default DBLoadingIndicator;
@@ -1,56 +0,0 @@
1
- import { DBLoadingIndicatorProps } from "./model";
2
- import { EventEmitter } from "../../stencil-public-runtime";
3
- /**
4
- * @slot children - This is a default/unnamed slot
5
-
6
- */
7
- export declare class DBLoadingIndicator {
8
- private _ref;
9
- id: DBLoadingIndicatorProps["id"];
10
- autoDisable: DBLoadingIndicatorProps["autoDisable"];
11
- overlay: DBLoadingIndicatorProps["overlay"];
12
- timeout: EventEmitter<Parameters<Required<DBLoadingIndicatorProps>["onTimeout"]>[number]> | void;
13
- state: DBLoadingIndicatorProps["state"];
14
- indeterminate: DBLoadingIndicatorProps["indeterminate"];
15
- delay: DBLoadingIndicatorProps["delay"];
16
- value: DBLoadingIndicatorProps["value"];
17
- max: DBLoadingIndicatorProps["max"];
18
- role: DBLoadingIndicatorProps["role"];
19
- className: DBLoadingIndicatorProps["className"];
20
- size: DBLoadingIndicatorProps["size"];
21
- variant: DBLoadingIndicatorProps["variant"];
22
- showLabel: DBLoadingIndicatorProps["showLabel"];
23
- label: DBLoadingIndicatorProps["label"];
24
- progressText: DBLoadingIndicatorProps["progressText"];
25
- showProgressText: DBLoadingIndicatorProps["showProgressText"];
26
- _id: string;
27
- _loadingState: string;
28
- _previousLoadingState: any;
29
- _style: {};
30
- initialized: boolean;
31
- getPercentage(): string;
32
- getRole(): "alert" | "status";
33
- handleParentDisabled(): void;
34
- handleParentAria(remove: boolean): void;
35
- /**
36
- * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
37
- * @param element the ref for the component
38
- * @param customElementSelector the custom element like `my-component`
39
- */
40
- private enableAttributePassing;
41
- watch0Fn(): void;
42
- watch0(): void;
43
- watch1Fn(): void;
44
- watch1(): void;
45
- watch2Fn(): void;
46
- watch2(): void;
47
- watch3Fn(): void;
48
- watch3(): void;
49
- watch4Fn(): void;
50
- watch4(): void;
51
- watch5Fn(): void;
52
- watch5(): void;
53
- componentDidLoad(): void;
54
- disconnectedCallback(): void;
55
- render(): any;
56
- }
@@ -1,39 +0,0 @@
1
- import { DelayProps, GlobalProps, GlobalState, InitializedState, ShowLabelProps, SizeProps } from '../../shared/model';
2
- export declare const LoadingIndicatorVariantList: readonly ["progress-bar", "onsite", "inline"];
3
- export type LoadingIndicatorVariantType = (typeof LoadingIndicatorVariantList)[number];
4
- export declare const LoadingIndicatorStateList: readonly ["inactive", "active", "successful", "critical"];
5
- export type LoadingIndicatorStateType = (typeof LoadingIndicatorStateList)[number];
6
- export type DBLoadingIndicatorDefaultProps = {
7
- indeterminate?: boolean | string;
8
- label?: string;
9
- max?: number | string;
10
- progressText?: string;
11
- /**
12
- * Enables/disables the visibility of the progressText
13
- */
14
- showProgressText?: boolean | string;
15
- value?: string | number;
16
- overlay?: boolean | string;
17
- variant?: LoadingIndicatorVariantType;
18
- state?: LoadingIndicatorStateType | string;
19
- /**
20
- * Disable the parent component (e.g. a DBButton) when loading indicator is inside it
21
- */
22
- autoDisable?: boolean | string;
23
- role?: 'alert' | 'status' | 'none';
24
- /**
25
- * Triggers after a timeout. For "active" after 5 seconds, for "successful" and "critical" after 2 seconds
26
- */
27
- onTimeout?: (state?: LoadingIndicatorStateType | string) => void;
28
- };
29
- export type DBLoadingIndicatorProps = DBLoadingIndicatorDefaultProps & GlobalProps & SizeProps & ShowLabelProps & DelayProps;
30
- export type DBLoadingIndicatorDefaultState = {
31
- _loadingState?: LoadingIndicatorStateType | string;
32
- _previousLoadingState?: LoadingIndicatorStateType | string;
33
- _style: any;
34
- getPercentage: () => string | undefined;
35
- getRole: () => string | undefined;
36
- handleParentAria: (remove: boolean) => void;
37
- handleParentDisabled: () => void;
38
- };
39
- export type DBLoadingIndicatorState = DBLoadingIndicatorDefaultState & GlobalState & InitializedState;