@telia-ace/widget-components-widget-header-flamingo 1.0.45 → 1.0.47

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.
@@ -145,4 +145,4 @@ ${o.map(a=>`${a.name||"<no name>"} (${a.id})
145
145
  align-items: center;
146
146
  fill: var(--trigger-text-color, #fff);
147
147
  }
148
- `];J([ht({attribute:!1})],D.prototype,"symbol",2);J([ht({attribute:!1})],D.prototype,"container",2);J([lt()],D.prototype,"active",2);J([lt()],D.prototype,"loaded",2);J([lt()],D.prototype,"icon",2);const Zs=(i,t,e,s,n)=>i.getAsync("componentResolver").then(r=>(r.registerComponent(t,e),Es(i,t,s||(()=>{}),t,n))),Ks=i=>Zs(i,"widget-header",Promise.resolve().then(()=>require("./widget-header-816ab6a0.js")),t=>{});exports.A=g;exports.Et=As;exports.P=at;exports.WidgetHeaderComponent=Ks;exports.ht=ot;exports.i=xe;exports.mapBranding=Ne;exports.n=ht;exports.pt=_e;exports.s=L;exports.t=lt;exports.x=W;
148
+ `];J([ht({attribute:!1})],D.prototype,"symbol",2);J([ht({attribute:!1})],D.prototype,"container",2);J([lt()],D.prototype,"active",2);J([lt()],D.prototype,"loaded",2);J([lt()],D.prototype,"icon",2);const Zs=(i,t,e,s,n)=>i.getAsync("componentResolver").then(r=>(r.registerComponent(t,e),Es(i,t,s||(()=>{}),t,n))),Ks=i=>Zs(i,"widget-header",Promise.resolve().then(()=>require("./widget-header-b0fdc2a2.js")),t=>{});exports.A=g;exports.Et=As;exports.P=at;exports.WidgetHeaderComponent=Ks;exports.ht=ot;exports.i=xe;exports.mapBranding=Ne;exports.n=ht;exports.pt=_e;exports.s=L;exports.t=lt;exports.x=W;
@@ -2549,7 +2549,7 @@ const Qs = (i, t, e, s, n) => i.getAsync("componentResolver").then((r) => (r.reg
2549
2549
  }), t, n))), li = (i) => Qs(
2550
2550
  i,
2551
2551
  "widget-header",
2552
- import("./widget-header-6b3ce33d.mjs"),
2552
+ import("./widget-header-f27686b8.mjs"),
2553
2553
  (t) => {
2554
2554
  }
2555
2555
  );
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index-18d19996.js");module.exports=e.WidgetHeaderComponent;
1
+ "use strict";const e=require("./index-725dab9c.js");module.exports=e.WidgetHeaderComponent;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { W as f } from "./index-0ac5d882.mjs";
1
+ import { W as f } from "./index-8a70678a.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "dependencies": {
5
- "@telia-ace/widget-runtime-flamingo": "^1.0.45",
5
+ "@telia-ace/widget-runtime-flamingo": "^1.0.47",
6
6
  "@webprovisions/platform": "^1.1.3",
7
7
  "lit": "^2.8.0"
8
8
  },
@@ -1,12 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-18d19996.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-725dab9c.js");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const f=o=>t=>typeof t=="function"?((i,e)=>(customElements.define(i,e),e))(o,t):((i,e)=>{const{kind:s,elements:n}=e;return{kind:s,elements:n,finisher(r){customElements.define(i,r)}}})(o,t);/**
5
+ */const y=o=>t=>typeof t=="function"?((i,e)=>(customElements.define(i,e),e))(o,t):((i,e)=>{const{kind:s,elements:n}=e;return{kind:s,elements:n,finisher(r){customElements.define(i,r)}}})(o,t);/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const y=({finisher:o,descriptor:t})=>(i,e)=>{var s;if(e===void 0){const n=(s=i.originalKey)!==null&&s!==void 0?s:i.key,r=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return o!=null&&(r.finisher=function(h){o(h,n)}),r}{const n=i.constructor;t!==void 0&&Object.defineProperty(i,e,t(e)),o==null||o(n,e)}};/**
9
+ */const _=({finisher:o,descriptor:t})=>(i,e)=>{var s;if(e===void 0){const n=(s=i.originalKey)!==null&&s!==void 0?s:i.key,r=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return o!=null&&(r.finisher=function(h){o(h,n)}),r}{const n=i.constructor;t!==void 0&&Object.defineProperty(i,e,t(e)),o==null||o(n,e)}};/**
10
10
  * @license
11
11
  * Copyright 2021 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
@@ -18,19 +18,19 @@
18
18
  * @license
19
19
  * Copyright 2021 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */let _=class{constructor(t,i,e,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,h)=>{this.unsubscribe&&(this.unsubscribe!==h&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,h)),this.unsubscribe=h},this.host=t,i.context!==void 0){const r=i;this.context=r.context,this.callback=r.callback,this.subscribe=(n=r.subscribe)!==null&&n!==void 0&&n}else this.context=i,this.callback=e,this.subscribe=s!=null&&s;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new v(this.context,this.t,this.subscribe))}};/**
21
+ */let g=class{constructor(t,i,e,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,h)=>{this.unsubscribe&&(this.unsubscribe!==h&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,h)),this.unsubscribe=h},this.host=t,i.context!==void 0){const r=i;this.context=r.context,this.callback=r.callback,this.subscribe=(n=r.subscribe)!==null&&n!==void 0&&n}else this.context=i,this.callback=e,this.subscribe=s!=null&&s;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new v(this.context,this.t,this.subscribe))}};/**
22
22
  * @license
23
23
  * Copyright 2021 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */class g{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[i,{disposer:e}]of this.subscriptions)i(this.o,e)},t!==void 0&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,i=!1){const e=i||!Object.is(t,this.o);this.o=t,e&&this.updateObservers()}addCallback(t,i,e){if(!e)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:i});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}/**
25
+ */class m{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[i,{disposer:e}]of this.subscriptions)i(this.o,e)},t!==void 0&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,i=!1){const e=i||!Object.is(t,this.o);this.o=t,e&&this.updateObservers()}addCallback(t,i,e){if(!e)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:i});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}/**
26
26
  * @license
27
27
  * Copyright 2021 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */class m extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class l extends g{constructor(t,i,e){super(i.context!==void 0?i.initialValue:e),this.onContextRequest=s=>{const n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{const n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;const r=new Set;for(const[h,{consumerHost:u}]of this.subscriptions)r.has(h)||(r.add(h),u.dispatchEvent(new v(this.context,h,!0)));s.stopPropagation()},this.host=t,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new m(this.context))}}/**
29
+ */class C extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class u extends m{constructor(t,i,e){super(i.context!==void 0?i.initialValue:e),this.onContextRequest=s=>{const n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{const n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;const r=new Set;for(const[h,{consumerHost:l}]of this.subscriptions)r.has(h)||(r.add(h),l.dispatchEvent(new v(this.context,h,!0)));s.stopPropagation()},this.host=t,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new C(this.context))}}/**
30
30
  * @license
31
31
  * Copyright 2022 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function C({context:o,subscribe:t}){return y({finisher:(i,e)=>{i.addInitializer(s=>{new _(s,{context:o,callback:n=>{s[e]=n},subscribe:t})})}})}const P="children",w="descriptor",L="container",O="context",E="layout",k="properties";class q{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}setDescriptor(t){this._descriptor=t}setContainer(t){this._container=t}async dispatch(t,i){if(!this._container||!this._descriptor)return;const e=await c.pt.getInstance(this._container),s=new c.P(e).withId(this._descriptor.id);await e.actions(s,this._descriptor.type||c.ht()).dispatch(t,i)}}const R=o=>{const t={};return Object.keys(o).forEach(i=>{i.indexOf("css-")>-1&&(t[i]=o[i])}),t},D=(o,t)=>{const i=R(t);Object.entries(i).forEach(([e,s])=>{o.style.setProperty(e.replace("css-",""),s)})};var W=Object.defineProperty,$=Object.getOwnPropertyDescriptor,d=(o,t,i,e)=>{for(var s=e>1?void 0:e?$(t,i):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(e?r(t,i,s):r(s))||s);return e&&s&&W(t,i,s),s};const j=o=>{class t extends o{constructor(){super(...arguments),this.entry="",this._descriptorProvider=new l(this,w,void 0),this._childrenProvider=new l(this,P,[]),this._propertiesProvider=new l(this,k,{}),this._contextProvider=new l(this,O,{}),this._layoutProvider=new l(this,E,{}),this.actions=new q(this),this.context={},this.layout={},this.properties={}}connectedCallback(){super.connectedCallback(),this.container&&(this.actions.setContainer(this.container),c.pt.getInstance(this.container).then(async e=>{var n;const s=e.nodes.get(this.entry);if(s){this._propertyChangeListener=e.events.subscribe("components:properties-changed",(p,a)=>{s.id===a.node.id&&this._setProperties(a.node.attributes.properties)}),this._contextChangeListener=e.events.subscribe("components:context-changed",(p,a)=>{s.id===a.node.id&&this._setContext(a.node.attributes.context)}),this._layoutChangeListener=e.events.subscribe("components:layout-changed",(p,a)=>{s.id===a.node.id&&this._setLayout(a.node.attributes.layout)});const r="default";this._unmountNode=s.mount(this.container),this._setDescriptor(c.Et(s,r)),this._setProperties(s.attributes.properties),this._setContext(s.attributes.context),this._setLayout(this.layout);const h=s.getChildren(r).map(p=>c.Et(p));this._childrenProvider.setValue(h);const b=(await this.container.getAsync("componentResolver")).getComponent(((n=this.descriptor)==null?void 0:n.type)||"");b.then&&b.then(p=>{this.component=p.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),c.mapBranding(this.context,this.renderRoot.host),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)}}return t.styles=[o.styles??[],c.i`
33
+ */function P({context:o,subscribe:t}){return _({finisher:(i,e)=>{i.addInitializer(s=>{new g(s,{context:o,callback:n=>{s[e]=n},subscribe:t})})}})}const w="children",L="descriptor",O="container",E="context",k="layout",q="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,i){if(!this._container||!this._descriptor)return;const e=await c.pt.getInstance(this._container),s=new c.P(e).withId(this._descriptor.id);await e.actions(s,this._descriptor.type||c.ht()).dispatch(t,i)}}const D=o=>{const t={};return Object.keys(o).forEach(i=>{i.indexOf("css-")>-1&&(t[i]=o[i])}),t},W=(o,t)=>{const i=D(t);Object.entries(i).forEach(([e,s])=>{o.style.setProperty(e.replace("css-",""),s)})};var $=Object.defineProperty,j=Object.getOwnPropertyDescriptor,d=(o,t,i,e)=>{for(var s=e>1?void 0:e?j(t,i):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(e?r(t,i,s):r(s))||s);return e&&s&&$(t,i,s),s};const H=o=>{class t extends o{constructor(){super(...arguments),this.entry="",this._descriptorProvider=new u(this,L,void 0),this._childrenProvider=new u(this,w,[]),this._propertiesProvider=new u(this,q,{}),this._contextProvider=new u(this,E,{}),this._layoutProvider=new u(this,k,{}),this.actions=new R(this),this.context={},this.layout={},this.properties={}}connectedCallback(){super.connectedCallback(),this.container&&(this.actions.setContainer(this.container),c.pt.getInstance(this.container).then(async e=>{var n,r;const s=e.nodes.get(this.entry);if(s){this._propertyChangeListener=e.events.subscribe("components:properties-changed",(p,a)=>{s.id===a.node.id&&this._setProperties(a.node.attributes.properties)}),this._contextChangeListener=e.events.subscribe("components:context-changed",(p,a)=>{s.id===a.node.id&&this._setContext(a.node.attributes.context)}),this._layoutChangeListener=e.events.subscribe("components:layout-changed",(p,a)=>{s.id===a.node.id&&this._setLayout(a.node.attributes.layout)});const h="default";this._unmountNode=s.mount(this.container),this._setDescriptor(c.Et(s,h)),this._setProperties(s.attributes.properties),this._setContext(s.attributes.context),this._setLayout(this.layout);const l=s.getChildren(h).map(p=>c.Et(p));this._childrenProvider.setValue(l);const f=await this.container.getAsync("componentResolver");if(((n=this.descriptor)==null?void 0:n.type)==="area")return;const b=f.getComponent(((r=this.descriptor)==null?void 0:r.type)||"");b.then&&b.then(p=>{this.component=p.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),c.mapBranding(this.context,this.renderRoot.host),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),W(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)}}return t.styles=[o.styles??[],c.i`
34
34
  :host {
35
35
  font-family: var(--font-family);
36
36
  grid-column: span var(--width);
@@ -42,7 +42,7 @@
42
42
  * {
43
43
  box-sizing: border-box;
44
44
  }
45
- `],d([C({context:L}),c.n({attribute:!1})],t.prototype,"container",2),d([c.n()],t.prototype,"entry",2),d([c.t()],t.prototype,"descriptor",2),d([c.t()],t.prototype,"component",2),d([c.t()],t.prototype,"context",2),d([c.t()],t.prototype,"layout",2),d([c.t()],t.prototype,"properties",2),t};var H=Object.defineProperty,V=Object.getOwnPropertyDescriptor,z=(o,t,i,e)=>{for(var s=e>1?void 0:e?V(t,i):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(e?r(t,i,s):r(s))||s);return e&&s&&H(t,i,s),s};const x=j(c.s);exports.WidgetHeaderComponent=class extends x{render(){return c.x` <div class="widget-header">
45
+ `],d([P({context:O}),c.n({attribute:!1})],t.prototype,"container",2),d([c.n()],t.prototype,"entry",2),d([c.t()],t.prototype,"descriptor",2),d([c.t()],t.prototype,"component",2),d([c.t()],t.prototype,"context",2),d([c.t()],t.prototype,"layout",2),d([c.t()],t.prototype,"properties",2),t};var V=Object.defineProperty,z=Object.getOwnPropertyDescriptor,I=(o,t,i,e)=>{for(var s=e>1?void 0:e?z(t,i):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(e?r(t,i,s):r(s))||s);return e&&s&&V(t,i,s),s};const x=H(c.s);exports.WidgetHeaderComponent=class extends x{render(){return c.x` <div class="widget-header">
46
46
  <div>
47
47
  <h1>${this.properties.header}</h1>
48
48
 
@@ -69,4 +69,4 @@
69
69
  margin: 0;
70
70
  padding: 0;
71
71
  }
72
- `];exports.WidgetHeaderComponent=z([f("ace-widget-header")],exports.WidgetHeaderComponent);const I=exports.WidgetHeaderComponent;exports.default=I;
72
+ `];exports.WidgetHeaderComponent=I([y("ace-widget-header")],exports.WidgetHeaderComponent);const N=exports.WidgetHeaderComponent;exports.default=N;
@@ -1,10 +1,10 @@
1
- import { p as _, P, h as w, i as m, n as x, t as p, E as f, m as L, x as y, A as O, s as $ } from "./index-0ac5d882.mjs";
1
+ import { p as _, P as w, h as L, i as m, n as x, t as p, E as f, m as O, x as y, A as $, s as E } from "./index-8a70678a.mjs";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const E = (n) => (t) => typeof t == "function" ? ((i, e) => (customElements.define(i, e), e))(n, t) : ((i, e) => {
7
+ const k = (n) => (t) => typeof t == "function" ? ((i, e) => (customElements.define(i, e), e))(n, t) : ((i, e) => {
8
8
  const { kind: s, elements: o } = e;
9
9
  return { kind: s, elements: o, finisher(r) {
10
10
  customElements.define(i, r);
@@ -15,7 +15,7 @@ const E = (n) => (t) => typeof t == "function" ? ((i, e) => (customElements.defi
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- const k = ({ finisher: n, descriptor: t }) => (i, e) => {
18
+ const R = ({ finisher: n, descriptor: t }) => (i, e) => {
19
19
  var s;
20
20
  if (e === void 0) {
21
21
  const o = (s = i.originalKey) !== null && s !== void 0 ? s : i.key, r = t != null ? { kind: "method", placement: "prototype", key: o, descriptor: t(i.key) } : { ...i, key: o };
@@ -48,7 +48,7 @@ let g = class extends Event {
48
48
  * Copyright 2021 Google LLC
49
49
  * SPDX-License-Identifier: BSD-3-Clause
50
50
  */
51
- let R = class {
51
+ let q = class {
52
52
  constructor(t, i, e, s) {
53
53
  var o;
54
54
  if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (r, c) => {
@@ -75,7 +75,7 @@ let R = class {
75
75
  * Copyright 2021 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
77
  */
78
- class q {
78
+ class D {
79
79
  constructor(t) {
80
80
  this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
81
81
  for (const [i, { disposer: e }] of this.subscriptions)
@@ -110,12 +110,12 @@ class q {
110
110
  * Copyright 2021 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
112
  */
113
- class D extends Event {
113
+ class j extends Event {
114
114
  constructor(t) {
115
115
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
116
116
  }
117
117
  }
118
- class l extends q {
118
+ class l extends D {
119
119
  constructor(t, i, e) {
120
120
  super(i.context !== void 0 ? i.initialValue : e), this.onContextRequest = (s) => {
121
121
  const o = s.composedPath()[0];
@@ -134,7 +134,7 @@ class l extends q {
134
134
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
135
135
  }
136
136
  hostConnected() {
137
- this.host.dispatchEvent(new D(this.context));
137
+ this.host.dispatchEvent(new j(this.context));
138
138
  }
139
139
  }
140
140
  /**
@@ -142,17 +142,17 @@ class l extends q {
142
142
  * Copyright 2022 Google LLC
143
143
  * SPDX-License-Identifier: BSD-3-Clause
144
144
  */
145
- function j({ context: n, subscribe: t }) {
146
- return k({ finisher: (i, e) => {
145
+ function V({ context: n, subscribe: t }) {
146
+ return R({ finisher: (i, e) => {
147
147
  i.addInitializer((s) => {
148
- new R(s, { context: n, callback: (o) => {
148
+ new q(s, { context: n, callback: (o) => {
149
149
  s[e] = o;
150
150
  }, subscribe: t });
151
151
  });
152
152
  } });
153
153
  }
154
- const V = "children", z = "descriptor", W = "container", H = "context", I = "layout", N = "properties";
155
- class A {
154
+ const z = "children", W = "descriptor", H = "container", I = "context", N = "layout", A = "properties";
155
+ class S {
156
156
  constructor(t) {
157
157
  (this.host = t).addController(this);
158
158
  }
@@ -171,44 +171,44 @@ class A {
171
171
  return;
172
172
  const e = await _.getInstance(
173
173
  this._container
174
- ), s = new P(e).withId(
174
+ ), s = new w(e).withId(
175
175
  this._descriptor.id
176
176
  );
177
177
  await e.actions(
178
178
  s,
179
- this._descriptor.type || w()
179
+ this._descriptor.type || L()
180
180
  ).dispatch(t, i);
181
181
  }
182
182
  }
183
- const S = (n) => {
183
+ const B = (n) => {
184
184
  const t = {};
185
185
  return Object.keys(n).forEach((i) => {
186
186
  i.indexOf("css-") > -1 && (t[i] = n[i]);
187
187
  }), t;
188
- }, B = (n, t) => {
189
- const i = S(t);
188
+ }, F = (n, t) => {
189
+ const i = B(t);
190
190
  Object.entries(i).forEach(([e, s]) => {
191
191
  n.style.setProperty(e.replace("css-", ""), s);
192
192
  });
193
193
  };
194
- var F = Object.defineProperty, K = Object.getOwnPropertyDescriptor, a = (n, t, i, e) => {
195
- for (var s = e > 1 ? void 0 : e ? K(t, i) : t, o = n.length - 1, r; o >= 0; o--)
194
+ var K = Object.defineProperty, M = Object.getOwnPropertyDescriptor, a = (n, t, i, e) => {
195
+ for (var s = e > 1 ? void 0 : e ? M(t, i) : t, o = n.length - 1, r; o >= 0; o--)
196
196
  (r = n[o]) && (s = (e ? r(t, i, s) : r(s)) || s);
197
- return e && s && F(t, i, s), s;
197
+ return e && s && K(t, i, s), s;
198
198
  };
199
- const M = (n) => {
199
+ const U = (n) => {
200
200
  class t extends n {
201
201
  constructor() {
202
202
  super(...arguments), this.entry = "", this._descriptorProvider = new l(
203
203
  this,
204
- z,
204
+ W,
205
205
  void 0
206
- ), this._childrenProvider = new l(this, V, []), this._propertiesProvider = new l(this, N, {}), this._contextProvider = new l(this, H, {}), this._layoutProvider = new l(this, I, {}), this.actions = new A(this), this.context = {}, this.layout = {}, this.properties = {};
206
+ ), this._childrenProvider = new l(this, z, []), this._propertiesProvider = new l(this, A, {}), this._contextProvider = new l(this, I, {}), this._layoutProvider = new l(this, N, {}), this.actions = new S(this), this.context = {}, this.layout = {}, this.properties = {};
207
207
  }
208
208
  connectedCallback() {
209
209
  super.connectedCallback(), this.container && (this.actions.setContainer(this.container), _.getInstance(this.container).then(
210
210
  async (e) => {
211
- var o;
211
+ var o, r;
212
212
  const s = e.nodes.get(this.entry);
213
213
  if (s) {
214
214
  this._propertyChangeListener = e.events.subscribe(
@@ -227,12 +227,15 @@ const M = (n) => {
227
227
  s.id === h.node.id && this._setLayout(h.node.attributes.layout);
228
228
  }
229
229
  );
230
- const r = "default";
231
- this._unmountNode = s.mount(this.container), this._setDescriptor(f(s, r)), this._setProperties(s.attributes.properties), this._setContext(s.attributes.context), this._setLayout(this.layout);
232
- const c = s.getChildren(r).map((d) => f(d));
233
- this._childrenProvider.setValue(c);
234
- const v = (await this.container.getAsync("componentResolver")).getComponent(
235
- ((o = this.descriptor) == null ? void 0 : o.type) || ""
230
+ const c = "default";
231
+ this._unmountNode = s.mount(this.container), this._setDescriptor(f(s, c)), this._setProperties(s.attributes.properties), this._setContext(s.attributes.context), this._setLayout(this.layout);
232
+ const b = s.getChildren(c).map((d) => f(d));
233
+ this._childrenProvider.setValue(b);
234
+ const P = await this.container.getAsync("componentResolver");
235
+ if (((o = this.descriptor) == null ? void 0 : o.type) === "area")
236
+ return;
237
+ const v = P.getComponent(
238
+ ((r = this.descriptor) == null ? void 0 : r.type) || ""
236
239
  );
237
240
  v.then && v.then((d) => {
238
241
  this.component = d.default;
@@ -245,10 +248,10 @@ const M = (n) => {
245
248
  super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._contextChangeListener && this._contextChangeListener(), this._layoutChangeListener && this._layoutChangeListener(), this._unmountNode && this._unmountNode();
246
249
  }
247
250
  updated() {
248
- this.container && this.actions.setContainer(this.container), L(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
251
+ this.container && this.actions.setContainer(this.container), O(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
249
252
  "--width",
250
253
  this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
251
- ), B(this.renderRoot.host, this.properties);
254
+ ), F(this.renderRoot.host, this.properties);
252
255
  }
253
256
  _setProperties(e) {
254
257
  this._propertiesProvider.setValue(e), this.properties = e;
@@ -279,7 +282,7 @@ const M = (n) => {
279
282
  }
280
283
  `
281
284
  ], a([
282
- j({ context: W }),
285
+ V({ context: H }),
283
286
  x({ attribute: !1 })
284
287
  ], t.prototype, "container", 2), a([
285
288
  x()
@@ -295,19 +298,19 @@ const M = (n) => {
295
298
  p()
296
299
  ], t.prototype, "properties", 2), t;
297
300
  };
298
- var U = Object.defineProperty, G = Object.getOwnPropertyDescriptor, J = (n, t, i, e) => {
299
- for (var s = e > 1 ? void 0 : e ? G(t, i) : t, o = n.length - 1, r; o >= 0; o--)
301
+ var G = Object.defineProperty, J = Object.getOwnPropertyDescriptor, Q = (n, t, i, e) => {
302
+ for (var s = e > 1 ? void 0 : e ? J(t, i) : t, o = n.length - 1, r; o >= 0; o--)
300
303
  (r = n[o]) && (s = (e ? r(t, i, s) : r(s)) || s);
301
- return e && s && U(t, i, s), s;
304
+ return e && s && G(t, i, s), s;
302
305
  };
303
- const C = M($);
306
+ const C = U(E);
304
307
  let u = class extends C {
305
308
  render() {
306
309
  return y` <div class="widget-header">
307
310
  <div>
308
311
  <h1>${this.properties.header}</h1>
309
312
 
310
- ${this.properties.tagline ? y`<p>${this.properties.tagline}</p>` : O}
313
+ ${this.properties.tagline ? y`<p>${this.properties.tagline}</p>` : $}
311
314
  </div>
312
315
  </div>`;
313
316
  }
@@ -337,11 +340,11 @@ u.styles = [
337
340
  }
338
341
  `
339
342
  ];
340
- u = J([
341
- E("ace-widget-header")
343
+ u = Q([
344
+ k("ace-widget-header")
342
345
  ], u);
343
- const Y = u;
346
+ const Z = u;
344
347
  export {
345
348
  u as WidgetHeaderComponent,
346
- Y as default
349
+ Z as default
347
350
  };