@db-ux/wc-core-components 4.4.1 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +3 -6
- package/dist/cjs/db-accordion.cjs.entry.js +4 -12
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +3 -6
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +3 -4
- package/dist/cjs/db-navigation.cjs.entry.js +3 -6
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +3 -6
- package/dist/cjs/db-tabs.cjs.entry.js +4 -6
- package/dist/cjs/db-textarea.cjs.entry.js +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +22 -7
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{index-Bi4QN5oK.js → index-CEqZnn9s.js} +85 -58
- package/dist/cjs/index.cjs.js +19 -19
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +26 -35
- package/dist/collection/components/accordion-item/accordion-item.js +16 -20
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +26 -30
- package/dist/collection/components/navigation/navigation.js +3 -13
- package/dist/collection/components/navigation-item/navigation-item.js +3 -5
- package/dist/collection/components/tab-list/tab-list.js +3 -13
- package/dist/collection/components/tabs/tabs.js +29 -32
- package/dist/collection/components/tooltip/tooltip.js +21 -6
- package/dist/custom-elements.json +120 -145
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-1ae2420e.entry.js → p-07bf3657.entry.js} +1 -1
- package/dist/db-ux/{p-5e8b2167.entry.js → p-0a89cbcd.entry.js} +1 -1
- package/dist/db-ux/{p-77840cb4.entry.js → p-15539d9d.entry.js} +1 -1
- package/dist/db-ux/p-41cb4673.entry.js +1 -0
- package/dist/db-ux/{p-19c9285e.entry.js → p-460073dd.entry.js} +1 -1
- package/dist/db-ux/{p-93506fdb.entry.js → p-4a9b9909.entry.js} +1 -1
- package/dist/db-ux/{p-ced0df76.entry.js → p-4ec09cf1.entry.js} +1 -1
- package/dist/db-ux/{p-09f188aa.entry.js → p-57205dfd.entry.js} +1 -1
- package/dist/db-ux/p-5775bf7a.entry.js +1 -0
- package/dist/db-ux/{p-d2fd9838.entry.js → p-5bcde39a.entry.js} +1 -1
- package/dist/db-ux/p-6341aaa9.entry.js +1 -0
- package/dist/db-ux/p-64573104.entry.js +1 -0
- package/dist/db-ux/{p-349276ca.entry.js → p-6b63156d.entry.js} +1 -1
- package/dist/db-ux/{p-ba4084e8.entry.js → p-70822a27.entry.js} +1 -1
- package/dist/db-ux/p-710a430d.entry.js +1 -0
- package/dist/db-ux/{p-5549d866.entry.js → p-72d712b0.entry.js} +1 -1
- package/dist/db-ux/{p-cede20c2.entry.js → p-7b7f4d03.entry.js} +1 -1
- package/dist/db-ux/p-7bd4c573.entry.js +1 -0
- package/dist/db-ux/{p-ec270b7d.entry.js → p-819cf20a.entry.js} +1 -1
- package/dist/db-ux/p-87fdbcfb.entry.js +1 -0
- package/dist/db-ux/{p-90380da4.entry.js → p-9051e26c.entry.js} +1 -1
- package/dist/db-ux/{p-e50ff484.entry.js → p-934a708c.entry.js} +1 -1
- package/dist/db-ux/{p-d1974cb0.entry.js → p-9ffa5c48.entry.js} +1 -1
- package/dist/db-ux/p-BrThqi62.js +2 -0
- package/dist/db-ux/p-a9af70eb.entry.js +1 -0
- package/dist/db-ux/p-aa8383a3.entry.js +1 -0
- package/dist/db-ux/p-ba1f69bd.entry.js +1 -0
- package/dist/db-ux/p-d273b998.entry.js +1 -0
- package/dist/db-ux/p-da4ee6ee.entry.js +1 -0
- package/dist/db-ux/{p-32fcf516.entry.js → p-e584e927.entry.js} +1 -1
- package/dist/db-ux/{p-6811aace.entry.js → p-fe185f98.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +4 -7
- package/dist/esm/db-accordion.entry.js +4 -12
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +4 -7
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +4 -5
- package/dist/esm/db-navigation.entry.js +4 -7
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +1 -1
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +4 -7
- package/dist/esm/db-tabs.entry.js +4 -6
- package/dist/esm/db-textarea.entry.js +1 -1
- package/dist/esm/db-tooltip.entry.js +22 -7
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{index-05XnVETo.js → index-BrThqi62.js} +85 -58
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +1 -2
- package/dist/types/components/accordion/model.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -2
- package/dist/types/components/accordion-item/model.d.ts +2 -2
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -2
- package/dist/types/components/custom-select-list-item/model.d.ts +2 -2
- package/dist/types/components/navigation/model.d.ts +2 -2
- package/dist/types/components/navigation/navigation.d.ts +0 -1
- package/dist/types/components/navigation-item/model.d.ts +0 -1
- package/dist/types/components/navigation-item/navigation-item.d.ts +0 -1
- package/dist/types/components/tab-list/model.d.ts +2 -2
- package/dist/types/components/tab-list/tab-list.d.ts +0 -1
- package/dist/types/components/tabs/model.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +1 -2
- package/dist/types/components/tooltip/tooltip.d.ts +2 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/stencil-public-runtime.d.ts +0 -4
- package/dist/vscode.html-custom-data.json +20 -20
- package/dist/web-types.json +43 -50
- package/package.json +4 -4
- package/dist/db-ux/p-05XnVETo.js +0 -2
- package/dist/db-ux/p-08146a65.entry.js +0 -1
- package/dist/db-ux/p-146365b4.entry.js +0 -1
- package/dist/db-ux/p-1975c375.entry.js +0 -1
- package/dist/db-ux/p-1e76ee94.entry.js +0 -1
- package/dist/db-ux/p-2c0bd1d8.entry.js +0 -1
- package/dist/db-ux/p-47b821f7.entry.js +0 -1
- package/dist/db-ux/p-53aed67f.entry.js +0 -1
- package/dist/db-ux/p-5e8d052f.entry.js +0 -1
- package/dist/db-ux/p-8a0ca84b.entry.js +0 -1
- package/dist/db-ux/p-8d37aa19.entry.js +0 -1
- package/dist/db-ux/p-981d05c0.entry.js +0 -1
- package/dist/db-ux/p-d65ecc59.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i}from"./p-BrThqi62.js";import{d as s,g as e,c as a}from"./p-C4x0SOcx.js";import{D as o}from"./p-RHqkTr-_.js";import{b as h}from"./p-G-TursYV.js";const n=class{constructor(i){t(this,i),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&s((()=>{var i;h(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new o).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new o).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}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&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))&&(t.setAttribute(a.name,a.value),s.removeAttribute(a.name)),a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=Boolean(this.isExpanded).toString())}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-popover"),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t;return i("div",{key:"4d902919abc8bf5b55a617a31424f35582e029c1",class:a("db-popover",this.className),ref:t=>{this._ref=t},id:this.id},i("slot",{key:"166a0b766f6f0c003e6d7a250fd466267117f59a",name:"trigger"}),i("article",{key:"4fa535dc081c76eb21671e0abfb7d090b38e6e5c",class:"db-popover-content","data-spacing":this.spacing,"data-gap":e(this.gap),"data-animation":e(null===(t=this.animation)||void 0===t||t),"data-open":e(this.open),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},i("slot",{key:"ef47687b496cfe4d6cce11ef5d282a2ec3a88004"})))}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}};export{n as db_popover}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-BrThqi62.js";import{g as a,c as i}from"./p-C4x0SOcx.js";const o=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const o=s.item(i);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))&&(t.setAttribute(o.name,o.value),a.removeAttribute(o.name)),o&&"class"===o.name){const s=o.value.includes("hydrated"),i=o.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(o.name,`${d?`${d} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(o.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-infotext")}render(){var t;return s("span",{key:"c126d11d979284931006fa76b2a6a49e396f394c",class:i("db-infotext",this.className),ref:t=>{this._ref=t},id:this.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-show-icon-leading":a(null===(t=this.showIcon)||void 0===t||t)},this.text?this.text:s("slot",null))}};export{o as db_infotext}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as e,h as d}from"./p-
|
|
1
|
+
import{r as a,c as e,h as d}from"./p-BrThqi62.js";import{p as c}from"./p-BdL-nI5y.js";import{a as t,e as s,c as i}from"./p-C4x0SOcx.js";import{i as b}from"./p-sP2NlPcu.js";import"./p-G-TursYV.js";const n=class{constructor(d){a(this,d),this.toggle=e(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1}handleToggle(a){a&&a.stopPropagation&&a.stopPropagation();const e=!s(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(e)}handleNavigationItemClick(a){b(a)&&this.handleToggle()}enableAttributePassing(a,e){const d=null==a?void 0:a.closest(e);if(a&&d){const e=d.attributes;for(let c=0;c<e.length;c++){const t=e.item(c);if(t&&(t.name.startsWith("data-")||t.name.startsWith("aria-"))&&(a.setAttribute(t.name,t.value),d.removeAttribute(t.name)),t&&"class"===t.name){const e=t.value.includes("hydrated"),c=t.value.replace("hydrated","").trim(),s=a.getAttribute("class");a.setAttribute(t.name,`${s?`${s} `:""}${c}`),e?d.setAttribute("class","hydrated"):d.removeAttribute(t.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(t(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-header"),this.initialized=!0,this.watch0Fn()}render(){var a;return d("header",{key:"f9850f5a6f59bee2ed97db4baea343e07aaff91a",class:i("db-header",this.className),ref:a=>{this._ref=a},id:this.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("db-drawer",{key:"32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:s(this.drawerOpen),onClose:()=>this.handleToggle()},d("div",{key:"a42c28439d07e97a3842efe4fa1c143c23691b5f",class:"db-header-drawer-navigation"},d("div",{key:"141165e04574db312d51b0b4c376c53ddace243e",class:"db-header-navigation",onClick:a=>this.handleNavigationItemClick(a)},d("slot",{key:"2208e0677b1f15da56fd6be230523559fcb5f1da"})),d("div",{key:"fb980500cdb2f6f3ce2fce2489c48ac27ebd256a",class:"db-header-meta-navigation"},d("slot",{key:"7eea7189a1e82821fc3f0bd600bda5a040382e88",name:"metaNavigation"}))),d("div",{key:"a492419586593d43edbada69ad136ad832902e15",class:"db-header-secondary-action"},d("slot",{key:"90ed75a19c230c3a2af94b8e0b397c8712f9a0df",name:"secondaryAction"}))),d("div",{key:"1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4",class:"db-header-meta-navigation"},d("slot",{key:"d92c5a30a0131225f2b7b1428c5121fed241d8a7",name:"metaNavigation"})),d("div",{key:"f65c8e6b2b997c281046f20e1ac7c89d8b5697f6",class:"db-header-navigation-bar"},d("div",{key:"be1e1017417595bbb4ff845b650f5edef1f4fd49",class:"db-header-brand-container"},d("slot",{key:"5552b137967ae4659887ad67514fd0078ced1473",name:"brand"})),d("div",{key:"682e11b41f5131feb17cdf1e175b9bbcf8399740",class:"db-header-navigation-container"},d("div",{key:"29f5a7afa6d8c014f6e574d72198289970e5324e",class:"db-header-navigation"},d("slot",{key:"f03956cf3368d3ec0dbaab3b3091c276eaf03a92"})),d("div",{key:"8a81b9ee537f84e14c9d41acf323552d6f239748",class:"db-header-primary-action"},d("slot",{key:"78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6",name:"primaryAction"}))),d("div",{key:"e1e913c181df2f73cc9fe4cda17f505a26b1ad04",class:"db-header-action-container"},d("div",{key:"92d7c9c0e50f9aa86e15c18a2ac7dddabc241358",class:"db-header-burger-menu-container"},d("db-button",{key:"775ca507ba24b19e411e529e9ad67fcdfa6f3dea",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(a=this.burgerMenuLabel)&&void 0!==a?a:c)),d("div",{key:"7cd5a16e27c72e3e0635056df8bcb7f45461c9fb",class:"db-header-secondary-action"},d("slot",{key:"09669c165311f8dc95961c64900d5ab36281700a",name:"secondaryAction"})))))}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}};export{n as db_header}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { u as uuid, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
3
|
|
|
5
4
|
const DBAccordionItem = class {
|
|
6
5
|
constructor(hostRef) {
|
|
7
6
|
registerInstance(this, hostRef);
|
|
8
7
|
this.toggle = createEvent(this, "toggle");
|
|
9
|
-
this._id = DEFAULT_ID;
|
|
10
8
|
this._open = false;
|
|
11
9
|
this._name = undefined;
|
|
12
10
|
this.initialized = false;
|
|
@@ -78,7 +76,6 @@ const DBAccordionItem = class {
|
|
|
78
76
|
}
|
|
79
77
|
componentDidLoad() {
|
|
80
78
|
this.enableAttributePassing(this._ref, "db-accordion-item");
|
|
81
|
-
this._id = this.id || "accordion-item-" + uuid();
|
|
82
79
|
if (this.defaultOpen) {
|
|
83
80
|
this._open = this.defaultOpen;
|
|
84
81
|
}
|
|
@@ -87,9 +84,9 @@ const DBAccordionItem = class {
|
|
|
87
84
|
this.watch1Fn();
|
|
88
85
|
}
|
|
89
86
|
render() {
|
|
90
|
-
return (h("li", { key: '
|
|
87
|
+
return (h("li", { key: 'c2a0b702c0e173c96208dca96194f3f36ce5e417', class: cls("db-accordion-item", this.className), id: this.id }, h("details", { key: '7d396568c8cc585f5f05c24857168afbc3d639f7', "aria-disabled": getBooleanAsString(this.disabled), ref: (el) => {
|
|
91
88
|
this._ref = el;
|
|
92
|
-
}, name: this._name, open: this._open }, h("summary", { key: '
|
|
89
|
+
}, name: this._name, open: this._open }, h("summary", { key: 'b4ef438974813de3761dc6f3a59add84bfe63b4c', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? h("slot", { name: "headline" }) : null), h("div", { key: '9087f0e04a68ec016e80b793f442ab02fd4316a9' }, this.text ? this.text : h("slot", null)))));
|
|
93
90
|
}
|
|
94
91
|
static get watchers() { return {
|
|
95
92
|
"_ref": [{
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { D as DEFAULT_ID } from './constants-BdL-nI5y.js';
|
|
1
|
+
import { r as registerInstance, h } from './index-BrThqi62.js';
|
|
3
2
|
import { u as uuid, c as cls } from './index-C4x0SOcx.js';
|
|
4
3
|
|
|
5
4
|
const DBAccordion = class {
|
|
6
5
|
constructor(hostRef) {
|
|
7
6
|
registerInstance(this, hostRef);
|
|
8
|
-
this._id = DEFAULT_ID;
|
|
9
7
|
this._name = "";
|
|
10
8
|
this.initialized = false;
|
|
11
9
|
this._initOpenIndexDone = false;
|
|
@@ -65,9 +63,7 @@ const DBAccordion = class {
|
|
|
65
63
|
}
|
|
66
64
|
}
|
|
67
65
|
else {
|
|
68
|
-
|
|
69
|
-
this._name = this._id;
|
|
70
|
-
}
|
|
66
|
+
this._name = `accordion-${uuid()}`;
|
|
71
67
|
}
|
|
72
68
|
}
|
|
73
69
|
else {
|
|
@@ -120,7 +116,6 @@ const DBAccordion = class {
|
|
|
120
116
|
}
|
|
121
117
|
componentDidLoad() {
|
|
122
118
|
this.enableAttributePassing(this._ref, "db-accordion");
|
|
123
|
-
this._id = this.id || "accordion-" + uuid();
|
|
124
119
|
this.initialized = true;
|
|
125
120
|
this._initOpenIndexDone = true;
|
|
126
121
|
this.watch0Fn();
|
|
@@ -129,9 +124,9 @@ const DBAccordion = class {
|
|
|
129
124
|
}
|
|
130
125
|
render() {
|
|
131
126
|
var _a;
|
|
132
|
-
return (h("ul", { key: '
|
|
127
|
+
return (h("ul", { key: '8b685b2a23ec00359a75ae143121c023d86a5eb5', class: cls("db-accordion", this.className), ref: (el) => {
|
|
133
128
|
this._ref = el;
|
|
134
|
-
}, id: this.
|
|
129
|
+
}, id: this.id, "data-variant": this.variant }, !this.items ? h("slot", null) : null, this.items
|
|
135
130
|
? (_a = this.convertItems()) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h("db-accordion-item", { key: `accordion-item-${index}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
|
|
136
131
|
: null));
|
|
137
132
|
}
|
|
@@ -145,9 +140,6 @@ const DBAccordion = class {
|
|
|
145
140
|
"behavior": [{
|
|
146
141
|
"watch0": 0
|
|
147
142
|
}],
|
|
148
|
-
"_id": [{
|
|
149
|
-
"watch0": 0
|
|
150
|
-
}],
|
|
151
143
|
"_ref": [{
|
|
152
144
|
"watch1": 0
|
|
153
145
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBButton = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, e as getBoolean, u as uuid, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { a as addCheckedResetEventListener } from './form-components-BLsiOrPI.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent } from './index-
|
|
2
|
-
import { c as cls, e as getBoolean,
|
|
1
|
+
import { r as registerInstance, h, c as createEvent } from './index-BrThqi62.js';
|
|
2
|
+
import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-C4x0SOcx.js';
|
|
3
3
|
import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, a as DEFAULT_LABEL, m as DEFAULT_REMOVE } from './constants-BdL-nI5y.js';
|
|
4
4
|
import { c as addValueResetEventListener } from './form-components-BLsiOrPI.js';
|
|
5
5
|
|
|
@@ -100,7 +100,6 @@ const DBCustomSelectListItem = class {
|
|
|
100
100
|
constructor(hostRef) {
|
|
101
101
|
registerInstance(this, hostRef);
|
|
102
102
|
this.change = createEvent(this, "change");
|
|
103
|
-
this._id = undefined;
|
|
104
103
|
this.hasDivider = false;
|
|
105
104
|
}
|
|
106
105
|
handleChange(event) {
|
|
@@ -154,18 +153,16 @@ const DBCustomSelectListItem = class {
|
|
|
154
153
|
this.watch0Fn();
|
|
155
154
|
}
|
|
156
155
|
componentDidLoad() {
|
|
157
|
-
var _a;
|
|
158
156
|
this.enableAttributePassing(this._ref, "db-custom-select-list-item");
|
|
159
|
-
this._id = (_a = this.id) !== null && _a !== void 0 ? _a : `custom-select-list-item-${uuid()}`;
|
|
160
157
|
this.watch0Fn();
|
|
161
158
|
}
|
|
162
159
|
render() {
|
|
163
|
-
return (h("li", { key: '
|
|
160
|
+
return (h("li", { key: '1155e389f33c440e04b5e7ca71732d108925e2cd', class: cls("db-custom-select-list-item", this.className, {
|
|
164
161
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
165
162
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
166
163
|
}), ref: (el) => {
|
|
167
164
|
this._ref = el;
|
|
168
|
-
}, id: this.
|
|
165
|
+
}, id: this.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
169
166
|
}
|
|
170
167
|
static get watchers() { return {
|
|
171
168
|
"isGroupTitle": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BrThqi62.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, d as DEFAULT_LABEL_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid, g as getBooleanAsString, e as getBoolean, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { D as DocumentClickListener } from './document-click-listener-CmYoXpGE.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { o as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { p as DEFAULT_BURGER_MENU } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { a as addAttributeToChildren, e as getBoolean, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { i as isEventTargetNavigationItem } from './navigation--UdC9CzO.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BrThqi62.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
|
-
import {
|
|
3
|
+
import { d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { N as NavigationItemSafeTriangle } from './navigation--UdC9CzO.js';
|
|
5
5
|
import './floating-components-G-TursYV.js';
|
|
6
6
|
|
|
@@ -13,7 +13,6 @@ const DBNavigationItem = class {
|
|
|
13
13
|
this.hasSubNavigation = true;
|
|
14
14
|
this.isSubNavigationExpanded = false;
|
|
15
15
|
this.autoClose = false;
|
|
16
|
-
this.subNavigationId = "sub-navigation-" + uuid();
|
|
17
16
|
this.navigationItemSafeTriangle = undefined;
|
|
18
17
|
}
|
|
19
18
|
handleNavigationItemClick(event) {
|
|
@@ -106,9 +105,9 @@ const DBNavigationItem = class {
|
|
|
106
105
|
}
|
|
107
106
|
render() {
|
|
108
107
|
var _a;
|
|
109
|
-
return (h("li", { key: '
|
|
108
|
+
return (h("li", { key: 'd9127a5065dc034116325e95f39c9d2d9844722e', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
110
109
|
this._ref = el;
|
|
111
|
-
}, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose,
|
|
110
|
+
}, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
112
111
|
}
|
|
113
112
|
static get watchers() { return {
|
|
114
113
|
"subNavigationExpanded": [{
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { u as uuid, c as cls } from './index-C4x0SOcx.js';
|
|
1
|
+
import { r as registerInstance, h } from './index-BrThqi62.js';
|
|
2
|
+
import { c as cls } from './index-C4x0SOcx.js';
|
|
4
3
|
|
|
5
4
|
const DBNavigation = class {
|
|
6
5
|
constructor(hostRef) {
|
|
7
6
|
registerInstance(this, hostRef);
|
|
8
|
-
this._id = DEFAULT_ID;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
11
9
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -41,12 +39,11 @@ const DBNavigation = class {
|
|
|
41
39
|
}
|
|
42
40
|
componentDidLoad() {
|
|
43
41
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
44
|
-
this._id = this.id || "navigation-" + uuid();
|
|
45
42
|
}
|
|
46
43
|
render() {
|
|
47
|
-
return (h("nav", { key: '
|
|
44
|
+
return (h("nav", { key: 'de11910f2ac8e29cb5ee23aaf0e0d38cf9b5d4e8', class: cls("db-navigation", this.className), ref: (el) => {
|
|
48
45
|
this._ref = el;
|
|
49
|
-
}, id: this.
|
|
46
|
+
}, id: this.id }, h("menu", { key: '414afdaa58874f959a2ed49aefdaa672894806c3' }, h("slot", { key: '703407fdf69a8dfd133779c864a7016972f1a3e5' }))));
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BrThqi62.js';
|
|
2
2
|
import { d as delay, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
|
|
4
4
|
import { b as handleFixedPopover } from './floating-components-G-TursYV.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-C4x0SOcx.js';
|
|
3
3
|
import { b as addResetEventListener } from './form-components-BLsiOrPI.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BrThqi62.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { c as addValueResetEventListener } from './form-components-BLsiOrPI.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, l as getHideProp, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { a as addCheckedResetEventListener } from './form-components-BLsiOrPI.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { g as getBooleanAsString, e as getBoolean, c as cls
|
|
3
|
-
import { D as DEFAULT_ID } from './constants-BdL-nI5y.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
|
+
import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-C4x0SOcx.js';
|
|
4
3
|
|
|
5
4
|
const DBTabItem = class {
|
|
6
5
|
constructor(hostRef) {
|
|
@@ -132,7 +131,6 @@ const DBTabItem = class {
|
|
|
132
131
|
const DBTabList = class {
|
|
133
132
|
constructor(hostRef) {
|
|
134
133
|
registerInstance(this, hostRef);
|
|
135
|
-
this._id = DEFAULT_ID;
|
|
136
134
|
}
|
|
137
135
|
/**
|
|
138
136
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -168,12 +166,11 @@ const DBTabList = class {
|
|
|
168
166
|
}
|
|
169
167
|
componentDidLoad() {
|
|
170
168
|
this.enableAttributePassing(this._ref, "db-tab-list");
|
|
171
|
-
this._id = this.id || "tab-list-" + uuid();
|
|
172
169
|
}
|
|
173
170
|
render() {
|
|
174
|
-
return (h("div", { key: '
|
|
171
|
+
return (h("div", { key: 'a2d1cf85f398ee76b560e9aa1c7f84871d752432', class: cls("db-tab-list", this.className), ref: (el) => {
|
|
175
172
|
this._ref = el;
|
|
176
|
-
}, id: this.
|
|
173
|
+
}, id: this.id }, h("ul", { key: '03498821ff3ff623e16313782c67384e7708eecf', role: "tablist" }, h("slot", { key: '10eba579352100e449568b7ec38e4cc73efb0463' }))));
|
|
177
174
|
}
|
|
178
175
|
};
|
|
179
176
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BrThqi62.js';
|
|
2
2
|
import { u as uuid, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBTabs = class {
|
|
@@ -6,7 +6,6 @@ const DBTabs = class {
|
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
7
|
this.indexChange = createEvent(this, "indexChange");
|
|
8
8
|
this.tabSelect = createEvent(this, "tabSelect");
|
|
9
|
-
this._id = "tabs-" + uuid();
|
|
10
9
|
this._name = "";
|
|
11
10
|
this.initialized = false;
|
|
12
11
|
this.showScrollLeft = false;
|
|
@@ -192,7 +191,6 @@ const DBTabs = class {
|
|
|
192
191
|
}
|
|
193
192
|
componentDidLoad() {
|
|
194
193
|
this.enableAttributePassing(this._ref, "db-tabs");
|
|
195
|
-
this._id = this.id || this._id;
|
|
196
194
|
this._name = `tabs-${this.name || uuid()}`;
|
|
197
195
|
this.initialized = true;
|
|
198
196
|
this.watch0Fn();
|
|
@@ -204,10 +202,10 @@ const DBTabs = class {
|
|
|
204
202
|
}
|
|
205
203
|
render() {
|
|
206
204
|
var _a, _b, _c, _d;
|
|
207
|
-
return (h("div", { key: '
|
|
205
|
+
return (h("div", { key: '0ba78eeed24756c5a55acef3080c4d66db43139b', class: cls("db-tabs", this.className), ref: (el) => {
|
|
208
206
|
this._ref = el;
|
|
209
|
-
}, id: this.
|
|
210
|
-
_d.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '
|
|
207
|
+
}, id: this.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_a = this.alignment) !== null && _a !== void 0 ? _a : "start", "data-width": (_b = this.width) !== null && _b !== void 0 ? _b : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_c = this.convertTabs()) === null || _c === void 0 ? void 0 : _c.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_d = this.convertTabs()) === null || _d === void 0 ? void 0 :
|
|
208
|
+
_d.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '30e17d6cbc5899d97c5f1ffc73e4c09ccbff1dc1' })));
|
|
211
209
|
}
|
|
212
210
|
static get watchers() { return {
|
|
213
211
|
"_ref": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, r as DEFAULT_ROWS, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, f as getNumber, e as getBoolean, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { c as addValueResetEventListener } from './form-components-BLsiOrPI.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BrThqi62.js';
|
|
2
2
|
import { D as DEFAULT_ID } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { d as delay, u as uuid, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
|
|
@@ -97,6 +97,14 @@ const DBTooltip = class {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
watch0Fn() {
|
|
100
|
+
if (this.id) {
|
|
101
|
+
this._id = this.id;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
watch0() {
|
|
105
|
+
this.watch0Fn();
|
|
106
|
+
}
|
|
107
|
+
watch1Fn() {
|
|
100
108
|
if (this._ref && this.initialized && this._id) {
|
|
101
109
|
const parent = this.getParent();
|
|
102
110
|
if (parent) {
|
|
@@ -126,27 +134,34 @@ const DBTooltip = class {
|
|
|
126
134
|
this.initialized = false;
|
|
127
135
|
}
|
|
128
136
|
}
|
|
129
|
-
|
|
130
|
-
this.
|
|
137
|
+
watch1() {
|
|
138
|
+
this.watch1Fn();
|
|
131
139
|
}
|
|
132
140
|
componentDidLoad() {
|
|
133
141
|
this.enableAttributePassing(this._ref, "db-tooltip");
|
|
134
142
|
this._id = this.id || "tooltip-" + uuid();
|
|
135
143
|
this.initialized = true;
|
|
136
144
|
this.watch0Fn();
|
|
145
|
+
this.watch1Fn();
|
|
137
146
|
}
|
|
138
147
|
render() {
|
|
139
148
|
var _a, _b;
|
|
140
|
-
return (h("i", { key: '
|
|
149
|
+
return (h("i", { key: '51ba2dd002f118a398f57615af7ce30b2e1e93d9', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
|
|
141
150
|
this._ref = el;
|
|
142
|
-
}, id: this._id, "data-emphasis": this.emphasis, "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, h("slot", { key: '
|
|
151
|
+
}, id: this._id, "data-emphasis": this.emphasis, "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, h("slot", { key: '0edebe953574e4949fc3ead41f283d79a5bf946f' })));
|
|
143
152
|
}
|
|
144
153
|
static get watchers() { return {
|
|
145
|
-
"
|
|
154
|
+
"id": [{
|
|
146
155
|
"watch0": 0
|
|
147
156
|
}],
|
|
157
|
+
"_ref": [{
|
|
158
|
+
"watch1": 0
|
|
159
|
+
}],
|
|
148
160
|
"initialized": [{
|
|
149
|
-
"
|
|
161
|
+
"watch1": 0
|
|
162
|
+
}],
|
|
163
|
+
"_id": [{
|
|
164
|
+
"watch1": 0
|
|
150
165
|
}]
|
|
151
166
|
}; }
|
|
152
167
|
};
|