@evercam/ui 0.0.40 → 0.0.41
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/dist/index.mjs +89 -86
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -912,8 +912,8 @@ var He = {}, re = {};
|
|
|
912
912
|
return v.future === "all" || (($ = (y = v == null || (E = v.future) === null || E === void 0 ? void 0 : E[f]) !== null && y !== void 0 ? y : l[f]) !== null && $ !== void 0 ? $ : !1);
|
|
913
913
|
}
|
|
914
914
|
if (i.experimental.includes(f)) {
|
|
915
|
-
var D,
|
|
916
|
-
return v.experimental === "all" || ((
|
|
915
|
+
var D, P, L;
|
|
916
|
+
return v.experimental === "all" || ((L = (P = v == null || (D = v.experimental) === null || D === void 0 ? void 0 : D[f]) !== null && P !== void 0 ? P : l[f]) !== null && L !== void 0 ? L : !1);
|
|
917
917
|
}
|
|
918
918
|
return !1;
|
|
919
919
|
}
|
|
@@ -1045,8 +1045,8 @@ var He = {}, re = {};
|
|
|
1045
1045
|
})(),
|
|
1046
1046
|
extract: (() => {
|
|
1047
1047
|
let n = (() => {
|
|
1048
|
-
var f, E, y, $, D,
|
|
1049
|
-
return !((f = i.purge) === null || f === void 0) && f.extract ? i.purge.extract : !((E = i.content) === null || E === void 0) && E.extract ? i.content.extract : !((y = i.purge) === null || y === void 0 || ($ = y.extract) === null || $ === void 0) && $.DEFAULT ? i.purge.extract.DEFAULT : !((D = i.content) === null || D === void 0 || (
|
|
1048
|
+
var f, E, y, $, D, P, L, A, j, B;
|
|
1049
|
+
return !((f = i.purge) === null || f === void 0) && f.extract ? i.purge.extract : !((E = i.content) === null || E === void 0) && E.extract ? i.content.extract : !((y = i.purge) === null || y === void 0 || ($ = y.extract) === null || $ === void 0) && $.DEFAULT ? i.purge.extract.DEFAULT : !((D = i.content) === null || D === void 0 || (P = D.extract) === null || P === void 0) && P.DEFAULT ? i.content.extract.DEFAULT : !((L = i.purge) === null || L === void 0 || (A = L.options) === null || A === void 0) && A.extractors ? i.purge.options.extractors : !((j = i.content) === null || j === void 0 || (B = j.options) === null || B === void 0) && B.extractors ? i.content.options.extractors : {};
|
|
1050
1050
|
})(), p = {}, v = (() => {
|
|
1051
1051
|
var f, E, y, $;
|
|
1052
1052
|
if (!((f = i.purge) === null || f === void 0 || (E = f.options) === null || E === void 0) && E.defaultExtractor)
|
|
@@ -1131,7 +1131,7 @@ var Ne = {}, We = {};
|
|
|
1131
1131
|
return r.replace(/\\,/g, "\\2c ");
|
|
1132
1132
|
}
|
|
1133
1133
|
})(We);
|
|
1134
|
-
var pe = {}, he = {},
|
|
1134
|
+
var pe = {}, he = {}, Ge = {};
|
|
1135
1135
|
(function(e) {
|
|
1136
1136
|
Object.defineProperty(e, "__esModule", {
|
|
1137
1137
|
value: !0
|
|
@@ -1883,7 +1883,7 @@ var pe = {}, he = {}, Ie = {};
|
|
|
1883
1883
|
50
|
|
1884
1884
|
]
|
|
1885
1885
|
};
|
|
1886
|
-
})(
|
|
1886
|
+
})(Ge);
|
|
1887
1887
|
(function(e) {
|
|
1888
1888
|
Object.defineProperty(e, "__esModule", {
|
|
1889
1889
|
value: !0
|
|
@@ -1903,7 +1903,7 @@ var pe = {}, he = {}, Ie = {};
|
|
|
1903
1903
|
return E;
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
|
-
const r = /* @__PURE__ */ s(
|
|
1906
|
+
const r = /* @__PURE__ */ s(Ge);
|
|
1907
1907
|
function s(y) {
|
|
1908
1908
|
return y && y.__esModule ? y : {
|
|
1909
1909
|
default: y
|
|
@@ -1911,7 +1911,7 @@ var pe = {}, he = {}, Ie = {};
|
|
|
1911
1911
|
}
|
|
1912
1912
|
let o = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, l = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, i = /(?:\d+|\d*\.\d+)%?/, g = /(?:\s*,\s*|\s+)/, a = /\s*[,/]\s*/, n = /var\(--(?:[^ )]*?)\)/, p = new RegExp(`^(rgba?)\\(\\s*(${i.source}|${n.source})(?:${g.source}(${i.source}|${n.source}))?(?:${g.source}(${i.source}|${n.source}))?(?:${a.source}(${i.source}|${n.source}))?\\s*\\)$`), v = new RegExp(`^(hsla?)\\(\\s*((?:${i.source})(?:deg|rad|grad|turn)?|${n.source})(?:${g.source}(${i.source}|${n.source}))?(?:${g.source}(${i.source}|${n.source}))?(?:${a.source}(${i.source}|${n.source}))?\\s*\\)$`);
|
|
1913
1913
|
function f(y, { loose: $ = !1 } = {}) {
|
|
1914
|
-
var D,
|
|
1914
|
+
var D, P;
|
|
1915
1915
|
if (typeof y != "string")
|
|
1916
1916
|
return null;
|
|
1917
1917
|
if (y = y.trim(), y === "transparent")
|
|
@@ -1929,50 +1929,50 @@ var pe = {}, he = {}, Ie = {};
|
|
|
1929
1929
|
mode: "rgb",
|
|
1930
1930
|
color: r.default[y].map((U) => U.toString())
|
|
1931
1931
|
};
|
|
1932
|
-
let
|
|
1932
|
+
let L = y.replace(l, (U, G, N, h, k) => [
|
|
1933
1933
|
"#",
|
|
1934
|
-
|
|
1935
|
-
|
|
1934
|
+
G,
|
|
1935
|
+
G,
|
|
1936
1936
|
N,
|
|
1937
1937
|
N,
|
|
1938
1938
|
h,
|
|
1939
1939
|
h,
|
|
1940
1940
|
k ? k + k : ""
|
|
1941
1941
|
].join("")).match(o);
|
|
1942
|
-
if (
|
|
1942
|
+
if (L !== null)
|
|
1943
1943
|
return {
|
|
1944
1944
|
mode: "rgb",
|
|
1945
1945
|
color: [
|
|
1946
|
-
parseInt(
|
|
1947
|
-
parseInt(
|
|
1948
|
-
parseInt(
|
|
1946
|
+
parseInt(L[1], 16),
|
|
1947
|
+
parseInt(L[2], 16),
|
|
1948
|
+
parseInt(L[3], 16)
|
|
1949
1949
|
].map((U) => U.toString()),
|
|
1950
|
-
alpha:
|
|
1950
|
+
alpha: L[4] ? (parseInt(L[4], 16) / 255).toString() : void 0
|
|
1951
1951
|
};
|
|
1952
1952
|
var A;
|
|
1953
|
-
let
|
|
1954
|
-
if (
|
|
1953
|
+
let j = (A = y.match(p)) !== null && A !== void 0 ? A : y.match(v);
|
|
1954
|
+
if (j === null)
|
|
1955
1955
|
return null;
|
|
1956
1956
|
let B = [
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1957
|
+
j[2],
|
|
1958
|
+
j[3],
|
|
1959
|
+
j[4]
|
|
1960
1960
|
].filter(Boolean).map((U) => U.toString());
|
|
1961
1961
|
return B.length === 2 && B[0].startsWith("var(") ? {
|
|
1962
|
-
mode:
|
|
1962
|
+
mode: j[1],
|
|
1963
1963
|
color: [
|
|
1964
1964
|
B[0]
|
|
1965
1965
|
],
|
|
1966
1966
|
alpha: B[1]
|
|
1967
1967
|
} : !$ && B.length !== 3 || B.length < 3 && !B.some((U) => /^var\(.*?\)$/.test(U)) ? null : {
|
|
1968
|
-
mode:
|
|
1968
|
+
mode: j[1],
|
|
1969
1969
|
color: B,
|
|
1970
|
-
alpha: (D =
|
|
1970
|
+
alpha: (D = j[5]) === null || D === void 0 || (P = D.toString) === null || P === void 0 ? void 0 : P.call(D)
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
1973
|
function E({ mode: y, color: $, alpha: D }) {
|
|
1974
|
-
let
|
|
1975
|
-
return y === "rgba" || y === "hsla" ? `${y}(${$.join(", ")}${
|
|
1974
|
+
let P = D !== void 0;
|
|
1975
|
+
return y === "rgba" || y === "hsla" ? `${y}(${$.join(", ")}${P ? `, ${D}` : ""})` : `${y}(${$.join(" ")}${P ? ` / ${D}` : ""})`;
|
|
1976
1976
|
}
|
|
1977
1977
|
})(he);
|
|
1978
1978
|
(function(e) {
|
|
@@ -2040,7 +2040,7 @@ var pe = {}, he = {}, Ie = {};
|
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
2042
|
})(pe);
|
|
2043
|
-
var ge = {},
|
|
2043
|
+
var ge = {}, Ie = {}, ne = {};
|
|
2044
2044
|
(function(e) {
|
|
2045
2045
|
Object.defineProperty(e, "__esModule", {
|
|
2046
2046
|
value: !0
|
|
@@ -2106,7 +2106,7 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2106
2106
|
n.color
|
|
2107
2107
|
].filter(Boolean).join(" ") : n.raw).join(", ");
|
|
2108
2108
|
}
|
|
2109
|
-
})(
|
|
2109
|
+
})(Ie);
|
|
2110
2110
|
(function(e) {
|
|
2111
2111
|
Object.defineProperty(e, "__esModule", {
|
|
2112
2112
|
value: !0
|
|
@@ -2135,19 +2135,19 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2135
2135
|
return D;
|
|
2136
2136
|
},
|
|
2137
2137
|
lineWidth: function() {
|
|
2138
|
-
return
|
|
2138
|
+
return L;
|
|
2139
2139
|
},
|
|
2140
2140
|
shadow: function() {
|
|
2141
2141
|
return A;
|
|
2142
2142
|
},
|
|
2143
2143
|
color: function() {
|
|
2144
|
-
return
|
|
2144
|
+
return j;
|
|
2145
2145
|
},
|
|
2146
2146
|
image: function() {
|
|
2147
2147
|
return B;
|
|
2148
2148
|
},
|
|
2149
2149
|
gradient: function() {
|
|
2150
|
-
return
|
|
2150
|
+
return G;
|
|
2151
2151
|
},
|
|
2152
2152
|
position: function() {
|
|
2153
2153
|
return h;
|
|
@@ -2165,7 +2165,7 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2165
2165
|
return T;
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
|
-
const r = he, s =
|
|
2168
|
+
const r = he, s = Ie, o = ne;
|
|
2169
2169
|
let l = [
|
|
2170
2170
|
"min",
|
|
2171
2171
|
"max",
|
|
@@ -2230,13 +2230,13 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2230
2230
|
function D(c) {
|
|
2231
2231
|
return c === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${$}$`).test(c) || i(c);
|
|
2232
2232
|
}
|
|
2233
|
-
let
|
|
2233
|
+
let P = /* @__PURE__ */ new Set([
|
|
2234
2234
|
"thin",
|
|
2235
2235
|
"medium",
|
|
2236
2236
|
"thick"
|
|
2237
2237
|
]);
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2238
|
+
function L(c) {
|
|
2239
|
+
return P.has(c);
|
|
2240
2240
|
}
|
|
2241
2241
|
function A(c) {
|
|
2242
2242
|
let _ = (0, s.parseBoxShadowValue)(n(c));
|
|
@@ -2245,7 +2245,7 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
return !0;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function j(c) {
|
|
2249
2249
|
let _ = 0;
|
|
2250
2250
|
return (0, o.splitAtTopLevelOnly)(c, "_").every((O) => (O = n(O), O.startsWith("var(") ? !0 : (0, r.parseColor)(O, {
|
|
2251
2251
|
loose: !0
|
|
@@ -2253,7 +2253,7 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2253
2253
|
}
|
|
2254
2254
|
function B(c) {
|
|
2255
2255
|
let _ = 0;
|
|
2256
|
-
return (0, o.splitAtTopLevelOnly)(c, ",").every((O) => (O = n(O), O.startsWith("var(") ? !0 : v(O) ||
|
|
2256
|
+
return (0, o.splitAtTopLevelOnly)(c, ",").every((O) => (O = n(O), O.startsWith("var(") ? !0 : v(O) || G(O) || [
|
|
2257
2257
|
"element(",
|
|
2258
2258
|
"image(",
|
|
2259
2259
|
"cross-fade(",
|
|
@@ -2268,7 +2268,7 @@ var ge = {}, Ge = {}, ne = {};
|
|
|
2268
2268
|
"repeating-linear-gradient",
|
|
2269
2269
|
"repeating-radial-gradient"
|
|
2270
2270
|
]);
|
|
2271
|
-
function
|
|
2271
|
+
function G(c) {
|
|
2272
2272
|
c = n(c);
|
|
2273
2273
|
for (let _ of U)
|
|
2274
2274
|
if (c.startsWith(`${_}(`))
|
|
@@ -2373,16 +2373,16 @@ var Ve = {};
|
|
|
2373
2373
|
return $;
|
|
2374
2374
|
},
|
|
2375
2375
|
asColor: function() {
|
|
2376
|
-
return
|
|
2376
|
+
return P;
|
|
2377
2377
|
},
|
|
2378
2378
|
asLookupValue: function() {
|
|
2379
|
-
return
|
|
2379
|
+
return L;
|
|
2380
2380
|
},
|
|
2381
2381
|
typeMap: function() {
|
|
2382
|
-
return
|
|
2382
|
+
return j;
|
|
2383
2383
|
},
|
|
2384
2384
|
coerceValue: function() {
|
|
2385
|
-
return
|
|
2385
|
+
return G;
|
|
2386
2386
|
},
|
|
2387
2387
|
getMatchingTypes: function() {
|
|
2388
2388
|
return N;
|
|
@@ -2446,7 +2446,7 @@ var Ve = {};
|
|
|
2446
2446
|
function D(h) {
|
|
2447
2447
|
return (0, o.normalize)(h.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function P(h, k = {}, { tailwindConfig: w = {} } = {}) {
|
|
2450
2450
|
var d;
|
|
2451
2451
|
if (((d = k.values) === null || d === void 0 ? void 0 : d[h]) !== void 0) {
|
|
2452
2452
|
var b;
|
|
@@ -2462,7 +2462,7 @@ var Ve = {};
|
|
|
2462
2462
|
validate: o.color
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function L(h, k = {}) {
|
|
2466
2466
|
var w;
|
|
2467
2467
|
return (w = k.values) === null || w === void 0 ? void 0 : w[h];
|
|
2468
2468
|
}
|
|
@@ -2471,15 +2471,15 @@ var Ve = {};
|
|
|
2471
2471
|
validate: h
|
|
2472
2472
|
});
|
|
2473
2473
|
}
|
|
2474
|
-
let
|
|
2474
|
+
let j = {
|
|
2475
2475
|
any: f,
|
|
2476
|
-
color:
|
|
2476
|
+
color: P,
|
|
2477
2477
|
url: A(o.url),
|
|
2478
2478
|
image: A(o.image),
|
|
2479
2479
|
length: A(o.length),
|
|
2480
2480
|
percentage: A(o.percentage),
|
|
2481
2481
|
position: A(o.position),
|
|
2482
|
-
lookup:
|
|
2482
|
+
lookup: L,
|
|
2483
2483
|
"generic-name": A(o.genericName),
|
|
2484
2484
|
"family-name": A(o.familyName),
|
|
2485
2485
|
number: A(o.number),
|
|
@@ -2488,7 +2488,7 @@ var Ve = {};
|
|
|
2488
2488
|
"relative-size": A(o.relativeSize),
|
|
2489
2489
|
shadow: A(o.shadow),
|
|
2490
2490
|
size: A(i.backgroundSize)
|
|
2491
|
-
}, B = Object.keys(
|
|
2491
|
+
}, B = Object.keys(j);
|
|
2492
2492
|
function U(h, k) {
|
|
2493
2493
|
let w = h.indexOf(k);
|
|
2494
2494
|
return w === -1 ? [
|
|
@@ -2499,10 +2499,10 @@ var Ve = {};
|
|
|
2499
2499
|
h.slice(w + 1)
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function G(h, k, w, d) {
|
|
2503
2503
|
if (w.values && k in w.values)
|
|
2504
2504
|
for (let { type: x } of h != null ? h : []) {
|
|
2505
|
-
let m =
|
|
2505
|
+
let m = j[x](k, w, {
|
|
2506
2506
|
tailwindConfig: d
|
|
2507
2507
|
});
|
|
2508
2508
|
if (m !== void 0)
|
|
@@ -2538,7 +2538,7 @@ var Ve = {};
|
|
|
2538
2538
|
F !== null ? m = F : E(m) && (m = D(m));
|
|
2539
2539
|
}
|
|
2540
2540
|
for (let { type: F } of h != null ? h : []) {
|
|
2541
|
-
let O =
|
|
2541
|
+
let O = j[F](x, w, {
|
|
2542
2542
|
tailwindConfig: d
|
|
2543
2543
|
});
|
|
2544
2544
|
O !== void 0 && (yield [
|
|
@@ -2605,10 +2605,10 @@ var qe = {};
|
|
|
2605
2605
|
}), {});
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
|
-
function
|
|
2608
|
+
function P(d, ...b) {
|
|
2609
2609
|
return y(d) ? d(...b) : d;
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function L(d) {
|
|
2612
2612
|
return d.reduce((b, { extend: x }) => $(b, x, (m, T) => m === void 0 ? [
|
|
2613
2613
|
T
|
|
2614
2614
|
] : Array.isArray(m) ? [
|
|
@@ -2624,10 +2624,10 @@ var qe = {};
|
|
|
2624
2624
|
...d.reduce((b, x) => (0, l.defaults)(b, x), {}),
|
|
2625
2625
|
// In order to resolve n config objects, we combine all of their `extend` properties
|
|
2626
2626
|
// into arrays instead of objects so they aren't overridden.
|
|
2627
|
-
extend:
|
|
2627
|
+
extend: L(d)
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2630
|
+
function j(d, b) {
|
|
2631
2631
|
if (Array.isArray(d) && (0, a.default)(d[0]))
|
|
2632
2632
|
return d.concat(b);
|
|
2633
2633
|
if (Array.isArray(b) && (0, a.default)(b[0]) && (0, a.default)(d))
|
|
@@ -2639,10 +2639,10 @@ var qe = {};
|
|
|
2639
2639
|
return b;
|
|
2640
2640
|
}
|
|
2641
2641
|
function B({ extend: d, ...b }) {
|
|
2642
|
-
return $(b, d, (x, m) => !y(x) && !m.some(y) ? $({}, x, ...m,
|
|
2642
|
+
return $(b, d, (x, m) => !y(x) && !m.some(y) ? $({}, x, ...m, j) : (T, c) => $({}, ...[
|
|
2643
2643
|
x,
|
|
2644
2644
|
...m
|
|
2645
|
-
].map((_) =>
|
|
2645
|
+
].map((_) => P(_, T, c)), j));
|
|
2646
2646
|
}
|
|
2647
2647
|
function* U(d) {
|
|
2648
2648
|
let b = (0, i.toPath)(d);
|
|
@@ -2654,7 +2654,7 @@ var qe = {};
|
|
|
2654
2654
|
_.alpha = c, yield _;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2657
|
+
function G(d) {
|
|
2658
2658
|
const b = (x, m) => {
|
|
2659
2659
|
for (const T of U(x)) {
|
|
2660
2660
|
let c = 0, _ = d;
|
|
@@ -2722,7 +2722,7 @@ var qe = {};
|
|
|
2722
2722
|
];
|
|
2723
2723
|
var x, m;
|
|
2724
2724
|
return (0, g.normalizeConfig)((0, l.defaults)({
|
|
2725
|
-
theme:
|
|
2725
|
+
theme: G(B(A(b.map((T) => (x = T == null ? void 0 : T.theme) !== null && x !== void 0 ? x : {})))),
|
|
2726
2726
|
corePlugins: h(b.map((T) => T.corePlugins)),
|
|
2727
2727
|
plugins: k(d.map((T) => (m = T == null ? void 0 : T.plugins) !== null && m !== void 0 ? m : []))
|
|
2728
2728
|
}, ...b));
|
|
@@ -4614,14 +4614,14 @@ const Wt = Nt.exports, ee = (e) => {
|
|
|
4614
4614
|
return `${t}${s}`;
|
|
4615
4615
|
}, ye = (e) => new Date(
|
|
4616
4616
|
Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate() + 1)
|
|
4617
|
-
).getUTCDate() === 1 ? "" : u.utcFormat("%-d")(e), X = (e) => ["0", " 0", "00"].includes(u.utcFormat("%H")(e)) ? "" : `${u.utcFormat("%H")(e)}h`,
|
|
4617
|
+
).getUTCDate() === 1 ? "" : u.utcFormat("%-d")(e), X = (e) => ["0", " 0", "00"].includes(u.utcFormat("%H")(e)) ? "" : `${u.utcFormat("%H")(e)}h`, I = (e) => {
|
|
4618
4618
|
const t = u.utcFormat("%H:%M")(e);
|
|
4619
4619
|
return t === "00:00" ? "" : t;
|
|
4620
4620
|
}, ae = (e) => u.utcFormat("%M:%S")(e), be = (e) => `${u.utcFormat("%Hh%Mm")(e)}`, ce = (e) => {
|
|
4621
|
-
const t =
|
|
4621
|
+
const t = I(e), r = ee(e), s = u.utcFormat("%B")(e);
|
|
4622
4622
|
return t || `${s} ${r}`;
|
|
4623
4623
|
}, le = (e) => {
|
|
4624
|
-
const t =
|
|
4624
|
+
const t = I(e), r = Number.parseInt(u.utcFormat("%H")(e)), s = ee(e), o = u.utcFormat("%B")(e);
|
|
4625
4625
|
return t && r % 6 === 0 ? `${o} ${s} ${t}` : ce(e);
|
|
4626
4626
|
}, Y = (e) => (t) => {
|
|
4627
4627
|
const r = u.utcFormat("%H")(t);
|
|
@@ -4655,7 +4655,7 @@ const Wt = Nt.exports, ee = (e) => {
|
|
|
4655
4655
|
infinity: 1 / 0
|
|
4656
4656
|
};
|
|
4657
4657
|
var we, Se, Ce, Ee, Te, ke, $e, Oe;
|
|
4658
|
-
const
|
|
4658
|
+
const Gt = {
|
|
4659
4659
|
[Q.overview]: [
|
|
4660
4660
|
{
|
|
4661
4661
|
precision: S._30_seconds,
|
|
@@ -4691,7 +4691,7 @@ const It = {
|
|
|
4691
4691
|
precision: S._2_hours,
|
|
4692
4692
|
interval: u.utcHour.every(6),
|
|
4693
4693
|
format: (e) => {
|
|
4694
|
-
const t =
|
|
4694
|
+
const t = I(e), r = ee(e), s = u.utcFormat("%B")(e);
|
|
4695
4695
|
return t || `${s} ${r}`;
|
|
4696
4696
|
}
|
|
4697
4697
|
},
|
|
@@ -4741,27 +4741,27 @@ const It = {
|
|
|
4741
4741
|
{
|
|
4742
4742
|
precision: S._1_minute,
|
|
4743
4743
|
interval: u.utcMinute.filter(ue(5)),
|
|
4744
|
-
format:
|
|
4744
|
+
format: I
|
|
4745
4745
|
},
|
|
4746
4746
|
{
|
|
4747
4747
|
precision: S._2_minutes,
|
|
4748
4748
|
interval: (Ce = u.utcMinute.every(2)) == null ? void 0 : Ce.filter(ue(10)),
|
|
4749
|
-
format:
|
|
4749
|
+
format: I
|
|
4750
4750
|
},
|
|
4751
4751
|
{
|
|
4752
4752
|
precision: S._5_minutes,
|
|
4753
4753
|
interval: (Ee = u.utcMinute.every(5)) == null ? void 0 : Ee.filter(ue(20)),
|
|
4754
|
-
format:
|
|
4754
|
+
format: I
|
|
4755
4755
|
},
|
|
4756
4756
|
{
|
|
4757
4757
|
precision: S._15_minutes,
|
|
4758
4758
|
interval: (Te = u.utcMinute.every(15)) == null ? void 0 : Te.filter(Y(1)),
|
|
4759
|
-
format:
|
|
4759
|
+
format: I
|
|
4760
4760
|
},
|
|
4761
4761
|
{
|
|
4762
4762
|
precision: S._30_minutes,
|
|
4763
4763
|
interval: (ke = u.utcMinute.every(30)) == null ? void 0 : ke.filter(Y(2)),
|
|
4764
|
-
format:
|
|
4764
|
+
format: I
|
|
4765
4765
|
},
|
|
4766
4766
|
{
|
|
4767
4767
|
precision: S._1_hour,
|
|
@@ -4964,12 +4964,12 @@ const It = {
|
|
|
4964
4964
|
unbind(e) {
|
|
4965
4965
|
e.__resizeObserver__ && (e.__resizeObserver__.disconnect(), delete e.__resizeObserver__);
|
|
4966
4966
|
}
|
|
4967
|
-
},
|
|
4967
|
+
}, It = [
|
|
4968
4968
|
{
|
|
4969
4969
|
name: "resize-observer",
|
|
4970
4970
|
definition: Je
|
|
4971
4971
|
}
|
|
4972
|
-
],
|
|
4972
|
+
], z = {
|
|
4973
4973
|
eventGroup: "event-group",
|
|
4974
4974
|
eventGroupBg: "event-group-bg",
|
|
4975
4975
|
labelBg: "label-bg",
|
|
@@ -4989,7 +4989,7 @@ const It = {
|
|
|
4989
4989
|
},
|
|
4990
4990
|
xAxesConfig: {
|
|
4991
4991
|
type: Object,
|
|
4992
|
-
default: () =>
|
|
4992
|
+
default: () => Gt
|
|
4993
4993
|
},
|
|
4994
4994
|
dark: {
|
|
4995
4995
|
type: Boolean,
|
|
@@ -5097,6 +5097,9 @@ const It = {
|
|
|
5097
5097
|
},
|
|
5098
5098
|
endDate() {
|
|
5099
5099
|
this.zoomToStartAndEndDates();
|
|
5100
|
+
},
|
|
5101
|
+
eventsGroups() {
|
|
5102
|
+
this.svg.selectAll(`${z.eventGroup}`).remove(), this.drawEventsGroups();
|
|
5100
5103
|
}
|
|
5101
5104
|
},
|
|
5102
5105
|
mounted() {
|
|
@@ -5145,7 +5148,7 @@ const It = {
|
|
|
5145
5148
|
const t = 5;
|
|
5146
5149
|
for (const r in this.xAxesConfig) {
|
|
5147
5150
|
const s = this.createAxis(r);
|
|
5148
|
-
this.xAxes[r] = s, this.svg.append("g").classed(
|
|
5151
|
+
this.xAxes[r] = s, this.svg.append("g").classed(z.xAxis, !0).classed(`${z.xAxis}-${r}`, !0).attr("transform", `translate(0, ${e || t})`).call(s), this.translateTicksText(r), e += this.axisHeight;
|
|
5149
5152
|
}
|
|
5150
5153
|
},
|
|
5151
5154
|
createAxis(e) {
|
|
@@ -5165,10 +5168,10 @@ const It = {
|
|
|
5165
5168
|
this.disableZoom || (this.zoomBehavior = u.zoom().on("zoom", this.handleZoom).scaleExtent([0.25, 75e4]), this.svg.call(this.zoomBehavior));
|
|
5166
5169
|
},
|
|
5167
5170
|
initSelectedTimestampCursor() {
|
|
5168
|
-
this.svg.append("line").attr("class",
|
|
5171
|
+
this.svg.append("line").attr("class", z.selectedTimestampCursor).style("stroke", "red").style("stroke-width", "1px").style("opacity", 0).attr("x1", 0).attr("x2", 0).attr("y1", 0).attr("y2", this.timelineHeight), this.repositionSelectedTimestampCursor();
|
|
5169
5172
|
},
|
|
5170
5173
|
repositionSelectedTimestampCursor() {
|
|
5171
|
-
const e = this.svg.select(`.${
|
|
5174
|
+
const e = this.svg.select(`.${z.selectedTimestampCursor}`);
|
|
5172
5175
|
if (!this.selectedTimestamp) {
|
|
5173
5176
|
e.style("opacity", 0);
|
|
5174
5177
|
return;
|
|
@@ -5229,16 +5232,16 @@ const It = {
|
|
|
5229
5232
|
const r = this.xAxes[e], s = this.getAxisTicksConfig(
|
|
5230
5233
|
this.xAxesConfig[e]
|
|
5231
5234
|
);
|
|
5232
|
-
r.scale(t).ticks(s.interval).tickFormat((o) => s.formatFn(o)).tickSizeOuter(0), this.svg.select(`.${
|
|
5235
|
+
r.scale(t).ticks(s.interval).tickFormat((o) => s.formatFn(o)).tickSizeOuter(0), this.svg.select(`.${z.xAxis}-${e}`).call(r);
|
|
5233
5236
|
},
|
|
5234
5237
|
translateTicksText(e) {
|
|
5235
|
-
this.svg.select(`.${
|
|
5238
|
+
this.svg.select(`.${z.xAxis}-${e}`).selectAll(".tick text").each(function() {
|
|
5236
5239
|
let t = u.select(this), r = t.node().getBBox();
|
|
5237
5240
|
t.attr("x", r.height / 2).attr("y", 0).style("text-anchor", "start");
|
|
5238
5241
|
});
|
|
5239
5242
|
},
|
|
5240
5243
|
updateEventsRects() {
|
|
5241
|
-
const e = `.${
|
|
5244
|
+
const e = `.${z.eventGroup} > rect:not(.${z.labelBg}):not(.${z.labelBgFill}):not(.${z.eventGroupBg})`;
|
|
5242
5245
|
this.svg.selectAll(e).attr("x", this.getEventRectX).attr("width", this.getEventRectWidth).attr("height", this.eventGroupHeight);
|
|
5243
5246
|
},
|
|
5244
5247
|
getEventRectX(e) {
|
|
@@ -5256,9 +5259,9 @@ const It = {
|
|
|
5256
5259
|
}
|
|
5257
5260
|
},
|
|
5258
5261
|
drawEventsGroups() {
|
|
5259
|
-
this.svg.selectAll(`g.${
|
|
5262
|
+
this.svg.selectAll(`g.${z.eventGroup}`).remove(), Object.entries(this.eventsGroups).forEach(
|
|
5260
5263
|
([e, t], r) => {
|
|
5261
|
-
const { color: s, label: o, events: l } = t, i = r === 0 ? 0 : this.eventGroupPadding, g = r * (this.eventGroupHeight + i) + this.combinedXAxesHeight, a = this.svg.append("g").attr("data-color", s).classed(
|
|
5264
|
+
const { color: s, label: o, events: l } = t, i = r === 0 ? 0 : this.eventGroupPadding, g = r * (this.eventGroupHeight + i) + this.combinedXAxesHeight, a = this.svg.append("g").attr("data-color", s).classed(z.eventGroup, !0).classed(`${z.eventGroup}-${e}`, !0);
|
|
5262
5265
|
this.drawBackground({
|
|
5263
5266
|
color: s,
|
|
5264
5267
|
gElement: a,
|
|
@@ -5283,7 +5286,7 @@ const It = {
|
|
|
5283
5286
|
yPosition: t,
|
|
5284
5287
|
gElement: r
|
|
5285
5288
|
}) {
|
|
5286
|
-
r.append("rect").attr("class",
|
|
5289
|
+
r.append("rect").attr("class", z.eventGroupBg).attr("x", 0).attr("y", t).attr("width", this.timeline.offsetWidth).attr("height", this.eventGroupHeight).attr("fill", u.color(e).toString()).style("opacity", 0.1);
|
|
5287
5290
|
},
|
|
5288
5291
|
drawEvents({
|
|
5289
5292
|
events: e,
|
|
@@ -5310,7 +5313,7 @@ const It = {
|
|
|
5310
5313
|
h: this.eventGroupHeight,
|
|
5311
5314
|
radius: 3
|
|
5312
5315
|
};
|
|
5313
|
-
e.append("rect").attr("class",
|
|
5316
|
+
e.append("rect").attr("class", z.labelBg).attr("x", o.x).attr("y", o.y).attr("width", o.w).attr("height", o.h).attr("rx", o.radius).attr("ry", o.radius).style("fill", this.dark ? "#131a29" : "white"), e.append("rect").attr("class", z.labelBgFill).attr("x", o.x).attr("y", o.y).attr("width", o.w).attr("height", o.h).attr("rx", o.radius).attr("ry", o.radius).style("fill", this.getLabelBackgroundColor(r)).style("stroke", this.getTextFillColor(r)).style("stroke-width", 0.25), e.append("text").attr("class", z.labelText).attr("x", 5).attr("y", t + this.eventGroupHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 500).style("stroke-linejoin", "round").style("paint-order", "stroke").style("fill", this.getTextFillColor(r)).text(s);
|
|
5314
5317
|
},
|
|
5315
5318
|
getTextFillColor(e) {
|
|
5316
5319
|
var t, r;
|
|
@@ -5322,8 +5325,8 @@ const It = {
|
|
|
5322
5325
|
},
|
|
5323
5326
|
onDarkModeChange() {
|
|
5324
5327
|
Object.entries(this.eventsGroups).forEach(([e, t]) => {
|
|
5325
|
-
const r = this.svg.select(`.${
|
|
5326
|
-
r.select(`.${
|
|
5328
|
+
const r = this.svg.select(`.${z.eventGroup}-${e}`), s = r.node().dataset.color;
|
|
5329
|
+
r.select(`.${z.labelBg}`).style("fill", this.dark ? "black" : "white"), r.select(`.${z.labelBgFill}`).style("fill", this.getLabelBackgroundColor(s)).style("stroke", this.getTextFillColor(s)).style("stroke-width", 0.25), r.select(`.${z.labelText}`).style("fill", this.getTextFillColor(s));
|
|
5327
5330
|
});
|
|
5328
5331
|
}
|
|
5329
5332
|
}
|
|
@@ -5358,7 +5361,7 @@ const Zt = Yt.exports, _e = {
|
|
|
5358
5361
|
install(e) {
|
|
5359
5362
|
Object.keys(_e).forEach((t) => {
|
|
5360
5363
|
e.component(t, _e[t]);
|
|
5361
|
-
}),
|
|
5364
|
+
}), It.forEach(({ name: t, definition: r }) => {
|
|
5362
5365
|
e.directive(t, r);
|
|
5363
5366
|
});
|
|
5364
5367
|
}
|
|
@@ -5369,7 +5372,7 @@ export {
|
|
|
5369
5372
|
Qt as BadgeSizes,
|
|
5370
5373
|
H as BaseColor,
|
|
5371
5374
|
gt as Colors,
|
|
5372
|
-
|
|
5375
|
+
It as DirectivesMap,
|
|
5373
5376
|
at as EAvatar,
|
|
5374
5377
|
De as EBadge,
|
|
5375
5378
|
Lt as ECol,
|