@telia-ace/widget-components-copyright-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.
|
@@ -51,7 +51,7 @@ const Mt = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r,
|
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*/
|
|
54
|
-
const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Ut, getOwnPropertyNames: zt, getOwnPropertySymbols: kt, getPrototypeOf: Nt } = Object,
|
|
54
|
+
const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Ut, getOwnPropertyNames: zt, getOwnPropertySymbols: kt, getPrototypeOf: Nt } = Object, v = globalThis, ot = v.trustedTypes, Rt = ot ? ot.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, I = { toAttribute(r, t) {
|
|
55
55
|
switch (t) {
|
|
56
56
|
case Boolean:
|
|
57
57
|
r = r ? Rt : null;
|
|
@@ -80,7 +80,7 @@ const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Ut, getOwnProperty
|
|
|
80
80
|
}
|
|
81
81
|
return e;
|
|
82
82
|
} }, tt = (r, t) => !Ot(r, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt };
|
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), v.litPropertyMetadata ?? (v.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
84
84
|
class E extends HTMLElement {
|
|
85
85
|
static addInitializer(t) {
|
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -292,13 +292,13 @@ class E extends HTMLElement {
|
|
|
292
292
|
firstUpdated(t) {
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: E }), (
|
|
295
|
+
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: E }), (v.reactiveElementVersions ?? (v.reactiveElementVersions = [])).push("2.0.1");
|
|
296
296
|
/**
|
|
297
297
|
* @license
|
|
298
298
|
* Copyright 2017 Google LLC
|
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
300
300
|
*/
|
|
301
|
-
const O = globalThis, V = O.trustedTypes, ct = V ? V.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$",
|
|
301
|
+
const O = globalThis, V = O.trustedTypes, ct = V ? V.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, Lt = `<${mt}>`, A = document, U = () => A.createComment(""), z = (r) => r === null || typeof r != "object" && typeof r != "function", vt = Array.isArray, Dt = (r) => vt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
|
|
302
302
|
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, _ = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
|
|
303
303
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, _t = /^(?:script|style|textarea|title)$/i, Bt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), C = Bt(1), w = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), b = A.createTreeWalker(A, 129);
|
|
304
304
|
function yt(r, t) {
|
|
@@ -315,7 +315,7 @@ const jt = (r, t) => {
|
|
|
315
315
|
for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
|
|
316
316
|
u = o.lastIndex, o === M ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (_t.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = _) : p[3] !== void 0 && (o = _) : o === _ ? p[0] === ">" ? (o = i ?? M, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? _ : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = _ : o === ht || o === lt ? o = M : (o = _, i = void 0);
|
|
317
317
|
const $ = o === _ && r[c + 1].startsWith("/>") ? " " : "";
|
|
318
|
-
n += o === M ? a + Lt : h >= 0 ? (s.push(d), a.slice(0, h) + $t + a.slice(h) +
|
|
318
|
+
n += o === M ? a + Lt : h >= 0 ? (s.push(d), a.slice(0, h) + $t + a.slice(h) + m + $) : a + m + (h === -2 ? c : $);
|
|
319
319
|
}
|
|
320
320
|
return [yt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
321
321
|
};
|
|
@@ -334,12 +334,12 @@ class k {
|
|
|
334
334
|
if (i.hasAttributes())
|
|
335
335
|
for (const h of i.getAttributeNames())
|
|
336
336
|
if (h.endsWith($t)) {
|
|
337
|
-
const u = p[o++], $ = i.getAttribute(h).split(
|
|
337
|
+
const u = p[o++], $ = i.getAttribute(h).split(m), D = /([.?@])?(.*)/.exec(u);
|
|
338
338
|
a.push({ type: 1, index: n, name: D[2], strings: $, ctor: D[1] === "." ? Vt : D[1] === "?" ? Gt : D[1] === "@" ? Wt : W }), i.removeAttribute(h);
|
|
339
339
|
} else
|
|
340
|
-
h.startsWith(
|
|
340
|
+
h.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(h));
|
|
341
341
|
if (_t.test(i.tagName)) {
|
|
342
|
-
const h = i.textContent.split(
|
|
342
|
+
const h = i.textContent.split(m), u = h.length - 1;
|
|
343
343
|
if (u > 0) {
|
|
344
344
|
i.textContent = V ? V.emptyScript : "";
|
|
345
345
|
for (let $ = 0; $ < u; $++)
|
|
@@ -348,12 +348,12 @@ class k {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
} else if (i.nodeType === 8)
|
|
351
|
-
if (i.data ===
|
|
351
|
+
if (i.data === mt)
|
|
352
352
|
a.push({ type: 2, index: n });
|
|
353
353
|
else {
|
|
354
354
|
let h = -1;
|
|
355
|
-
for (; (h = i.data.indexOf(
|
|
356
|
-
a.push({ type: 7, index: n }), h +=
|
|
355
|
+
for (; (h = i.data.indexOf(m, h + 1)) !== -1; )
|
|
356
|
+
a.push({ type: 7, index: n }), h += m.length - 1;
|
|
357
357
|
}
|
|
358
358
|
n++;
|
|
359
359
|
}
|
|
@@ -446,7 +446,7 @@ class N {
|
|
|
446
446
|
return e === void 0 && ut.set(t.strings, e = new k(t)), e;
|
|
447
447
|
}
|
|
448
448
|
T(t) {
|
|
449
|
-
|
|
449
|
+
vt(this._$AH) || (this._$AH = [], this._$AR());
|
|
450
450
|
const e = this._$AH;
|
|
451
451
|
let s, i = 0;
|
|
452
452
|
for (const n of t)
|
|
@@ -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;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Ht,defineProperty:Ut,getOwnPropertyDescriptor:zt,getOwnPropertyNames:kt,getOwnPropertySymbols:Nt,getPrototypeOf:Rt}=Object,
|
|
9
|
+
*/const{is:Ht,defineProperty:Ut,getOwnPropertyDescriptor:zt,getOwnPropertyNames:kt,getOwnPropertySymbols:Nt,getPrototypeOf:Rt}=Object,v=globalThis,at=v.trustedTypes,Lt=at?at.emptyScript:"",q=v.reactiveElementPolyfillSupport,T=(r,t)=>r,I={toAttribute(r,t){switch(t){case Boolean:r=r?Lt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},tt=(r,t)=>!Ht(r,t),ct={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),v.litPropertyMetadata??(v.litPropertyMetadata=new WeakMap);class E extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ct){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Ut(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=zt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const c=i==null?void 0:i.call(this);n.call(this,o),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ct}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=Rt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,s=[...kt(e),...Nt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(ot(i))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ot(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:I;this._$Em=i,this[i]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??tt)(i?n:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[T("elementProperties")]=new Map,E[T("finalized")]=new Map,q==null||q({ReactiveElement:E}),(v.reactiveElementVersions??(v.reactiveElementVersions=[])).push("2.0.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const O=globalThis,V=O.trustedTypes,ht=V?V.createPolicy("lit-html",{createHTML:r=>r}):void 0,
|
|
13
|
+
*/const O=globalThis,V=O.trustedTypes,ht=V?V.createPolicy("lit-html",{createHTML:r=>r}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,vt="?"+m,Dt=`<${vt}>`,A=document,U=()=>A.createComment(""),z=r=>r===null||typeof r!="object"&&typeof r!="function",_t=Array.isArray,Bt=r=>_t(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Y=`[
|
|
14
14
|
\f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,_=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,yt=/^(?:script|style|textarea|title)$/i,jt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=jt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),gt=new WeakMap,b=A.createTreeWalker(A,129);function bt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}const It=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":"",o=M;for(let c=0;c<e;c++){const a=r[c];let d,p,h=-1,u=0;for(;u<a.length&&(o.lastIndex=u,p=o.exec(a),p!==null);)u=o.lastIndex,o===M?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(yt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=_):p[3]!==void 0&&(o=_):o===_?p[0]===">"?(o=i??M,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?_:p[3]==='"'?ut:pt):o===ut||o===pt?o=_:o===lt||o===dt?o=M:(o=_,i=void 0);const $=o===_&&r[c+1].startsWith("/>")?" ":"";n+=o===M?a+Dt:h>=0?(s.push(d),a.slice(0,h)+
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,yt=/^(?:script|style|textarea|title)$/i,jt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=jt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),gt=new WeakMap,b=A.createTreeWalker(A,129);function bt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}const It=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":"",o=M;for(let c=0;c<e;c++){const a=r[c];let d,p,h=-1,u=0;for(;u<a.length&&(o.lastIndex=u,p=o.exec(a),p!==null);)u=o.lastIndex,o===M?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(yt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=_):p[3]!==void 0&&(o=_):o===_?p[0]===">"?(o=i??M,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?_:p[3]==='"'?ut:pt):o===ut||o===pt?o=_:o===lt||o===dt?o=M:(o=_,i=void 0);const $=o===_&&r[c+1].startsWith("/>")?" ":"";n+=o===M?a+Dt:h>=0?(s.push(d),a.slice(0,h)+mt+a.slice(h)+m+$):a+m+(h===-2?c:$)}return[bt(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class k{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=It(t,e);if(this.el=k.createElement(d,s),b.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=b.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(mt)){const u=p[o++],$=i.getAttribute(h).split(m),D=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:D[2],strings:$,ctor:D[1]==="."?Gt:D[1]==="?"?Wt:D[1]==="@"?Ft:W}),i.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:n}),i.removeAttribute(h));if(yt.test(i.tagName)){const h=i.textContent.split(m),u=h.length-1;if(u>0){i.textContent=V?V.emptyScript:"";for(let $=0;$<u;$++)i.append(h[$],U()),b.nextNode(),a.push({type:2,index:++n});i.append(h[u],U())}}}else if(i.nodeType===8)if(i.data===vt)a.push({type:2,index:n});else{let h=-1;for(;(h=i.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:n}),h+=m.length-1}n++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function S(r,t,e=r,s){var o,c;if(t===w)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=z(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=S(r,i._$AS(r,t.values),i,s)),t}class Vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??A).importNode(e,!0);b.currentNode=i;let n=b.nextNode(),o=0,c=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new N(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new qt(n,this,t)),this._$AV.push(d),a=s[++c]}o!==(a==null?void 0:a.index)&&(n=b.nextNode(),o++)}return b.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class N{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Bt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==l&&z(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=k.createElement(bt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Vt(i,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&>.set(t.strings,e=new k(t)),e}T(t){_t(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new N(this.k(U()),this.k(U()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class W{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=l}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!z(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=S(this,c[s+a],e,a),d===w&&(d=this._$AH[a]),o||(o=!z(d)||d!==this._$AH[a]),d===l?t=l:t!==l&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!i&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Gt extends W{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Wt extends W{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class Ft extends W{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??l)===w)return;const s=this._$AH,i=t===l&&s!==l||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==l&&(s===l||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class qt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const J=O.litHtmlPolyfillSupport;J==null||J(k,N),(O.litHtmlVersions??(O.litHtmlVersions=[])).push("3.0.2");const Yt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new N(t.insertBefore(U(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -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;
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-
|
|
1
|
+
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-9f68ff0b.js")))};module.exports=o;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-copyright-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",
|