@eodash/eodash 5.0.0-alpha.2.4 → 5.0.0-alpha.2.5
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/README.md +12 -2
- package/core/client/SuspensedDashboard.ce.vue +1 -5
- package/core/client/components/DashboardLayout.vue +37 -14
- package/core/client/components/ErrorAlert.vue +6 -1
- package/core/client/components/Footer.vue +6 -1
- package/core/client/components/Header.vue +6 -1
- package/core/client/components/IframeWrapper.vue +1 -1
- package/core/client/components/MobileLayout.vue +41 -10
- package/core/client/composables/DefineEodash.js +2 -1
- package/core/client/composables/DefineWidgets.js +14 -8
- package/core/client/composables/index.js +18 -119
- package/core/client/eodash.js +38 -36
- package/core/client/plugins/index.js +3 -0
- package/core/client/types.d.ts +40 -83
- package/core/client/utils/eodashSTAC.js +29 -25
- package/core/client/utils/index.js +15 -11
- package/core/client/views/Dashboard.vue +22 -11
- package/dist/client/DashboardLayout-BYROtP-7.js +156 -0
- package/dist/client/{DynamicWebComponent-C4Hotc4H.js → DynamicWebComponent-BQhxFPM0.js} +6 -6
- package/dist/client/EodashDatePicker-CFltnt5d.js +1194 -0
- package/dist/client/EodashItemFilter-DIBDAHcc.js +65 -0
- package/dist/client/{EodashMap-CGrQjZ1P.js → EodashMap-C6jJ2Lb_.js} +14323 -15656
- package/dist/client/Footer-BVIZms1S.js +115 -0
- package/dist/client/Header-TsTL1d2R.js +633 -0
- package/dist/client/{IframeWrapper-Cg3GMmfW.js → IframeWrapper-XKChM78a.js} +4 -4
- package/dist/client/MobileLayout-BlGcMQra.js +957 -0
- package/dist/client/{VMain-BHYlmRic.js → VMain-C9XV5Lyg.js} +8 -8
- package/dist/client/{WidgetsContainer-dje9QSk0.js → WidgetsContainer-BQXHnZpa.js} +3 -3
- package/dist/client/asWebComponent-CbdGxelK.js +20188 -0
- package/dist/client/{decoder-HRvnjnEI-BQ2rajuJ.js → decoder-HRvnjnEI-CHAYOWhz.js} +1 -1
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/forwardRefs-CyCJOFsz.js +192 -0
- package/dist/client/http-ZWiLaAeR.js +1337 -0
- package/dist/client/{index-CaDDfJYE.js → index-CabQjjQg.js} +43 -74
- package/dist/client/{lerc-_E46UbWQ-Beu35ovS.js → lerc-_E46UbWQ-TxBH4OeK.js} +1 -1
- package/dist/client/{ssrBoot-Dd7m-btU.js → ssrBoot-DWJ-z4I-.js} +3 -3
- package/dist/client/style.css +2 -2
- package/dist/client/transition-BlLt41wg.js +34 -0
- package/dist/node/cli.js +3 -3
- package/package.json +3 -4
- package/widgets/EodashDatePicker.vue +89 -36
- package/widgets/EodashItemFilter.vue +29 -13
- package/dist/client/DashboardLayout-ZaSRMD1M.js +0 -149
- package/dist/client/EodashDatePicker-C4kKjxKy.js +0 -1653
- package/dist/client/EodashItemFilter-cBHC0YEM.js +0 -51
- package/dist/client/Footer-pS636dEP.js +0 -118
- package/dist/client/Header-DQuaLdjl.js +0 -605
- package/dist/client/MobileLayout-BLXFBWI_.js +0 -987
- package/dist/client/asWebComponent-Bvb3xkxI.js +0 -13311
- package/dist/client/forwardRefs-Bxeu9Obx.js +0 -142
- package/dist/client/index-DlNICb3T.js +0 -34
package/dist/client/eo-dash.js
CHANGED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { p as v, s as w, c as x, w as R, ah as b } from "./asWebComponent-CbdGxelK.js";
|
|
2
|
+
class d {
|
|
3
|
+
constructor(r) {
|
|
4
|
+
let {
|
|
5
|
+
x: n,
|
|
6
|
+
y: i,
|
|
7
|
+
width: s,
|
|
8
|
+
height: t
|
|
9
|
+
} = r;
|
|
10
|
+
this.x = n, this.y = i, this.width = s, this.height = t;
|
|
11
|
+
}
|
|
12
|
+
get top() {
|
|
13
|
+
return this.y;
|
|
14
|
+
}
|
|
15
|
+
get bottom() {
|
|
16
|
+
return this.y + this.height;
|
|
17
|
+
}
|
|
18
|
+
get left() {
|
|
19
|
+
return this.x;
|
|
20
|
+
}
|
|
21
|
+
get right() {
|
|
22
|
+
return this.x + this.width;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function W(e, r) {
|
|
26
|
+
return {
|
|
27
|
+
x: {
|
|
28
|
+
before: Math.max(0, r.left - e.left),
|
|
29
|
+
after: Math.max(0, e.right - r.right)
|
|
30
|
+
},
|
|
31
|
+
y: {
|
|
32
|
+
before: Math.max(0, r.top - e.top),
|
|
33
|
+
after: Math.max(0, e.bottom - r.bottom)
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function O(e) {
|
|
38
|
+
return Array.isArray(e) ? new d({
|
|
39
|
+
x: e[0],
|
|
40
|
+
y: e[1],
|
|
41
|
+
width: 0,
|
|
42
|
+
height: 0
|
|
43
|
+
}) : e.getBoundingClientRect();
|
|
44
|
+
}
|
|
45
|
+
function P(e) {
|
|
46
|
+
const r = e.getBoundingClientRect(), n = getComputedStyle(e), i = n.transform;
|
|
47
|
+
if (i) {
|
|
48
|
+
let s, t, o, f, a;
|
|
49
|
+
if (i.startsWith("matrix3d("))
|
|
50
|
+
s = i.slice(9, -1).split(/, /), t = +s[0], o = +s[5], f = +s[12], a = +s[13];
|
|
51
|
+
else if (i.startsWith("matrix("))
|
|
52
|
+
s = i.slice(7, -1).split(/, /), t = +s[0], o = +s[3], f = +s[4], a = +s[5];
|
|
53
|
+
else
|
|
54
|
+
return new d(r);
|
|
55
|
+
const u = n.transformOrigin, c = r.x - f - (1 - t) * parseFloat(u), l = r.y - a - (1 - o) * parseFloat(u.slice(u.indexOf(" ") + 1)), h = t ? r.width / t : e.offsetWidth + 1, m = o ? r.height / o : e.offsetHeight + 1;
|
|
56
|
+
return new d({
|
|
57
|
+
x: c,
|
|
58
|
+
y: l,
|
|
59
|
+
width: h,
|
|
60
|
+
height: m
|
|
61
|
+
});
|
|
62
|
+
} else
|
|
63
|
+
return new d(r);
|
|
64
|
+
}
|
|
65
|
+
function B(e, r, n) {
|
|
66
|
+
if (typeof e.animate > "u")
|
|
67
|
+
return {
|
|
68
|
+
finished: Promise.resolve()
|
|
69
|
+
};
|
|
70
|
+
let i;
|
|
71
|
+
try {
|
|
72
|
+
i = e.animate(r, n);
|
|
73
|
+
} catch {
|
|
74
|
+
return {
|
|
75
|
+
finished: Promise.resolve()
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
return typeof i.finished > "u" && (i.finished = new Promise((s) => {
|
|
79
|
+
i.onfinish = () => {
|
|
80
|
+
s(i);
|
|
81
|
+
};
|
|
82
|
+
})), i;
|
|
83
|
+
}
|
|
84
|
+
const I = "cubic-bezier(0.4, 0, 0.2, 1)", C = v({
|
|
85
|
+
eager: Boolean
|
|
86
|
+
}, "lazy");
|
|
87
|
+
function S(e, r) {
|
|
88
|
+
const n = w(!1), i = x(() => n.value || e.eager || r.value);
|
|
89
|
+
R(r, () => n.value = !0);
|
|
90
|
+
function s() {
|
|
91
|
+
e.eager || (n.value = !1);
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
isBooted: n,
|
|
95
|
+
hasContent: i,
|
|
96
|
+
onAfterLeave: s
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function _() {
|
|
100
|
+
const r = b("useScopeId").vnode.scopeId;
|
|
101
|
+
return {
|
|
102
|
+
scopeId: r ? {
|
|
103
|
+
[r]: ""
|
|
104
|
+
} : void 0
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const p = Symbol("Forwarded refs");
|
|
108
|
+
function g(e, r) {
|
|
109
|
+
let n = e;
|
|
110
|
+
for (; n; ) {
|
|
111
|
+
const i = Reflect.getOwnPropertyDescriptor(n, r);
|
|
112
|
+
if (i)
|
|
113
|
+
return i;
|
|
114
|
+
n = Object.getPrototypeOf(n);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function z(e) {
|
|
118
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
119
|
+
n[i - 1] = arguments[i];
|
|
120
|
+
return e[p] = n, new Proxy(e, {
|
|
121
|
+
get(s, t) {
|
|
122
|
+
if (Reflect.has(s, t))
|
|
123
|
+
return Reflect.get(s, t);
|
|
124
|
+
if (!(typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))) {
|
|
125
|
+
for (const o of n)
|
|
126
|
+
if (o.value && Reflect.has(o.value, t)) {
|
|
127
|
+
const f = Reflect.get(o.value, t);
|
|
128
|
+
return typeof f == "function" ? f.bind(o.value) : f;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
has(s, t) {
|
|
133
|
+
if (Reflect.has(s, t))
|
|
134
|
+
return !0;
|
|
135
|
+
if (typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))
|
|
136
|
+
return !1;
|
|
137
|
+
for (const o of n)
|
|
138
|
+
if (o.value && Reflect.has(o.value, t))
|
|
139
|
+
return !0;
|
|
140
|
+
return !1;
|
|
141
|
+
},
|
|
142
|
+
set(s, t, o) {
|
|
143
|
+
if (Reflect.has(s, t))
|
|
144
|
+
return Reflect.set(s, t, o);
|
|
145
|
+
if (typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))
|
|
146
|
+
return !1;
|
|
147
|
+
for (const f of n)
|
|
148
|
+
if (f.value && Reflect.has(f.value, t))
|
|
149
|
+
return Reflect.set(f.value, t, o);
|
|
150
|
+
return !1;
|
|
151
|
+
},
|
|
152
|
+
getOwnPropertyDescriptor(s, t) {
|
|
153
|
+
const o = Reflect.getOwnPropertyDescriptor(s, t);
|
|
154
|
+
if (o)
|
|
155
|
+
return o;
|
|
156
|
+
if (!(typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))) {
|
|
157
|
+
for (const f of n) {
|
|
158
|
+
if (!f.value)
|
|
159
|
+
continue;
|
|
160
|
+
const a = g(f.value, t) ?? ("_" in f.value ? g(f.value._?.setupState, t) : void 0);
|
|
161
|
+
if (a)
|
|
162
|
+
return a;
|
|
163
|
+
}
|
|
164
|
+
for (const f of n) {
|
|
165
|
+
const a = f.value && f.value[p];
|
|
166
|
+
if (!a)
|
|
167
|
+
continue;
|
|
168
|
+
const u = a.slice();
|
|
169
|
+
for (; u.length; ) {
|
|
170
|
+
const c = u.shift(), l = g(c.value, t);
|
|
171
|
+
if (l)
|
|
172
|
+
return l;
|
|
173
|
+
const h = c.value && c.value[p];
|
|
174
|
+
h && u.push(...h);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
export {
|
|
182
|
+
d as B,
|
|
183
|
+
B as a,
|
|
184
|
+
_ as b,
|
|
185
|
+
W as c,
|
|
186
|
+
z as f,
|
|
187
|
+
O as g,
|
|
188
|
+
C as m,
|
|
189
|
+
P as n,
|
|
190
|
+
I as s,
|
|
191
|
+
S as u
|
|
192
|
+
};
|