@telia-ace/widget-runtime-flamingo 1.0.16 → 1.0.37
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/{dist/component-platform-factory.d.ts → component-platform-factory.d.ts} +1 -2
- package/context/children.context.d.ts +4 -0
- package/context/component-node.context.d.ts +4 -0
- package/{dist/context → context}/container.context.d.ts +0 -1
- package/{dist/context → context}/context.context.d.ts +0 -1
- package/{dist/context → context}/layout.context.d.ts +0 -1
- package/{dist/context → context}/properties.context.d.ts +0 -1
- package/{dist/controllers → controllers}/actions-controller.d.ts +1 -2
- package/{dist/core → core}/create-lit-component.d.ts +1 -2
- package/{dist/core → core}/get-render-state.d.ts +1 -2
- package/{dist/data-provider → data-provider}/data-provider.d.ts +1 -2
- package/{dist/data-provider → data-provider}/providers/guide-provider.plugin.d.ts +0 -1
- package/index-0d792c3e.js +206 -0
- package/index-19a13f23.mjs +3405 -0
- package/{dist/index-9688347a.js → index-5087564d.mjs} +1 -2
- package/index-6dd00f59.js +1 -0
- package/{dist/index.d.ts → index.d.ts} +0 -1
- package/index.js +1 -0
- package/{dist/index.js → index.mjs} +3 -4
- package/{dist/mixins → mixins}/widget-component.mixin.d.ts +1 -2
- package/package.json +14 -40
- package/{dist/render-369a79dd.js → render-8ecc38bd.mjs} +125 -152
- package/render-938224a8.js +118 -0
- package/{dist/services.d.ts → services.d.ts} +3 -4
- package/{dist/ui → ui}/area.d.ts +0 -1
- package/{dist/ui → ui}/branding.d.ts +0 -1
- package/{dist/ui → ui}/get-css-props.d.ts +0 -1
- package/{dist/ui → ui}/get-layout-props.d.ts +0 -1
- package/{dist/ui → ui}/html-element-handlers.d.ts +0 -1
- package/{dist/ui → ui}/prepare-dom.d.ts +2 -2
- package/{dist/ui → ui}/render.d.ts +0 -2
- package/{dist/ui → ui}/trigger-component.d.ts +6 -4
- package/{dist/ui → ui}/view-outlet.d.ts +2 -3
- package/{dist/ui → ui}/wrapper.d.ts +1 -2
- package/{dist/widget.d.ts → widget.d.ts} +1 -2
- package/LICENSE.txt +0 -6
- package/README.md +0 -3
- package/dist/component-platform-factory.d.ts.map +0 -1
- package/dist/context/children.context.d.ts +0 -5
- package/dist/context/children.context.d.ts.map +0 -1
- package/dist/context/component-node.context.d.ts +0 -5
- package/dist/context/component-node.context.d.ts.map +0 -1
- package/dist/context/container.context.d.ts.map +0 -1
- package/dist/context/context.context.d.ts.map +0 -1
- package/dist/context/layout.context.d.ts.map +0 -1
- package/dist/context/properties.context.d.ts.map +0 -1
- package/dist/controllers/actions-controller.d.ts.map +0 -1
- package/dist/core/create-lit-component.d.ts.map +0 -1
- package/dist/core/get-render-state.d.ts.map +0 -1
- package/dist/data-provider/data-provider.d.ts.map +0 -1
- package/dist/data-provider/providers/guide-provider.plugin.d.ts.map +0 -1
- package/dist/index-9688347a.js.map +0 -1
- package/dist/index-bd7f8b31.js +0 -3837
- package/dist/index-bd7f8b31.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mixins/widget-component.mixin.d.ts.map +0 -1
- package/dist/render-369a79dd.js.map +0 -1
- package/dist/services.d.ts.map +0 -1
- package/dist/ui/area.d.ts.map +0 -1
- package/dist/ui/branding.d.ts.map +0 -1
- package/dist/ui/get-css-props.d.ts.map +0 -1
- package/dist/ui/get-layout-props.d.ts.map +0 -1
- package/dist/ui/html-element-handlers.d.ts.map +0 -1
- package/dist/ui/index.d.ts +0 -2
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/prepare-dom.d.ts.map +0 -1
- package/dist/ui/render.d.ts.map +0 -1
- package/dist/ui/trigger-component.d.ts.map +0 -1
- package/dist/ui/view-outlet.d.ts.map +0 -1
- package/dist/ui/wrapper.d.ts.map +0 -1
- package/dist/widget.d.ts.map +0 -1
|
@@ -10,4 +10,3 @@ export { DataProvider, createDataProvider, } from './data-provider/data-provider
|
|
|
10
10
|
export { GuideProviderPlugin } from './data-provider/providers/guide-provider.plugin';
|
|
11
11
|
export { default as createWebComponent } from './core/create-lit-component';
|
|
12
12
|
export { WidgetComponent } from './mixins/widget-component.mixin';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-0d792c3e.js");exports.ActionsController=t.ActionsController;exports.DataProvider=t.DataProvider;exports.GridWidget=t.Widget;exports.GuideProviderPlugin=t.GuideProviderPlugin;exports.Widget=t.Widget;exports.WidgetComponent=t.WidgetComponent;exports.childrenContext=t.childrenContext;exports.containerContext=t.containerContext;exports.contextCtx=t.contextCtx;exports.createDataProvider=t.createDataProvider;exports.createWebComponent=t.createLitComponent;exports.descriptorContext=t.descriptorContext;exports.layoutCtx=t.layoutCtx;exports.propertiesCtx=t.propertiesCtx;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, D as o, h as r, G as s, h as i, W as n, j as d, c as C, l as c, u as x, v as
|
|
1
|
+
import { r as a, D as o, h as r, G as s, h as i, W as n, j as d, c as C, l as c, u as x, v as l, k as p, o as W, q as g } from "./index-19a13f23.mjs";
|
|
2
2
|
export {
|
|
3
3
|
a as ActionsController,
|
|
4
4
|
o as DataProvider,
|
|
@@ -10,9 +10,8 @@ export {
|
|
|
10
10
|
C as containerContext,
|
|
11
11
|
c as contextCtx,
|
|
12
12
|
x as createDataProvider,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
l as createWebComponent,
|
|
14
|
+
p as descriptorContext,
|
|
15
15
|
W as layoutCtx,
|
|
16
16
|
g as propertiesCtx
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -4,7 +4,7 @@ import { propertiesCtx } from '../context/properties.context';
|
|
|
4
4
|
import { contextCtx } from '../context/context.context';
|
|
5
5
|
import { ContextProvider } from '@lit-labs/context';
|
|
6
6
|
import { Container } from '@webprovisions/platform';
|
|
7
|
-
import { ComponentDescriptor } from '@telia-ace/widget-core
|
|
7
|
+
import { ComponentDescriptor } from '@telia-ace/widget-core';
|
|
8
8
|
import { ActionsController } from '../controllers/actions-controller';
|
|
9
9
|
type Constructor<T = {}> = new (...args: any[]) => T;
|
|
10
10
|
export declare class WidgetComponentInterface {
|
|
@@ -22,4 +22,3 @@ export declare class WidgetComponentInterface {
|
|
|
22
22
|
}
|
|
23
23
|
export declare const WidgetComponent: <T extends Constructor<LitElement>>(superClass: T) => Constructor<WidgetComponentInterface> & T;
|
|
24
24
|
export {};
|
|
25
|
-
//# sourceMappingURL=widget-component.mixin.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,49 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-runtime-flamingo",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
],
|
|
10
|
-
"main": "dist/index.js",
|
|
11
|
-
"sourceMain": "src/index.ts",
|
|
12
|
-
"type": "module",
|
|
13
|
-
"types": "dist/index.d.ts",
|
|
14
|
-
"files": [
|
|
15
|
-
"LICENSE.txt",
|
|
16
|
-
"README.md",
|
|
17
|
-
"dist/"
|
|
18
|
-
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
3
|
+
"version": "1.0.37",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"release": "release-it"
|
|
6
|
+
},
|
|
7
|
+
"release-it": {
|
|
8
|
+
"git": false
|
|
21
9
|
},
|
|
22
|
-
"sideEffects": true,
|
|
23
10
|
"dependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@lit-labs/motion": "^1.0.4",
|
|
11
|
+
"@telia-ace/widget-core": "^1.0.27",
|
|
26
12
|
"@telia-ace/widget-services": "^1.0.27",
|
|
27
13
|
"@telia-ace/widget-utilities": "^1.0.16",
|
|
28
|
-
"@teliads/components": "^22.1.1",
|
|
29
|
-
"@teliads/icons": "^8.4.0",
|
|
30
|
-
"@webprovisions/bootstrapping": "^1.0.13",
|
|
31
14
|
"@webprovisions/platform": "^1.1.3",
|
|
15
|
+
"@lit-labs/context": "^0.4.0",
|
|
32
16
|
"lit": "^2.8.0",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"@telia-ace/widget-core-flamingo": "1.0.14"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@telia-ace/widget-developer-tools": "^1.0.22",
|
|
39
|
-
"@types/node": "^20.5.4",
|
|
40
|
-
"rimraf": "^5.0.1",
|
|
41
|
-
"tslib": "^2.6.0",
|
|
42
|
-
"typescript": "^5.1.6",
|
|
43
|
-
"vite": "^4.4.9"
|
|
17
|
+
"@teliads/icons": "^8.4.0",
|
|
18
|
+
"@webprovisions/bootstrapping": "^1.0.13"
|
|
44
19
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
20
|
+
"main": "./index.js",
|
|
21
|
+
"module": "./index.mjs",
|
|
22
|
+
"typings": "./index.d.ts"
|
|
23
|
+
}
|
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var x = Object.getOwnPropertySymbols;
|
|
4
|
-
var N = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var A = (s, t, e) => t in s ? j(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
|
|
6
|
-
for (var e in t || (t = {}))
|
|
7
|
-
N.call(t, e) && A(s, e, t[e]);
|
|
8
|
-
if (x)
|
|
9
|
-
for (var e of x(t))
|
|
10
|
-
q.call(t, e) && A(s, e, t[e]);
|
|
11
|
-
return s;
|
|
12
|
-
}, P = (s, t) => z(s, E(t));
|
|
13
|
-
var d = (s, t, e) => new Promise((i, n) => {
|
|
14
|
-
var r = (c) => {
|
|
15
|
-
try {
|
|
16
|
-
a(e.next(c));
|
|
17
|
-
} catch (h) {
|
|
18
|
-
n(h);
|
|
19
|
-
}
|
|
20
|
-
}, o = (c) => {
|
|
21
|
-
try {
|
|
22
|
-
a(e.throw(c));
|
|
23
|
-
} catch (h) {
|
|
24
|
-
n(h);
|
|
25
|
-
}
|
|
26
|
-
}, a = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(r, o);
|
|
27
|
-
a((e = e.apply(s, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { i as W, t as H, e as G, A as w, s as O, a as I, c as K, T as Z, q as g, x as _, b as L, n as U, d as m, f as R, W as V, m as Q, g as B } from "./index-bd7f8b31.js";
|
|
1
|
+
import { i as L, t as D, e as A, A as y, s as P, a as Y, c as M, p as T, m as f, x as v, b as R, n as j, d as u, T as w, W as z, f as E, g as N } from "./index-19a13f23.mjs";
|
|
30
2
|
/**
|
|
31
3
|
* @license
|
|
32
4
|
* Copyright 2017 Google LLC
|
|
33
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
6
|
*/
|
|
35
|
-
const
|
|
7
|
+
const S = (s) => (t) => typeof t == "function" ? ((e, i) => (customElements.define(e, i), i))(s, t) : ((e, i) => {
|
|
36
8
|
const { kind: n, elements: r } = i;
|
|
37
9
|
return { kind: n, elements: r, finisher(o) {
|
|
38
10
|
customElements.define(e, o);
|
|
@@ -43,69 +15,69 @@ const T = (s) => (t) => typeof t == "function" ? ((e, i) => (customElements.defi
|
|
|
43
15
|
* Copyright 2020 Google LLC
|
|
44
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
17
|
*/
|
|
46
|
-
const
|
|
18
|
+
const W = (s) => s === null || typeof s != "object" && typeof s != "function", q = (s) => s.strings === void 0;
|
|
47
19
|
/**
|
|
48
20
|
* @license
|
|
49
21
|
* Copyright 2017 Google LLC
|
|
50
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
23
|
*/
|
|
52
|
-
const
|
|
24
|
+
const p = (s, t) => {
|
|
53
25
|
var e, i;
|
|
54
26
|
const n = s._$AN;
|
|
55
27
|
if (n === void 0)
|
|
56
28
|
return !1;
|
|
57
29
|
for (const r of n)
|
|
58
|
-
(i = (e = r)._$AO) === null || i === void 0 || i.call(e, t, !1),
|
|
30
|
+
(i = (e = r)._$AO) === null || i === void 0 || i.call(e, t, !1), p(r, t);
|
|
59
31
|
return !0;
|
|
60
|
-
},
|
|
32
|
+
}, m = (s) => {
|
|
61
33
|
let t, e;
|
|
62
34
|
do {
|
|
63
35
|
if ((t = s._$AM) === void 0)
|
|
64
36
|
break;
|
|
65
37
|
e = t._$AN, e.delete(s), s = t;
|
|
66
38
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
67
|
-
},
|
|
39
|
+
}, k = (s) => {
|
|
68
40
|
for (let t; t = s._$AM; s = t) {
|
|
69
41
|
let e = t._$AN;
|
|
70
42
|
if (e === void 0)
|
|
71
43
|
t._$AN = e = /* @__PURE__ */ new Set();
|
|
72
44
|
else if (e.has(s))
|
|
73
45
|
break;
|
|
74
|
-
e.add(s),
|
|
46
|
+
e.add(s), K(t);
|
|
75
47
|
}
|
|
76
48
|
};
|
|
77
|
-
function
|
|
78
|
-
this._$AN !== void 0 ? (
|
|
49
|
+
function H(s) {
|
|
50
|
+
this._$AN !== void 0 ? (m(this), this._$AM = s, k(this)) : this._$AM = s;
|
|
79
51
|
}
|
|
80
|
-
function
|
|
52
|
+
function I(s, t = !1, e = 0) {
|
|
81
53
|
const i = this._$AH, n = this._$AN;
|
|
82
54
|
if (n !== void 0 && n.size !== 0)
|
|
83
55
|
if (t)
|
|
84
56
|
if (Array.isArray(i))
|
|
85
57
|
for (let r = e; r < i.length; r++)
|
|
86
|
-
|
|
58
|
+
p(i[r], !1), m(i[r]);
|
|
87
59
|
else
|
|
88
|
-
i != null && (
|
|
60
|
+
i != null && (p(i, !1), m(i));
|
|
89
61
|
else
|
|
90
|
-
|
|
62
|
+
p(this, s);
|
|
91
63
|
}
|
|
92
|
-
const
|
|
64
|
+
const K = (s) => {
|
|
93
65
|
var t, e, i, n;
|
|
94
|
-
s.type ==
|
|
66
|
+
s.type == D.CHILD && ((t = (i = s)._$AP) !== null && t !== void 0 || (i._$AP = I), (e = (n = s)._$AQ) !== null && e !== void 0 || (n._$AQ = H));
|
|
95
67
|
};
|
|
96
|
-
let
|
|
68
|
+
let G = class extends L {
|
|
97
69
|
constructor() {
|
|
98
70
|
super(...arguments), this._$AN = void 0;
|
|
99
71
|
}
|
|
100
72
|
_$AT(t, e, i) {
|
|
101
|
-
super._$AT(t, e, i),
|
|
73
|
+
super._$AT(t, e, i), k(this), this.isConnected = t._$AU;
|
|
102
74
|
}
|
|
103
75
|
_$AO(t, e = !0) {
|
|
104
76
|
var i, n;
|
|
105
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) === null || i === void 0 || i.call(this) : (n = this.disconnected) === null || n === void 0 || n.call(this)), e && (
|
|
77
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) === null || i === void 0 || i.call(this) : (n = this.disconnected) === null || n === void 0 || n.call(this)), e && (p(this, t), m(this));
|
|
106
78
|
}
|
|
107
79
|
setValue(t) {
|
|
108
|
-
if (
|
|
80
|
+
if (q(this._$Ct))
|
|
109
81
|
this._$Ct._$AI(t, this);
|
|
110
82
|
else {
|
|
111
83
|
const e = [...this._$Ct._$AH];
|
|
@@ -122,30 +94,30 @@ let Y = class extends W {
|
|
|
122
94
|
* Copyright 2020 Google LLC
|
|
123
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
96
|
*/
|
|
125
|
-
const
|
|
126
|
-
class
|
|
97
|
+
const Z = () => new U();
|
|
98
|
+
class U {
|
|
127
99
|
}
|
|
128
|
-
const
|
|
100
|
+
const $ = /* @__PURE__ */ new WeakMap(), V = A(class extends G {
|
|
129
101
|
render(s) {
|
|
130
|
-
return
|
|
102
|
+
return y;
|
|
131
103
|
}
|
|
132
104
|
update(s, [t]) {
|
|
133
105
|
var e;
|
|
134
106
|
const i = t !== this.G;
|
|
135
|
-
return i && this.G !== void 0 && this.ot(void 0), (i || this.rt !== this.lt) && (this.G = t, this.dt = (e = s.options) === null || e === void 0 ? void 0 : e.host, this.ot(this.lt = s.element)),
|
|
107
|
+
return i && this.G !== void 0 && this.ot(void 0), (i || this.rt !== this.lt) && (this.G = t, this.dt = (e = s.options) === null || e === void 0 ? void 0 : e.host, this.ot(this.lt = s.element)), y;
|
|
136
108
|
}
|
|
137
109
|
ot(s) {
|
|
138
110
|
var t;
|
|
139
111
|
if (typeof this.G == "function") {
|
|
140
112
|
const e = (t = this.dt) !== null && t !== void 0 ? t : globalThis;
|
|
141
|
-
let i =
|
|
142
|
-
i === void 0 && (i = /* @__PURE__ */ new WeakMap(),
|
|
113
|
+
let i = $.get(e);
|
|
114
|
+
i === void 0 && (i = /* @__PURE__ */ new WeakMap(), $.set(e, i)), i.get(this.G) !== void 0 && this.G.call(this.dt, void 0), i.set(this.G, s), s !== void 0 && this.G.call(this.dt, s);
|
|
143
115
|
} else
|
|
144
116
|
this.G.value = s;
|
|
145
117
|
}
|
|
146
118
|
get rt() {
|
|
147
119
|
var s, t, e;
|
|
148
|
-
return typeof this.G == "function" ? (t =
|
|
120
|
+
return typeof this.G == "function" ? (t = $.get((s = this.dt) !== null && s !== void 0 ? s : globalThis)) === null || t === void 0 ? void 0 : t.get(this.G) : (e = this.G) === null || e === void 0 ? void 0 : e.value;
|
|
149
121
|
}
|
|
150
122
|
disconnected() {
|
|
151
123
|
this.rt === this.lt && this.ot(void 0);
|
|
@@ -153,43 +125,42 @@ const b = /* @__PURE__ */ new WeakMap(), nt = G(class extends Y {
|
|
|
153
125
|
reconnected() {
|
|
154
126
|
this.ot(this.lt);
|
|
155
127
|
}
|
|
156
|
-
}),
|
|
157
|
-
return yield s.get("$widget").invoke("renderState");
|
|
158
|
-
}), ot = (s, t) => d(void 0, null, function* () {
|
|
128
|
+
}), Q = async (s) => await s.get("$widget").invoke("renderState"), B = async (s, t) => {
|
|
159
129
|
const e = s.get("$widget");
|
|
160
|
-
return (
|
|
161
|
-
|
|
130
|
+
return (await s.getAsync(
|
|
131
|
+
"actionResolver"
|
|
132
|
+
)).subscribe(e.name, t);
|
|
133
|
+
}, F = (s, t, e = !1) => {
|
|
162
134
|
const i = s.reduce(
|
|
163
|
-
(o, { breakpoints: a = [], values:
|
|
135
|
+
(o, { breakpoints: a = [], values: l }) => a.length ? t.some((g) => a.includes(g)) ? { ...o, ...l } : o : { ...o, ...l },
|
|
164
136
|
{}
|
|
165
|
-
), n = {};
|
|
166
|
-
let r = i.type;
|
|
137
|
+
), n = {}, r = i.type;
|
|
167
138
|
return n.height = i.height || "", n.width = i.width || "", i.type === "floating" || i.type === "inline" && e && (n.height = "calc(100vh - 120px)"), { type: r, styles: n };
|
|
168
139
|
};
|
|
169
|
-
var
|
|
170
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
140
|
+
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, h = (s, t, e, i) => {
|
|
141
|
+
for (var n = i > 1 ? void 0 : i ? X(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
|
171
142
|
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
|
172
|
-
return i && n &&
|
|
143
|
+
return i && n && J(t, e, n), n;
|
|
173
144
|
};
|
|
174
|
-
let
|
|
145
|
+
let c = class extends P {
|
|
175
146
|
constructor() {
|
|
176
|
-
super(), this._provider = new
|
|
147
|
+
super(), this._provider = new Y(this, M, void 0), this.wrapperRef = Z(), this.breakpoints = [], this.breakpointsSet = !1;
|
|
177
148
|
}
|
|
178
149
|
connectedCallback() {
|
|
179
|
-
super.connectedCallback(), this._provider.setValue(this.container), this.container && (
|
|
150
|
+
super.connectedCallback(), this._provider.setValue(this.container), this.container && (Q(this.container).then((s) => {
|
|
180
151
|
this.renderState = s;
|
|
181
|
-
}),
|
|
152
|
+
}), B(this.container, (s, t) => {
|
|
182
153
|
switch (t) {
|
|
183
154
|
case "close":
|
|
184
155
|
case "open":
|
|
185
|
-
this.renderState = t === "open" ?
|
|
156
|
+
this.renderState = t === "open" ? f.open : f.closed;
|
|
186
157
|
break;
|
|
187
158
|
case "hide":
|
|
188
|
-
this.renderState =
|
|
159
|
+
this.renderState = f.hidden;
|
|
189
160
|
}
|
|
190
161
|
}).then((s) => {
|
|
191
162
|
this._unsubscribeRenderState = s;
|
|
192
|
-
}),
|
|
163
|
+
}), T.getInstance(this.container).then(
|
|
193
164
|
(s) => {
|
|
194
165
|
this.componentPlatform = s, this.breakpoints = this.componentPlatform.breakpoints, this.breakpointsSet = !0, this._unsubscribePropChange = this.componentPlatform.events.subscribe(
|
|
195
166
|
"components:properties-changed",
|
|
@@ -208,14 +179,14 @@ let l = class extends O {
|
|
|
208
179
|
var t, e, i, n;
|
|
209
180
|
let s;
|
|
210
181
|
if (!this.entry || !this.breakpointsSet)
|
|
211
|
-
return
|
|
182
|
+
return y;
|
|
212
183
|
if (this.container && this.renderState) {
|
|
213
184
|
const [r] = this.container.get("widgetDOMElements");
|
|
214
185
|
r && r.setAttribute("data-state", this.renderState);
|
|
215
186
|
}
|
|
216
187
|
if (this.container) {
|
|
217
188
|
const r = this.container.get("$settings");
|
|
218
|
-
r != null && r.layout && (s =
|
|
189
|
+
r != null && r.layout && (s = F(
|
|
219
190
|
r.layout,
|
|
220
191
|
this.breakpoints,
|
|
221
192
|
!!r.trigger
|
|
@@ -223,14 +194,14 @@ let l = class extends O {
|
|
|
223
194
|
this.renderRoot.host.style.setProperty(o, a);
|
|
224
195
|
}));
|
|
225
196
|
}
|
|
226
|
-
return this.renderState && (this.renderState ===
|
|
227
|
-
<div class="widget-container" ${
|
|
197
|
+
return this.renderState && (this.renderState === f.hidden ? ((t = this.wrapperRef.value) == null || t.classList.add("hidden"), (e = this.wrapperRef.value) == null || e.classList.remove("expanded")) : ((i = this.wrapperRef.value) == null || i.classList.remove("hidden"), (n = this.wrapperRef.value) == null || n.classList.add("expanded"))), v`
|
|
198
|
+
<div class="widget-container" ${V(this.wrapperRef)}>
|
|
228
199
|
<ace-area entry=${this.entry}></ace-area>
|
|
229
200
|
</div>
|
|
230
201
|
`;
|
|
231
202
|
}
|
|
232
203
|
};
|
|
233
|
-
|
|
204
|
+
c.styles = R`
|
|
234
205
|
:host {
|
|
235
206
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
236
207
|
--spacing-xs: 0.2rem;
|
|
@@ -265,7 +236,6 @@ l.styles = L`
|
|
|
265
236
|
:host(.floating) .widget-container {
|
|
266
237
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
267
238
|
border-radius: 0.7rem;
|
|
268
|
-
height: 100%;
|
|
269
239
|
}
|
|
270
240
|
:host(.inline) {
|
|
271
241
|
height: 100%;
|
|
@@ -276,6 +246,9 @@ l.styles = L`
|
|
|
276
246
|
* {
|
|
277
247
|
box-sizing: border-box;
|
|
278
248
|
}
|
|
249
|
+
.widget-container {
|
|
250
|
+
height: 100%;
|
|
251
|
+
}
|
|
279
252
|
.widget-container.expanded {
|
|
280
253
|
opacity: 1;
|
|
281
254
|
animation: slideUp 0.5s;
|
|
@@ -305,33 +278,33 @@ l.styles = L`
|
|
|
305
278
|
}
|
|
306
279
|
}
|
|
307
280
|
`;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
],
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
],
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
],
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
],
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
],
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
],
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
],
|
|
281
|
+
h([
|
|
282
|
+
j({ attribute: !1 })
|
|
283
|
+
], c.prototype, "container", 2);
|
|
284
|
+
h([
|
|
285
|
+
u()
|
|
286
|
+
], c.prototype, "componentPlatform", 2);
|
|
287
|
+
h([
|
|
288
|
+
u()
|
|
289
|
+
], c.prototype, "renderState", 2);
|
|
290
|
+
h([
|
|
291
|
+
u()
|
|
292
|
+
], c.prototype, "breakpoints", 2);
|
|
293
|
+
h([
|
|
294
|
+
u()
|
|
295
|
+
], c.prototype, "breakpointsSet", 2);
|
|
296
|
+
h([
|
|
297
|
+
u()
|
|
298
|
+
], c.prototype, "entry", 2);
|
|
299
|
+
c = h([
|
|
300
|
+
S("ace-widget-wrapper")
|
|
301
|
+
], c);
|
|
329
302
|
/**
|
|
330
303
|
* @license
|
|
331
304
|
* Copyright 2021 Google LLC
|
|
332
305
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
333
306
|
*/
|
|
334
|
-
class
|
|
307
|
+
class tt {
|
|
335
308
|
constructor(t) {
|
|
336
309
|
this.G = t;
|
|
337
310
|
}
|
|
@@ -345,7 +318,7 @@ class ht {
|
|
|
345
318
|
return this.G;
|
|
346
319
|
}
|
|
347
320
|
}
|
|
348
|
-
class
|
|
321
|
+
class et {
|
|
349
322
|
constructor() {
|
|
350
323
|
this.Y = void 0, this.Z = void 0;
|
|
351
324
|
}
|
|
@@ -366,14 +339,14 @@ class dt {
|
|
|
366
339
|
* Copyright 2017 Google LLC
|
|
367
340
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
368
341
|
*/
|
|
369
|
-
const
|
|
370
|
-
class
|
|
342
|
+
const C = (s) => !W(s) && typeof s.then == "function", x = 1073741823;
|
|
343
|
+
class st extends G {
|
|
371
344
|
constructor() {
|
|
372
|
-
super(...arguments), this._$C_t =
|
|
345
|
+
super(...arguments), this._$C_t = x, this._$Cwt = [], this._$Cq = new tt(this), this._$CK = new et();
|
|
373
346
|
}
|
|
374
347
|
render(...t) {
|
|
375
348
|
var e;
|
|
376
|
-
return (e = t.find((i) => !
|
|
349
|
+
return (e = t.find((i) => !C(i))) !== null && e !== void 0 ? e : w;
|
|
377
350
|
}
|
|
378
351
|
update(t, e) {
|
|
379
352
|
const i = this._$Cwt;
|
|
@@ -382,20 +355,20 @@ class pt extends Y {
|
|
|
382
355
|
const r = this._$Cq, o = this._$CK;
|
|
383
356
|
this.isConnected || this.disconnected();
|
|
384
357
|
for (let a = 0; a < e.length && !(a > this._$C_t); a++) {
|
|
385
|
-
const
|
|
386
|
-
if (!
|
|
387
|
-
return this._$C_t = a,
|
|
388
|
-
a < n &&
|
|
358
|
+
const l = e[a];
|
|
359
|
+
if (!C(l))
|
|
360
|
+
return this._$C_t = a, l;
|
|
361
|
+
a < n && l === i[a] || (this._$C_t = x, n = 0, Promise.resolve(l).then(async (g) => {
|
|
389
362
|
for (; o.get(); )
|
|
390
|
-
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
394
|
-
|
|
363
|
+
await o.get();
|
|
364
|
+
const d = r.deref();
|
|
365
|
+
if (d !== void 0) {
|
|
366
|
+
const _ = d._$Cwt.indexOf(l);
|
|
367
|
+
_ > -1 && _ < d._$C_t && (d._$C_t = _, d.setValue(g));
|
|
395
368
|
}
|
|
396
|
-
}))
|
|
369
|
+
}));
|
|
397
370
|
}
|
|
398
|
-
return
|
|
371
|
+
return w;
|
|
399
372
|
}
|
|
400
373
|
disconnected() {
|
|
401
374
|
this._$Cq.disconnect(), this._$CK.pause();
|
|
@@ -404,48 +377,49 @@ class pt extends Y {
|
|
|
404
377
|
this._$Cq.reconnect(this), this._$CK.resume();
|
|
405
378
|
}
|
|
406
379
|
}
|
|
407
|
-
const
|
|
408
|
-
var
|
|
409
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
380
|
+
const it = A(st);
|
|
381
|
+
var nt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, ot = (s, t, e, i) => {
|
|
382
|
+
for (var n = i > 1 ? void 0 : i ? rt(t, e) : t, r = s.length - 1, o; r >= 0; r--)
|
|
410
383
|
(o = s[r]) && (n = (i ? o(t, e, n) : o(n)) || n);
|
|
411
|
-
return i && n &&
|
|
384
|
+
return i && n && nt(t, e, n), n;
|
|
412
385
|
};
|
|
413
|
-
const
|
|
414
|
-
let
|
|
386
|
+
const O = z(P);
|
|
387
|
+
let b = class extends O {
|
|
415
388
|
constructor() {
|
|
416
|
-
super(...arguments), this._resolveChildComponent = (s) =>
|
|
417
|
-
const e = (
|
|
389
|
+
super(...arguments), this._resolveChildComponent = async (s) => {
|
|
390
|
+
const e = (await this.container.getAsync(
|
|
391
|
+
"componentResolver"
|
|
392
|
+
)).getComponent(s);
|
|
418
393
|
if (e.then)
|
|
419
394
|
return e.then((i) => i.default);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
});
|
|
395
|
+
}, this._resolveAllChildren = async (s) => Promise.all(
|
|
396
|
+
s.map(async (t) => {
|
|
397
|
+
let e = customElements.get(`ace-${t.type}`);
|
|
398
|
+
return e || (e = await this._resolveChildComponent(t.type || "")), {
|
|
399
|
+
...t,
|
|
400
|
+
component: e
|
|
401
|
+
};
|
|
402
|
+
})
|
|
403
|
+
);
|
|
430
404
|
}
|
|
431
405
|
render() {
|
|
432
406
|
var s;
|
|
433
|
-
return
|
|
407
|
+
return E(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
|
|
434
408
|
"--width",
|
|
435
409
|
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
|
436
410
|
), this.renderRoot.host.style.setProperty(
|
|
437
411
|
"--columns",
|
|
438
412
|
((s = this._propertiesProvider.value.columns) == null ? void 0 : s.toString()) || "1"
|
|
439
|
-
),
|
|
413
|
+
), N(
|
|
440
414
|
this.renderRoot.host,
|
|
441
415
|
this._propertiesProvider.value
|
|
442
|
-
),
|
|
443
|
-
${
|
|
416
|
+
), v`
|
|
417
|
+
${it(
|
|
444
418
|
this._resolveAllChildren(this._childrenProvider.value).then(
|
|
445
|
-
(t) =>
|
|
419
|
+
(t) => v`
|
|
446
420
|
${t.map((e) => {
|
|
447
421
|
if (e.type === "area")
|
|
448
|
-
return
|
|
422
|
+
return v`<ace-area entry=${e.id}></ace-area>`;
|
|
449
423
|
const i = new e.component();
|
|
450
424
|
return i.entry = e.id, i;
|
|
451
425
|
})}
|
|
@@ -455,9 +429,9 @@ let C = class extends M {
|
|
|
455
429
|
`;
|
|
456
430
|
}
|
|
457
431
|
};
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
432
|
+
b.styles = [
|
|
433
|
+
O.styles || [],
|
|
434
|
+
R`
|
|
461
435
|
:host {
|
|
462
436
|
height: 100%;
|
|
463
437
|
display: grid;
|
|
@@ -468,16 +442,15 @@ C.styles = [
|
|
|
468
442
|
}
|
|
469
443
|
`
|
|
470
444
|
];
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
],
|
|
474
|
-
const
|
|
445
|
+
b = ot([
|
|
446
|
+
S("ace-area")
|
|
447
|
+
], b);
|
|
448
|
+
const lt = (s, t) => {
|
|
475
449
|
setTimeout(() => {
|
|
476
|
-
const e = new
|
|
450
|
+
const e = new c();
|
|
477
451
|
e.container = s.parent, t.appendChild(e);
|
|
478
452
|
}, 0);
|
|
479
453
|
};
|
|
480
454
|
export {
|
|
481
|
-
|
|
455
|
+
lt as default
|
|
482
456
|
};
|
|
483
|
-
//# sourceMappingURL=render-369a79dd.js.map
|