@db-ux/wc-core-components 4.0.0 → 4.0.1-0-540218c
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.
- package/CHANGELOG.md +5 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/db-ux.cjs.js.map +1 -1
- package/dist/cjs/{index-BKsFzv8w.js → index-Cn0jjcY0.js} +7 -4
- package/dist/{esm/index-Bxi-mtJ7.js.map → cjs/index-Cn0jjcY0.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/db-ux.esm.js.map +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-024ff6cd.entry.js → p-0530a878.entry.js} +2 -2
- package/dist/db-ux/{p-ad18fa93.entry.js → p-09bedc1a.entry.js} +2 -2
- package/dist/db-ux/{p-861b6d7e.entry.js → p-0c4d5d88.entry.js} +2 -2
- package/dist/db-ux/{p-fdfa3d81.entry.js → p-38d2dfea.entry.js} +2 -2
- package/dist/db-ux/{p-c778c9d0.entry.js → p-3cb7ff97.entry.js} +2 -2
- package/dist/db-ux/{p-6b3bd3e5.entry.js → p-45ca9947.entry.js} +2 -2
- package/dist/db-ux/{p-2d564f3f.entry.js → p-4769ec6d.entry.js} +2 -2
- package/dist/db-ux/{p-3e23f0d2.entry.js → p-68bc689b.entry.js} +2 -2
- package/dist/db-ux/p-71a9c2c9.entry.js +2 -0
- package/dist/db-ux/{p-a48df866.entry.js → p-7c27fe0d.entry.js} +2 -2
- package/dist/db-ux/{p-3c470f0d.entry.js → p-807ad902.entry.js} +2 -2
- package/dist/db-ux/{p-8f784d7a.entry.js → p-82311da9.entry.js} +2 -2
- package/dist/db-ux/{p-119ce591.entry.js → p-82369b8d.entry.js} +2 -2
- package/dist/db-ux/{p-f5c17063.entry.js → p-85ad9dfb.entry.js} +2 -2
- package/dist/db-ux/{p-534f0d51.entry.js → p-870bb35b.entry.js} +2 -2
- package/dist/db-ux/{p-aed5d375.entry.js → p-88e27985.entry.js} +2 -2
- package/dist/db-ux/{p-689e2f1b.entry.js → p-9ce7a144.entry.js} +2 -2
- package/dist/db-ux/{p-Bxi-mtJ7.js → p-_OYZj_2L.js} +2 -2
- package/dist/db-ux/{p-Bxi-mtJ7.js.map → p-_OYZj_2L.js.map} +1 -1
- package/dist/db-ux/p-a334df8c.entry.js +2 -0
- package/dist/db-ux/{p-4027a894.entry.js → p-b1be4ba0.entry.js} +2 -2
- package/dist/db-ux/{p-b2f638a6.entry.js → p-b2acf6bd.entry.js} +2 -2
- package/dist/db-ux/{p-d91b57d6.entry.js → p-b63d89c7.entry.js} +2 -2
- package/dist/db-ux/{p-4a48d59a.entry.js → p-ca3555c1.entry.js} +2 -2
- package/dist/db-ux/{p-47a0105a.entry.js → p-ce826494.entry.js} +2 -2
- package/dist/db-ux/{p-686c37e1.entry.js → p-cf9785fe.entry.js} +2 -2
- package/dist/db-ux/{p-985c1c27.entry.js → p-d17fe729.entry.js} +2 -2
- package/dist/db-ux/{p-17e7b60a.entry.js → p-d93934d2.entry.js} +2 -2
- package/dist/db-ux/{p-c50f0e2b.entry.js → p-eab5ef6f.entry.js} +2 -2
- package/dist/db-ux/{p-993303f3.entry.js → p-eabd7598.entry.js} +2 -2
- package/dist/db-ux/p-f2483bef.entry.js +2 -0
- package/dist/db-ux/{p-0735d31e.entry.js → p-f30ec184.entry.js} +2 -2
- package/dist/esm/db-accordion-item.entry.js +1 -1
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +1 -1
- package/dist/esm/db-navigation.entry.js +1 -1
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +1 -1
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +1 -1
- package/dist/esm/db-tooltip.entry.js +1 -1
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/db-ux.js.map +1 -1
- package/dist/esm/{index-Bxi-mtJ7.js → index-_OYZj_2L.js} +7 -4
- package/dist/{cjs/index-BKsFzv8w.js.map → esm/index-_OYZj_2L.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +2 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/db-ux/p-3587b975.entry.js +0 -2
- package/dist/db-ux/p-75802bfd.entry.js +0 -2
- package/dist/db-ux/p-8d4f07d2.entry.js +0 -2
- /package/dist/db-ux/{p-024ff6cd.entry.js.map → p-0530a878.entry.js.map} +0 -0
- /package/dist/db-ux/{p-ad18fa93.entry.js.map → p-09bedc1a.entry.js.map} +0 -0
- /package/dist/db-ux/{p-861b6d7e.entry.js.map → p-0c4d5d88.entry.js.map} +0 -0
- /package/dist/db-ux/{p-fdfa3d81.entry.js.map → p-38d2dfea.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c778c9d0.entry.js.map → p-3cb7ff97.entry.js.map} +0 -0
- /package/dist/db-ux/{p-6b3bd3e5.entry.js.map → p-45ca9947.entry.js.map} +0 -0
- /package/dist/db-ux/{p-2d564f3f.entry.js.map → p-4769ec6d.entry.js.map} +0 -0
- /package/dist/db-ux/{p-3e23f0d2.entry.js.map → p-68bc689b.entry.js.map} +0 -0
- /package/dist/db-ux/{p-8d4f07d2.entry.js.map → p-71a9c2c9.entry.js.map} +0 -0
- /package/dist/db-ux/{p-a48df866.entry.js.map → p-7c27fe0d.entry.js.map} +0 -0
- /package/dist/db-ux/{p-3c470f0d.entry.js.map → p-807ad902.entry.js.map} +0 -0
- /package/dist/db-ux/{p-8f784d7a.entry.js.map → p-82311da9.entry.js.map} +0 -0
- /package/dist/db-ux/{p-119ce591.entry.js.map → p-82369b8d.entry.js.map} +0 -0
- /package/dist/db-ux/{p-f5c17063.entry.js.map → p-85ad9dfb.entry.js.map} +0 -0
- /package/dist/db-ux/{p-534f0d51.entry.js.map → p-870bb35b.entry.js.map} +0 -0
- /package/dist/db-ux/{p-aed5d375.entry.js.map → p-88e27985.entry.js.map} +0 -0
- /package/dist/db-ux/{p-689e2f1b.entry.js.map → p-9ce7a144.entry.js.map} +0 -0
- /package/dist/db-ux/{p-75802bfd.entry.js.map → p-a334df8c.entry.js.map} +0 -0
- /package/dist/db-ux/{p-4027a894.entry.js.map → p-b1be4ba0.entry.js.map} +0 -0
- /package/dist/db-ux/{p-b2f638a6.entry.js.map → p-b2acf6bd.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d91b57d6.entry.js.map → p-b63d89c7.entry.js.map} +0 -0
- /package/dist/db-ux/{p-4a48d59a.entry.js.map → p-ca3555c1.entry.js.map} +0 -0
- /package/dist/db-ux/{p-47a0105a.entry.js.map → p-ce826494.entry.js.map} +0 -0
- /package/dist/db-ux/{p-686c37e1.entry.js.map → p-cf9785fe.entry.js.map} +0 -0
- /package/dist/db-ux/{p-985c1c27.entry.js.map → p-d17fe729.entry.js.map} +0 -0
- /package/dist/db-ux/{p-17e7b60a.entry.js.map → p-d93934d2.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c50f0e2b.entry.js.map → p-eab5ef6f.entry.js.map} +0 -0
- /package/dist/db-ux/{p-993303f3.entry.js.map → p-eabd7598.entry.js.map} +0 -0
- /package/dist/db-ux/{p-3587b975.entry.js.map → p-f2483bef.entry.js.map} +0 -0
- /package/dist/db-ux/{p-0735d31e.entry.js.map → p-f30ec184.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,h as t}from"./p-_OYZj_2L.js";import{c as i}from"./p-DhKljLRG.js";const a=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const i=s===null||s===void 0?void 0:s.closest(t);if(s&&i){const t=i.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);i.removeAttribute(d.name)}if(d&&d.name==="class"){const t=d.value.includes("hydrated");const a=d.value.replace("hydrated","").trim();const r=s.getAttribute("class");s.setAttribute(d.name,`${r?`${r} `:""}${a}`);if(t){i.setAttribute("class","hydrated")}else{i.removeAttribute(d.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-divider")}render(){return t("div",{key:"0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16",class:i("db-divider",this.className),ref:s=>{this._ref=s},id:this.id,"data-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}};export{a as db_divider};
|
|
2
|
+
//# sourceMappingURL=p-a334df8c.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as i}from"./p-_OYZj_2L.js";import{D as s}from"./p-DC9V_oNU.js";import{u as h,c as a}from"./p-DhKljLRG.js";const e=class{constructor(i){t(this,i);this._id=s;this._name="";this.initialized=false;this._initOpenIndexDone=false}convertItems(){try{if(typeof this.items==="string"){return JSON.parse(this.items)}return this.items}catch(t){console.error(t)}return[]}enableAttributePassing(t,i){const s=t===null||t===void 0?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)}if(a&&a.name==="class"){const i=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const e=t.getAttribute("class");t.setAttribute(a.name,`${e?`${e} `:""}${h}`);if(i){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){if(this.initialized){if(this.behavior==="single"){if(this.name){if(this._name!==this.name){this._name=this.name}}else{if(this._name!==this._id&&this._id){this._name=this._id}}}else{this._name=""}}}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref){const i=this._ref.getElementsByTagName("details");if(i){for(const s of Array.from(i)){if(this._name===""){s.removeAttribute("name")}else{s.name=(t=this._name)!==null&&t!==void 0?t:""}}}}}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref&&this._initOpenIndexDone){if(this.initOpenIndex&&this.initOpenIndex.length>0){const t=this._ref.getElementsByTagName("details");if(t){const i=this.behavior==="single"&&this.initOpenIndex.length>1?[this.initOpenIndex[0]]:this.initOpenIndex;Array.from(t).forEach(((t,s)=>{if(i===null||i===void 0?void 0:i.includes(s)){t.open=true}}))}}this._initOpenIndexDone=false}}watch2(){this.watch2Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-accordion");this._id=this.id||"accordion-"+h();this.initialized=true;this._initOpenIndexDone=true;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var t;return i("ul",{key:"91f6c44d0b30b23d247af72e0eefd7629db29a36",class:a("db-accordion",this.className),ref:t=>{this._ref=t},id:this._id,"data-variant":this.variant},!this.items?i("slot",null):null,this.items?(t=this.convertItems())===null||t===void 0?void 0:t.map(((t,s)=>i("db-accordion-item",{key:`accordion-item-${s}`,headlinePlain:t.headlinePlain,disabled:t.disabled,text:t.text}))):null)}static get watchers(){return{initialized:["watch0"],name:["watch0"],behavior:["watch0"],_id:["watch0"],_ref:["watch1","watch2"],_name:["watch1"],_initOpenIndexDone:["watch2"],initOpenIndex:["watch2"]}}};export{e as db_accordion};
|
|
2
|
+
//# sourceMappingURL=p-b1be4ba0.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as t}from"./p-_OYZj_2L.js";import{c as e}from"./p-DhKljLRG.js";const a=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const e=s===null||s===void 0?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let a=0;a<t.length;a++){const o=t.item(a);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){s.setAttribute(o.name,o.value);e.removeAttribute(o.name)}if(o&&o.name==="class"){const t=o.value.includes("hydrated");const a=o.value.replace("hydrated","").trim();const c=s.getAttribute("class");s.setAttribute(o.name,`${c?`${c} `:""}${a}`);if(t){e.setAttribute("class","hydrated")}else{e.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-form-field")}render(){return t("summary",{key:"22a05256e65e56208335b9a5c840e75988a57182",class:e("db-custom-select-form-field",this.className),ref:s=>{this._ref=s},id:this.id},t("slot",{key:"3c6c62df9bf0d2a73e37a9ad69d3a46daa672984"}))}};export{a as db_custom_select_form_field};
|
|
2
|
+
//# sourceMappingURL=p-b2acf6bd.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s}from"./p-_OYZj_2L.js";import{g as a,c as i}from"./p-DhKljLRG.js";const c=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=t===null||t===void 0?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const c=s.item(i);if(c&&(c.name.startsWith("data-")||c.name.startsWith("aria-"))){t.setAttribute(c.name,c.value);a.removeAttribute(c.name)}if(c&&c.name==="class"){const s=c.value.includes("hydrated");const i=c.value.replace("hydrated","").trim();const e=t.getAttribute("class");t.setAttribute(c.name,`${e?`${e} `:""}${i}`);if(s){a.setAttribute("class","hydrated")}else{a.removeAttribute(c.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-stack")}render(){return s("div",{key:"64a5a45be3cfecebbe4fff818f6cbfeee462513c",class:i("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":a(this.wrap)},s("slot",{key:"69bd35bb73645e26b9819c7d9fc062cba032b4d7"}))}};export{c as db_stack};
|
|
2
|
+
//# sourceMappingURL=p-b63d89c7.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s}from"./p-_OYZj_2L.js";import{g as i,c as a}from"./p-DhKljLRG.js";const e=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const r=t.getAttribute("class");t.setAttribute(e.name,`${r?`${r} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-link")}render(){var t;return s("a",{key:"c76a9caf23e3efc45794fd4ef5b55ee7d228f500",class:a("db-link",this.className),ref:t=>{this._ref=t},id:this.id,href:this.href,target:this.target,rel:this.rel,role:this.role,hrefLang:this.hreflang,"aria-disabled":i(this.disabled),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":i((t=this.showIcon)!==null&&t!==void 0?t:true),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":i(this.wrap)},this.text?this.text:s("slot",null))}};export{e as db_link};
|
|
2
|
+
//# sourceMappingURL=p-ca3555c1.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as s}from"./p-_OYZj_2L.js";import{l as h,g as a,h as e,f as d,k as l,b as n,r as c,a as r}from"./p-DC9V_oNU.js";import{h as o,d as f,s as u,u as v,f as b,e as m,k as p,c as y}from"./p-DhKljLRG.js";const w=class{constructor(s){i(this,s);this.input=t(this,"input");this.change=t(this,"change");this.blur=t(this,"blur");this.focus=t(this,"focus");this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._descByIds=undefined;this._value="";this._voiceOverFallback=""}hasValidState(){var i;return!!((i=this.validMessage)!==null&&i!==void 0?i:this.validation==="valid")}handleValidation(){var i,t,s,a;if(!((i=this._ref)===null||i===void 0?void 0:i.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((t=this._ref)===null||t===void 0?void 0:t.validationMessage)||h;if(o()){this._voiceOverFallback=this._invalidMessage;f((()=>this._voiceOverFallback=""),1e3)}}else if(this.hasValidState()&&((s=this._ref)===null||s===void 0?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)){this._descByIds=this._validMessageId;if(o()){this._voiceOverFallback=(a=this.validMessage)!==null&&a!==void 0?a:l;f((()=>this._voiceOverFallback=""),1e3)}}else if(u(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=undefined}}handleInput(i){if(this.input){this.input.emit(i)}this.handleValidation()}handleChange(i){if(this.change){this.change.emit(i)}this.handleValidation()}handleBlur(i){if(this.blur){this.blur.emit(i)}}handleFocus(i){if(this.focus){this.focus.emit(i)}}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const a=t.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){i.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const t=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const e=i.getAttribute("class");i.setAttribute(a.name,`${e?`${e} `:""}${h}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){var i;this._invalidMessage=this.invalidMessage||((i=this._ref)===null||i===void 0?void 0:i.validationMessage)||h}watch0(){this.watch0Fn()}watch1Fn(){if(this._id){const i=this._id+d;this._messageId=i;this._validMessageId=this._id+a;this._invalidMessageId=this._id+e;if(u(this.message,this.showMessage)){this._descByIds=i}this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){this._value=this.value}watch2(){this.watch2Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-textarea");const t=(i=this.id)!==null&&i!==void 0?i:`textarea-${v()}`;this._id=t;this._messageId=t+d;this._validMessageId=t+a;this._invalidMessageId=t+e;this._invalidMessage=this.invalidMessage||h;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var i,t,h,a,e;return s("div",{key:"a649040d1fa37d907b3608a2c37beb7cbc740d4b",class:y("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":p(this.showRequiredAsterisk),"data-hide-label":p(this.showLabel)},s("label",{key:"784fdef1d47e8193c8b89a94047d1aaa581027ad",htmlFor:this._id},(i=this.label)!==null&&i!==void 0?i:r),s("textarea",{key:"a4f4eb71a5871c5a72b250c779b2c7c4988c51a3","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":p((t=this.showResizer)!==null&&t!==void 0?t:true),disabled:m(this.disabled,"disabled"),required:m(this.required,"required"),readOnly:m(this.readOnly,"readOnly")||m(this.readonly,"readonly"),form:this.form,maxLength:b(this.maxLength,this.maxlength),minLength:b(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:(h=this.value)!==null&&h!==void 0?h:this._value,"aria-describedby":(a=this.ariaDescribedBy)!==null&&a!==void 0?a:this._descByIds,placeholder:(e=this.placeholder)!==null&&e!==void 0?e:n,rows:b(this.rows,c),cols:b(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:"1c499fb00436791637cd7efaf908cf5cef66c19c",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"6c4b23b49afa46786f3f3b088c1a8939e0a455db","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:["watch0"],invalidMessage:["watch0"],_id:["watch1"],value:["watch2"]}}};export{w as db_textarea};
|
|
2
|
+
//# sourceMappingURL=p-ce826494.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as t}from"./p-_OYZj_2L.js";import{D as a}from"./p-DC9V_oNU.js";import{u as i,c as e}from"./p-DhKljLRG.js";const o=class{constructor(t){s(this,t);this._id=a}enableAttributePassing(s,t){const a=s===null||s===void 0?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const e=t.item(i);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){s.setAttribute(e.name,e.value);a.removeAttribute(e.name)}if(e&&e.name==="class"){const t=e.value.includes("hydrated");const i=e.value.replace("hydrated","").trim();const o=s.getAttribute("class");s.setAttribute(e.name,`${o?`${o} `:""}${i}`);if(t){a.setAttribute("class","hydrated")}else{a.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation");this._id=this.id||"navigation-"+i()}render(){return t("nav",{key:"ed27159179b89985cbf0711be7dc494ca820cf75",class:e("db-navigation",this.className),ref:s=>{this._ref=s},id:this._id},t("menu",{key:"6aa518535f6c802abec874a174d6e8d028572269"},t("slot",{key:"2307ee2093cf4bcec3c8f4b8d5e8e88a8d78cf08"})))}};export{o as db_navigation};
|
|
2
|
+
//# sourceMappingURL=p-cf9785fe.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as d}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as d}from"./p-_OYZj_2L.js";import{c as t,g as a}from"./p-DhKljLRG.js";const s=class{constructor(d){e(this,d);this.fontsLoaded=false}enableAttributePassing(e,d){const t=e===null||e===void 0?void 0:e.closest(d);if(e&&t){const d=t.attributes;for(let a=0;a<d.length;a++){const s=d.item(a);if(s&&(s.name.startsWith("data-")||s.name.startsWith("aria-"))){e.setAttribute(s.name,s.value);t.removeAttribute(s.name)}if(s&&s.name==="class"){const d=s.value.includes("hydrated");const a=s.value.replace("hydrated","").trim();const i=e.getAttribute("class");e.setAttribute(s.name,`${i?`${i} `:""}${a}`);if(d){t.setAttribute("class","hydrated")}else{t.removeAttribute(s.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-page");this.fontsLoaded=!this.fadeIn;if(document&&this.fadeIn){document.fonts.ready.then((()=>{this.fontsLoaded=true}))}else{this.fontsLoaded=true}}disconnectedCallback(){if(typeof window!=="undefined"&&document.documentElement.classList.contains("db-page-document")){document.documentElement.classList.remove("db-page-document")}}render(){return d("div",{key:"005b795411eb8ae8717d978eae32db515f7f6d87",class:t("db-page",this.className),ref:e=>{this._ref=e},id:this.id,"data-variant":this.variant,"data-fade-in":a(this.fadeIn),"data-fonts-loaded":a(this.fontsLoaded)},d("slot",{key:"d9afe2076d0f115c2e7e8dc362ccd6e1dd3c4df7",name:"header"}),d("main",{key:"2002d9fbc8a71df9d042da0e77dbdce9d9bd9ab5",class:t("db-main",this.mainClass)},d("slot",{key:"40fdc82ff79391f41ba9bd1886959e7f84ab7626"})),d("slot",{key:"0468545812365d7124bf4e3e9f9045aacce6786a",name:"footer"}))}};export{s as db_page};
|
|
2
|
+
//# sourceMappingURL=p-d17fe729.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as a,c as e,h as d}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as a,c as e,h as d}from"./p-_OYZj_2L.js";import{p as c}from"./p-DC9V_oNU.js";import{a as s,e as t,c as i}from"./p-DhKljLRG.js";import{i as r}from"./p-sP2NlPcu.js";import"./p-G-TursYV.js";const n=class{constructor(d){a(this,d);this.toggle=e(this,"toggle");this.initialized=false;this.forcedToMobile=false}handleToggle(a){if(a&&a.stopPropagation){a.stopPropagation()}const e=!t(this.drawerOpen,"drawerOpen");if(this.toggle){this.toggle.emit(e)}}handleNavigationItemClick(a){if(r(a)){this.handleToggle()}}enableAttributePassing(a,e){const d=a===null||a===void 0?void 0:a.closest(e);if(a&&d){const e=d.attributes;for(let c=0;c<e.length;c++){const s=e.item(c);if(s&&(s.name.startsWith("data-")||s.name.startsWith("aria-"))){a.setAttribute(s.name,s.value);d.removeAttribute(s.name)}if(s&&s.name==="class"){const e=s.value.includes("hydrated");const c=s.value.replace("hydrated","").trim();const t=a.getAttribute("class");a.setAttribute(s.name,`${t?`${t} `:""}${c}`);if(e){d.setAttribute("class","hydrated")}else{d.removeAttribute(s.name)}}}}}watch0Fn(){if(this.initialized&&this._ref&&this.forceMobile){s(this._ref,{key:"data-force-mobile",value:"true"});this.forcedToMobile=true}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-header");this.initialized=true;this.watch0Fn()}render(){var a;return d("header",{key:"f4c9884becf742012f64300f7c63fc6d4463fc53",class:i("db-header",this.className),ref:a=>{this._ref=a},id:this.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("db-drawer",{key:"1e7041fce0b49d91634f9150de2728fb3ea570ae",class:"db-header-drawer",spacing:"small",rounded:true,open:t(this.drawerOpen),onClose:()=>this.handleToggle()},d("div",{key:"9cf3ece5244d1210276de64d74916077323a03c1",class:"db-header-drawer-navigation"},d("div",{key:"4b3aa0923761a654d6095e862b5d1beddae86d80",class:"db-header-navigation",onClick:a=>this.handleNavigationItemClick(a)},d("slot",{key:"a4f4a03a8cb99eb51aa6b865900ce5087099eddf"})),d("div",{key:"3d45857231f8637705c827d7c261cc33ab14f966",class:"db-header-meta-navigation"},d("slot",{key:"8820a4e7f3e41d92ffabee8787e68cff52ae9ffe",name:"metaNavigation"}))),d("div",{key:"a2419d7e6cf2ac44e303b3ecbce0e2879064ce92",class:"db-header-secondary-action"},d("slot",{key:"be3960fbaf78ae49ba370e78be80069c21272b90",name:"secondaryAction"}))),d("div",{key:"5d34773d05e83f70b8c4b94320ccacfa724c607d",class:"db-header-meta-navigation"},d("slot",{key:"59173edd33c4cb1198d01ff226a9b00510066a23",name:"metaNavigation"})),d("div",{key:"295063c335c63c27caa205577aa8d1c9fba8f707",class:"db-header-navigation-bar"},d("div",{key:"89bba742b816ae4de7964a6818552cb539b338fc",class:"db-header-brand-container"},d("slot",{key:"98f16df9f68541c7fddc25fd823d6a6c2c038186",name:"brand"})),d("div",{key:"7e6279f4528c98b3e33fe9e948f24e098806aba1",class:"db-header-navigation-container"},d("div",{key:"9194a52e1270ae50b648498587262354e2cbb074",class:"db-header-navigation"},d("slot",{key:"5c5b769528a870c273f6b278f2426818b87fca34"})),d("div",{key:"fdd0b74ffd36b12cca136b66ffb851332384e7f5",class:"db-header-primary-action"},d("slot",{key:"9785dea0204a3029a31962e661861c26ca9ba490",name:"primaryAction"}))),d("div",{key:"3da686773c71442497aed65236b22ce19d42cf5a",class:"db-header-action-container"},d("div",{key:"08d4fcda3c5e3d757fa090fc7a4170884f653340",class:"db-header-burger-menu-container"},d("db-button",{key:"066d1359f239663f6c92d9206ec6112ab93a7326",icon:"menu",variant:"ghost",noText:true,onClick:()=>this.handleToggle()},(a=this.burgerMenuLabel)!==null&&a!==void 0?a:c)),d("div",{key:"43ed5e88925dd99ff83241a626e3a4204101304f",class:"db-header-secondary-action"},d("slot",{key:"c74a72a5babc2ab9c667d2a898955be5ce919a9b",name:"secondaryAction"})))))}static get watchers(){return{initialized:["watch0"],_ref:["watch0"]}}};export{n as db_header};
|
|
2
|
+
//# sourceMappingURL=p-d93934d2.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s,c as i}from"./p-Bxi-mtJ7.js";import{c as e,e as a,u as h,g as d,h as n,d as o,s as l,i as c,j as r,f as u,b as f,k as b}from"./p-DhKljLRG.js";import{l as v,g as m,h as p,j as y,f as g,k,b as w,a as x,m as $}from"./p-DC9V_oNU.js";const _=class{constructor(s){t(this,s);this.width="fixed"}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-dropdown")}render(){return s("article",{key:"98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23",class:e("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",ref:t=>{this._ref=t},id:this.id,"data-width":this.width},s("slot",{key:"25bcaa79bdf8168feffce0a59c0adbc656023e64"}))}};const D=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-list")}render(){return s("div",{key:"f47e219aac45d07e958a94969205260af981bcf1",class:e("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,ref:t=>{this._ref=t},id:this.id},s("ul",{key:"adca0d159ec4cd5d2dc46f11fe41006276dba94f"},s("slot",{key:"abb6edfb683a3e4a42512b2185854099c66f1f3c"})))}};const L=class{constructor(s){t(this,s);this.change=i(this,"change");this._id=undefined;this.hasDivider=false}handleChange(t){t.stopPropagation();if(this.change){this.change.emit(t)}}getIconTrailing(){if(this.isGroupTitle||this.type==="checkbox"){return}return a(this.checked,"checked")?"check":"x_placeholder"}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.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=(t=this.id)!==null&&t!==void 0?t:`custom-select-list-item-${h()}`;this.watch0Fn()}render(){return s("li",{key:"d94821da8bf1842933f6518079c9e463459bed2b",class:e("db-custom-select-list-item",this.className,{"db-checkbox":this.type==="checkbox"&&!this.isGroupTitle,"db-radio":this.type!=="checkbox"&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:this._id,"data-divider":d(this.hasDivider)},!this.isGroupTitle?s("label",{"data-icon":this.type!=="checkbox"&&this.icon?this.icon:undefined,"data-show-icon":d(this.showIcon),"data-icon-trailing":this.getIconTrailing()},s("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),this.label?this.label:s("slot",null)):s("span",null,this.groupTitle))}static get watchers(){return{isGroupTitle:["watch0"],showDivider:["watch0"]}}};const F=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=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._dataListId=undefined;this._descByIds=undefined;this._value=undefined;this._voiceOverFallback=""}hasValidState(){var t;return!!((t=this.validMessage)!==null&&t!==void 0?t:this.validation==="valid")}handleValidation(){var t,s,i,e;if(!((t=this._ref)===null||t===void 0?void 0:t.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((s=this._ref)===null||s===void 0?void 0:s.validationMessage)||v;if(n()){this._voiceOverFallback=this._invalidMessage;o((()=>this._voiceOverFallback=""),1e3)}}else if(this.hasValidState()&&((i=this._ref)===null||i===void 0?void 0:i.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)){this._descByIds=this._validMessageId;if(n()){this._voiceOverFallback=(e=this.validMessage)!==null&&e!==void 0?e:k;o((()=>this._voiceOverFallback=""),1e3)}}else if(l(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=undefined}}handleInput(t){if(this.input){this.input.emit(t)}this.handleValidation()}handleChange(t){if(this.change){this.change.emit(t)}this.handleValidation()}handleBlur(t){if(this.blur){this.blur.emit(t)}}handleFocus(t){if(this.focus){this.focus.emit(t)}}getDataList(){const t=this.dataList;return Array.from((c(t)?t===null||t===void 0?void 0:t.map((t=>({value:t,label:undefined}))):t)||[])}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}watch0Fn(){var t;this._invalidMessage=this.invalidMessage||((t=this._ref)===null||t===void 0?void 0:t.validationMessage)||v}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._id){const s=this._id+g;this._messageId=s;this._validMessageId=this._id+m;this._invalidMessageId=this._id+p;this._dataListId=(t=this.dataListId)!==null&&t!==void 0?t:this._id+y;if(l(this.message,this.showMessage)){this._descByIds=s}this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){this._value=this.value}watch2(){this.watch2Fn()}componentDidLoad(){var t;this.enableAttributePassing(this._ref,"db-input");const s=(t=this.id)!==null&&t!==void 0?t:`input-${h()}`;this._id=s;this._messageId=s+g;this._validMessageId=s+m;this._invalidMessageId=s+p;this._dataListId=s+y;this._invalidMessage=this.invalidMessage||v;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var t,i,h,n,o,c,v,m;return s("div",{key:"59fbbec2fe8d2e6dce0d9fba875b713b90c8828e",class:e("db-input",this.className),"data-variant":this.variant,"data-hide-label":b(this.showLabel),"data-show-icon":d((t=this.showIconLeading)!==null&&t!==void 0?t:this.showIcon),"data-icon":(i=this.iconLeading)!==null&&i!==void 0?i:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":b(this.showRequiredAsterisk),"data-show-icon-trailing":d(this.showIconTrailing)},s("label",{key:"4aca80e0a332dc2c7ba19cd3ae7340aeae4deeb6",htmlFor:this._id},(h=this.label)!==null&&h!==void 0?h:x),s("input",{key:"d05ae2e32650952ecbaae193e0f20134db378152","aria-invalid":this.validation==="invalid","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:a(this.multiple,"multiple"),placeholder:(n=this.placeholder)!==null&&n!==void 0?n:w,disabled:a(this.disabled,"disabled"),required:a(this.required,"required"),step:u(this.step),value:(o=this.value)!==null&&o!==void 0?o: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:a(this.readOnly,"readOnly")||a(this.readonly,"readonly"),form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:a(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":(c=this.ariaDescribedBy)!==null&&c!==void 0?c:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes((v=this.type)!==null&&v!==void 0?v:"")&&f()?"textbox":undefined}),this.dataList?s("datalist",{id:this._dataListId},(m=this.getDataList())===null||m===void 0?void 0:m.map((t=>s("option",{key:this._dataListId+"-option-"+t.value,value:t.value},t.label)))):null,s("slot",{key:"f0f507b8d96500e3825ec6d0dafbdc2564caa34b"}),l(this.message,this.showMessage)?s("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||k):null,s("db-infotext",{key:"dd47a5d8978035e50eb637cc9b5adf250b657684",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),s("span",{key:"fa3b768f599b592341a3d60d30b8af7ae3ed0d7d","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:["watch0"],invalidMessage:["watch0"],_id:["watch1"],value:["watch2"]}}};const C=class{constructor(s){t(this,s);this.remove=i(this,"remove")}handleRemove(t){if(!t)return;t.stopPropagation();if(this.remove){this.remove.emit(t)}}getRemoveButtonText(){if(this.removeButton){return this.removeButton}return $}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tag")}render(){var t;return s("div",{key:"db86fabfde3f9d1e41a863f58db34eb88d067440",class:e("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((t=this.showCheckState)!==null&&t!==void 0?t:true),"data-show-icon":d(this.showIcon),"data-no-text":d(this.noText),"data-overflow":d(this.overflow)},s("slot",{key:"1bef11e30ca670fa5bf1d438cd12c43e233cded4",name:"content"}),s("slot",{key:"3f94141f60688d0730478711748fa9dbb194f810"}),this.text?this.text:null,this.behavior==="removable"?s("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)},s("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}};export{_ as db_custom_select_dropdown,D as db_custom_select_list,L as db_custom_select_list_item,F as db_input,C as db_tag};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s,c as i}from"./p-_OYZj_2L.js";import{c as e,e as a,u as h,g as d,h as n,d as o,s as l,i as c,j as r,f as u,b as f,k as b}from"./p-DhKljLRG.js";import{l as v,g as m,h as p,j as y,f as g,k,b as w,a as x,m as _}from"./p-DC9V_oNU.js";const $=class{constructor(s){t(this,s);this.width="fixed"}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-dropdown")}render(){return s("article",{key:"98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23",class:e("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",ref:t=>{this._ref=t},id:this.id,"data-width":this.width},s("slot",{key:"25bcaa79bdf8168feffce0a59c0adbc656023e64"}))}};const L=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-list")}render(){return s("div",{key:"f47e219aac45d07e958a94969205260af981bcf1",class:e("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,ref:t=>{this._ref=t},id:this.id},s("ul",{key:"adca0d159ec4cd5d2dc46f11fe41006276dba94f"},s("slot",{key:"abb6edfb683a3e4a42512b2185854099c66f1f3c"})))}};const D=class{constructor(s){t(this,s);this.change=i(this,"change");this._id=undefined;this.hasDivider=false}handleChange(t){t.stopPropagation();if(this.change){this.change.emit(t)}}getIconTrailing(){if(this.isGroupTitle||this.type==="checkbox"){return}return a(this.checked,"checked")?"check":"x_placeholder"}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.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=(t=this.id)!==null&&t!==void 0?t:`custom-select-list-item-${h()}`;this.watch0Fn()}render(){return s("li",{key:"d94821da8bf1842933f6518079c9e463459bed2b",class:e("db-custom-select-list-item",this.className,{"db-checkbox":this.type==="checkbox"&&!this.isGroupTitle,"db-radio":this.type!=="checkbox"&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:this._id,"data-divider":d(this.hasDivider)},!this.isGroupTitle?s("label",{"data-icon":this.type!=="checkbox"&&this.icon?this.icon:undefined,"data-show-icon":d(this.showIcon),"data-icon-trailing":this.getIconTrailing()},s("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),this.label?this.label:s("slot",null)):s("span",null,this.groupTitle))}static get watchers(){return{isGroupTitle:["watch0"],showDivider:["watch0"]}}};const F=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=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._dataListId=undefined;this._descByIds=undefined;this._value=undefined;this._voiceOverFallback=""}hasValidState(){var t;return!!((t=this.validMessage)!==null&&t!==void 0?t:this.validation==="valid")}handleValidation(){var t,s,i,e;if(!((t=this._ref)===null||t===void 0?void 0:t.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((s=this._ref)===null||s===void 0?void 0:s.validationMessage)||v;if(n()){this._voiceOverFallback=this._invalidMessage;o((()=>this._voiceOverFallback=""),1e3)}}else if(this.hasValidState()&&((i=this._ref)===null||i===void 0?void 0:i.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)){this._descByIds=this._validMessageId;if(n()){this._voiceOverFallback=(e=this.validMessage)!==null&&e!==void 0?e:k;o((()=>this._voiceOverFallback=""),1e3)}}else if(l(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=undefined}}handleInput(t){if(this.input){this.input.emit(t)}this.handleValidation()}handleChange(t){if(this.change){this.change.emit(t)}this.handleValidation()}handleBlur(t){if(this.blur){this.blur.emit(t)}}handleFocus(t){if(this.focus){this.focus.emit(t)}}getDataList(){const t=this.dataList;return Array.from((c(t)?t===null||t===void 0?void 0:t.map((t=>({value:t,label:undefined}))):t)||[])}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}watch0Fn(){var t;this._invalidMessage=this.invalidMessage||((t=this._ref)===null||t===void 0?void 0:t.validationMessage)||v}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._id){const s=this._id+g;this._messageId=s;this._validMessageId=this._id+m;this._invalidMessageId=this._id+p;this._dataListId=(t=this.dataListId)!==null&&t!==void 0?t:this._id+y;if(l(this.message,this.showMessage)){this._descByIds=s}this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){this._value=this.value}watch2(){this.watch2Fn()}componentDidLoad(){var t;this.enableAttributePassing(this._ref,"db-input");const s=(t=this.id)!==null&&t!==void 0?t:`input-${h()}`;this._id=s;this._messageId=s+g;this._validMessageId=s+m;this._invalidMessageId=s+p;this._dataListId=s+y;this._invalidMessage=this.invalidMessage||v;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var t,i,h,n,o,c,v,m;return s("div",{key:"59fbbec2fe8d2e6dce0d9fba875b713b90c8828e",class:e("db-input",this.className),"data-variant":this.variant,"data-hide-label":b(this.showLabel),"data-show-icon":d((t=this.showIconLeading)!==null&&t!==void 0?t:this.showIcon),"data-icon":(i=this.iconLeading)!==null&&i!==void 0?i:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":b(this.showRequiredAsterisk),"data-show-icon-trailing":d(this.showIconTrailing)},s("label",{key:"4aca80e0a332dc2c7ba19cd3ae7340aeae4deeb6",htmlFor:this._id},(h=this.label)!==null&&h!==void 0?h:x),s("input",{key:"d05ae2e32650952ecbaae193e0f20134db378152","aria-invalid":this.validation==="invalid","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:a(this.multiple,"multiple"),placeholder:(n=this.placeholder)!==null&&n!==void 0?n:w,disabled:a(this.disabled,"disabled"),required:a(this.required,"required"),step:u(this.step),value:(o=this.value)!==null&&o!==void 0?o: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:a(this.readOnly,"readOnly")||a(this.readonly,"readonly"),form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:a(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":(c=this.ariaDescribedBy)!==null&&c!==void 0?c:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes((v=this.type)!==null&&v!==void 0?v:"")&&f()?"textbox":undefined}),this.dataList?s("datalist",{id:this._dataListId},(m=this.getDataList())===null||m===void 0?void 0:m.map((t=>s("option",{key:this._dataListId+"-option-"+t.value,value:t.value},t.label)))):null,s("slot",{key:"f0f507b8d96500e3825ec6d0dafbdc2564caa34b"}),l(this.message,this.showMessage)?s("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||k):null,s("db-infotext",{key:"dd47a5d8978035e50eb637cc9b5adf250b657684",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),s("span",{key:"fa3b768f599b592341a3d60d30b8af7ae3ed0d7d","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:["watch0"],invalidMessage:["watch0"],_id:["watch1"],value:["watch2"]}}};const j=class{constructor(s){t(this,s);this.remove=i(this,"remove")}handleRemove(t){if(!t)return;t.stopPropagation();if(this.remove){this.remove.emit(t)}}getRemoveButtonText(){if(this.removeButton){return this.removeButton}return _}enableAttributePassing(t,s){const i=t===null||t===void 0?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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);i.removeAttribute(a.name)}if(a&&a.name==="class"){const s=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${e}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(a.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tag")}render(){var t;return s("div",{key:"db86fabfde3f9d1e41a863f58db34eb88d067440",class:e("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((t=this.showCheckState)!==null&&t!==void 0?t:true),"data-show-icon":d(this.showIcon),"data-no-text":d(this.noText),"data-overflow":d(this.overflow)},s("slot",{key:"1bef11e30ca670fa5bf1d438cd12c43e233cded4",name:"content"}),s("slot",{key:"3f94141f60688d0730478711748fa9dbb194f810"}),this.text?this.text:null,this.behavior==="removable"?s("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)},s("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}};export{$ as db_custom_select_dropdown,L as db_custom_select_list,D as db_custom_select_list_item,F as db_input,j as db_tag};
|
|
2
|
+
//# sourceMappingURL=p-eab5ef6f.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-_OYZj_2L.js";import{g as a,e as o,c as d}from"./p-DhKljLRG.js";const n=class{constructor(i){t(this,i);this.click=s(this,"click")}getButtonType(){if(this.type){return this.type}else if(this.click){return"button"}return"submit"}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const o=s.item(a);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){t.setAttribute(o.name,o.value);i.removeAttribute(o.name)}if(o&&o.name==="class"){const s=o.value.includes("hydrated");const a=o.value.replace("hydrated","").trim();const d=t.getAttribute("class");t.setAttribute(o.name,`${d?`${d} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-button")}render(){var t,s;return i("button",{key:"8b0105e19d08c13e28e3ad8053d17d33d6699272",class:d("db-button",this.className),ref:t=>{this._ref=t},id:this.id,type:this.getButtonType(),disabled:o(this.disabled,"disabled"),"data-icon":(t=this.iconLeading)!==null&&t!==void 0?t:this.icon,"data-show-icon":a((s=this.showIconLeading)!==null&&s!==void 0?s:this.showIcon),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":a(this.showIconTrailing),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-no-text":a(this.noText),name:this.name,form:this.form,value:this.value},this.text?this.text:i("slot",null))}};export{n as db_button};
|
|
2
|
+
//# sourceMappingURL=p-eabd7598.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-_OYZj_2L.js";import{s as a}from"./p-DC9V_oNU.js";import{e,s as n,g as o,c}from"./p-DhKljLRG.js";const l=class{constructor(i){s(this,i);this.close=t(this,"close")}handleClose(s){if(!s)return;s.stopPropagation();if(this.close){this.close.emit(s)}}enableAttributePassing(s,t){const i=s===null||s===void 0?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)}if(e&&e.name==="class"){const t=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const n=s.getAttribute("class");s.setAttribute(e.name,`${n?`${n} `:""}${a}`);if(t){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-notification")}render(){var s;return i("article",{key:"5c2aed4066efbc207ade969f84c5cea58350a49a",class:c("db-notification",this.className),ref:s=>{this._ref=s},id:this.id,"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":this.icon,"data-show-icon":o(this.showIcon),"data-link-variant":this.linkVariant},i("slot",{key:"5b4a5fbc5dad5b04b3f2a0d269cf2ca48f79df7e",name:"image"}),n(this.headline,this.showHeadline)?i("header",null,this.headline):null,i("p",{key:"a72611c45ee17745a354e243fdb5cc3e22abf5be"},this.text?this.text:i("slot",null)),n(this.timestamp,this.showTimestamp)?i("span",null,this.timestamp):null,i("slot",{key:"7679c3681608babce822cd7d4251e0bfc2ce08d4",name:"link"}),e(this.closeable,"closeable")?i("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:true,onClick:s=>this.handleClose(s)},(s=this.closeButtonText)!==null&&s!==void 0?s:a):null)}};export{l as db_notification};
|
|
2
|
+
//# sourceMappingURL=p-f2483bef.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,F as h}from"./p-Bxi-mtJ7.js";import{l as e,a as l,m as a,d as n,e as d,g as o,h as c,i as r,o as u,f,k as v,c as w,s as m}from"./p-DC9V_oNU.js";import{h as b,d as p,s as y,l as g,u as k,g as F,e as A,k as D,c as x}from"./p-DhKljLRG.js";import{D as C}from"./p-BMfF_eQJ.js";import{D as S}from"./p-BX4jNwUm.js";import{a as L}from"./p-G-TursYV.js";const T=class{constructor(s){i(this,s);this.amountChange=t(this,"amountChange");this.dropdownToggle=t(this,"dropdownToggle");this.optionSelected=t(this,"optionSelected");this.search=t(this,"search");this.showClearSelection=true;this.clearSelectionText="Clear selection";this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._selectId=undefined;this._labelId=undefined;this._summaryId=undefined;this._placeholderId=undefined;this._infoTextId=undefined;this._validity="no-validation";this._userInteraction=false;this._descByIds=undefined;this._selectedLabels="";this._selectedLabelsId=undefined;this._voiceOverFallback="";this._selectedOptions=[];this.selectAllEnabled=false;this.searchEnabled=false;this.amountOptions=0;this._values=[];this._options=[];this._hasNoOptions=false;this._documentClickListenerCallbackId=undefined;this._internalChangeTimestamp=0;this._documentScrollListenerCallbackId=undefined;this._observer=undefined;this._searchValue=undefined;this.selectAllChecked=false;this.selectAllIndeterminate=false;this.satisfyReact=function i(t){t.stopPropagation()}}handleDocumentScroll(i){var t,s;if(((t=i===null||i===void 0?void 0:i.target)===null||t===void 0?void 0:t.contains)&&((s=i===null||i===void 0?void 0:i.target)===null||s===void 0?void 0:s.contains(this.detailsRef))){this.handleAutoPlacement()}}hasValidState(){var i;return!!((i=this.validMessage)!==null&&i!==void 0?i:this.validation==="valid")}handleValidation(){var i,t,s,h,l,a,n,d;if(this.selectRef){this.selectRef.value=this.getNativeSelectValue()}if(!((i=this.selectRef)===null||i===void 0?void 0:i.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((t=this.selectRef)===null||t===void 0?void 0:t.validationMessage)||e;if(b()){this._voiceOverFallback=this._invalidMessage;p((()=>this._voiceOverFallback=""),1e3)}if(this._userInteraction){this._validity=(s=this.validation)!==null&&s!==void 0?s:"invalid"}}else if(this.hasValidState()&&((h=this.selectRef)===null||h===void 0?void 0:h.validity.valid)&&this.required){this._descByIds=this._validMessageId;if(b()){this._voiceOverFallback=(l=this.validMessage)!==null&&l!==void 0?l:v;p((()=>this._voiceOverFallback=""),1e3)}this._validity=(a=this.validation)!==null&&a!==void 0?a:"valid"}else if(y(this.message,this.showMessage)){this._descByIds=this._messageId;this._validity=(n=this.validation)!==null&&n!==void 0?n:"no-validation"}else{this._descByIds=this._placeholderId;this._validity=(d=this.validation)!==null&&d!==void 0?d:"no-validation"}}handleDropdownToggle(i){var t,s;if(this.dropdownToggle){i.stopPropagation();this.dropdownToggle.emit(i)}if(i.target instanceof HTMLDetailsElement&&i.target.open){this._documentClickListenerCallbackId=(new C).addCallback((i=>this.handleDocumentClose(i)));this._documentScrollListenerCallbackId=(new S).addCallback((i=>this.handleDocumentScroll(i)));this.handleAutoPlacement();(t=this._observer)===null||t===void 0?void 0:t.observe(this.detailsRef);if(!i.target.dataset["test"]){this.handleOpenByKeyboardFocus()}}else{if(this._documentClickListenerCallbackId){(new C).removeCallback(this._documentClickListenerCallbackId)}if(this._documentScrollListenerCallbackId){(new S).removeCallback(this._documentScrollListenerCallbackId)}(s=this._observer)===null||s===void 0?void 0:s.unobserve(this.detailsRef)}}getNativeSelectValue(){var i,t;if((i=this._values)===null||i===void 0?void 0:i.length){return(t=this._values.at(0))!==null&&t!==void 0?t:""}return""}setDescById(i){var t;const s=[];if(i){s.push(i)}if(this._selectedLabelsId&&((t=this._selectedLabels)===null||t===void 0?void 0:t.length)){s.push(this._selectedLabelsId)}this._descByIds=s.join(" ")}getSelectAllLabel(){var i;return(i=this.selectAllLabel)!==null&&i!==void 0?i:l}getOptionLabel(i){var t,s,h;return(h=(t=i.label)!==null&&t!==void 0?t:(s=i.value)===null||s===void 0?void 0:s.toString())!==null&&h!==void 0?h:""}getOptionChecked(i){var t,s;if(i&&((t=this._values)===null||t===void 0?void 0:t.includes)){return(s=this._values)===null||s===void 0?void 0:s.includes(i)}return false}getTagRemoveLabel(i){const t=this.removeTagsTexts;const s=this.options;if(t&&s){const h=s.findIndex((t=>t.value===i.value));if(h>=0&&h<t.length){return t[h]}}return`${a} ${this.getOptionLabel(i)}`}handleTagRemove(i,t){if(t){t.stopPropagation()}this.handleSelect(i.value);this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const i=this.detailsRef.querySelector("article");if(i){p((()=>{var t;L(i,this.detailsRef,(t=this.placement)!==null&&t!==void 0?t:"bottom")}),1)}}}handleArrowDownUp(i){var t,s,h;if((t=this.detailsRef)===null||t===void 0?void 0:t.open){if(self.document){const t=self.document.activeElement;if(t){const e=t.getAttribute("type")==="checkbox"||t.getAttribute("type")==="radio";if(e){const e=t===null||t===void 0?void 0:t.closest("li");if(i.key==="ArrowDown"||i.key==="ArrowRight"){let i=e===null||e===void 0?void 0:e.nextElementSibling;while(i){const t=i.querySelector("input");if(t){t.focus();break}i=i.nextElementSibling}if(!i){this.handleFocusFirstDropdownCheckbox(t)}}else{let i=e===null||e===void 0?void 0:e.previousElementSibling;while(i){const t=i.querySelector("input");if(t){t.focus();break}i=i.previousElementSibling}if(!i){const i=this.detailsRef.querySelector(`input[type="checkbox"]`);if(i&&i!==t){this.handleFocusFirstDropdownCheckbox(t)}else{const i=g(this.detailsRef);if(i){p((()=>{i.focus()}),100)}else{const i=Array.from((s=this.detailsRef)===null||s===void 0?void 0:s.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));if(i.length){(h=i.at(-1))===null||h===void 0?void 0:h.focus()}}}}}}else{if(t.getAttribute("type")==="search"&&(i.key==="ArrowUp"||i.key==="ArrowLeft")){this.handleClose(undefined,true);this.handleSummaryFocus()}else{this.handleFocusFirstDropdownCheckbox(t)}}}}}else if(i.key==="ArrowDown"||i.key==="ArrowRight"){this.handleAutoPlacement();if(this.detailsRef){this.detailsRef.open=true}this.handleOpenByKeyboardFocus()}i.stopPropagation();i.preventDefault()}handleKeyboardPress(i){var t,s;i.stopPropagation();if(i.key==="Escape"&&((t=this.detailsRef)===null||t===void 0?void 0:t.open)){this.handleClose(undefined,true);this.handleSummaryFocus()}else if(i.key==="Enter"&&((s=this.detailsRef)===null||s===void 0?void 0:s.open)){if(self.document){const t=self.document.activeElement;if(["checkbox","radio"].includes(t.getAttribute("type")||"")){t.click();i.preventDefault()}}}else if(i.key==="ArrowDown"||i.key==="ArrowUp"||i.key==="ArrowLeft"||i.key==="ArrowRight"){this.handleArrowDownUp(i)}}handleClose(i,t){if(this.detailsRef){if(t){this.detailsRef.open=false;this.handleSummaryFocus()}else if(this.detailsRef.open&&i){if(i.relatedTarget){const t=i.relatedTarget;if(!this.detailsRef.contains(t)){p((()=>this.detailsRef.open=false),1)}}}}}handleDocumentClose(i){var t,s;if(i){const h=typeof i.detail==="number"?i.target:(t=i.detail)===null||t===void 0?void 0:t.target;if(((s=this.detailsRef)===null||s===void 0?void 0:s.open)&&!this.detailsRef.contains(h)){this.detailsRef.open=false}}}handleOptionSelected(i){const t=(new Date).getTime()-this._internalChangeTimestamp<200;if(t)return;this._values=i;this._userInteraction=true;if(this.optionSelected){this.optionSelected.emit(i!==null&&i!==void 0?i:[])}this._internalChangeTimestamp=(new Date).getTime()}handleSelect(i){var t;if(i){if(this.multiple){if((t=this._values)===null||t===void 0?void 0:t.includes(i)){this.handleOptionSelected(this._values.filter((t=>t!==i)))}else{this.handleOptionSelected([...this._values||[],i])}}else{this.handleOptionSelected([i]);this.handleClose(undefined,true)}}}handleSelectAll(i){var t;i.stopPropagation();if(((t=this._values)===null||t===void 0?void 0:t.length)===this.amountOptions){this.handleOptionSelected([])}else{const i=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:undefined;this.handleOptionSelected(this.options?this.options.filter((t=>{var s;return!t.isGroupTitle&&(!i||((s=t.value)===null||s===void 0?void 0:s.toLowerCase().includes(i.toLowerCase())))})).map((i=>{var t;return(t=i.value)!==null&&t!==void 0?t:""})):[])}}handleFocusFirstDropdownCheckbox(i){if(this.detailsRef){const t=Array.from(this.detailsRef.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));if(t.length){const s=t.at(0);const h=s===i&&t.length>1?t.at(1):s;if(h){p((()=>{h.focus()}),1)}}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const i=g(this.detailsRef);if(i){p((()=>{i.focus()}),1)}else{this.handleFocusFirstDropdownCheckbox()}}}handleSearch(i){if(i===undefined){return}let t;if(typeof i==="string"){t=i}else{const s=i;s.stopPropagation();if(this.search){this.search.emit(s)}t=s.target.value;this._searchValue=t}if(!this.options||!t||t.length===0){this._options=this.options}else if(this.searchFilter){this._options=this.options.filter((i=>this.searchFilter(i,t)))}else{this._options=this.options.filter((i=>!i.isGroupTitle&&this.getOptionLabel(i).toLowerCase().includes(t.toLowerCase())))}}handleClearAll(i){i.stopPropagation();this.handleOptionSelected([]);this.handleSummaryFocus()}handleSummaryFocus(){var i;if(this.detailsRef){(i=this.detailsRef.querySelector("summary"))===null||i===void 0?void 0:i.focus()}}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const e=t.item(h);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){i.setAttribute(e.name,e.value);s.removeAttribute(e.name)}if(e&&e.name==="class"){const t=e.value.includes("hydrated");const h=e.value.replace("hydrated","").trim();const l=i.getAttribute("class");i.setAttribute(e.name,`${l?`${l} `:""}${h}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(e.name)}}}}}watch0Fn(){if(this.detailsRef){this.detailsRef.addEventListener("focusout",(i=>this.handleClose(i)))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._id){const i=this._id+f;this._labelId=this._id+n;this._selectId=this._id+d;this._validMessageId=this._id+o;this._invalidMessageId=this._id+c;this._placeholderId=this._id+r;if(y(this.message,this.showMessage)){this.setDescById(i)}else{this.setDescById()}}}watch1(){this.watch1Fn()}watch2Fn(){var i;if(this.detailsRef){const t=this.detailsRef.querySelector("summary");if(t){t.setAttribute("aria-describedby",(i=this.ariaDescribedBy)!==null&&i!==void 0?i:this._descByIds||"")}}}watch2(){this.watch2Fn()}watch3Fn(){if(this.showNoResults!==undefined){this._hasNoOptions=this.showNoResults}else if(this._options){this._hasNoOptions=this._options.length===0}}watch3(){this.watch3Fn()}watch4Fn(){var i;this.selectAllEnabled=Boolean(this.multiple&&((i=this.showSelectAll)!==null&&i!==void 0?i:this.amountOptions>5))}watch4(){this.watch4Fn()}watch5Fn(){var i;this.searchEnabled=(i=this.showSearch)!==null&&i!==void 0?i:this.amountOptions>9}watch5(){this.watch5Fn()}watch6Fn(){var i;const t=this.values;if(Array.isArray(t)){if(this._values!==t){this._values=t}}else if(t==null&&((i=this._values)===null||i===void 0?void 0:i.length)!==0){this._values=[]}}watch6(){this.watch6Fn()}watch7Fn(){if(this.selectRef){this.handleValidation()}}watch7(){this.watch7Fn()}watch8Fn(){this._validity=this.validation}watch8(){this.watch8Fn()}watch9Fn(){var i,t;if(((i=this._values)===null||i===void 0?void 0:i.length)===0){this.selectAllChecked=false;this.selectAllIndeterminate=false}else if(((t=this._values)===null||t===void 0?void 0:t.length)===this.amountOptions){this.selectAllIndeterminate=false;this.selectAllChecked=true}else if(this._values){this.selectAllIndeterminate=true}}watch9(){this.watch9Fn()}watch10Fn(){var i,t;this._options=this.options;this.amountOptions=(t=(i=this.options)===null||i===void 0?void 0:i.filter((i=>!i.isGroupTitle)).length)!==null&&t!==void 0?t:0}watch10(){this.watch10Fn()}watch11Fn(){this._searchValue=this.searchValue;if(this.searchValue){const i=this.searchValue;this.handleSearch(i)}}watch11(){this.watch11Fn()}watch12Fn(){var i,t;if((i=this.options)===null||i===void 0?void 0:i.length){this._selectedOptions=(t=this.options)===null||t===void 0?void 0:t.filter((i=>{var t,s;if(!i.value||!((t=this._values)===null||t===void 0?void 0:t["includes"])){return false}return!i.isGroupTitle&&((s=this._values)===null||s===void 0?void 0:s.includes(i.value))}))}}watch12(){this.watch12Fn()}watch13Fn(){var i,t,s;if(this.selectedLabels){this._selectedLabels=this.selectedLabels;return}if((i=this._selectedOptions)===null||i===void 0?void 0:i.length){if(this.transformSelectedLabels){const i=this._selectedOptions;const t=this.transformSelectedLabels;this._selectedLabels=t(i);return}if(this.selectedType==="amount"){this._selectedLabels=this.amountText?this.amountText:`${(t=this._selectedOptions)===null||t===void 0?void 0:t.length} ${u}`}else{this._selectedLabels=(s=this._selectedOptions)===null||s===void 0?void 0:s.map((i=>this.getOptionLabel(i))).join(", ")}}else{this._selectedLabels=""}}watch13(){this.watch13Fn()}watch14Fn(){var i,t;if(this.amountChange){this.amountChange.emit((t=(i=this._selectedOptions)===null||i===void 0?void 0:i.length)!==null&&t!==void 0?t:0)}}watch14(){this.watch14Fn()}watch15Fn(){if(this.selectAllRef){this.selectAllRef.indeterminate=Boolean(this.selectAllIndeterminate)}}watch15(){this.watch15Fn()}watch16Fn(){var i;this._invalidMessage=this.invalidMessage||((i=this.selectRef)===null||i===void 0?void 0:i.validationMessage)||e}watch16(){this.watch16Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-custom-select");const t=(i=this.id)!==null&&i!==void 0?i:`custom-select-${k()}`;this._id=t;this._messageId=t+f;this._validMessageId=t+o;this._invalidMessageId=t+c;this._selectId=t+d;this._labelId=t+n;this._summaryId=t+"-summary";this._placeholderId=t+r;this._selectedLabelsId=t+"-selected-labels";this._infoTextId=t+"-info";this._invalidMessage=this.invalidMessage||e;if(typeof window!=="undefined"&&"IntersectionObserver"in window){this._observer=new IntersectionObserver((i=>{if(this.detailsRef){const t=i.find((({target:i})=>i===this.detailsRef));if(t&&!t.isIntersecting&&this.detailsRef.open){this.detailsRef.open=false}}}))}this.watch0Fn();this.watch1Fn();this.watch2Fn();this.watch3Fn();this.watch4Fn();this.watch5Fn();this.watch6Fn();this.watch7Fn();this.watch8Fn();this.watch9Fn();this.watch10Fn();this.watch11Fn();this.watch12Fn();this.watch13Fn();this.watch14Fn();this.watch15Fn();this.watch16Fn()}render(){var i,t,e,a,n,d,o,c,r,u,f,b,p,g,k;return s("div",{key:"11b17fa4f655a38ae5c5612053ed44d533bf730e",class:x("db-custom-select",this.className),id:this._id,ref:i=>{this._ref=i},"aria-invalid":this._validity==="invalid","data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":this.variant==="floating"&&this.selectedType==="tag"&&this.multiple?"above":this.variant,"data-required":F(this.required),"data-hide-asterisk":D(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":D(this.showLabel),"data-icon":this.icon,"data-show-icon":F(this.showIcon)},s("label",{key:"7d7ba83bded2a0f96c20e464a2ffb9702c7aade7",id:this._labelId},(i=this.label)!==null&&i!==void 0?i:l,s("select",{key:"2b7c5ccf1e2033613069958a9de22c4d03d5a2c6",role:"none",hidden:true,id:this._selectId,tabIndex:-1,ref:i=>{this.selectRef=i},form:this.form,name:this.name,multiple:A(this.multiple,"multiple"),disabled:A(this.disabled,"disabled"),required:A(this.required,"required"),onChange:i=>this.satisfyReact(i)},((t=this.options)===null||t===void 0?void 0:t.length)?(e=this.options)===null||e===void 0?void 0:e.map((i=>s("option",{disabled:i.disabled,value:i.value,key:undefined},this.getOptionLabel(i)))):null)),s("details",{key:"e72a8ffae9e67b8ffa4a864fc67777863ab4ae2f",ref:i=>{this.detailsRef=i},open:this.open,onToggle:i=>this.handleDropdownToggle(i),onKeyDown:i=>this.handleKeyboardPress(i)},s("slot",{key:"8a8cdada441011327ceada802a840222e1fee64a"}),this.options?s(h,null,s("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":F(this.disabled),"aria-labelledby":this._labelId},((a=this._selectedLabels)===null||a===void 0?void 0:a.length)?s("span",{"data-visually-hidden":F(this.selectedType==="tag"),id:this._selectedLabelsId},this._selectedLabels):null,this.selectedType==="tag"?s("div",null,(n=this._selectedOptions)===null||n===void 0?void 0:n.map(((i,t)=>s("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(i),onRemove:t=>this.handleTagRemove(i,t),key:undefined},this.getOptionLabel(i))))):null),s("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?s("div",null,s("db-input",{type:"search",ref:i=>{this.searchInputRef=i},name:this._id,form:this._id,showLabel:false,value:this._searchValue,label:(d=this.searchLabel)!==null&&d!==void 0?d:l,placeholder:(o=this.searchPlaceholder)!==null&&o!==void 0?o:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:undefined,onInput:i=>this.handleSearch(i)})):null,this._hasNoOptions||this.showLoading?s("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":undefined,semantic:this.showLoading?"informational":"warning"},(c=this.showLoading?this.loadingText:this.noResultsText)!==null&&c!==void 0?c:w):s(h,null,this.selectAllEnabled?s("div",null,s("div",{class:"db-checkbox db-custom-select-list-item"},s("label",null,s("input",{type:"checkbox",value:"select-all",ref:i=>{this.selectAllRef=i},form:this._id,checked:this.selectAllChecked,onChange:i=>this.handleSelectAll(i)}),this.getSelectAllLabel()))):null,s("db-custom-select-list",{multiple:A(this.multiple,"multiple"),label:(u=(r=this.listLabel)!==null&&r!==void 0?r:this.label)!==null&&u!==void 0?u:l},(f=this._options)===null||f===void 0?void 0:f.map((i=>s("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:i.showDivider,icon:i.icon,isGroupTitle:i.isGroupTitle,groupTitle:this.getOptionLabel(i),name:this._id,checked:this.getOptionChecked(i.value),disabled:i.disabled,value:i.value,onChange:()=>this.handleSelect(i.value),key:undefined},!i.isGroupTitle?this.getOptionLabel(i):null))))),s("div",null,s("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(undefined,true)},(b=this.mobileCloseButtonText)!==null&&b!==void 0?b:m)))):null),((p=this.showClearSelection)!==null&&p!==void 0?p:true)&&((g=this._values)===null||g===void 0?void 0:g.length)?s("db-button",{icon:"cross",variant:"ghost",size:"small",noText:true,name:this._id,form:this._id,onClick:i=>this.handleClearAll(i)},this.clearSelectionText,s("db-tooltip",{placement:"top"},this.clearSelectionText)):null,s("span",{key:"7bd868a984b59aac7554ce7a414fbc5dcf6f9852",class:"db-custom-select-placeholder","aria-hidden":F(true),id:this._placeholderId},(k=this.placeholder)!==null&&k!==void 0?k:this.label),y(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||v):null,s("db-infotext",{key:"600afcfae8dd16acad934de05031077efb821e88",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"296afa4aaa8ea8bd7aeabcf43e50a8068540c6c4","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{detailsRef:["watch0","watch2"],_id:["watch1"],_descByIds:["watch2"],showNoResults:["watch3"],showLoading:["watch3"],_options:["watch3"],showSelectAll:["watch4"],amountOptions:["watch4","watch5","watch9"],multiple:["watch4"],showSearch:["watch5"],values:["watch6"],_values:["watch7","watch9","watch12"],selectRef:["watch7","watch16"],validation:["watch8"],options:["watch10","watch12"],searchValue:["watch11"],_selectedOptions:["watch13","watch14"],selectedType:["watch13"],amountText:["watch13"],selectedLabels:["watch13"],transformSelectedLabels:["watch13"],selectAllIndeterminate:["watch15"],selectAllRef:["watch15"],invalidMessage:["watch16"]}}};export{T as db_custom_select};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as s,F as h}from"./p-_OYZj_2L.js";import{l as e,a as l,m as a,d as n,e as d,g as o,h as c,i as r,o as u,f,k as v,c as w,s as m}from"./p-DC9V_oNU.js";import{h as b,d as p,s as y,l as g,u as k,g as F,e as A,k as D,c as x}from"./p-DhKljLRG.js";import{D as C}from"./p-BMfF_eQJ.js";import{D as L}from"./p-BX4jNwUm.js";import{a as S}from"./p-G-TursYV.js";const T=class{constructor(s){i(this,s);this.amountChange=t(this,"amountChange");this.dropdownToggle=t(this,"dropdownToggle");this.optionSelected=t(this,"optionSelected");this.search=t(this,"search");this.showClearSelection=true;this.clearSelectionText="Clear selection";this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._selectId=undefined;this._labelId=undefined;this._summaryId=undefined;this._placeholderId=undefined;this._infoTextId=undefined;this._validity="no-validation";this._userInteraction=false;this._descByIds=undefined;this._selectedLabels="";this._selectedLabelsId=undefined;this._voiceOverFallback="";this._selectedOptions=[];this.selectAllEnabled=false;this.searchEnabled=false;this.amountOptions=0;this._values=[];this._options=[];this._hasNoOptions=false;this._documentClickListenerCallbackId=undefined;this._internalChangeTimestamp=0;this._documentScrollListenerCallbackId=undefined;this._observer=undefined;this._searchValue=undefined;this.selectAllChecked=false;this.selectAllIndeterminate=false;this.satisfyReact=function i(t){t.stopPropagation()}}handleDocumentScroll(i){var t,s;if(((t=i===null||i===void 0?void 0:i.target)===null||t===void 0?void 0:t.contains)&&((s=i===null||i===void 0?void 0:i.target)===null||s===void 0?void 0:s.contains(this.detailsRef))){this.handleAutoPlacement()}}hasValidState(){var i;return!!((i=this.validMessage)!==null&&i!==void 0?i:this.validation==="valid")}handleValidation(){var i,t,s,h,l,a,n,d;if(this.selectRef){this.selectRef.value=this.getNativeSelectValue()}if(!((i=this.selectRef)===null||i===void 0?void 0:i.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((t=this.selectRef)===null||t===void 0?void 0:t.validationMessage)||e;if(b()){this._voiceOverFallback=this._invalidMessage;p((()=>this._voiceOverFallback=""),1e3)}if(this._userInteraction){this._validity=(s=this.validation)!==null&&s!==void 0?s:"invalid"}}else if(this.hasValidState()&&((h=this.selectRef)===null||h===void 0?void 0:h.validity.valid)&&this.required){this._descByIds=this._validMessageId;if(b()){this._voiceOverFallback=(l=this.validMessage)!==null&&l!==void 0?l:v;p((()=>this._voiceOverFallback=""),1e3)}this._validity=(a=this.validation)!==null&&a!==void 0?a:"valid"}else if(y(this.message,this.showMessage)){this._descByIds=this._messageId;this._validity=(n=this.validation)!==null&&n!==void 0?n:"no-validation"}else{this._descByIds=this._placeholderId;this._validity=(d=this.validation)!==null&&d!==void 0?d:"no-validation"}}handleDropdownToggle(i){var t,s;if(this.dropdownToggle){i.stopPropagation();this.dropdownToggle.emit(i)}if(i.target instanceof HTMLDetailsElement&&i.target.open){this._documentClickListenerCallbackId=(new C).addCallback((i=>this.handleDocumentClose(i)));this._documentScrollListenerCallbackId=(new L).addCallback((i=>this.handleDocumentScroll(i)));this.handleAutoPlacement();(t=this._observer)===null||t===void 0?void 0:t.observe(this.detailsRef);if(!i.target.dataset["test"]){this.handleOpenByKeyboardFocus()}}else{if(this._documentClickListenerCallbackId){(new C).removeCallback(this._documentClickListenerCallbackId)}if(this._documentScrollListenerCallbackId){(new L).removeCallback(this._documentScrollListenerCallbackId)}(s=this._observer)===null||s===void 0?void 0:s.unobserve(this.detailsRef)}}getNativeSelectValue(){var i,t;if((i=this._values)===null||i===void 0?void 0:i.length){return(t=this._values.at(0))!==null&&t!==void 0?t:""}return""}setDescById(i){var t;const s=[];if(i){s.push(i)}if(this._selectedLabelsId&&((t=this._selectedLabels)===null||t===void 0?void 0:t.length)){s.push(this._selectedLabelsId)}this._descByIds=s.join(" ")}getSelectAllLabel(){var i;return(i=this.selectAllLabel)!==null&&i!==void 0?i:l}getOptionLabel(i){var t,s,h;return(h=(t=i.label)!==null&&t!==void 0?t:(s=i.value)===null||s===void 0?void 0:s.toString())!==null&&h!==void 0?h:""}getOptionChecked(i){var t,s;if(i&&((t=this._values)===null||t===void 0?void 0:t.includes)){return(s=this._values)===null||s===void 0?void 0:s.includes(i)}return false}getTagRemoveLabel(i){const t=this.removeTagsTexts;const s=this.options;if(t&&s){const h=s.findIndex((t=>t.value===i.value));if(h>=0&&h<t.length){return t[h]}}return`${a} ${this.getOptionLabel(i)}`}handleTagRemove(i,t){if(t){t.stopPropagation()}this.handleSelect(i.value);this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const i=this.detailsRef.querySelector("article");if(i){p((()=>{var t;S(i,this.detailsRef,(t=this.placement)!==null&&t!==void 0?t:"bottom")}),1)}}}handleArrowDownUp(i){var t,s,h;if((t=this.detailsRef)===null||t===void 0?void 0:t.open){if(self.document){const t=self.document.activeElement;if(t){const e=t.getAttribute("type")==="checkbox"||t.getAttribute("type")==="radio";if(e){const e=t===null||t===void 0?void 0:t.closest("li");if(i.key==="ArrowDown"||i.key==="ArrowRight"){let i=e===null||e===void 0?void 0:e.nextElementSibling;while(i){const t=i.querySelector("input");if(t){t.focus();break}i=i.nextElementSibling}if(!i){this.handleFocusFirstDropdownCheckbox(t)}}else{let i=e===null||e===void 0?void 0:e.previousElementSibling;while(i){const t=i.querySelector("input");if(t){t.focus();break}i=i.previousElementSibling}if(!i){const i=this.detailsRef.querySelector(`input[type="checkbox"]`);if(i&&i!==t){this.handleFocusFirstDropdownCheckbox(t)}else{const i=g(this.detailsRef);if(i){p((()=>{i.focus()}),100)}else{const i=Array.from((s=this.detailsRef)===null||s===void 0?void 0:s.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));if(i.length){(h=i.at(-1))===null||h===void 0?void 0:h.focus()}}}}}}else{if(t.getAttribute("type")==="search"&&(i.key==="ArrowUp"||i.key==="ArrowLeft")){this.handleClose(undefined,true);this.handleSummaryFocus()}else{this.handleFocusFirstDropdownCheckbox(t)}}}}}else if(i.key==="ArrowDown"||i.key==="ArrowRight"){this.handleAutoPlacement();if(this.detailsRef){this.detailsRef.open=true}this.handleOpenByKeyboardFocus()}i.stopPropagation();i.preventDefault()}handleKeyboardPress(i){var t,s;i.stopPropagation();if(i.key==="Escape"&&((t=this.detailsRef)===null||t===void 0?void 0:t.open)){this.handleClose(undefined,true);this.handleSummaryFocus()}else if(i.key==="Enter"&&((s=this.detailsRef)===null||s===void 0?void 0:s.open)){if(self.document){const t=self.document.activeElement;if(["checkbox","radio"].includes(t.getAttribute("type")||"")){t.click();i.preventDefault()}}}else if(i.key==="ArrowDown"||i.key==="ArrowUp"||i.key==="ArrowLeft"||i.key==="ArrowRight"){this.handleArrowDownUp(i)}}handleClose(i,t){if(this.detailsRef){if(t){this.detailsRef.open=false;this.handleSummaryFocus()}else if(this.detailsRef.open&&i){if(i.relatedTarget){const t=i.relatedTarget;if(!this.detailsRef.contains(t)){p((()=>this.detailsRef.open=false),1)}}}}}handleDocumentClose(i){var t,s;if(i){const h=typeof i.detail==="number"?i.target:(t=i.detail)===null||t===void 0?void 0:t.target;if(((s=this.detailsRef)===null||s===void 0?void 0:s.open)&&!this.detailsRef.contains(h)){this.detailsRef.open=false}}}handleOptionSelected(i){const t=(new Date).getTime()-this._internalChangeTimestamp<200;if(t)return;this._values=i;this._userInteraction=true;if(this.optionSelected){this.optionSelected.emit(i!==null&&i!==void 0?i:[])}this._internalChangeTimestamp=(new Date).getTime()}handleSelect(i){var t;if(i){if(this.multiple){if((t=this._values)===null||t===void 0?void 0:t.includes(i)){this.handleOptionSelected(this._values.filter((t=>t!==i)))}else{this.handleOptionSelected([...this._values||[],i])}}else{this.handleOptionSelected([i]);this.handleClose(undefined,true)}}}handleSelectAll(i){var t;i.stopPropagation();if(((t=this._values)===null||t===void 0?void 0:t.length)===this.amountOptions){this.handleOptionSelected([])}else{const i=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:undefined;this.handleOptionSelected(this.options?this.options.filter((t=>{var s;return!t.isGroupTitle&&(!i||((s=t.value)===null||s===void 0?void 0:s.toLowerCase().includes(i.toLowerCase())))})).map((i=>{var t;return(t=i.value)!==null&&t!==void 0?t:""})):[])}}handleFocusFirstDropdownCheckbox(i){if(this.detailsRef){const t=Array.from(this.detailsRef.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));if(t.length){const s=t.at(0);const h=s===i&&t.length>1?t.at(1):s;if(h){p((()=>{h.focus()}),1)}}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const i=g(this.detailsRef);if(i){p((()=>{i.focus()}),1)}else{this.handleFocusFirstDropdownCheckbox()}}}handleSearch(i){if(i===undefined){return}let t;if(typeof i==="string"){t=i}else{const s=i;s.stopPropagation();if(this.search){this.search.emit(s)}t=s.target.value;this._searchValue=t}if(!this.options||!t||t.length===0){this._options=this.options}else if(this.searchFilter){this._options=this.options.filter((i=>this.searchFilter(i,t)))}else{this._options=this.options.filter((i=>!i.isGroupTitle&&this.getOptionLabel(i).toLowerCase().includes(t.toLowerCase())))}}handleClearAll(i){i.stopPropagation();this.handleOptionSelected([]);this.handleSummaryFocus()}handleSummaryFocus(){var i;if(this.detailsRef){(i=this.detailsRef.querySelector("summary"))===null||i===void 0?void 0:i.focus()}}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const e=t.item(h);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){i.setAttribute(e.name,e.value);s.removeAttribute(e.name)}if(e&&e.name==="class"){const t=e.value.includes("hydrated");const h=e.value.replace("hydrated","").trim();const l=i.getAttribute("class");i.setAttribute(e.name,`${l?`${l} `:""}${h}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(e.name)}}}}}watch0Fn(){if(this.detailsRef){this.detailsRef.addEventListener("focusout",(i=>this.handleClose(i)))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._id){const i=this._id+f;this._labelId=this._id+n;this._selectId=this._id+d;this._validMessageId=this._id+o;this._invalidMessageId=this._id+c;this._placeholderId=this._id+r;if(y(this.message,this.showMessage)){this.setDescById(i)}else{this.setDescById()}}}watch1(){this.watch1Fn()}watch2Fn(){var i;if(this.detailsRef){const t=this.detailsRef.querySelector("summary");if(t){t.setAttribute("aria-describedby",(i=this.ariaDescribedBy)!==null&&i!==void 0?i:this._descByIds||"")}}}watch2(){this.watch2Fn()}watch3Fn(){if(this.showNoResults!==undefined){this._hasNoOptions=this.showNoResults}else if(this._options){this._hasNoOptions=this._options.length===0}}watch3(){this.watch3Fn()}watch4Fn(){var i;this.selectAllEnabled=Boolean(this.multiple&&((i=this.showSelectAll)!==null&&i!==void 0?i:this.amountOptions>5))}watch4(){this.watch4Fn()}watch5Fn(){var i;this.searchEnabled=(i=this.showSearch)!==null&&i!==void 0?i:this.amountOptions>9}watch5(){this.watch5Fn()}watch6Fn(){var i;const t=this.values;if(Array.isArray(t)){if(this._values!==t){this._values=t}}else if(t==null&&((i=this._values)===null||i===void 0?void 0:i.length)!==0){this._values=[]}}watch6(){this.watch6Fn()}watch7Fn(){if(this.selectRef){this.handleValidation()}}watch7(){this.watch7Fn()}watch8Fn(){this._validity=this.validation}watch8(){this.watch8Fn()}watch9Fn(){var i,t;if(((i=this._values)===null||i===void 0?void 0:i.length)===0){this.selectAllChecked=false;this.selectAllIndeterminate=false}else if(((t=this._values)===null||t===void 0?void 0:t.length)===this.amountOptions){this.selectAllIndeterminate=false;this.selectAllChecked=true}else if(this._values){this.selectAllIndeterminate=true}}watch9(){this.watch9Fn()}watch10Fn(){var i,t;this._options=this.options;this.amountOptions=(t=(i=this.options)===null||i===void 0?void 0:i.filter((i=>!i.isGroupTitle)).length)!==null&&t!==void 0?t:0}watch10(){this.watch10Fn()}watch11Fn(){this._searchValue=this.searchValue;if(this.searchValue){const i=this.searchValue;this.handleSearch(i)}}watch11(){this.watch11Fn()}watch12Fn(){var i,t;if((i=this.options)===null||i===void 0?void 0:i.length){this._selectedOptions=(t=this.options)===null||t===void 0?void 0:t.filter((i=>{var t,s;if(!i.value||!((t=this._values)===null||t===void 0?void 0:t["includes"])){return false}return!i.isGroupTitle&&((s=this._values)===null||s===void 0?void 0:s.includes(i.value))}))}}watch12(){this.watch12Fn()}watch13Fn(){var i,t,s;if(this.selectedLabels){this._selectedLabels=this.selectedLabels;return}if((i=this._selectedOptions)===null||i===void 0?void 0:i.length){if(this.transformSelectedLabels){const i=this._selectedOptions;const t=this.transformSelectedLabels;this._selectedLabels=t(i);return}if(this.selectedType==="amount"){this._selectedLabels=this.amountText?this.amountText:`${(t=this._selectedOptions)===null||t===void 0?void 0:t.length} ${u}`}else{this._selectedLabels=(s=this._selectedOptions)===null||s===void 0?void 0:s.map((i=>this.getOptionLabel(i))).join(", ")}}else{this._selectedLabels=""}}watch13(){this.watch13Fn()}watch14Fn(){var i,t;if(this.amountChange){this.amountChange.emit((t=(i=this._selectedOptions)===null||i===void 0?void 0:i.length)!==null&&t!==void 0?t:0)}}watch14(){this.watch14Fn()}watch15Fn(){if(this.selectAllRef){this.selectAllRef.indeterminate=Boolean(this.selectAllIndeterminate)}}watch15(){this.watch15Fn()}watch16Fn(){var i;this._invalidMessage=this.invalidMessage||((i=this.selectRef)===null||i===void 0?void 0:i.validationMessage)||e}watch16(){this.watch16Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-custom-select");const t=(i=this.id)!==null&&i!==void 0?i:`custom-select-${k()}`;this._id=t;this._messageId=t+f;this._validMessageId=t+o;this._invalidMessageId=t+c;this._selectId=t+d;this._labelId=t+n;this._summaryId=t+"-summary";this._placeholderId=t+r;this._selectedLabelsId=t+"-selected-labels";this._infoTextId=t+"-info";this._invalidMessage=this.invalidMessage||e;if(typeof window!=="undefined"&&"IntersectionObserver"in window){this._observer=new IntersectionObserver((i=>{if(this.detailsRef){const t=i.find((({target:i})=>i===this.detailsRef));if(t&&!t.isIntersecting&&this.detailsRef.open){this.detailsRef.open=false}}}))}this.watch0Fn();this.watch1Fn();this.watch2Fn();this.watch3Fn();this.watch4Fn();this.watch5Fn();this.watch6Fn();this.watch7Fn();this.watch8Fn();this.watch9Fn();this.watch10Fn();this.watch11Fn();this.watch12Fn();this.watch13Fn();this.watch14Fn();this.watch15Fn();this.watch16Fn()}render(){var i,t,e,a,n,d,o,c,r,u,f,b,p,g,k;return s("div",{key:"11b17fa4f655a38ae5c5612053ed44d533bf730e",class:x("db-custom-select",this.className),id:this._id,ref:i=>{this._ref=i},"aria-invalid":this._validity==="invalid","data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":this.variant==="floating"&&this.selectedType==="tag"&&this.multiple?"above":this.variant,"data-required":F(this.required),"data-hide-asterisk":D(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":D(this.showLabel),"data-icon":this.icon,"data-show-icon":F(this.showIcon)},s("label",{key:"7d7ba83bded2a0f96c20e464a2ffb9702c7aade7",id:this._labelId},(i=this.label)!==null&&i!==void 0?i:l,s("select",{key:"2b7c5ccf1e2033613069958a9de22c4d03d5a2c6",role:"none",hidden:true,id:this._selectId,tabIndex:-1,ref:i=>{this.selectRef=i},form:this.form,name:this.name,multiple:A(this.multiple,"multiple"),disabled:A(this.disabled,"disabled"),required:A(this.required,"required"),onChange:i=>this.satisfyReact(i)},((t=this.options)===null||t===void 0?void 0:t.length)?(e=this.options)===null||e===void 0?void 0:e.map((i=>s("option",{disabled:i.disabled,value:i.value,key:undefined},this.getOptionLabel(i)))):null)),s("details",{key:"e72a8ffae9e67b8ffa4a864fc67777863ab4ae2f",ref:i=>{this.detailsRef=i},open:this.open,onToggle:i=>this.handleDropdownToggle(i),onKeyDown:i=>this.handleKeyboardPress(i)},s("slot",{key:"8a8cdada441011327ceada802a840222e1fee64a"}),this.options?s(h,null,s("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":F(this.disabled),"aria-labelledby":this._labelId},((a=this._selectedLabels)===null||a===void 0?void 0:a.length)?s("span",{"data-visually-hidden":F(this.selectedType==="tag"),id:this._selectedLabelsId},this._selectedLabels):null,this.selectedType==="tag"?s("div",null,(n=this._selectedOptions)===null||n===void 0?void 0:n.map(((i,t)=>s("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(i),onRemove:t=>this.handleTagRemove(i,t),key:undefined},this.getOptionLabel(i))))):null),s("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?s("div",null,s("db-input",{type:"search",ref:i=>{this.searchInputRef=i},name:this._id,form:this._id,showLabel:false,value:this._searchValue,label:(d=this.searchLabel)!==null&&d!==void 0?d:l,placeholder:(o=this.searchPlaceholder)!==null&&o!==void 0?o:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:undefined,onInput:i=>this.handleSearch(i)})):null,this._hasNoOptions||this.showLoading?s("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":undefined,semantic:this.showLoading?"informational":"warning"},(c=this.showLoading?this.loadingText:this.noResultsText)!==null&&c!==void 0?c:w):s(h,null,this.selectAllEnabled?s("div",null,s("div",{class:"db-checkbox db-custom-select-list-item"},s("label",null,s("input",{type:"checkbox",value:"select-all",ref:i=>{this.selectAllRef=i},form:this._id,checked:this.selectAllChecked,onChange:i=>this.handleSelectAll(i)}),this.getSelectAllLabel()))):null,s("db-custom-select-list",{multiple:A(this.multiple,"multiple"),label:(u=(r=this.listLabel)!==null&&r!==void 0?r:this.label)!==null&&u!==void 0?u:l},(f=this._options)===null||f===void 0?void 0:f.map((i=>s("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:i.showDivider,icon:i.icon,isGroupTitle:i.isGroupTitle,groupTitle:this.getOptionLabel(i),name:this._id,checked:this.getOptionChecked(i.value),disabled:i.disabled,value:i.value,onChange:()=>this.handleSelect(i.value),key:undefined},!i.isGroupTitle?this.getOptionLabel(i):null))))),s("div",null,s("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(undefined,true)},(b=this.mobileCloseButtonText)!==null&&b!==void 0?b:m)))):null),((p=this.showClearSelection)!==null&&p!==void 0?p:true)&&((g=this._values)===null||g===void 0?void 0:g.length)?s("db-button",{icon:"cross",variant:"ghost",size:"small",noText:true,name:this._id,form:this._id,onClick:i=>this.handleClearAll(i)},this.clearSelectionText,s("db-tooltip",{placement:"top"},this.clearSelectionText)):null,s("span",{key:"7bd868a984b59aac7554ce7a414fbc5dcf6f9852",class:"db-custom-select-placeholder","aria-hidden":F(true),id:this._placeholderId},(k=this.placeholder)!==null&&k!==void 0?k:this.label),y(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||v):null,s("db-infotext",{key:"600afcfae8dd16acad934de05031077efb821e88",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"296afa4aaa8ea8bd7aeabcf43e50a8068540c6c4","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{detailsRef:["watch0","watch2"],_id:["watch1"],_descByIds:["watch2"],showNoResults:["watch3"],showLoading:["watch3"],_options:["watch3"],showSelectAll:["watch4"],amountOptions:["watch4","watch5","watch9"],multiple:["watch4"],showSearch:["watch5"],values:["watch6"],_values:["watch7","watch9","watch12"],selectRef:["watch7","watch16"],validation:["watch8"],options:["watch10","watch12"],searchValue:["watch11"],_selectedOptions:["watch13","watch14"],selectedType:["watch13"],amountText:["watch13"],selectedLabels:["watch13"],transformSelectedLabels:["watch13"],selectAllIndeterminate:["watch15"],selectAllRef:["watch15"],invalidMessage:["watch16"]}}};export{T as db_custom_select};
|
|
2
|
+
//# sourceMappingURL=p-f30ec184.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { D as DEFAULT_ID } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { u as uuid, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-DhKljLRG.js';
|
|
3
3
|
|
|
4
4
|
const DBButton = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.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-DC9V_oNU.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, e as getBoolean, u as uuid, k as getHideProp, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, c as createEvent } from './index-_OYZj_2L.js';
|
|
2
2
|
import { c as cls, e as getBoolean, u as uuid, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, j as getInputValue, f as getNumber, b as isIOSSafari, k as getHideProp } from './index-DhKljLRG.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-DC9V_oNU.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-_OYZj_2L.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-DC9V_oNU.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, l as getSearchInput, u as uuid, g as getBooleanAsString, e as getBoolean, k as getHideProp, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
import { D as DocumentClickListener } from './document-click-listener-D1ZXrKSx.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { n as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { p as DEFAULT_BURGER_MENU } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { a as addAttributeToChildren, e as getBoolean, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
import { i as isEventTargetNavigationItem } from './navigation--UdC9CzO.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-_OYZj_2L.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { u as uuid, d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
import { N as NavigationItemSafeTriangle } from './navigation--UdC9CzO.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { d as delay, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
3
3
|
import { D as DocumentScrollListener } from './document-scroll-listener-DF6f0ByI.js';
|
|
4
4
|
import { b as handleFixedPopover } from './floating-components-G-TursYV.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { u as uuid, e as getBoolean, k as getHideProp, c as cls } from './index-DhKljLRG.js';
|
|
3
3
|
|
|
4
4
|
const DBRadio = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-_OYZj_2L.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, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, k as getHideProp, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, k as getHideProp, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { g as getBooleanAsString, e as getBoolean, c as cls, u as uuid } from './index-DhKljLRG.js';
|
|
3
3
|
import { D as DEFAULT_ID } from './constants-DC9V_oNU.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-_OYZj_2L.js';
|
|
2
2
|
import { u as uuid, c as cls } from './index-DhKljLRG.js';
|
|
3
3
|
|
|
4
4
|
const DBTabs = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-_OYZj_2L.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, b as DEFAULT_PLACEHOLDER, r as DEFAULT_ROWS, a as DEFAULT_LABEL } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, f as getNumber, e as getBoolean, k as getHideProp, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-_OYZj_2L.js';
|
|
2
2
|
import { D as DEFAULT_ID } from './constants-DC9V_oNU.js';
|
|
3
3
|
import { d as delay, u as uuid, g as getBooleanAsString, c as cls } from './index-DhKljLRG.js';
|
|
4
4
|
import { D as DocumentScrollListener } from './document-scroll-listener-DF6f0ByI.js';
|