@amateescu/portal-ui-components 0.0.18 → 0.0.19-beta0
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/assets/KpiCard.css +1 -1
- package/dist/components/KpiCard/KpiCard.js +101 -101
- package/dist/components/KpiWrapper/KpiWrapper.d.ts +1 -1
- package/dist/components/KpiWrapper/KpiWrapper.js +7 -6
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +23 -23
- package/dist/components/KpiWrapper/KpiWrapper.types.d.ts +1 -0
- package/dist/portal-utils/formatters.js +94 -65
- package/dist/types/Column.d.ts +1 -0
- package/dist/types/CultureStore.d.ts +4 -0
- package/package.json +84 -84
package/dist/assets/KpiCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._kpiCard_1bxtq_1{height:147px;background-color:#f0f0f0;border-radius:8px}._width430_1bxtq_7{width:430px}@media (max-width: 1500px){._width430_1bxtq_7{width:200px}}._width384_1bxtq_16{width:384px}._flexCol_1bxtq_20{display:flex;flex-direction:column;align-items:center;align-content:center}._flexRow_1bxtq_27{display:flex;flex-direction:row;align-items:center;align-content:center}._title_1bxtq_34{font-size:32px;font-weight:500;color:#12121a}@media (max-width: 900px){._title_1bxtq_34{font-size:12px}}@media (max-width: 1100px){._title_1bxtq_34{font-size:16px}}@media (max-width: 1400px){._title_1bxtq_34{font-size:20px}}@media (max-width: 1600px){._title_1bxtq_34{font-size:22px}}._content_1bxtq_60{font-size:21px;font-weight:400;color:#626367;margin-top:-10px}@media (max-width: 900px){._content_1bxtq_60{font-size:8px}}@media (max-width: 1100px){._content_1bxtq_60{font-size:12px}}@media (max-width: 1400px){._content_1bxtq_60{font-size:14px}}
|
|
@@ -5,7 +5,7 @@ import * as l from "react";
|
|
|
5
5
|
import oa, { createContext as la, useState as J, useRef as Z, useEffect as fe, useMemo as Rt } from "react";
|
|
6
6
|
import { I as ca, b as M, w as pt, d as re, e as sa, f as Qe, h as ee, c as B, i as ve, j as da, _ as ht, k as ua, l as Be, n as va, p as fa, q as $t, r as ba, s as Ze, t as ma, g as Ot, m as It, u as d, v as Je, x as ke, y as zt, a as De, z as ga, A as Lt, B as je, o as pa } from "../../useId-DbfH3PlN.js";
|
|
7
7
|
import { R as ha, S as $a } from "../../Skeleton-XFbjx7LJ.js";
|
|
8
|
-
import { E as ya, M as Sa, D as
|
|
8
|
+
import { E as ya, M as Sa, D as xa, R as Ue, i as _a, a as yt, b as Ca } from "../../EllipsisOutlined-CtmB5yDB.js";
|
|
9
9
|
import { a as be } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
10
10
|
import '../../assets/KpiCard.css';var wa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ea = function(t, n) {
|
|
11
11
|
return /* @__PURE__ */ l.createElement(ca, be({}, t, {
|
|
@@ -59,7 +59,7 @@ function Pa(e, t, n) {
|
|
|
59
59
|
return a.key;
|
|
60
60
|
}).join("_"), t, n]);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function xt(e, t) {
|
|
63
63
|
var n = l.useRef(e), a = l.useState({}), r = M(a, 2), i = r[1];
|
|
64
64
|
function c(o) {
|
|
65
65
|
var s = typeof o == "function" ? o(n.current) : o;
|
|
@@ -67,24 +67,24 @@ function _t(e, t) {
|
|
|
67
67
|
}
|
|
68
68
|
return [n.current, c];
|
|
69
69
|
}
|
|
70
|
-
var Na = 0.1,
|
|
70
|
+
var Na = 0.1, _t = 0.01, Me = 20, Ct = Math.pow(0.995, Me);
|
|
71
71
|
function Ra(e, t) {
|
|
72
72
|
var n = J(), a = M(n, 2), r = a[0], i = a[1], c = J(0), o = M(c, 2), s = o[0], u = o[1], b = J(0), g = M(b, 2), h = g[0], T = g[1], I = J(), w = M(I, 2), P = w[0], p = w[1], f = Z();
|
|
73
|
-
function N(
|
|
74
|
-
var R =
|
|
73
|
+
function N(_) {
|
|
74
|
+
var R = _.touches[0], x = R.screenX, m = R.screenY;
|
|
75
75
|
i({
|
|
76
|
-
x
|
|
76
|
+
x,
|
|
77
77
|
y: m
|
|
78
78
|
}), window.clearInterval(f.current);
|
|
79
79
|
}
|
|
80
|
-
function z(
|
|
80
|
+
function z(_) {
|
|
81
81
|
if (r) {
|
|
82
|
-
var R =
|
|
82
|
+
var R = _.touches[0], x = R.screenX, m = R.screenY;
|
|
83
83
|
i({
|
|
84
|
-
x
|
|
84
|
+
x,
|
|
85
85
|
y: m
|
|
86
86
|
});
|
|
87
|
-
var $ =
|
|
87
|
+
var $ = x - r.x, y = m - r.y;
|
|
88
88
|
t($, y);
|
|
89
89
|
var V = Date.now();
|
|
90
90
|
u(V), T(V - s), p({
|
|
@@ -95,11 +95,11 @@ function Ra(e, t) {
|
|
|
95
95
|
}
|
|
96
96
|
function G() {
|
|
97
97
|
if (r && (i(null), p(null), P)) {
|
|
98
|
-
var
|
|
99
|
-
if (Math.max(
|
|
100
|
-
var $ =
|
|
98
|
+
var _ = P.x / h, R = P.y / h, x = Math.abs(_), m = Math.abs(R);
|
|
99
|
+
if (Math.max(x, m) < Na) return;
|
|
100
|
+
var $ = _, y = R;
|
|
101
101
|
f.current = window.setInterval(function() {
|
|
102
|
-
if (Math.abs($) <
|
|
102
|
+
if (Math.abs($) < _t && Math.abs(y) < _t) {
|
|
103
103
|
window.clearInterval(f.current);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -108,9 +108,9 @@ function Ra(e, t) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
var W = Z();
|
|
111
|
-
function D(
|
|
112
|
-
var R =
|
|
113
|
-
$ === y ? m = W.current === "x" ? R :
|
|
111
|
+
function D(_) {
|
|
112
|
+
var R = _.deltaX, x = _.deltaY, m = 0, $ = Math.abs(R), y = Math.abs(x);
|
|
113
|
+
$ === y ? m = W.current === "x" ? R : x : $ > y ? (m = R, W.current = "x") : (m = x, W.current = "y"), t(-m, -m) && _.preventDefault();
|
|
114
114
|
}
|
|
115
115
|
var S = Z(null);
|
|
116
116
|
S.current = {
|
|
@@ -119,13 +119,13 @@ function Ra(e, t) {
|
|
|
119
119
|
onTouchEnd: G,
|
|
120
120
|
onWheel: D
|
|
121
121
|
}, l.useEffect(function() {
|
|
122
|
-
function
|
|
122
|
+
function _($) {
|
|
123
123
|
S.current.onTouchStart($);
|
|
124
124
|
}
|
|
125
125
|
function R($) {
|
|
126
126
|
S.current.onTouchMove($);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function x($) {
|
|
129
129
|
S.current.onTouchEnd($);
|
|
130
130
|
}
|
|
131
131
|
function m($) {
|
|
@@ -133,14 +133,14 @@ function Ra(e, t) {
|
|
|
133
133
|
}
|
|
134
134
|
return document.addEventListener("touchmove", R, {
|
|
135
135
|
passive: !1
|
|
136
|
-
}), document.addEventListener("touchend",
|
|
136
|
+
}), document.addEventListener("touchend", x, {
|
|
137
137
|
passive: !0
|
|
138
|
-
}), e.current.addEventListener("touchstart",
|
|
138
|
+
}), e.current.addEventListener("touchstart", _, {
|
|
139
139
|
passive: !0
|
|
140
140
|
}), e.current.addEventListener("wheel", m, {
|
|
141
141
|
passive: !1
|
|
142
142
|
}), function() {
|
|
143
|
-
document.removeEventListener("touchmove", R), document.removeEventListener("touchend",
|
|
143
|
+
document.removeEventListener("touchmove", R), document.removeEventListener("touchend", x);
|
|
144
144
|
};
|
|
145
145
|
}, []);
|
|
146
146
|
}
|
|
@@ -241,7 +241,7 @@ var At = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
241
241
|
});
|
|
242
242
|
process.env.NODE_ENV !== "production" && (Ye.displayName = "ExtraContent");
|
|
243
243
|
var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
244
|
-
var n = e.prefixCls, a = e.id, r = e.tabs, i = e.locale, c = e.mobile, o = e.more, s = o === void 0 ? {} : o, u = e.style, b = e.className, g = e.editable, h = e.tabBarGutter, T = e.rtl, I = e.removeAriaLabel, w = e.onTabClick, P = e.getPopupContainer, p = e.popupClassName, f = J(!1), N = M(f, 2), z = N[0], G = N[1], W = J(null), D = M(W, 2), S = D[0],
|
|
244
|
+
var n = e.prefixCls, a = e.id, r = e.tabs, i = e.locale, c = e.mobile, o = e.more, s = o === void 0 ? {} : o, u = e.style, b = e.className, g = e.editable, h = e.tabBarGutter, T = e.rtl, I = e.removeAriaLabel, w = e.onTabClick, P = e.getPopupContainer, p = e.popupClassName, f = J(!1), N = M(f, 2), z = N[0], G = N[1], W = J(null), D = M(W, 2), S = D[0], _ = D[1], R = s.icon, x = R === void 0 ? "More" : R, m = "".concat(a, "-more-popup"), $ = "".concat(n, "-dropdown"), y = S !== null ? "".concat(m, "-").concat(S) : null, V = i == null ? void 0 : i.dropdownAriaLabel;
|
|
245
245
|
function se(E, L) {
|
|
246
246
|
E.preventDefault(), E.stopPropagation(), g.onEdit("remove", {
|
|
247
247
|
key: L,
|
|
@@ -278,7 +278,7 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
}, U || g.removeIcon || "×"));
|
|
280
280
|
}));
|
|
281
|
-
function
|
|
281
|
+
function F(E) {
|
|
282
282
|
for (var L = r.filter(function(k) {
|
|
283
283
|
return !k.disabled;
|
|
284
284
|
}), j = L.findIndex(function(k) {
|
|
@@ -287,7 +287,7 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
287
287
|
j = (j + E + U) % U;
|
|
288
288
|
var te = L[j];
|
|
289
289
|
if (!te.disabled) {
|
|
290
|
-
|
|
290
|
+
_(te.key);
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -300,10 +300,10 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
300
300
|
}
|
|
301
301
|
switch (L) {
|
|
302
302
|
case ve.UP:
|
|
303
|
-
|
|
303
|
+
F(-1), E.preventDefault();
|
|
304
304
|
break;
|
|
305
305
|
case ve.DOWN:
|
|
306
|
-
|
|
306
|
+
F(1), E.preventDefault();
|
|
307
307
|
break;
|
|
308
308
|
case ve.ESC:
|
|
309
309
|
G(!1);
|
|
@@ -318,11 +318,11 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
318
318
|
var E = document.getElementById(y);
|
|
319
319
|
E && E.scrollIntoView && E.scrollIntoView(!1);
|
|
320
320
|
}, [S]), fe(function() {
|
|
321
|
-
z ||
|
|
321
|
+
z || _(null);
|
|
322
322
|
}, [z]);
|
|
323
323
|
var K = ee({}, T ? "marginRight" : "marginLeft", h);
|
|
324
324
|
r.length || (K.visibility = "hidden", K.order = 1);
|
|
325
|
-
var Q = B(ee({}, "".concat($, "-rtl"), T)), oe = c ? null : /* @__PURE__ */ l.createElement(
|
|
325
|
+
var Q = B(ee({}, "".concat($, "-rtl"), T)), oe = c ? null : /* @__PURE__ */ l.createElement(xa, be({
|
|
326
326
|
prefixCls: $,
|
|
327
327
|
overlay: v,
|
|
328
328
|
visible: r.length ? z : !1,
|
|
@@ -342,7 +342,7 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
342
342
|
id: "".concat(a, "-more"),
|
|
343
343
|
"aria-expanded": z,
|
|
344
344
|
onKeyDown: ie
|
|
345
|
-
},
|
|
345
|
+
}, x));
|
|
346
346
|
return /* @__PURE__ */ l.createElement("div", {
|
|
347
347
|
className: B("".concat(n, "-nav-operations"), b),
|
|
348
348
|
style: u,
|
|
@@ -387,11 +387,11 @@ var Ba = function(t) {
|
|
|
387
387
|
"aria-controls": a && "".concat(a, "-panel-").concat(c),
|
|
388
388
|
"aria-disabled": s,
|
|
389
389
|
tabIndex: s ? null : 0,
|
|
390
|
-
onClick: function(
|
|
391
|
-
|
|
390
|
+
onClick: function(_) {
|
|
391
|
+
_.stopPropagation(), z(_);
|
|
392
392
|
},
|
|
393
|
-
onKeyDown: function(
|
|
394
|
-
[ve.SPACE, ve.ENTER].includes(
|
|
393
|
+
onKeyDown: function(_) {
|
|
394
|
+
[ve.SPACE, ve.ENTER].includes(_.which) && (_.preventDefault(), z(_));
|
|
395
395
|
},
|
|
396
396
|
onFocus: P
|
|
397
397
|
}, b && /* @__PURE__ */ l.createElement("span", {
|
|
@@ -401,8 +401,8 @@ var Ba = function(t) {
|
|
|
401
401
|
"aria-label": T || "remove",
|
|
402
402
|
tabIndex: 0,
|
|
403
403
|
className: "".concat(f, "-remove"),
|
|
404
|
-
onClick: function(
|
|
405
|
-
|
|
404
|
+
onClick: function(_) {
|
|
405
|
+
_.stopPropagation(), G(_);
|
|
406
406
|
}
|
|
407
407
|
}, u || I.removeIcon || "×"));
|
|
408
408
|
return h ? h(D) : D;
|
|
@@ -420,18 +420,18 @@ var Ba = function(t) {
|
|
|
420
420
|
}, Le = function(t, n) {
|
|
421
421
|
return t[n ? 0 : 1];
|
|
422
422
|
}, Tt = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
423
|
-
var n = e.className, a = e.style, r = e.id, i = e.animated, c = e.activeKey, o = e.rtl, s = e.extra, u = e.editable, b = e.locale, g = e.tabPosition, h = e.tabBarGutter, T = e.children, I = e.onTabClick, w = e.onTabScroll, P = e.indicator, p = l.useContext(Ae), f = p.prefixCls, N = p.tabs, z = Z(null), G = Z(null), W = Z(null), D = Z(null), S = Z(null),
|
|
424
|
-
|
|
423
|
+
var n = e.className, a = e.style, r = e.id, i = e.animated, c = e.activeKey, o = e.rtl, s = e.extra, u = e.editable, b = e.locale, g = e.tabPosition, h = e.tabBarGutter, T = e.children, I = e.onTabClick, w = e.onTabScroll, P = e.indicator, p = l.useContext(Ae), f = p.prefixCls, N = p.tabs, z = Z(null), G = Z(null), W = Z(null), D = Z(null), S = Z(null), _ = Z(null), R = Z(null), x = g === "top" || g === "bottom", m = xt(0, function(H, C) {
|
|
424
|
+
x && w && w({
|
|
425
425
|
direction: H > C ? "left" : "right"
|
|
426
426
|
});
|
|
427
|
-
}), $ = M(m, 2), y = $[0], V = $[1], se =
|
|
428
|
-
!
|
|
427
|
+
}), $ = M(m, 2), y = $[0], V = $[1], se = xt(0, function(H, C) {
|
|
428
|
+
!x && w && w({
|
|
429
429
|
direction: H > C ? "top" : "bottom"
|
|
430
430
|
});
|
|
431
|
-
}), v = M(se, 2),
|
|
432
|
-
|
|
431
|
+
}), v = M(se, 2), F = v[0], ie = v[1], K = J([0, 0]), Q = M(K, 2), oe = Q[0], E = Q[1], L = J([0, 0]), j = M(L, 2), U = j[0], Y = j[1], te = J([0, 0]), k = M(te, 2), me = k[0], de = k[1], ne = J([0, 0]), ge = M(ne, 2), O = ge[0], le = ge[1], ye = Oa(/* @__PURE__ */ new Map()), Pe = M(ye, 2), X = Pe[0], A = Pe[1], ce = Pa(N, X, U[0]), Se = Le(oe, x), we = Le(U, x), Ge = Le(me, x), at = Le(O, x), nt = Math.floor(Se) < Math.floor(we + Ge), ue = nt ? Se - at : Se - Ge, Kt = "".concat(f, "-nav-operations-hidden"), pe = 0, xe = 0;
|
|
432
|
+
x && o ? (pe = 0, xe = Math.max(0, we - ue)) : (pe = Math.min(0, ue - we), xe = 0);
|
|
433
433
|
function We(H) {
|
|
434
|
-
return H < pe ? pe : H >
|
|
434
|
+
return H < pe ? pe : H > xe ? xe : H;
|
|
435
435
|
}
|
|
436
436
|
var Ve = Z(null), Xt = J(), rt = M(Xt, 2), Ne = rt[0], it = rt[1];
|
|
437
437
|
function Ke() {
|
|
@@ -441,24 +441,24 @@ var Ba = function(t) {
|
|
|
441
441
|
Ve.current && clearTimeout(Ve.current);
|
|
442
442
|
}
|
|
443
443
|
Ra(D, function(H, C) {
|
|
444
|
-
function
|
|
444
|
+
function q(ae, _e) {
|
|
445
445
|
ae(function(he) {
|
|
446
|
-
var Ie = We(he +
|
|
446
|
+
var Ie = We(he + _e);
|
|
447
447
|
return Ie;
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
-
return nt ? (
|
|
450
|
+
return nt ? (x ? q(V, H) : q(ie, C), Xe(), Ke(), !0) : !1;
|
|
451
451
|
}), fe(function() {
|
|
452
452
|
return Xe(), Ne && (Ve.current = setTimeout(function() {
|
|
453
453
|
it(0);
|
|
454
454
|
}, 100)), Xe;
|
|
455
455
|
}, [Ne]);
|
|
456
|
-
var
|
|
456
|
+
var qt = Ia(
|
|
457
457
|
ce,
|
|
458
458
|
// Container
|
|
459
459
|
ue,
|
|
460
460
|
// Transform
|
|
461
|
-
|
|
461
|
+
x ? y : F,
|
|
462
462
|
// Tabs
|
|
463
463
|
we,
|
|
464
464
|
// Add
|
|
@@ -468,7 +468,7 @@ var Ba = function(t) {
|
|
|
468
468
|
re(re({}, e), {}, {
|
|
469
469
|
tabs: N
|
|
470
470
|
})
|
|
471
|
-
), ot = M(
|
|
471
|
+
), ot = M(qt, 2), Ft = ot[0], Ut = ot[1], lt = da(function() {
|
|
472
472
|
var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, C = ce.get(H) || {
|
|
473
473
|
width: 0,
|
|
474
474
|
height: 0,
|
|
@@ -476,50 +476,50 @@ var Ba = function(t) {
|
|
|
476
476
|
right: 0,
|
|
477
477
|
top: 0
|
|
478
478
|
};
|
|
479
|
-
if (
|
|
480
|
-
var
|
|
481
|
-
o ? C.right < y ?
|
|
479
|
+
if (x) {
|
|
480
|
+
var q = y;
|
|
481
|
+
o ? C.right < y ? q = C.right : C.right + C.width > y + ue && (q = C.right + C.width - ue) : C.left < -y ? q = -C.left : C.left + C.width > -y + ue && (q = -(C.left + C.width - ue)), ie(0), V(We(q));
|
|
482
482
|
} else {
|
|
483
|
-
var ae =
|
|
484
|
-
C.top < -
|
|
483
|
+
var ae = F;
|
|
484
|
+
C.top < -F ? ae = -C.top : C.top + C.height > -F + ue && (ae = -(C.top + C.height - ue)), V(0), ie(We(ae));
|
|
485
485
|
}
|
|
486
486
|
}), Re = {};
|
|
487
487
|
g === "top" || g === "bottom" ? Re[o ? "marginRight" : "marginLeft"] = h : Re.marginTop = h;
|
|
488
488
|
var ct = N.map(function(H, C) {
|
|
489
|
-
var
|
|
489
|
+
var q = H.key;
|
|
490
490
|
return /* @__PURE__ */ l.createElement(Ba, {
|
|
491
491
|
id: r,
|
|
492
492
|
prefixCls: f,
|
|
493
|
-
key:
|
|
493
|
+
key: q,
|
|
494
494
|
tab: H,
|
|
495
495
|
style: C === 0 ? void 0 : Re,
|
|
496
496
|
closable: H.closable,
|
|
497
497
|
editable: u,
|
|
498
|
-
active:
|
|
498
|
+
active: q === c,
|
|
499
499
|
renderWrapper: T,
|
|
500
500
|
removeAriaLabel: b == null ? void 0 : b.removeAriaLabel,
|
|
501
|
-
onClick: function(
|
|
502
|
-
I(
|
|
501
|
+
onClick: function(_e) {
|
|
502
|
+
I(q, _e);
|
|
503
503
|
},
|
|
504
504
|
onFocus: function() {
|
|
505
|
-
lt(
|
|
505
|
+
lt(q), Ke(), D.current && (o || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}), st = function() {
|
|
509
509
|
return A(function() {
|
|
510
|
-
var C,
|
|
511
|
-
return N.forEach(function(
|
|
512
|
-
var he, Ie =
|
|
510
|
+
var C, q = /* @__PURE__ */ new Map(), ae = (C = S.current) === null || C === void 0 ? void 0 : C.getBoundingClientRect();
|
|
511
|
+
return N.forEach(function(_e) {
|
|
512
|
+
var he, Ie = _e.key, mt = (he = S.current) === null || he === void 0 ? void 0 : he.querySelector('[data-node-key="'.concat(Dt(Ie), '"]'));
|
|
513
513
|
if (mt) {
|
|
514
514
|
var kt = Da(mt, ae), ze = M(kt, 4), ea = ze[0], ta = ze[1], aa = ze[2], na = ze[3];
|
|
515
|
-
|
|
515
|
+
q.set(Ie, {
|
|
516
516
|
width: ea,
|
|
517
517
|
height: ta,
|
|
518
518
|
left: aa,
|
|
519
519
|
top: na
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
}),
|
|
522
|
+
}), q;
|
|
523
523
|
});
|
|
524
524
|
};
|
|
525
525
|
fe(function() {
|
|
@@ -528,27 +528,27 @@ var Ba = function(t) {
|
|
|
528
528
|
return H.key;
|
|
529
529
|
}).join("_")]);
|
|
530
530
|
var Oe = Bt(function() {
|
|
531
|
-
var H = Ce(z), C = Ce(G),
|
|
532
|
-
E([H[0] - C[0] -
|
|
531
|
+
var H = Ce(z), C = Ce(G), q = Ce(W);
|
|
532
|
+
E([H[0] - C[0] - q[0], H[1] - C[1] - q[1]]);
|
|
533
533
|
var ae = Ce(R);
|
|
534
534
|
de(ae);
|
|
535
|
-
var
|
|
536
|
-
le(
|
|
535
|
+
var _e = Ce(_);
|
|
536
|
+
le(_e);
|
|
537
537
|
var he = Ce(S);
|
|
538
538
|
Y([he[0] - ae[0], he[1] - ae[1]]), st();
|
|
539
|
-
}), Yt = N.slice(0,
|
|
539
|
+
}), Yt = N.slice(0, Ft), Qt = N.slice(Ut + 1), dt = [].concat(ht(Yt), ht(Qt)), ut = ce.get(c), Zt = Ta({
|
|
540
540
|
activeTabOffset: ut,
|
|
541
|
-
horizontal:
|
|
541
|
+
horizontal: x,
|
|
542
542
|
indicator: P,
|
|
543
543
|
rtl: o
|
|
544
544
|
}), Jt = Zt.style;
|
|
545
545
|
fe(function() {
|
|
546
546
|
lt();
|
|
547
|
-
}, [c, pe,
|
|
547
|
+
}, [c, pe, xe, Et(ut), Et(ce), x]), fe(function() {
|
|
548
548
|
Oe();
|
|
549
549
|
}, [o]);
|
|
550
|
-
var vt = !!dt.length, Ee = "".concat(f, "-nav-wrap"),
|
|
551
|
-
return
|
|
550
|
+
var vt = !!dt.length, Ee = "".concat(f, "-nav-wrap"), qe, Fe, ft, bt;
|
|
551
|
+
return x ? o ? (Fe = y > 0, qe = y !== xe) : (qe = y < 0, Fe = y !== pe) : (ft = F < 0, bt = F !== pe), /* @__PURE__ */ l.createElement(Ue, {
|
|
552
552
|
onResize: Oe
|
|
553
553
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
554
554
|
ref: ua(t, z),
|
|
@@ -566,7 +566,7 @@ var Ba = function(t) {
|
|
|
566
566
|
}), /* @__PURE__ */ l.createElement(Ue, {
|
|
567
567
|
onResize: Oe
|
|
568
568
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
569
|
-
className: B(Ee, ee(ee(ee(ee({}, "".concat(Ee, "-ping-left"),
|
|
569
|
+
className: B(Ee, ee(ee(ee(ee({}, "".concat(Ee, "-ping-left"), qe), "".concat(Ee, "-ping-right"), Fe), "".concat(Ee, "-ping-top"), ft), "".concat(Ee, "-ping-bottom"), bt)),
|
|
570
570
|
ref: D
|
|
571
571
|
}, /* @__PURE__ */ l.createElement(Ue, {
|
|
572
572
|
onResize: Oe
|
|
@@ -574,7 +574,7 @@ var Ba = function(t) {
|
|
|
574
574
|
ref: S,
|
|
575
575
|
className: "".concat(f, "-nav-list"),
|
|
576
576
|
style: {
|
|
577
|
-
transform: "translate(".concat(y, "px, ").concat(
|
|
577
|
+
transform: "translate(".concat(y, "px, ").concat(F, "px)"),
|
|
578
578
|
transition: Ne ? "none" : void 0
|
|
579
579
|
}
|
|
580
580
|
}, ct, /* @__PURE__ */ l.createElement(At, {
|
|
@@ -590,7 +590,7 @@ var Ba = function(t) {
|
|
|
590
590
|
style: Jt
|
|
591
591
|
}))))), /* @__PURE__ */ l.createElement(Ma, be({}, e, {
|
|
592
592
|
removeAriaLabel: b == null ? void 0 : b.removeAriaLabel,
|
|
593
|
-
ref:
|
|
593
|
+
ref: _,
|
|
594
594
|
prefixCls: f,
|
|
595
595
|
tabs: dt,
|
|
596
596
|
className: !vt && Kt,
|
|
@@ -679,13 +679,13 @@ function Wa() {
|
|
|
679
679
|
}, Qe(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && fa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
|
|
680
680
|
}
|
|
681
681
|
var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Pt = 0, Gt = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
682
|
-
var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, i = e.className, c = e.items, o = e.direction, s = e.activeKey, u = e.defaultActiveKey, b = e.editable, g = e.animated, h = e.tabPosition, T = h === void 0 ? "top" : h, I = e.tabBarGutter, w = e.tabBarStyle, P = e.tabBarExtraContent, p = e.locale, f = e.more, N = e.destroyInactiveTabPane, z = e.renderTabBar, G = e.onChange, W = e.onTabClick, D = e.onTabScroll, S = e.getPopupContainer,
|
|
682
|
+
var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, i = e.className, c = e.items, o = e.direction, s = e.activeKey, u = e.defaultActiveKey, b = e.editable, g = e.animated, h = e.tabPosition, T = h === void 0 ? "top" : h, I = e.tabBarGutter, w = e.tabBarStyle, P = e.tabBarExtraContent, p = e.locale, f = e.more, N = e.destroyInactiveTabPane, z = e.renderTabBar, G = e.onChange, W = e.onTabClick, D = e.onTabScroll, S = e.getPopupContainer, _ = e.popupClassName, R = e.indicator, x = Be(e, Va), m = l.useMemo(function() {
|
|
683
683
|
return (c || []).filter(function(O) {
|
|
684
684
|
return O && Qe(O) === "object" && "key" in O;
|
|
685
685
|
});
|
|
686
|
-
}, [c]), $ = o === "rtl", y = Wa(g), V = J(!1), se = M(V, 2), v = se[0],
|
|
686
|
+
}, [c]), $ = o === "rtl", y = Wa(g), V = J(!1), se = M(V, 2), v = se[0], F = se[1];
|
|
687
687
|
fe(function() {
|
|
688
|
-
|
|
688
|
+
F(_a());
|
|
689
689
|
}, []);
|
|
690
690
|
var ie = $t(function() {
|
|
691
691
|
var O;
|
|
@@ -739,7 +739,7 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
739
739
|
style: w,
|
|
740
740
|
panes: null,
|
|
741
741
|
getPopupContainer: S,
|
|
742
|
-
popupClassName:
|
|
742
|
+
popupClassName: _,
|
|
743
743
|
indicator: R
|
|
744
744
|
});
|
|
745
745
|
return /* @__PURE__ */ l.createElement(Ae.Provider, {
|
|
@@ -751,7 +751,7 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
751
751
|
ref: t,
|
|
752
752
|
id: n,
|
|
753
753
|
className: B(r, "".concat(r, "-").concat(T), ee(ee(ee({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), b), "".concat(r, "-rtl"), $), i)
|
|
754
|
-
},
|
|
754
|
+
}, x), /* @__PURE__ */ l.createElement(Ht, be({}, ge, {
|
|
755
755
|
renderTabBar: z
|
|
756
756
|
})), /* @__PURE__ */ l.createElement(Ga, be({
|
|
757
757
|
destroyInactiveTabPane: N
|
|
@@ -782,14 +782,14 @@ function Xa(e) {
|
|
|
782
782
|
motionName: ba(e, "switch")
|
|
783
783
|
})), n;
|
|
784
784
|
}
|
|
785
|
-
var
|
|
785
|
+
var qa = function(e, t) {
|
|
786
786
|
var n = {};
|
|
787
787
|
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
788
788
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
|
|
789
789
|
t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
|
|
790
790
|
return n;
|
|
791
791
|
};
|
|
792
|
-
function
|
|
792
|
+
function Fa(e) {
|
|
793
793
|
return e.filter((t) => t);
|
|
794
794
|
}
|
|
795
795
|
function Ua(e, t) {
|
|
@@ -802,7 +802,7 @@ function Ua(e, t) {
|
|
|
802
802
|
props: i
|
|
803
803
|
} = a, c = i || {}, {
|
|
804
804
|
tab: o
|
|
805
|
-
} = c, s =
|
|
805
|
+
} = c, s = qa(c, ["tab"]);
|
|
806
806
|
return Object.assign(Object.assign({
|
|
807
807
|
key: String(r)
|
|
808
808
|
}, s), {
|
|
@@ -811,7 +811,7 @@ function Ua(e, t) {
|
|
|
811
811
|
}
|
|
812
812
|
return null;
|
|
813
813
|
});
|
|
814
|
-
return
|
|
814
|
+
return Fa(n);
|
|
815
815
|
}
|
|
816
816
|
const Ya = (e) => {
|
|
817
817
|
const {
|
|
@@ -1689,9 +1689,9 @@ const tt = (e) => {
|
|
|
1689
1689
|
more: W,
|
|
1690
1690
|
popupClassName: D,
|
|
1691
1691
|
children: S,
|
|
1692
|
-
items:
|
|
1692
|
+
items: _,
|
|
1693
1693
|
animated: R,
|
|
1694
|
-
style:
|
|
1694
|
+
style: x,
|
|
1695
1695
|
indicatorSize: m,
|
|
1696
1696
|
indicator: $
|
|
1697
1697
|
} = e, y = on(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
|
|
@@ -1699,9 +1699,9 @@ const tt = (e) => {
|
|
|
1699
1699
|
} = y, {
|
|
1700
1700
|
direction: se,
|
|
1701
1701
|
tabs: v,
|
|
1702
|
-
getPrefixCls:
|
|
1702
|
+
getPrefixCls: F,
|
|
1703
1703
|
getPopupContainer: ie
|
|
1704
|
-
} = l.useContext(De), K =
|
|
1704
|
+
} = l.useContext(De), K = F("tabs", V), Q = ga(K), [oe, E, L] = rn(K, Q);
|
|
1705
1705
|
let j;
|
|
1706
1706
|
h === "editable-card" && (j = {
|
|
1707
1707
|
onEdit: (ne, ge) => {
|
|
@@ -1715,12 +1715,12 @@ const tt = (e) => {
|
|
|
1715
1715
|
addIcon: (N ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Mt, null),
|
|
1716
1716
|
showAdd: p !== !0
|
|
1717
1717
|
});
|
|
1718
|
-
const U =
|
|
1718
|
+
const U = F();
|
|
1719
1719
|
if (process.env.NODE_ENV !== "production") {
|
|
1720
1720
|
const ne = Ze("Tabs");
|
|
1721
1721
|
process.env.NODE_ENV !== "production" && ne(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ne(!(m || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
1722
1722
|
}
|
|
1723
|
-
const Y = Lt(w), te = Ua(
|
|
1723
|
+
const Y = Lt(w), te = Ua(_, S), k = Xa(K, R), me = Object.assign(Object.assign({}, v == null ? void 0 : v.style), x), de = {
|
|
1724
1724
|
align: (n = $ == null ? void 0 : $.align) !== null && n !== void 0 ? n : (a = v == null ? void 0 : v.indicator) === null || a === void 0 ? void 0 : a.align,
|
|
1725
1725
|
size: (o = (i = (r = $ == null ? void 0 : $.size) !== null && r !== void 0 ? r : m) !== null && i !== void 0 ? i : (c = v == null ? void 0 : v.indicator) === null || c === void 0 ? void 0 : c.size) !== null && o !== void 0 ? o : v == null ? void 0 : v.indicatorSize
|
|
1726
1726
|
};
|
|
@@ -2142,9 +2142,9 @@ const hn = (e) => {
|
|
|
2142
2142
|
tabProps: W = {},
|
|
2143
2143
|
classNames: D,
|
|
2144
2144
|
styles: S
|
|
2145
|
-
} = e,
|
|
2145
|
+
} = e, _ = Nt(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
|
|
2146
2146
|
getPrefixCls: R,
|
|
2147
|
-
direction:
|
|
2147
|
+
direction: x,
|
|
2148
2148
|
card: m
|
|
2149
2149
|
} = l.useContext(De);
|
|
2150
2150
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2168,7 +2168,7 @@ const hn = (e) => {
|
|
|
2168
2168
|
return l.Children.forEach(p, (A) => {
|
|
2169
2169
|
(A == null ? void 0 : A.type) === Vt && (X = !0);
|
|
2170
2170
|
}), X;
|
|
2171
|
-
}, [p]), v = R("card", n), [
|
|
2171
|
+
}, [p]), v = R("card", n), [F, ie, K] = pn(v), Q = /* @__PURE__ */ l.createElement($a, {
|
|
2172
2172
|
loading: !0,
|
|
2173
2173
|
active: !0,
|
|
2174
2174
|
paragraph: {
|
|
@@ -2219,7 +2219,7 @@ const hn = (e) => {
|
|
|
2219
2219
|
actionClasses: ge,
|
|
2220
2220
|
actionStyle: V("actions"),
|
|
2221
2221
|
actions: w
|
|
2222
|
-
}) : null, le = pa(
|
|
2222
|
+
}) : null, le = pa(_, ["onTabChange"]), ye = B(v, m == null ? void 0 : m.className, {
|
|
2223
2223
|
[`${v}-loading`]: b,
|
|
2224
2224
|
[`${v}-bordered`]: g,
|
|
2225
2225
|
[`${v}-hoverable`]: G,
|
|
@@ -2227,9 +2227,9 @@ const hn = (e) => {
|
|
|
2227
2227
|
[`${v}-contain-tabs`]: P == null ? void 0 : P.length,
|
|
2228
2228
|
[`${v}-${j}`]: j,
|
|
2229
2229
|
[`${v}-type-${T}`]: !!T,
|
|
2230
|
-
[`${v}-rtl`]:
|
|
2230
|
+
[`${v}-rtl`]: x === "rtl"
|
|
2231
2231
|
}, a, r, ie, K), Pe = Object.assign(Object.assign({}, m == null ? void 0 : m.style), i);
|
|
2232
|
-
return
|
|
2232
|
+
return F(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
2233
2233
|
ref: t
|
|
2234
2234
|
}, le, {
|
|
2235
2235
|
className: ye,
|
|
@@ -2268,9 +2268,9 @@ const Sn = (e) => {
|
|
|
2268
2268
|
He.Grid = Vt;
|
|
2269
2269
|
He.Meta = Sn;
|
|
2270
2270
|
process.env.NODE_ENV !== "production" && (He.displayName = "Card");
|
|
2271
|
-
const
|
|
2272
|
-
kpiCard:
|
|
2273
|
-
width430:
|
|
2271
|
+
const xn = "_kpiCard_1bxtq_1", _n = "_width430_1bxtq_7", Cn = "_width384_1bxtq_16", wn = "_flexCol_1bxtq_20", En = "_flexRow_1bxtq_27", Tn = "_title_1bxtq_34", Pn = "_content_1bxtq_60", $e = {
|
|
2272
|
+
kpiCard: xn,
|
|
2273
|
+
width430: _n,
|
|
2274
2274
|
width384: Cn,
|
|
2275
2275
|
flexCol: wn,
|
|
2276
2276
|
flexRow: En,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KpiWrapperProps } from './KpiWrapper.types';
|
|
2
|
-
export declare function KpiWrapper({ children, style }: KpiWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function KpiWrapper({ children, className, style }: KpiWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as c } from "../../portal-utils/cn.js";
|
|
3
|
+
import '../../assets/KpiWrapper.css';const n = "_flexRowSpaceBetween_1v6py_1", r = {
|
|
4
|
+
flexRowSpaceBetween: n
|
|
4
5
|
};
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
function w({ children: e, className: o, style: p }) {
|
|
7
|
+
return /* @__PURE__ */ t("div", { className: c(r.flexRowSpaceBetween, o ?? ""), style: p, children: e });
|
|
7
8
|
}
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
w as KpiWrapper
|
|
10
11
|
};
|
|
@@ -2,13 +2,13 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { S as e } from "../../InvencoGVR-qnTq-d6S.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@mui/x-data-grid";
|
|
5
|
-
import { KpiCard as
|
|
6
|
-
import { KpiWrapper as
|
|
5
|
+
import { KpiCard as i } from "../KpiCard/KpiCard.js";
|
|
6
|
+
import { KpiWrapper as n } from "./KpiWrapper.js";
|
|
7
7
|
import "i18next";
|
|
8
8
|
import '../../assets/SideMenu.css';/* empty css */
|
|
9
|
-
const
|
|
9
|
+
const s = {
|
|
10
10
|
title: "Kpi Wrapper",
|
|
11
|
-
component:
|
|
11
|
+
component: n,
|
|
12
12
|
tags: ["autodocs"],
|
|
13
13
|
parameters: {
|
|
14
14
|
layout: "fullscreen"
|
|
@@ -19,37 +19,37 @@ const m = {
|
|
|
19
19
|
padding: "10px 10px"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, m = {}, K = {
|
|
23
23
|
args: {
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */ t(
|
|
26
|
-
/* @__PURE__ */ t(
|
|
27
|
-
/* @__PURE__ */ t(
|
|
25
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
26
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 2", content: "Kpi Card Content 2", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
27
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
28
28
|
]
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, u = {
|
|
31
31
|
args: {
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ t(
|
|
34
|
-
/* @__PURE__ */ t(
|
|
35
|
-
/* @__PURE__ */ t(
|
|
36
|
-
/* @__PURE__ */ t(
|
|
33
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
34
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 2", content: "Kpi Card Content 2", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
35
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
36
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 4", content: "Kpi Card Content 4", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, g = {
|
|
40
40
|
args: {
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ t(
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
/* @__PURE__ */ t(
|
|
42
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
43
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 2", content: "Kpi Card Content 2", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
44
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
|
-
render: (
|
|
47
|
+
render: (r) => /* @__PURE__ */ t("div", { dir: "rtl", style: { margin: "20px 20px" }, children: /* @__PURE__ */ t(n, { ...r }) })
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
m as Default,
|
|
51
|
+
g as RTL,
|
|
52
|
+
K as With3Kpis,
|
|
53
|
+
u as With4Kpis,
|
|
54
|
+
s as default
|
|
55
55
|
};
|
|
@@ -10,8 +10,8 @@ function F() {
|
|
|
10
10
|
return X;
|
|
11
11
|
}
|
|
12
12
|
function v(t, e) {
|
|
13
|
-
var
|
|
14
|
-
const n = F(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((
|
|
13
|
+
var c, u, d, f;
|
|
14
|
+
const n = F(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, a = l(t, e == null ? void 0 : e.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
|
|
15
15
|
return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
|
|
16
16
|
}
|
|
17
17
|
function W(t, e) {
|
|
@@ -22,8 +22,8 @@ function G(t, e) {
|
|
|
22
22
|
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
23
23
|
const i = W(a), s = y(n, 0);
|
|
24
24
|
s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
|
|
25
|
-
const
|
|
26
|
-
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >=
|
|
25
|
+
const c = W(s);
|
|
26
|
+
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1;
|
|
27
27
|
}
|
|
28
28
|
function $(t) {
|
|
29
29
|
const e = l(t), n = new Date(
|
|
@@ -55,8 +55,8 @@ function I(t, e, n) {
|
|
|
55
55
|
n == null ? void 0 : n.in,
|
|
56
56
|
t,
|
|
57
57
|
e
|
|
58
|
-
), i = C(r), s = C(a),
|
|
59
|
-
return Math.round((
|
|
58
|
+
), i = C(r), s = C(a), c = +i - $(i), u = +s - $(s);
|
|
59
|
+
return Math.round((c - u) / 864e5);
|
|
60
60
|
}
|
|
61
61
|
function j(t, e) {
|
|
62
62
|
const n = G(t, e), r = y(t, 0);
|
|
@@ -139,7 +139,7 @@ const J = {
|
|
|
139
139
|
const a = J[t];
|
|
140
140
|
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
141
141
|
};
|
|
142
|
-
function
|
|
142
|
+
function N(t) {
|
|
143
143
|
return (e = {}) => {
|
|
144
144
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
145
145
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
@@ -161,15 +161,15 @@ const z = {
|
|
|
161
161
|
medium: "{{date}}, {{time}}",
|
|
162
162
|
short: "{{date}}, {{time}}"
|
|
163
163
|
}, tt = {
|
|
164
|
-
date:
|
|
164
|
+
date: N({
|
|
165
165
|
formats: z,
|
|
166
166
|
defaultWidth: "full"
|
|
167
167
|
}),
|
|
168
|
-
time:
|
|
168
|
+
time: N({
|
|
169
169
|
formats: K,
|
|
170
170
|
defaultWidth: "full"
|
|
171
171
|
}),
|
|
172
|
-
dateTime:
|
|
172
|
+
dateTime: N({
|
|
173
173
|
formats: Z,
|
|
174
174
|
defaultWidth: "full"
|
|
175
175
|
})
|
|
@@ -186,11 +186,11 @@ function S(t) {
|
|
|
186
186
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
187
187
|
let a;
|
|
188
188
|
if (r === "formatting" && t.formattingValues) {
|
|
189
|
-
const s = t.defaultFormattingWidth || t.defaultWidth,
|
|
190
|
-
a = t.formattingValues[
|
|
189
|
+
const s = t.defaultFormattingWidth || t.defaultWidth, c = n != null && n.width ? String(n.width) : s;
|
|
190
|
+
a = t.formattingValues[c] || t.formattingValues[s];
|
|
191
191
|
} else {
|
|
192
|
-
const s = t.defaultWidth,
|
|
193
|
-
a = t.values[
|
|
192
|
+
const s = t.defaultWidth, c = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
193
|
+
a = t.values[c] || t.values[s];
|
|
194
194
|
}
|
|
195
195
|
const i = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
196
196
|
return a[i];
|
|
@@ -278,7 +278,7 @@ const rt = {
|
|
|
278
278
|
evening: "evening",
|
|
279
279
|
night: "night"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
281
|
+
}, ct = {
|
|
282
282
|
narrow: {
|
|
283
283
|
am: "a",
|
|
284
284
|
pm: "p",
|
|
@@ -309,7 +309,7 @@ const rt = {
|
|
|
309
309
|
evening: "in the evening",
|
|
310
310
|
night: "at night"
|
|
311
311
|
}
|
|
312
|
-
},
|
|
312
|
+
}, ut = (t, e) => {
|
|
313
313
|
const n = Number(t), r = n % 100;
|
|
314
314
|
if (r > 20 || r < 10)
|
|
315
315
|
switch (r % 10) {
|
|
@@ -322,7 +322,7 @@ const rt = {
|
|
|
322
322
|
}
|
|
323
323
|
return n + "th";
|
|
324
324
|
}, dt = {
|
|
325
|
-
ordinalNumber:
|
|
325
|
+
ordinalNumber: ut,
|
|
326
326
|
era: S({
|
|
327
327
|
values: rt,
|
|
328
328
|
defaultWidth: "wide"
|
|
@@ -343,7 +343,7 @@ const rt = {
|
|
|
343
343
|
dayPeriod: S({
|
|
344
344
|
values: ot,
|
|
345
345
|
defaultWidth: "wide",
|
|
346
|
-
formattingValues:
|
|
346
|
+
formattingValues: ct,
|
|
347
347
|
defaultFormattingWidth: "wide"
|
|
348
348
|
})
|
|
349
349
|
};
|
|
@@ -352,25 +352,25 @@ function O(t) {
|
|
|
352
352
|
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
|
|
353
353
|
if (!i)
|
|
354
354
|
return null;
|
|
355
|
-
const s = i[0],
|
|
355
|
+
const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(c) ? ft(c, (g) => g.test(s)) : (
|
|
356
356
|
// [TODO] -- I challenge you to fix the type
|
|
357
|
-
|
|
357
|
+
mt(c, (g) => g.test(s))
|
|
358
358
|
);
|
|
359
359
|
let d;
|
|
360
|
-
d = t.valueCallback ? t.valueCallback(
|
|
360
|
+
d = t.valueCallback ? t.valueCallback(u) : u, d = n.valueCallback ? (
|
|
361
361
|
// [TODO] -- I challenge you to fix the type
|
|
362
362
|
n.valueCallback(d)
|
|
363
363
|
) : d;
|
|
364
|
-
const
|
|
365
|
-
return { value: d, rest:
|
|
364
|
+
const f = e.slice(s.length);
|
|
365
|
+
return { value: d, rest: f };
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function mt(t, e) {
|
|
369
369
|
for (const n in t)
|
|
370
370
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
371
371
|
return n;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function ft(t, e) {
|
|
374
374
|
for (let n = 0; n < t.length; n++)
|
|
375
375
|
if (e(t[n]))
|
|
376
376
|
return n;
|
|
@@ -383,8 +383,8 @@ function ht(t) {
|
|
|
383
383
|
if (!i) return null;
|
|
384
384
|
let s = t.valueCallback ? t.valueCallback(i[0]) : i[0];
|
|
385
385
|
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
386
|
-
const
|
|
387
|
-
return { value: s, rest:
|
|
386
|
+
const c = e.slice(a.length);
|
|
387
|
+
return { value: s, rest: c };
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
const lt = /^(\d+)(th|st|nd|rd)?/i, gt = /\d+/i, wt = {
|
|
@@ -512,21 +512,21 @@ function Yt(t, e) {
|
|
|
512
512
|
return Math.round(r / 6048e5) + 1;
|
|
513
513
|
}
|
|
514
514
|
function Q(t, e) {
|
|
515
|
-
var
|
|
516
|
-
const n = l(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = F(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (
|
|
515
|
+
var f, g, x, D;
|
|
516
|
+
const n = l(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = F(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((D = (x = a.locale) == null ? void 0 : x.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, s = y((e == null ? void 0 : e.in) || t, 0);
|
|
517
517
|
s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
const d = v(
|
|
521
|
-
return +n >= +
|
|
518
|
+
const c = v(s, e), u = y((e == null ? void 0 : e.in) || t, 0);
|
|
519
|
+
u.setFullYear(r, 0, i), u.setHours(0, 0, 0, 0);
|
|
520
|
+
const d = v(u, e);
|
|
521
|
+
return +n >= +c ? r + 1 : +n >= +d ? r : r - 1;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
var
|
|
525
|
-
const n = F(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((
|
|
523
|
+
function Nt(t, e) {
|
|
524
|
+
var c, u, d, f;
|
|
525
|
+
const n = F(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = Q(t, e), i = y((e == null ? void 0 : e.in) || t, 0);
|
|
526
526
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), v(i, e);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
const n = l(t, e == null ? void 0 : e.in), r = +v(n, e) - +
|
|
528
|
+
function Tt(t, e) {
|
|
529
|
+
const n = l(t, e == null ? void 0 : e.in), r = +v(n, e) - +Nt(n, e);
|
|
530
530
|
return Math.round(r / 6048e5) + 1;
|
|
531
531
|
}
|
|
532
532
|
function o(t, e) {
|
|
@@ -752,7 +752,7 @@ const w = {
|
|
|
752
752
|
},
|
|
753
753
|
// Local week of year
|
|
754
754
|
w: function(t, e, n, r) {
|
|
755
|
-
const a =
|
|
755
|
+
const a = Tt(t, r);
|
|
756
756
|
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : o(a, e.length);
|
|
757
757
|
},
|
|
758
758
|
// ISO week of year
|
|
@@ -1156,44 +1156,44 @@ function Qt(t, e, n) {
|
|
|
1156
1156
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1157
1157
|
}
|
|
1158
1158
|
const Vt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Xt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, _t = /^'([^]*?)'?$/, It = /''/g, jt = /[a-zA-Z]/;
|
|
1159
|
-
function
|
|
1160
|
-
var
|
|
1161
|
-
const r = F(), a = r.locale ?? Wt, i = r.firstWeekContainsDate ?? ((g = (
|
|
1162
|
-
if (!R(
|
|
1159
|
+
function T(t, e, n) {
|
|
1160
|
+
var f, g, x, D;
|
|
1161
|
+
const r = F(), a = r.locale ?? Wt, i = r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((D = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : D.weekStartsOn) ?? 0, c = l(t, n == null ? void 0 : n.in);
|
|
1162
|
+
if (!R(c))
|
|
1163
1163
|
throw new RangeError("Invalid time value");
|
|
1164
|
-
let
|
|
1165
|
-
const
|
|
1166
|
-
if (
|
|
1167
|
-
const Y = $t[
|
|
1164
|
+
let u = e.match(Xt).map((h) => {
|
|
1165
|
+
const m = h[0];
|
|
1166
|
+
if (m === "p" || m === "P") {
|
|
1167
|
+
const Y = $t[m];
|
|
1168
1168
|
return Y(h, a.formatLong);
|
|
1169
1169
|
}
|
|
1170
1170
|
return h;
|
|
1171
1171
|
}).join("").match(Vt).map((h) => {
|
|
1172
1172
|
if (h === "''")
|
|
1173
1173
|
return { isToken: !1, value: "'" };
|
|
1174
|
-
const
|
|
1175
|
-
if (
|
|
1174
|
+
const m = h[0];
|
|
1175
|
+
if (m === "'")
|
|
1176
1176
|
return { isToken: !1, value: Bt(h) };
|
|
1177
|
-
if (q[
|
|
1177
|
+
if (q[m])
|
|
1178
1178
|
return { isToken: !0, value: h };
|
|
1179
|
-
if (
|
|
1179
|
+
if (m.match(jt))
|
|
1180
1180
|
throw new RangeError(
|
|
1181
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1181
|
+
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
1182
1182
|
);
|
|
1183
1183
|
return { isToken: !1, value: h };
|
|
1184
1184
|
});
|
|
1185
|
-
a.localize.preprocessor && (
|
|
1185
|
+
a.localize.preprocessor && (u = a.localize.preprocessor(c, u));
|
|
1186
1186
|
const d = {
|
|
1187
1187
|
firstWeekContainsDate: i,
|
|
1188
1188
|
weekStartsOn: s,
|
|
1189
1189
|
locale: a
|
|
1190
1190
|
};
|
|
1191
|
-
return
|
|
1191
|
+
return u.map((h) => {
|
|
1192
1192
|
if (!h.isToken) return h.value;
|
|
1193
|
-
const
|
|
1194
|
-
(Lt(
|
|
1195
|
-
const Y = q[
|
|
1196
|
-
return Y(
|
|
1193
|
+
const m = h.value;
|
|
1194
|
+
(Lt(m) || Ht(m)) && Gt(m, e, String(t));
|
|
1195
|
+
const Y = q[m[0]];
|
|
1196
|
+
return Y(c, m, a.localize, d);
|
|
1197
1197
|
}).join("");
|
|
1198
1198
|
}
|
|
1199
1199
|
function Bt(t) {
|
|
@@ -1205,23 +1205,49 @@ function Rt(t, e) {
|
|
|
1205
1205
|
let n = Math.abs(e).toLocaleString(M, {
|
|
1206
1206
|
useGrouping: !1
|
|
1207
1207
|
});
|
|
1208
|
-
return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(
|
|
1208
|
+
return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(
|
|
1209
|
+
n,
|
|
1210
|
+
t.settings.decimalSeparator,
|
|
1211
|
+
t.settings.thousandsSeparator
|
|
1212
|
+
);
|
|
1209
1213
|
}
|
|
1210
1214
|
function At(t, e) {
|
|
1211
1215
|
let n = Math.abs(e).toLocaleString(M, {
|
|
1212
1216
|
minimumFractionDigits: e < 0 ? t.settings.numbersDecimalPrecisionNegative : t.settings.numbersDecimalPrecisionPositive,
|
|
1217
|
+
maximumFractionDigits: e < 0 ? Math.max(
|
|
1218
|
+
t.settings.numbersDecimalPrecisionNegativeOptional,
|
|
1219
|
+
t.settings.numbersDecimalPrecisionNegative
|
|
1220
|
+
) : Math.max(
|
|
1221
|
+
t.settings.numbersDecimalPrecisionPositiveOptional,
|
|
1222
|
+
t.settings.numbersDecimalPrecisionPositive
|
|
1223
|
+
),
|
|
1213
1224
|
useGrouping: !1
|
|
1214
1225
|
});
|
|
1215
|
-
return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(
|
|
1226
|
+
return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(
|
|
1227
|
+
n,
|
|
1228
|
+
t.settings.decimalSeparator,
|
|
1229
|
+
t.settings.thousandsSeparator
|
|
1230
|
+
);
|
|
1216
1231
|
}
|
|
1217
1232
|
function Jt(t, e) {
|
|
1218
1233
|
if (isNaN(e)) return "";
|
|
1219
1234
|
let n = Math.abs(e).toLocaleString(M, {
|
|
1220
1235
|
minimumFractionDigits: e < 0 ? t.settings.currencyNegMinimumFractionDigits : t.settings.currencyMinimumFractionDigits,
|
|
1221
1236
|
minimumIntegerDigits: e < 0 ? t.settings.currencyNegMinimumIntegerDigits : t.settings.currencyMinimumIntegerDigits,
|
|
1237
|
+
maximumFractionDigits: e < 0 ? Math.max(
|
|
1238
|
+
t.settings.currencyNegMaximumFractionDigits,
|
|
1239
|
+
t.settings.currencyNegMinimumFractionDigits
|
|
1240
|
+
) : Math.max(
|
|
1241
|
+
t.settings.currencyMaximumFractionDigits,
|
|
1242
|
+
t.settings.currencyMinimumFractionDigits
|
|
1243
|
+
),
|
|
1222
1244
|
useGrouping: !1
|
|
1223
1245
|
});
|
|
1224
|
-
return e < 0 ? n = `${t.settings.currencyPrefixNegative}${n}${t.settings.currencySuffixNegative}` : n = `${t.settings.currencyPrefixPositive}${n}${t.settings.currencySuffixPositive}`, k(
|
|
1246
|
+
return e < 0 ? n = `${t.settings.currencyPrefixNegative}${n}${t.settings.currencySuffixNegative}` : n = `${t.settings.currencyPrefixPositive}${n}${t.settings.currencySuffixPositive}`, k(
|
|
1247
|
+
n,
|
|
1248
|
+
t.settings.decimalSeparator,
|
|
1249
|
+
t.settings.thousandsSeparator
|
|
1250
|
+
);
|
|
1225
1251
|
}
|
|
1226
1252
|
function Ut(t, e) {
|
|
1227
1253
|
if (isNaN(e)) return "";
|
|
@@ -1258,18 +1284,21 @@ function Kt(t, e, n) {
|
|
|
1258
1284
|
}
|
|
1259
1285
|
function Zt(t, e) {
|
|
1260
1286
|
const n = t.settings.dateFormat;
|
|
1261
|
-
return
|
|
1287
|
+
return T(new Date(e), n);
|
|
1262
1288
|
}
|
|
1263
1289
|
function te(t, e) {
|
|
1264
1290
|
const n = t.settings.timeFormat;
|
|
1265
|
-
return
|
|
1291
|
+
return T(new Date(e), `${n}`);
|
|
1266
1292
|
}
|
|
1267
1293
|
function ee(t, e) {
|
|
1268
1294
|
const n = t.settings.dateFormat, r = t.settings.timeFormat;
|
|
1269
|
-
return
|
|
1295
|
+
return T(new Date(e), `${n} ${r}`);
|
|
1270
1296
|
}
|
|
1271
1297
|
function k(t, e = ".", n = ",") {
|
|
1272
|
-
const [r, a] = t.split("."), i = r.replace(
|
|
1298
|
+
const [r, a] = t.split("."), i = r.replace(
|
|
1299
|
+
/\B(?=(\d{3})+(?!\d))/g,
|
|
1300
|
+
n
|
|
1301
|
+
);
|
|
1273
1302
|
return a ? `${i}${e}${a}` : i;
|
|
1274
1303
|
}
|
|
1275
1304
|
export {
|
package/dist/types/Column.d.ts
CHANGED
|
@@ -8,8 +8,10 @@ export interface CultureSettings {
|
|
|
8
8
|
timeFormat: string;
|
|
9
9
|
currencyMinimumFractionDigits: number;
|
|
10
10
|
currencyMinimumIntegerDigits: number;
|
|
11
|
+
currencyMaximumFractionDigits: number;
|
|
11
12
|
currencyNegMinimumFractionDigits: number;
|
|
12
13
|
currencyNegMinimumIntegerDigits: number;
|
|
14
|
+
currencyNegMaximumFractionDigits: number;
|
|
13
15
|
fuelVolumeSign: string;
|
|
14
16
|
decimalSeparator: string;
|
|
15
17
|
thousandsSeparator: string;
|
|
@@ -24,6 +26,8 @@ export interface CultureSettings {
|
|
|
24
26
|
fuelUnitPriceDecimalPrecisionPositive: number;
|
|
25
27
|
numbersDecimalPrecisionPositive: number;
|
|
26
28
|
numbersDecimalPrecisionNegative: number;
|
|
29
|
+
numbersDecimalPrecisionPositiveOptional: number;
|
|
30
|
+
numbersDecimalPrecisionNegativeOptional: number;
|
|
27
31
|
numbersPrefixPositive: string;
|
|
28
32
|
numbersSuffixPositive: string;
|
|
29
33
|
numbersPrefixNegative: string;
|
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@amateescu/portal-ui-components",
|
|
3
|
-
"main": "dist/main.js",
|
|
4
|
-
"types": "dist/main.d.ts",
|
|
5
|
-
"version": "0.0.
|
|
6
|
-
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"exports": {
|
|
11
|
-
"./components": "./dist/components/index.js",
|
|
12
|
-
"./types": "./dist/types/index.js",
|
|
13
|
-
"./portal-utils": "./dist/portal-utils/index.js"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsc && vite build",
|
|
17
|
-
"tsc": "tsc",
|
|
18
|
-
"clean": "rimraf dist && rimraf --glob ./*.tsbuildinfo",
|
|
19
|
-
"lint": "eslint .",
|
|
20
|
-
"storybook": "storybook dev -p 6006",
|
|
21
|
-
"build-storybook": "storybook build"
|
|
22
|
-
},
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"i18next": ">=23.10.1",
|
|
28
|
-
"react": "^18.2.0",
|
|
29
|
-
"react-dom": "^18.2.0",
|
|
30
|
-
"react-i18next": ">=14.1.0"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@chromatic-com/storybook": "^3.2.3",
|
|
34
|
-
"@emotion/react": "^11.13.0",
|
|
35
|
-
"@emotion/styled": "^11.13.0",
|
|
36
|
-
"@eslint/js": "^9.15.0",
|
|
37
|
-
"@mui/icons-material": "^5.15.12",
|
|
38
|
-
"@mui/material": "^5.15.12",
|
|
39
|
-
"@mui/x-data-grid": "^6.19.8",
|
|
40
|
-
"@storybook/addon-essentials": "^8.5.0",
|
|
41
|
-
"@storybook/addon-interactions": "^8.5.0",
|
|
42
|
-
"@storybook/addon-onboarding": "^8.5.0",
|
|
43
|
-
"@storybook/blocks": "^8.5.0",
|
|
44
|
-
"@storybook/react": "^8.5.0",
|
|
45
|
-
"@storybook/react-vite": "^8.5.0",
|
|
46
|
-
"@storybook/test": "^8.5.0",
|
|
47
|
-
"@types/postcss-import": "^14.0.3",
|
|
48
|
-
"@types/react": "^18.3.1",
|
|
49
|
-
"@types/react-dom": "^18.3.1",
|
|
50
|
-
"@vitejs/plugin-react": "^4.3.3",
|
|
51
|
-
"antd": "^5.21.6",
|
|
52
|
-
"date-fns": "^4.1.0",
|
|
53
|
-
"eslint": "^9.15.0",
|
|
54
|
-
"eslint-plugin-react": "^7.37.2",
|
|
55
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
56
|
-
"eslint-plugin-react-refresh": "^0.4.14",
|
|
57
|
-
"eslint-plugin-storybook": "^0.11.2",
|
|
58
|
-
"glob": "^10.4.5",
|
|
59
|
-
"globals": "^15.12.0",
|
|
60
|
-
"i18next": "^24.2.1",
|
|
61
|
-
"postcss": "^8.4.49",
|
|
62
|
-
"postcss-import": "^16.1.0",
|
|
63
|
-
"postcss-preset-env": "^10.1.1",
|
|
64
|
-
"react": "^18.3.1",
|
|
65
|
-
"react-dom": "^18.3.1",
|
|
66
|
-
"react-i18next": "^15.4.0",
|
|
67
|
-
"rimraf": "6.0.1",
|
|
68
|
-
"sass-embedded": "^1.81.0",
|
|
69
|
-
"storybook": "^8.5.0",
|
|
70
|
-
"typescript": "^5.6.3",
|
|
71
|
-
"vite": "^5.4.11",
|
|
72
|
-
"vite-plugin-dts": "^4.3.0",
|
|
73
|
-
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
74
|
-
"vite-plugin-svgr": "^4.3.0"
|
|
75
|
-
},
|
|
76
|
-
"sideEffects": [
|
|
77
|
-
"**/*.css"
|
|
78
|
-
],
|
|
79
|
-
"eslintConfig": {
|
|
80
|
-
"extends": [
|
|
81
|
-
"plugin:storybook/recommended"
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@amateescu/portal-ui-components",
|
|
3
|
+
"main": "dist/main.js",
|
|
4
|
+
"types": "dist/main.d.ts",
|
|
5
|
+
"version": "0.0.19-beta0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
"./components": "./dist/components/index.js",
|
|
12
|
+
"./types": "./dist/types/index.js",
|
|
13
|
+
"./portal-utils": "./dist/portal-utils/index.js"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc && vite build",
|
|
17
|
+
"tsc": "tsc",
|
|
18
|
+
"clean": "rimraf dist && rimraf --glob ./*.tsbuildinfo",
|
|
19
|
+
"lint": "eslint .",
|
|
20
|
+
"storybook": "storybook dev -p 6006",
|
|
21
|
+
"build-storybook": "storybook build"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"i18next": ">=23.10.1",
|
|
28
|
+
"react": "^18.2.0",
|
|
29
|
+
"react-dom": "^18.2.0",
|
|
30
|
+
"react-i18next": ">=14.1.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@chromatic-com/storybook": "^3.2.3",
|
|
34
|
+
"@emotion/react": "^11.13.0",
|
|
35
|
+
"@emotion/styled": "^11.13.0",
|
|
36
|
+
"@eslint/js": "^9.15.0",
|
|
37
|
+
"@mui/icons-material": "^5.15.12",
|
|
38
|
+
"@mui/material": "^5.15.12",
|
|
39
|
+
"@mui/x-data-grid": "^6.19.8",
|
|
40
|
+
"@storybook/addon-essentials": "^8.5.0",
|
|
41
|
+
"@storybook/addon-interactions": "^8.5.0",
|
|
42
|
+
"@storybook/addon-onboarding": "^8.5.0",
|
|
43
|
+
"@storybook/blocks": "^8.5.0",
|
|
44
|
+
"@storybook/react": "^8.5.0",
|
|
45
|
+
"@storybook/react-vite": "^8.5.0",
|
|
46
|
+
"@storybook/test": "^8.5.0",
|
|
47
|
+
"@types/postcss-import": "^14.0.3",
|
|
48
|
+
"@types/react": "^18.3.1",
|
|
49
|
+
"@types/react-dom": "^18.3.1",
|
|
50
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
51
|
+
"antd": "^5.21.6",
|
|
52
|
+
"date-fns": "^4.1.0",
|
|
53
|
+
"eslint": "^9.15.0",
|
|
54
|
+
"eslint-plugin-react": "^7.37.2",
|
|
55
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
56
|
+
"eslint-plugin-react-refresh": "^0.4.14",
|
|
57
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
58
|
+
"glob": "^10.4.5",
|
|
59
|
+
"globals": "^15.12.0",
|
|
60
|
+
"i18next": "^24.2.1",
|
|
61
|
+
"postcss": "^8.4.49",
|
|
62
|
+
"postcss-import": "^16.1.0",
|
|
63
|
+
"postcss-preset-env": "^10.1.1",
|
|
64
|
+
"react": "^18.3.1",
|
|
65
|
+
"react-dom": "^18.3.1",
|
|
66
|
+
"react-i18next": "^15.4.0",
|
|
67
|
+
"rimraf": "6.0.1",
|
|
68
|
+
"sass-embedded": "^1.81.0",
|
|
69
|
+
"storybook": "^8.5.0",
|
|
70
|
+
"typescript": "^5.6.3",
|
|
71
|
+
"vite": "^5.4.11",
|
|
72
|
+
"vite-plugin-dts": "^4.3.0",
|
|
73
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
74
|
+
"vite-plugin-svgr": "^4.3.0"
|
|
75
|
+
},
|
|
76
|
+
"sideEffects": [
|
|
77
|
+
"**/*.css"
|
|
78
|
+
],
|
|
79
|
+
"eslintConfig": {
|
|
80
|
+
"extends": [
|
|
81
|
+
"plugin:storybook/recommended"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|