@telia-ace/widget-components-widget-header-flamingo 1.1.21 → 1.1.22-rc.1
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-4f40115e.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22-rc.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.22-rc.1"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|
|
@@ -199,23 +199,34 @@
|
|
|
199
199
|
display: block;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
:host(.
|
|
202
|
+
:host(.inline) {
|
|
203
|
+
height: 100%;
|
|
203
204
|
position: fixed;
|
|
205
|
+
inset: 0 0 0 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host(.floating) {
|
|
204
209
|
z-index: 6;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
210
|
+
position: fixed;
|
|
211
|
+
}
|
|
212
|
+
@media screen and (max-width: 800px) {
|
|
213
|
+
:host(.floating) {
|
|
214
|
+
inset: 0 0 95px 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
@media screen and (min-width: 801px) {
|
|
218
|
+
:host(.floating) {
|
|
219
|
+
inset: auto 20px 95px auto;
|
|
220
|
+
max-height: calc(100vh - 120px);
|
|
221
|
+
width: 400px;
|
|
222
|
+
height: 700px;
|
|
223
|
+
}
|
|
209
224
|
}
|
|
225
|
+
|
|
210
226
|
:host(.floating) .widget-container {
|
|
211
227
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
212
228
|
border-radius: 0.7rem;
|
|
213
229
|
}
|
|
214
|
-
:host(.inline) {
|
|
215
|
-
height: 100%;
|
|
216
|
-
position: fixed;
|
|
217
|
-
inset: 0 0 0 0;
|
|
218
|
-
}
|
|
219
230
|
|
|
220
231
|
* {
|
|
221
232
|
box-sizing: border-box;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
6
|
const j = globalThis, F = j.ShadowRoot && (j.ShadyCSS === void 0 || j.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), rt = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
let
|
|
7
|
+
let ft = class {
|
|
8
8
|
constructor(t, e, s) {
|
|
9
9
|
if (this._$cssResult$ = !0, s !== X)
|
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -23,7 +23,7 @@ let $t = class {
|
|
|
23
23
|
return this.cssText;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const Tt = (r) => new
|
|
26
|
+
const Tt = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r, ...t) => {
|
|
27
27
|
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
|
28
28
|
if (o._$cssResult$ === !0)
|
|
29
29
|
return o.cssText;
|
|
@@ -31,7 +31,7 @@ const Tt = (r) => new $t(typeof r == "string" ? r : r + "", void 0, X), P = (r,
|
|
|
31
31
|
return o;
|
|
32
32
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
33
33
|
})(i) + r[n + 1], r[0]);
|
|
34
|
-
return new
|
|
34
|
+
return new ft(e, r, X);
|
|
35
35
|
}, Ot = (r, t) => {
|
|
36
36
|
if (F)
|
|
37
37
|
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
@@ -298,7 +298,7 @@ C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[O("elementProper
|
|
|
298
298
|
* Copyright 2017 Google LLC
|
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
300
300
|
*/
|
|
301
|
-
const U = globalThis, W = U.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0,
|
|
301
|
+
const U = globalThis, W = U.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, zt = `<${mt}>`, w = document, N = () => w.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", _t = Array.isArray, Dt = (r) => _t(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
|
|
302
302
|
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, y = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
|
303
303
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, vt = /^(?:script|style|textarea|title)$/i, Bt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), v = Bt(1), x = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), b = w.createTreeWalker(w, 129);
|
|
304
304
|
function yt(r, t) {
|
|
@@ -314,8 +314,8 @@ const jt = (r, t) => {
|
|
|
314
314
|
let d, p, l = -1, u = 0;
|
|
315
315
|
for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
|
|
316
316
|
u = o.lastIndex, o === T ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (vt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = y) : p[3] !== void 0 && (o = y) : o === y ? p[0] === ">" ? (o = i ?? T, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? y : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = y : o === ht || o === lt ? o = T : (o = y, i = void 0);
|
|
317
|
-
const
|
|
318
|
-
n += o === T ? a + zt : l >= 0 ? (s.push(d), a.slice(0, l) +
|
|
317
|
+
const $ = o === y && r[c + 1].startsWith("/>") ? " " : "";
|
|
318
|
+
n += o === T ? a + zt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? c : $);
|
|
319
319
|
}
|
|
320
320
|
return [yt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
321
321
|
};
|
|
@@ -333,17 +333,17 @@ class H {
|
|
|
333
333
|
if (i.nodeType === 1) {
|
|
334
334
|
if (i.hasAttributes())
|
|
335
335
|
for (const l of i.getAttributeNames())
|
|
336
|
-
if (l.endsWith(
|
|
337
|
-
const u = p[o++],
|
|
338
|
-
a.push({ type: 1, index: n, name: D[2], strings:
|
|
336
|
+
if (l.endsWith($t)) {
|
|
337
|
+
const u = p[o++], $ = i.getAttribute(l).split(m), D = /([.?@])?(.*)/.exec(u);
|
|
338
|
+
a.push({ type: 1, index: n, name: D[2], strings: $, ctor: D[1] === "." ? Wt : D[1] === "?" ? Gt : D[1] === "@" ? Vt : V }), i.removeAttribute(l);
|
|
339
339
|
} else
|
|
340
340
|
l.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
341
341
|
if (vt.test(i.tagName)) {
|
|
342
342
|
const l = i.textContent.split(m), u = l.length - 1;
|
|
343
343
|
if (u > 0) {
|
|
344
344
|
i.textContent = W ? W.emptyScript : "";
|
|
345
|
-
for (let
|
|
346
|
-
i.append(l[
|
|
345
|
+
for (let $ = 0; $ < u; $++)
|
|
346
|
+
i.append(l[$], N()), b.nextNode(), a.push({ type: 2, index: ++n });
|
|
347
347
|
i.append(l[u], N());
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -550,7 +550,7 @@ const Yt = (r, t, e) => {
|
|
|
550
550
|
* Copyright 2017 Google LLC
|
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
552
|
*/
|
|
553
|
-
let
|
|
553
|
+
let f = class extends C {
|
|
554
554
|
constructor() {
|
|
555
555
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
556
556
|
}
|
|
@@ -576,9 +576,9 @@ let $ = class extends C {
|
|
|
576
576
|
}
|
|
577
577
|
};
|
|
578
578
|
var gt;
|
|
579
|
-
|
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
|
|
580
580
|
const Z = globalThis.litElementPolyfillSupport;
|
|
581
|
-
Z == null || Z({ LitElement:
|
|
581
|
+
Z == null || Z({ LitElement: f });
|
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
|
583
583
|
/**
|
|
584
584
|
* @license
|
|
@@ -696,7 +696,7 @@ var Qt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, q = (r, t,
|
|
|
696
696
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
697
697
|
return s && i && Qt(t, e, i), i;
|
|
698
698
|
};
|
|
699
|
-
class E extends
|
|
699
|
+
class E extends f {
|
|
700
700
|
constructor() {
|
|
701
701
|
super(...arguments), this.active = !1, this.loaded = !1;
|
|
702
702
|
}
|
|
@@ -928,7 +928,7 @@ const Et = (r) => {
|
|
|
928
928
|
g({ attribute: !1 })
|
|
929
929
|
], t.prototype, "parent", 2), t;
|
|
930
930
|
};
|
|
931
|
-
class Ct extends Et(
|
|
931
|
+
class Ct extends Et(f) {
|
|
932
932
|
render() {
|
|
933
933
|
return v`Non resolved component`;
|
|
934
934
|
}
|
|
@@ -1071,7 +1071,7 @@ var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r)
|
|
|
1071
1071
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
1072
1072
|
return s && i && le(t, e, i), i;
|
|
1073
1073
|
};
|
|
1074
|
-
class st extends
|
|
1074
|
+
class st extends f {
|
|
1075
1075
|
constructor() {
|
|
1076
1076
|
super(...arguments), this.nodes = [], this.wrapperRef = oe();
|
|
1077
1077
|
}
|
|
@@ -1118,23 +1118,34 @@ st.styles = P`
|
|
|
1118
1118
|
display: block;
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
-
:host(.
|
|
1121
|
+
:host(.inline) {
|
|
1122
|
+
height: 100%;
|
|
1122
1123
|
position: fixed;
|
|
1124
|
+
inset: 0 0 0 0;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
:host(.floating) {
|
|
1123
1128
|
z-index: 6;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1129
|
+
position: fixed;
|
|
1130
|
+
}
|
|
1131
|
+
@media screen and (max-width: 800px) {
|
|
1132
|
+
:host(.floating) {
|
|
1133
|
+
inset: 0 0 95px 0;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
@media screen and (min-width: 801px) {
|
|
1137
|
+
:host(.floating) {
|
|
1138
|
+
inset: auto 20px 95px auto;
|
|
1139
|
+
max-height: calc(100vh - 120px);
|
|
1140
|
+
width: 400px;
|
|
1141
|
+
height: 700px;
|
|
1142
|
+
}
|
|
1128
1143
|
}
|
|
1144
|
+
|
|
1129
1145
|
:host(.floating) .widget-container {
|
|
1130
1146
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
1131
1147
|
border-radius: 0.7rem;
|
|
1132
1148
|
}
|
|
1133
|
-
:host(.inline) {
|
|
1134
|
-
height: 100%;
|
|
1135
|
-
position: fixed;
|
|
1136
|
-
inset: 0 0 0 0;
|
|
1137
|
-
}
|
|
1138
1149
|
|
|
1139
1150
|
* {
|
|
1140
1151
|
box-sizing: border-box;
|
|
@@ -1181,7 +1192,7 @@ var ue = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, it = (r, t
|
|
|
1181
1192
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
1182
1193
|
return s && i && ue(t, e, i), i;
|
|
1183
1194
|
};
|
|
1184
|
-
class z extends
|
|
1195
|
+
class z extends f {
|
|
1185
1196
|
constructor() {
|
|
1186
1197
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
|
1187
1198
|
}
|
|
@@ -1233,8 +1244,8 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
|
|
1233
1244
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ct);
|
|
1234
1245
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
|
|
1235
1246
|
customElements.get("ace-widget") || customElements.define("ace-widget", z);
|
|
1236
|
-
const Pt = Et(
|
|
1237
|
-
class
|
|
1247
|
+
const Pt = Et(f);
|
|
1248
|
+
class fe extends Pt {
|
|
1238
1249
|
render() {
|
|
1239
1250
|
var s;
|
|
1240
1251
|
const t = this.application.branding(), e = (s = t == null ? void 0 : t.graphics) == null ? void 0 : s.logotype;
|
|
@@ -1250,7 +1261,7 @@ class $e extends Pt {
|
|
|
1250
1261
|
</div>`;
|
|
1251
1262
|
}
|
|
1252
1263
|
}
|
|
1253
|
-
|
|
1264
|
+
fe.styles = [
|
|
1254
1265
|
Pt.styles || [],
|
|
1255
1266
|
P`
|
|
1256
1267
|
:host {
|
|
@@ -1286,6 +1297,6 @@ $e.styles = [
|
|
|
1286
1297
|
`
|
|
1287
1298
|
];
|
|
1288
1299
|
export {
|
|
1289
|
-
|
|
1290
|
-
|
|
1300
|
+
fe as WidgetHeader,
|
|
1301
|
+
fe as default
|
|
1291
1302
|
};
|