react-luminus-components 1.1.17 → 1.1.19
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/.vite/manifest.json +51 -51
- package/dist/{DataKey-SawjodF1.js → DataKey-Chc9JWBN.js} +1 -1
- package/dist/{DataKey-C0-5Uwn-.cjs → DataKey-dhQX8cMa.cjs} +1 -1
- package/dist/{SimpleTooltip-CLfGg88p.cjs → SimpleTooltip-CfoOF2bC.cjs} +1 -1
- package/dist/{SimpleTooltip-DV3SQ0iz.js → SimpleTooltip-Cs6KsWMk.js} +2 -2
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +4 -4
- package/dist/{hasClass-cZEMP5cn.js → hasClass-D2q3Otcv.js} +1 -1
- package/dist/{hasClass-C0uHVOLl.cjs → hasClass-Dg19NteG.cjs} +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +68 -68
- package/dist/style.css +1 -1
- package/dist/textUtils-Bb6c2XYw.cjs +1 -0
- package/dist/textUtils-Bd2QCbzF.js +32 -0
- package/dist/{useAxios-DuhvBHuH.cjs → useAxios-Ce32mjz9.cjs} +1 -1
- package/dist/{useAxios-Co2Q-JSk.js → useAxios-D-fCu46c.js} +1 -1
- package/dist/{useConfirm-5e6ff6zl.cjs → useConfirm-BM62r8mq.cjs} +1 -1
- package/dist/{useConfirm-8RQF_FiV.js → useConfirm-CTpbtdnu.js} +1 -1
- package/dist/utils/text/textUtils.d.ts +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -1
- package/package.json +1 -1
- package/dist/textUtils-CDK5A52_.js +0 -28
- package/dist/textUtils-FVcup93t.cjs +0 -1
package/dist/main.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as s, f as bt, M as xt, L as Ce, d as C, h as Xn, i as wt, k as xe, l as Un, m as zn, n as Jn, o as Zn, p as er, g as tr, q as nr, G as rr, r as le, s as or } from "./useAxios-
|
|
1
|
+
import { j as s, f as bt, M as xt, L as Ce, d as C, h as Xn, i as wt, k as xe, l as Un, m as zn, n as Jn, o as Zn, p as er, g as tr, q as nr, G as rr, r as le, s as or } from "./useAxios-D-fCu46c.js";
|
|
2
2
|
import * as $ from "react";
|
|
3
3
|
import H, { useCallback as M, useContext as E, useState as R, useEffect as P, useMemo as L, useRef as W, useReducer as vt } from "react";
|
|
4
|
-
import { d as pe, u as ar, q as Ie, a as sr } from "./DataKey-
|
|
5
|
-
import { L as Yi } from "./DataKey-
|
|
4
|
+
import { d as pe, u as ar, q as Ie, a as sr } from "./DataKey-Chc9JWBN.js";
|
|
5
|
+
import { L as Yi } from "./DataKey-Chc9JWBN.js";
|
|
6
6
|
import { m as ir, a as yt } from "./constants-CzNy5yO3.js";
|
|
7
|
-
import { w as cr, x as lr, s as ze, E as ur, y as dr, z as fr, A as mr, B as hr, d as Z, g as S, C as pr, D as gr, j as br, u as xr, p as wr, k as $e, q as vr, m as yr, P as Y, N as jt, F as Ct, T as re } from "./hasClass-
|
|
7
|
+
import { w as cr, x as lr, s as ze, E as ur, y as dr, z as fr, A as mr, B as hr, d as Z, g as S, C as pr, D as gr, j as br, u as xr, p as wr, k as $e, q as vr, m as yr, P as Y, N as jt, F as Ct, T as re } from "./hasClass-D2q3Otcv.js";
|
|
8
8
|
import { u as jr } from "./useClickOutside-BjJyGTec.js";
|
|
9
|
-
import { u as Cr, m as $r, a as kr, w as Re, b as Ae, O as $t, P as _e, T as Nr } from "./SimpleTooltip-
|
|
10
|
-
import { S as
|
|
9
|
+
import { u as Cr, m as $r, a as kr, w as Re, b as Ae, O as $t, P as _e, T as Nr } from "./SimpleTooltip-Cs6KsWMk.js";
|
|
10
|
+
import { S as Ki } from "./SimpleTooltip-Cs6KsWMk.js";
|
|
11
11
|
import { useFormContext as ee } from "react-hook-form";
|
|
12
12
|
const di = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
13
13
|
const r = M(async () => {
|
|
@@ -20,7 +20,7 @@ const di = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
|
20
20
|
}, [e, t]);
|
|
21
21
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: n });
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function q(e) {
|
|
24
24
|
const t = Object.prototype.toString.call(e);
|
|
25
25
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ function X(e, t) {
|
|
|
28
28
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
29
29
|
}
|
|
30
30
|
function kt(e, t) {
|
|
31
|
-
const n =
|
|
31
|
+
const n = q(e);
|
|
32
32
|
if (isNaN(t))
|
|
33
33
|
return X(e, NaN);
|
|
34
34
|
if (!t)
|
|
@@ -48,14 +48,14 @@ function ke() {
|
|
|
48
48
|
}
|
|
49
49
|
function he(e, t) {
|
|
50
50
|
var c, l, d, f;
|
|
51
|
-
const n = ke(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, o =
|
|
51
|
+
const n = ke(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, o = q(e), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
|
|
52
52
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
53
53
|
}
|
|
54
54
|
function we(e) {
|
|
55
55
|
return he(e, { weekStartsOn: 1 });
|
|
56
56
|
}
|
|
57
57
|
function Nt(e) {
|
|
58
|
-
const t =
|
|
58
|
+
const t = q(e), n = t.getFullYear(), r = X(e, 0);
|
|
59
59
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
60
60
|
const o = we(r), a = X(e, 0);
|
|
61
61
|
a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0);
|
|
@@ -63,11 +63,11 @@ function Nt(e) {
|
|
|
63
63
|
return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
|
|
64
64
|
}
|
|
65
65
|
function Je(e) {
|
|
66
|
-
const t =
|
|
66
|
+
const t = q(e);
|
|
67
67
|
return t.setHours(0, 0, 0, 0), t;
|
|
68
68
|
}
|
|
69
69
|
function Ze(e) {
|
|
70
|
-
const t =
|
|
70
|
+
const t = q(e), n = new Date(
|
|
71
71
|
Date.UTC(
|
|
72
72
|
t.getFullYear(),
|
|
73
73
|
t.getMonth(),
|
|
@@ -97,11 +97,11 @@ function Dr(e) {
|
|
|
97
97
|
function Sr(e) {
|
|
98
98
|
if (!Dr(e) && typeof e != "number")
|
|
99
99
|
return !1;
|
|
100
|
-
const t =
|
|
100
|
+
const t = q(e);
|
|
101
101
|
return !isNaN(Number(t));
|
|
102
102
|
}
|
|
103
103
|
function Mr(e) {
|
|
104
|
-
const t =
|
|
104
|
+
const t = q(e), n = X(e, 0);
|
|
105
105
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
106
106
|
}
|
|
107
107
|
const Ir = {
|
|
@@ -228,11 +228,11 @@ function de(e) {
|
|
|
228
228
|
return o[a];
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const qr = {
|
|
232
232
|
narrow: ["B", "A"],
|
|
233
233
|
abbreviated: ["BC", "AD"],
|
|
234
234
|
wide: ["Before Christ", "Anno Domini"]
|
|
235
|
-
},
|
|
235
|
+
}, Kr = {
|
|
236
236
|
narrow: ["1", "2", "3", "4"],
|
|
237
237
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
238
238
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
@@ -356,11 +356,11 @@ const Kr = {
|
|
|
356
356
|
}, Xr = {
|
|
357
357
|
ordinalNumber: Qr,
|
|
358
358
|
era: de({
|
|
359
|
-
values:
|
|
359
|
+
values: qr,
|
|
360
360
|
defaultWidth: "wide"
|
|
361
361
|
}),
|
|
362
362
|
quarter: de({
|
|
363
|
-
values:
|
|
363
|
+
values: Kr,
|
|
364
364
|
defaultWidth: "wide",
|
|
365
365
|
argumentCallback: (e) => e - 1
|
|
366
366
|
}),
|
|
@@ -538,16 +538,16 @@ const Zr = /^(\d+)(th|st|nd|rd)?/i, eo = /\d+/i, to = {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
function ho(e) {
|
|
541
|
-
const t =
|
|
541
|
+
const t = q(e);
|
|
542
542
|
return Or(t, Mr(t)) + 1;
|
|
543
543
|
}
|
|
544
544
|
function po(e) {
|
|
545
|
-
const t =
|
|
545
|
+
const t = q(e), n = +we(t) - +_r(t);
|
|
546
546
|
return Math.round(n / yt) + 1;
|
|
547
547
|
}
|
|
548
548
|
function Et(e, t) {
|
|
549
549
|
var f, u, m, h;
|
|
550
|
-
const n =
|
|
550
|
+
const n = q(e), r = n.getFullYear(), o = ke(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = X(e, 0);
|
|
551
551
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
552
552
|
const c = he(i, t), l = X(e, 0);
|
|
553
553
|
l.setFullYear(r, 0, a), l.setHours(0, 0, 0, 0);
|
|
@@ -560,7 +560,7 @@ function go(e, t) {
|
|
|
560
560
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), he(a, t);
|
|
561
561
|
}
|
|
562
562
|
function bo(e, t) {
|
|
563
|
-
const n =
|
|
563
|
+
const n = q(e), r = +he(n, t) - +go(n, t);
|
|
564
564
|
return Math.round(r / yt) + 1;
|
|
565
565
|
}
|
|
566
566
|
function T(e, t) {
|
|
@@ -1196,7 +1196,7 @@ function No(e, t, n) {
|
|
|
1196
1196
|
const Eo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Oo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, _o = /^'([^]*?)'?$/, To = /''/g, Do = /[a-zA-Z]/;
|
|
1197
1197
|
function _t(e, t, n) {
|
|
1198
1198
|
var f, u, m, h, p, g, x, v;
|
|
1199
|
-
const r = ke(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? mo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((v = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : v.weekStartsOn) ?? 0, c =
|
|
1199
|
+
const r = ke(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? mo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((v = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : v.weekStartsOn) ?? 0, c = q(e);
|
|
1200
1200
|
if (!Sr(c))
|
|
1201
1201
|
throw new RangeError("Invalid time value");
|
|
1202
1202
|
let l = t.match(Oo).map((w) => {
|
|
@@ -1296,9 +1296,9 @@ const fi = ({ month: e, onChangeMonth: t, locale: n }) => {
|
|
|
1296
1296
|
t,
|
|
1297
1297
|
r
|
|
1298
1298
|
] }) : null;
|
|
1299
|
-
},
|
|
1300
|
-
widget:
|
|
1301
|
-
}, it = ({ onAdd: e }) => /* @__PURE__ */ s.jsx("div", { className: C("luminus-empty-widget",
|
|
1299
|
+
}, qo = "_widget_1sdw8_1", Ko = {
|
|
1300
|
+
widget: qo
|
|
1301
|
+
}, it = ({ onAdd: e }) => /* @__PURE__ */ s.jsx("div", { className: C("luminus-empty-widget", Ko.widget), children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => e(0), children: /* @__PURE__ */ s.jsx(Un, {}) }) }), Bo = () => {
|
|
1302
1302
|
const [e, t] = R({
|
|
1303
1303
|
widgets: []
|
|
1304
1304
|
});
|
|
@@ -1742,7 +1742,7 @@ function Rt(e = {}) {
|
|
|
1742
1742
|
const Ca = {
|
|
1743
1743
|
usePopper: !0
|
|
1744
1744
|
};
|
|
1745
|
-
function
|
|
1745
|
+
function qe(e) {
|
|
1746
1746
|
let {
|
|
1747
1747
|
children: t
|
|
1748
1748
|
} = e, n = ya(e, va);
|
|
@@ -1751,8 +1751,8 @@ function Ke(e) {
|
|
|
1751
1751
|
children: t(r, o)
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
|
-
|
|
1755
|
-
|
|
1754
|
+
qe.displayName = "DropdownMenu";
|
|
1755
|
+
qe.defaultProps = Ca;
|
|
1756
1756
|
const ve = {
|
|
1757
1757
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1758
1758
|
current: 0
|
|
@@ -1803,7 +1803,7 @@ const Yt = (e) => {
|
|
|
1803
1803
|
return ((t = e.getAttribute("role")) == null ? void 0 : t.toLowerCase()) === "menu";
|
|
1804
1804
|
}, ut = () => {
|
|
1805
1805
|
};
|
|
1806
|
-
function
|
|
1806
|
+
function qt() {
|
|
1807
1807
|
const e = Lt(), {
|
|
1808
1808
|
show: t = !1,
|
|
1809
1809
|
toggle: n = ut,
|
|
@@ -1822,18 +1822,18 @@ function Kt() {
|
|
|
1822
1822
|
toggle: n
|
|
1823
1823
|
}];
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Kt({
|
|
1826
1826
|
children: e
|
|
1827
1827
|
}) {
|
|
1828
|
-
const [t, n] =
|
|
1828
|
+
const [t, n] = qt();
|
|
1829
1829
|
return /* @__PURE__ */ s.jsx(s.Fragment, {
|
|
1830
1830
|
children: e(t, n)
|
|
1831
1831
|
});
|
|
1832
1832
|
}
|
|
1833
|
-
|
|
1833
|
+
Kt.displayName = "DropdownToggle";
|
|
1834
1834
|
const Ma = /* @__PURE__ */ $.createContext(null), ae = (e, t = null) => e != null ? String(e) : t || null, U = Ma, Bt = /* @__PURE__ */ $.createContext(null);
|
|
1835
1835
|
Bt.displayName = "NavContext";
|
|
1836
|
-
const
|
|
1836
|
+
const Ke = Bt, Ia = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1837
1837
|
function Pa(e, t) {
|
|
1838
1838
|
if (e == null)
|
|
1839
1839
|
return {};
|
|
@@ -1849,7 +1849,7 @@ function Ht({
|
|
|
1849
1849
|
disabled: r,
|
|
1850
1850
|
onClick: o
|
|
1851
1851
|
}) {
|
|
1852
|
-
const a = E(U), i = E(
|
|
1852
|
+
const a = E(U), i = E(Ke), {
|
|
1853
1853
|
activeKey: c
|
|
1854
1854
|
} = i || {}, l = ae(e, t), d = n == null && e != null ? ae(c) === l : n;
|
|
1855
1855
|
return [{
|
|
@@ -1985,8 +1985,8 @@ function ge({
|
|
|
1985
1985
|
});
|
|
1986
1986
|
}
|
|
1987
1987
|
ge.displayName = "Dropdown";
|
|
1988
|
-
ge.Menu =
|
|
1989
|
-
ge.Toggle =
|
|
1988
|
+
ge.Menu = qe;
|
|
1989
|
+
ge.Toggle = Kt;
|
|
1990
1990
|
ge.Item = Gt;
|
|
1991
1991
|
const Vt = /* @__PURE__ */ $.createContext({});
|
|
1992
1992
|
Vt.displayName = "DropdownContext";
|
|
@@ -2146,7 +2146,7 @@ const La = on, an = /* @__PURE__ */ $.forwardRef(({
|
|
|
2146
2146
|
}, i) => {
|
|
2147
2147
|
const c = S(e, "dropdown-toggle"), l = E(Ne);
|
|
2148
2148
|
r !== void 0 && (a.bsPrefix = r);
|
|
2149
|
-
const [d] =
|
|
2149
|
+
const [d] = qt();
|
|
2150
2150
|
return d.ref = $e(d.ref, nn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
2151
2151
|
className: C(n, c, t && `${c}-split`, (l == null ? void 0 : l.show) && "show"),
|
|
2152
2152
|
...d,
|
|
@@ -2211,7 +2211,7 @@ const ye = Object.assign(sn, {
|
|
|
2211
2211
|
ItemText: Aa,
|
|
2212
2212
|
Divider: Fa,
|
|
2213
2213
|
Header: Wa
|
|
2214
|
-
}),
|
|
2214
|
+
}), qa = {
|
|
2215
2215
|
/**
|
|
2216
2216
|
* Specify whether the feedback is for valid or invalid fields
|
|
2217
2217
|
*
|
|
@@ -2236,8 +2236,8 @@ const ye = Object.assign(sn, {
|
|
|
2236
2236
|
})
|
|
2237
2237
|
);
|
|
2238
2238
|
He.displayName = "Feedback";
|
|
2239
|
-
He.propTypes =
|
|
2240
|
-
const cn = He,
|
|
2239
|
+
He.propTypes = qa;
|
|
2240
|
+
const cn = He, Ka = /* @__PURE__ */ $.createContext({}), z = Ka, ln = /* @__PURE__ */ $.forwardRef(({
|
|
2241
2241
|
id: e,
|
|
2242
2242
|
bsPrefix: t,
|
|
2243
2243
|
className: n,
|
|
@@ -2540,7 +2540,7 @@ const Cn = jn, Ua = {
|
|
|
2540
2540
|
}));
|
|
2541
2541
|
Ge.displayName = "Form";
|
|
2542
2542
|
Ge.propTypes = Ua;
|
|
2543
|
-
const
|
|
2543
|
+
const K = Object.assign(Ge, {
|
|
2544
2544
|
Group: gn,
|
|
2545
2545
|
Control: mn,
|
|
2546
2546
|
Floating: Ba,
|
|
@@ -2614,7 +2614,7 @@ function Nn({
|
|
|
2614
2614
|
role: o,
|
|
2615
2615
|
disabled: a
|
|
2616
2616
|
}) {
|
|
2617
|
-
const i = E(U), c = E(
|
|
2617
|
+
const i = E(U), c = E(Ke), l = E(ue);
|
|
2618
2618
|
let d = n;
|
|
2619
2619
|
const f = {
|
|
2620
2620
|
role: o
|
|
@@ -2709,7 +2709,7 @@ const ft = () => {
|
|
|
2709
2709
|
const w = $e(t, p);
|
|
2710
2710
|
return /* @__PURE__ */ s.jsx(U.Provider, {
|
|
2711
2711
|
value: x,
|
|
2712
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2712
|
+
children: /* @__PURE__ */ s.jsx(Ke.Provider, {
|
|
2713
2713
|
value: {
|
|
2714
2714
|
role: a,
|
|
2715
2715
|
// used by NavLink to determine it's role
|
|
@@ -3028,7 +3028,7 @@ const fs = An, Ln = /* @__PURE__ */ $.forwardRef(({
|
|
|
3028
3028
|
...r
|
|
3029
3029
|
})));
|
|
3030
3030
|
Ln.displayName = "TabContent";
|
|
3031
|
-
const Yn = Ln,
|
|
3031
|
+
const Yn = Ln, qn = /* @__PURE__ */ $.forwardRef(({
|
|
3032
3032
|
bsPrefix: e,
|
|
3033
3033
|
transition: t,
|
|
3034
3034
|
...n
|
|
@@ -3076,8 +3076,8 @@ const Yn = Ln, Kn = /* @__PURE__ */ $.forwardRef(({
|
|
|
3076
3076
|
})
|
|
3077
3077
|
});
|
|
3078
3078
|
});
|
|
3079
|
-
|
|
3080
|
-
const
|
|
3079
|
+
qn.displayName = "TabPane";
|
|
3080
|
+
const Kn = qn, ms = {
|
|
3081
3081
|
eventKey: Y.oneOfType([Y.string, Y.number]),
|
|
3082
3082
|
/**
|
|
3083
3083
|
* Content for the tab title.
|
|
@@ -3102,7 +3102,7 @@ Bn.propTypes = ms;
|
|
|
3102
3102
|
const hs = Object.assign(Bn, {
|
|
3103
3103
|
Container: fs,
|
|
3104
3104
|
Content: Yn,
|
|
3105
|
-
Pane:
|
|
3105
|
+
Pane: Kn
|
|
3106
3106
|
});
|
|
3107
3107
|
function ps(e) {
|
|
3108
3108
|
let t;
|
|
@@ -3167,7 +3167,7 @@ const Hn = (e) => {
|
|
|
3167
3167
|
const u = {
|
|
3168
3168
|
...f.props
|
|
3169
3169
|
};
|
|
3170
|
-
return delete u.title, delete u.disabled, delete u.tabClassName, delete u.tabAttrs, /* @__PURE__ */ s.jsx(
|
|
3170
|
+
return delete u.title, delete u.disabled, delete u.tabClassName, delete u.tabAttrs, /* @__PURE__ */ s.jsx(Kn, {
|
|
3171
3171
|
...u
|
|
3172
3172
|
});
|
|
3173
3173
|
})
|
|
@@ -3194,8 +3194,8 @@ const bs = Hn, xs = "_badge_nhser_1", ws = "_sm_nhser_1", vs = "_md_nhser_4", ys
|
|
|
3194
3194
|
/* @__PURE__ */ s.jsx(aa, { in: r, children: /* @__PURE__ */ s.jsx("div", { children: t }) }),
|
|
3195
3195
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${r ? "mt-3" : ""}` })
|
|
3196
3196
|
] });
|
|
3197
|
-
}, $s = "_floating-
|
|
3198
|
-
"floating-label": "_floating-
|
|
3197
|
+
}, $s = "_floating-label_1stxq_1", ks = {
|
|
3198
|
+
"floating-label": "_floating-label_1stxq_1",
|
|
3199
3199
|
floatingLabel: $s
|
|
3200
3200
|
}, te = ({ withoutLabel: e, label: t, hidden: n, children: r, className: o }) => e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ s.jsx(Cn, { label: t, hidden: n ?? !1, className: C(`luminus-floating-label ${o ?? ""}`, ks.floatingLabel), children: r }), Ns = "_feedback_12jrk_1", Es = "_for-floating_12jrk_6", Os = "_feedback-spacer_12jrk_16", Me = {
|
|
3201
3201
|
feedback: Ns,
|
|
@@ -3313,7 +3313,7 @@ const Ms = "_dropdown_gxnf9_1", Is = "_open_gxnf9_10", Ps = "_selected-button_gx
|
|
|
3313
3313
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", children: c.clearSelection }),
|
|
3314
3314
|
/* @__PURE__ */ s.jsx(re, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(wt, {}) })
|
|
3315
3315
|
] }),
|
|
3316
|
-
/* @__PURE__ */ s.jsx("div", { className: C("search-input-container border-bottom", Q.searchInputContainer), children: /* @__PURE__ */ s.jsx(
|
|
3316
|
+
/* @__PURE__ */ s.jsx("div", { className: C("search-input-container border-bottom", Q.searchInputContainer), children: /* @__PURE__ */ s.jsx(K.Control, { ref: f, type: "search", size: "sm", className: Q.searchInput, placeholder: c.searchPlaceholder, value: u, onChange: (p) => {
|
|
3317
3317
|
var g;
|
|
3318
3318
|
return m(((g = p.target) == null ? void 0 : g.value) ?? "");
|
|
3319
3319
|
} }) }),
|
|
@@ -3323,19 +3323,19 @@ const Ms = "_dropdown_gxnf9_1", Is = "_open_gxnf9_10", Ps = "_selected-button_gx
|
|
|
3323
3323
|
] }, p.id)) })
|
|
3324
3324
|
] });
|
|
3325
3325
|
};
|
|
3326
|
-
function
|
|
3326
|
+
function qs(e) {
|
|
3327
3327
|
return rr({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(e);
|
|
3328
3328
|
}
|
|
3329
|
-
const
|
|
3329
|
+
const Ks = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_input_1512b_1", be = {
|
|
3330
3330
|
"input-group": "_input-group_1512b_1",
|
|
3331
|
-
inputGroup:
|
|
3331
|
+
inputGroup: Ks,
|
|
3332
3332
|
"input-group-text": "_input-group-text_1512b_5",
|
|
3333
3333
|
inputGroupText: Bs,
|
|
3334
3334
|
input: Hs
|
|
3335
3335
|
}, bi = () => /* @__PURE__ */ s.jsxs(Se, { className: be.inputGroup, children: [
|
|
3336
3336
|
/* @__PURE__ */ s.jsx(Se.Text, { className: C("p-1", be.inputGroupText), children: /* @__PURE__ */ s.jsx(Tt, { icon: /* @__PURE__ */ s.jsx(s.Fragment, {}), className: "h-100", children: "Vše" }) }),
|
|
3337
|
-
/* @__PURE__ */ s.jsx(
|
|
3338
|
-
/* @__PURE__ */ s.jsx(Se.Text, { className: C("py-1 px-2 text-primary", be.inputGroupText), children: /* @__PURE__ */ s.jsx(
|
|
3337
|
+
/* @__PURE__ */ s.jsx(K.Control, { placeholder: "Hledat", type: "text", size: "sm", className: C("luminus-app-search-input", be.input) }),
|
|
3338
|
+
/* @__PURE__ */ s.jsx(Se.Text, { className: C("py-1 px-2 text-primary", be.inputGroupText), children: /* @__PURE__ */ s.jsx(qs, {}) })
|
|
3339
3339
|
] }), xi = ({ heading: e, content: t, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx($t, { placement: n, overlay: /* @__PURE__ */ s.jsxs(_e, { className: "luminus-tooltip", children: [
|
|
3340
3340
|
/* @__PURE__ */ s.jsx(_e.Header, { as: "h3", children: e }),
|
|
3341
3341
|
/* @__PURE__ */ s.jsx(_e.Body, { children: t })
|
|
@@ -3360,7 +3360,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3360
3360
|
height: n ?? void 0,
|
|
3361
3361
|
width: n ?? void 0
|
|
3362
3362
|
}, children: /* @__PURE__ */ s.jsx("div", { children: `${e.split(" ")[0][0]}${e.split(" ")[1][0]}` }) }) });
|
|
3363
|
-
}, wi = ({ label: e, value: t, onChange: n, hidden: r, disabled: o, className: a, type: i }) => /* @__PURE__ */ s.jsx(
|
|
3363
|
+
}, wi = ({ label: e, value: t, onChange: n, hidden: r, disabled: o, className: a, type: i }) => /* @__PURE__ */ s.jsx(K.Check, { id: `check-${e}`, type: i ?? "checkbox", label: e ?? "", checked: t, onChange: (c) => {
|
|
3364
3364
|
var l;
|
|
3365
3365
|
n && n(((l = c.target) == null ? void 0 : l.checked) ?? !1);
|
|
3366
3366
|
}, className: a ?? "", hidden: r ?? !1, disabled: o ?? !1 }), vi = ({ type: e, value: t, onChange: n, label: r, withoutLabel: o, placeholder: a, size: i, hidden: c, disabled: l, showClearIcon: d, clearValue: f, className: u }) => {
|
|
@@ -3371,7 +3371,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3371
3371
|
n(m ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
|
|
3372
3372
|
}, [f, m, n]);
|
|
3373
3373
|
return /* @__PURE__ */ s.jsxs(te, { withoutLabel: o ?? !1, label: r ?? "", hidden: c, children: [
|
|
3374
|
-
/* @__PURE__ */ s.jsx(
|
|
3374
|
+
/* @__PURE__ */ s.jsx(K.Control, { type: e, placeholder: a ?? r, size: i, value: t ?? "", onChange: (p) => {
|
|
3375
3375
|
var x;
|
|
3376
3376
|
if (!n)
|
|
3377
3377
|
return;
|
|
@@ -3388,7 +3388,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3388
3388
|
n(a ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
|
|
3389
3389
|
}, [f, a, n]);
|
|
3390
3390
|
return /* @__PURE__ */ s.jsxs(te, { withoutLabel: o ?? !1, label: r ?? "", hidden: c, children: [
|
|
3391
|
-
/* @__PURE__ */ s.jsxs(
|
|
3391
|
+
/* @__PURE__ */ s.jsxs(K.Select, { size: i, value: e ?? "", onChange: (p) => {
|
|
3392
3392
|
var x;
|
|
3393
3393
|
if (!n)
|
|
3394
3394
|
return;
|
|
@@ -3409,7 +3409,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3409
3409
|
}, [t]), P(() => {
|
|
3410
3410
|
c && c(h);
|
|
3411
3411
|
}, [h, c]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(te, { withoutLabel: d ?? !1, label: l ?? "", hidden: u, className: g ? "shadow" : "", children: [
|
|
3412
|
-
/* @__PURE__ */ s.jsxs(
|
|
3412
|
+
/* @__PURE__ */ s.jsxs(K.Select, { size: f, value: (h == null ? void 0 : h.id) ?? "", onChange: (w) => p({
|
|
3413
3413
|
id: i ? Number(w.target.value) ?? null : w.target.value,
|
|
3414
3414
|
name: ""
|
|
3415
3415
|
}), onMouseDown: (w) => {
|
|
@@ -3434,7 +3434,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3434
3434
|
h !== void 0 && (h = h[p]);
|
|
3435
3435
|
}), u(h);
|
|
3436
3436
|
}, [l, e]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3437
|
-
/* @__PURE__ */ s.jsx(
|
|
3437
|
+
/* @__PURE__ */ s.jsx(K.Check, { id: `check-${e}`, type: r ?? "checkbox", label: `${t}${o ? " *" : ""}`, ...c(e, {
|
|
3438
3438
|
onChange: () => {
|
|
3439
3439
|
n && n.forEach((m) => d(m, null));
|
|
3440
3440
|
}
|
|
@@ -3452,7 +3452,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3452
3452
|
}, [c, e]), P(() => {
|
|
3453
3453
|
d(e, l(e));
|
|
3454
3454
|
}, [h, e, l, d]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3455
|
-
h.map((p) => /* @__PURE__ */ s.jsx(
|
|
3455
|
+
h.map((p) => /* @__PURE__ */ s.jsx(K.Check, { id: `radio-${p.id}`, label: `${p.name}${r ? " *" : ""}`, type: "radio", value: p.id ?? "", checked: f(e) === p.id, ...i(e, {
|
|
3456
3456
|
onChange: () => {
|
|
3457
3457
|
n && n.forEach((g) => d(g, null));
|
|
3458
3458
|
}
|
|
@@ -3473,7 +3473,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3473
3473
|
}, [h, e]), P(() => {
|
|
3474
3474
|
g(e, p(e));
|
|
3475
3475
|
}, [b, e, p, g]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(te, { label: `${t}${d ? " *" : ""}`, hidden: f, withoutLabel: !1, children: [
|
|
3476
|
-
/* @__PURE__ */ s.jsxs(
|
|
3476
|
+
/* @__PURE__ */ s.jsxs(K.Select, { size: a, ...m(e, {
|
|
3477
3477
|
setValueAs: (j) => o ? j ? parseInt(j, 10) : null : j == null || j === "" ? null : j,
|
|
3478
3478
|
onChange: () => {
|
|
3479
3479
|
n && n.forEach((j) => g(j, null));
|
|
@@ -3499,7 +3499,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3499
3499
|
return P(() => {
|
|
3500
3500
|
v();
|
|
3501
3501
|
}, [v]), /* @__PURE__ */ s.jsxs(te, { label: `${t}${i ? " *" : ""}`, hidden: c, withoutLabel: !1, children: [
|
|
3502
|
-
/* @__PURE__ */ s.jsx(
|
|
3502
|
+
/* @__PURE__ */ s.jsx(K.Control, { as: "textarea", size: r, ...f(e, {
|
|
3503
3503
|
onChange: () => {
|
|
3504
3504
|
n && n.forEach((w) => m(w, null));
|
|
3505
3505
|
}
|
|
@@ -3524,7 +3524,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3524
3524
|
return P(() => {
|
|
3525
3525
|
w();
|
|
3526
3526
|
}, [w]), /* @__PURE__ */ s.jsxs(te, { label: `${n}${l ? " *" : ""}`, hidden: d, withoutLabel: !1, children: [
|
|
3527
|
-
/* @__PURE__ */ s.jsx(
|
|
3527
|
+
/* @__PURE__ */ s.jsx(K.Control, { type: e, placeholder: r ?? n, size: o, ...u(t, {
|
|
3528
3528
|
setValueAs: (b) => e === "number" ? b ? parseInt(b, 10) : null : b == null || b === "" ? null : b,
|
|
3529
3529
|
onChange: () => {
|
|
3530
3530
|
a && a.forEach((b) => h(b, null));
|
|
@@ -3556,7 +3556,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_inpu
|
|
|
3556
3556
|
}, [A]), P(() => {
|
|
3557
3557
|
g.isSubmitted && D(!0);
|
|
3558
3558
|
}, [g]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(te, { label: `${t}${i ? " *" : ""}`, hidden: c, withoutLabel: !1, className: j ? "shadow" : "", children: [
|
|
3559
|
-
/* @__PURE__ */ s.jsxs(
|
|
3559
|
+
/* @__PURE__ */ s.jsxs(K.Select, { size: n, onMouseDown: (y) => {
|
|
3560
3560
|
y.currentTarget.focus(), y.preventDefault();
|
|
3561
3561
|
}, onClick: () => {
|
|
3562
3562
|
N(!0);
|
|
@@ -3659,7 +3659,7 @@ export {
|
|
|
3659
3659
|
yi as SelectInput,
|
|
3660
3660
|
Gn as SimplePicker,
|
|
3661
3661
|
Si as SimpleToggle,
|
|
3662
|
-
|
|
3662
|
+
Ki as SimpleTooltip,
|
|
3663
3663
|
Ri as Tab,
|
|
3664
3664
|
Wi as Tabs,
|
|
3665
3665
|
vi as TextInput,
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._toast_1s57i_1{color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;border:none!important;font-size:14px!important;padding:4px 24px 4px 8px!important;gap:4px!important}._toast_1s57i_1.luminus-toast-prompt{color:#000!important}._loading_14qfh_1{position:fixed;display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;gap:8px}._loading_14qfh_1 ._spinner-grow_14qfh_10{width:40px;height:40px}._loading_14qfh_1 ._spinner-grow_14qfh_10._second_14qfh_14{animation-delay:.1s}._loading_14qfh_1 ._spinner-grow_14qfh_10._third_14qfh_17{animation-delay:.2s}._h1_1unxw_1{font-size:22px;font-weight:400;margin:0;padding:0}._h3_1unxw_8{font-size:20px;font-weight:400;margin:0;padding:0}._h6_1unxw_15,._subtitle_1unxw_22{font-size:16px;font-weight:400;margin:0;padding:0}._body_1unxw_29{font-size:14px;font-weight:400;margin:0;padding:0}._body2_1unxw_36{font-size:13px;font-weight:400;margin:0;padding:0}._caption_1unxw_43{font-size:11px;font-weight:400;margin:0;padding:0}._side-menu-item_9ejxx_1{width:100%;position:relative}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5{position:relative;width:100%;display:flex;align-items:center;justify-content:center;padding:8px 16px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5._child_9ejxx_13{padding:4px 8px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5._child_9ejxx_13 ._text_9ejxx_16{margin-left:0}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._icon_9ejxx_19{display:flex;justify-content:center;align-items:center;font-size:24px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25{width:100%;display:flex;justify-content:end;align-items:center;font-size:20px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25 svg{transition:.2s ease}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25._collapsed_9ejxx_35 svg{rotate:180deg}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._text_9ejxx_16{font-size:16px;margin-left:24px}._side-menu-item_9ejxx_1._expanded_9ejxx_42 ._nav-button_9ejxx_5,._side-menu-item_9ejxx_1._expanded_9ejxx_42 ._nav-button_9ejxx_5 ._icon_9ejxx_19{justify-content:flex-start}._side-menu-item_9ejxx_1 ._children-container_9ejxx_48{position:absolute;display:none;max-height:0px;flex-direction:column;flex-wrap:wrap;gap:4px;padding:16px}._side-menu-item_9ejxx_1 ._children-container_9ejxx_48._visible_9ejxx_57{display:flex;left:100%;top:0;max-height:50vh}._side-menu_n1hvm_1{position:fixed;top:0;left:0;height:100%;background-color:#fff;transition:.3s ease;scrollbar-width:none}._side-menu_n1hvm_1::state(webkit-scrollbar){display:none}._side-menu_n1hvm_1 ._sidebar-header_n1hvm_13{display:flex;justify-content:center;align-items:center}._side-menu_n1hvm_1 ._side-menu-content_n1hvm_18{margin-top:64px;padding:0}._side-menu_n1hvm_1._expand_n1hvm_22 ._sidebar-header_n1hvm_13{padding:0 24px;justify-content:flex-start}._side-menu_n1hvm_1 ._divider_n1hvm_26{opacity:1}._top-bar_1lk80_1{padding:0 12px;border-left:16px solid transparent;display:flex;align-items:center;justify-content:space-between;grid-gap:24px;position:fixed;top:0;left:0;width:100%;transition:.3s ease}._top-bar_1lk80_1 ._top-bar-brand_1lk80_14{text-decoration:none;font-size:20px;margin-left:12px}._side-content-bar_17kwd_1{position:fixed;top:0;right:0;height:100%;background-color:#fff;overflow-x:hidden;scrollbar-width:none}._side-content-bar_17kwd_1::state(webkit-scrollbar){display:none}._full-screen-container_1rm4r_1{display:flex;flex-direction:column}.luminus-input-remove-icon{position:absolute;top:0;right:16px;height:100%;display:flex;align-items:center;justify-content:center}.luminus-input-remove-icon.inset{right:40px}.luminus-input-remove-icon .icon-button{padding:0;margin:0;font-size:16px;height:20px;width:20px;display:flex;align-items:center}.form-control,.form-control-plaintext,.form-select{box-shadow:none!important}._button_1wjon_1{display:inline-flex;align-items:center;justify-content:center;border-width:2px}._button_1wjon_1._filled_1wjon_7,._button_1wjon_1._filled_1wjon_7 *{color:#fff}._button_1wjon_1._sm_1wjon_13{font-size:14px;padding:4px 8px;gap:6px}._button_1wjon_1._md_1wjon_18{font-size:16px;padding:6px 12px;gap:8px}._button_1wjon_1._lg_1wjon_23{font-size:18px;padding:10px 16px;gap:12px;min-width:120px}._button_1wjon_1:hover,._button_1wjon_1:hover *{color:#fff}._submit-container_w6qi9_1{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;background-color:#ffffffe6}._spacer_w6qi9_14{height:75px}._button_6qbjz_1{display:flex;align-items:center;justify-content:center;border:none;font-size:12px;padding:5px 10px;gap:6px}._widget_1sdw8_1{height:320px;display:flex;justify-content:center;align-items:center}._dashboard_1ikl9_1 ._widgets-grid_1ikl9_1{display:grid;grid-template-columns:repeat(2,1fr);column-gap:16px;row-gap:16px}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7{position:relative;height:320px;width:100%}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7._full-width_1ikl9_12{grid-column:span 2}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7._widget-edit_1ikl9_15{border:2px dashed gray}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._remove-icon_1ikl9_18{z-index:2;position:absolute;right:-16px;top:-16px;background-color:#fff}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._full-width-icon_1ikl9_25{z-index:2;position:absolute;right:-16px;top:calc(50% - 15px);background-color:#fff}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._full-width-icon_1ikl9_25 svg{rotate:90deg}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._widget-edit-overlay_1ikl9_35{position:absolute;left:0;top:0;height:100%;width:100%;background-color:#80808080;opacity:.6}._badge_nhser_1._sm_nhser_1{padding:4px}._badge_nhser_1._md_nhser_4{padding:8px}._badge_nhser_1._lg_nhser_7{padding:10px}._collapse-icon_1ahhn_1{font-size:22px;rotate:90deg;transition:.2s ease}._collapse-icon_1ahhn_1._collapsed_1ahhn_6{rotate:-90deg}._floating-
|
|
1
|
+
._toast_1s57i_1{color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;border:none!important;font-size:14px!important;padding:4px 24px 4px 8px!important;gap:4px!important}._toast_1s57i_1.luminus-toast-prompt{color:#000!important}._loading_14qfh_1{position:fixed;display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;gap:8px}._loading_14qfh_1 ._spinner-grow_14qfh_10{width:40px;height:40px}._loading_14qfh_1 ._spinner-grow_14qfh_10._second_14qfh_14{animation-delay:.1s}._loading_14qfh_1 ._spinner-grow_14qfh_10._third_14qfh_17{animation-delay:.2s}._h1_1unxw_1{font-size:22px;font-weight:400;margin:0;padding:0}._h3_1unxw_8{font-size:20px;font-weight:400;margin:0;padding:0}._h6_1unxw_15,._subtitle_1unxw_22{font-size:16px;font-weight:400;margin:0;padding:0}._body_1unxw_29{font-size:14px;font-weight:400;margin:0;padding:0}._body2_1unxw_36{font-size:13px;font-weight:400;margin:0;padding:0}._caption_1unxw_43{font-size:11px;font-weight:400;margin:0;padding:0}._side-menu-item_9ejxx_1{width:100%;position:relative}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5{position:relative;width:100%;display:flex;align-items:center;justify-content:center;padding:8px 16px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5._child_9ejxx_13{padding:4px 8px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5._child_9ejxx_13 ._text_9ejxx_16{margin-left:0}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._icon_9ejxx_19{display:flex;justify-content:center;align-items:center;font-size:24px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25{width:100%;display:flex;justify-content:end;align-items:center;font-size:20px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25 svg{transition:.2s ease}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25._collapsed_9ejxx_35 svg{rotate:180deg}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._text_9ejxx_16{font-size:16px;margin-left:24px}._side-menu-item_9ejxx_1._expanded_9ejxx_42 ._nav-button_9ejxx_5,._side-menu-item_9ejxx_1._expanded_9ejxx_42 ._nav-button_9ejxx_5 ._icon_9ejxx_19{justify-content:flex-start}._side-menu-item_9ejxx_1 ._children-container_9ejxx_48{position:absolute;display:none;max-height:0px;flex-direction:column;flex-wrap:wrap;gap:4px;padding:16px}._side-menu-item_9ejxx_1 ._children-container_9ejxx_48._visible_9ejxx_57{display:flex;left:100%;top:0;max-height:50vh}._side-menu_n1hvm_1{position:fixed;top:0;left:0;height:100%;background-color:#fff;transition:.3s ease;scrollbar-width:none}._side-menu_n1hvm_1::state(webkit-scrollbar){display:none}._side-menu_n1hvm_1 ._sidebar-header_n1hvm_13{display:flex;justify-content:center;align-items:center}._side-menu_n1hvm_1 ._side-menu-content_n1hvm_18{margin-top:64px;padding:0}._side-menu_n1hvm_1._expand_n1hvm_22 ._sidebar-header_n1hvm_13{padding:0 24px;justify-content:flex-start}._side-menu_n1hvm_1 ._divider_n1hvm_26{opacity:1}._top-bar_1lk80_1{padding:0 12px;border-left:16px solid transparent;display:flex;align-items:center;justify-content:space-between;grid-gap:24px;position:fixed;top:0;left:0;width:100%;transition:.3s ease}._top-bar_1lk80_1 ._top-bar-brand_1lk80_14{text-decoration:none;font-size:20px;margin-left:12px}._side-content-bar_17kwd_1{position:fixed;top:0;right:0;height:100%;background-color:#fff;overflow-x:hidden;scrollbar-width:none}._side-content-bar_17kwd_1::state(webkit-scrollbar){display:none}._full-screen-container_1rm4r_1{display:flex;flex-direction:column}.luminus-input-remove-icon{position:absolute;top:0;right:16px;height:100%;display:flex;align-items:center;justify-content:center}.luminus-input-remove-icon.inset{right:40px}.luminus-input-remove-icon .icon-button{padding:0;margin:0;font-size:16px;height:20px;width:20px;display:flex;align-items:center}.form-control,.form-control-plaintext,.form-select{box-shadow:none!important}._button_1wjon_1{display:inline-flex;align-items:center;justify-content:center;border-width:2px}._button_1wjon_1._filled_1wjon_7,._button_1wjon_1._filled_1wjon_7 *{color:#fff}._button_1wjon_1._sm_1wjon_13{font-size:14px;padding:4px 8px;gap:6px}._button_1wjon_1._md_1wjon_18{font-size:16px;padding:6px 12px;gap:8px}._button_1wjon_1._lg_1wjon_23{font-size:18px;padding:10px 16px;gap:12px;min-width:120px}._button_1wjon_1:hover,._button_1wjon_1:hover *{color:#fff}._submit-container_w6qi9_1{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;background-color:#ffffffe6}._spacer_w6qi9_14{height:75px}._button_6qbjz_1{display:flex;align-items:center;justify-content:center;border:none;font-size:12px;padding:5px 10px;gap:6px}._widget_1sdw8_1{height:320px;display:flex;justify-content:center;align-items:center}._dashboard_1ikl9_1 ._widgets-grid_1ikl9_1{display:grid;grid-template-columns:repeat(2,1fr);column-gap:16px;row-gap:16px}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7{position:relative;height:320px;width:100%}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7._full-width_1ikl9_12{grid-column:span 2}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7._widget-edit_1ikl9_15{border:2px dashed gray}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._remove-icon_1ikl9_18{z-index:2;position:absolute;right:-16px;top:-16px;background-color:#fff}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._full-width-icon_1ikl9_25{z-index:2;position:absolute;right:-16px;top:calc(50% - 15px);background-color:#fff}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._full-width-icon_1ikl9_25 svg{rotate:90deg}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._widget-edit-overlay_1ikl9_35{position:absolute;left:0;top:0;height:100%;width:100%;background-color:#80808080;opacity:.6}._badge_nhser_1._sm_nhser_1{padding:4px}._badge_nhser_1._md_nhser_4{padding:8px}._badge_nhser_1._lg_nhser_7{padding:10px}._collapse-icon_1ahhn_1{font-size:22px;rotate:90deg;transition:.2s ease}._collapse-icon_1ahhn_1._collapsed_1ahhn_6{rotate:-90deg}._floating-label_1stxq_1{margin-top:4px}._floating-label_1stxq_1 input{padding:0rem .75rem!important}._floating-label_1stxq_1>.form-control,._floating-label_1stxq_1>.form-control-plaintext,._floating-label_1stxq_1>.form-select{height:calc(3rem + 2px);min-height:calc(3rem + 2px);max-height:calc(3rem + 2px);line-height:1;font-size:14px}._floating-label_1stxq_1>.form-control,._floating-label_1stxq_1>.form-control-plaintext{padding:0rem .75rem}._floating-label_1stxq_1>.form-select{padding:0rem 2rem 0rem .75rem}._floating-label_1stxq_1>label{font-size:14px;padding:0rem .25rem;height:1.5rem;position:absolute;left:.5rem;top:calc(50% - .75rem);transition:all .2s ease}._floating-label_1stxq_1>.form-control:focus~label,._floating-label_1stxq_1>.form-control:not(:placeholder-shown)~label,._floating-label_1stxq_1>.form-select~label{transform:none;height:1.25rem;padding:0rem .25rem;font-size:12px;opacity:1;top:-9px;background-color:#fff}._floating-label_1stxq_1>.form-control:focus~label:after,._floating-label_1stxq_1>.form-control:not(:placeholder-shown)~label:after,._floating-label_1stxq_1>.form-select~label:after{content:none!important}._feedback_12jrk_1{padding:0 4px;font-size:12px;display:block}._feedback_12jrk_1._for-floating_12jrk_6{position:absolute;background-color:#fff;top:calc(3rem - 8px);right:12px;width:auto;max-width:70%;margin:0}._feedback-spacer_12jrk_16{padding:0 12px;color:transparent;font-size:12px;width:auto;max-width:70%}._dropdown_gxnf9_1{overflow:hidden;position:absolute;display:none;width:100%;background-color:#fff;border-top-left-radius:0!important;border-top-right-radius:0!important}._dropdown_gxnf9_1._open_gxnf9_10{display:block}._dropdown_gxnf9_1 ._selected-button_gxnf9_13{width:100%;background-color:#d3d3d3;border:none;padding:.75rem;text-decoration:none}._dropdown_gxnf9_1 ._clear-button_gxnf9_20{width:100%;padding:.25rem .75rem;background-color:#fff;border:none}._dropdown_gxnf9_1 ._search-input-container_gxnf9_26{padding:.75rem}._dropdown_gxnf9_1 ._search-input-container_gxnf9_26 ._form-control_gxnf9_29{width:100%}._dropdown_gxnf9_1 ._loading-container_gxnf9_32{display:flex;align-items:center;justify-content:center;width:100%;padding:.75rem}._dropdown_gxnf9_1 ._items-container_gxnf9_39{max-height:20vh;overflow-y:auto}._dropdown_gxnf9_1 ._items-container_gxnf9_39 ._item_gxnf9_39{width:100%;padding:.75rem;background-color:#fff;border:none}._input-group_1512b_1{border:none;width:min(400px,25vw)}._input-group_1512b_1 ._input-group-text_1512b_5{border:none;background-color:#fff}._input-group_1512b_1 ._input_1512b_1{border:none}._avatar-icon_1axl6_1{height:36px;width:36px;display:flex;align-items:center;justify-content:center;border-radius:100%;color:#fff;font-size:16px}._item_qkqdk_1{display:flex;align-items:center;justify-content:flex-start;border:none;font-size:12px;padding:8px 14px;gap:8px}._item_qkqdk_1:after{content:none!important}._button_1mv5p_1{display:flex;align-items:center;justify-content:center;border:none;font-size:12px;padding:5px 10px;gap:6px}._button_1mv5p_1:after{content:none!important}._button_1mv5p_1:before{content:none!important}._dropdown_1lk66_1{padding:0;border:none;min-width:auto}._tabs_13chm_1{gap:4px;border:none!important}._tabs_13chm_1 .nav-link{font-size:16px;padding:12px}._tabs_13chm_1 .nav-link.active{background-color:#fff!important}._tabs_13chm_1 .nav-link:not(.active){border:none!important}._tabs_13chm_1~.tab-content{background-color:#fff;padding:1rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=r=>r==null?!0:!(typeof r=="object"||typeof r=="function"),i=r=>{n(r)||Object.keys(r).forEach(t=>{const e=r[t];if(n(e))return;const s=Object.keys(e);s.includes("id")&&s.length===1&&e.id===null?r[t]=null:i(e)})},u=r=>{var e;const t=(e=r.response)==null?void 0:e.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(s=>({name:s.name.split(".").map(o=>`${o.charAt(0).toLowerCase()}${o.slice(1)}`).join("."),errors:s.errors})):[]},l=(r,t)=>{u(t).forEach(s=>{r.setError(s.name,{message:s.errors,type:"server"},{shouldFocus:!0}),n(r.getValues(s.name))||r.setError(`${s.name}.id`,{message:s.errors,type:"server"},{shouldFocus:!0})})},c=r=>r.length<300?r:r.substring(0,300)+"...",a=r=>r<1024?`${r} bytes`:r>=1024&&r<1048576?`${(r/1024).toFixed(1)} KB`:`${(r/1048576).toFixed(1)} MB`;function m(r=" ",...t){return t.filter(e=>e!=null&&e.length>0).join(r)}exports.extractErrorsFromResponse=u;exports.fixNameIdNulls=i;exports.formatFileSize=a;exports.hookFormSetServerErrors=l;exports.isPrimitive=n;exports.joinStrings=m;exports.truncateText=c;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const n = (r) => r == null ? !0 : !(typeof r == "object" || typeof r == "function"), i = (r) => {
|
|
2
|
+
n(r) || Object.keys(r).forEach((t) => {
|
|
3
|
+
const e = r[t];
|
|
4
|
+
if (n(e))
|
|
5
|
+
return;
|
|
6
|
+
const s = Object.keys(e);
|
|
7
|
+
s.includes("id") && s.length === 1 && e.id === null ? r[t] = null : i(e);
|
|
8
|
+
});
|
|
9
|
+
}, u = (r) => {
|
|
10
|
+
var e;
|
|
11
|
+
const t = (e = r.response) == null ? void 0 : e.data;
|
|
12
|
+
return t && t.errorFields && t.errorFields.length > 0 ? t.errorFields.map((s) => ({
|
|
13
|
+
name: s.name.split(".").map((o) => `${o.charAt(0).toLowerCase()}${o.slice(1)}`).join("."),
|
|
14
|
+
errors: s.errors
|
|
15
|
+
})) : [];
|
|
16
|
+
}, l = (r, t) => {
|
|
17
|
+
u(t).forEach((s) => {
|
|
18
|
+
r.setError(s.name, { message: s.errors, type: "server" }, { shouldFocus: !0 }), n(r.getValues(s.name)) || r.setError(`${s.name}.id`, { message: s.errors, type: "server" }, { shouldFocus: !0 });
|
|
19
|
+
});
|
|
20
|
+
}, c = (r) => r.length < 300 ? r : r.substring(0, 300) + "...", d = (r) => r < 1024 ? `${r} bytes` : r >= 1024 && r < 1048576 ? `${(r / 1024).toFixed(1)} KB` : `${(r / 1048576).toFixed(1)} MB`;
|
|
21
|
+
function f(r = " ", ...t) {
|
|
22
|
+
return t.filter((e) => e != null && e.length > 0).join(r);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
i as a,
|
|
26
|
+
u as e,
|
|
27
|
+
d as f,
|
|
28
|
+
l as h,
|
|
29
|
+
n as i,
|
|
30
|
+
f as j,
|
|
31
|
+
c as t
|
|
32
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const C=require("react"),rr=require("./textUtils-
|
|
1
|
+
"use strict";const C=require("react"),rr=require("./textUtils-Bb6c2XYw.cjs");function pn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=pn(C);function nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qe={exports:{}},ce={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as N from "react";
|
|
2
2
|
import q, { createContext as De, useEffect as lt, useCallback as ne, useState as fn, useContext as or } from "react";
|
|
3
|
-
import { t as dn, e as pn } from "./textUtils-
|
|
3
|
+
import { t as dn, e as pn } from "./textUtils-Bd2QCbzF.js";
|
|
4
4
|
function hn(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const C=require("./useAxios-
|
|
1
|
+
"use strict";const C=require("./useAxios-Ce32mjz9.cjs"),f=require("react");let n;const m=()=>{const{show:e,text:r,showConfirm:s,hideConfirm:t}=f.useContext(C.ConfirmContext),o=()=>{t()};return{confirm:async c=>(s(c),new Promise(i=>{n=i})),onConfirm:()=>{o(),n(!0)},onCancel:()=>{o(),n(!1)},show:e,text:r}};exports.useConfirm=m;
|
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./textUtils-Bb6c2XYw.cjs"),d=require("./constants-CT2hnPeO.cjs");function g(t,e){const r=(e==null?void 0:e.additionalDigits)??2,n=S(t);let i;if(n.date){const s=x(n.date,r);i=U(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const a=i.getTime();let o=0,c;if(n.time&&(o=h(n.time),isNaN(o)))return new Date(NaN);if(n.timezone){if(c=w(n.timezone),isNaN(c))return new Date(NaN)}else{const s=new Date(a+o),l=new Date(0);return l.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),l.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),l}return new Date(a+o+c)}const m={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},p=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,T=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,I=/^([+-])(\d{2})(?::?(\d{2}))?$/;function S(t){const e={},r=t.split(m.dateTimeDelimiter);let n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],m.timeZoneDelimiter.test(e.date)&&(e.date=t.split(m.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){const i=m.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function x(t,e){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((n[1]||n[2]).length)}}function U(t,e){if(e===null)return new Date(NaN);const r=t.match(p);if(!r)return new Date(NaN);const n=!!r[4],i=f(r[1]),a=f(r[2])-1,o=f(r[3]),c=f(r[4]),s=f(r[5])-1;if(n)return O(e,c,s)?C(e,c,s):new Date(NaN);{const l=new Date(0);return!y(e,a,o)||!z(e,i)?new Date(NaN):(l.setUTCFullYear(e,a,Math.max(i,o)),l)}}function f(t){return t?parseInt(t):1}function h(t){const e=t.match(T);if(!e)return NaN;const r=D(e[1]),n=D(e[2]),i=D(e[3]);return Y(r,n,i)?r*d.millisecondsInHour+n*d.millisecondsInMinute+i*1e3:NaN}function D(t){return t&&parseFloat(t.replace(",","."))||0}function w(t){if(t==="Z")return 0;const e=t.match(I);if(!e)return 0;const r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return v(n,i)?r*(n*d.millisecondsInHour+i*d.millisecondsInMinute):NaN}function C(t,e,r){const n=new Date(0);n.setUTCFullYear(t,0,4);const i=n.getUTCDay()||7,a=(e-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}const F=[31,null,31,30,31,30,31,31,30,31,30,31];function N(t){return t%400===0||t%4===0&&t%100!==0}function y(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(F[e]||(N(t)?29:28))}function z(t,e){return e>=1&&e<=(N(t)?366:365)}function O(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Y(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function v(t,e){return e>=0&&e<=59}const M=t=>{const e=g(t);return!Number.isNaN(e.getTime())};exports.extractErrorsFromResponse=u.extractErrorsFromResponse;exports.fixNameIdNulls=u.fixNameIdNulls;exports.formatFileSize=u.formatFileSize;exports.hookFormSetServerErrors=u.hookFormSetServerErrors;exports.isPrimitive=u.isPrimitive;exports.joinStrings=u.joinStrings;exports.truncateText=u.truncateText;exports.isISODate=M;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as W, a as $, f as b, h as E, i as H, t as _ } from "./textUtils-
|
|
1
|
+
import { e as W, a as $, f as b, h as E, i as H, j, t as _ } from "./textUtils-Bd2QCbzF.js";
|
|
2
2
|
import { b as d, c as D } from "./constants-CzNy5yO3.js";
|
|
3
3
|
function p(t, e) {
|
|
4
4
|
const r = (e == null ? void 0 : e.additionalDigits) ?? 2, n = U(t);
|
|
@@ -134,5 +134,6 @@ export {
|
|
|
134
134
|
E as hookFormSetServerErrors,
|
|
135
135
|
R as isISODate,
|
|
136
136
|
H as isPrimitive,
|
|
137
|
+
j as joinStrings,
|
|
137
138
|
_ as truncateText
|
|
138
139
|
};
|