@db-ux/wc-core-components 4.10.0 → 4.10.2
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 +13 -2
- package/README.md +2 -2
- package/bundle/db-accordion-item.js +1 -1
- package/bundle/db-accordion.js +1 -1
- package/bundle/db-badge.js +1 -1
- package/bundle/db-brand.js +1 -1
- package/bundle/db-button.js +1 -1
- package/bundle/db-card.js +1 -1
- package/bundle/db-checkbox.js +1 -1
- package/bundle/db-custom-button.js +1 -1
- package/bundle/db-custom-select-dropdown.js +1 -1
- package/bundle/db-custom-select-form-field.js +1 -1
- package/bundle/db-custom-select-list-item.js +1 -1
- package/bundle/db-custom-select-list.js +1 -1
- package/bundle/db-custom-select.js +1 -1
- package/bundle/db-divider.js +1 -1
- package/bundle/db-drawer.js +1 -1
- package/bundle/db-header.js +1 -1
- package/bundle/db-icon.js +1 -1
- package/bundle/db-infotext.js +1 -1
- package/bundle/db-input.js +1 -1
- package/bundle/db-link.js +1 -1
- package/bundle/db-navigation-item.js +1 -1
- package/bundle/db-navigation.js +1 -1
- package/bundle/db-notification.js +1 -1
- package/bundle/db-page.js +1 -1
- package/bundle/db-popover.js +1 -1
- package/bundle/db-radio.js +1 -1
- package/bundle/db-section.js +1 -1
- package/bundle/db-select.js +1 -1
- package/bundle/db-stack.js +1 -1
- package/bundle/db-switch.js +1 -1
- package/bundle/db-tab-item.js +1 -1
- package/bundle/db-tab-list.js +1 -1
- package/bundle/db-tab-panel.js +1 -1
- package/bundle/db-tabs.js +1 -1
- package/bundle/db-tag.js +1 -1
- package/bundle/db-textarea.js +1 -1
- package/bundle/db-tooltip.js +1 -1
- package/bundle/index.js +1 -1
- package/bundle/{p-4TaCoruo.js → p--qzKkpB9.js} +1 -1
- package/bundle/{p-DE_eDJiD.js → p-B5E_0kTi.js} +1 -1
- package/bundle/{p-QNp8H1KD.js → p-BChikMGc.js} +1 -1
- package/bundle/{p-DS39nEhJ.js → p-BGVLpaFn.js} +1 -1
- package/bundle/{p-4nwUOzw7.js → p-BLyvxOmU.js} +1 -1
- package/bundle/{p-BJJFATCC.js → p-BPxBqqlc.js} +1 -1
- package/bundle/{p-DVYa1bHg.js → p-C6_y8Tot.js} +1 -1
- package/bundle/{p-CEiQBevg.js → p-CKfRqzsn.js} +1 -1
- package/bundle/{p-DwwxAylo.js → p-CnYMRGX1.js} +1 -1
- package/bundle/{p-_2t1bnPD.js → p-CwzdaLE3.js} +1 -1
- package/bundle/{p-CmqAwQNR.js → p-CyxQfbGC.js} +1 -1
- package/bundle/{p-e18AQLns.js → p-DisehhY5.js} +1 -1
- package/bundle/p-DstwggLZ.js +1 -0
- package/bundle/{p-bzxfqhtq.js → p-LbPYp2oP.js} +1 -1
- package/bundle/{p-CV8l9qaA.js → p-suxDlmXD.js} +1 -1
- 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-button.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/{index-DLuhzJ0p.js → index-HN8AqU2e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/{p-368d25ab.entry.js → p-0f524f6c.entry.js} +1 -1
- package/dist/db-ux/{p-ae3183f0.entry.js → p-11211f1a.entry.js} +1 -1
- package/dist/db-ux/{p-293510ca.entry.js → p-1a4881de.entry.js} +1 -1
- package/dist/db-ux/{p-7f4d00df.entry.js → p-21e5f6d0.entry.js} +1 -1
- package/dist/db-ux/{p-f65e1db8.entry.js → p-2461e08a.entry.js} +1 -1
- package/dist/db-ux/{p-aad0c4ef.entry.js → p-26b7e21f.entry.js} +1 -1
- package/dist/db-ux/{p-7c58337d.entry.js → p-272bdffc.entry.js} +1 -1
- package/dist/db-ux/{p-e46dc907.entry.js → p-32c359a9.entry.js} +1 -1
- package/dist/db-ux/p-33606da9.entry.js +1 -0
- package/dist/db-ux/{p-339a6ca0.entry.js → p-44391c06.entry.js} +1 -1
- package/dist/db-ux/p-46e3033b.entry.js +1 -0
- package/dist/db-ux/p-4b99f205.entry.js +1 -0
- package/dist/db-ux/{p-a56886ea.entry.js → p-4c238643.entry.js} +1 -1
- package/dist/db-ux/{p-cac5b161.entry.js → p-4c3a8823.entry.js} +1 -1
- package/dist/db-ux/{p-f583f756.entry.js → p-4d5201a3.entry.js} +1 -1
- package/dist/db-ux/{p-0ae85978.entry.js → p-5eae34e7.entry.js} +1 -1
- package/dist/db-ux/{p-331ad11c.entry.js → p-652739e4.entry.js} +1 -1
- package/dist/db-ux/{p-174d2486.entry.js → p-93a6b1ee.entry.js} +1 -1
- package/dist/db-ux/{p-f27c6655.entry.js → p-94de5791.entry.js} +1 -1
- package/dist/db-ux/{p-dcf02351.entry.js → p-9728504d.entry.js} +1 -1
- package/dist/db-ux/{p-a617da42.entry.js → p-a6c3ceaa.entry.js} +1 -1
- package/dist/db-ux/{p-9c3ff50e.entry.js → p-cd3cfb4e.entry.js} +1 -1
- package/dist/db-ux/p-cf045f35.entry.js +1 -0
- package/dist/db-ux/{p-b1e7ba0f.entry.js → p-d173eace.entry.js} +1 -1
- package/dist/db-ux/{p-fe5d3eb6.entry.js → p-d3ada4cb.entry.js} +1 -1
- package/dist/db-ux/{p-5d2e2a8d.entry.js → p-d858f147.entry.js} +1 -1
- package/dist/db-ux/{p-47910fdc.entry.js → p-db71c251.entry.js} +1 -1
- package/dist/db-ux/{p-13afb969.entry.js → p-e2740857.entry.js} +1 -1
- package/dist/db-ux/{p-9b907b56.entry.js → p-ed5b3877.entry.js} +1 -1
- package/dist/db-ux/{p-4580938f.entry.js → p-fd334f14.entry.js} +1 -1
- package/dist/db-ux/p-fed0fc42.entry.js +1 -0
- 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-button.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/{index-Cr2cgn5B.js → index-BGaQ0Bx8.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/web-types.json +1 -1
- package/package.json +9 -5
- package/bundle/p-D4Ym01qf.js +0 -1
- package/dist/db-ux/p-28c257d5.entry.js +0 -1
- package/dist/db-ux/p-34e21986.entry.js +0 -1
- package/dist/db-ux/p-691ae341.entry.js +0 -1
- package/dist/db-ux/p-9712c9c9.entry.js +0 -1
- package/dist/db-ux/p-ae457f95.entry.js +0 -1
- /package/bundle/{p-CCbaTFJ9.js → p-9fgrfYbf.js} +0 -0
- /package/dist/db-ux/{p-Cr2cgn5B.js → p-BGaQ0Bx8.js} +0 -0
package/bundle/db-section.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d,t as i}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d,t as i}from"./p-9fgrfYbf.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let d=0;d<s.length;d++){const i=s.item(d);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),d=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n?n+" ":""}${d}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-section")}render(){var t,s;return e("section",{key:"03d6f7ed2eea5b1374d0f5be00d77e59897033ea",class:d("db-section",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-spacing":this.spacing||"medium","data-width":this.width},e("slot",{key:"55c388d7e65e9bd27dd229f01a3c162719b90df2"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1]}]),a=n,o=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{a as DbSection,o as defineCustomElement}
|
package/bundle/db-select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as i,H as s,A as t,h,f as e,p as a,u as d,z as l,k as o,j as n,F as c,d as r,t as v,o as u}from"./p-
|
|
1
|
+
import{y as i,H as s,A as t,h,f as e,p as a,u as d,z as l,k as o,j as n,F as c,d as r,t as v,o as u}from"./p-9fgrfYbf.js";import{l as p,f as m,g as f,h as b,i as w,k as g,a as y}from"./p-BdL-nI5y.js";import{c as k}from"./p-DstwggLZ.js";import{d as _}from"./p-CwzdaLE3.js";const I=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=t(this,"click"),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&this.required?(this._descByIds=this._validMessageId,h()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:g,e((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||p,h()&&(this._voiceOverFallback=this._invalidMessage,e((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getOptionLabel(i){var s,t;return null!==(s=i.label)&&void 0!==s?s:null===(t=i.value)||void 0===t?void 0:""+t}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,s,t;const h=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"select-"+d();this._id=h,this._messageId=h+m,this._validMessageId=h+f,this._invalidMessageId=h+b,this._placeholderId=h+w}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let h=0;h<s.length;h++){const e=s.item(h);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),h=e.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(e.name,`${a?a+" ":""}${h}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||p}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+m,s=this._id+w;this._messageId=i,this._validMessageId=this._id+f,this._invalidMessageId=this._id+b,this._placeholderId=s,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?s:void 0,this.handleValidation(),this.initialized=!1}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),k(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-select"),this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||p,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,s,t,h,e,d;return l("div",{key:"3dd83828aaa06217389cf635687da0070ae88f56",class:r("db-select",this.className),"data-variant":this.variant,"data-hide-label":u(this.showLabel),"data-hide-asterisk":u(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon)},l("label",{key:"8fe580a4172003361a5c16551c4965882dbb3ce0",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("select",{key:"2f0ba052dafae5d44c27442eb4c27fa117c6ba76","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:o(this.required,"required"),disabled:o(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(t=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==t?t:void 0,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(h=this.ariaDescribedBy)&&void 0!==h?h:this._descByIds},"floating"===this.variant||this.placeholder?l("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption())}):null,(null===(e=this.options)||void 0===e?void 0:e.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var s;return l(c,null,i.options?l("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(s=i.options)||void 0===s?void 0:s.map((i=>l("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):l("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):l("slot",null)),this.placeholder?l("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||g):null,l("db-infotext",{key:"34ca1d025c67dc018375d56651a7f0ae1d2e245f",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"6f64314bcf457ddd86b3695e314125cca14d10d1","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],placeholder:[1],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],variant:[1],showEmptyOption:[4,"show-empty-option"],className:[1,"classname"],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],icon:[1],showIcon:[8,"show-icon"],label:[1],disabled:[8],name:[1],size:[2],autocomplete:[1],multiple:[4],ariaDescribedBy:[1,"aria-described-by"],options:[16],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_placeholderId:[32],_descByIds:[32],_value:[32],initialized:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}]),z=I,F=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(v(i))||customElements.define(v(i),I);break;case"db-infotext":customElements.get(v(i))||_()}}))};export{z as DbSelect,F as defineCustomElement}
|
package/bundle/db-stack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as a,d as e,t as i,j as d}from"./p-
|
|
1
|
+
import{y as t,H as s,z as a,d as e,t as i,j as d}from"./p-9fgrfYbf.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?d+" ":""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-stack")}render(){var t,s;return a("div",{key:"87f4f22cbfd4355da58ace757805c9e29758eb6d",class:e("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":d(this.wrap)},a("slot",{key:"391ff9ee8a52408fa9830e0f5a30fd86a249a102"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8]}]),c=n,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{c as DbStack,o as defineCustomElement}
|
package/bundle/db-switch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as i,H as s,A as t,h as a,f as e,p as h,u as d,z as l,k as c,d as o,t as n,o as r,j as v}from"./p-
|
|
1
|
+
import{y as i,H as s,A as t,h as a,f as e,p as h,u as d,z as l,k as c,d as o,t as n,o as r,j as v}from"./p-9fgrfYbf.js";import{l as u,f as w,g as f,h as m,k as b}from"./p-BdL-nI5y.js";import{a as g}from"./p-DstwggLZ.js";import{d as p}from"./p-CwzdaLE3.js";const y=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,c;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(a()&&(this._voiceOverFallback=null!==(c=this.validMessage)&&void 0!==c?c:b,e((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(a()&&(this._voiceOverFallback=this._invalidMessage||u,e((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const a=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=a,this._messageId=`${a}${w}`,this._validMessageId=`${a}${f}`,this._invalidMessageId=`${a}${m}`}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h?h+" ":""}${a}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-switch"),this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,s;return l("div",{key:"c82a033ffefd600a9c96ea487d9fd909ff1b72de",class:o("db-switch",this.className),"data-visual-aid":v(this.visualAid),"data-size":this.size,"data-hide-label":r(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"c1047871716d0d24f026c8ffaf37581a2b080375",htmlFor:this._id},l("input",{key:"883712cbfdd95c525ea615270546e2127f9bdbf8",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:c(this.checked,"checked"),value:this.value,disabled:c(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:c(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"106b299aca93a4e6498c74e7c43df87564122c40"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:b):null,l("db-infotext",{key:"e2848f2de604908a0e05fbb0cde3c77a36adcc4e",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"37bcc9cd24041762a62822d118803b0eef247f12","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),k=y,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(n(i))||customElements.define(n(i),y);break;case"db-infotext":customElements.get(n(i))||p()}}))};export{k as DbSwitch,M as defineCustomElement}
|
package/bundle/db-tab-item.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as s,d as o}from"./p-CKfRqzsn.js";const p=s,r=o;export{p as DbTabItem,r as defineCustomElement}
|
package/bundle/db-tab-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as s,d as o}from"./p-suxDlmXD.js";const m=s,p=o;export{m as DbTabList,p as defineCustomElement}
|
package/bundle/db-tab-panel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as
|
|
1
|
+
import{D as o,d as s}from"./p-BChikMGc.js";const p=o,r=s;export{p as DbTabPanel,r as defineCustomElement}
|
package/bundle/db-tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as
|
|
1
|
+
import{y as t,H as s,A as i,u as e,z as a,F as n,d as o,t as l}from"./p-9fgrfYbf.js";import{d as h}from"./p-C6_y8Tot.js";import{d as r}from"./p-CKfRqzsn.js";import{d as c}from"./p-suxDlmXD.js";import{d}from"./p-BChikMGc.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=i(this,"indexChange"),this.tabSelect=i(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const s=t.scrollWidth>t.clientWidth;this.showScrollLeft=s&&t.scrollLeft>1,this.showScrollRight=s&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var s;let i=Number(this.arrowScrollDistance)||100;t&&(i*=-1),null===(s=this.scrollContainer)||void 0===s||s.scrollBy({top:0,left:i,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const s=t.querySelector('[role="tablist"]');if(s&&(s.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=s,this.evaluateScrollButtons(s),s.addEventListener("scroll",(()=>{this.evaluateScrollButtons(s)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(s)}));t.observe(s),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const s=Array.from(this._ref.getElementsByClassName("db-tab-item")),i=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of s){const a=s.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),i.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of i){if(t.id)continue;const s=i.indexOf(t);t.id=`${this._name}-tab-panel-${s}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${s}`)}}}handleChange(t){var s;if(t.stopPropagation(),t.target){const i=t.target.parentElement;if(i&&i.parentElement&&"LI"===(null===(s=i.parentElement)||void 0===s?void 0:s.nodeName)){const s=i.parentElement.parentElement;if(s){const i=s.parentElement;if(i){const e=Array.from(i.children).indexOf(s);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${e}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tabs"),this._name="tabs-"+(this.name||e()),this.initialized=!0,this.watch0Fn()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0}render(){var t,s,i,e,l,h;return a("div",{key:"71e69e614a98de1b0fe789b210815d03bcee6286",class:o("db-tabs",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(i=this.alignment)&&void 0!==i?i:"start","data-width":null!==(e=this.width)&&void 0!==e?e:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?a("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?a(n,null,a("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,s)=>a("db-tab-item",{key:this.name+"tab-item"+s,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,s)=>a("db-tab-panel",{key:this.name+"tab-panel"+s,content:t.content},t.children)))):null,this.showScrollRight?a("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,a("slot",{key:"2e8a007adff7051a1266f88b95419a510ce7494a"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
|
package/bundle/db-tag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-CnYMRGX1.js";const p=o,r=s;export{p as DbTag,r as defineCustomElement}
|
package/bundle/db-textarea.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as s,H as i,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-
|
|
1
|
+
import{y as s,H as i,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-9fgrfYbf.js";import{l as u,f,g as m,h as b,k as w,b as g,r as p,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-DstwggLZ.js";import{d as k}from"./p-CwzdaLE3.js";const z=s(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var s;return!!(null!==(s=this.validMessage)&&void 0!==s?s:"valid"===this.validation)}handleValidation(){var s,i,t,d;(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(s,i){this.input&&this.input.emit(s),this.handleValidation()}handleChange(s,i){this.change&&this.change.emit(s),this.handleValidation()}handleBlur(s){this.blur&&this.blur.emit(s)}handleFocus(s){this.focus&&this.focus.emit(s)}resetIds(){var s,i,t;const e=null!==(t=null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==t?t:"textarea-"+d();this._id=e,this._messageId=e+f,this._validMessageId=e+m,this._invalidMessageId=e+b}enableAttributePassing(s,i){const t=null==s?void 0:s.closest(i);if(s&&t){const i=t.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))s.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)s.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=s.getAttribute("class");s.setAttribute(a.name,`${h?h+" ":""}${e}`),i?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var s,i;(null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var s;this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const s=this._id+f;this._messageId=s,this._validMessageId=this._id+m,this._invalidMessageId=this._id+b,h(this.message,this.showMessage)&&(this._descByIds=s),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const s=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),x(this._ref,{value:this.value,defaultValue:s},(s=>{this.handleChange(s,!0),this.handleInput(s,!0)}),i.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const s=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);s&&s.remove()}this.enableAttributePassing(this._ref,"db-textarea"),this.resetIds(),this._invalidMessage=this.invalidMessage||u,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var s;null===(s=this.abortController)||void 0===s||s.abort()}render(){var s,i,t,e,a,d;return l("div",{key:"011c369f6437bb150f6afb7534da123ed5987621",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"2ce564dca8898dedd7e666eb39f1b94226cc3547",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:y),l("textarea",{key:"8cafda914ea6b0f48fe096472e71fd89ee85ec23","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:s=>{this._ref=s},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(i=this.showResizer)||void 0===i||i),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly"),form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:s=>this.handleInput(s),onChange:s=>this.handleChange(s),onBlur:s=>this.handleBlur(s),onFocus:s=>this.handleFocus(s),value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:g,rows:n(this.rows,p),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"489ca97fb9dc385ec1483d47918025f6db999e01",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"c1aa196f836729f0b821f4b3f9300a924fd8e08c","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),_=z,F=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((s=>{switch(s){case"db-textarea":customElements.get(v(s))||customElements.define(v(s),z);break;case"db-infotext":customElements.get(v(s))||k()}}))};export{_ as DbTextarea,F as defineCustomElement}
|
package/bundle/db-tooltip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-BPxBqqlc.js";const p=o,r=s;export{p as DbTooltip,r as defineCustomElement}
|
package/bundle/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as _}from"./p-
|
|
1
|
+
import{t as _}from"./p-9fgrfYbf.js";export{c as addAttributeToChildren,d as cls,f as delay,g as getAssetPath,k as getBoolean,j as getBooleanAsString,o as getHideProp,n as getInputValue,x as getNotificationRole,l as getNumber,v as getOptionKey,q as getSearchInput,m as getStep,h as hasVoiceOver,i as isArrayOfStrings,e as isIOSSafari,w as isKeyboardEvent,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions,p as stringPropVisible,u as uuid}from"./p-9fgrfYbf.js";import{DbAccordion as L}from"./db-accordion.js";import{DbAccordionItem as I}from"./db-accordion-item.js";import{DbBadge as O}from"./db-badge.js";import{DbBrand as U}from"./db-brand.js";import{DbButton as R}from"./db-button.js";import{DbCard as P}from"./db-card.js";import{DbCheckbox as M}from"./db-checkbox.js";import{DbCustomButton as V}from"./db-custom-button.js";import{DbCustomSelect as X}from"./db-custom-select.js";export{D as DocumentClickListener}from"./db-custom-select.js";import{DbCustomSelectDropdown as K}from"./db-custom-select-dropdown.js";import{DbCustomSelectFormField as W}from"./db-custom-select-form-field.js";import{DbCustomSelectList as Y}from"./db-custom-select-list.js";import{DbCustomSelectListItem as H}from"./db-custom-select-list-item.js";import{DbDivider as J}from"./db-divider.js";import{DbDrawer as Q}from"./db-drawer.js";import{DbHeader as Z}from"./db-header.js";import{DbIcon as $}from"./db-icon.js";import{DbInfotext as ee}from"./db-infotext.js";import{DbInput as te}from"./db-input.js";import{DbLink as oe}from"./db-link.js";import{DbNavigation as ae}from"./db-navigation.js";import{DbNavigationItem as re}from"./db-navigation-item.js";import{DbNotification as se}from"./db-notification.js";import{DbPage as ie}from"./db-page.js";import{DbPopover as ne}from"./db-popover.js";import{DbRadio as me}from"./db-radio.js";import{DbSection as le}from"./db-section.js";import{DbSelect as de}from"./db-select.js";import{DbStack as ce}from"./db-stack.js";import{DbSwitch as fe}from"./db-switch.js";import{DbTabItem as pe}from"./db-tab-item.js";import{DbTabList as be}from"./db-tab-list.js";import{DbTabPanel as Ee}from"./db-tab-panel.js";import{DbTabs as ue}from"./db-tabs.js";import{DbTag as ge}from"./db-tag.js";import{DbTextarea as _e}from"./db-textarea.js";import{DbTooltip as De}from"./db-tooltip.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentScrollListener}from"./p-BLyvxOmU.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-DOPXnIzL.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-BuBrj57D.js";const Le=["divider","card"],Ae=["multiple","single"],Se=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],je=["outlined","brand","filled","ghost"],Te=["button","reset","submit"],he=["static","interactive"],Ie=["1","2","3"],Fe=["fixed","auto","full"],xe=["checkbox","radio"],Oe=["amount","text","tag"],ve=["none","_"],Ue=["horizontal","vertical"],we=["none","strong","weak","invisible"],ye=["left","right","up","down"],Ce=["modal","inside"],Ne=["fixed","absolute"],Re=["16","20","24","32","48","64"],Pe=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],ke=["adaptive","brand","inline"],Be=["medium","small"],Me=["external","internal"],Ge=["docked","standalone","overlay"],Ve=["block","inline"],Xe=["assertive","polite","off"],ze=["auto","fixed"],Ke=["hidden","auto"],We=["simple","divider"],Ye=["row","column"],He=["stretch","start","end","center"],qe=["space-between","start","end","center"],Je=["scrollbar","arrows"],Qe=["auto","manually"],Ze=["static","removable"],$e=["none","both","horizontal","vertical"],et=["hard","soft","off"],tt=["description","label"],ot=["adaptive","neutral","critical","informational","warning","successful"],at=["medium","small","large","none"],rt=["medium","small","large","none"],st=["left","right","left-start","left-end","right-start","right-end"],it=["top","bottom","top-start","top-end","bottom-start","bottom-end"],nt=[...st,...it],mt=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],lt=["horizontal","vertical"],dt=["full","auto"],ct=["full","medium","large","small"],ft=["none","slow","fast"],pt=["auto","fixed"],bt=["small","medium"],Et=["weak","strong"],ut=["invalid","valid","no-validation"],gt=["fixed","content"],_t=["above","floating"],Dt=["leading","trailing"],Lt=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],At=["_self","_blank","_parent","_top"],St=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],jt=["start","center"],Tt=e=>{"undefined"!=typeof customElements&&[L,I,O,U,R,P,M,V,X,K,W,Y,H,J,Q,Z,$,ee,te,oe,ae,re,se,ie,ne,me,le,de,ce,fe,pe,be,Ee,ue,ge,_e,De].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,e)}))};export{Ae as AccordionBehaviorList,Le as AccordionVariantList,jt as AlignmentList,Lt as AutoCompleteList,Se as BadgePlacementList,Te as ButtonTypeList,je as ButtonVariantList,he as CardBehaviorList,Ie as CardElevationLevelList,Fe as CustomSelectDropdownWidthList,xe as CustomSelectListItemTypeList,ve as DividerMarginList,Ue as DividerVariantList,we as DrawerBackdropList,ye as DrawerDirectionList,Ne as DrawerPositionList,Ce as DrawerVariantList,Et as EmphasisList,gt as FieldSizingList,mt as GapSpacingList,Re as IconWeightList,Pe as InputTypeList,Dt as LabelVariantHorizontalList,_t as LabelVariantList,Me as LinkContentList,St as LinkReferrerPolicyList,Be as LinkSizeList,At as LinkTargetList,ke as LinkVariantList,rt as MarginList,ct as MaxWidthList,Xe as NotificationAriaLiveList,Ve as NotificationLinkVariantList,Ge as NotificationVariantList,lt as OrientationList,Ke as PageDocumentOverflowList,ze as PageVariantList,st as PlacementHorizontalList,nt as PlacementList,it as PlacementVerticalList,ft as PopoverDelayList,pt as PopoverWidthList,Oe as SelectedTypeList,ot as SemanticList,bt as SizeList,at as SpacingList,He as StackAlignmentList,Ye as StackDirectionList,qe as StackJustifyContentList,We as StackVariantList,Je as TabsBehaviorList,Qe as TabsInitialSelectedModeList,Ze as TagBehaviorList,$e as TextareaResizeList,et as TextareaWrapList,tt as TooltipVariantList,ut as ValidationList,dt as WidthList,Tt as defineCustomElements}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as i,H as t,A as s,h as a,f as e,p as h,i as d,u as
|
|
1
|
+
import{y as i,H as t,A as s,h as a,f as e,p as h,i as d,u as l,z as n,k as o,n as c,l as r,m as u,e as v,d as m,t as f,j as g,o as p}from"./p-9fgrfYbf.js";import{l as b,f as w,g as y,h as k,j as x,k as z,b as L,a as I}from"./p-BdL-nI5y.js";import{c as _}from"./p-DstwggLZ.js";import{d as M}from"./p-CwzdaLE3.js";const F=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._dataListId=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)?(this._descByIds=this._validMessageId,a()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:z,e((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||b,a()&&(this._voiceOverFallback=this._invalidMessage,e((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,t){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,t){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getDataList(){const i=this.dataList;return Array.from((d(i)?null==i?void 0:i.map((i=>({value:i,label:void 0}))):i)||[])}resetIds(){var i,t,s;const a=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`input-${l()}`;this._id=a,this._messageId=a+w,this._validMessageId=a+y,this._invalidMessageId=a+k,this._dataListId=a+x}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const e=t.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h?`${h} `:""}${a}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||b}watch1(){this.watch1Fn()}watch2Fn(){var i;if(this._id){const t=this._id+w;this._messageId=t,this._validMessageId=this._id+y,this._invalidMessageId=this._id+k,this._dataListId=null!==(i=this.dataListId)&&void 0!==i?i:this._id+x,h(this.message,this.showMessage)&&(this._descByIds=t),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let t=this.abortController;t||(t=new AbortController,this.abortController=t),_(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),t.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-input"),this.resetIds(),this._invalidMessage=this.invalidMessage||b,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,s,a,e,d,l,f,b;return n("div",{key:"09f1dff4d884168cb140705b0f310519e60e3aa2",class:m("db-input",this.className),"data-variant":this.variant,"data-hide-label":p(this.showLabel),"data-show-icon":g(null!==(i=this.showIconLeading)&&void 0!==i?i:this.showIcon),"data-icon":null!==(t=this.iconLeading)&&void 0!==t?t:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":p(this.showRequiredAsterisk),"data-show-icon-trailing":g(this.showIconTrailing)},n("label",{key:"17c5e2ddca81cd88f5fbc5d0b5024fb833aff026",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:I),n("input",{key:"ed0381ce65f0a89035804412d736adf3b6e0aea1","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,name:this.name,type:this.type||"text",multiple:o(this.multiple,"multiple"),accept:this.accept,placeholder:null!==(a=this.placeholder)&&void 0!==a?a:L,disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),step:u(this.step),value:null!==(d=null!==(e=this.value)&&void 0!==e?e:this._value)&&void 0!==d?d:"",maxLength:r(this.maxLength,this.maxlength),minLength:r(this.minLength,this.minlength),max:c(this.max,this.type),min:c(this.min,this.type),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly"),form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:o(this.autofocus,"autofocus"),enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),list:this.dataList&&this._dataListId,"aria-describedby":null!==(l=this.ariaDescribedBy)&&void 0!==l?l:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(f=this.type)&&void 0!==f?f:"")&&v()?"textbox":void 0}),this.dataList?n("datalist",{id:this._dataListId},null===(b=this.getDataList())||void 0===b?void 0:b.map((i=>n("option",{key:this._dataListId+"-option-"+i.value,value:i.value},i.label)))):null,n("slot",{key:"e7c51c3d97314fd153f606a346244dac365171e5"}),h(this.message,this.showMessage)?n("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?n("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||z):null,n("db-infotext",{key:"f92de27dbfd942534f83a83d181b533fc0b4a6e2",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),n("span",{key:"af168dd9e11d853f76db0edee198a744d36a228d","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-input",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],dataListId:[1,"data-list-id"],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],pattern:[1],dataList:[16],className:[1,"classname"],variant:[1],showLabel:[8,"show-label"],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],showRequiredAsterisk:[8,"show-required-asterisk"],showIconTrailing:[8,"show-icon-trailing"],label:[1],fieldSizing:[1,"field-sizing"],name:[1],type:[1],multiple:[8],accept:[1],placeholder:[1],disabled:[8],step:[8],maxlength:[8],minlength:[8],max:[8],min:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],size:[2],autocomplete:[1],autofocus:[8],enterkeyhint:[1],inputmode:[1],ariaDescribedBy:[1,"aria-described-by"],messageSize:[1,"message-size"],messageIcon:[1,"message-icon"],validMessageSize:[1,"valid-message-size"],invalidMessageSize:[1,"invalid-message-size"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_dataListId:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]);function C(){"undefined"!=typeof customElements&&["db-input","db-infotext"].forEach((i=>{switch(i){case"db-input":customElements.get(f(i))||customElements.define(f(i),F);break;case"db-infotext":customElements.get(f(i))||M()}}))}export{F as D,C as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,A as i,k as e,z as c,j as h,d as a,t as o}from"./p-
|
|
1
|
+
import{y as t,H as s,A as i,k as e,z as c,j as h,d as a,t as o}from"./p-9fgrfYbf.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=i(this,"change"),this.hasDivider=!1}handleChange(t){t.stopPropagation(),this.change&&this.change.emit(t)}getIconTrailing(){if(!this.isGroupTitle&&"checkbox"!==this.type)return e(this.checked,"checked")?"check":"x_placeholder"}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const c=s.item(e);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))t.setAttribute(c.name,c.value),i.removeAttribute(c.name);else if(c&&"data-density"!==c.name&&"class"!==c.name&&"style"===c.name)t.setAttribute(c.name,c.value),i.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),e=c.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(c.name,`${h?`${h} `:""}${e}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(c.name)}}}}watch0Fn(){this.hasDivider=Boolean(this.isGroupTitle||this.showDivider)}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list-item"),this.watch0Fn()}render(){var t,s;return c("li",{key:"67c52a98bf21203bd6f5f14617ec32d2e81f29e4",class:a("db-custom-select-list-item",this.className,{"db-checkbox":"checkbox"===this.type&&!this.isGroupTitle,"db-radio":"checkbox"!==this.type&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-divider":h(this.hasDivider)},this.isGroupTitle?c("span",null,this.groupTitle):c("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":h(this.showIcon),"data-icon-trailing":this.getIconTrailing()},c("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:e(this.checked,"checked"),disabled:e(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),this.label?this.label:null,c("slot",null)))}get rootElement(){return this}static get watchers(){return{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}}},[260,"db-custom-select-list-item",{isGroupTitle:[4,"is-group-title"],showDivider:[4,"show-divider"],type:[1],checked:[8],id:[1],propOverrides:[16],className:[1,"classname"],groupTitle:[1,"group-title"],icon:[1],showIcon:[8,"show-icon"],name:[1],disabled:[8],value:[8],label:[1],hasDivider:[32]},void 0,{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}]);function l(){"undefined"!=typeof customElements&&["db-custom-select-list-item"].forEach((t=>{"db-custom-select-list-item"===t&&(customElements.get(o(t))||customElements.define(o(t),d))}))}export{d as D,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d as a,t as n}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d as a,t as n}from"./p-9fgrfYbf.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let a=0;a<s.length;a++){const n=s.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d?`${d} `:""}${a}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-panel")}render(){var t,s;return e("section",{key:"86076593b5c38755ddd08bbb930bb8252b9e5e78",class:a("db-tab-panel",this.className),role:"tabpanel",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},this.content?this.content:null,e("slot",{key:"5069f16c7266dd495e8f9fb03c3bb69546976842"}))}get rootElement(){return this}},[260,"db-tab-panel",{className:[1,"classname"],id:[1],propOverrides:[16],content:[1]}]);function i(){"undefined"!=typeof customElements&&["db-tab-panel"].forEach((t=>{"db-tab-panel"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}export{d as D,i as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as i,A as s,k as e,z as a,j as n,d as h,t as d}from"./p-
|
|
1
|
+
import{y as t,H as i,A as s,k as e,z as a,j as n,d as h,t as d}from"./p-9fgrfYbf.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.toggle=s(this,"toggle"),this._open=!1,this._name=void 0,this.initialized=!1}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,s)=>{t.call(this._ref,i,s),"name"===i&&(this._name=s)}}}handleToggle(t){null==t||t.preventDefault();const i=!this._open;this.toggle&&this.toggle.emit(i),void 0===this.open&&(this._open=i)}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?`${n} `:""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}watch1(){this.watch1Fn()}watch2Fn(){const t=e(this.open,"open");void 0!==t&&(this._open=t)}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-accordion-item"),this.defaultOpen&&(this._open=this.defaultOpen),this.initialized=!0,this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}render(){var t,i;return a("li",{key:"7bfcb3c0b3bc70446504054b267ad2747a7360ef",class:h("db-accordion-item",this.className),id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id},a("details",{key:"18345f01252d5c48e3e22b0f9fa7258afb2aa77b","aria-disabled":n(this.disabled),ref:t=>{this._ref=t},name:this._name,open:this._open},a("summary",{key:"8ce63298f1899cbe77d1eda2a71135aa74e9049d",onClick:t=>this.handleToggle(t)},this.headlinePlain?this.headlinePlain:null,this.headlinePlain?null:a("slot",{name:"headline"})),a("div",{key:"3b2275eba655b47e08af48d0fd49e68e7cd40a4a"},this.text?this.text:null,a("slot",{key:"52caf8709e1f54d69ad7433365146565609248ac"}))))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],name:[{watch1:0}],open:[{watch2:0}]}}},[260,"db-accordion-item",{defaultOpen:[4,"default-open"],name:[1],open:[8],id:[1],propOverrides:[16],className:[1,"classname"],disabled:[8],headlinePlain:[1,"headline-plain"],text:[1],_open:[32],_name:[32],initialized:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}],name:[{watch1:0}],open:[{watch2:0}]}]);function o(){"undefined"!=typeof customElements&&["db-accordion-item"].forEach((t=>{"db-accordion-item"===t&&(customElements.get(d(t))||customElements.define(d(t),c))}))}export{c as D,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as t}from"./p-
|
|
1
|
+
import{u as t}from"./p-9fgrfYbf.js";class s{static runCallbacks(t){for(const l of Object.values(s.callbacks))"function"==typeof l&&l(t)}constructor(){if(this.ticking=!1,s._instance)return s._instance;s._instance=this,self.document&&self.document.addEventListener("scroll",(t=>{this.ticking||(window.requestAnimationFrame((()=>{s.runCallbacks(t),this.ticking=!1})),this.ticking=!0)}),!0)}addCallback(l){const o=t();return s.callbacks[o]=l,o}removeCallback(t){delete s.callbacks[t]}}s.callbacks={},s._instance=null;export{s as D}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as i,f as s,u as e,z as a,d as o,t as d,j as h}from"./p-
|
|
1
|
+
import{y as t,H as i,f as s,u as e,z as a,d as o,t as d,j as h}from"./p-9fgrfYbf.js";import{D as n}from"./p-BdL-nI5y.js";import{D as l}from"./p-BLyvxOmU.js";import{b as r}from"./p-DOPXnIzL.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this._id=n,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&s((()=>{var i;this._ref&&r(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,e;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t;this._documentScrollListenerCallbackId&&(new l).removeCallback(this._documentScrollListenerCallbackId),null===(t=this._observer)||void 0===t||t.unobserve(this.getParent())}handleEnter(t){var i;this._documentScrollListenerCallbackId=(new l).addCallback((i=>this.handleDocumentScroll(i,t))),this.handleAutoPlacement(t),null===(i=this._observer)||void 0===i||i.observe(this.getParent())}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"tooltip-"+e()}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&this._id){const t=this.getParent();t&&(this.handleAutoPlacement(t),["mouseenter","focusin"].forEach((i=>{t.addEventListener(i,(()=>this.handleEnter(t)))})),t.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseleave","focusout"].forEach((i=>{t.addEventListener(i,(()=>this.handleLeave()))})),t.dataset.hasTooltip="true",t.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id)),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tooltip"),this.resetIds(),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,i;return a("i",{key:"baf376c4ee424f78a7e062b864586139846b2073",class:o("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-wrap":h(this.wrap),"data-animation":h(null===(t=this.animation)||void 0===t||t),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":h(null===(i=this.showArrow)||void 0===i||i),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,a("slot",{key:"6ec094383bad1237ce6ae7d02a7a62cf5c8de19d"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}},[260,"db-tooltip",{id:[1],propOverrides:[16],variant:[1],placement:[1],className:[1,"classname"],emphasis:[1],wrap:[8],animation:[8],delay:[1],width:[1],showArrow:[8,"show-arrow"],text:[1],_id:[32],initialized:[32],_documentScrollListenerCallbackId:[32],_observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-tooltip"].forEach((t=>{"db-tooltip"===t&&(customElements.get(d(t))||customElements.define(d(t),c))}))}export{c as D,u as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as i,A as s,z as a,d as n,t as e,j as o,k as d}from"./p-
|
|
1
|
+
import{y as t,H as i,A as s,z as a,d as n,t as e,j as o,k as d}from"./p-9fgrfYbf.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.click=s(this,"click")}getButtonType(){return this.type?this.type:this.click?"button":"submit"}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const n=i.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(n.name,`${e?`${e} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-button")}render(){var t,i,s,e;return a("button",{key:"ca13a30fcf43bcd6e043e3dc2bbcb94eb3347450",class:n("db-button",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,type:this.getButtonType(),disabled:d(this.disabled,"disabled"),"data-icon":null!==(s=this.iconLeading)&&void 0!==s?s:this.icon,"data-show-icon":o(null!==(e=this.showIconLeading)&&void 0!==e?e:this.showIcon),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":o(this.showIconTrailing),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-wrap":o(this.wrap),"data-no-text":o(this.noText),name:this.name,form:this.form,value:this.value},this.text?this.text:null,a("slot",{key:"1f0aee6d7db3187db5575729569bfdd4c88c0e19"}))}get rootElement(){return this}},[260,"db-button",{type:[1],id:[1],propOverrides:[16],className:[1,"classname"],disabled:[8],iconLeading:[1,"icon-leading"],icon:[1],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconTrailing:[1,"icon-trailing"],showIconTrailing:[8,"show-icon-trailing"],size:[1],width:[1],variant:[1],wrap:[8],noText:[8,"no-text"],name:[1],form:[1],value:[1],text:[1]}]);function h(){"undefined"!=typeof customElements&&["db-button"].forEach((t=>{"db-button"===t&&(customElements.get(e(t))||customElements.define(e(t),c))}))}export{c as D,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as i,A as e,j as s,z as a,k as h,d as n,t as d}from"./p-
|
|
1
|
+
import{y as t,H as i,A as e,j as s,z as a,k as h,d as n,t as d}from"./p-9fgrfYbf.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=e(this,"change"),this._selected=!1,this._name=void 0,this.initialized=!1,this._listenerAdded=!1,this.boundSetSelectedOnChange=void 0}setSelectedOnChange(t){t.stopPropagation(),this._selected=s(t.target===this._ref)}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,e)=>{t.call(this._ref,i,e),"name"===i&&(this._name=e)}}}handleChange(t){this.change&&this.change.emit(t)}enableAttributePassing(t,i){const e=null==t?void 0:t.closest(i);if(t&&e){const i=e.attributes;for(let s=0;s<i.length;s++){const a=i.item(s);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),s=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h?`${h} `:""}${s}`),i?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}watch0Fn(){var t;this._ref&&this.initialized&&this.boundSetSelectedOnChange&&(this.initialized=!1,this._listenerAdded||(null===(t=this._ref.closest("[role=tablist]"))||void 0===t||t.addEventListener("change",this.boundSetSelectedOnChange),this._listenerAdded=!0),(this.active||this._ref.checked)&&(this._selected=s(!0),this._ref.click()))}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-item"),this.boundSetSelectedOnChange=this.setSelectedOnChange.bind(this),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;this._listenerAdded&&this._ref&&this.boundSetSelectedOnChange&&(null===(t=this._ref.closest("[role=tablist]"))||void 0===t||t.removeEventListener("change",this.boundSetSelectedOnChange),this._listenerAdded=!1)}render(){var t,i,e,d,c,o;return a("li",{key:"8f237a10d09644e2bad44ff457e5ae7bb6ed80f3",class:n("db-tab-item",this.className),role:"none"},a("label",{key:"530c603c5927f732cc76920537fe169a15ebbd4c",htmlFor:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-icon":null!==(e=this.iconLeading)&&void 0!==e?e:this.icon,"data-icon-trailing":this.iconTrailing,"data-show-icon":s(null!==(d=this.showIconLeading)&&void 0!==d?d:this.showIcon),"data-show-icon-trailing":s(this.showIconTrailing),"data-no-text":s(this.noText)},a("input",{key:"8551abf9afc26bb0edfb9a8f94adb21f5c95bf4e",type:"radio",role:"tab",disabled:h(this.disabled,"disabled"),"aria-selected":this._selected,checked:h(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:null!==(c=this.id)&&void 0!==c?c:null===(o=this.propOverrides)||void 0===o?void 0:o.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,a("slot",{key:"4f1f678c9edcef4f977f3677903b682f5bf723b4"})))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}}},[260,"db-tab-item",{active:[8],name:[1],className:[1,"classname"],id:[1],propOverrides:[16],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],showIconTrailing:[8,"show-icon-trailing"],noText:[8,"no-text"],disabled:[8],checked:[8],label:[1],_selected:[32],_name:[32],initialized:[32],_listenerAdded:[32],boundSetSelectedOnChange:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}]);function o(){"undefined"!=typeof customElements&&["db-tab-item"].forEach((t=>{"db-tab-item"===t&&(customElements.get(d(t))||customElements.define(d(t),c))}))}export{c as D,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as e,A as s,z as a,d as o,t as i,j as d}from"./p-
|
|
1
|
+
import{y as t,H as e,A as s,z as a,d as o,t as i,j as d}from"./p-9fgrfYbf.js";import{m as n}from"./p-BdL-nI5y.js";import{d as c}from"./p-BPxBqqlc.js";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.remove=s(this,"remove")}handleRemove(t){t&&(t.stopPropagation(),this.remove&&this.remove.emit(t))}getRemoveButtonText(){return this.removeButton?this.removeButton:n}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const o=e.item(a);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))t.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"data-density"!==o.name&&"class"!==o.name&&"style"===o.name)t.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const e=o.value.includes("hydrated"),a=o.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(o.name,`${i?`${i} `:""}${a}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tag")}render(){var t,e,s;return a("div",{key:"85b02f290e8323ddd9a61ee5cf15893e7bc0cdab",class:o("db-tag",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id,"data-semantic":this.semantic,"data-emphasis":this.emphasis,"data-icon":this.icon,"data-show-check-state":d(null===(s=this.showCheckState)||void 0===s||s),"data-show-icon":d(this.showIcon),"data-no-text":d(this.noText),"data-overflow":d(this.overflow)},a("slot",{key:"3aefef41d0a30b8f979e43146936be56a1d9181b",name:"content"}),this.text?this.text:null,a("slot",{key:"e283aefd212ea8c7f7eab8da48ed19a7f4763e38"}),"removable"===this.behavior?a("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)},a("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}get rootElement(){return this}},[260,"db-tag",{removeButton:[1,"remove-button"],id:[1],propOverrides:[16],className:[1,"classname"],semantic:[1],emphasis:[1],icon:[1],showCheckState:[8,"show-check-state"],showIcon:[8,"show-icon"],noText:[8,"no-text"],overflow:[8],text:[1],behavior:[1]}]);function l(){"undefined"!=typeof customElements&&["db-tag","db-tooltip"].forEach((t=>{switch(t){case"db-tag":customElements.get(i(t))||customElements.define(i(t),h);break;case"db-tooltip":customElements.get(i(t))||c()}}))}export{h as D,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d as a,t as i,j as d}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d as a,t as i,j as d}from"./p-9fgrfYbf.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?`${d} `:""}${a}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-infotext")}render(){var t,s,i;return e("span",{key:"8336d336c2ea90300646a83257cab6f34dfe862a",class:a("db-infotext",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-wrap":d(this.wrap),"data-show-icon-leading":d(null===(i=this.showIcon)||void 0===i||i)},this.text?this.text:null,e("slot",{key:"1dd519913408aa16cce587ddaee31d3c3bae05b6"}))}get rootElement(){return this}},[260,"db-infotext",{id:[1],propOverrides:[16],className:[1,"classname"],icon:[1],semantic:[1],size:[1],wrap:[8],showIcon:[8,"show-icon"],text:[1]}]);function o(){"undefined"!=typeof customElements&&["db-infotext"].forEach((t=>{"db-infotext"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))}export{n as D,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,A as i,w as e,f as a,z as d,j as o,d as c,k as n,t as h}from"./p-
|
|
1
|
+
import{y as t,H as s,A as i,w as e,f as a,z as d,j as o,d as c,k as n,t as h}from"./p-9fgrfYbf.js";import{s as r}from"./p-BdL-nI5y.js";import{d as l}from"./p-C6_y8Tot.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=i(this,"close"),this.initialized=!1}handleClose(t,s){var i;t&&(e(t)?"Escape"===t.key&&(t.preventDefault(),this.close&&this.close.emit(t)):(s&&(t.stopPropagation(),this.close&&this.close.emit(t)),"DIALOG"===(null===(i=t.target)||void 0===i?void 0:i.nodeName)&&"click"===t.type&&"none"!==this.backdrop&&this.close&&this.close.emit(t)))}handleDialogOpen(){if(this._ref){const t=n(this.open,"open");t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant?this._ref.show():this._ref.showModal(),a((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),a((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d?`${d} `:""}${e}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){this.handleDialogOpen()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&"absolute"===this.position){const t=this._ref.parentElement;t&&(t.style.position="relative")}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-drawer"),this.handleDialogOpen(),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,s,i;return d("dialog",{key:"a09369527805c993297bc3d27cf1f03c5e06f232",class:"db-drawer",id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,ref:t=>{this._ref=t},onClick:t=>this.handleClose(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},d("article",{key:"cb35fccd92fcf6bab4d6027c29fc2ba0bb25e9ac",class:c("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":o(this.rounded)},d("header",{key:"20a175ba0707e3cc207e1e57dd925b8234b86877",class:"db-drawer-header"},d("div",{key:"d317b29ff0d704aa50b3fbd0a8c86b94f7ab1dfa",class:"db-drawer-header-text"},d("slot",{key:"1456a65346ebd9d52dafe48022cc0b343216cc09",name:"drawerHeader"})),d("db-button",{key:"6741766807bb56a24ed7bb385240093a3a1e5f7f",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t,!0)},null!==(i=this.closeButtonText)&&void 0!==i?i:r)),d("div",{key:"dea536d8bd27dccdb7edd476defc68beed65254f",class:"db-drawer-content"},d("slot",{key:"bcb4ed27199eb79f9d6c13da82d7be87d2f5e54b"}))))}get rootElement(){return this}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}},[260,"db-drawer",{open:[8],position:[1],backdrop:[1],variant:[1],id:[1],propOverrides:[16],direction:[1],className:[1,"classname"],spacing:[1],width:[1],rounded:[8],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32]},void 0,{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}]);function f(){"undefined"!=typeof customElements&&["db-drawer","db-button"].forEach((t=>{switch(t){case"db-drawer":customElements.get(h(t))||customElements.define(h(t),b);break;case"db-button":customElements.get(h(t))||l()}}))}export{b as D,f as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as s,H as t,z as e,d as a,t as d}from"./p-
|
|
1
|
+
import{y as s,H as t,z as e,d as a,t as d}from"./p-9fgrfYbf.js";const i=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost()}enableAttributePassing(s,t){const e=null==s?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))s.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)s.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),i=s.getAttribute("class");s.setAttribute(d.name,`${i?`${i} `:""}${a}`),t?e.setAttribute("class","hydrated"):e.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const s=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);s&&s.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list")}render(){var s,t;return e("div",{key:"f62ebf87384969fa7c299ed23062d15ac4d08e9d",class:a("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(t=this.propOverrides)||void 0===t?void 0:t.id},e("ul",{key:"a6071f83a292171bc101a797adb98dc976a18e34"},e("slot",{key:"6a18c02b91c91890a0d4b73e2b718c046b278f29"})))}get rootElement(){return this}},[260,"db-custom-select-list",{multiple:[4],label:[1],id:[1],propOverrides:[16],className:[1,"classname"]}]);function c(){"undefined"!=typeof customElements&&["db-custom-select-list"].forEach((s=>{"db-custom-select-list"===s&&(customElements.get(d(s))||customElements.define(d(s),i))}))}export{i as D,c as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as t}from"./p-9fgrfYbf.js";const e=(t,e,c)=>{t.form&&!t._dbFormResetListenerAdded&&(t.form.addEventListener("reset",(t=>{e(t)}),{signal:c}),t._dbFormResetListenerAdded=!0)},c=(c,b,s,a)=>{e(c,(e=>{t((()=>{const t=b.checked?b.checked:b.defaultChecked?b.defaultChecked:c.checked,a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{checked:t})});s(a)}),1)}),a)},b=(c,b,s,a)=>{e(c,(e=>{t((()=>{const t=b.value?b.value:b.defaultValue?b.defaultValue:c.value,a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:t})});s(a)}),1)}),a)};export{c as a,e as b,b as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d,t as o}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d,t as o}from"./p-9fgrfYbf.js";const a=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.width="fixed"}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let d=0;d<s.length;d++){const o=s.item(d);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))t.setAttribute(o.name,o.value),e.removeAttribute(o.name);else if(o&&"data-density"!==o.name&&"class"!==o.name&&"style"===o.name)t.setAttribute(o.name,o.value),e.removeAttribute(o.name);else if(o&&"class"===o.name){const s=o.value.includes("hydrated"),d=o.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(o.name,`${a?`${a} `:""}${d}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-dropdown")}render(){var t,s;return e("article",{key:"a2f23f8c268d6b06b03e58ca3abc998b7f741301",class:d("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-width":this.width},e("slot",{key:"f2fd945d779fefe9d1b379d95d11c5ae60689818"}))}get rootElement(){return this}},[260,"db-custom-select-dropdown",{id:[1],propOverrides:[16],className:[1,"classname"],width:[1]}]);function n(){"undefined"!=typeof customElements&&["db-custom-select-dropdown"].forEach((t=>{"db-custom-select-dropdown"===t&&(customElements.get(o(t))||customElements.define(o(t),a))}))}export{a as D,n as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d,t as a}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d,t as a}from"./p-9fgrfYbf.js";const i=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let d=0;d<s.length;d++){const a=s.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(a.name,`${i?`${i} `:""}${d}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-list")}render(){var t,s;return e("div",{key:"ce54a7c3bef0090cf7aa0d6b11fedd6d3b4bbd07",class:d("db-tab-list",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},e("ul",{key:"8ac107177182afdde5163dee58917fa69b75e40c",role:"tablist"},e("slot",{key:"0d53d4b529c439784d7c66894b967b41fb9eb38d"})))}get rootElement(){return this}},[260,"db-tab-list",{id:[1],propOverrides:[16],className:[1,"classname"]}]);function n(){"undefined"!=typeof customElements&&["db-tab-list"].forEach((t=>{"db-tab-list"===t&&(customElements.get(a(t))||customElements.define(a(t),i))}))}export{i as D,n as d}
|