@telia-ace/widget-side-menu 1.1.76-rc.13 → 1.1.76-rc.14

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/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const n=async e=>{e.registerComponent("side-menu",Promise.resolve().then(()=>require("./side-menu-93a841be.js")))};module.exports=n;
1
+ "use strict";const n=async e=>{e.registerComponent("side-menu",Promise.resolve().then(()=>require("./side-menu-bf0bfde7.js")))};module.exports=n;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const n = async (e) => {
2
- e.registerComponent("side-menu", import("./side-menu-447ffdb0.mjs"));
2
+ e.registerComponent("side-menu", import("./side-menu-f6bbf50c.mjs"));
3
3
  };
4
4
  export {
5
5
  n as default
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-side-menu",
3
- "version": "1.1.76-rc.13",
3
+ "version": "1.1.76-rc.14",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "rxjs": "^7.8.1",
7
- "@telia-ace/widget-core-flamingo": "1.1.76-rc.13",
7
+ "@telia-ace/widget-core-flamingo": "1.1.76-rc.14",
8
8
  "@teliads/components": "^22.1.1",
9
9
  "@lit-labs/motion": "^1.0.6",
10
10
  "lit-html": "^3.0.2"
@@ -62,7 +62,7 @@
62
62
  * @license
63
63
  * Copyright 2020 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const bt=()=>new un;let un=class{};const Bt=new WeakMap,se=ie(class extends Si{render(i){return p}update(i,[t]){var s;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=Bt.get(t);e===void 0&&(e=new WeakMap,Bt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t;return typeof this.Y=="function"?(i=Bt.get(this.ht??globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ot=(i,t,e,s)=>{for(var n=s>1?void 0:s?dn(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&hn(t,e,n),n};class T extends x{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=bt(),this.widgetActive$=new os(!1),this.componentIsDestroyed$=new Ct}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e})}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ei(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return E` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>cn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?E`<telia-icon
65
+ */const bt=()=>new un;let un=class{};const Bt=new WeakMap,se=ie(class extends Si{render(i){return p}update(i,[t]){var s;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=Bt.get(t);e===void 0&&(e=new WeakMap,Bt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t;return typeof this.Y=="function"?(i=Bt.get(this.ht??globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ot=(i,t,e,s)=>{for(var n=s>1?void 0:s?dn(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&hn(t,e,n),n};class T extends x{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=bt(),this.widgetActive$=new os(!1),this.componentIsDestroyed$=new Ct}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ei(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return E` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>cn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?E`<telia-icon
66
66
  class="trigger-icon"
67
67
  svg=${u.svg}
68
68
  size="lg"
@@ -2164,10 +2164,13 @@ class T extends x {
2164
2164
  }), this.widgetActive$.next(!1), this.showTrigger());
2165
2165
  }
2166
2166
  notify(t, e = {}) {
2167
- window != null && window.parent && window.parent.postMessage({
2168
- type: t,
2169
- data: e
2170
- });
2167
+ window != null && window.parent && window.parent.postMessage(
2168
+ {
2169
+ type: t,
2170
+ data: e
2171
+ },
2172
+ "*"
2173
+ );
2171
2174
  }
2172
2175
  _applyBranding() {
2173
2176
  var t;