@luzmo/analytics-components-kit 1.0.1-alpha.41 → 1.0.1-alpha.43
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/components/{calculate-data-item-icon-B9B0iLjm.js → calculate-data-item-icon-DKjZwr-x.js} +61 -43
- package/components/{calculate-data-item-icon-CjHO4KtA.cjs → calculate-data-item-icon-DlfbBvFN.cjs} +1 -1
- package/components/display-settings/display-settings.d.ts +1 -0
- package/components/display-settings/index.cjs +1 -86
- package/components/display-settings/index.js +6 -216
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +5 -5
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +5 -5
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +6 -6
- package/components/display-settings-numeric/index.cjs +2 -2
- package/components/display-settings-numeric/index.js +5 -5
- package/components/display-settings-period-over-period/index.cjs +8 -8
- package/components/display-settings-period-over-period/index.js +82 -71
- package/components/draggable-data-item/draggable-data-item.d.ts +2 -0
- package/components/draggable-data-item/index.cjs +6 -5
- package/components/draggable-data-item/index.js +21 -17
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -0
- package/components/draggable-data-item-level/index.cjs +12 -7
- package/components/draggable-data-item-level/index.js +79 -60
- package/components/droppable-slot/droppable-slot.d.ts +6 -2
- package/components/droppable-slot/index.cjs +72 -11
- package/components/droppable-slot/index.js +659 -129
- package/components/edit-item/index.cjs +1 -1
- package/components/edit-item/index.js +4 -4
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +3 -3
- package/components/{edit-option-base-BQc4gXup.js → edit-option-base-CbpBi6I7.js} +3 -3
- package/components/{edit-option-base-ByphLI4J.cjs → edit-option-base-Db3JjWMk.cjs} +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +2 -2
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +2 -2
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +2 -2
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +2 -2
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +2 -2
- package/components/edit-option-positions-number-field/index.cjs +2 -2
- package/components/edit-option-positions-number-field/index.js +4 -4
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +2 -2
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +2 -2
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +2 -2
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +2 -2
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +2 -2
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +3 -3
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +2 -2
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +2 -2
- package/components/{focusable-BTJYY_Mf.cjs → focusable-B8t8a-WJ.cjs} +1 -1
- package/components/{focusable-BXhQz3_k.js → focusable-Bhf_beoW.js} +1 -1
- package/components/grid/index.cjs +8 -8
- package/components/grid/index.js +126 -126
- package/components/{if-defined-CTc4c9nr.js → if-defined-Dg09naf2.js} +1 -1
- package/components/{if-defined-Bulnuz1A.cjs → if-defined-DjdbEoAa.cjs} +1 -1
- package/components/{index-8fxgV8-A.js → index-BNCgbOV2.js} +2 -2
- package/components/{index-DQbl3h5H.cjs → index-BNFpjvqX.cjs} +1 -1
- package/components/index-BqMMcuLX.cjs +121 -0
- package/components/index-Cw_HnduG.js +304 -0
- package/components/{index-BiY07GvX.js → index-DM0JWaVq.js} +4 -4
- package/components/{index-DM96Q1fX.cjs → index-MVmoiSxL.cjs} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +3 -3
- package/components/luzmo-icons-Bvm-_ECi.cjs +31 -0
- package/components/{luzmo-icons-v9hKZ3HV.js → luzmo-icons-DnAqAQCX.js} +176 -142
- package/components/{property-Dn4zSyxu.js → property-BFMfZY1k.js} +81 -78
- package/components/property-BV1QaY8E.cjs +42 -0
- package/components/{sized-mixin-BNtmplgF.cjs → sized-mixin-C48t6K7U.cjs} +1 -1
- package/components/{sized-mixin-BR_Ii7le.js → sized-mixin-CkdMApAU.js} +1 -1
- package/components/slot-contents-picker/index.cjs +8 -8
- package/components/slot-contents-picker/index.js +8 -8
- package/components/slot-menu/index.cjs +10 -9
- package/components/slot-menu/index.js +150 -80
- package/components/slot-menu/slot-menu.d.ts +5 -5
- package/components/slot-menu-list/index.cjs +2 -2
- package/components/slot-menu-list/index.js +4 -4
- package/components/{state-vVJlsarL.js → state-BSTa7W6f.js} +1 -1
- package/components/{state-BxZEcclm.cjs → state-CuE7TJCY.cjs} +1 -1
- package/components/{task-qPJdeXO1.cjs → task-0B-FC3rj.cjs} +1 -1
- package/components/{task-PQaVY8Iw.js → task-CDsB8Kbr.js} +1 -1
- package/custom-elements.json +75 -13
- package/package.json +1 -1
- package/utils/data-item-types/calculate-data-item-icon.d.ts +1 -0
- package/utils/drag/draggable.d.ts +13 -0
- package/utils/store/slot-context.d.ts +4 -0
- package/utils/store/slot-store.d.ts +21 -0
- package/components/luzmo-icons-B_3XTuMC.cjs +0 -31
- package/components/property-BCb4Kybn.cjs +0 -42
package/components/grid/index.js
CHANGED
@@ -20,10 +20,10 @@
|
|
20
20
|
var Po = Object.defineProperty;
|
21
21
|
var $o = (i, e, t) => e in i ? Po(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
22
22
|
var oi = (i, e, t) => $o(i, typeof e != "symbol" ? e + "" : e, t);
|
23
|
-
import { T as Wo, i as Vt, a as yt, x as D, n as y, r as _i, B as es } from "../property-
|
24
|
-
import { r as rt } from "../state-
|
23
|
+
import { T as Wo, i as Vt, a as yt, x as D, n as y, r as _i, B as es } from "../property-BFMfZY1k.js";
|
24
|
+
import { r as rt } from "../state-BSTa7W6f.js";
|
25
25
|
import { e as Yt } from "../query-Ddbd72Um.js";
|
26
|
-
import {
|
26
|
+
import { i as Fo, aa as Uo, ah as Go, ab as jo, a8 as qo, ai as Vo, aj as Yo, ak as Xo, ae as Ko } from "../luzmo-icons-DnAqAQCX.js";
|
27
27
|
import "../index-rQxtPaJl.js";
|
28
28
|
import "../index-BHJH1eGn.js";
|
29
29
|
import "../index-BC1LV3vH.js";
|
@@ -42,15 +42,37 @@ const Bo = () => {
|
|
42
42
|
}
|
43
43
|
};
|
44
44
|
Bo();
|
45
|
+
/**
|
46
|
+
* @license
|
47
|
+
* Copyright 2017 Google LLC
|
48
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
49
|
+
*/
|
50
|
+
const on = { ATTRIBUTE: 1 }, nn = (i) => (...e) => ({ _$litDirective$: i, values: e });
|
51
|
+
let an = class {
|
52
|
+
constructor(e) {
|
53
|
+
}
|
54
|
+
get _$AU() {
|
55
|
+
return this._$AM._$AU;
|
56
|
+
}
|
57
|
+
_$AT(e, t, s) {
|
58
|
+
this._$Ct = e, this._$AM = t, this._$Ci = s;
|
59
|
+
}
|
60
|
+
_$AS(e, t) {
|
61
|
+
return this.update(e, t);
|
62
|
+
}
|
63
|
+
update(e, t) {
|
64
|
+
return this.render(...t);
|
65
|
+
}
|
66
|
+
};
|
45
67
|
const zi = Math.min, qe = Math.max, Nt = Math.round, Et = Math.floor, ye = (i) => ({
|
46
68
|
x: i,
|
47
69
|
y: i
|
48
|
-
}),
|
70
|
+
}), ln = {
|
49
71
|
left: "right",
|
50
72
|
right: "left",
|
51
73
|
bottom: "top",
|
52
74
|
top: "bottom"
|
53
|
-
},
|
75
|
+
}, dn = {
|
54
76
|
start: "end",
|
55
77
|
end: "start"
|
56
78
|
};
|
@@ -63,7 +85,7 @@ function Je(i) {
|
|
63
85
|
function Xt(i) {
|
64
86
|
return i.split("-")[1];
|
65
87
|
}
|
66
|
-
function
|
88
|
+
function cn(i) {
|
67
89
|
return i === "x" ? "y" : "x";
|
68
90
|
}
|
69
91
|
function Lr(i) {
|
@@ -73,22 +95,22 @@ function Oe(i) {
|
|
73
95
|
return ["top", "bottom"].includes(Je(i)) ? "y" : "x";
|
74
96
|
}
|
75
97
|
function Ir(i) {
|
76
|
-
return
|
98
|
+
return cn(Oe(i));
|
77
99
|
}
|
78
|
-
function
|
100
|
+
function hn(i, e, t) {
|
79
101
|
t === void 0 && (t = !1);
|
80
102
|
const s = Xt(i), r = Ir(i), o = Lr(r);
|
81
103
|
let n = r === "x" ? s === (t ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
82
104
|
return e.reference[o] > e.floating[o] && (n = Ht(n)), [n, Ht(n)];
|
83
105
|
}
|
84
|
-
function
|
106
|
+
function un(i) {
|
85
107
|
const e = Ht(i);
|
86
108
|
return [xi(i), e, xi(e)];
|
87
109
|
}
|
88
110
|
function xi(i) {
|
89
|
-
return i.replace(/start|end/g, (e) =>
|
111
|
+
return i.replace(/start|end/g, (e) => dn[e]);
|
90
112
|
}
|
91
|
-
function
|
113
|
+
function mn(i, e, t) {
|
92
114
|
const s = ["left", "right"], r = ["right", "left"], o = ["top", "bottom"], n = ["bottom", "top"];
|
93
115
|
switch (i) {
|
94
116
|
case "top":
|
@@ -101,15 +123,15 @@ function cn(i, e, t) {
|
|
101
123
|
return [];
|
102
124
|
}
|
103
125
|
}
|
104
|
-
function
|
126
|
+
function fn(i, e, t, s) {
|
105
127
|
const r = Xt(i);
|
106
|
-
let o =
|
128
|
+
let o = mn(Je(i), t === "start", s);
|
107
129
|
return r && (o = o.map((n) => n + "-" + r), e && (o = o.concat(o.map(xi)))), o;
|
108
130
|
}
|
109
131
|
function Ht(i) {
|
110
|
-
return i.replace(/left|right|bottom|top/g, (e) =>
|
132
|
+
return i.replace(/left|right|bottom|top/g, (e) => ln[e]);
|
111
133
|
}
|
112
|
-
function
|
134
|
+
function gn(i) {
|
113
135
|
return {
|
114
136
|
top: 0,
|
115
137
|
right: 0,
|
@@ -118,8 +140,8 @@ function un(i) {
|
|
118
140
|
...i
|
119
141
|
};
|
120
142
|
}
|
121
|
-
function
|
122
|
-
return typeof i != "number" ?
|
143
|
+
function pn(i) {
|
144
|
+
return typeof i != "number" ? gn(i) : {
|
123
145
|
top: i,
|
124
146
|
right: i,
|
125
147
|
bottom: i,
|
@@ -192,7 +214,7 @@ function is(i, e, t) {
|
|
192
214
|
}
|
193
215
|
return f;
|
194
216
|
}
|
195
|
-
const
|
217
|
+
const bn = async (i, e, t) => {
|
196
218
|
const {
|
197
219
|
placement: s = "bottom",
|
198
220
|
strategy: r = "absolute",
|
@@ -253,7 +275,7 @@ const fn = async (i, e, t) => {
|
|
253
275
|
middlewareData: f
|
254
276
|
};
|
255
277
|
};
|
256
|
-
async function
|
278
|
+
async function yn(i, e) {
|
257
279
|
var t;
|
258
280
|
e === void 0 && (e = {});
|
259
281
|
const {
|
@@ -269,7 +291,7 @@ async function gn(i, e) {
|
|
269
291
|
elementContext: h = "floating",
|
270
292
|
altBoundary: u = !1,
|
271
293
|
padding: f = 0
|
272
|
-
} = Oi(e, i), m =
|
294
|
+
} = Oi(e, i), m = pn(f), b = a[u ? h === "floating" ? "reference" : "floating" : h], w = Ot(await o.getClippingRect({
|
273
295
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(b))) == null || t ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
|
274
296
|
boundary: d,
|
275
297
|
rootBoundary: c,
|
@@ -298,7 +320,7 @@ async function gn(i, e) {
|
|
298
320
|
right: (C.right - w.right + m.right) / R.x
|
299
321
|
};
|
300
322
|
}
|
301
|
-
const
|
323
|
+
const vn = function(i) {
|
302
324
|
return i === void 0 && (i = {}), {
|
303
325
|
name: "flip",
|
304
326
|
options: i,
|
@@ -322,12 +344,12 @@ const pn = function(i) {
|
|
322
344
|
} = Oi(i, e);
|
323
345
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
324
346
|
return {};
|
325
|
-
const w = Je(r), _ = Oe(a), z = Je(a) === a, R = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), C = u || (z || !p ? [Ht(a)] :
|
326
|
-
!u && V && C.push(...
|
327
|
-
const F = [a, ...C], H = await
|
347
|
+
const w = Je(r), _ = Oe(a), z = Je(a) === a, R = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), C = u || (z || !p ? [Ht(a)] : un(a)), V = m !== "none";
|
348
|
+
!u && V && C.push(...fn(a, p, m, R));
|
349
|
+
const F = [a, ...C], H = await yn(e, b), U = [];
|
328
350
|
let O = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
329
351
|
if (c && U.push(H[w]), h) {
|
330
|
-
const T =
|
352
|
+
const T = hn(r, n, R);
|
331
353
|
U.push(H[T[0]], H[T[1]]);
|
332
354
|
}
|
333
355
|
if (O = [...O, {
|
@@ -380,7 +402,7 @@ const pn = function(i) {
|
|
380
402
|
}
|
381
403
|
};
|
382
404
|
};
|
383
|
-
async function
|
405
|
+
async function wn(i, e) {
|
384
406
|
const {
|
385
407
|
placement: t,
|
386
408
|
platform: s,
|
@@ -407,7 +429,7 @@ async function bn(i, e) {
|
|
407
429
|
y: f * c
|
408
430
|
};
|
409
431
|
}
|
410
|
-
const
|
432
|
+
const _n = function(i) {
|
411
433
|
return i === void 0 && (i = 0), {
|
412
434
|
name: "offset",
|
413
435
|
options: i,
|
@@ -418,7 +440,7 @@ const yn = function(i) {
|
|
418
440
|
y: o,
|
419
441
|
placement: n,
|
420
442
|
middlewareData: a
|
421
|
-
} = e, l = await
|
443
|
+
} = e, l = await wn(e, i);
|
422
444
|
return n === ((t = a.offset) == null ? void 0 : t.placement) && (s = a.arrow) != null && s.alignmentOffset ? {} : {
|
423
445
|
x: r + l.x,
|
424
446
|
y: o + l.y,
|
@@ -465,7 +487,7 @@ function vt(i) {
|
|
465
487
|
} = he(i);
|
466
488
|
return /auto|scroll|overlay|hidden|clip/.test(e + s + t) && !["inline", "contents"].includes(r);
|
467
489
|
}
|
468
|
-
function
|
490
|
+
function zn(i) {
|
469
491
|
return ["table", "td", "th"].includes(ot(i));
|
470
492
|
}
|
471
493
|
function Jt(i) {
|
@@ -481,7 +503,7 @@ function Pi(i) {
|
|
481
503
|
const e = $i(), t = ce(i) ? he(i) : i;
|
482
504
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((s) => t[s] ? t[s] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((s) => (t.willChange || "").includes(s)) || ["paint", "layout", "strict", "content"].some((s) => (t.contain || "").includes(s));
|
483
505
|
}
|
484
|
-
function
|
506
|
+
function xn(i) {
|
485
507
|
let e = ke(i);
|
486
508
|
for (; ve(e) && !Ze(e); ) {
|
487
509
|
if (Pi(e))
|
@@ -567,15 +589,15 @@ function Ve(i) {
|
|
567
589
|
y: a
|
568
590
|
};
|
569
591
|
}
|
570
|
-
const
|
592
|
+
const En = /* @__PURE__ */ ye(0);
|
571
593
|
function Or(i) {
|
572
594
|
const e = se(i);
|
573
|
-
return !$i() || !e.visualViewport ?
|
595
|
+
return !$i() || !e.visualViewport ? En : {
|
574
596
|
x: e.visualViewport.offsetLeft,
|
575
597
|
y: e.visualViewport.offsetTop
|
576
598
|
};
|
577
599
|
}
|
578
|
-
function
|
600
|
+
function Mn(i, e, t) {
|
579
601
|
return e === void 0 && (e = !1), !t || e && t !== se(i) ? !1 : e;
|
580
602
|
}
|
581
603
|
function $e(i, e, t, s) {
|
@@ -583,7 +605,7 @@ function $e(i, e, t, s) {
|
|
583
605
|
const r = i.getBoundingClientRect(), o = Bi(i);
|
584
606
|
let n = ye(1);
|
585
607
|
e && (s ? ce(s) && (n = Ve(s)) : n = Ve(i));
|
586
|
-
const a =
|
608
|
+
const a = Mn(o, t, s) ? Or(o) : ye(0);
|
587
609
|
let l = (r.left + a.x) / n.x, d = (r.top + a.y) / n.y, c = r.width / n.x, h = r.height / n.y;
|
588
610
|
if (o) {
|
589
611
|
const u = se(o), f = s && ce(s) ? se(s) : s;
|
@@ -615,7 +637,7 @@ function Pr(i, e, t) {
|
|
615
637
|
y: o
|
616
638
|
};
|
617
639
|
}
|
618
|
-
function
|
640
|
+
function kn(i) {
|
619
641
|
let {
|
620
642
|
elements: e,
|
621
643
|
rect: t,
|
@@ -642,10 +664,10 @@ function xn(i) {
|
|
642
664
|
y: t.y * d.y - l.scrollTop * d.y + c.y + u.y
|
643
665
|
};
|
644
666
|
}
|
645
|
-
function
|
667
|
+
function Rn(i) {
|
646
668
|
return Array.from(i.getClientRects());
|
647
669
|
}
|
648
|
-
function
|
670
|
+
function Sn(i) {
|
649
671
|
const e = we(i), t = Zt(i), s = i.ownerDocument.body, r = qe(e.scrollWidth, e.clientWidth, s.scrollWidth, s.clientWidth), o = qe(e.scrollHeight, e.clientHeight, s.scrollHeight, s.clientHeight);
|
650
672
|
let n = -t.scrollLeft + Wi(i);
|
651
673
|
const a = -t.scrollTop;
|
@@ -656,7 +678,7 @@ function Mn(i) {
|
|
656
678
|
y: a
|
657
679
|
};
|
658
680
|
}
|
659
|
-
function
|
681
|
+
function Cn(i, e) {
|
660
682
|
const t = se(i), s = we(i), r = t.visualViewport;
|
661
683
|
let o = s.clientWidth, n = s.clientHeight, a = 0, l = 0;
|
662
684
|
if (r) {
|
@@ -671,7 +693,7 @@ function kn(i, e) {
|
|
671
693
|
y: l
|
672
694
|
};
|
673
695
|
}
|
674
|
-
function
|
696
|
+
function An(i, e) {
|
675
697
|
const t = $e(i, !0, e === "fixed"), s = t.top + i.clientTop, r = t.left + i.clientLeft, o = ve(i) ? Ve(i) : ye(1), n = i.clientWidth * o.x, a = i.clientHeight * o.y, l = r * o.x, d = s * o.y;
|
676
698
|
return {
|
677
699
|
width: n,
|
@@ -683,11 +705,11 @@ function Rn(i, e) {
|
|
683
705
|
function rs(i, e, t) {
|
684
706
|
let s;
|
685
707
|
if (e === "viewport")
|
686
|
-
s =
|
708
|
+
s = Cn(i, t);
|
687
709
|
else if (e === "document")
|
688
|
-
s =
|
710
|
+
s = Sn(we(i));
|
689
711
|
else if (ce(e))
|
690
|
-
s =
|
712
|
+
s = An(e, t);
|
691
713
|
else {
|
692
714
|
const r = Or(i);
|
693
715
|
s = {
|
@@ -703,7 +725,7 @@ function $r(i, e) {
|
|
703
725
|
const t = ke(i);
|
704
726
|
return t === e || !ce(t) || Ze(t) ? !1 : he(t).position === "fixed" || $r(t, e);
|
705
727
|
}
|
706
|
-
function
|
728
|
+
function Dn(i, e) {
|
707
729
|
const t = e.get(i);
|
708
730
|
if (t)
|
709
731
|
return t;
|
@@ -716,14 +738,14 @@ function Sn(i, e) {
|
|
716
738
|
}
|
717
739
|
return e.set(i, s), s;
|
718
740
|
}
|
719
|
-
function
|
741
|
+
function Ln(i) {
|
720
742
|
let {
|
721
743
|
element: e,
|
722
744
|
boundary: t,
|
723
745
|
rootBoundary: s,
|
724
746
|
strategy: r
|
725
747
|
} = i;
|
726
|
-
const n = [...t === "clippingAncestors" ? Jt(e) ? [] :
|
748
|
+
const n = [...t === "clippingAncestors" ? Jt(e) ? [] : Dn(e, this._c) : [].concat(t), s], a = n[0], l = n.reduce((d, c) => {
|
727
749
|
const h = rs(e, c, r);
|
728
750
|
return d.top = qe(h.top, d.top), d.right = zi(h.right, d.right), d.bottom = zi(h.bottom, d.bottom), d.left = qe(h.left, d.left), d;
|
729
751
|
}, rs(e, a, r));
|
@@ -734,7 +756,7 @@ function Cn(i) {
|
|
734
756
|
y: l.top
|
735
757
|
};
|
736
758
|
}
|
737
|
-
function
|
759
|
+
function In(i) {
|
738
760
|
const {
|
739
761
|
width: e,
|
740
762
|
height: t
|
@@ -744,7 +766,7 @@ function An(i) {
|
|
744
766
|
height: t
|
745
767
|
};
|
746
768
|
}
|
747
|
-
function
|
769
|
+
function Tn(i, e, t) {
|
748
770
|
const s = ve(e), r = we(e), o = t === "fixed", n = $e(i, !0, o, e);
|
749
771
|
let a = {
|
750
772
|
scrollLeft: 0,
|
@@ -793,14 +815,14 @@ function Br(i, e) {
|
|
793
815
|
return t;
|
794
816
|
}
|
795
817
|
let s = os(i, e);
|
796
|
-
for (; s &&
|
818
|
+
for (; s && zn(s) && ni(s); )
|
797
819
|
s = os(s, e);
|
798
|
-
return s && Ze(s) && ni(s) && !Pi(s) ? t : s ||
|
820
|
+
return s && Ze(s) && ni(s) && !Pi(s) ? t : s || xn(i) || t;
|
799
821
|
}
|
800
|
-
const
|
822
|
+
const Nn = async function(i) {
|
801
823
|
const e = this.getOffsetParent || Br, t = this.getDimensions, s = await t(i.floating);
|
802
824
|
return {
|
803
|
-
reference:
|
825
|
+
reference: Tn(i.reference, await e(i.floating), i.strategy),
|
804
826
|
floating: {
|
805
827
|
x: 0,
|
806
828
|
y: 0,
|
@@ -809,25 +831,25 @@ const Ln = async function(i) {
|
|
809
831
|
}
|
810
832
|
};
|
811
833
|
};
|
812
|
-
function
|
834
|
+
function Hn(i) {
|
813
835
|
return he(i).direction === "rtl";
|
814
836
|
}
|
815
|
-
const
|
816
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
837
|
+
const On = {
|
838
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: kn,
|
817
839
|
getDocumentElement: we,
|
818
|
-
getClippingRect:
|
840
|
+
getClippingRect: Ln,
|
819
841
|
getOffsetParent: Br,
|
820
|
-
getElementRects:
|
821
|
-
getClientRects:
|
822
|
-
getDimensions:
|
842
|
+
getElementRects: Nn,
|
843
|
+
getClientRects: Rn,
|
844
|
+
getDimensions: In,
|
823
845
|
getScale: Ve,
|
824
846
|
isElement: ce,
|
825
|
-
isRTL:
|
847
|
+
isRTL: Hn
|
826
848
|
};
|
827
849
|
function Wr(i, e) {
|
828
850
|
return i.x === e.x && i.y === e.y && i.width === e.width && i.height === e.height;
|
829
851
|
}
|
830
|
-
function
|
852
|
+
function Pn(i, e) {
|
831
853
|
let t = null, s;
|
832
854
|
const r = we(i);
|
833
855
|
function o() {
|
@@ -887,7 +909,7 @@ function ns(i, e, t, s) {
|
|
887
909
|
passive: !0
|
888
910
|
}), o && w.addEventListener("resize", t);
|
889
911
|
});
|
890
|
-
const h = d && a ?
|
912
|
+
const h = d && a ? Pn(d, t) : null;
|
891
913
|
let u = -1, f = null;
|
892
914
|
n && (f = new ResizeObserver((w) => {
|
893
915
|
let [_] = w;
|
@@ -909,15 +931,15 @@ function ns(i, e, t, s) {
|
|
909
931
|
}), h == null || h(), (w = f) == null || w.disconnect(), f = null, l && cancelAnimationFrame(m);
|
910
932
|
};
|
911
933
|
}
|
912
|
-
const as =
|
934
|
+
const as = _n, ls = vn, ds = (i, e, t) => {
|
913
935
|
const s = /* @__PURE__ */ new Map(), r = {
|
914
|
-
platform:
|
936
|
+
platform: On,
|
915
937
|
...t
|
916
938
|
}, o = {
|
917
939
|
...r.platform,
|
918
940
|
_c: s
|
919
941
|
};
|
920
|
-
return
|
942
|
+
return bn(i, e, {
|
921
943
|
...r,
|
922
944
|
platform: o
|
923
945
|
});
|
@@ -925,7 +947,7 @@ const as = yn, ls = pn, ds = (i, e, t) => {
|
|
925
947
|
let t = "The dashboard component encountered an error";
|
926
948
|
typeof (e == null ? void 0 : e.dashboardId) == "string" && (t += ` for dashboard with id ${e.dashboardId}`), typeof (e == null ? void 0 : e.dashboardSlug) == "string" && (t += ` for dashboard with slug ${e.dashboardSlug}`), typeof (e == null ? void 0 : e.container) == "string" && (t += ` in container ${e.container}`), i && (t += `:
|
927
949
|
${i}`, console.warn(t));
|
928
|
-
},
|
950
|
+
}, $n = (i) => {
|
929
951
|
let e = !1, t = "";
|
930
952
|
const r = (document.body || document.documentElement).style, o = {
|
931
953
|
svg: !!("createElementNS" in document && document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect),
|
@@ -979,7 +1001,7 @@ ${i}`, console.warn(t));
|
|
979
1001
|
de: "Initialisiere...",
|
980
1002
|
es: "Inicializando..."
|
981
1003
|
}
|
982
|
-
}, dt = (i) => i ? i.endsWith("/") ? i : `${i}/` : "", xe = (i) => i ? i.endsWith("/") ? i.slice(0, -1) : i : "",
|
1004
|
+
}, dt = (i) => i ? i.endsWith("/") ? i : `${i}/` : "", xe = (i) => i ? i.endsWith("/") ? i.slice(0, -1) : i : "", Bn = (i, e, t, s) => {
|
983
1005
|
var a;
|
984
1006
|
const r = (l, d) => {
|
985
1007
|
var p;
|
@@ -1041,7 +1063,7 @@ ${i}`, console.warn(t));
|
|
1041
1063
|
d.accessibleBy = [...h, ...u, ...f], n.push(d);
|
1042
1064
|
}
|
1043
1065
|
return n;
|
1044
|
-
},
|
1066
|
+
}, Wn = "0.0.0-unknown-luzmo", Fn = (i) => {
|
1045
1067
|
const e = /^(%20|\s)*(javascript|data)/im, t = /[^\u0020-\u007E]/gim, s = /^([^:]+):/gm, r = /* @__PURE__ */ new Set([".", "/"]), o = (d) => r.has(d[0]);
|
1046
1068
|
if (!i)
|
1047
1069
|
return "about:blank";
|
@@ -1053,8 +1075,8 @@ ${i}`, console.warn(t));
|
|
1053
1075
|
return n;
|
1054
1076
|
const l = a[0];
|
1055
1077
|
return e.test(l) ? "about:blank" : n;
|
1056
|
-
}, hs = (i) => JSON.parse(JSON.stringify(i)),
|
1057
|
-
t in i ? i[t] === void 0 ? i[t] = s : i[t] =
|
1078
|
+
}, hs = (i) => JSON.parse(JSON.stringify(i)), Un = (i) => i && typeof i == "object", Mi = (i, e) => (Object.entries(e).forEach(([t, s]) => {
|
1079
|
+
t in i ? i[t] === void 0 ? i[t] = s : i[t] = Un(s) ? Mi(i[t], s) : i[t] : i[t] = s;
|
1058
1080
|
}), i), We = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, function(i) {
|
1059
1081
|
const e = Math.random() * 16 | 0;
|
1060
1082
|
return (i == "x" ? e : e & 3 | 8).toString(16);
|
@@ -1062,9 +1084,9 @@ ${i}`, console.warn(t));
|
|
1062
1084
|
const e = [], { appServer: t, language: s, editorLanguage: r, qeVersion: o, loaderBackground: n, loaderSpinnerColor: a, loaderSpinnerBackground: l, loaderFontColor: d, screenMode: c, key: h, token: u, timezoneId: f, itemEmbedding: m, itemDimensions: p, dashboardId: b, dashboardSlug: w, itemId: _, theme: z, mainColor: R, accentColor: C, editMode: V } = i.params;
|
1063
1085
|
s && s !== "auto" && e.push(`language=${s}`), r && r !== "auto" && e.push(`editorLanguage=${r}`), o && e.push(`qe_version=${o}`), n && e.push(`ldrbg=${n}`), d && e.push(`ldrftclr=${d}`), a && e.push(`ldrspclr=${a}`), l && e.push(`ldrspbg=${l}`), z && e.push(`theme=${z}`), R && e.push(`mainColor=${R}`), C && e.push(`accentColor=${C}`), c && c !== "auto" && e.push("screenMode=&{screenMode}"), f && e.push("timezoneId=" + f), m && p && p.width && e.push("width=" + p.width), m && p && p.height && e.push("height=" + p.height), V && e.push("editMode=" + V);
|
1064
1086
|
const F = h && u ? "#" + h + ":" + u : "";
|
1065
|
-
e.push("version=" + (i.libVersion ||
|
1087
|
+
e.push("version=" + (i.libVersion || Wn));
|
1066
1088
|
const H = m ? `${t}i/${b || w}/${_}?${encodeURIComponent(e.join("&"))}${F}` : `${t}i/${b || w}?${encodeURIComponent(e.join("&"))}${F}`;
|
1067
|
-
return
|
1089
|
+
return Fn(H);
|
1068
1090
|
}, ms = (i) => {
|
1069
1091
|
let e;
|
1070
1092
|
(i.params.error || i.browserNotSupported.length > 0) && (i.params.error = !0, i.browserNotSupported && (e = "Browser is not supported."));
|
@@ -1081,7 +1103,7 @@ function Ur(i) {
|
|
1081
1103
|
const e = {};
|
1082
1104
|
return i.params.loaderBackground && !i.iframeLoaded && (e.background = i.params.loaderBackground), e;
|
1083
1105
|
}
|
1084
|
-
function
|
1106
|
+
function Gn(i) {
|
1085
1107
|
var r;
|
1086
1108
|
const e = ((r = i.params.itemDimensions) == null ? void 0 : r.height) || ne.itemDimensions.height, t = i.params.itemEmbedding && e !== "auto";
|
1087
1109
|
return {
|
@@ -1089,7 +1111,7 @@ function Wn(i) {
|
|
1089
1111
|
height: `${t ? e : i.minHeight}px`
|
1090
1112
|
};
|
1091
1113
|
}
|
1092
|
-
function
|
1114
|
+
function jn(i) {
|
1093
1115
|
var t, s;
|
1094
1116
|
const e = i.params.loaderBackground || ne.loaderBackground;
|
1095
1117
|
if (i.params.itemEmbedding) {
|
@@ -1106,7 +1128,7 @@ function Fn(i) {
|
|
1106
1128
|
background: e
|
1107
1129
|
};
|
1108
1130
|
}
|
1109
|
-
function
|
1131
|
+
function qn(i) {
|
1110
1132
|
const { loaderSpinnerColor: e, loaderSpinnerBackground: t } = ne, s = gs(i.borderWidth, i.params.loaderSpinnerColor || e), r = gs(i.borderWidth, i.params.loaderSpinnerBackground || t), o = `${i.loaderSize}px`;
|
1111
1133
|
return {
|
1112
1134
|
"border-top": s,
|
@@ -1117,7 +1139,7 @@ function Un(i) {
|
|
1117
1139
|
height: o
|
1118
1140
|
};
|
1119
1141
|
}
|
1120
|
-
function
|
1142
|
+
function Vn(i) {
|
1121
1143
|
var o;
|
1122
1144
|
const e = ((o = i.params.itemDimensions) == null ? void 0 : o.height) || ne.itemDimensions.height, t = i.params.itemEmbedding && e !== "auto", s = (n) => `${(n - i.loaderSize - 32) / 2}px`;
|
1123
1145
|
return {
|
@@ -1137,7 +1159,7 @@ function fs(i) {
|
|
1137
1159
|
function gs(i, e) {
|
1138
1160
|
return `${i}px solid ${e}`;
|
1139
1161
|
}
|
1140
|
-
const
|
1162
|
+
const Yn = (i, e) => {
|
1141
1163
|
i != null && i.contentWindow && i.contentWindow.location.replace(e);
|
1142
1164
|
}, ps = (i, e, t) => {
|
1143
1165
|
const s = We();
|
@@ -1154,7 +1176,7 @@ const jn = (i, e) => {
|
|
1154
1176
|
}
|
1155
1177
|
}, 12e5);
|
1156
1178
|
})) : Promise.reject(new Error("Cannot retrieve contentWindow."));
|
1157
|
-
},
|
1179
|
+
}, Xn = async (i) => {
|
1158
1180
|
if (await i.updateComplete, (i.currentAuthKey ?? i.authKey) && (i.currentAuthToken ?? i.authToken)) {
|
1159
1181
|
const e = new Promise((t, s) => {
|
1160
1182
|
(() => {
|
@@ -1233,7 +1255,7 @@ const jn = (i, e) => {
|
|
1233
1255
|
})
|
1234
1256
|
}
|
1235
1257
|
).then((n) => n.json()).then((n) => {
|
1236
|
-
const a = n.rows.length > 0 ?
|
1258
|
+
const a = n.rows.length > 0 ? Bn(n.rows, r.integrationId, r.user, i) : [];
|
1237
1259
|
t(a);
|
1238
1260
|
});
|
1239
1261
|
}).catch((r) => {
|
@@ -1245,7 +1267,7 @@ const jn = (i, e) => {
|
|
1245
1267
|
})());
|
1246
1268
|
}
|
1247
1269
|
throw new Error("No authKey or authToken found in the luzmo-dashboard component.");
|
1248
|
-
},
|
1270
|
+
}, Kn = (i, e, t) => {
|
1249
1271
|
if (e != null && e.contentWindow) {
|
1250
1272
|
const s = We();
|
1251
1273
|
return e.contentWindow.postMessage({
|
@@ -1263,7 +1285,7 @@ const jn = (i, e) => {
|
|
1263
1285
|
});
|
1264
1286
|
}
|
1265
1287
|
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
1266
|
-
},
|
1288
|
+
}, Jn = (i, e) => {
|
1267
1289
|
if (e != null && e.contentWindow) {
|
1268
1290
|
const t = We();
|
1269
1291
|
return e.contentWindow.postMessage({ action: "getFilters", _version: i.libVersion, requestId: t }, "*"), new Promise((s, r) => {
|
@@ -1280,12 +1302,12 @@ const jn = (i, e) => {
|
|
1280
1302
|
action: "refreshData",
|
1281
1303
|
id: t ?? null,
|
1282
1304
|
_version: i.libVersion
|
1283
|
-
}, "*"), Promise.resolve()) : Promise.reject(new Error("Cannot retrieve contentWindow.")),
|
1305
|
+
}, "*"), Promise.resolve()) : Promise.reject(new Error("Cannot retrieve contentWindow.")), Zn = (i, e) => e ? (e.contentWindow.postMessage({ action: "reloadDashboard", _version: i.libVersion }, "*"), Promise.resolve()) : Promise.reject(new Error("Cannot retrieve contentWindow.")), Qn = (i, e, t, s) => e ? (e.contentWindow.postMessage({
|
1284
1306
|
action: "setAuthorization",
|
1285
1307
|
key: t,
|
1286
1308
|
token: s,
|
1287
1309
|
_version: i.libVersion
|
1288
|
-
}, "*"), Promise.resolve()) : Promise.reject(new Error("Cannot retrieve contentWindow.")),
|
1310
|
+
}, "*"), Promise.resolve()) : Promise.reject(new Error("Cannot retrieve contentWindow.")), ea = (i, e, t) => {
|
1289
1311
|
if (e && e.contentWindow) {
|
1290
1312
|
const s = We();
|
1291
1313
|
return i.params.editMode === t ? Promise.reject(new Error("editMode parameter is currently already set to " + t)) : t !== "editFull" && t !== "editLimited" && t !== "view" ? Promise.reject(new Error("The editMode parameter must be one of the following values: 'editFull', 'editLimited' or 'view'.")) : (e.contentWindow.postMessage({
|
@@ -1298,7 +1320,7 @@ const jn = (i, e) => {
|
|
1298
1320
|
}));
|
1299
1321
|
}
|
1300
1322
|
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
1301
|
-
},
|
1323
|
+
}, ta = (i, e, t, s) => {
|
1302
1324
|
if (e) {
|
1303
1325
|
const r = We();
|
1304
1326
|
return e.contentWindow.postMessage({
|
@@ -1317,7 +1339,7 @@ const jn = (i, e) => {
|
|
1317
1339
|
});
|
1318
1340
|
}
|
1319
1341
|
return Promise.reject();
|
1320
|
-
},
|
1342
|
+
}, ia = (i, e, t) => {
|
1321
1343
|
if (e) {
|
1322
1344
|
const s = We();
|
1323
1345
|
return e.contentWindow.postMessage({
|
@@ -1455,11 +1477,11 @@ const jn = (i, e) => {
|
|
1455
1477
|
libVersion: "lib-version"
|
1456
1478
|
}, ki = "luzmo-embed-container", at = {
|
1457
1479
|
// "remote_app": { url: "http://localhost:4201/remoteEntry.mjs", format: "esm", from: "vite" },
|
1458
|
-
},
|
1480
|
+
}, sa = async (i, e) => {
|
1459
1481
|
const t = typeof i == "function" ? await i() : i, s = document.createElement("script");
|
1460
1482
|
s.type = "text/javascript", s.addEventListener("load", e), s.src = t, document.querySelectorAll("head")[0].append(s);
|
1461
1483
|
}, vs = (i) => ({});
|
1462
|
-
async function
|
1484
|
+
async function ra(i) {
|
1463
1485
|
const e = at[i];
|
1464
1486
|
if (e.inited)
|
1465
1487
|
return e.lib;
|
@@ -1468,7 +1490,7 @@ async function ta(i) {
|
|
1468
1490
|
const s = () => {
|
1469
1491
|
e.inited || (e.lib = window[i], e.lib.init(vs(e.from)), e.inited = !0), t(e.lib);
|
1470
1492
|
};
|
1471
|
-
return
|
1493
|
+
return sa(e.url, s);
|
1472
1494
|
});
|
1473
1495
|
if (["esm", "systemjs"].includes(e.format))
|
1474
1496
|
return new Promise((t, s) => {
|
@@ -1487,15 +1509,15 @@ async function ta(i) {
|
|
1487
1509
|
});
|
1488
1510
|
});
|
1489
1511
|
}
|
1490
|
-
function
|
1512
|
+
function oa(i, e) {
|
1491
1513
|
if (!(i != null && i.default) && e) {
|
1492
1514
|
const t = /* @__PURE__ */ Object.create(null);
|
1493
1515
|
return t.default = i, t.__esModule = !0, t;
|
1494
1516
|
}
|
1495
1517
|
return i;
|
1496
1518
|
}
|
1497
|
-
async function
|
1498
|
-
return
|
1519
|
+
async function na(i, e) {
|
1520
|
+
return ra(i).then((t) => t.get(e).then((s) => s()));
|
1499
1521
|
}
|
1500
1522
|
async function Re(i, e = "DashboardApp") {
|
1501
1523
|
const t = i + e;
|
@@ -1520,40 +1542,18 @@ async function Re(i, e = "DashboardApp") {
|
|
1520
1542
|
from: "vite",
|
1521
1543
|
module: void 0
|
1522
1544
|
};
|
1523
|
-
const r = await
|
1545
|
+
const r = await na(t, `./${e}`), o = oa(r, !0);
|
1524
1546
|
return at[t].module = o, o;
|
1525
1547
|
}
|
1526
|
-
/**
|
1527
|
-
* @license
|
1528
|
-
* Copyright 2017 Google LLC
|
1529
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
1530
|
-
*/
|
1531
|
-
const ra = { ATTRIBUTE: 1 }, oa = (i) => (...e) => ({ _$litDirective$: i, values: e });
|
1532
|
-
let na = class {
|
1533
|
-
constructor(e) {
|
1534
|
-
}
|
1535
|
-
get _$AU() {
|
1536
|
-
return this._$AM._$AU;
|
1537
|
-
}
|
1538
|
-
_$AT(e, t, s) {
|
1539
|
-
this._$Ct = e, this._$AM = t, this._$Ci = s;
|
1540
|
-
}
|
1541
|
-
_$AS(e, t) {
|
1542
|
-
return this.update(e, t);
|
1543
|
-
}
|
1544
|
-
update(e, t) {
|
1545
|
-
return this.render(...t);
|
1546
|
-
}
|
1547
|
-
};
|
1548
1548
|
/**
|
1549
1549
|
* @license
|
1550
1550
|
* Copyright 2018 Google LLC
|
1551
1551
|
* SPDX-License-Identifier: BSD-3-Clause
|
1552
1552
|
*/
|
1553
|
-
const Gr = "important", aa = " !" + Gr, Ne =
|
1553
|
+
const Gr = "important", aa = " !" + Gr, Ne = nn(class extends an {
|
1554
1554
|
constructor(i) {
|
1555
1555
|
var e;
|
1556
|
-
if (super(i), i.type !==
|
1556
|
+
if (super(i), i.type !== on.ATTRIBUTE || i.name !== "style" || ((e = i.strings) == null ? void 0 : e.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
1557
1557
|
}
|
1558
1558
|
render(i) {
|
1559
1559
|
return Object.keys(i).reduce((e, t) => {
|
@@ -1884,7 +1884,7 @@ var la = Object.defineProperty, v = (i, e, t, s) => {
|
|
1884
1884
|
this.dashboardReference = t.cloneNode(!0), t.replaceWith(this.dashboardReference), this.dashboardReference.addEventListener("load", (s) => {
|
1885
1885
|
this.containerWidth = this.dashboardReference.offsetWidth, this.dimensions = s.detail.dimensions, ct(this), window.dispatchEvent(new Event("resize")), this.dispatchEvent(new CustomEvent("load", s));
|
1886
1886
|
}), this.dashboardReference.addEventListener("itemsRendered", (s) => this.dispatchEvent(new CustomEvent("itemsRendered", s))), this.dashboardReference.addEventListener("customEvent", (s) => this.dispatchEvent(new CustomEvent("customEvent", s))), this.dashboardReference.addEventListener("changedFilters", (s) => this.dispatchEvent(new CustomEvent("changedFilters", s))), this.dashboardReference.addEventListener("dashboardAction", (s) => this.dispatchEvent(new CustomEvent("dashboardAction", s))), this.dashboardReference.addEventListener("export", (s) => this.dispatchEvent(new CustomEvent("exported", s))), this.setAllAttributes();
|
1887
|
-
}) : (this.containerWidth = (i = this.container) == null ? void 0 : i.clientWidth, ys(this),
|
1887
|
+
}) : (this.containerWidth = (i = this.container) == null ? void 0 : i.clientWidth, ys(this), $n(this), this._setupLoader(), this.params.error || (this._loaderStyles(), ca(), this._iframeUrl = us(this), (e = this.iframe) == null || e.setAttribute("src", this._iframeUrl), this.iframeStyle = fs(this)));
|
1888
1888
|
}
|
1889
1889
|
setAllAttributes() {
|
1890
1890
|
if (this.dashboardReference) {
|
@@ -1952,7 +1952,7 @@ var la = Object.defineProperty, v = (i, e, t, s) => {
|
|
1952
1952
|
), i.appServer = this.appServer), this.apiHost ? (this.apiHost = this.isWebComponentViewMode() ? xe(this.apiHost) : dt(this.apiHost), i.apiHost = this.apiHost) : (this.apiHost = this.appServer.includes("luzmo.com") ? this.appServer.replace("app", "api") : this.appServer, i.apiHost = this.apiHost), this.currentAuthKey = this.authKey, this.currentAuthToken = this.authToken, i;
|
1953
1953
|
}
|
1954
1954
|
_updateIframeUrl() {
|
1955
|
-
|
1955
|
+
Yn(this.iframe, this._iframeUrl);
|
1956
1956
|
}
|
1957
1957
|
// Setup loader / browser error
|
1958
1958
|
_setupLoader() {
|
@@ -1967,7 +1967,7 @@ var la = Object.defineProperty, v = (i, e, t, s) => {
|
|
1967
1967
|
}
|
1968
1968
|
// Set loader styles
|
1969
1969
|
_loaderStyles() {
|
1970
|
-
this._containerStyle = Ur(this), this._loaderStyle =
|
1970
|
+
this._containerStyle = Ur(this), this._loaderStyle = jn(this), this._loadingCircleStyle = qn(this), this._containerLoaderStyle = Gn(this), this._lcStyle = Vn(this);
|
1971
1971
|
}
|
1972
1972
|
static get styles() {
|
1973
1973
|
return [ha];
|
@@ -2057,28 +2057,28 @@ var la = Object.defineProperty, v = (i, e, t, s) => {
|
|
2057
2057
|
}
|
2058
2058
|
// Public methods
|
2059
2059
|
getData(i) {
|
2060
|
-
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.getData(i) : this.isWebComponentViewMode() ? Promise.reject() :
|
2060
|
+
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.getData(i) : this.isWebComponentViewMode() ? Promise.reject() : Kn(this, this.iframe, i);
|
2061
2061
|
}
|
2062
2062
|
getFilters() {
|
2063
|
-
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.getFilters() : this.isWebComponentViewMode() ? Promise.reject() :
|
2063
|
+
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.getFilters() : this.isWebComponentViewMode() ? Promise.reject() : Jn(this, this.iframe);
|
2064
2064
|
}
|
2065
2065
|
setSelectedData(i, e) {
|
2066
|
-
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setSelectedData(i, e) : this.isWebComponentViewMode() ? Promise.reject() :
|
2066
|
+
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setSelectedData(i, e) : this.isWebComponentViewMode() ? Promise.reject() : ta(this, this.iframe, i, e);
|
2067
2067
|
}
|
2068
2068
|
setAuthorization(i, e) {
|
2069
|
-
return this.currentAuthKey = i, this.currentAuthToken = e, this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setAuthorization(i, e) : this.isWebComponentViewMode() ? Promise.reject() :
|
2069
|
+
return this.currentAuthKey = i, this.currentAuthToken = e, this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setAuthorization(i, e) : this.isWebComponentViewMode() ? Promise.reject() : Qn(this, this.iframe, i, e);
|
2070
2070
|
}
|
2071
2071
|
refreshData(i) {
|
2072
2072
|
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.refreshData(i) : this.isWebComponentViewMode() ? Promise.reject() : i ? bs(this, this.iframe, i) : bs(this, this.iframe);
|
2073
2073
|
}
|
2074
2074
|
reloadDashboard() {
|
2075
|
-
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.reloadDashboard() : this.isWebComponentViewMode() ? Promise.reject() :
|
2075
|
+
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.reloadDashboard() : this.isWebComponentViewMode() ? Promise.reject() : Zn(this, this.iframe);
|
2076
2076
|
}
|
2077
2077
|
exportDashboard(i) {
|
2078
2078
|
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.exportDashboard(i) : this.isWebComponentViewMode() ? Promise.reject() : i ? ps(this, this.iframe, i) : ps(this, this.iframe);
|
2079
2079
|
}
|
2080
2080
|
getAccessibleDashboards() {
|
2081
|
-
return
|
2081
|
+
return Xn(this);
|
2082
2082
|
}
|
2083
2083
|
addFilters(i, e) {
|
2084
2084
|
return this.dashboardReference.addFilters(i, e);
|
@@ -2090,10 +2090,10 @@ var la = Object.defineProperty, v = (i, e, t, s) => {
|
|
2090
2090
|
})) : this.dashboardReference && ["editFull", "editLimited"].includes(i) ? (this.editMode = i, this.params.editMode = i, this.initComponent(), Promise.resolve({
|
2091
2091
|
type: "setEditMode",
|
2092
2092
|
editMode: i
|
2093
|
-
})) : this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setEditMode(i) : this.isWebComponentViewMode() ? Promise.reject() :
|
2093
|
+
})) : this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setEditMode(i) : this.isWebComponentViewMode() ? Promise.reject() : ea(this, this.iframe, i);
|
2094
2094
|
}
|
2095
2095
|
setPreview(i) {
|
2096
|
-
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setPreview(i) :
|
2096
|
+
return this.isWebComponentViewMode() && this.dashboardReference ? this.dashboardReference.setPreview(i) : ia(this, this.iframe, i);
|
2097
2097
|
}
|
2098
2098
|
isWebComponentViewMode() {
|
2099
2099
|
return this.embedMode === "webComponent" && (this.params.editMode === "view" || this.params.editMode === void 0);
|