@db-ux/wc-core-components 4.4.0 → 4.4.1-floating-components-066d296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +2 -2
- 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 +3 -3
- 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 -3
- 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 +5 -5
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +6 -5
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
- package/dist/cjs/{index-DjRSp6-m.js → index-Bi4QN5oK.js} +19 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{navigation-DauGE-qj.js → navigation-BztJmEHf.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/popover/popover.js +3 -3
- package/dist/collection/components/tooltip/tooltip.js +4 -3
- package/dist/collection/utils/floating-components.js +65 -15
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-05XnVETo.js +2 -0
- package/dist/db-ux/{p-d704426f.entry.js → p-09f188aa.entry.js} +1 -1
- package/dist/db-ux/{p-9b6d8f95.entry.js → p-146365b4.entry.js} +1 -1
- package/dist/db-ux/{p-a053966f.entry.js → p-1975c375.entry.js} +1 -1
- package/dist/db-ux/{p-ea2290ac.entry.js → p-19c9285e.entry.js} +1 -1
- package/dist/db-ux/{p-6195c74d.entry.js → p-1ae2420e.entry.js} +1 -1
- package/dist/db-ux/p-1e76ee94.entry.js +1 -0
- package/dist/db-ux/p-2c0bd1d8.entry.js +1 -0
- package/dist/db-ux/{p-2618f875.entry.js → p-32fcf516.entry.js} +1 -1
- package/dist/db-ux/{p-b97c0f63.entry.js → p-349276ca.entry.js} +1 -1
- package/dist/db-ux/{p-b67906ed.entry.js → p-36f93663.entry.js} +1 -1
- package/dist/db-ux/{p-23ea8d2f.entry.js → p-47b821f7.entry.js} +1 -1
- package/dist/db-ux/{p-010fa365.entry.js → p-5549d866.entry.js} +1 -1
- package/dist/db-ux/{p-6f685ea9.entry.js → p-56984c5d.entry.js} +1 -1
- package/dist/db-ux/{p-13ed143a.entry.js → p-5b87a881.entry.js} +1 -1
- package/dist/db-ux/p-5e8b2167.entry.js +1 -0
- package/dist/db-ux/{p-7c570038.entry.js → p-5e8d052f.entry.js} +1 -1
- package/dist/db-ux/{p-915cd9e8.entry.js → p-77840cb4.entry.js} +1 -1
- package/dist/db-ux/{p-23227dd9.entry.js → p-8a0ca84b.entry.js} +1 -1
- package/dist/db-ux/{p-6e094b8f.entry.js → p-8d37aa19.entry.js} +1 -1
- package/dist/db-ux/{p-11005d83.entry.js → p-8fb51989.entry.js} +1 -1
- package/dist/db-ux/p-90380da4.entry.js +1 -0
- package/dist/db-ux/{p-f4f48665.entry.js → p-93506fdb.entry.js} +1 -1
- package/dist/db-ux/p-981d05c0.entry.js +1 -0
- package/dist/db-ux/p-DfYL98sI.js +1 -0
- package/dist/db-ux/{p-81f1cca3.entry.js → p-ba4084e8.entry.js} +1 -1
- package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
- package/dist/db-ux/{p-2e960c38.entry.js → p-ced0df76.entry.js} +1 -1
- package/dist/db-ux/{p-88fbecb8.entry.js → p-cede20c2.entry.js} +1 -1
- package/dist/db-ux/p-d1974cb0.entry.js +1 -0
- package/dist/db-ux/{p-284bb676.entry.js → p-d2fd9838.entry.js} +1 -1
- package/dist/db-ux/{p-64274383.entry.js → p-ec270b7d.entry.js} +1 -1
- package/dist/db-ux/{p-1cb46c2f.entry.js → p-f80474a6.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 +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +5 -5
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +1 -1
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +1 -1
- package/dist/esm/db-tooltip.entry.js +6 -5
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
- package/dist/esm/{index-aO-2B9yO.js → index-05XnVETo.js} +19 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
- package/dist/types/components.d.ts +582 -72
- package/dist/types/stencil-public-runtime.d.ts +24 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/db-ux/p-18d640f5.entry.js +0 -1
- package/dist/db-ux/p-2decd9e2.entry.js +0 -1
- package/dist/db-ux/p-567804e7.entry.js +0 -1
- package/dist/db-ux/p-71eda55f.entry.js +0 -1
- package/dist/db-ux/p-G-TursYV.js +0 -1
- package/dist/db-ux/p-aO-2B9yO.js +0 -2
- package/dist/db-ux/p-be4edb12.entry.js +0 -1
- package/dist/db-ux/p-d925eaa3.entry.js +0 -1
|
@@ -125,8 +125,27 @@ export interface EventOptions {
|
|
|
125
125
|
*/
|
|
126
126
|
composed?: boolean;
|
|
127
127
|
}
|
|
128
|
+
export interface AttachInternalsOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Initial custom states to set on the ElementInternals.states CustomStateSet.
|
|
131
|
+
* Each key is the state name and the value is the initial boolean state.
|
|
132
|
+
*
|
|
133
|
+
* These states can be targeted with the CSS `:state()` pseudo-class.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```tsx
|
|
137
|
+
* @AttachInternals({ states: { open: true, active: false } })
|
|
138
|
+
* internals: ElementInternals;
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
|
|
142
|
+
*/
|
|
143
|
+
states?: {
|
|
144
|
+
[stateName: string]: boolean;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
128
147
|
export interface AttachInternalsDecorator {
|
|
129
|
-
(): PropertyDecorator;
|
|
148
|
+
(opts?: AttachInternalsOptions): PropertyDecorator;
|
|
130
149
|
}
|
|
131
150
|
export interface ListenDecorator {
|
|
132
151
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
@@ -1419,6 +1438,8 @@ export declare namespace JSXBase {
|
|
|
1419
1438
|
results?: number;
|
|
1420
1439
|
security?: string;
|
|
1421
1440
|
unselectable?: boolean;
|
|
1441
|
+
[key: `attr:${string}`]: string;
|
|
1442
|
+
[key: `prop:${string}`]: any;
|
|
1422
1443
|
}
|
|
1423
1444
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1424
1445
|
class?: string | {
|
|
@@ -1680,6 +1701,8 @@ export declare namespace JSXBase {
|
|
|
1680
1701
|
yChannelSelector?: string;
|
|
1681
1702
|
z?: number | string;
|
|
1682
1703
|
zoomAndPan?: string;
|
|
1704
|
+
[key: `attr:${string}`]: string;
|
|
1705
|
+
[key: `prop:${string}`]: any;
|
|
1683
1706
|
}
|
|
1684
1707
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1685
1708
|
interface ToggleEvent extends Event {
|
package/dist/web-types.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/wc-core-components",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1-floating-components-066d296",
|
|
4
4
|
"description": "Stencil components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@custom-elements-manifest/analyzer": "0.11.0",
|
|
38
|
-
"@stencil/core": "4.
|
|
38
|
+
"@stencil/core": "4.42.0",
|
|
39
39
|
"cem-plugin-expanded-types": "1.4.0",
|
|
40
40
|
"custom-element-jet-brains-integration": "1.7.0",
|
|
41
41
|
"custom-element-vs-code-integration": "1.5.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"web-types": "./dist/web-types.json",
|
|
49
49
|
"customElements": "dist/custom-elements.json",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@db-ux/core-components": "4.4.
|
|
52
|
-
"@db-ux/core-foundations": "4.4.
|
|
51
|
+
"@db-ux/core-components": "4.4.1-floating-components-066d296",
|
|
52
|
+
"@db-ux/core-foundations": "4.4.1-floating-components-066d296"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-aO-2B9yO.js";import{c as a}from"./p-C4x0SOcx.js";const i=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 d=s.item(i);if(d&&(d.name.startsWith("data-")||d.name.startsWith("aria-"))&&(t.setAttribute(d.name,d.value),a.removeAttribute(d.name)),d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),r=t.getAttribute("class");t.setAttribute(d.name,`${r?`${r} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-divider")}render(){return s("div",{key:"0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16",class:a("db-divider",this.className),ref:t=>{this._ref=t},id:this.id,"data-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}};export{i as db_divider}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-aO-2B9yO.js";import{c as a}from"./p-C4x0SOcx.js";const e=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const a=null==s?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let e=0;e<t.length;e++){const c=t.item(e);if(c&&(c.name.startsWith("data-")||c.name.startsWith("aria-"))&&(s.setAttribute(c.name,c.value),a.removeAttribute(c.name)),c&&"class"===c.name){const t=c.value.includes("hydrated"),e=c.value.replace("hydrated","").trim(),o=s.getAttribute("class");s.setAttribute(c.name,`${o?`${o} `:""}${e}`),t?a.setAttribute("class","hydrated"):a.removeAttribute(c.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-form-field")}render(){return t("summary",{key:"22a05256e65e56208335b9a5c840e75988a57182",class:a("db-custom-select-form-field",this.className),ref:s=>{this._ref=s},id:this.id},t("slot",{key:"3c6c62df9bf0d2a73e37a9ad69d3a46daa672984"}))}};export{e as db_custom_select_form_field}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as s}from"./p-aO-2B9yO.js";import{D as t}from"./p-BdL-nI5y.js";import{u as i,c}from"./p-C4x0SOcx.js";const e=class{constructor(s){a(this,s),this._id=t}enableAttributePassing(a,s){const t=null==a?void 0:a.closest(s);if(a&&t){const s=t.attributes;for(let i=0;i<s.length;i++){const c=s.item(i);if(c&&(c.name.startsWith("data-")||c.name.startsWith("aria-"))&&(a.setAttribute(c.name,c.value),t.removeAttribute(c.name)),c&&"class"===c.name){const s=c.value.includes("hydrated"),i=c.value.replace("hydrated","").trim(),e=a.getAttribute("class");a.setAttribute(c.name,`${e?`${e} `:""}${i}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(c.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation"),this._id=this.id||"navigation-"+i()}render(){return s("nav",{key:"ed27159179b89985cbf0711be7dc494ca820cf75",class:c("db-navigation",this.className),ref:a=>{this._ref=a},id:this._id},s("menu",{key:"6aa518535f6c802abec874a174d6e8d028572269"},s("slot",{key:"2307ee2093cf4bcec3c8f4b8d5e8e88a8d78cf08"})))}};export{e as db_navigation}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-aO-2B9yO.js";import{q as a}from"./p-BdL-nI5y.js";import{g as i,c as d}from"./p-C4x0SOcx.js";const o=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const a=null==s?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const d=t.item(i);if(d&&(d.name.startsWith("data-")||d.name.startsWith("aria-"))&&(s.setAttribute(d.name,d.value),a.removeAttribute(d.name)),d&&"class"===d.name){const t=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),o=s.getAttribute("class");s.setAttribute(d.name,`${o?`${o} `:""}${i}`),t?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-brand")}render(){var s;return t("div",{key:"9014cc8dfb318b456ae6115abe7217a1d1cca73b",class:d("db-brand",this.className),ref:s=>{this._ref=s},"data-icon":this.hideLogo?"none":null!==(s=this.icon)&&void 0!==s?s:a,"data-show-icon":i(this.showIcon),id:this.id},this.text?this.text:t("slot",null))}};export{o as db_brand}
|
package/dist/db-ux/p-G-TursYV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=t=>{const{outTop:o,outBottom:e,outLeft:i,outRight:l}=(t=>{var o;const{top:e,bottom:i,left:l,right:n}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:d}=window;let h=e<0,p=i>r,c=l<0,s=n>d;const a=t.dataset.outsideVy,f=t.dataset.outsideVx,g=null===(o=null==t?void 0:t.parentElement)||void 0===o?void 0:o.getBoundingClientRect();return g&&(a&&("top"===t.dataset.outsideVy?h=g.top-(i-g.bottom)<0:p=g.bottom+(g.top-e)>r),f&&("left"===t.dataset.outsideVx?c=g.left-(n-g.right)<0:s=g.right+(g.left-l)>d)),{outTop:h,outBottom:p,outLeft:c,outRight:s}})(t);let n={};return o||e?(n={vy:o?"top":"bottom"},t.dataset.outsideVy=n.vy):delete t.dataset.outsideVy,i||l?(n=Object.assign(Object.assign({},n),{vx:l?"right":"left"}),t.dataset.outsideVx=n.vx):delete t.dataset.outsideVx,n},o=(t,o,i)=>{if("9999"===getComputedStyle(t).zIndex)return;const{top:l,bottom:n,childHeight:r,childWidth:d,width:h,right:p,left:c,correctedPlacement:s}=e(t,o,i);"full"===t.dataset.width&&(t.style.inlineSize=`${h}px`),"top"===s||"bottom"===s||"top-start"===s||"bottom-start"===s?t.style.insetInlineStart=`${c}px`:"top-end"!==s&&"bottom-end"!==s||(t.style.insetInlineStart=p-d+"px"),(null==s?void 0:s.startsWith("top"))?t.style.insetBlockStart=l-r+"px":(null==s?void 0:s.startsWith("bottom"))&&(t.style.insetBlockStart=`${n}px`),t.style.position="fixed"},e=(t,o,e)=>{if(!t||!o)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:e,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const i=t.getBoundingClientRect(),{top:l,height:n,bottom:r,right:d,left:h,width:p}=o.getBoundingClientRect(),{innerHeight:c,innerWidth:s}=window;let a=i.height,f=i.width;"bottom"!==e&&"top"!==e||(f/=2),"left"!==e&&"right"!==e||(a/=2);const g=r+a>c,b=l-a<0,m=h-f<0,$=d+f>s;let u=e;return e.startsWith("bottom")?g?(u=null==e?void 0:e.replace("bottom","top"),m&&$?u="top":m?u="top-start":$&&(u="top-end")):m&&$?u="bottom":m?u="bottom-start":$&&(u="bottom-end"):e.startsWith("top")?b?(u=null==e?void 0:e.replace("top","bottom"),m&&$?u="bottom":m?u="bottom-start":$&&(u="bottom-end")):m&&$?u="top":m?u="top-start":$&&(u="top-end"):e.startsWith("left")?m?(u=null==e?void 0:e.replace("left","right"),g&&b?u="right":g?u="right-end":b&&(u="right-start")):g&&b?u="left":g?u="left-end":b&&(u="left-start"):u.startsWith("right")&&($?(u=null==e?void 0:e.replace("right","left"),g&&b?u="left":g?u="left-end":b&&(u="left-start")):g&&b?u="right":g?u="right-end":b&&(u="right-start")),{top:l,bottom:r,right:d,height:n,width:p,left:h,childHeight:i.height,childWidth:i.width,correctedPlacement:u,innerWidth:s,innerHeight:c}},i=(t,o,i)=>{var l;const n=null!==(l=getComputedStyle(t).getPropertyValue("--db-popover-distance"))&&void 0!==l?l:"0px",{top:r,height:d,width:h,childHeight:p,childWidth:c,right:s,left:a,bottom:f,correctedPlacement:g,innerWidth:b,innerHeight:m}=e(t,o,i);if(c>h&&(g.startsWith("bottom")||g.startsWith("top"))){const o=h/2/c*100;g.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-inline-start",`${o}%`):g.endsWith("end")&&t.style.setProperty("--db-tooltip-arrow-inline-start",100-o+"%")}if(p>d&&(g.startsWith("left")||g.startsWith("bottom"))){const o=d/2/p*100;g.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-block-start",`${o}%`):g.endsWith("end")&&t.style.setProperty("--db-tooltip-arrow-block-start",100-o+"%")}if("right"===g||"left"===g)t.style.insetBlockStart=`${r+d/2}px`;else if("right-start"===g||"left-start"===g){const o=r+p;t.style.insetBlockStart=`${r}px`,t.style.insetBlockEnd=`${o>m?m:o}px`}else if("right-end"===g||"left-end"===g){const o=f-p;t.style.insetBlockStart=`${o<0?0:o}px`,t.style.insetBlockEnd=`${f}px`}else if("top"===g||"bottom"===g)t.style.insetInlineStart=`${a+h/2}px`;else if("top-start"===g||"bottom-start"===g){const o=a+c;t.style.insetInlineStart=`${a}px`,t.style.insetInlineEnd=`${o>b?b:o}px`}else if("top-end"===g||"bottom-end"===g){const o=a-c;t.style.insetInlineStart=s-c+"px",t.style.insetInlineEnd=`${o<0?0:o}px`}if(null==g?void 0:g.startsWith("right")){const o=s+c;t.style.insetInlineStart=`calc(${s}px + ${n})`,t.style.insetInlineEnd=`calc(${o>b?b:o}px + ${n})`}else if(null==g?void 0:g.startsWith("left")){const o=a-c;t.style.insetInlineStart=`calc(${o<0?0:o}px - ${n})`,t.style.insetInlineEnd=`calc(${s}px - ${n})`}else if(null==g?void 0:g.startsWith("top")){const o=r-p;t.style.insetBlockStart=`calc(${o<0?0:o}px - ${n})`,t.style.insetBlockEnd=`calc(${f}px - ${n})`}else if(null==g?void 0:g.startsWith("bottom")){const o=f+p;t.style.insetBlockStart=`calc(${f}px + ${n})`,t.style.insetBlockEnd=`calc(${o>m?m:o}px + ${n})`}t.style.position="fixed",t.dataset.correctedPlacement=g};export{o as a,i as b,e as g,t as h}
|
package/dist/db-ux/p-aO-2B9yO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=function(t,n){for(;t;){const e=Object.getOwnPropertyDescriptor(t,n);if(null==e?void 0:e.get)return e;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[e]=n.l.has(e)?n.l.get(e):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},e=(n,e)=>{e&&(n.__stencil__getHostRef=()=>e,e.i=n,512&e.o.u&&t(n,e))},o=(t,n)=>n in t,l=(t,n)=>(0,console.error)(t,n),s=new Map,i="undefined"!=typeof window?window:{},r={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},c=t=>Promise.resolve(t),u=!1,f=[],a=[],d=(t,n)=>e=>{t.push(e),u||(u=!0,n&&4&r.u?v(h):r.raf(h))},p=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){l(t)}t.length=0},h=()=>{p(f),p(a),(u=f.length>0)&&r.raf(h)},v=t=>c().then(t),m=d(a,!0),b=t=>{const n=w(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&y(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!$(t,g(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&w(t,"childNodes").length&&b(t)}};function y(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||g(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...y(o.childNodes,n,e)]}return s}var $=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)g(l)!==n||!e&&l["s-sr"]||o.push(l);return o},j=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,g=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function w(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var O,k,N=new WeakMap,S=t=>"object"==(t=typeof t)||"function"===t,E=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&r?c[c.length-1].h+=o:c.push(i?C(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,R);const f=C(t,null);return f.v=n,c.length>0&&(f.m=c),f.$=l,f.j=s,f},C=(t,n)=>({u:0,O:t,h:null!=n?n:null,k:null,m:null,v:null,$:null,j:null}),M={},R={forEach:(t,n)=>t.map(T).forEach(n),map:(t,n)=>t.map(T).map(n).map(x)},T=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.h}),x=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),E(t.vtag,n,...t.vchildren||[])}const n=C(t.vtag,t.vtext);return n.v=t.vattrs,n.m=t.vchildren,n.$=t.vkey,n.j=t.vname,n},F=(t,n)=>null==t||S(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,L=(t,e)=>{const o=(t=>{var e;return null==(e=n(t))?void 0:e.$hostElement$})(t);return{emit:t=>A(o,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},A=(t,n,e)=>{const o=r.ce(n,e);return t.dispatchEvent(o),o},P=(t,n,e,l,s,c)=>{if(e===l)return;let u=o(t,n),f=n.toLowerCase();if("class"===n){const n=t.classList,o=_(e);let s=_(l);n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if("key"===n);else if("ref"===n)l&&it(l,t);else if(u||"o"!==n[0]||"n"!==n[1]){const o=S(l);if(u||o&&null!==l)try{if(t.tagName.includes("-"))t[n]!==l&&(t[n]=l);else{const o=null==l?"":l;"list"===n?u=!1:null!=e&&t[n]==o||("function"==typeof t.__lookupSetter__(n)?t[n]=o:t.setAttribute(n,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!u||4&c||s)&&!o&&1===t.nodeType&&t.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):o(i,f)?f.slice(2):f[2]+n.slice(3),e||l){const o=n.endsWith(U);n=n.replace(W,""),e&&r.rel(t,n,e,o),l&&r.ael(t,n,l,o)}},D=/\s/,_=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),U="Capture",W=RegExp(U+"$"),B=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.v||{},s=n.v||{};for(const t of V(Object.keys(l)))t in s||P(o,t,l[t],void 0,e,n.u);for(const t of V(Object.keys(s)))P(o,t,l[t],s[t],e,n.u)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var q=!1,z=!1,H=!1,Y=!1,G=[],I=[],J=(t,n,e)=>{var o;const l=n.m[e];let s,r,c,u=0;if(q||(H=!0,"slot"===l.O&&(l.u|=l.m?2:1)),null!=l.h)s=l.k=i.document.createTextNode(l.h);else if(1&l.u)s=l.k=i.document.createTextNode(""),B(null,l,Y);else{if(!i.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=i.document.createElement(!q&&2&l.u?"slot-fb":l.O),B(null,l,Y),l.m){const n="template"===l.O?s.content:s;for(u=0;u<l.m.length;++u)r=J(t,l,u),r&&n.appendChild(r)}}return s["s-hn"]=k,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=O,s["s-sn"]=l.j||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===g(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),c=t&&t.m&&t.m[e],c&&c.O===l.O&&t.k&&K(t.k)),s},K=t=>{r.u|=1;const n=t.closest(k.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(rt(n,t,null!=e?e:null),t["s-sh"]=void 0,H=!0)}r.u&=-2},Q=(t,n)=>{r.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===k&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==k&&o["s-ol"]&&(rt(nt(o).parentNode,o,nt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,H=!0),n&&Q(o,n)}r.u&=-2},X=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.O&&(r=r.content);l<=s;++l)o[l]&&(i=J(null,e,l),i&&(o[l].k=i,rt(r,i,nt(n))))},Z=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;st(n),t&&(z=!0,t["s-ol"]?t["s-ol"].remove():Q(t,!0),t.remove())}}},tt=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.j===n.j:e?(e&&!t.$&&n.$&&(t.$=n.$),!0):t.$===n.$),nt=t=>t&&t["s-ol"]||t,et=(t,n,e=!1)=>{const o=n.k=t.k,l=t.m,s=n.m,i=n.h;let r;null==i?("slot"!==n.O||q||t.j!==n.j&&(n.k["s-sn"]=n.j||"",K(n.k.parentElement)),B(t,n,Y),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],p=n[a],h=o.length-1,v=o[0],m=o[h];const b="template"===e.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=n[++r];else if(null==p)p=n[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(tt(d,v,l))et(d,v,l),d=n[++r],v=o[++c];else if(tt(p,m,l))et(p,m,l),p=n[--a],m=o[--h];else if(tt(d,m,l))"slot"!==d.O&&"slot"!==m.O||Q(d.k.parentNode,!1),et(d,m,l),rt(b,d.k,p.k.nextSibling),d=n[++r],m=o[--h];else if(tt(p,v,l))"slot"!==d.O&&"slot"!==m.O||Q(p.k.parentNode,!1),et(p,v,l),rt(b,p.k,d.k),p=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].$&&n[f].$===v.$){u=f;break}u>=0?(i=n[u],i.O!==v.O?s=J(n&&n[c],e,u):(et(i,v,l),n[u]=void 0,s=i.k),v=o[++c]):(s=J(n&&n[c],e,c),v=o[++c]),s&&rt(nt(d.k).parentNode,s,nt(d.k))}r>a?X(t,null==o[h+1]?null:o[h+1].k,e,o,c,h):c>h&&Z(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),X(o,null,n,s,0,s.length-1)):!e&&null!==l&&Z(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.h!==i&&(o.data=i)},ot=[],lt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(j(n,l)){let e=ot.find((t=>t.N===n));z=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.S=t):(n["s-sh"]=t["s-hn"],ot.push({S:t,N:n})),n["s-sr"]&&ot.map((t=>{j(t.N,n["s-sn"])&&(e=ot.find((t=>t.N===n)),e&&!t.S&&(t.S=e.S))}))}else ot.some((t=>t.N===n))||ot.push({N:n})}1===t.nodeType&<(t)}},st=t=>{t.v&&t.v.ref&&G.push((()=>t.v.ref(null))),t.m&&t.m.map(st)},it=(t,n)=>{I.push((()=>t(n)))},rt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=g(t)||"";return{slotNode:y(w(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},ct=(t,n)=>{if(n&&!t.C&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.C=()=>{n["s-p"].splice(e-1,1),o()})))}},ut=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);ct(t,t.M);const e=()=>ft(t,n);if(!n)return m(e);queueMicrotask((()=>{e()}))},ft=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.R&&(t.R=!1,bt(o,"connectedCallback",void 0,e)),t.T.length&&t.T.forEach((t=>t(e))),l=bt(o,"componentWillLoad",void 0,e)):l=bt(o,"componentWillUpdate",void 0,e),l=at(l,(()=>bt(o,"componentWillRender",void 0,e))),at(l,(()=>pt(t,o,n)))},at=(t,n)=>dt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),dt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,pt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];ht(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>vt(t);0===n.length?e():(Promise.all(n).then(e),t.u|=4,n.length=0)}},ht=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,c,u;const f=t.$hostElement$,a=t.o,d=t.F||C(null,null),p=(t=>t&&t.O===M)(n)?n:E(null,null,n);if(k=f.tagName,e&&p.v)for(const t of Object.keys(p.v))f.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(p.v[t]=f[t]);if(p.O=null,p.u|=4,t.F=p,p.k=d.k=f,q=!1,O=f["s-cr"],z=!1,et(d,p,e),r.u|=1,H){lt(p.k);for(const t of ot){const n=t.N;if(!n["s-ol"]&&i.document){const t=i.document.createTextNode("");t["s-nr"]=n,rt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of ot){const n=t.N,r=t.S;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(rt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=i.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,rt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(c=n["s-ih"])&&c)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(z&&b(p.k),r.u&=-2,ot.length=0,!q&&!(1&a.u)&&f["s-cr"]){const t=p.k.__childNodes||p.k.childNodes;for(const n of t)if(n["s-hn"]!==k&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(u=n.hidden)&&u),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=i.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],rt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}O=void 0,G.forEach((t=>t())),G.length=0,I.forEach((t=>t())),I.length=0})(t,n,o)}catch(n){l(n,t.$hostElement$)}return null},vt=t=>{const n=t.$hostElement$,e=t.i,o=t.M;bt(e,"componentDidRender",void 0,n),64&t.u?bt(e,"componentDidUpdate",void 0,n):(t.u|=64,yt(n),bt(e,"componentDidLoad",void 0,n),t.L(n),o||mt()),t.C&&(t.C(),t.C=void 0),512&t.u&&v((()=>ut(t,!1))),t.u&=-517},mt=()=>{v((()=>A(i,"appload",{detail:{namespace:"db-ux"}})))},bt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){l(t,o)}},yt=t=>t.classList.add("hydrated"),$t=(t,e,o,s)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.A}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.l.get(e),u=i.u,f=i.i;if(o=F(o,s.t[e][0]),!(8&u&&void 0!==c||o===c||Number.isNaN(c)&&Number.isNaN(o))){if(i.l.set(e,o),s.P){const t=s.P[e];t&&t.map((t=>{try{const[[n,l]]=Object.entries(t);(128&u||1&l)&&(f?f[n](o,c,e):i.T.push((()=>{i.i[n](o,c,e)})))}catch(t){l(t,r)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,e))return;ut(i,!1)}}},jt=(t,e,o)=>{var l,s;const i=t.prototype;{t.watchers&&!e.P&&(e.P=t.watchers),t.deserializers&&!e.D&&(e.D=t.deserializers),t.serializers&&!e._&&(e._=t.serializers);const c=Object.entries(null!=(l=e.t)?l:{});if(c.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>n(this).l.get(e))(0,t);const o=n(this),l=o?o.i:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(i){if(r)return void 0===(32&l?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(s=i.l.get(t)),r.call(this,F(s,l)),void $t(this,t,s=32&l?this[t]:i.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return $t(this,t,s,e),void(1&o&&!i.i&&i.T.push((()=>{4096&e.t[t][0]&&i.i[t]!==i.l.get(t)&&(i.i[t]=s)})));const n=()=>{const n=i.i[t];!i.l.get(t)&&n&&i.l.set(t,n),i.i[t]=F(s,l),$t(this,t,i.i[t],e)};i.i?n():i.T.push((()=>{n()}))}}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){r.jmp((()=>{var r;const u=o.get(t),f=n(this);if(this.hasOwnProperty(u)&&(s=this[u],delete this[u]),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const n=null==f?void 0:f.u;if(f&&n&&!(8&n)&&s!==l){const o=f.i,i=null==(r=e.P)?void 0:r[t];null==i||i.forEach((e=>{const[[i,r]]=Object.entries(e);null!=o[i]&&(128&n||1&r)&&o[i].call(o,s,l,t)}))}return}const a=c.find((([t])=>t===u));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(i,u);s==this[u]||d.get&&!d.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.P)?s:{}),...c.filter((([t,n])=>31&n[0])).map((([t,n])=>{const e=n[1]||t;return o.set(e,t),e}))]))}}return t},gt=(t,n)=>{bt(t,"connectedCallback",void 0,n)},wt=(t,n)=>{bt(t,"disconnectedCallback",void 0,n||t)},Ot=(t,e={})=>{var o;if(!i.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],u=e.exclude||[],f=i.customElements,a=i.document.head,d=a.querySelector("meta[charset]"),p=i.document.createElement("style"),h=[];let v,m=!0;Object.assign(r,e),r.p=new URL(e.resourcesUrl||"./",i.document.baseURI).href;let b=!1;if(t.map((t=>{t[1].map((e=>{var o,a,d;const p={u:e[0],A:e[1],t:e[2],U:e[3]};4&p.u&&(b=!0),p.t=e[2],p.P=null!=(o=e[4])?o:{},p._=null!=(a=e[5])?a:{},p.D=null!=(d=e[6])?d:{};const y=p.A,$=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,W:new Map};e.B=new Promise((t=>e.L=t)),t["s-p"]=[],t["s-rc"]=[],e.T=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,p)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),m?h.push(this):r.jmp((()=>(t=>{if(!(1&r.u)){const e=n(t);if(!e)return;const o=e.o,r=()=>{};if(1&e.u)(null==e?void 0:e.i)?gt(e.i,t):(null==e?void 0:e.B)&&e.B.then((()=>gt(e.i,t)));else{e.u|=1,12&o.u&&(t=>{if(!i.document)return;const n=t["s-cr"]=i.document.createComment("");n["s-cn"]=!0,rt(t,n,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){ct(e,e.M=n);break}}o.t&&Object.entries(o.t).map((([n,[e]])=>{if(31&e&&n in t&&t[n]!==Object.prototype[n]){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.u))if(n.u|=32,e.V){const i=((t,n)=>{const e=t.A.replace(/-/g,"_"),o=t.V;if(!o)return;const i=s.get(o);return i?i[e]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[e])),(t=>{l(t,n.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${e.A}#${n.q}" was not found`);o.isProxied||(e.P=o.watchers,e._=o.serializers,e.D=o.deserializers,jt(o,e,2),o.isProxied=!0);const r=()=>{};n.u|=8;try{new o(n)}catch(n){l(n,t)}n.u&=-9,n.u|=128,r(),4&e.u?n.R=!0:gt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));const i=n.M,r=()=>ut(n,!0);i&&i["s-rc"]?i["s-rc"].push(r):r()})(t,e,o)}r()}})(this))))}disconnectedCallback(){r.jmp((()=>(async t=>{if(!(1&r.u)){const e=n(t);(null==e?void 0:e.i)?wt(e.i,t):(null==e?void 0:e.B)&&e.B.then((()=>wt(e.i,t)))}N.has(t)&&N.delete(t),t.shadowRoot&&N.has(t.shadowRoot)&&N.delete(t.shadowRoot)})(this))),r.raf((()=>{var t;const e=n(this);if(!e)return;const o=h.findIndex((t=>t===this));o>-1&&h.splice(o,1),(null==(t=null==e?void 0:e.F)?void 0:t.k)instanceof Node&&!e.F.k.isConnected&&delete e.F.k}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.B}};p.V=t[0],u.includes(y)||f.get(y)||(c.push(y),f.define(y,jt($,p,1)))}))})),c.length>0&&(b&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",p.innerHTML.length)){p.setAttribute("data-styles","");const t=null!=(o=r.H)?o:function(){var t,n,e;return null!=(e=null==(n=null==(t=i.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();null!=t&&p.setAttribute("nonce",t),a.insertBefore(p,d?d.nextSibling:a.firstChild)}m=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>v=setTimeout(mt,30)))},kt=(t,n)=>n,Nt=t=>r.H=t;export{kt as F,Ot as b,L as c,E as h,c as p,e as r,Nt as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-aO-2B9yO.js";import{c as a}from"./p-C4x0SOcx.js";const i=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 c=s.item(i);if(c&&(c.name.startsWith("data-")||c.name.startsWith("aria-"))&&(t.setAttribute(c.name,c.value),a.removeAttribute(c.name)),c&&"class"===c.name){const s=c.value.includes("hydrated"),i=c.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(c.name,`${o?`${o} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(c.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-icon")}render(){return s("span",{key:"3a67532009f85e493784e99774e230f52c588ccc",class:a("db-icon",this.className),"aria-hidden":"true",ref:t=>{this._ref=t},id:this.id,"data-icon":this.icon,"data-icon-weight":this.weight,"data-icon-variant":this.variant},this.text?this.text:s("slot",null))}};export{i as db_icon}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,c as s,h as t}from"./p-aO-2B9yO.js";import{c as i}from"./p-C4x0SOcx.js";const c=class{constructor(t){a(this,t),this.click=s(this,"click")}handleClick(a){this.click&&this.click.emit(a)}enableAttributePassing(a,s){const t=null==a?void 0:a.closest(s);if(a&&t){const s=t.attributes;for(let i=0;i<s.length;i++){const c=s.item(i);if(c&&(c.name.startsWith("data-")||c.name.startsWith("aria-"))&&(a.setAttribute(c.name,c.value),t.removeAttribute(c.name)),c&&"class"===c.name){const s=c.value.includes("hydrated"),i=c.value.replace("hydrated","").trim(),e=a.getAttribute("class");a.setAttribute(c.name,`${e?`${e} `:""}${i}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(c.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-card")}render(){return t("div",{key:"823ca29890a1a4f29f4ff4f7bb1829e77314546b",class:i("db-card",this.className),ref:a=>{this._ref=a},id:this.id,"data-behavior":this.behavior,"data-elevation-level":this.elevationLevel,"data-spacing":this.spacing,onClick:a=>this.handleClick(a)},t("slot",{key:"532b03614fa83513efc8f97b6a9a7faceff62039"}))}};export{c as db_card}
|