@db-ux/wc-core-components 4.13.1-angular-signal-forms6-a1510bb → 4.13.1-angular-signal-forms9-42cbbed
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/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-table-body.js +1 -1
- package/bundle/db-table-caption.js +1 -1
- package/bundle/db-table-data-cell.js +1 -1
- package/bundle/db-table-footer.js +1 -1
- package/bundle/db-table-head.js +1 -1
- package/bundle/db-table-header-cell.js +1 -1
- package/bundle/db-table-row.js +1 -1
- package/bundle/db-table.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-C9llbu6g.js → p-BEB81OKc.js} +1 -1
- package/bundle/{p-CEfk-PhT.js → p-BEk7DV7j.js} +1 -1
- package/bundle/p-BHbH4m9P.js +1 -0
- package/bundle/p-B_Ym2iQI.js +1 -0
- package/bundle/{p-DcgghWWs.js → p-Be1wVxvg.js} +1 -1
- package/bundle/{p-to845Mg2.js → p-BeY5dlW3.js} +1 -1
- package/bundle/p-Bpe95kXk.js +1 -0
- package/bundle/{p-C4lguqGn.js → p-By8B0zRG.js} +1 -1
- package/bundle/{p-CYYSsu3p.js → p-BygObMH8.js} +1 -1
- package/bundle/{p-BQov9sQb.js → p-C7oh-1Gi.js} +1 -1
- package/bundle/{p-fu0VCCbW.js → p-CSvl-BIi.js} +1 -1
- package/{dist/db-ux/p-BtImZ8Nt.js → bundle/p-CTkfdjBp.js} +1 -1
- package/bundle/{p-k8bCF_aj.js → p-DNIQoAaq.js} +1 -1
- package/bundle/{p-Cc5hdI0x.js → p-DURkJXL0.js} +1 -1
- package/bundle/{p-BpO8Ok-r.js → p-DY4zD5g8.js} +1 -1
- package/bundle/{p-CuC4YsIB.js → p-Dd85RhMq.js} +1 -1
- package/bundle/{p-C0JLpZ9Q.js → p-DdPms_08.js} +1 -1
- package/bundle/p-DmQrjhko.js +1 -0
- package/bundle/{p-G57oLrr4.js → p-DmmLQjqi.js} +1 -1
- package/bundle/{p-DTM6Wcbf.js → p-Du6xs6Aw.js} +1 -1
- package/bundle/{p-gIJnyld5.js → p-LpyedXhR.js} +1 -1
- package/bundle/p-_LLUUEFR.js +1 -0
- package/bundle/p-sxMcNIKS.js +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-button.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +4 -4
- 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_4.cjs.entry.js +10 -8
- 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 +2 -2
- package/dist/cjs/db-radio.cjs.entry.js +2 -2
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +2 -2
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +2 -2
- package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/db-table-body_3.cjs.entry.js +10 -10
- package/dist/cjs/db-table-caption.cjs.entry.js +4 -3
- package/dist/cjs/db-table.cjs.entry.js +4 -4
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +2 -2
- package/dist/cjs/db-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/{document-click-listener-DdNXbErU.js → document-click-listener-Bt1Iysz5.js} +1 -1
- package/dist/cjs/{document-scroll-listener-CvAZ6uPr.js → document-scroll-listener-Dd_hGebZ.js} +1 -1
- package/dist/cjs/{form-components-CmQlkARp.js → form-components-oFHK6vKb.js} +1 -1
- package/dist/cjs/{index-spuu3sXz.js → index-BmNxQ4GI.js} +30 -2
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/table/table.js +27 -3
- package/dist/collection/components/table-body/table-body.js +27 -3
- package/dist/collection/components/table-caption/table-caption.js +27 -2
- package/dist/collection/components/table-data-cell/table-data-cell.js +27 -2
- package/dist/collection/components/table-footer/table-footer.js +27 -3
- package/dist/collection/components/table-head/table-head.js +27 -3
- package/dist/collection/components/table-header-cell/table-header-cell.js +27 -2
- package/dist/collection/components/table-row/table-row.js +27 -3
- package/dist/collection/utils/index.js +30 -2
- package/dist/custom-elements.json +154 -42
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-38c55e9c.entry.js → p-0dc302c9.entry.js} +1 -1
- package/dist/db-ux/{p-d9d006e7.entry.js → p-1052a73c.entry.js} +1 -1
- package/dist/db-ux/{p-eedf08e0.entry.js → p-15858e34.entry.js} +1 -1
- package/dist/db-ux/{p-71399ee3.entry.js → p-15fd6665.entry.js} +1 -1
- package/dist/db-ux/{p-87281518.entry.js → p-177f3aeb.entry.js} +1 -1
- package/dist/db-ux/{p-f271332c.entry.js → p-1f740a3b.entry.js} +1 -1
- package/dist/db-ux/{p-f0b5c785.entry.js → p-2aee37e2.entry.js} +1 -1
- package/dist/db-ux/{p-a8556349.entry.js → p-2e2603dc.entry.js} +1 -1
- package/dist/db-ux/{p-a6f33f3b.entry.js → p-2e66b25f.entry.js} +1 -1
- package/dist/db-ux/{p-68f00121.entry.js → p-3649de37.entry.js} +1 -1
- package/dist/db-ux/{p-f964d5f5.entry.js → p-38639909.entry.js} +1 -1
- package/dist/db-ux/{p-5623ff36.entry.js → p-3b9d4cc3.entry.js} +1 -1
- package/dist/db-ux/p-53cabb2c.entry.js +1 -0
- package/dist/db-ux/{p-e58fbd4d.entry.js → p-550bd66a.entry.js} +1 -1
- package/dist/db-ux/{p-77a47225.entry.js → p-66ffa296.entry.js} +1 -1
- package/dist/db-ux/{p-57527cef.entry.js → p-72004bee.entry.js} +1 -1
- package/dist/db-ux/{p-a176424b.entry.js → p-826856e9.entry.js} +1 -1
- package/dist/db-ux/p-911828b3.entry.js +1 -0
- package/dist/db-ux/{p-f5f73623.entry.js → p-91d7fcc4.entry.js} +1 -1
- package/dist/db-ux/{p-6fdc00bd.entry.js → p-98071987.entry.js} +1 -1
- package/dist/db-ux/{p-6d41baf1.entry.js → p-99148e01.entry.js} +1 -1
- package/dist/db-ux/{p-db1b9f5d.entry.js → p-9b550357.entry.js} +1 -1
- package/dist/db-ux/{p-OOIf-5XP.js → p-B-HK8lhm.js} +1 -1
- package/{bundle/p-D6L0n3gO.js → dist/db-ux/p-BXROp_k8.js} +1 -1
- package/dist/db-ux/p-BiyJ0WOE.js +1 -0
- package/dist/db-ux/p-Z7eYHp_l.js +1 -0
- package/dist/db-ux/{p-8540dbb7.entry.js → p-b37a3904.entry.js} +1 -1
- package/dist/db-ux/{p-6ce4a109.entry.js → p-bb01adbe.entry.js} +1 -1
- package/dist/db-ux/{p-4751361d.entry.js → p-bc835df4.entry.js} +1 -1
- package/dist/db-ux/{p-70b6ebcd.entry.js → p-c33fe9e0.entry.js} +1 -1
- package/dist/db-ux/{p-81edb316.entry.js → p-c83a359f.entry.js} +1 -1
- package/dist/db-ux/{p-1e70d93f.entry.js → p-caa963ed.entry.js} +1 -1
- package/dist/db-ux/{p-2c23efe2.entry.js → p-d40a44ca.entry.js} +1 -1
- package/dist/db-ux/{p-a07e33e7.entry.js → p-dfc9ad26.entry.js} +1 -1
- package/dist/db-ux/{p-183c78b7.entry.js → p-e35b2f5d.entry.js} +1 -1
- package/dist/db-ux/{p-37bf8d87.entry.js → p-e95bc40d.entry.js} +1 -1
- package/dist/db-ux/{p-e66aa9d8.entry.js → p-ebb8dbb2.entry.js} +1 -1
- package/dist/db-ux/{p-6b8375e8.entry.js → p-f4eb1ad4.entry.js} +1 -1
- 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 +2 -2
- package/dist/esm/db-custom-button.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +2 -2
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +4 -4
- 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_4.entry.js +10 -8
- 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 +2 -2
- package/dist/esm/db-radio.entry.js +2 -2
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +2 -2
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +2 -2
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-table-body_3.entry.js +10 -10
- package/dist/esm/db-table-caption.entry.js +4 -3
- package/dist/esm/db-table.entry.js +4 -4
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +2 -2
- package/dist/esm/db-tooltip.entry.js +2 -2
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/{document-click-listener-9wJfRcvz.js → document-click-listener-B9qg-hEl.js} +1 -1
- package/dist/esm/{document-scroll-listener-4F0ZAg9p.js → document-scroll-listener-ewGU9bif.js} +1 -1
- package/dist/esm/{form-components-ZV7IN0oG.js → form-components-DvI2f9Yi.js} +1 -1
- package/dist/esm/{index-fumiz06Y.js → index-BiyJ0WOE.js} +30 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/table/table.d.ts +1 -0
- package/dist/types/components/table-body/table-body.d.ts +1 -0
- package/dist/types/components/table-caption/table-caption.d.ts +1 -0
- package/dist/types/components/table-data-cell/table-data-cell.d.ts +1 -0
- package/dist/types/components/table-footer/table-footer.d.ts +1 -0
- package/dist/types/components/table-head/table-head.d.ts +1 -0
- package/dist/types/components/table-header-cell/table-header-cell.d.ts +1 -0
- package/dist/types/components/table-row/table-row.d.ts +1 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/shared/constants.d.ts +38 -38
- package/dist/types/shared/figma.d.ts +11 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/vscode.html-custom-data.json +32 -0
- package/dist/web-types.json +64 -0
- package/package.json +4 -4
- package/bundle/p-2eQDIPlF.js +0 -1
- package/bundle/p-C2w7ILj8.js +0 -1
- package/bundle/p-C47AKJPy.js +0 -1
- package/bundle/p-Cn5NdjPW.js +0 -1
- package/bundle/p-DJTpgiBy.js +0 -1
- package/bundle/p-DiEfz0o1.js +0 -1
- package/dist/db-ux/p-5706f20a.entry.js +0 -1
- package/dist/db-ux/p-90e9ec2d.entry.js +0 -1
- package/dist/db-ux/p-BihrW11j.js +0 -1
- package/dist/db-ux/p-fumiz06Y.js +0 -1
package/bundle/db-section.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d as i,t as n}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d as i,t as n}from"./p-BygObMH8.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-section");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-section")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d||""}${i?" "+i:""}`),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-section"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("section",{key:"1dc0a8e37a04cd3a4caba5a50b94ea876e80d462",class:i("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:"74e62afdc9b8922d1cbd57e801fff67969831ac9"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1],observer:[32]}]),a=d,o=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{a as DbSection,o as defineCustomElement}
|
package/bundle/db-select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as i,H as
|
|
1
|
+
import{y as i,H as t,A as s,h as e,f as h,p as a,u as l,z as d,k as o,j as n,F as c,o as r,d as v,t as u}from"./p-BygObMH8.js";import{l as b,f as p,g as m,h as w,i as f,k as y,a as g}from"./p-BdL-nI5y.js";import{c as k}from"./p-Bpe95kXk.js";import{d as _}from"./p-DY4zD5g8.js";const I=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=s(this,"click"),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._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,l;(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._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(l=this.validMessage)&&void 0!==l?l:y,h((()=>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===(t=this._ref)||void 0===t?void 0:t.validationMessage)||b,e()&&(this._voiceOverFallback=this._invalidMessage,h((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}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)}getOptionLabel(i){var t,s;return null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:""+s}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,t,s;const e=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:"select-"+l();this._id=e,this._messageId=e+p,this._validMessageId=e+m,this._invalidMessageId=e+w,this._placeholderId=e+f}setupObserver(i){if(!i)return;const t=i.closest("db-select");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-select")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let e=0;e<t.length;e++){const h=t.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?i.setAttribute(h.name,h.value):i.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))i.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const t=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(h.name,`${a||""}${e?" "+e:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(h.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(){if(this._id&&this.initialized){const i=this._id+p,t=this._id+f;this._messageId=i,this._validMessageId=this._id+m,this._invalidMessageId=this._id+w,this._placeholderId=t,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?t: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 t=this.abortController;t||(t=new AbortController,this.abortController=t),k(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-select"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||b})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,t;null===(i=this.abortController)||void 0===i||i.abort(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var i,t,s,e,h,l;return d("div",{key:"5273757e8379f6601c23f4b343812c233ddf86eb",class:v("db-select",this.className),"data-variant":this.variant,"data-hide-label":r(this.showLabel),"data-hide-asterisk":r(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon,"showIcon")},d("label",{key:"9c75ec7cd982b4b8d283ce9365f6642c363dae16",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:g),d("select",{key:"8b2e0dc14717704e45524cf7803163c6c640de32","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!==(s=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==s?s: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!==(e=this.ariaDescribedBy)&&void 0!==e?e:this._descByIds},"floating"===this.variant||this.placeholder?d("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(h=this.options)||void 0===h?void 0:h.length)?null===(l=this.options)||void 0===l?void 0:l.map((i=>{var t;return d(c,null,i.options?d("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(t=i.options)||void 0===t?void 0:t.map((i=>d("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):d("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):d("slot",null)),this.placeholder?d("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?d("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?d("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||y):null,d("db-infotext",{key:"5c7dbe0b5e75b5f4b704cf469f0806451e3d0c4a",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),d("span",{key:"932f5a52716c95629ed4eb12e3b2eee3ce1c559f","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],observer:[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}]}]),O=I,z=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(u(i))||customElements.define(u(i),I);break;case"db-infotext":customElements.get(u(i))||_()}}))};export{O as DbSelect,z as defineCustomElement}
|
package/bundle/db-stack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,j as a,d as i,t as n}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,j as a,d as i,t as n}from"./p-BygObMH8.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-stack");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-stack")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}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-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(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(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+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-stack"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"643002e053cb9d039f2e212c526586503c322ccc",class:i("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":a(this.wrap,"wrap")},e("slot",{key:"d38d30e92d276b6c31328ede2a68db8eb62fe05e"}))}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],observer:[32]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};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 o,o as n,j as c,d as r,t 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 o,o as n,j as c,d as r,t as v}from"./p-BygObMH8.js";import{l as u,f as w,g as b,h as f,k as m}from"./p-BdL-nI5y.js";import{a as g}from"./p-Bpe95kXk.js";import{d as p}from"./p-DY4zD5g8.js";const k=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,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,o;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!==(o=this.validMessage)&&void 0!==o?o:m,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}${b}`,this._invalidMessageId=`${a}${f}`}setupObserver(i){if(!i)return;const s=i.closest("db-switch");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-switch")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}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-")))e.value?i.setAttribute(e.name,e.value):i.removeAttribute(e.name),t.removeAttribute(e.name);else if(e&&["style"].includes(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||""}${a?" "+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.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s;return l("div",{key:"f9182aa08b0ac9a58767d5de15bada3b31850b1b",class:r("db-switch",this.className),"data-visual-aid":c(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":n(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":n(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"4f27226dbe245461f2fd9bd6913db00a5b207732",htmlFor:this._id},l("input",{key:"b0995a9fb3246105d0769c32b16342f76e74f40c",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:o(this.checked,"checked"),value:this.value,disabled:o(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:o(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:"d03438513412079f745be2671d54e4ddb87c042c"})),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:m):null,l("db-infotext",{key:"5f2f82215ffd9119b3f27f5d37c2349cecc28325",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"27278f4285a7aa297d4e985c2710eec5e4bb45ce","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],observer:[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}]}]),y=k,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),k);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{y 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-DdPms_08.js";const m=s,p=o;export{m as DbTabItem,p as defineCustomElement}
|
package/bundle/db-tab-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-BEB81OKc.js";const p=o,r=s;export{p as DbTabList,r as defineCustomElement}
|
package/bundle/db-tab-panel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-C7oh-1Gi.js";const p=o,r=s;export{p as DbTabPanel,r as defineCustomElement}
|
package/bundle/db-table-body.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as s,d as o}from"./p-sxMcNIKS.js";const p=s,r=o;export{p as DbTableBody,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as e,z as s,d as a,t as i}from"./p-
|
|
1
|
+
import{y as t,H as e,z as s,d as a,t as i}from"./p-BygObMH8.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-table-caption");e&&!this.observer&&(this.observer=new MutationObserver((e=>{e.some((t=>{var e;const s=t.target.attributes.getNamedItem(null!==(e=t.attributeName)&&void 0!==e?e:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table-caption")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}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 i=e.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),e?s.setAttribute("class","hydrated"):s.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-table-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("caption",{key:"8b005605ecfaac74617e69a5aa54d6a7a5ed3402",class:a("db-table-caption",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},s("slot",{key:"dd051ca2f1efe6ec7a47686758f00881997404da"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]),o=n,d=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{o as DbTableCaption,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-B_Ym2iQI.js";const m=o,p=s;export{m as DbTableDataCell,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as
|
|
1
|
+
import{D as o,d as r}from"./p-DmQrjhko.js";const s=o,m=r;export{s as DbTableFooter,m as defineCustomElement}
|
package/bundle/db-table-head.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as s,d as o}from"./p-Du6xs6Aw.js";const p=s,r=o;export{p as DbTableHead,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-_LLUUEFR.js";const p=o,r=s;export{p as DbTableHeaderCell,r as defineCustomElement}
|
package/bundle/db-table-row.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-BHbH4m9P.js";const m=o,p=s;export{m as DbTableRow,p as defineCustomElement}
|
package/bundle/db-table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as
|
|
1
|
+
import{y as t,H as s,f as a,z as e,F as i,j as o,d,t as l}from"./p-BygObMH8.js";import{d as n}from"./p-DURkJXL0.js";import{d as r}from"./p-sxMcNIKS.js";import{d as c}from"./p-B_Ym2iQI.js";import{d as h}from"./p-DmQrjhko.js";import{d as b}from"./p-Du6xs6Aw.js";import{d as u}from"./p-_LLUUEFR.js";import{d as m}from"./p-BHbH4m9P.js";const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0,this.observer=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}setupObserver(t){if(!t)return;const s=t.closest("db-table");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const a=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==a?void 0:a.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}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-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),a.removeAttribute(i.name);else if(i&&["style"].includes(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(),o=t.getAttribute("class");t.setAttribute(i.name,`${o||""}${e?" "+e:""}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&a((()=>{const t=this._ref;if(!t)return;const s=t.querySelectorAll("thead tr th");s.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,a)=>{const e=s[a];if(e){const s=Array.from(e.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var s;return null===(s=t.textContent)||void 0===s?void 0:s.trim()})).filter(Boolean).join(" ");s&&(t.dataset.header=s)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([s,a])=>{t["--db-table-column-size-"+s]=a})),this._style=t}else this._style=void 0}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-table"),this.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,a,l,n,r,c,h;return e("div",{key:"09812eb3029fe69f8d3facfcaf03f0077749614b",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},e("table",{key:"16a82398948bd4d2e42b0ed8c0acdaecaebbcfc2",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.captionPlain?e("caption",null,this.captionPlain):e("slot",{name:"caption"}),this._data?e(i,null,(null===(a=this._data)||void 0===a?void 0:a.header)?e("db-table-head",{rows:null===(l=this._data)||void 0===l?void 0:l.header}):null,(null===(n=this._data)||void 0===n?void 0:n.body)?e("db-table-body",{rows:null===(r=this._data)||void 0===r?void 0:r.body}):null,(null===(c=this._data)||void 0===c?void 0:c.footer)?e("db-table-footer",{rows:null===(h=this._data)||void 0===h?void 0:h.footer}):null):e("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],propOverrides:[16],captionPlain:[1,"caption-plain"],_data:[32],_style:[32],observer:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),v);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||r();break;case"db-table-data-cell":customElements.get(l(t))||c();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||u();break;case"db-table-row":customElements.get(l(t))||m()}}))};export{f as DbTable,p as defineCustomElement}
|
package/bundle/db-tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as
|
|
1
|
+
import{y as t,H as i,A as s,z as e,F as a,d as n,u as o,t as l}from"./p-BygObMH8.js";import{d as h}from"./p-BEk7DV7j.js";import{d as r}from"./p-DdPms_08.js";import{d as c}from"./p-BEB81OKc.js";import{d}from"./p-C7oh-1Gi.js";const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=s(this,"indexChange"),this.tabSelect=s(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0,this.observer=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1,this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;t&&(s*=-1),null===(i=this.scrollContainer)||void 0===i||i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i&&(i.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=i,this.evaluateScrollButtons(i),i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(i)}));t.observe(i),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item")),s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of i){const a=i.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),s.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 s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;if(t.stopPropagation(),t.target){const s=t.target.parentElement;if(s&&s.parentElement&&"LI"===(null===(i=s.parentElement)||void 0===i?void 0:i.nodeName)){const i=s.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const e=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}setupObserver(t){if(!t)return;const i=t.closest("db-tabs");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tabs")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}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-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(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||""}${e?" "+e:""}`),i?s.setAttribute("class","hydrated"):s.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||o()),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0,null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,s,o,l,h;return e("div",{key:"4ea02dd31be437dd343d13cac953658f1799762f",class:n("db-tabs",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,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(s=this.alignment)&&void 0!==s?s:"start","data-width":null!==(o=this.width)&&void 0!==o?o:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?e("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?e(a,null,e("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>e("db-tab-item",{key:this.name+"tab-item"+i,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,i)=>e("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?e("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,e("slot",{key:"c7b47c275a5784b8658e9c8b339445e083bc40d6"}))}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],observer:[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
|
|
1
|
+
import{D as o,d as s}from"./p-Dd85RhMq.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 i,H as
|
|
1
|
+
import{y as i,H as t,A as s,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-BygObMH8.js";import{l as u,f as m,g as b,h as f,k as w,b as g,r as p,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-Bpe95kXk.js";import{d as k}from"./p-DY4zD5g8.js";const z=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._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=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._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===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>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)}resetIds(){var i,t,s;const e=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:"textarea-"+d();this._id=e,this._messageId=e+m,this._validMessageId=e+b,this._invalidMessageId=e+f}setupObserver(i){if(!i)return;const t=i.closest("db-textarea");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-textarea")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let e=0;e<t.length;e++){const a=t.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.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)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+m;this._messageId=i,this._validMessageId=this._id+b,this._invalidMessageId=this._id+f,h(this.message,this.showMessage)&&(this._descByIds=i),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),x(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-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,t;null===(i=this.abortController)||void 0===i||i.abort(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var i,t,s,e,a,d;return l("div",{key:"cf9afaea12a18dbe916bf11e4cfeed5721833f96",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:"fd7444fe2963eabdb755d2bc9d0b664103813493",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("textarea",{key:"282e969c036a0cd079a77cd6373103084dd5e75b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(t=this.showResizer)||void 0===t||t),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,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:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(e=null!==(s=this.value)&&void 0!==s?s: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:"07e6585b6a89335004382796a9c06da736260028",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"6a8394ae7d62809422e54a810e75cf0628327223","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],observer:[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,O=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((i=>{switch(i){case"db-textarea":customElements.get(v(i))||customElements.define(v(i),z);break;case"db-infotext":customElements.get(v(i))||k()}}))};export{_ as DbTextarea,O as defineCustomElement}
|
package/bundle/db-tooltip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as
|
|
1
|
+
import{D as o,d as p}from"./p-LpyedXhR.js";const s=o,r=p;export{s as DbTooltip,r as defineCustomElement}
|
package/bundle/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as _}from"./p-
|
|
1
|
+
import{t as _}from"./p-BygObMH8.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-BygObMH8.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 M}from"./db-card.js";import{DbCheckbox as P}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 H}from"./db-custom-select-list.js";import{DbCustomSelectListItem as Y}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 pe}from"./db-switch.js";import{DbTabItem as fe}from"./db-tab-item.js";import{DbTabList as be}from"./db-tab-list.js";import{DbTabPanel as ge}from"./db-tab-panel.js";import{DbTable as ue}from"./db-table.js";import{DbTableBody as Ee}from"./db-table-body.js";import{DbTableCaption as _e}from"./db-table-caption.js";import{DbTableDataCell as je}from"./db-table-data-cell.js";import{DbTableFooter as Se}from"./db-table-footer.js";import{DbTableHead as Ae}from"./db-table-head.js";import{DbTableHeaderCell as De}from"./db-table-header-cell.js";import{DbTableRow as Le}from"./db-table-row.js";import{DbTabs as he}from"./db-tabs.js";import{DbTag as Te}from"./db-tag.js";import{DbTextarea as Ie}from"./db-textarea.js";import{DbTooltip as Fe}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-CTkfdjBp.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-C0q9XJSc.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-C_qYW0Kh.js";const xe=["divider","card"],Oe=["multiple","single"],ve=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],Ue=["outlined","brand","filled","ghost"],we=["button","reset","submit"],ye=["static","interactive"],Ce=["1","2","3"],Ne=["fixed","auto","full"],Re=["checkbox","radio"],ke=["amount","text","tag"],Me=["none","_"],Pe=["horizontal","vertical"],Be=["none","strong","weak","invisible"],Ge=["left","right","up","down"],Ve=["modal","inside"],Xe=["fixed","absolute"],ze=["16","20","24","32","48","64"],Ke=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],We=["adaptive","brand","inline"],He=["medium","small"],qe=["external","internal"],Ye=["docked","standalone","overlay"],Je=["block","inline"],Qe=["assertive","polite","off"],Ze=["auto","fixed"],$e=["hidden","auto"],et=["simple","divider"],tt=["row","column"],ot=["stretch","start","end","center"],at=["space-between","start","end","center"],rt=["row","col","rowgroup","colgroup"],st=["none","weak","strong"],it=["x-small","small","medium","large"],nt=["flat","zebra","spaced"],mt=["none","both","horizontal","vertical"],lt=["table","list"],dt=["none","both","horizontal","vertical"],ct=["auto","1fr","min-content","max-content"],pt=["scrollbar","arrows"],ft=["auto","manually"],bt=["static","removable"],gt=["none","both","horizontal","vertical"],ut=["hard","soft","off"],Et=["description","label"],_t=["adaptive","neutral","critical","informational","warning","successful"],jt=["medium","small","large","none"],St=["medium","small","large","none"],At=["left","right","left-start","left-end","right-start","right-end"],Dt=["top","bottom","top-start","top-end","bottom-start","bottom-end"],Lt=[...At,...Dt],ht=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Tt=["horizontal","vertical"],It=["full","auto"],Ft=["full","medium","large","small"],xt=["none","slow","fast"],Ot=["auto","fixed"],vt=["small","medium"],Ut=["weak","strong"],wt=["invalid","valid","no-validation"],yt=["fixed","content"],Ct=["above","floating"],Nt=["leading","trailing"],Rt=["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"],kt=["_self","_blank","_parent","_top"],Mt=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Pt=["start","center","end"],Bt=e=>{"undefined"!=typeof customElements&&[L,I,O,U,R,M,P,V,X,K,W,H,Y,J,Q,Z,$,ee,te,oe,ae,re,se,ie,ne,me,le,de,ce,pe,fe,be,ge,ue,Ee,_e,je,Se,Ae,De,Le,he,Te,Ie,Fe].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,e)}))};export{Oe as AccordionBehaviorList,xe as AccordionVariantList,Pt as AlignmentList,Rt as AutoCompleteList,ve as BadgePlacementList,we as ButtonTypeList,Ue as ButtonVariantList,ye as CardBehaviorList,Ce as CardElevationLevelList,Ne as CustomSelectDropdownWidthList,Re as CustomSelectListItemTypeList,ct as DBTableColumnsSizeList,mt as DBTableDividerList,rt as DBTableHeaderCellScopeList,lt as DBTableMobileVariantList,it as DBTableRowSizeList,st as DBTableRowSubHeaderEmphasisList,dt as DBTableStickyHeaderList,nt as DBTableVariantList,Me as DividerMarginList,Pe as DividerVariantList,Be as DrawerBackdropList,Ge as DrawerDirectionList,Xe as DrawerPositionList,Ve as DrawerVariantList,Ut as EmphasisList,yt as FieldSizingList,ht as GapSpacingList,ze as IconWeightList,Ke as InputTypeList,Nt as LabelVariantHorizontalList,Ct as LabelVariantList,qe as LinkContentList,Mt as LinkReferrerPolicyList,He as LinkSizeList,kt as LinkTargetList,We as LinkVariantList,St as MarginList,Ft as MaxWidthList,Qe as NotificationAriaLiveList,Je as NotificationLinkVariantList,Ye as NotificationVariantList,Tt as OrientationList,$e as PageDocumentOverflowList,Ze as PageVariantList,At as PlacementHorizontalList,Lt as PlacementList,Dt as PlacementVerticalList,xt as PopoverDelayList,Ot as PopoverWidthList,ke as SelectedTypeList,_t as SemanticList,vt as SizeList,jt as SpacingList,ot as StackAlignmentList,tt as StackDirectionList,at as StackJustifyContentList,et as StackVariantList,pt as TabsBehaviorList,ft as TabsInitialSelectedModeList,bt as TagBehaviorList,gt as TextareaResizeList,ut as TextareaWrapList,Et as TooltipVariantList,wt as ValidationList,It as WidthList,Bt as defineCustomElements}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d as i,t as d}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d as i,t as d}from"./p-BygObMH8.js";const a=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-tab-list");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-list")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const d=s.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),e.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(d.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"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"29168c82cf6e0c5838d9afc3c3b475c7b5d513b1",class:i("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:"fee5dc804f98c62e86d56d9c941b103448ad6908",role:"tablist"},e("slot",{key:"694a0a4de4623152cf277138dd96f0558063115f"})))}get rootElement(){return this}},[260,"db-tab-list",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]);function n(){"undefined"!=typeof customElements&&["db-tab-list"].forEach((t=>{"db-tab-list"===t&&(customElements.get(d(t))||customElements.define(d(t),a))}))}export{a as D,n as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as i,A as s,z as n,j as o,k as a,d as e,t as d}from"./p-
|
|
1
|
+
import{y as t,H as i,A as s,z as n,j as o,k as a,d as e,t as d}from"./p-BygObMH8.js";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.click=s(this,"click"),this.observer=void 0}getButtonType(){return this.type?this.type:this.click||this.commandfor?"button":"submit"}setupObserver(t){if(!t)return;const i=t.closest("db-button");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-button")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let n=0;n<i.length;n++){const o=i.item(n);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?t.setAttribute(o.name,o.value):t.removeAttribute(o.name),s.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const i=o.value.includes("hydrated"),n=o.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(o.name,`${a||""}${n?` ${n}`:""}`),i?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-button"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,s;return n("button",{key:"bd382d51378136c65704c74fdad02b9b8433890f",class:e("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:a(this.disabled,"disabled"),"data-icon":null!==(s=this.iconLeading)&&void 0!==s?s:this.icon,"data-show-icon":o(this.showIconLeading,"showIconLeading")||o(this.showIcon,"showIcon"),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":o(this.showIconTrailing,"showIconTrailing"),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-wrap":o(this.wrap,"wrap"),"data-no-text":o(this.noText,"noText"),name:this.name,form:this.form,value:this.value,command:this.command,commandfor:this.commandfor},this.text?this.text:null,n("slot",{key:"76611f6bae15865842bcfa1c1b2666f905633b1f"}))}get rootElement(){return this}},[260,"db-button",{type:[1],commandfor:[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],command:[1],text:[1],observer:[32]}]);function c(){"undefined"!=typeof customElements&&["db-button"].forEach((t=>{"db-button"===t&&(customElements.get(d(t))||customElements.define(d(t),h))}))}export{h as D,c as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as l,H as i,z as d,u as o,j as e,d as t,t as n}from"./p-BygObMH8.js";import{d as a}from"./p-DURkJXL0.js";import{d as s}from"./p-B_Ym2iQI.js";import{d as v}from"./p-_LLUUEFR.js";const r=l(class extends i{constructor(l){super(),!1!==l&&this.__registerHost()}getHeaderCell(l){if(l.headerCell)return l}enableAttributePassing(l,i){const d=null==l?void 0:l.closest(i);if(l&&d){const i=d.attributes;for(let o=0;o<i.length;o++){const e=i.item(o);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))e.value?l.setAttribute(e.name,e.value):l.removeAttribute(e.name),d.removeAttribute(e.name);else if(e&&["style"].includes(e.name))l.setAttribute(e.name,e.value),d.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),o=e.value.replace("hydrated","").trim(),t=l.getAttribute("class");l.setAttribute(e.name,`${t||""}${o?` ${o}`:""}`),i?d.setAttribute("class","hydrated"):d.removeAttribute(e.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const l=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);l&&l.remove()}this.enableAttributePassing(this._ref,"db-table-row")}render(){var l,i,n;return d("tr",{key:"61420ea211f0de3ad1d587cb1854dbdeb84ea6de",class:t("db-table-row",this.className),ref:l=>{this._ref=l},id:null!==(l=this.id)&&void 0!==l?l:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-interactive":e(this.interactive),"data-sub-header-emphasis":this.subHeaderEmphasis},this.cells?null===(n=this.cells)||void 0===n?void 0:n.map(((l,i)=>{var e,t,n,a,s,v,r,u,c,b,h,m,p,f,w,y,g,k,E,$,j,x,z,A,L,S,D,H,I,P,U,B,O,R,_,C,F,J,M,N,Q,T,X,Y,q,G,K;return l.headerCell?d("db-table-header-cell",{class:null!==(e=l.className)&&void 0!==e?e:l.class,key:`${null!==(n=null!==(t=l.id)&&void 0!==t?t:this.id)&&void 0!==n?n:o()}-table-row-header-cell-${i}`,id:l.id,abbr:null===(a=this.getHeaderCell(l))||void 0===a?void 0:a.abbr,scope:null===(s=this.getHeaderCell(l))||void 0===s?void 0:s.scope,noText:null===(v=this.getHeaderCell(l))||void 0===v?void 0:v.noText,horizontalAlignment:l.horizontalAlignment,verticalAlignment:l.verticalAlignment,headers:l.headers,colSpan:l.colSpan,colspan:l.colspan,rowSpan:l.rowSpan,rowspan:l.rowspan},l.link?d("db-link",{class:null!==(u=null===(r=l.link)||void 0===r?void 0:r.className)&&void 0!==u?u:null===(c=l.link)||void 0===c?void 0:c.class,content:null===(b=l.link)||void 0===b?void 0:b.content,size:null===(h=l.link)||void 0===h?void 0:h.size,variant:null===(m=l.link)||void 0===m?void 0:m.variant,id:null===(p=l.link)||void 0===p?void 0:p.id,autofocus:null===(f=l.link)||void 0===f?void 0:f.autofocus,disabled:null===(w=l.link)||void 0===w?void 0:w.disabled,href:null===(y=l.link)||void 0===y?void 0:y.href,hreflang:null===(g=l.link)||void 0===g?void 0:g.hreflang,target:null===(k=l.link)||void 0===k?void 0:k.target,rel:null===(E=l.link)||void 0===E?void 0:E.rel,referrerPolicy:null===($=l.link)||void 0===$?void 0:$.referrerPolicy,role:null===(j=l.link)||void 0===j?void 0:j.role,showIcon:null===(x=l.link)||void 0===x?void 0:x.showIcon,text:null===(z=l.link)||void 0===z?void 0:z.text,wrap:null===(A=l.link)||void 0===A?void 0:A.wrap},null===(L=l.link)||void 0===L?void 0:L.children):l.content):d("db-table-data-cell",{class:null!==(S=l.className)&&void 0!==S?S:l.class,key:`${null!==(H=null!==(D=l.id)&&void 0!==D?D:this.id)&&void 0!==H?H:o()}-table-row-data-cell-${i}`,id:l.id,horizontalAlignment:l.horizontalAlignment,verticalAlignment:l.verticalAlignment,headers:l.headers,colSpan:l.colSpan,colspan:l.colspan,rowSpan:l.rowSpan,rowspan:l.rowspan},l.link?d("db-link",{class:null!==(P=null===(I=l.link)||void 0===I?void 0:I.className)&&void 0!==P?P:null===(U=l.link)||void 0===U?void 0:U.class,content:null===(B=l.link)||void 0===B?void 0:B.content,size:null===(O=l.link)||void 0===O?void 0:O.size,variant:null===(R=l.link)||void 0===R?void 0:R.variant,id:null===(_=l.link)||void 0===_?void 0:_.id,autofocus:null===(C=l.link)||void 0===C?void 0:C.autofocus,disabled:null===(F=l.link)||void 0===F?void 0:F.disabled,href:null===(J=l.link)||void 0===J?void 0:J.href,hreflang:null===(M=l.link)||void 0===M?void 0:M.hreflang,target:null===(N=l.link)||void 0===N?void 0:N.target,rel:null===(Q=l.link)||void 0===Q?void 0:Q.rel,referrerPolicy:null===(T=l.link)||void 0===T?void 0:T.referrerPolicy,role:null===(X=l.link)||void 0===X?void 0:X.role,showIcon:null===(Y=l.link)||void 0===Y?void 0:Y.showIcon,text:null===(q=l.link)||void 0===q?void 0:q.text,wrap:null===(G=l.link)||void 0===G?void 0:G.wrap},null===(K=l.link)||void 0===K?void 0:K.children):l.content)})):d("slot",null))}get rootElement(){return this}},[260,"db-table-row",{id:[1],propOverrides:[16],className:[1,"classname"],interactive:[8],subHeaderEmphasis:[1,"sub-header-emphasis"],cells:[16]}]);function u(){"undefined"!=typeof customElements&&["db-table-row","db-link","db-table-data-cell","db-table-header-cell"].forEach((l=>{switch(l){case"db-table-row":customElements.get(n(l))||customElements.define(n(l),r);break;case"db-link":customElements.get(n(l))||a();break;case"db-table-data-cell":customElements.get(n(l))||s();break;case"db-table-header-cell":customElements.get(n(l))||v()}}))}export{r as D,u as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as t,H as a,z as e,d as s,t as n,l}from"./p-BygObMH8.js";const d=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,a){const e=null==t?void 0:t.closest(a);if(t&&e){const a=e.attributes;for(let s=0;s<a.length;s++){const n=a.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const a=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${s?` ${s}`:""}`),a?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-table-data-cell")}render(){var t,a;return e("td",{key:"bc848b50d8a6b5e7baa2ad8b77fc8a2980aa4973",class:s("db-table-data-cell",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(a=this.propOverrides)||void 0===a?void 0:a.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,colSpan:l(this.colSpan,this.colspan),rowSpan:l(this.rowSpan,this.rowspan),headers:this.headers},e("slot",{key:"3042815d7974ea5928f3882bd6bd1951dd4f0aa9"}))}get rootElement(){return this}},[260,"db-table-data-cell",{id:[1],propOverrides:[16],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1]}]);function i(){"undefined"!=typeof customElements&&["db-table-data-cell"].forEach((t=>{"db-table-data-cell"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}export{d as D,i as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as i,H as t,A as s,h as e,f as a,p as h,i as d,u as n,z as l,k as o,n as c,l as r,m as u,e as v,j as m,o as f,d as b,t as
|
|
1
|
+
import{y as i,H as t,A as s,h as e,f as a,p as h,i as d,u as n,z as l,k as o,n as c,l as r,m as u,e as v,j as m,o as f,d as b,t as g}from"./p-BygObMH8.js";import{l as p,f as w,g as y,h as k,j as I,k as x,b as z,a as L}from"./p-BdL-nI5y.js";import{c as M}from"./p-Bpe95kXk.js";import{d as _}from"./p-DY4zD5g8.js";const O=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,this.observer=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,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:x,a((()=>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)||p,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>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 e=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-${n()}`;this._id=e,this._messageId=e+w,this._validMessageId=e+y,this._invalidMessageId=e+k,this._dataListId=e+I}setupObserver(i){if(!i)return;const t=i.closest("db-input");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-input")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let e=0;e<t.length;e++){const a=t.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?` ${e}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.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)||p}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+I,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),M(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||p})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,t;null===(i=this.abortController)||void 0===i||i.abort(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var i,t,s,e,a,d,n,g;return l("div",{key:"bfe18e425b08ee3c315f9f59eb230d5ba437407a",class:b("db-input",this.className),"data-variant":this.variant,"data-hide-label":f(this.showLabel),"data-show-icon":m(this.showIconLeading,"showIconLeading")||m(this.showIcon,"showIcon"),"data-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":f(this.showRequiredAsterisk),"data-show-icon-trailing":m(this.showIconTrailing,"showIconTrailing")},l("label",{key:"0356f8c8e0cf5fe3d4da7857f75a6298fe39486b",htmlFor:this._id},null!==(t=this.label)&&void 0!==t?t:L),l("input",{key:"4bd3c6406df28e017ceb6f080b06e7b4ccf2df75","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!==(s=this.placeholder)&&void 0!==s?s:z,disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),step:u(this.step),value:null!==(a=null!==(e=this.value)&&void 0!==e?e:this._value)&&void 0!==a?a:"",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")||void 0,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!==(d=this.ariaDescribedBy)&&void 0!==d?d:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(n=this.type)&&void 0!==n?n:"")&&v()?"textbox":void 0}),this.dataList?l("datalist",{id:this._dataListId},null===(g=this.getDataList())||void 0===g?void 0:g.map((i=>l("option",{key:this._dataListId+"-option-"+i.value,value:i.value},i.label)))):null,l("slot",{key:"7071e137ef966ea7ba8c0242c540ee73163e8023"}),h(this.message,this.showMessage)?l("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||x):null,l("db-infotext",{key:"221bc7dceacad6b0c4eb9cfd5747a8db71ff512d",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),l("span",{key:"2e376dfcacc4be02eaff503d25e219fcf78ff7a8","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],observer:[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 F(){"undefined"!=typeof customElements&&["db-input","db-infotext"].forEach((i=>{switch(i){case"db-input":customElements.get(g(i))||customElements.define(g(i),O);break;case"db-infotext":customElements.get(g(i))||_()}}))}export{O as D,F as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,H as s,z as e,d as i,t as c}from"./p-
|
|
1
|
+
import{y as t,H as s,z as e,d as i,t as c}from"./p-BygObMH8.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-list");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-list")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const c=s.item(i);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))c.value?t.setAttribute(c.name,c.value):t.removeAttribute(c.name),e.removeAttribute(c.name);else if(c&&["style"].includes(c.name))t.setAttribute(c.name,c.value),e.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),i=c.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(c.name,`${l||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(c.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-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"753c3016f6c9a1ed9fce2fa8c7ae00b9ff73383d",class:i("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,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:"6fce279c5ddf56f52c574e98d60335cd689d7e2c"},e("slot",{key:"667b6c5979cee0f28941fc4e62ba67d9b5878373"})))}get rootElement(){return this}},[260,"db-custom-select-list",{multiple:[4],label:[1],id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-custom-select-list"].forEach((t=>{"db-custom-select-list"===t&&(customElements.get(c(t))||customElements.define(c(t),l))}))}export{l as D,d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as t}from"./p-BygObMH8.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,A as i,w as e,k as a,f as d,z as o,j as n,d as
|
|
1
|
+
import{y as t,H as s,A as i,w as e,k as a,f as d,z as o,j as n,d as r,t as h}from"./p-BygObMH8.js";import{s as c}from"./p-BdL-nI5y.js";import{d as l}from"./p-BEk7DV7j.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=i(this,"close"),this.initialized=!1,this.backdropPointerDown=!1,this.observer=void 0}isNotModal(){return"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant}handleBackdropPointerDown(t){var s;this.backdropPointerDown="DIALOG"===(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.nodeName)}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.backdropPointerDown&&this.close&&this.close.emit(t),this.backdropPointerDown=!1))}handleDialogOpen(){if(this._ref){const t=a(this.open,"open");t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),this.isNotModal()?this._ref.show():(this._ref.setAttribute("closedby","any"),this._ref.showModal()),d((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),d((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}setupObserver(t){if(!t)return;const s=t.closest("db-drawer");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const i=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==i?void 0:i.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-drawer")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}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-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),i.removeAttribute(a.name);else if(a&&["style"].includes(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||""}${e?` ${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.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,i;return o("dialog",{key:"c03126193778f601b7ff3aeeeff508c8920e67a7",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),onMouseDown:t=>this.handleBackdropPointerDown(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},o("article",{key:"64661349d858bf5be872d664b44bc6fa829014e6",class:r("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":n(this.rounded,"rounded")},o("header",{key:"b758a538b1337573090305aadcf3bc3befef1bf3",class:"db-drawer-header"},o("div",{key:"235f2be7afc9c968b9270178c2720a5a50436123",class:"db-drawer-header-text"},o("slot",{key:"26787a5e103d2d34785ce1eccd0ff73b6733fce8",name:"drawerHeader"})),o("db-button",{key:"1d22b406c4e235e91bc9bfc3265a0aaa9c7f8e8c",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:c)),o("div",{key:"0e338b2e11c8582ba59595f34d8fc4911db7025e",class:"db-drawer-content"},o("slot",{key:"c761758ada4d1602878a58de6003e01cf5b5d075"}))))}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],backdropPointerDown:[32],observer:[32]},void 0,{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}]);function u(){"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,u as d}
|