@telia-ace/widget-components-area-flamingo 1.1.70-rc.26 → 1.1.70-rc.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -376,7 +376,7 @@
376
376
  animation: slideDown 0.3s linear;
377
377
  pointer-events: none;
378
378
  }
379
- `;$i([g({attribute:!1}),mi({context:_i})],At.prototype,"application",2);var wi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,xt=(s,t,e,i)=>{for(var r=i>1?void 0:i?Ai(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&wi(t,e,r),r};class V extends m{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===wt.Trigger){const t=new _;return t.application=this.widget,t}return this.widget.render()}}V.styles=[P`
379
+ `;$i([g({attribute:!1}),mi({context:_i})],At.prototype,"application",2);var wi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,xt=(s,t,e,i)=>{for(var r=i>1?void 0:i?Ai(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&wi(t,e,r),r};class V extends m{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.ace;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===wt.Trigger){const t=new _;return t.application=this.widget,t}return this.widget.render()}}V.styles=[P`
380
380
  :host {
381
381
  display: block;
382
382
  }
@@ -2199,7 +2199,7 @@ class V extends m {
2199
2199
  this.widget && (await this.widget.activate(), this.status = "activated");
2200
2200
  }
2201
2201
  async getGlobalEnvironment() {
2202
- const t = globalThis.widgets;
2202
+ const t = globalThis.ace;
2203
2203
  t && (this.widget = t.applications.find(
2204
2204
  (e) => e.name === this.name
2205
2205
  ), await this.activate());
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-956d535d.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-ac87635e.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const o = async (e) => {
2
- e.registerComponent("area", import("./area-a991bdf3.mjs"));
2
+ e.registerComponent("area", import("./area-c2018c20.mjs"));
3
3
  };
4
4
  export {
5
5
  o as default
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.1.70-rc.26",
3
+ "version": "1.1.70-rc.28",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.70-rc.26",
5
+ "@telia-ace/widget-core-flamingo": "1.1.70-rc.28",
6
6
  "lit": "^3.0.2"
7
7
  },
8
8
  "main": "./index.js",