@telia-ace/widget-components-area-flamingo 1.1.72-rc.23 → 1.1.72-rc.25
Sign up to get free protection for your applications and to get access to all the features.
@@ -1616,7 +1616,7 @@ class w extends m {
|
|
1616
1616
|
);
|
1617
1617
|
return;
|
1618
1618
|
}
|
1619
|
-
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0)) : (this.application.hide(), this.widgetActive$.next(!1));
|
1619
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0), this.hideTrigger()) : (this.application.hide(), this.widgetActive$.next(!1), this.showTrigger());
|
1620
1620
|
}
|
1621
1621
|
_applyBranding() {
|
1622
1622
|
var t;
|
@@ -2127,6 +2127,7 @@ At.styles = O`
|
|
2127
2127
|
|
2128
2128
|
--header-height: 69px;
|
2129
2129
|
}
|
2130
|
+
|
2130
2131
|
:host {
|
2131
2132
|
--voca-rem-multiplier: 0.625;
|
2132
2133
|
box-sizing: border-box;
|
@@ -2143,23 +2144,27 @@ At.styles = O`
|
|
2143
2144
|
z-index: 6;
|
2144
2145
|
position: fixed;
|
2145
2146
|
}
|
2147
|
+
|
2146
2148
|
@media screen and (max-width: 800px) {
|
2147
2149
|
:host(.floating) {
|
2148
|
-
inset: 0
|
2150
|
+
inset: 0;
|
2149
2151
|
height: 100%;
|
2150
2152
|
}
|
2153
|
+
|
2151
2154
|
:host(.third-party) {
|
2152
|
-
inset: 0
|
2155
|
+
inset: 0;
|
2153
2156
|
height: 100vh;
|
2154
2157
|
}
|
2155
2158
|
}
|
2159
|
+
|
2156
2160
|
@media screen and (min-width: 801px) {
|
2157
2161
|
:host(.floating) {
|
2158
|
-
inset: auto 20px
|
2162
|
+
inset: auto 20px 20px auto;
|
2159
2163
|
max-height: calc(100vh - 120px);
|
2160
2164
|
width: 400px;
|
2161
|
-
height:
|
2165
|
+
height: 775px;
|
2162
2166
|
}
|
2167
|
+
|
2163
2168
|
:host(.third-party) {
|
2164
2169
|
max-width: 1000px;
|
2165
2170
|
height: 100vh;
|
@@ -2168,11 +2173,13 @@ At.styles = O`
|
|
2168
2173
|
transform: translateX(-50%);
|
2169
2174
|
margin: -10px 0;
|
2170
2175
|
}
|
2176
|
+
|
2171
2177
|
:host(.floating.bottom-right) {
|
2172
|
-
inset: auto 20px
|
2178
|
+
inset: auto 20px 20px auto;
|
2173
2179
|
}
|
2180
|
+
|
2174
2181
|
:host(.floating.bottom-left) {
|
2175
|
-
inset: auto auto
|
2182
|
+
inset: auto auto 20px 20px;
|
2176
2183
|
}
|
2177
2184
|
}
|
2178
2185
|
|
@@ -2188,12 +2195,14 @@ At.styles = O`
|
|
2188
2195
|
* {
|
2189
2196
|
box-sizing: border-box;
|
2190
2197
|
}
|
2198
|
+
|
2191
2199
|
.widget-container {
|
2192
2200
|
height: 100%;
|
2193
2201
|
background-color: var(--primary-background);
|
2194
2202
|
padding: var(--spacing-sm);
|
2195
2203
|
border: var(--widget-border, none);
|
2196
2204
|
}
|
2205
|
+
|
2197
2206
|
@keyframes slideDown {
|
2198
2207
|
from {
|
2199
2208
|
transform: translateY(0);
|
@@ -2204,6 +2213,7 @@ At.styles = O`
|
|
2204
2213
|
opacity: 0;
|
2205
2214
|
}
|
2206
2215
|
}
|
2216
|
+
|
2207
2217
|
@keyframes slideUp {
|
2208
2218
|
from {
|
2209
2219
|
transform: translateY(100%);
|
@@ -2214,10 +2224,12 @@ At.styles = O`
|
|
2214
2224
|
opacity: 1;
|
2215
2225
|
}
|
2216
2226
|
}
|
2227
|
+
|
2217
2228
|
:host(.expanded) {
|
2218
2229
|
opacity: 1;
|
2219
2230
|
animation: slideUp 0.3s linear;
|
2220
2231
|
}
|
2232
|
+
|
2221
2233
|
:host(.hidden) {
|
2222
2234
|
opacity: 0;
|
2223
2235
|
animation: slideDown 0.3s linear;
|
@@ -66,7 +66,7 @@
|
|
66
66
|
* @license
|
67
67
|
* Copyright 2020 Google LLC
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
69
|
-
*/const ue=()=>new hi;class hi{}const ht=new WeakMap,de=_t(class extends le{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=ht.get(t);e===void 0&&(e=new WeakMap,ht.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=ht.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var li=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,V=(s,t,e,i)=>{for(var r=i>1?void 0:i?pi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&li(t,e,r),r};class w extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=ue(),this.widgetActive$=new Ye(!1),this.componentIsDestroyed$=new yt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.widgetActive$.next(!0)):(this.application.hide(),this.widgetActive$.next(!1))}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&pe(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return C` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>ci,{type:o,content:n}=i;switch(o){case"Telia":{const l=await r();return l?C`<telia-icon
|
69
|
+
*/const ue=()=>new hi;class hi{}const ht=new WeakMap,de=_t(class extends le{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=ht.get(t);e===void 0&&(e=new WeakMap,ht.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=ht.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var li=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,V=(s,t,e,i)=>{for(var r=i>1?void 0:i?pi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&li(t,e,r),r};class w extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=ue(),this.widgetActive$=new Ye(!1),this.componentIsDestroyed$=new yt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.widgetActive$.next(!1),this.showTrigger())}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&pe(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return C` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>ci,{type:o,content:n}=i;switch(o){case"Telia":{const l=await r();return l?C`<telia-icon
|
70
70
|
class="trigger-icon"
|
71
71
|
svg=${l.svg}
|
72
72
|
size="lg"
|
@@ -313,6 +313,7 @@
|
|
313
313
|
|
314
314
|
--header-height: 69px;
|
315
315
|
}
|
316
|
+
|
316
317
|
:host {
|
317
318
|
--voca-rem-multiplier: 0.625;
|
318
319
|
box-sizing: border-box;
|
@@ -329,23 +330,27 @@
|
|
329
330
|
z-index: 6;
|
330
331
|
position: fixed;
|
331
332
|
}
|
333
|
+
|
332
334
|
@media screen and (max-width: 800px) {
|
333
335
|
:host(.floating) {
|
334
|
-
inset: 0
|
336
|
+
inset: 0;
|
335
337
|
height: 100%;
|
336
338
|
}
|
339
|
+
|
337
340
|
:host(.third-party) {
|
338
|
-
inset: 0
|
341
|
+
inset: 0;
|
339
342
|
height: 100vh;
|
340
343
|
}
|
341
344
|
}
|
345
|
+
|
342
346
|
@media screen and (min-width: 801px) {
|
343
347
|
:host(.floating) {
|
344
|
-
inset: auto 20px
|
348
|
+
inset: auto 20px 20px auto;
|
345
349
|
max-height: calc(100vh - 120px);
|
346
350
|
width: 400px;
|
347
|
-
height:
|
351
|
+
height: 775px;
|
348
352
|
}
|
353
|
+
|
349
354
|
:host(.third-party) {
|
350
355
|
max-width: 1000px;
|
351
356
|
height: 100vh;
|
@@ -354,11 +359,13 @@
|
|
354
359
|
transform: translateX(-50%);
|
355
360
|
margin: -10px 0;
|
356
361
|
}
|
362
|
+
|
357
363
|
:host(.floating.bottom-right) {
|
358
|
-
inset: auto 20px
|
364
|
+
inset: auto 20px 20px auto;
|
359
365
|
}
|
366
|
+
|
360
367
|
:host(.floating.bottom-left) {
|
361
|
-
inset: auto auto
|
368
|
+
inset: auto auto 20px 20px;
|
362
369
|
}
|
363
370
|
}
|
364
371
|
|
@@ -374,12 +381,14 @@
|
|
374
381
|
* {
|
375
382
|
box-sizing: border-box;
|
376
383
|
}
|
384
|
+
|
377
385
|
.widget-container {
|
378
386
|
height: 100%;
|
379
387
|
background-color: var(--primary-background);
|
380
388
|
padding: var(--spacing-sm);
|
381
389
|
border: var(--widget-border, none);
|
382
390
|
}
|
391
|
+
|
383
392
|
@keyframes slideDown {
|
384
393
|
from {
|
385
394
|
transform: translateY(0);
|
@@ -390,6 +399,7 @@
|
|
390
399
|
opacity: 0;
|
391
400
|
}
|
392
401
|
}
|
402
|
+
|
393
403
|
@keyframes slideUp {
|
394
404
|
from {
|
395
405
|
transform: translateY(100%);
|
@@ -400,10 +410,12 @@
|
|
400
410
|
opacity: 1;
|
401
411
|
}
|
402
412
|
}
|
413
|
+
|
403
414
|
:host(.expanded) {
|
404
415
|
opacity: 1;
|
405
416
|
animation: slideUp 0.3s linear;
|
406
417
|
}
|
418
|
+
|
407
419
|
:host(.hidden) {
|
408
420
|
opacity: 0;
|
409
421
|
animation: slideDown 0.3s linear;
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-929c9764.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-components-area-flamingo",
|
3
|
-
"version": "1.1.72-rc.
|
3
|
+
"version": "1.1.72-rc.25",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.72-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.72-rc.25",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|