@telia-ace/widget-components-list-flamingo 1.1.121-rc.1 → 1.1.121-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,11 +14,11 @@
14
14
  * @license
15
15
  * Copyright 2019 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Z=globalThis,Pt=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kt=Symbol(),Bt=new WeakMap;let ne=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==kt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Pt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Bt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Bt.set(e,t))}return t}toString(){return this.cssText}};const He=r=>new ne(typeof r=="string"?r:r+"",void 0,kt),oe=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new ne(e,r,kt)},Re=(r,t)=>{if(Pt)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=Z.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},zt=Pt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return He(e)})(r):r;/**
17
+ */const Z=globalThis,Pt=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kt=Symbol(),Bt=new WeakMap;let ne=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==kt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Pt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Bt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Bt.set(e,t))}return t}toString(){return this.cssText}};const He=r=>new ne(typeof r=="string"?r:r+"",void 0,kt),oe=(r,...t)=>{const e=r.length===1?r[0]:t.reduce(((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1]),r[0]);return new ne(e,r,kt)},Re=(r,t)=>{if(Pt)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const e of t){const s=document.createElement("style"),i=Z.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},zt=Pt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return He(e)})(r):r;/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const{is:Le,defineProperty:Be,getOwnPropertyDescriptor:ze,getOwnPropertyNames:We,getOwnPropertySymbols:Ve,getPrototypeOf:Je}=Object,x=globalThis,Wt=x.trustedTypes,qe=Wt?Wt.emptyScript:"",ft=x.reactiveElementPolyfillSupport,L=(r,t)=>r,X={toAttribute(r,t){switch(t){case Boolean:r=r?qe:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Nt=(r,t)=>!Le(r,t),Vt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:Nt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),x.litPropertyMetadata??(x.litPropertyMetadata=new WeakMap);let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Vt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Be(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=ze(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;const t=Je(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){const e=this.properties,s=[...We(e),...Ve(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(zt(i))}else t!==void 0&&e.push(zt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Re(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:X;this._$Em=i;const l=c.fromAttribute(e,a.type);this[i]=l??((o=this._$Ej)==null?void 0:o.get(i))??l,this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??Nt)(o,e)||s.useDefault&&s.reflect&&o===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i){const{wrapped:a}=o,c=this[n];a!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,o,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),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=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[L("elementProperties")]=new Map,T[L("finalized")]=new Map,ft==null||ft({ReactiveElement:T}),(x.reactiveElementVersions??(x.reactiveElementVersions=[])).push("2.1.1");/**
21
+ */const{is:Le,defineProperty:Be,getOwnPropertyDescriptor:ze,getOwnPropertyNames:We,getOwnPropertySymbols:Ve,getPrototypeOf:Je}=Object,x=globalThis,Wt=x.trustedTypes,qe=Wt?Wt.emptyScript:"",ft=x.reactiveElementPolyfillSupport,L=(r,t)=>r,X={toAttribute(r,t){switch(t){case Boolean:r=r?qe:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Nt=(r,t)=>!Le(r,t),Vt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:Nt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),x.litPropertyMetadata??(x.litPropertyMetadata=new WeakMap);let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Vt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Be(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=ze(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;const t=Je(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){const e=this.properties,s=[...We(e),...Ve(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(zt(i))}else t!==void 0&&e.push(zt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((e=>e(this)))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Re(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach((e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:X;this._$Em=i;const l=c.fromAttribute(e,a.type);this[i]=l??((o=this._$Ej)==null?void 0:o.get(i))??l,this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??Nt)(o,e)||s.useDefault&&s.reflect&&o===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i){const{wrapped:a}=o,c=this[n];a!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,o,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach((i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)})),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach((s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)})),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=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[L("elementProperties")]=new Map,T[L("finalized")]=new Map,ft==null||ft({ReactiveElement:T}),(x.reactiveElementVersions??(x.reactiveElementVersions=[])).push("2.1.1");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -44,7 +44,7 @@
44
44
  * @license
45
45
  * Copyright 2018 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const cs=os(class extends as{constructor(r){var t;if(super(r),r.type!==ns.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var s,i;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return k}}),K=(r,t,e)=>{r&&e.style.setProperty(t,r)},hs=(r,t)=>{var e,s,i,n;K((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),K((s=r.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),K((i=r.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),K((n=r.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var ls=Object.defineProperty,q=(r,t,e,s)=>{for(var i=void 0,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=o(t,e,i)||i);return i&&ls(t,e,i),i};const Ut=class Ut extends M{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(this.symbol),this.loaded=!0,this._applyBranding()}_toggleActive(){this.active=!this.active}_applyBranding(){var e;const t=((e=this.container)==null?void 0:e.get("$settings"))??{};t!=null&&t.branding&&hs(t.branding,this)}async _renderSymbol(t){const e=async s=>await Promise.resolve().then(()=>require("./index-BG1RS3tz.js")).then(n=>n[s]);if(t){const{type:s,content:i}=t;switch(s){case"Telia":{const n=await e(i);return n?R`<telia-icon
47
+ */const cs=os(class extends as{constructor(r){var t;if(super(r),r.type!==ns.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((t=>r[t])).join(" ")+" "}update(r,[t]){var s,i;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((n=>n!==""))));for(const n in t)t[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return k}}),K=(r,t,e)=>{r&&e.style.setProperty(t,r)},hs=(r,t)=>{var e,s,i,n;K((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),K((s=r.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),K((i=r.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),K((n=r.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var ls=Object.defineProperty,q=(r,t,e,s)=>{for(var i=void 0,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=o(t,e,i)||i);return i&&ls(t,e,i),i};const Ut=class Ut extends M{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(this.symbol),this.loaded=!0,this._applyBranding()}_toggleActive(){this.active=!this.active}_applyBranding(){var e;const t=((e=this.container)==null?void 0:e.get("$settings"))??{};t!=null&&t.branding&&hs(t.branding,this)}async _renderSymbol(t){const e=async s=>await Promise.resolve().then(()=>require("./index-BG1RS3tz.js")).then(n=>n[s]);if(t){const{type:s,content:i}=t;switch(s){case"Telia":{const n=await e(i);return n?R`<telia-icon
48
48
  class="trigger-icon"
49
49
  svg=${n.svg}
50
50
  size="lg"
@@ -151,4 +151,4 @@
151
151
  align-items: center;
152
152
  fill: var(--trigger-text-color, var(--text-on-primary-background));
153
153
  }
154
- `];let N=Ut;q([ot({attribute:!1})],N.prototype,"symbol");q([ot({attribute:!1})],N.prototype,"container");q([at()],N.prototype,"active");q([at()],N.prototype,"loaded");q([at()],N.prototype,"icon");const ps=async(r,t)=>{const e=r.properties().provider;let s={},i="";Array.isArray(e)?(i=e[0],s=e[1]):i=e||"";const n=await t.getAsync(i);if(!n)throw new Error("No provider defined in ListComponent");return n.applyComponentNodeSettings(r.node.id,s),{provider:n,settings:s}},ds=async(r,t)=>{const{provider:e,settings:s={}}=await ps(r,t);return{addResource:(i,n)=>e.addResource(i,n),getData:(i,n)=>e.getData(i,n,s)}},us=(r,t,e,s,i)=>r.getAsync("componentResolver").then(n=>(n.registerComponent(t,e),Se(r,t,s||(()=>{}),t,i))),ms=r=>us(r,"list",Promise.resolve().then(()=>require("./list-CjHULeES.js")),t=>{(async()=>{t.writeProperties({loading:!0,items:[],totalItems:0});const i=await(await ds(t,r)).getData("items",{});t.writeProperties({loading:!1,items:(i==null?void 0:i.items)||[],totalItems:(i==null?void 0:i.totalItems)||0})})()});exports.E=m;exports.ListComponent=ms;exports.N=rt;exports.dt=Ee;exports.et=ee;exports.et$1=st;exports.i=oe;exports.i$1=M;exports.n=ot;exports.r=at;exports.x=R;
154
+ `];let N=Ut;q([ot({attribute:!1})],N.prototype,"symbol");q([ot({attribute:!1})],N.prototype,"container");q([at()],N.prototype,"active");q([at()],N.prototype,"loaded");q([at()],N.prototype,"icon");const ps=async(r,t)=>{const e=r.properties().provider;let s={},i="";Array.isArray(e)?(i=e[0],s=e[1]):i=e||"";const n=await t.getAsync(i);if(!n)throw new Error("No provider defined in ListComponent");return n.applyComponentNodeSettings(r.node.id,s),{provider:n,settings:s}},ds=async(r,t)=>{const{provider:e,settings:s={}}=await ps(r,t);return{addResource:(i,n)=>e.addResource(i,n),getData:(i,n)=>e.getData(i,n,s)}},us=(r,t,e,s,i)=>r.getAsync("componentResolver").then(n=>(n.registerComponent(t,e),Se(r,t,s||(()=>{}),t,i))),ms=r=>us(r,"list",Promise.resolve().then(()=>require("./list-PwyO66Gx.js")),t=>{(async()=>{t.writeProperties({loading:!0,items:[],totalItems:0});const i=await(await ds(t,r)).getData("items",{});t.writeProperties({loading:!1,items:(i==null?void 0:i.items)||[],totalItems:(i==null?void 0:i.totalItems)||0})})()});exports.E=m;exports.ListComponent=ms;exports.N=rt;exports.dt=Ee;exports.et=ee;exports.et$1=st;exports.i=oe;exports.i$1=M;exports.n=ot;exports.r=at;exports.x=R;
@@ -1101,14 +1101,14 @@ let ie = class {
1101
1101
  }
1102
1102
  };
1103
1103
  const je = (r) => new ie(typeof r == "string" ? r : r + "", void 0, Ot), Ie = (r, ...t) => {
1104
- const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
1104
+ const e = r.length === 1 ? r[0] : t.reduce(((s, i, n) => s + ((o) => {
1105
1105
  if (o._$cssResult$ === !0) return o.cssText;
1106
1106
  if (typeof o == "number") return o;
1107
1107
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1108
- })(i) + r[n + 1], r[0]);
1108
+ })(i) + r[n + 1]), r[0]);
1109
1109
  return new ie(e, r, Ot);
1110
1110
  }, He = (r, t) => {
1111
- if (Ct) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
1111
+ if (Ct) r.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
1112
1112
  else for (const e of t) {
1113
1113
  const s = document.createElement("style"), i = Z.litNonce;
1114
1114
  i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
@@ -1220,7 +1220,7 @@ let T = class extends HTMLElement {
1220
1220
  }
1221
1221
  _$Ev() {
1222
1222
  var t;
1223
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
1223
+ this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach(((e) => e(this)));
1224
1224
  }
1225
1225
  addController(t) {
1226
1226
  var e;
@@ -1241,19 +1241,19 @@ let T = class extends HTMLElement {
1241
1241
  }
1242
1242
  connectedCallback() {
1243
1243
  var t;
1244
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
1244
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach(((e) => {
1245
1245
  var s;
1246
1246
  return (s = e.hostConnected) == null ? void 0 : s.call(e);
1247
- });
1247
+ }));
1248
1248
  }
1249
1249
  enableUpdating(t) {
1250
1250
  }
1251
1251
  disconnectedCallback() {
1252
1252
  var t;
1253
- (t = this._$EO) == null || t.forEach((e) => {
1253
+ (t = this._$EO) == null || t.forEach(((e) => {
1254
1254
  var s;
1255
1255
  return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
1256
- });
1256
+ }));
1257
1257
  }
1258
1258
  attributeChangedCallback(t, e, s) {
1259
1259
  this._$AK(t, s);
@@ -1318,10 +1318,10 @@ let T = class extends HTMLElement {
1318
1318
  let t = !1;
1319
1319
  const e = this._$AL;
1320
1320
  try {
1321
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
1321
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach(((i) => {
1322
1322
  var n;
1323
1323
  return (n = i.hostUpdate) == null ? void 0 : n.call(i);
1324
- }), this.update(e)) : this._$EM();
1324
+ })), this.update(e)) : this._$EM();
1325
1325
  } catch (i) {
1326
1326
  throw t = !1, this._$EM(), i;
1327
1327
  }
@@ -1331,10 +1331,10 @@ let T = class extends HTMLElement {
1331
1331
  }
1332
1332
  _$AE(t) {
1333
1333
  var e;
1334
- (e = this._$EO) == null || e.forEach((s) => {
1334
+ (e = this._$EO) == null || e.forEach(((s) => {
1335
1335
  var i;
1336
1336
  return (i = s.hostUpdated) == null ? void 0 : i.call(s);
1337
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1337
+ })), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1338
1338
  }
1339
1339
  _$EM() {
1340
1340
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
@@ -1349,7 +1349,7 @@ let T = class extends HTMLElement {
1349
1349
  return !0;
1350
1350
  }
1351
1351
  update(t) {
1352
- this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
1352
+ this._$Eq && (this._$Eq = this._$Eq.forEach(((e) => this._$ET(e, this[e])))), this._$EM();
1353
1353
  }
1354
1354
  updated(t) {
1355
1355
  }
@@ -1702,12 +1702,12 @@ const as = ns(class extends os {
1702
1702
  if (super(r), r.type !== is.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1703
1703
  }
1704
1704
  render(r) {
1705
- return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
1705
+ return " " + Object.keys(r).filter(((t) => r[t])).join(" ") + " ";
1706
1706
  }
1707
1707
  update(r, [t]) {
1708
1708
  var s, i;
1709
1709
  if (this.st === void 0) {
1710
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1710
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter(((n) => n !== ""))));
1711
1711
  for (const n in t) t[n] && !((s = this.nt) != null && s.has(n)) && this.st.add(n);
1712
1712
  return this.render(t);
1713
1713
  }
@@ -1927,7 +1927,7 @@ const ls = async (r, t) => {
1927
1927
  }), t, i))), xs = (r) => ds(
1928
1928
  r,
1929
1929
  "list",
1930
- import("./list-Dji0SB0H.mjs"),
1930
+ import("./list-Bi9qAdTU.mjs"),
1931
1931
  (t) => {
1932
1932
  (async () => {
1933
1933
  t.writeProperties({ loading: !0, items: [], totalItems: 0 });
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index-CsqCL9RN.js");module.exports=e.ListComponent;
1
+ "use strict";const e=require("./index-DB9rgOBa.js");module.exports=e.ListComponent;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { L as f } from "./index-DvwofZDZ.mjs";
1
+ import { L as f } from "./index-mVEjgFep.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,13 @@
1
- import { e as g, N as k, a as E, i as C, d as y, n as _, r as u, x, E as $, b as q } from "./index-DvwofZDZ.mjs";
1
+ import { e as g, N as k, a as E, i as C, d as y, n as _, r as u, x, E as $, b as q } from "./index-mVEjgFep.mjs";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
7
  const O = (o) => (t, s) => {
8
- s !== void 0 ? s.addInitializer(() => {
8
+ s !== void 0 ? s.addInitializer((() => {
9
9
  customElements.define(o, t);
10
- }) : customElements.define(o, t);
10
+ })) : customElements.define(o, t);
11
11
  };
12
12
  /**
13
13
  * @license
@@ -120,15 +120,15 @@ class p extends R {
120
120
  */
121
121
  function V({ context: o, subscribe: t }) {
122
122
  return (s, n) => {
123
- typeof n == "object" ? n.addInitializer(function() {
123
+ typeof n == "object" ? n.addInitializer((function() {
124
124
  new m(this, { context: o, callback: (e) => {
125
125
  s.set.call(this, e);
126
126
  }, subscribe: t });
127
- }) : s.constructor.addInitializer((e) => {
127
+ })) : s.constructor.addInitializer(((e) => {
128
128
  new m(e, { context: o, callback: (i) => {
129
129
  e[n] = i;
130
130
  }, subscribe: t });
131
- });
131
+ }));
132
132
  };
133
133
  }
134
134
  const z = "children", j = "descriptor", I = "container", N = "context", T = "layout", A = "properties";
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CsqCL9RN.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-DB9rgOBa.js");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const m=o=>(t,s)=>{s!==void 0?s.addInitializer(()=>{customElements.define(o,t)}):customElements.define(o,t)};/**
5
+ */const m=o=>(t,s)=>{s!==void 0?s.addInitializer((()=>{customElements.define(o,t)})):customElements.define(o,t)};/**
6
6
  * @license
7
7
  * Copyright 2021 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
@@ -26,7 +26,7 @@
26
26
  * @license
27
27
  * Copyright 2022 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function P({context:o,subscribe:t}){return(s,n)=>{typeof n=="object"?n.addInitializer(function(){new v(this,{context:o,callback:e=>{s.set.call(this,e)},subscribe:t})}):s.constructor.addInitializer(e=>{new v(e,{context:o,callback:i=>{e[n]=i},subscribe:t})})}}const w="children",L="descriptor",k="container",E="context",q="layout",O="properties";class R{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}setDescriptor(t){this._descriptor=t}setContainer(t){this._container=t}async dispatch(t,s){if(!this._container||!this._descriptor)return;const n=await c.et.getInstance(this._container),e=new c.N(n).withId(this._descriptor.id);await n.actions(e,this._descriptor.type||c.et$1()).dispatch(t,s)}}const $=o=>{const t={};return Object.keys(o).forEach(s=>{s.indexOf("css-")>-1&&(t[s]=o[s])}),t},D=(o,t)=>{const s=$(t);Object.entries(s).forEach(([n,e])=>{o.style.setProperty(n.replace("css-",""),e)})};var V=Object.defineProperty,d=(o,t,s,n)=>{for(var e=void 0,i=o.length-1,r;i>=0;i--)(r=o[i])&&(e=r(t,s,e)||e);return e&&V(t,s,e),e};const j=o=>{const s=class s extends o{constructor(){super(...arguments),this.entry="",this._descriptorProvider=new p(this,L,void 0),this._childrenProvider=new p(this,w,[]),this._propertiesProvider=new p(this,O,{}),this._contextProvider=new p(this,E,{}),this._layoutProvider=new p(this,q,{}),this.actions=new R(this),this.context={},this.layout={},this.properties={}}connectedCallback(){super.connectedCallback(),this.container&&(this.actions.setContainer(this.container),c.et.getInstance(this.container).then(async e=>{var r,h;const i=e.nodes.get(this.entry);if(i){this._propertyChangeListener=e.events.subscribe("components:properties-changed",(l,a)=>{i.id===a.node.id&&this._setProperties(a.node.attributes.properties)}),this._contextChangeListener=e.events.subscribe("components:context-changed",(l,a)=>{i.id===a.node.id&&this._setContext(a.node.attributes.context)}),this._layoutChangeListener=e.events.subscribe("components:layout-changed",(l,a)=>{i.id===a.node.id&&this._setLayout(a.node.attributes.layout)});const u="default";this._unmountNode=i.mount(this.container),this._setDescriptor(c.dt(i,u)),this._setProperties(i.attributes.properties),this._setContext(i.attributes.context),this._setLayout(this.layout);const b=i.getChildren(u).map(l=>c.dt(l));this._childrenProvider.setValue(b);const _=await this.container.getAsync("componentResolver");if(((r=this.descriptor)==null?void 0:r.type)==="area")return;const x=_.getComponent(((h=this.descriptor)==null?void 0:h.type)||"");x.then&&x.then(l=>{this.component=l.default})}}))}disconnectedCallback(){super.disconnectedCallback(),this._propertyChangeListener&&this._propertyChangeListener(),this._contextChangeListener&&this._contextChangeListener(),this._layoutChangeListener&&this._layoutChangeListener(),this._unmountNode&&this._unmountNode()}updated(){this.container&&this.actions.setContainer(this.container),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),D(this.renderRoot.host,this.properties)}_setProperties(e){this._propertiesProvider.setValue(e),this.properties=e}_setContext(e){this._contextProvider.setValue(e),this.context=e}_setLayout(e){this._layoutProvider.setValue(e),this.layout=e}_setDescriptor(e){this.descriptor=e,this._descriptorProvider.setValue(e),this.actions.setDescriptor(e)}};s.styles=[o.styles??[],c.i`
29
+ */function P({context:o,subscribe:t}){return(s,n)=>{typeof n=="object"?n.addInitializer((function(){new v(this,{context:o,callback:e=>{s.set.call(this,e)},subscribe:t})})):s.constructor.addInitializer((e=>{new v(e,{context:o,callback:i=>{e[n]=i},subscribe:t})}))}}const w="children",L="descriptor",k="container",E="context",q="layout",O="properties";class R{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}setDescriptor(t){this._descriptor=t}setContainer(t){this._container=t}async dispatch(t,s){if(!this._container||!this._descriptor)return;const n=await c.et.getInstance(this._container),e=new c.N(n).withId(this._descriptor.id);await n.actions(e,this._descriptor.type||c.et$1()).dispatch(t,s)}}const $=o=>{const t={};return Object.keys(o).forEach(s=>{s.indexOf("css-")>-1&&(t[s]=o[s])}),t},D=(o,t)=>{const s=$(t);Object.entries(s).forEach(([n,e])=>{o.style.setProperty(n.replace("css-",""),e)})};var V=Object.defineProperty,d=(o,t,s,n)=>{for(var e=void 0,i=o.length-1,r;i>=0;i--)(r=o[i])&&(e=r(t,s,e)||e);return e&&V(t,s,e),e};const j=o=>{const s=class s extends o{constructor(){super(...arguments),this.entry="",this._descriptorProvider=new p(this,L,void 0),this._childrenProvider=new p(this,w,[]),this._propertiesProvider=new p(this,O,{}),this._contextProvider=new p(this,E,{}),this._layoutProvider=new p(this,q,{}),this.actions=new R(this),this.context={},this.layout={},this.properties={}}connectedCallback(){super.connectedCallback(),this.container&&(this.actions.setContainer(this.container),c.et.getInstance(this.container).then(async e=>{var r,h;const i=e.nodes.get(this.entry);if(i){this._propertyChangeListener=e.events.subscribe("components:properties-changed",(l,a)=>{i.id===a.node.id&&this._setProperties(a.node.attributes.properties)}),this._contextChangeListener=e.events.subscribe("components:context-changed",(l,a)=>{i.id===a.node.id&&this._setContext(a.node.attributes.context)}),this._layoutChangeListener=e.events.subscribe("components:layout-changed",(l,a)=>{i.id===a.node.id&&this._setLayout(a.node.attributes.layout)});const u="default";this._unmountNode=i.mount(this.container),this._setDescriptor(c.dt(i,u)),this._setProperties(i.attributes.properties),this._setContext(i.attributes.context),this._setLayout(this.layout);const b=i.getChildren(u).map(l=>c.dt(l));this._childrenProvider.setValue(b);const _=await this.container.getAsync("componentResolver");if(((r=this.descriptor)==null?void 0:r.type)==="area")return;const x=_.getComponent(((h=this.descriptor)==null?void 0:h.type)||"");x.then&&x.then(l=>{this.component=l.default})}}))}disconnectedCallback(){super.disconnectedCallback(),this._propertyChangeListener&&this._propertyChangeListener(),this._contextChangeListener&&this._contextChangeListener(),this._layoutChangeListener&&this._layoutChangeListener(),this._unmountNode&&this._unmountNode()}updated(){this.container&&this.actions.setContainer(this.container),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),D(this.renderRoot.host,this.properties)}_setProperties(e){this._propertiesProvider.setValue(e),this.properties=e}_setContext(e){this._contextProvider.setValue(e),this.context=e}_setLayout(e){this._layoutProvider.setValue(e),this.layout=e}_setDescriptor(e){this.descriptor=e,this._descriptorProvider.setValue(e),this.actions.setDescriptor(e)}};s.styles=[o.styles??[],c.i`
30
30
  :host {
31
31
  font-family: var(--font-family);
32
32
  grid-column: span var(--width);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-list-flamingo",
3
- "version": "1.1.121-rc.1",
3
+ "version": "1.1.121-rc.2",
4
4
  "dependencies": {
5
- "@telia-ace/widget-runtime-flamingo": "1.1.121-rc.1",
5
+ "@telia-ace/widget-runtime-flamingo": "1.1.121-rc.2",
6
6
  "@webprovisions/platform": "^1.1.3",
7
7
  "lit": "^3.0.2"
8
8
  },