@pod-os/elements 0.29.1-rc.c8e652b.0 → 0.29.1-rc.d6d1332.0
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/dist/cjs/{app-globals-97a7ec18.js → app-globals-92c0c4ce.js} +3 -1
- package/dist/cjs/app-globals-92c0c4ce.js.map +1 -0
- package/dist/cjs/chunk.3Y6SB6QS-10eff6c1.js +31 -0
- package/dist/cjs/chunk.3Y6SB6QS-10eff6c1.js.map +1 -0
- package/dist/cjs/elements.cjs.js +3 -2
- package/dist/cjs/elements.cjs.js.map +1 -1
- package/dist/cjs/{ion-icon_32.cjs.entry.js → ion-icon_33.cjs.entry.js} +136 -120
- package/dist/cjs/ion-icon_33.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/apps/pos-app-browser/pos-app-browser.css +3 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pos-tool-select/pos-tool-select.css +51 -0
- package/dist/collection/components/pos-tool-select/pos-tool-select.js +55 -0
- package/dist/collection/components/pos-tool-select/pos-tool-select.js.map +1 -0
- package/dist/collection/components/pos-tool-select/shoelace.js +2 -0
- package/dist/collection/components/pos-tool-select/shoelace.js.map +1 -0
- package/dist/collection/components/pos-type-router/pos-type-router.css +14 -0
- package/dist/collection/components/pos-type-router/pos-type-router.js +14 -3
- package/dist/collection/components/pos-type-router/pos-type-router.js.map +1 -1
- package/dist/collection/components/pos-type-router/selectToolsForTypes.js +47 -0
- package/dist/collection/components/pos-type-router/selectToolsForTypes.js.map +1 -0
- package/dist/collection/global.js +2 -0
- package/dist/collection/global.js.map +1 -1
- package/dist/components/chunk.3Y6SB6QS.js +28 -0
- package/dist/components/chunk.3Y6SB6QS.js.map +1 -0
- package/dist/components/chunk.HVTXQL7M.js +24 -598
- package/dist/components/chunk.HVTXQL7M.js.map +1 -1
- package/dist/components/chunk.YHLNUJ7P.js +556 -0
- package/dist/components/chunk.YHLNUJ7P.js.map +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/pos-app-browser.js +65 -59
- package/dist/components/pos-app-browser.js.map +1 -1
- package/dist/components/pos-make-findable2.js +1 -0
- package/dist/components/pos-make-findable2.js.map +1 -1
- package/dist/components/pos-tool-select.d.ts +11 -0
- package/dist/components/pos-tool-select.js +8 -0
- package/dist/components/pos-tool-select.js.map +1 -0
- package/dist/components/pos-tool-select2.js +43 -0
- package/dist/components/pos-tool-select2.js.map +1 -0
- package/dist/components/pos-type-router2.js +43 -18
- package/dist/components/pos-type-router2.js.map +1 -1
- package/dist/components/pos-user-menu2.js +2 -1
- package/dist/components/pos-user-menu2.js.map +1 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/elements.esm.js.map +1 -1
- package/dist/elements/{p-d303d82c.entry.js → p-20c36eb6.entry.js} +48 -48
- package/dist/elements/p-20c36eb6.entry.js.map +1 -0
- package/dist/elements/p-36a54274.js +2 -0
- package/dist/elements/p-36a54274.js.map +1 -0
- package/dist/elements/p-c066fd50.js +2 -0
- package/dist/elements/p-c066fd50.js.map +1 -0
- package/dist/esm/{app-globals-fd9221d0.js → app-globals-64c60cb2.js} +3 -1
- package/dist/esm/app-globals-64c60cb2.js.map +1 -0
- package/dist/esm/chunk.3Y6SB6QS-ff2f5b55.js +28 -0
- package/dist/esm/chunk.3Y6SB6QS-ff2f5b55.js.map +1 -0
- package/dist/esm/elements.js +3 -2
- package/dist/esm/elements.js.map +1 -1
- package/dist/esm/{ion-icon_32.entry.js → ion-icon_33.entry.js} +135 -120
- package/dist/esm/ion-icon_33.entry.js.map +1 -0
- package/dist/esm/loader.js +3 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/pos-tool-select/pos-tool-select.d.ts +6 -0
- package/dist/types/components/pos-tool-select/shoelace.d.ts +1 -0
- package/dist/types/components/pos-type-router/selectToolsForTypes.d.ts +13 -0
- package/dist/types/components.d.ts +17 -0
- package/package.json +1 -1
- package/dist/cjs/app-globals-97a7ec18.js.map +0 -1
- package/dist/cjs/ion-icon_32.cjs.entry.js.map +0 -1
- package/dist/collection/components/pos-type-router/selectAppForTypes.js +0 -33
- package/dist/collection/components/pos-type-router/selectAppForTypes.js.map +0 -1
- package/dist/elements/p-61cd1259.js +0 -2
- package/dist/elements/p-61cd1259.js.map +0 -1
- package/dist/elements/p-d303d82c.entry.js.map +0 -1
- package/dist/esm/app-globals-fd9221d0.js.map +0 -1
- package/dist/esm/ion-icon_32.entry.js.map +0 -1
- package/dist/types/components/pos-type-router/selectAppForTypes.d.ts +0 -9
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const t$2=globalThis,e$8=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),o$7=new WeakMap;class n$5{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$8&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$7.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$7.set(s,t));}return t}toString(){return this.cssText}}const r$5=t=>new n$5("string"==typeof t?t:t+"",void 0,s$3),i$4=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$5(o,t,s$3)},S$1=(s,o)=>{if(e$8)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$3=e$8?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$5(e)})(t):t;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2017 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$3,defineProperty:e$7,getOwnPropertyDescriptor:h$3,getOwnPropertyNames:r$4,getOwnPropertySymbols:o$6,getPrototypeOf:n$4}=Object,a$1=globalThis,c$2=a$1.trustedTypes,l$1=c$2?c$2.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$3=(t,s)=>!i$3(t,s),b={attribute:!0,type:String,converter:u$1,reflect:!1,useDefault:!1,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class y$1 extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$7(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$3(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$4(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$4(t),...o$6(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$3(s));}else void 0!==s&&i.push(c$3(s));return i}static _$Eu(t,s){const i=s.attribute;return !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$1).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$3)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=!0;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}}y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$1.reactiveElementVersions??=[]).push("2.1.1");
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright 2017 Google LLC
|
|
17
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/
|
|
19
|
-
const t$1=globalThis,i$2=t$1.trustedTypes,s$2=i$2?i$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$6="$lit$",h$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$5="?"+h$2,n$3=`<${o$5}>`,r$3=document,l=()=>r$3.createComment(""),c$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$2?s$2.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$2;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$2?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$2,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f$2:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$2?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$6+s.slice(d)+h$2+x):s+h$2+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$6)){const i=v[a++],s=r.getAttribute(t).split(h$2),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$2)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$2),s=t.length-1;if(s>0){r.textContent=i$2?i$2.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o$5)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$2,t+1));)d.push({type:7,index:c}),t+=h$2.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$1(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c$1(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c$1(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$1(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.3.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const s$1=globalThis;class i$1 extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T}}i$1._$litElement$=!0,i$1["finalized"]=!0,s$1.litElementHydrateSupport?.({LitElement:i$1});const o$4=s$1.litElementPolyfillSupport;o$4?.({LitElement:i$1});(s$1.litElementVersions??=[]).push("4.2.1");
|
|
1
|
+
import { i as i$1, b as __yieldStar, T, c as component_styles_default, _ as __decorateClass, a as ShoelaceElement, d as __spreadProps, e as __spreadValues, x, n as n$2, E, w as watch, f as f$1, S as SlIcon } from './chunk.YHLNUJ7P.js';
|
|
26
2
|
|
|
27
3
|
// src/components/dropdown/dropdown.styles.ts
|
|
28
|
-
var dropdown_styles_default = i$
|
|
4
|
+
var dropdown_styles_default = i$1`
|
|
29
5
|
:host {
|
|
30
6
|
display: inline-block;
|
|
31
7
|
}
|
|
@@ -75,75 +51,6 @@ var dropdown_styles_default = i$4`
|
|
|
75
51
|
}
|
|
76
52
|
`;
|
|
77
53
|
|
|
78
|
-
var __defProp = Object.defineProperty;
|
|
79
|
-
var __defProps = Object.defineProperties;
|
|
80
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
81
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
82
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
83
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
84
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
85
|
-
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
86
|
-
var __typeError = (msg) => {
|
|
87
|
-
throw TypeError(msg);
|
|
88
|
-
};
|
|
89
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
90
|
-
var __spreadValues = (a, b) => {
|
|
91
|
-
for (var prop in b || (b = {}))
|
|
92
|
-
if (__hasOwnProp.call(b, prop))
|
|
93
|
-
__defNormalProp(a, prop, b[prop]);
|
|
94
|
-
if (__getOwnPropSymbols)
|
|
95
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
96
|
-
if (__propIsEnum.call(b, prop))
|
|
97
|
-
__defNormalProp(a, prop, b[prop]);
|
|
98
|
-
}
|
|
99
|
-
return a;
|
|
100
|
-
};
|
|
101
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
102
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
103
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
104
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
105
|
-
if (decorator = decorators[i])
|
|
106
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
107
|
-
if (kind && result) __defProp(target, key, result);
|
|
108
|
-
return result;
|
|
109
|
-
};
|
|
110
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
111
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
112
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
113
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
114
|
-
var __await = function(promise, isYieldStar) {
|
|
115
|
-
this[0] = promise;
|
|
116
|
-
this[1] = isYieldStar;
|
|
117
|
-
};
|
|
118
|
-
var __yieldStar = (value) => {
|
|
119
|
-
var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
|
|
120
|
-
if (obj == null) {
|
|
121
|
-
obj = value[__knownSymbol("iterator")]();
|
|
122
|
-
method = (k) => it[k] = (x) => obj[k](x);
|
|
123
|
-
} else {
|
|
124
|
-
obj = obj.call(value);
|
|
125
|
-
method = (k) => it[k] = (v) => {
|
|
126
|
-
if (isAwait) {
|
|
127
|
-
isAwait = false;
|
|
128
|
-
if (k === "throw") throw v;
|
|
129
|
-
return v;
|
|
130
|
-
}
|
|
131
|
-
isAwait = true;
|
|
132
|
-
return {
|
|
133
|
-
done: false,
|
|
134
|
-
value: new __await(new Promise((resolve) => {
|
|
135
|
-
var x = obj[k](v);
|
|
136
|
-
if (!(x instanceof Object)) __typeError("Object expected");
|
|
137
|
-
resolve(x);
|
|
138
|
-
}), 1)
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
|
|
143
|
-
throw x;
|
|
144
|
-
}, "return" in obj && method("return"), it;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
54
|
// src/internal/active-elements.ts
|
|
148
55
|
function* activeElements(activeElement = document.activeElement) {
|
|
149
56
|
if (activeElement === null || activeElement === void 0) return;
|
|
@@ -291,7 +198,7 @@ function getTabbableElements(root) {
|
|
|
291
198
|
}
|
|
292
199
|
|
|
293
200
|
// src/components/popup/popup.styles.ts
|
|
294
|
-
var popup_styles_default = i$
|
|
201
|
+
var popup_styles_default = i$1`
|
|
295
202
|
:host {
|
|
296
203
|
--arrow-color: var(--sl-color-neutral-1000);
|
|
297
204
|
--arrow-size: 6px;
|
|
@@ -502,129 +409,18 @@ var LocalizeController = class extends LocalizeController$1 {
|
|
|
502
409
|
};
|
|
503
410
|
registerTranslation(en_default);
|
|
504
411
|
|
|
505
|
-
// src/styles/component.styles.ts
|
|
506
|
-
var component_styles_default = i$4`
|
|
507
|
-
:host {
|
|
508
|
-
box-sizing: border-box;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
:host *,
|
|
512
|
-
:host *::before,
|
|
513
|
-
:host *::after {
|
|
514
|
-
box-sizing: inherit;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
[hidden] {
|
|
518
|
-
display: none !important;
|
|
519
|
-
}
|
|
520
|
-
`;
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* @license
|
|
524
|
-
* Copyright 2017 Google LLC
|
|
525
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
526
|
-
*/const o$3={attribute:!0,type:String,converter:u$1,reflect:!1,hasChanged:f$3},r$2=(t=o$3,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n$2(t){return (e,o)=>"object"==typeof o?r$2(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* @license
|
|
530
|
-
* Copyright 2017 Google LLC
|
|
531
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
532
|
-
*/function r$1(r){return n$2({...r,state:!0,attribute:!1})}
|
|
533
|
-
|
|
534
412
|
/**
|
|
535
413
|
* @license
|
|
536
414
|
* Copyright 2017 Google LLC
|
|
537
415
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
538
416
|
*/
|
|
539
|
-
const e$
|
|
417
|
+
const e$4=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,c),c);
|
|
540
418
|
|
|
541
419
|
/**
|
|
542
420
|
* @license
|
|
543
421
|
* Copyright 2017 Google LLC
|
|
544
422
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
545
|
-
*/function e$
|
|
546
|
-
|
|
547
|
-
var _hasRecordedInitialProperties;
|
|
548
|
-
var ShoelaceElement = class extends i$1 {
|
|
549
|
-
constructor() {
|
|
550
|
-
super();
|
|
551
|
-
__privateAdd(this, _hasRecordedInitialProperties, false);
|
|
552
|
-
// Store the constructor value of all `static properties = {}`
|
|
553
|
-
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
554
|
-
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
555
|
-
this.constructor.define(name, component);
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
emit(name, options) {
|
|
559
|
-
const event = new CustomEvent(name, __spreadValues({
|
|
560
|
-
bubbles: true,
|
|
561
|
-
cancelable: false,
|
|
562
|
-
composed: true,
|
|
563
|
-
detail: {}
|
|
564
|
-
}, options));
|
|
565
|
-
this.dispatchEvent(event);
|
|
566
|
-
return event;
|
|
567
|
-
}
|
|
568
|
-
/* eslint-enable */
|
|
569
|
-
static define(name, elementConstructor = this, options = {}) {
|
|
570
|
-
const currentlyRegisteredConstructor = customElements.get(name);
|
|
571
|
-
if (!currentlyRegisteredConstructor) {
|
|
572
|
-
try {
|
|
573
|
-
customElements.define(name, elementConstructor, options);
|
|
574
|
-
} catch (_err) {
|
|
575
|
-
customElements.define(name, class extends elementConstructor {
|
|
576
|
-
}, options);
|
|
577
|
-
}
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
let newVersion = " (unknown version)";
|
|
581
|
-
let existingVersion = newVersion;
|
|
582
|
-
if ("version" in elementConstructor && elementConstructor.version) {
|
|
583
|
-
newVersion = " v" + elementConstructor.version;
|
|
584
|
-
}
|
|
585
|
-
if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
|
|
586
|
-
existingVersion = " v" + currentlyRegisteredConstructor.version;
|
|
587
|
-
}
|
|
588
|
-
if (newVersion && existingVersion && newVersion === existingVersion) {
|
|
589
|
-
return;
|
|
590
|
-
}
|
|
591
|
-
console.warn(
|
|
592
|
-
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
596
|
-
if (!__privateGet(this, _hasRecordedInitialProperties)) {
|
|
597
|
-
this.constructor.elementProperties.forEach(
|
|
598
|
-
(obj, prop) => {
|
|
599
|
-
if (obj.reflect && this[prop] != null) {
|
|
600
|
-
this.initialReflectedProperties.set(prop, this[prop]);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
);
|
|
604
|
-
__privateSet(this, _hasRecordedInitialProperties, true);
|
|
605
|
-
}
|
|
606
|
-
super.attributeChangedCallback(name, oldValue, newValue);
|
|
607
|
-
}
|
|
608
|
-
willUpdate(changedProperties) {
|
|
609
|
-
super.willUpdate(changedProperties);
|
|
610
|
-
this.initialReflectedProperties.forEach((value, prop) => {
|
|
611
|
-
if (changedProperties.has(prop) && this[prop] == null) {
|
|
612
|
-
this[prop] = value;
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
_hasRecordedInitialProperties = new WeakMap();
|
|
618
|
-
/* eslint-disable */
|
|
619
|
-
// @ts-expect-error This is auto-injected at build time.
|
|
620
|
-
ShoelaceElement.version = "2.20.1";
|
|
621
|
-
ShoelaceElement.dependencies = {};
|
|
622
|
-
__decorateClass([
|
|
623
|
-
n$2()
|
|
624
|
-
], ShoelaceElement.prototype, "dir", 2);
|
|
625
|
-
__decorateClass([
|
|
626
|
-
n$2()
|
|
627
|
-
], ShoelaceElement.prototype, "lang", 2);
|
|
423
|
+
*/function e$3(e,r){return (n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}="object"==typeof s?n:i??(()=>{const t=Symbol();return {get(){return this[t]},set(e){this[t]=e;}}})();return e$4(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return e$4(n,s,{get(){return o(this)}})}}
|
|
628
424
|
|
|
629
425
|
/**
|
|
630
426
|
* Custom positioning reference element.
|
|
@@ -2718,13 +2514,13 @@ const computePosition = (reference, floating, options) => {
|
|
|
2718
2514
|
* Copyright 2017 Google LLC
|
|
2719
2515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2720
2516
|
*/
|
|
2721
|
-
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$
|
|
2517
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$2=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
2722
2518
|
|
|
2723
2519
|
/**
|
|
2724
2520
|
* @license
|
|
2725
2521
|
* Copyright 2018 Google LLC
|
|
2726
2522
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2727
|
-
*/const e$
|
|
2523
|
+
*/const e$1=e$2(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
2728
2524
|
|
|
2729
2525
|
function offsetParent(element) {
|
|
2730
2526
|
return offsetParentPolyfill(element);
|
|
@@ -3052,7 +2848,7 @@ var SlPopup = class extends ShoelaceElement {
|
|
|
3052
2848
|
|
|
3053
2849
|
<span
|
|
3054
2850
|
part="hover-bridge"
|
|
3055
|
-
class=${e$
|
|
2851
|
+
class=${e$1({
|
|
3056
2852
|
"popup-hover-bridge": true,
|
|
3057
2853
|
"popup-hover-bridge--visible": this.hoverBridge && this.active
|
|
3058
2854
|
})}
|
|
@@ -3060,7 +2856,7 @@ var SlPopup = class extends ShoelaceElement {
|
|
|
3060
2856
|
|
|
3061
2857
|
<div
|
|
3062
2858
|
part="popup"
|
|
3063
|
-
class=${e$
|
|
2859
|
+
class=${e$1({
|
|
3064
2860
|
popup: true,
|
|
3065
2861
|
"popup--active": this.active,
|
|
3066
2862
|
"popup--fixed": this.strategy === "fixed",
|
|
@@ -3075,10 +2871,10 @@ var SlPopup = class extends ShoelaceElement {
|
|
|
3075
2871
|
};
|
|
3076
2872
|
SlPopup.styles = [component_styles_default, popup_styles_default];
|
|
3077
2873
|
__decorateClass([
|
|
3078
|
-
e$
|
|
2874
|
+
e$3(".popup")
|
|
3079
2875
|
], SlPopup.prototype, "popup", 2);
|
|
3080
2876
|
__decorateClass([
|
|
3081
|
-
e$
|
|
2877
|
+
e$3(".popup__arrow")
|
|
3082
2878
|
], SlPopup.prototype, "arrowEl", 2);
|
|
3083
2879
|
__decorateClass([
|
|
3084
2880
|
n$2()
|
|
@@ -3231,32 +3027,6 @@ function stopAnimations(el) {
|
|
|
3231
3027
|
);
|
|
3232
3028
|
}
|
|
3233
3029
|
|
|
3234
|
-
// src/internal/watch.ts
|
|
3235
|
-
function watch(propertyName, options) {
|
|
3236
|
-
const resolvedOptions = __spreadValues({
|
|
3237
|
-
waitUntilFirstUpdate: false
|
|
3238
|
-
}, options);
|
|
3239
|
-
return (proto, decoratedFnName) => {
|
|
3240
|
-
const { update } = proto;
|
|
3241
|
-
const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
|
|
3242
|
-
proto.update = function(changedProps) {
|
|
3243
|
-
watchedProperties.forEach((property) => {
|
|
3244
|
-
const key = property;
|
|
3245
|
-
if (changedProps.has(key)) {
|
|
3246
|
-
const oldValue = changedProps.get(key);
|
|
3247
|
-
const newValue = this[key];
|
|
3248
|
-
if (oldValue !== newValue) {
|
|
3249
|
-
if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
|
|
3250
|
-
this[decoratedFnName](oldValue, newValue);
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
}
|
|
3254
|
-
});
|
|
3255
|
-
update.call(this, changedProps);
|
|
3256
|
-
};
|
|
3257
|
-
};
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
3030
|
/**
|
|
3261
3031
|
* @license
|
|
3262
3032
|
* Copyright 2018 Google LLC
|
|
@@ -3523,7 +3293,7 @@ var SlDropdown = class extends ShoelaceElement {
|
|
|
3523
3293
|
auto-size="vertical"
|
|
3524
3294
|
auto-size-padding="10"
|
|
3525
3295
|
sync=${o$2(this.sync ? this.sync : void 0)}
|
|
3526
|
-
class=${e$
|
|
3296
|
+
class=${e$1({
|
|
3527
3297
|
dropdown: true,
|
|
3528
3298
|
"dropdown--open": this.open
|
|
3529
3299
|
})}
|
|
@@ -3549,13 +3319,13 @@ var SlDropdown = class extends ShoelaceElement {
|
|
|
3549
3319
|
SlDropdown.styles = [component_styles_default, dropdown_styles_default];
|
|
3550
3320
|
SlDropdown.dependencies = { "sl-popup": SlPopup };
|
|
3551
3321
|
__decorateClass([
|
|
3552
|
-
e$
|
|
3322
|
+
e$3(".dropdown")
|
|
3553
3323
|
], SlDropdown.prototype, "popup", 2);
|
|
3554
3324
|
__decorateClass([
|
|
3555
|
-
e$
|
|
3325
|
+
e$3(".dropdown__trigger")
|
|
3556
3326
|
], SlDropdown.prototype, "trigger", 2);
|
|
3557
3327
|
__decorateClass([
|
|
3558
|
-
e$
|
|
3328
|
+
e$3(".dropdown__panel")
|
|
3559
3329
|
], SlDropdown.prototype, "panel", 2);
|
|
3560
3330
|
__decorateClass([
|
|
3561
3331
|
n$2({ type: Boolean, reflect: true })
|
|
@@ -3605,7 +3375,7 @@ setDefaultAnimation("dropdown.hide", {
|
|
|
3605
3375
|
SlDropdown.define("sl-dropdown");
|
|
3606
3376
|
|
|
3607
3377
|
// src/components/menu/menu.styles.ts
|
|
3608
|
-
var menu_styles_default = i$
|
|
3378
|
+
var menu_styles_default = i$1`
|
|
3609
3379
|
:host {
|
|
3610
3380
|
display: block;
|
|
3611
3381
|
position: relative;
|
|
@@ -3735,13 +3505,13 @@ var SlMenu = class extends ShoelaceElement {
|
|
|
3735
3505
|
};
|
|
3736
3506
|
SlMenu.styles = [component_styles_default, menu_styles_default];
|
|
3737
3507
|
__decorateClass([
|
|
3738
|
-
e$
|
|
3508
|
+
e$3("slot")
|
|
3739
3509
|
], SlMenu.prototype, "defaultSlot", 2);
|
|
3740
3510
|
|
|
3741
3511
|
SlMenu.define("sl-menu");
|
|
3742
3512
|
|
|
3743
3513
|
// src/components/menu-item/menu-item.styles.ts
|
|
3744
|
-
var menu_item_styles_default = i$
|
|
3514
|
+
var menu_item_styles_default = i$1`
|
|
3745
3515
|
:host {
|
|
3746
3516
|
--submenu-offset: -2px;
|
|
3747
3517
|
|
|
@@ -3895,12 +3665,6 @@ var menu_item_styles_default = i$4`
|
|
|
3895
3665
|
}
|
|
3896
3666
|
`;
|
|
3897
3667
|
|
|
3898
|
-
/**
|
|
3899
|
-
* @license
|
|
3900
|
-
* Copyright 2020 Google LLC
|
|
3901
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3902
|
-
*/const e$1=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,f$1=o=>void 0===o.strings;
|
|
3903
|
-
|
|
3904
3668
|
/**
|
|
3905
3669
|
* @license
|
|
3906
3670
|
* Copyright 2017 Google LLC
|
|
@@ -3911,7 +3675,7 @@ var menu_item_styles_default = i$4`
|
|
|
3911
3675
|
* @license
|
|
3912
3676
|
* Copyright 2020 Google LLC
|
|
3913
3677
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3914
|
-
*/const e=()=>new h;class h{}const o=new WeakMap,n=e$
|
|
3678
|
+
*/const e=()=>new h;class h{}const o=new WeakMap,n=e$2(class extends f{render(i){return E}update(i,[s]){const e=s!==this.G;return e&&void 0!==this.G&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=s,this.ht=i.options?.host,this.rt(this.ct=i.element)),E}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const i=this.ht??globalThis;let s=o.get(i);void 0===s&&(s=new WeakMap,o.set(i,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t);}else this.G.value=t;}get lt(){return "function"==typeof this.G?o.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0);}reconnected(){this.rt(this.ct);}});
|
|
3915
3679
|
|
|
3916
3680
|
// src/components/menu-item/submenu-controller.ts
|
|
3917
3681
|
var SubmenuController = class {
|
|
@@ -4147,7 +3911,7 @@ var SubmenuController = class {
|
|
|
4147
3911
|
};
|
|
4148
3912
|
|
|
4149
3913
|
// src/components/spinner/spinner.styles.ts
|
|
4150
|
-
var spinner_styles_default = i$
|
|
3914
|
+
var spinner_styles_default = i$1`
|
|
4151
3915
|
:host {
|
|
4152
3916
|
--track-width: 2px;
|
|
4153
3917
|
--track-color: rgb(128 128 128 / 25%);
|
|
@@ -4280,344 +4044,6 @@ function getTextContent(slot) {
|
|
|
4280
4044
|
return text;
|
|
4281
4045
|
}
|
|
4282
4046
|
|
|
4283
|
-
// src/utilities/base-path.ts
|
|
4284
|
-
var basePath = "";
|
|
4285
|
-
function setBasePath(path) {
|
|
4286
|
-
basePath = path;
|
|
4287
|
-
}
|
|
4288
|
-
function getBasePath(subpath = "") {
|
|
4289
|
-
if (!basePath) {
|
|
4290
|
-
const scripts = [...document.getElementsByTagName("script")];
|
|
4291
|
-
const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
|
|
4292
|
-
if (configScript) {
|
|
4293
|
-
setBasePath(configScript.getAttribute("data-shoelace"));
|
|
4294
|
-
} else {
|
|
4295
|
-
const fallbackScript = scripts.find((s) => {
|
|
4296
|
-
return /shoelace(\.min)?\.js($|\?)/.test(s.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s.src);
|
|
4297
|
-
});
|
|
4298
|
-
let path = "";
|
|
4299
|
-
if (fallbackScript) {
|
|
4300
|
-
path = fallbackScript.getAttribute("src");
|
|
4301
|
-
}
|
|
4302
|
-
setBasePath(path.split("/").slice(0, -1).join("/"));
|
|
4303
|
-
}
|
|
4304
|
-
}
|
|
4305
|
-
return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
|
|
4306
|
-
}
|
|
4307
|
-
|
|
4308
|
-
// src/components/icon/library.default.ts
|
|
4309
|
-
var library = {
|
|
4310
|
-
name: "default",
|
|
4311
|
-
resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
|
|
4312
|
-
};
|
|
4313
|
-
var library_default_default = library;
|
|
4314
|
-
|
|
4315
|
-
// src/components/icon/library.system.ts
|
|
4316
|
-
var icons = {
|
|
4317
|
-
caret: `
|
|
4318
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4319
|
-
<polyline points="6 9 12 15 18 9"></polyline>
|
|
4320
|
-
</svg>
|
|
4321
|
-
`,
|
|
4322
|
-
check: `
|
|
4323
|
-
<svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
4324
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
4325
|
-
<g stroke="currentColor">
|
|
4326
|
-
<g transform="translate(3.428571, 3.428571)">
|
|
4327
|
-
<path d="M0,5.71428571 L3.42857143,9.14285714"></path>
|
|
4328
|
-
<path d="M9.14285714,0 L3.42857143,9.14285714"></path>
|
|
4329
|
-
</g>
|
|
4330
|
-
</g>
|
|
4331
|
-
</g>
|
|
4332
|
-
</svg>
|
|
4333
|
-
`,
|
|
4334
|
-
"chevron-down": `
|
|
4335
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
|
|
4336
|
-
<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
|
|
4337
|
-
</svg>
|
|
4338
|
-
`,
|
|
4339
|
-
"chevron-left": `
|
|
4340
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
|
|
4341
|
-
<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
|
|
4342
|
-
</svg>
|
|
4343
|
-
`,
|
|
4344
|
-
"chevron-right": `
|
|
4345
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
|
|
4346
|
-
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
|
|
4347
|
-
</svg>
|
|
4348
|
-
`,
|
|
4349
|
-
copy: `
|
|
4350
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
|
|
4351
|
-
<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
|
|
4352
|
-
</svg>
|
|
4353
|
-
`,
|
|
4354
|
-
eye: `
|
|
4355
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
|
|
4356
|
-
<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
|
|
4357
|
-
<path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
|
|
4358
|
-
</svg>
|
|
4359
|
-
`,
|
|
4360
|
-
"eye-slash": `
|
|
4361
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
|
|
4362
|
-
<path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
|
|
4363
|
-
<path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
|
|
4364
|
-
<path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
|
|
4365
|
-
</svg>
|
|
4366
|
-
`,
|
|
4367
|
-
eyedropper: `
|
|
4368
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
|
|
4369
|
-
<path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
|
|
4370
|
-
</svg>
|
|
4371
|
-
`,
|
|
4372
|
-
"grip-vertical": `
|
|
4373
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
|
|
4374
|
-
<path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
|
|
4375
|
-
</svg>
|
|
4376
|
-
`,
|
|
4377
|
-
indeterminate: `
|
|
4378
|
-
<svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
4379
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
4380
|
-
<g stroke="currentColor" stroke-width="2">
|
|
4381
|
-
<g transform="translate(2.285714, 6.857143)">
|
|
4382
|
-
<path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
|
|
4383
|
-
</g>
|
|
4384
|
-
</g>
|
|
4385
|
-
</g>
|
|
4386
|
-
</svg>
|
|
4387
|
-
`,
|
|
4388
|
-
"person-fill": `
|
|
4389
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
|
4390
|
-
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
|
|
4391
|
-
</svg>
|
|
4392
|
-
`,
|
|
4393
|
-
"play-fill": `
|
|
4394
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
|
|
4395
|
-
<path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
|
|
4396
|
-
</svg>
|
|
4397
|
-
`,
|
|
4398
|
-
"pause-fill": `
|
|
4399
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
|
|
4400
|
-
<path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
|
|
4401
|
-
</svg>
|
|
4402
|
-
`,
|
|
4403
|
-
radio: `
|
|
4404
|
-
<svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
|
|
4405
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
4406
|
-
<g fill="currentColor">
|
|
4407
|
-
<circle cx="8" cy="8" r="3.42857143"></circle>
|
|
4408
|
-
</g>
|
|
4409
|
-
</g>
|
|
4410
|
-
</svg>
|
|
4411
|
-
`,
|
|
4412
|
-
"star-fill": `
|
|
4413
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
|
|
4414
|
-
<path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
|
|
4415
|
-
</svg>
|
|
4416
|
-
`,
|
|
4417
|
-
"x-lg": `
|
|
4418
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
|
|
4419
|
-
<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
|
|
4420
|
-
</svg>
|
|
4421
|
-
`,
|
|
4422
|
-
"x-circle-fill": `
|
|
4423
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
|
|
4424
|
-
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
|
|
4425
|
-
</svg>
|
|
4426
|
-
`
|
|
4427
|
-
};
|
|
4428
|
-
var systemLibrary = {
|
|
4429
|
-
name: "system",
|
|
4430
|
-
resolver: (name) => {
|
|
4431
|
-
if (name in icons) {
|
|
4432
|
-
return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
|
|
4433
|
-
}
|
|
4434
|
-
return "";
|
|
4435
|
-
}
|
|
4436
|
-
};
|
|
4437
|
-
var library_system_default = systemLibrary;
|
|
4438
|
-
|
|
4439
|
-
// src/components/icon/library.ts
|
|
4440
|
-
var registry = [library_default_default, library_system_default];
|
|
4441
|
-
var watchedIcons = [];
|
|
4442
|
-
function watchIcon(icon) {
|
|
4443
|
-
watchedIcons.push(icon);
|
|
4444
|
-
}
|
|
4445
|
-
function unwatchIcon(icon) {
|
|
4446
|
-
watchedIcons = watchedIcons.filter((el) => el !== icon);
|
|
4447
|
-
}
|
|
4448
|
-
function getIconLibrary(name) {
|
|
4449
|
-
return registry.find((lib) => lib.name === name);
|
|
4450
|
-
}
|
|
4451
|
-
|
|
4452
|
-
// src/components/icon/icon.styles.ts
|
|
4453
|
-
var icon_styles_default = i$4`
|
|
4454
|
-
:host {
|
|
4455
|
-
display: inline-block;
|
|
4456
|
-
width: 1em;
|
|
4457
|
-
height: 1em;
|
|
4458
|
-
box-sizing: content-box !important;
|
|
4459
|
-
}
|
|
4460
|
-
|
|
4461
|
-
svg {
|
|
4462
|
-
display: block;
|
|
4463
|
-
height: 100%;
|
|
4464
|
-
width: 100%;
|
|
4465
|
-
}
|
|
4466
|
-
`;
|
|
4467
|
-
|
|
4468
|
-
var CACHEABLE_ERROR = Symbol();
|
|
4469
|
-
var RETRYABLE_ERROR = Symbol();
|
|
4470
|
-
var parser;
|
|
4471
|
-
var iconCache = /* @__PURE__ */ new Map();
|
|
4472
|
-
var SlIcon = class extends ShoelaceElement {
|
|
4473
|
-
constructor() {
|
|
4474
|
-
super(...arguments);
|
|
4475
|
-
this.initialRender = false;
|
|
4476
|
-
this.svg = null;
|
|
4477
|
-
this.label = "";
|
|
4478
|
-
this.library = "default";
|
|
4479
|
-
}
|
|
4480
|
-
/** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
|
|
4481
|
-
async resolveIcon(url, library) {
|
|
4482
|
-
var _a;
|
|
4483
|
-
let fileData;
|
|
4484
|
-
if (library == null ? void 0 : library.spriteSheet) {
|
|
4485
|
-
this.svg = x`<svg part="svg">
|
|
4486
|
-
<use part="use" href="${url}"></use>
|
|
4487
|
-
</svg>`;
|
|
4488
|
-
return this.svg;
|
|
4489
|
-
}
|
|
4490
|
-
try {
|
|
4491
|
-
fileData = await fetch(url, { mode: "cors" });
|
|
4492
|
-
if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
|
|
4493
|
-
} catch (e) {
|
|
4494
|
-
return RETRYABLE_ERROR;
|
|
4495
|
-
}
|
|
4496
|
-
try {
|
|
4497
|
-
const div = document.createElement("div");
|
|
4498
|
-
div.innerHTML = await fileData.text();
|
|
4499
|
-
const svg = div.firstElementChild;
|
|
4500
|
-
if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== "svg") return CACHEABLE_ERROR;
|
|
4501
|
-
if (!parser) parser = new DOMParser();
|
|
4502
|
-
const doc = parser.parseFromString(svg.outerHTML, "text/html");
|
|
4503
|
-
const svgEl = doc.body.querySelector("svg");
|
|
4504
|
-
if (!svgEl) return CACHEABLE_ERROR;
|
|
4505
|
-
svgEl.part.add("svg");
|
|
4506
|
-
return document.adoptNode(svgEl);
|
|
4507
|
-
} catch (e) {
|
|
4508
|
-
return CACHEABLE_ERROR;
|
|
4509
|
-
}
|
|
4510
|
-
}
|
|
4511
|
-
connectedCallback() {
|
|
4512
|
-
super.connectedCallback();
|
|
4513
|
-
watchIcon(this);
|
|
4514
|
-
}
|
|
4515
|
-
firstUpdated() {
|
|
4516
|
-
this.initialRender = true;
|
|
4517
|
-
this.setIcon();
|
|
4518
|
-
}
|
|
4519
|
-
disconnectedCallback() {
|
|
4520
|
-
super.disconnectedCallback();
|
|
4521
|
-
unwatchIcon(this);
|
|
4522
|
-
}
|
|
4523
|
-
getIconSource() {
|
|
4524
|
-
const library = getIconLibrary(this.library);
|
|
4525
|
-
if (this.name && library) {
|
|
4526
|
-
return {
|
|
4527
|
-
url: library.resolver(this.name),
|
|
4528
|
-
fromLibrary: true
|
|
4529
|
-
};
|
|
4530
|
-
}
|
|
4531
|
-
return {
|
|
4532
|
-
url: this.src,
|
|
4533
|
-
fromLibrary: false
|
|
4534
|
-
};
|
|
4535
|
-
}
|
|
4536
|
-
handleLabelChange() {
|
|
4537
|
-
const hasLabel = typeof this.label === "string" && this.label.length > 0;
|
|
4538
|
-
if (hasLabel) {
|
|
4539
|
-
this.setAttribute("role", "img");
|
|
4540
|
-
this.setAttribute("aria-label", this.label);
|
|
4541
|
-
this.removeAttribute("aria-hidden");
|
|
4542
|
-
} else {
|
|
4543
|
-
this.removeAttribute("role");
|
|
4544
|
-
this.removeAttribute("aria-label");
|
|
4545
|
-
this.setAttribute("aria-hidden", "true");
|
|
4546
|
-
}
|
|
4547
|
-
}
|
|
4548
|
-
async setIcon() {
|
|
4549
|
-
var _a;
|
|
4550
|
-
const { url, fromLibrary } = this.getIconSource();
|
|
4551
|
-
const library = fromLibrary ? getIconLibrary(this.library) : void 0;
|
|
4552
|
-
if (!url) {
|
|
4553
|
-
this.svg = null;
|
|
4554
|
-
return;
|
|
4555
|
-
}
|
|
4556
|
-
let iconResolver = iconCache.get(url);
|
|
4557
|
-
if (!iconResolver) {
|
|
4558
|
-
iconResolver = this.resolveIcon(url, library);
|
|
4559
|
-
iconCache.set(url, iconResolver);
|
|
4560
|
-
}
|
|
4561
|
-
if (!this.initialRender) {
|
|
4562
|
-
return;
|
|
4563
|
-
}
|
|
4564
|
-
const svg = await iconResolver;
|
|
4565
|
-
if (svg === RETRYABLE_ERROR) {
|
|
4566
|
-
iconCache.delete(url);
|
|
4567
|
-
}
|
|
4568
|
-
if (url !== this.getIconSource().url) {
|
|
4569
|
-
return;
|
|
4570
|
-
}
|
|
4571
|
-
if (e$1(svg)) {
|
|
4572
|
-
this.svg = svg;
|
|
4573
|
-
if (library) {
|
|
4574
|
-
await this.updateComplete;
|
|
4575
|
-
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
4576
|
-
if (typeof library.mutator === "function" && shadowSVG) {
|
|
4577
|
-
library.mutator(shadowSVG);
|
|
4578
|
-
}
|
|
4579
|
-
}
|
|
4580
|
-
return;
|
|
4581
|
-
}
|
|
4582
|
-
switch (svg) {
|
|
4583
|
-
case RETRYABLE_ERROR:
|
|
4584
|
-
case CACHEABLE_ERROR:
|
|
4585
|
-
this.svg = null;
|
|
4586
|
-
this.emit("sl-error");
|
|
4587
|
-
break;
|
|
4588
|
-
default:
|
|
4589
|
-
this.svg = svg.cloneNode(true);
|
|
4590
|
-
(_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);
|
|
4591
|
-
this.emit("sl-load");
|
|
4592
|
-
}
|
|
4593
|
-
}
|
|
4594
|
-
render() {
|
|
4595
|
-
return this.svg;
|
|
4596
|
-
}
|
|
4597
|
-
};
|
|
4598
|
-
SlIcon.styles = [component_styles_default, icon_styles_default];
|
|
4599
|
-
__decorateClass([
|
|
4600
|
-
r$1()
|
|
4601
|
-
], SlIcon.prototype, "svg", 2);
|
|
4602
|
-
__decorateClass([
|
|
4603
|
-
n$2({ reflect: true })
|
|
4604
|
-
], SlIcon.prototype, "name", 2);
|
|
4605
|
-
__decorateClass([
|
|
4606
|
-
n$2()
|
|
4607
|
-
], SlIcon.prototype, "src", 2);
|
|
4608
|
-
__decorateClass([
|
|
4609
|
-
n$2()
|
|
4610
|
-
], SlIcon.prototype, "label", 2);
|
|
4611
|
-
__decorateClass([
|
|
4612
|
-
n$2({ reflect: true })
|
|
4613
|
-
], SlIcon.prototype, "library", 2);
|
|
4614
|
-
__decorateClass([
|
|
4615
|
-
watch("label")
|
|
4616
|
-
], SlIcon.prototype, "handleLabelChange", 1);
|
|
4617
|
-
__decorateClass([
|
|
4618
|
-
watch(["name", "src", "library"])
|
|
4619
|
-
], SlIcon.prototype, "setIcon", 1);
|
|
4620
|
-
|
|
4621
4047
|
var SlMenuItem = class extends ShoelaceElement {
|
|
4622
4048
|
constructor() {
|
|
4623
4049
|
super(...arguments);
|
|
@@ -4699,7 +4125,7 @@ var SlMenuItem = class extends ShoelaceElement {
|
|
|
4699
4125
|
<div
|
|
4700
4126
|
id="anchor"
|
|
4701
4127
|
part="base"
|
|
4702
|
-
class=${e$
|
|
4128
|
+
class=${e$1({
|
|
4703
4129
|
"menu-item": true,
|
|
4704
4130
|
"menu-item--rtl": isRtl,
|
|
4705
4131
|
"menu-item--checked": this.checked,
|
|
@@ -4738,10 +4164,10 @@ SlMenuItem.dependencies = {
|
|
|
4738
4164
|
"sl-spinner": SlSpinner
|
|
4739
4165
|
};
|
|
4740
4166
|
__decorateClass([
|
|
4741
|
-
e$
|
|
4167
|
+
e$3("slot:not([name])")
|
|
4742
4168
|
], SlMenuItem.prototype, "defaultSlot", 2);
|
|
4743
4169
|
__decorateClass([
|
|
4744
|
-
e$
|
|
4170
|
+
e$3(".menu-item")
|
|
4745
4171
|
], SlMenuItem.prototype, "menuItem", 2);
|
|
4746
4172
|
__decorateClass([
|
|
4747
4173
|
n$2()
|
|
@@ -4770,6 +4196,6 @@ __decorateClass([
|
|
|
4770
4196
|
|
|
4771
4197
|
SlMenuItem.define("sl-menu-item");
|
|
4772
4198
|
|
|
4773
|
-
export {
|
|
4199
|
+
export { e$1 as e };
|
|
4774
4200
|
|
|
4775
4201
|
//# sourceMappingURL=chunk.HVTXQL7M.js.map
|