@telia-ace/widget-components-widget-header-flamingo 1.1.111-rc.8 → 1.1.111
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 r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-DGa0JcBS.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.111
|
|
3
|
+
"version": "1.1.111",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.111
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.111",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
|
-
"@lit-labs/motion": "^1.0.
|
|
9
|
+
"@lit-labs/motion": "^1.0.8",
|
|
10
10
|
"rxjs": "^7.8.1",
|
|
11
11
|
"lit-html": "^3.0.2"
|
|
12
12
|
},
|
|
@@ -2412,8 +2412,8 @@ var nt = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i)
|
|
|
2412
2412
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2413
2413
|
*/
|
|
2414
2414
|
let xn = class extends Event {
|
|
2415
|
-
constructor(t, e, s) {
|
|
2416
|
-
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.
|
|
2415
|
+
constructor(t, e, s, n) {
|
|
2416
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = n ?? !1;
|
|
2417
2417
|
}
|
|
2418
2418
|
};
|
|
2419
2419
|
/**
|
|
@@ -2460,21 +2460,21 @@ class Sn {
|
|
|
2460
2460
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2461
2461
|
*/
|
|
2462
2462
|
let An = class extends Event {
|
|
2463
|
-
constructor(t) {
|
|
2464
|
-
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
2463
|
+
constructor(t, e) {
|
|
2464
|
+
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
2465
2465
|
}
|
|
2466
2466
|
};
|
|
2467
2467
|
class ze extends Sn {
|
|
2468
2468
|
constructor(t, e, s) {
|
|
2469
2469
|
var n, r;
|
|
2470
2470
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
|
|
2471
|
-
|
|
2472
|
-
|
|
2471
|
+
if (o.context !== this.context) return;
|
|
2472
|
+
const a = o.contextTarget ?? o.composedPath()[0];
|
|
2473
|
+
a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
|
2473
2474
|
}, this.onProviderRequest = (o) => {
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
const l
|
|
2477
|
-
for (const [c, { consumerHost: u }] of this.subscriptions) l.has(c) || (l.add(c), u.dispatchEvent(new xn(this.context, c, !0)));
|
|
2475
|
+
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
2476
|
+
const a = /* @__PURE__ */ new Set();
|
|
2477
|
+
for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new xn(this.context, c, l, !0)));
|
|
2478
2478
|
o.stopPropagation();
|
|
2479
2479
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (n = this.host).addController) == null || r.call(n, this);
|
|
2480
2480
|
}
|
|
@@ -2482,7 +2482,7 @@ class ze extends Sn {
|
|
|
2482
2482
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
2483
2483
|
}
|
|
2484
2484
|
hostConnected() {
|
|
2485
|
-
this.host.dispatchEvent(new An(this.context));
|
|
2485
|
+
this.host.dispatchEvent(new An(this.context, this.host));
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
2488
|
/**
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
* @license
|
|
269
269
|
* Copyright 2021 Google LLC
|
|
270
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/let xn=class extends Event{constructor(t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.
|
|
271
|
+
*/let xn=class extends Event{constructor(t,e,s,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=s,this.subscribe=n??!1}};/**
|
|
272
272
|
* @license
|
|
273
273
|
* Copyright 2021 Google LLC
|
|
274
274
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
* @license
|
|
281
281
|
* Copyright 2021 Google LLC
|
|
282
282
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
|
-
*/let An=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ze extends Sn{constructor(t,e,s){var n,r;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=o=>{const a=o.composedPath()[0];
|
|
283
|
+
*/let An=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}};class ze extends Sn{constructor(t,e,s){var n,r;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=o=>{if(o.context!==this.context)return;const a=o.contextTarget??o.composedPath()[0];a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{if(o.context!==this.context||(o.contextTarget??o.composedPath()[0])===this.host)return;const a=new Set;for(const[l,{consumerHost:c}]of this.subscriptions)a.has(l)||(a.add(l),c.dispatchEvent(new xn(this.context,c,l,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(n=this.host).addController)==null||r.call(n,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new An(this.context,this.host))}}/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|