sera-components 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +117 -112
- package/dist/index.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@ var en = Object.defineProperty;
|
|
|
2
2
|
var tn = (e, o, t) => o in e ? en(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
3
|
var K = (e, o, t) => tn(e, typeof o != "symbol" ? o + "" : o, t);
|
|
4
4
|
import * as Ge from "react";
|
|
5
|
-
import nn, { createContext as
|
|
6
|
-
import { Paper as Z, Image as on, Text as j, Menu as te, Button as B, Container as rn, Alert as Xe, Stack as fe, Flex as G, Loader as _e, NavLink as
|
|
7
|
-
import { IconCheck as pn, IconInfoCircle as Je, IconChevronRight as hn, IconSearch as
|
|
5
|
+
import nn, { createContext as Ft, useContext as oe, useMemo as I, useState as L, useEffect as ye } from "react";
|
|
6
|
+
import { Paper as Z, Image as on, Text as j, Menu as te, Button as B, Container as rn, Alert as Xe, Stack as fe, Flex as G, Loader as _e, NavLink as ut, Checkbox as ce, Group as z, Input as q, useCombobox as jt, Combobox as D, Grid as T, InputBase as sn, PasswordInput as ln, CloseButton as an, Divider as un, Tooltip as It, Fieldset as dn, Table as $t, rem as le, Pagination as gn, MenuTarget as cn, MenuDropdown as fn, MenuItem as mn, Tabs as he } from "@mantine/core";
|
|
7
|
+
import { IconCheck as pn, IconInfoCircle as Je, IconChevronRight as hn, IconSearch as Pt, IconHelpOctagonFilled as Et, IconPlus as Sn, IconPencil as vn, IconReload as Cn, IconDatabaseImport as wn, IconDownload as Rn, IconSelector as xn } from "@tabler/icons-react";
|
|
8
8
|
import { observer as J } from "mobx-react-lite";
|
|
9
|
-
import { isObjectProperty as re, isDraftRecord as
|
|
9
|
+
import { isObjectProperty as re, isDraftRecord as Mt } from "sera-db";
|
|
10
10
|
import { IMaskInput as _n } from "react-imask";
|
|
11
11
|
var Se = { exports: {} }, ae = {};
|
|
12
12
|
/**
|
|
@@ -18,10 +18,10 @@ var Se = { exports: {} }, ae = {};
|
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
21
|
+
var dt;
|
|
22
22
|
function yn() {
|
|
23
|
-
if (
|
|
24
|
-
|
|
23
|
+
if (dt) return ae;
|
|
24
|
+
dt = 1;
|
|
25
25
|
var e = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
26
26
|
function t(n, r, i) {
|
|
27
27
|
var s = null;
|
|
@@ -50,9 +50,9 @@ var ue = {};
|
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
52
|
*/
|
|
53
|
-
var
|
|
53
|
+
var gt;
|
|
54
54
|
function Fn() {
|
|
55
|
-
return
|
|
55
|
+
return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
56
56
|
function e(p) {
|
|
57
57
|
if (p == null) return null;
|
|
58
58
|
if (typeof p == "function")
|
|
@@ -135,7 +135,7 @@ function Fn() {
|
|
|
135
135
|
return Error("react-stack-top-frame");
|
|
136
136
|
}
|
|
137
137
|
function s(p) {
|
|
138
|
-
if (
|
|
138
|
+
if (ot.call(p, "key")) {
|
|
139
139
|
var _ = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
140
140
|
if (_ && _.isReactWarning) return !1;
|
|
141
141
|
}
|
|
@@ -143,7 +143,7 @@ function Fn() {
|
|
|
143
143
|
}
|
|
144
144
|
function l(p, _) {
|
|
145
145
|
function $() {
|
|
146
|
-
|
|
146
|
+
rt || (rt = !0, console.error(
|
|
147
147
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
148
148
|
_
|
|
149
149
|
));
|
|
@@ -155,7 +155,7 @@ function Fn() {
|
|
|
155
155
|
}
|
|
156
156
|
function d() {
|
|
157
157
|
var p = e(this.type);
|
|
158
|
-
return
|
|
158
|
+
return it[p] || (it[p] = !0, console.error(
|
|
159
159
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
160
160
|
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
161
161
|
}
|
|
@@ -204,12 +204,12 @@ function Fn() {
|
|
|
204
204
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
205
205
|
);
|
|
206
206
|
else S(V);
|
|
207
|
-
if (
|
|
207
|
+
if (ot.call(_, "key")) {
|
|
208
208
|
V = e(p);
|
|
209
209
|
var ee = Object.keys(_).filter(function(Qt) {
|
|
210
210
|
return Qt !== "key";
|
|
211
211
|
});
|
|
212
|
-
M = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
212
|
+
M = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", at[V + M] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
213
213
|
`A props object containing a "key" prop is being spread into JSX:
|
|
214
214
|
let props = %s;
|
|
215
215
|
<%s {...props} />
|
|
@@ -220,7 +220,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
220
220
|
V,
|
|
221
221
|
ee,
|
|
222
222
|
V
|
|
223
|
-
),
|
|
223
|
+
), at[V + M] = !0);
|
|
224
224
|
}
|
|
225
225
|
if (V = null, $ !== void 0 && (t($), V = "" + $), s(_) && (t(_.key), V = "" + _.key), "key" in _) {
|
|
226
226
|
$ = {};
|
|
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
function S(p) {
|
|
245
245
|
typeof p == "object" && p !== null && p.$$typeof === u && p._store && (p._store.validated = 1);
|
|
246
246
|
}
|
|
247
|
-
var c = nn, u = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), pe = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), $e = Symbol.for("react.activity"), Pe = Symbol.for("react.client.reference"), Q = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
247
|
+
var c = nn, u = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), pe = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), $e = Symbol.for("react.activity"), Pe = Symbol.for("react.client.reference"), Q = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ot = Object.prototype.hasOwnProperty, Zt = Array.isArray, Ee = console.createTask ? console.createTask : function() {
|
|
248
248
|
return null;
|
|
249
249
|
};
|
|
250
250
|
c = {
|
|
@@ -252,10 +252,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
return p();
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
var
|
|
255
|
+
var rt, it = {}, st = c.react_stack_bottom_frame.bind(
|
|
256
256
|
c,
|
|
257
257
|
i
|
|
258
|
-
)(),
|
|
258
|
+
)(), lt = Ee(n(i)), at = {};
|
|
259
259
|
ue.Fragment = h, ue.jsx = function(p, _, $, M, U) {
|
|
260
260
|
var b = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
261
261
|
return f(
|
|
@@ -265,8 +265,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
!1,
|
|
266
266
|
M,
|
|
267
267
|
U,
|
|
268
|
-
b ? Error("react-stack-top-frame") :
|
|
269
|
-
b ? Ee(n(p)) :
|
|
268
|
+
b ? Error("react-stack-top-frame") : st,
|
|
269
|
+
b ? Ee(n(p)) : lt
|
|
270
270
|
);
|
|
271
271
|
}, ue.jsxs = function(p, _, $, M, U) {
|
|
272
272
|
var b = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
@@ -277,15 +277,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
277
277
|
!0,
|
|
278
278
|
M,
|
|
279
279
|
U,
|
|
280
|
-
b ? Error("react-stack-top-frame") :
|
|
281
|
-
b ? Ee(n(p)) :
|
|
280
|
+
b ? Error("react-stack-top-frame") : st,
|
|
281
|
+
b ? Ee(n(p)) : lt
|
|
282
282
|
);
|
|
283
283
|
};
|
|
284
284
|
})()), ue;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
286
|
+
var ct;
|
|
287
287
|
function jn() {
|
|
288
|
-
return
|
|
288
|
+
return ct || (ct = 1, process.env.NODE_ENV === "production" ? Se.exports = yn() : Se.exports = Fn()), Se.exports;
|
|
289
289
|
}
|
|
290
290
|
var a = jn();
|
|
291
291
|
const E = {
|
|
@@ -356,7 +356,7 @@ const E = {
|
|
|
356
356
|
style: (o) => ({ textShadow: o.shadows.xs }),
|
|
357
357
|
children: e.emojiFlag
|
|
358
358
|
}
|
|
359
|
-
), He = navigator.userAgent.includes("Windows") ? In : $n, me =
|
|
359
|
+
), He = navigator.userAgent.includes("Windows") ? In : $n, me = Ft(new Intl.Locale("en-US")), vr = J(
|
|
360
360
|
({
|
|
361
361
|
value: e,
|
|
362
362
|
children: o
|
|
@@ -447,7 +447,7 @@ const E = {
|
|
|
447
447
|
icon: /* @__PURE__ */ a.jsx(Je, { size: 12, stroke: 1.5 }),
|
|
448
448
|
children: e || "Sorry, the page you are looking for does not exist."
|
|
449
449
|
}
|
|
450
|
-
),
|
|
450
|
+
), Vt = ({ message: e }) => /* @__PURE__ */ a.jsx(j, { c: "red", size: "sm", children: e || "Not Found" }), xr = ({ tip: e }) => e === void 0 ? /* @__PURE__ */ a.jsx(G, { justify: "center", align: "center", children: /* @__PURE__ */ a.jsx(_e, { color: "blue", size: "md" }) }) : /* @__PURE__ */ a.jsxs(
|
|
451
451
|
G,
|
|
452
452
|
{
|
|
453
453
|
gap: "md",
|
|
@@ -507,16 +507,16 @@ class $r {
|
|
|
507
507
|
return this.items;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
class
|
|
510
|
+
class ft {
|
|
511
511
|
constructor() {
|
|
512
512
|
K(this, "children", /* @__PURE__ */ new Map());
|
|
513
513
|
K(this, "isEndOfWord", !1);
|
|
514
514
|
K(this, "value", "");
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
class
|
|
517
|
+
class At {
|
|
518
518
|
constructor() {
|
|
519
|
-
K(this, "root", new
|
|
519
|
+
K(this, "root", new ft());
|
|
520
520
|
}
|
|
521
521
|
/**
|
|
522
522
|
* Inserts a word into the trie structure.
|
|
@@ -528,7 +528,7 @@ class Vt {
|
|
|
528
528
|
let t = this.root;
|
|
529
529
|
for (const n of o) {
|
|
530
530
|
let r = t.children.get(n);
|
|
531
|
-
r === void 0 && (r = new
|
|
531
|
+
r === void 0 && (r = new ft(), t.children.set(n, r)), t = r;
|
|
532
532
|
}
|
|
533
533
|
t.isEndOfWord = !0, t.value = o;
|
|
534
534
|
}
|
|
@@ -616,7 +616,7 @@ const Pr = (e) => {
|
|
|
616
616
|
},
|
|
617
617
|
children: [
|
|
618
618
|
/* @__PURE__ */ a.jsx(
|
|
619
|
-
|
|
619
|
+
ut,
|
|
620
620
|
{
|
|
621
621
|
active: i === u.key,
|
|
622
622
|
label: u.label,
|
|
@@ -652,7 +652,7 @@ const Pr = (e) => {
|
|
|
652
652
|
},
|
|
653
653
|
`container-${u.key}`
|
|
654
654
|
) : /* @__PURE__ */ a.jsx(
|
|
655
|
-
|
|
655
|
+
ut,
|
|
656
656
|
{
|
|
657
657
|
active: i === u.key,
|
|
658
658
|
href: (x = u.route) == null ? void 0 : x.path.getURL(),
|
|
@@ -677,7 +677,7 @@ const Pr = (e) => {
|
|
|
677
677
|
}, [l, i, n, o, e.navigate]);
|
|
678
678
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: S });
|
|
679
679
|
};
|
|
680
|
-
class An extends
|
|
680
|
+
class An extends At {
|
|
681
681
|
constructor() {
|
|
682
682
|
super(...arguments);
|
|
683
683
|
K(this, "pathToKey", /* @__PURE__ */ new Map());
|
|
@@ -766,7 +766,11 @@ const Dn = ({ value: e }) => {
|
|
|
766
766
|
"Invalid usage of EnumDisplay. Expect a property of type enum"
|
|
767
767
|
);
|
|
768
768
|
return /* @__PURE__ */ a.jsx(j, { size: "sm", children: /* @__PURE__ */ a.jsx(N, { value: n.enumType.label[t] }) });
|
|
769
|
-
},
|
|
769
|
+
}, Qe = Ft({ link: () => null, entityRoutes: {} }), Mr = ({
|
|
770
|
+
link: e,
|
|
771
|
+
entityRoutes: o,
|
|
772
|
+
children: t
|
|
773
|
+
}) => /* @__PURE__ */ a.jsx(Qe.Provider, { value: { link: e, entityRoutes: o }, children: t });
|
|
770
774
|
function Dt(e, o, t, n) {
|
|
771
775
|
const r = e.getByName(o.targetClass), i = n[o.targetClass];
|
|
772
776
|
ye(() => {
|
|
@@ -783,13 +787,13 @@ const Fe = J(
|
|
|
783
787
|
property: o,
|
|
784
788
|
value: t
|
|
785
789
|
}) => {
|
|
786
|
-
const { link: n, entityRoutes: r } = oe(
|
|
790
|
+
const { link: n, entityRoutes: r } = oe(Qe), i = I(() => [t], [t]), [s, l] = Dt(
|
|
787
791
|
e,
|
|
788
792
|
o,
|
|
789
793
|
i,
|
|
790
794
|
r
|
|
791
795
|
), d = s[t];
|
|
792
|
-
return d === void 0 ? /* @__PURE__ */ a.jsx(j, { size: "sm", children: t }) : d === null ? /* @__PURE__ */ a.jsx(
|
|
796
|
+
return d === void 0 ? /* @__PURE__ */ a.jsx(j, { size: "sm", children: t }) : d === null ? /* @__PURE__ */ a.jsx(Vt, {}) : l === void 0 ? /* @__PURE__ */ a.jsx(j, { size: "sm", children: d.name }) : /* @__PURE__ */ a.jsx(n, { path: l, openInNewPage: !1, urlArgs: { id: d.id }, children: d.name });
|
|
793
797
|
}
|
|
794
798
|
), je = J(
|
|
795
799
|
({
|
|
@@ -797,7 +801,7 @@ const Fe = J(
|
|
|
797
801
|
property: o,
|
|
798
802
|
value: t
|
|
799
803
|
}) => {
|
|
800
|
-
const { link: n, entityRoutes: r } = oe(
|
|
804
|
+
const { link: n, entityRoutes: r } = oe(Qe), [i, s] = Dt(
|
|
801
805
|
e,
|
|
802
806
|
o,
|
|
803
807
|
t,
|
|
@@ -805,7 +809,7 @@ const Fe = J(
|
|
|
805
809
|
);
|
|
806
810
|
return /* @__PURE__ */ a.jsx(z, { gap: "xs", children: t.map((l, d) => {
|
|
807
811
|
const g = i[l];
|
|
808
|
-
return g === void 0 ? /* @__PURE__ */ a.jsx(j, { size: "sm", children: t }, l) : g === null ? /* @__PURE__ */ a.jsx(
|
|
812
|
+
return g === void 0 ? /* @__PURE__ */ a.jsx(j, { size: "sm", children: t }, l) : g === null ? /* @__PURE__ */ a.jsx(Vt, {}, l) : s === void 0 ? /* @__PURE__ */ a.jsx(j, { size: "sm", children: g.name }, d) : /* @__PURE__ */ a.jsx(
|
|
809
813
|
n,
|
|
810
814
|
{
|
|
811
815
|
path: s,
|
|
@@ -837,7 +841,7 @@ const Fe = J(
|
|
|
837
841
|
t(r);
|
|
838
842
|
}
|
|
839
843
|
}
|
|
840
|
-
),
|
|
844
|
+
), mt = ({
|
|
841
845
|
property: e,
|
|
842
846
|
value: o,
|
|
843
847
|
onChange: t
|
|
@@ -928,7 +932,7 @@ const Fe = J(
|
|
|
928
932
|
if (n.match === "")
|
|
929
933
|
throw new Error(`No valid country code found for phone number: ${e}`);
|
|
930
934
|
return n;
|
|
931
|
-
},
|
|
935
|
+
}, pt = ({ value: e }) => {
|
|
932
936
|
const o = ne[e];
|
|
933
937
|
if (o !== void 0)
|
|
934
938
|
return /* @__PURE__ */ a.jsxs(z, { gap: "sm", wrap: "nowrap", align: "center", children: [
|
|
@@ -945,7 +949,7 @@ const Fe = J(
|
|
|
945
949
|
id: n
|
|
946
950
|
}) => {
|
|
947
951
|
const [r, i] = L(""), [s, l] = L(!1), [d, g] = L(""), [f, S] = L(!1), c = I(() => {
|
|
948
|
-
const v = new
|
|
952
|
+
const v = new At();
|
|
949
953
|
return Object.keys(ne).forEach((F) => {
|
|
950
954
|
v.insert(F);
|
|
951
955
|
}), v;
|
|
@@ -963,7 +967,7 @@ const Fe = J(
|
|
|
963
967
|
rawInput: e
|
|
964
968
|
};
|
|
965
969
|
}
|
|
966
|
-
}, [e]), m =
|
|
970
|
+
}, [e]), m = jt({
|
|
967
971
|
onDropdownClose: () => {
|
|
968
972
|
m.resetSelectedOption(), i("");
|
|
969
973
|
},
|
|
@@ -973,7 +977,7 @@ const Fe = J(
|
|
|
973
977
|
}), h = I(() => Object.keys(ne), [ne]), x = (v, F) => {
|
|
974
978
|
const P = v.replace(/[^\d]/g, "");
|
|
975
979
|
return P.length === 0 ? `+${F}` : P.startsWith("0") ? (l(!0), `+${F}${P}`) : (l(!1), `+${F}${P}`);
|
|
976
|
-
}, C = I(() => h.filter((v) => ne[v].name.toLowerCase().includes(r.toLowerCase()) || v.includes(r)), [r, h]), y = I(() => C.map((v, F) => /* @__PURE__ */ a.jsx(D.Option, { value: v, children: /* @__PURE__ */ a.jsx(
|
|
980
|
+
}, C = I(() => h.filter((v) => ne[v].name.toLowerCase().includes(r.toLowerCase()) || v.includes(r)), [r, h]), y = I(() => C.map((v, F) => /* @__PURE__ */ a.jsx(D.Option, { value: v, children: /* @__PURE__ */ a.jsx(pt, { value: v }) }, F)), [C]);
|
|
977
981
|
return /* @__PURE__ */ a.jsxs("div", { children: [
|
|
978
982
|
/* @__PURE__ */ a.jsx(T, { gutter: "xs", children: /* @__PURE__ */ a.jsx(T.Col, { children: /* @__PURE__ */ a.jsxs(z, { gap: 5, children: [
|
|
979
983
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -997,14 +1001,14 @@ const Fe = J(
|
|
|
997
1001
|
onClick: () => m.toggleDropdown(),
|
|
998
1002
|
rightSectionPointerEvents: "none",
|
|
999
1003
|
w: 110,
|
|
1000
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1004
|
+
children: /* @__PURE__ */ a.jsx(pt, { value: d })
|
|
1001
1005
|
}
|
|
1002
1006
|
) }),
|
|
1003
1007
|
/* @__PURE__ */ a.jsxs(D.Dropdown, { children: [
|
|
1004
1008
|
/* @__PURE__ */ a.jsx(
|
|
1005
1009
|
D.Search,
|
|
1006
1010
|
{
|
|
1007
|
-
leftSection: /* @__PURE__ */ a.jsx(
|
|
1011
|
+
leftSection: /* @__PURE__ */ a.jsx(Pt, { size: 14, stroke: 1.5 }),
|
|
1008
1012
|
placeholder: ".....",
|
|
1009
1013
|
value: r,
|
|
1010
1014
|
onChange: (v) => i(v.currentTarget.value)
|
|
@@ -1065,9 +1069,9 @@ const Fe = J(
|
|
|
1065
1069
|
error: o
|
|
1066
1070
|
}
|
|
1067
1071
|
);
|
|
1068
|
-
},
|
|
1069
|
-
integer:
|
|
1070
|
-
float:
|
|
1072
|
+
}, ht = {
|
|
1073
|
+
integer: mt,
|
|
1074
|
+
float: mt,
|
|
1071
1075
|
string: De,
|
|
1072
1076
|
boolean: zn,
|
|
1073
1077
|
"string[]": De,
|
|
@@ -1141,7 +1145,7 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1141
1145
|
query: i,
|
|
1142
1146
|
setQuery: s
|
|
1143
1147
|
}) => {
|
|
1144
|
-
const l =
|
|
1148
|
+
const l = jt({
|
|
1145
1149
|
onDropdownClose: () => l.resetSelectedOption()
|
|
1146
1150
|
}), d = I(() => o.map((g) => (
|
|
1147
1151
|
// value has to be a string
|
|
@@ -1162,7 +1166,7 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1162
1166
|
{
|
|
1163
1167
|
id: e,
|
|
1164
1168
|
pointer: !0,
|
|
1165
|
-
rightSection: /* @__PURE__ */ a.jsx(
|
|
1169
|
+
rightSection: /* @__PURE__ */ a.jsx(Pt, { size: 16, stroke: 1.5 }),
|
|
1166
1170
|
rightSectionPointerEvents: "none",
|
|
1167
1171
|
onClick: () => l.toggleDropdown(),
|
|
1168
1172
|
placeholder: "Type to search...",
|
|
@@ -1196,7 +1200,7 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1196
1200
|
}, [e]);
|
|
1197
1201
|
if (n.length !== 0)
|
|
1198
1202
|
return /* @__PURE__ */ a.jsx(Z, { bd: "1px solid #ddd", children: n });
|
|
1199
|
-
}, Jn = "_requiredLabelLeft_l5p83_1", Zn = "_requiredLabelRight_l5p83_11",
|
|
1203
|
+
}, Jn = "_requiredLabelLeft_l5p83_1", Zn = "_requiredLabelRight_l5p83_11", St = {
|
|
1200
1204
|
requiredLabelLeft: Jn,
|
|
1201
1205
|
requiredLabelRight: Zn
|
|
1202
1206
|
}, Qn = ({
|
|
@@ -1207,11 +1211,11 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1207
1211
|
style: r,
|
|
1208
1212
|
align: i = "left"
|
|
1209
1213
|
}) => {
|
|
1210
|
-
const s = t ? i === "left" ?
|
|
1214
|
+
const s = t ? i === "left" ? St.requiredLabelRight : St.requiredLabelLeft : "";
|
|
1211
1215
|
return /* @__PURE__ */ a.jsx(G, { align: "center", h: 36, children: /* @__PURE__ */ a.jsx("label", { htmlFor: o, style: r, children: /* @__PURE__ */ a.jsxs(z, { gap: 4, children: [
|
|
1212
1216
|
/* @__PURE__ */ a.jsx(j, { size: "sm", className: s, children: e }),
|
|
1213
|
-
n !== void 0 && /* @__PURE__ */ a.jsx(
|
|
1214
|
-
|
|
1217
|
+
n !== void 0 && /* @__PURE__ */ a.jsx(It, { label: n, withArrow: !0, children: /* @__PURE__ */ a.jsx(
|
|
1218
|
+
Et,
|
|
1215
1219
|
{
|
|
1216
1220
|
size: 16,
|
|
1217
1221
|
stroke: 1.5,
|
|
@@ -1233,7 +1237,7 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1233
1237
|
}) => {
|
|
1234
1238
|
const [s, l] = L(void 0), d = o[t.tsName], g = (S) => {
|
|
1235
1239
|
var u;
|
|
1236
|
-
if (
|
|
1240
|
+
if (Mt(o))
|
|
1237
1241
|
o[t.updateFuncName](S);
|
|
1238
1242
|
else {
|
|
1239
1243
|
const m = o.toDraft();
|
|
@@ -1287,12 +1291,12 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1287
1291
|
return !n.helpAlwaysVisible && t.description !== void 0 && (f = /* @__PURE__ */ a.jsxs(z, { gap: 4, style: { display: "inline-flex" }, children: [
|
|
1288
1292
|
f,
|
|
1289
1293
|
/* @__PURE__ */ a.jsx(
|
|
1290
|
-
|
|
1294
|
+
It,
|
|
1291
1295
|
{
|
|
1292
1296
|
label: /* @__PURE__ */ a.jsx(N, { value: t.description }),
|
|
1293
1297
|
withArrow: !0,
|
|
1294
1298
|
children: /* @__PURE__ */ a.jsx(
|
|
1295
|
-
|
|
1299
|
+
Et,
|
|
1296
1300
|
{
|
|
1297
1301
|
size: 16,
|
|
1298
1302
|
stroke: 1.5,
|
|
@@ -1324,7 +1328,7 @@ const qn = (e) => e.name, Un = (e) => /* @__PURE__ */ a.jsx(j, { size: "sm", chi
|
|
|
1324
1328
|
function no(e) {
|
|
1325
1329
|
return e.type === "horizontal";
|
|
1326
1330
|
}
|
|
1327
|
-
const
|
|
1331
|
+
const vt = 12, Vr = (e) => {
|
|
1328
1332
|
const o = e.schema, t = I(() => {
|
|
1329
1333
|
const n = Math.max(
|
|
1330
1334
|
...e.fieldGroups.map((r) => Math.max(...r.fields.map((i) => i.length)))
|
|
@@ -1343,7 +1347,7 @@ const St = 12, Mr = (e) => {
|
|
|
1343
1347
|
"form",
|
|
1344
1348
|
{
|
|
1345
1349
|
onSubmit: e.onSubmit === void 0 ? void 0 : (n) => {
|
|
1346
|
-
n.preventDefault(), e.onSubmit !== void 0 &&
|
|
1350
|
+
n.preventDefault(), e.onSubmit !== void 0 && Mt(e.record) && e.onSubmit(e.record);
|
|
1347
1351
|
},
|
|
1348
1352
|
children: /* @__PURE__ */ a.jsxs(fe, { gap: "sm", className: e.className, style: e.styles, children: [
|
|
1349
1353
|
t,
|
|
@@ -1366,7 +1370,7 @@ const St = 12, Mr = (e) => {
|
|
|
1366
1370
|
function oo(e, o, t, n, r, i, s) {
|
|
1367
1371
|
const l = r.fields, d = [];
|
|
1368
1372
|
for (let f = 0; f < l.length; f++) {
|
|
1369
|
-
const S =
|
|
1373
|
+
const S = vt / l[f].length;
|
|
1370
1374
|
if (!Number.isInteger(S))
|
|
1371
1375
|
throw new Error(`Span must be an integer, but got ${S} for row ${f}`);
|
|
1372
1376
|
let c;
|
|
@@ -1378,7 +1382,7 @@ function oo(e, o, t, n, r, i, s) {
|
|
|
1378
1382
|
labelCol: Math.floor(
|
|
1379
1383
|
s.labelCol * l[f].length / i
|
|
1380
1384
|
),
|
|
1381
|
-
itemCol:
|
|
1385
|
+
itemCol: vt - Math.floor(s.labelCol * l[f].length / i)
|
|
1382
1386
|
} : c = s;
|
|
1383
1387
|
for (let u = 0; u < l[f].length; u++) {
|
|
1384
1388
|
const m = l[f][u], h = e.allProperties[m];
|
|
@@ -1386,11 +1390,11 @@ function oo(e, o, t, n, r, i, s) {
|
|
|
1386
1390
|
if (re(h))
|
|
1387
1391
|
x = h.cardinality === "N:N" || h.cardinality === "1:N" ? Yn : Kn;
|
|
1388
1392
|
else {
|
|
1389
|
-
if (
|
|
1393
|
+
if (ht[h.datatype] === void 0)
|
|
1390
1394
|
throw new Error(
|
|
1391
1395
|
`No input component found for datatype ${h.datatype}`
|
|
1392
1396
|
);
|
|
1393
|
-
x =
|
|
1397
|
+
x = ht[h.datatype];
|
|
1394
1398
|
}
|
|
1395
1399
|
d.push(
|
|
1396
1400
|
/* @__PURE__ */ a.jsx(T.Col, { span: S, children: /* @__PURE__ */ a.jsx(
|
|
@@ -1545,7 +1549,7 @@ function lo(e, o, t, n) {
|
|
|
1545
1549
|
return S;
|
|
1546
1550
|
}
|
|
1547
1551
|
const A = "debugHeaders";
|
|
1548
|
-
function
|
|
1552
|
+
function Ct(e, o, t) {
|
|
1549
1553
|
var n;
|
|
1550
1554
|
let i = {
|
|
1551
1555
|
id: (n = t.id) != null ? n : o.id,
|
|
@@ -1626,7 +1630,7 @@ function we(e, o, t, n) {
|
|
|
1626
1630
|
if (y && x.column.parent ? v = x.column.parent : (v = x.column, F = !0), C && (C == null ? void 0 : C.column) === v)
|
|
1627
1631
|
C.subHeaders.push(x);
|
|
1628
1632
|
else {
|
|
1629
|
-
const P =
|
|
1633
|
+
const P = Ct(t, v, {
|
|
1630
1634
|
id: [n, u, v.id, x == null ? void 0 : x.id].filter(Boolean).join("_"),
|
|
1631
1635
|
isPlaceholder: F,
|
|
1632
1636
|
placeholderId: F ? `${h.filter((ie) => ie.column === v).length}` : void 0,
|
|
@@ -1637,7 +1641,7 @@ function we(e, o, t, n) {
|
|
|
1637
1641
|
}
|
|
1638
1642
|
m.headers.push(x), x.headerGroup = m;
|
|
1639
1643
|
}), d.push(m), u > 0 && g(h, u - 1);
|
|
1640
|
-
}, f = o.map((c, u) =>
|
|
1644
|
+
}, f = o.map((c, u) => Ct(t, c, {
|
|
1641
1645
|
depth: s,
|
|
1642
1646
|
index: u
|
|
1643
1647
|
}));
|
|
@@ -1748,12 +1752,12 @@ const bt = (e, o, t) => e.getValue(o) === t;
|
|
|
1748
1752
|
bt.autoRemove = (e) => O(e);
|
|
1749
1753
|
const Gt = (e, o, t) => e.getValue(o) == t;
|
|
1750
1754
|
Gt.autoRemove = (e) => O(e);
|
|
1751
|
-
const
|
|
1755
|
+
const et = (e, o, t) => {
|
|
1752
1756
|
let [n, r] = t;
|
|
1753
1757
|
const i = e.getValue(o);
|
|
1754
1758
|
return i >= n && i <= r;
|
|
1755
1759
|
};
|
|
1756
|
-
|
|
1760
|
+
et.resolveFilterValue = (e) => {
|
|
1757
1761
|
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, s = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
1758
1762
|
if (i > s) {
|
|
1759
1763
|
const l = i;
|
|
@@ -1761,7 +1765,7 @@ Qe.resolveFilterValue = (e) => {
|
|
|
1761
1765
|
}
|
|
1762
1766
|
return [i, s];
|
|
1763
1767
|
};
|
|
1764
|
-
|
|
1768
|
+
et.autoRemove = (e) => O(e) || O(e[0]) && O(e[1]);
|
|
1765
1769
|
const H = {
|
|
1766
1770
|
includesString: Tt,
|
|
1767
1771
|
includesStringSensitive: Lt,
|
|
@@ -1771,7 +1775,7 @@ const H = {
|
|
|
1771
1775
|
arrIncludesSome: Ot,
|
|
1772
1776
|
equals: bt,
|
|
1773
1777
|
weakEquals: Gt,
|
|
1774
|
-
inNumberRange:
|
|
1778
|
+
inNumberRange: et
|
|
1775
1779
|
};
|
|
1776
1780
|
function O(e) {
|
|
1777
1781
|
return e == null || e === "";
|
|
@@ -1811,7 +1815,7 @@ const co = {
|
|
|
1811
1815
|
}, e.setFilterValue = (t) => {
|
|
1812
1816
|
o.setColumnFilters((n) => {
|
|
1813
1817
|
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((f) => f.id === e.id), s = Y(t, i ? i.value : void 0);
|
|
1814
|
-
if (
|
|
1818
|
+
if (wt(r, s, e)) {
|
|
1815
1819
|
var l;
|
|
1816
1820
|
return (l = n == null ? void 0 : n.filter((f) => f.id !== e.id)) != null ? l : [];
|
|
1817
1821
|
}
|
|
@@ -1838,7 +1842,7 @@ const co = {
|
|
|
1838
1842
|
const l = t.find((d) => d.id === s.id);
|
|
1839
1843
|
if (l) {
|
|
1840
1844
|
const d = l.getFilterFn();
|
|
1841
|
-
if (
|
|
1845
|
+
if (wt(d, s.value, l))
|
|
1842
1846
|
return !1;
|
|
1843
1847
|
}
|
|
1844
1848
|
return !0;
|
|
@@ -1851,7 +1855,7 @@ const co = {
|
|
|
1851
1855
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
1852
1856
|
}
|
|
1853
1857
|
};
|
|
1854
|
-
function
|
|
1858
|
+
function wt(e, o, t) {
|
|
1855
1859
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
1856
1860
|
}
|
|
1857
1861
|
const fo = (e, o, t) => t.reduce((n, r) => {
|
|
@@ -2705,7 +2709,7 @@ const Eo = {
|
|
|
2705
2709
|
const {
|
|
2706
2710
|
rowSelection: t
|
|
2707
2711
|
} = o.getState();
|
|
2708
|
-
return
|
|
2712
|
+
return tt(e, t);
|
|
2709
2713
|
}, e.getIsSomeSelected = () => {
|
|
2710
2714
|
const {
|
|
2711
2715
|
rowSelection: t
|
|
@@ -2742,7 +2746,7 @@ function be(e, o) {
|
|
|
2742
2746
|
const t = e.getState().rowSelection, n = [], r = {}, i = function(s, l) {
|
|
2743
2747
|
return s.map((d) => {
|
|
2744
2748
|
var g;
|
|
2745
|
-
const f =
|
|
2749
|
+
const f = tt(d, t);
|
|
2746
2750
|
if (f && (n.push(d), r[d.id] = d), (g = d.subRows) != null && g.length && (d = {
|
|
2747
2751
|
...d,
|
|
2748
2752
|
subRows: i(d.subRows)
|
|
@@ -2756,7 +2760,7 @@ function be(e, o) {
|
|
|
2756
2760
|
rowsById: r
|
|
2757
2761
|
};
|
|
2758
2762
|
}
|
|
2759
|
-
function
|
|
2763
|
+
function tt(e, o) {
|
|
2760
2764
|
var t;
|
|
2761
2765
|
return (t = o[e.id]) != null ? t : !1;
|
|
2762
2766
|
}
|
|
@@ -2765,17 +2769,17 @@ function Ye(e, o, t) {
|
|
|
2765
2769
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
2766
2770
|
let r = !0, i = !1;
|
|
2767
2771
|
return e.subRows.forEach((s) => {
|
|
2768
|
-
if (!(i && !r) && (s.getCanSelect() && (
|
|
2772
|
+
if (!(i && !r) && (s.getCanSelect() && (tt(s, o) ? i = !0 : r = !1), s.subRows && s.subRows.length)) {
|
|
2769
2773
|
const l = Ye(s, o);
|
|
2770
2774
|
l === "all" ? i = !0 : (l === "some" && (i = !0), r = !1);
|
|
2771
2775
|
}
|
|
2772
2776
|
}), r ? "all" : i ? "some" : !1;
|
|
2773
2777
|
}
|
|
2774
|
-
const We = /([0-9]+)/gm, Lo = (e, o, t) => Ht(X(e.getValue(t)).toLowerCase(), X(o.getValue(t)).toLowerCase()), No = (e, o, t) => Ht(X(e.getValue(t)), X(o.getValue(t))), ko = (e, o, t) =>
|
|
2778
|
+
const We = /([0-9]+)/gm, Lo = (e, o, t) => Ht(X(e.getValue(t)).toLowerCase(), X(o.getValue(t)).toLowerCase()), No = (e, o, t) => Ht(X(e.getValue(t)), X(o.getValue(t))), ko = (e, o, t) => nt(X(e.getValue(t)).toLowerCase(), X(o.getValue(t)).toLowerCase()), zo = (e, o, t) => nt(X(e.getValue(t)), X(o.getValue(t))), Oo = (e, o, t) => {
|
|
2775
2779
|
const n = e.getValue(t), r = o.getValue(t);
|
|
2776
2780
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
2777
|
-
}, bo = (e, o, t) =>
|
|
2778
|
-
function
|
|
2781
|
+
}, bo = (e, o, t) => nt(e.getValue(t), o.getValue(t));
|
|
2782
|
+
function nt(e, o) {
|
|
2779
2783
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
2780
2784
|
}
|
|
2781
2785
|
function X(e) {
|
|
@@ -3097,7 +3101,7 @@ function Uo(e) {
|
|
|
3097
3101
|
*
|
|
3098
3102
|
* @license MIT
|
|
3099
3103
|
*/
|
|
3100
|
-
function
|
|
3104
|
+
function Rt(e, o) {
|
|
3101
3105
|
return e ? Ko(e) ? /* @__PURE__ */ Ge.createElement(e, o) : e : null;
|
|
3102
3106
|
}
|
|
3103
3107
|
function Ko(e) {
|
|
@@ -3195,20 +3199,20 @@ const Ut = ({
|
|
|
3195
3199
|
children: "Export"
|
|
3196
3200
|
}
|
|
3197
3201
|
)
|
|
3198
|
-
] }), Kt = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0 || e.reload === !0 || e.import !== void 0), Xo = "__selectcol__", { Thead: Jo, Tr:
|
|
3202
|
+
] }), Kt = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0 || e.reload === !0 || e.import !== void 0), Xo = "__selectcol__", { Thead: Jo, Tr: xt, Th: Zo, Tbody: Qo, Td: er } = $t, Yt = (e) => {
|
|
3199
3203
|
const o = /* @__PURE__ */ a.jsxs(
|
|
3200
|
-
|
|
3204
|
+
$t,
|
|
3201
3205
|
{
|
|
3202
3206
|
striped: !0,
|
|
3203
3207
|
highlightOnHover: !0,
|
|
3204
3208
|
verticalSpacing: "xs",
|
|
3205
3209
|
tabularNums: !0,
|
|
3206
3210
|
children: [
|
|
3207
|
-
/* @__PURE__ */ a.jsx(Jo, { children: e.table.getHeaderGroups().map((n) => /* @__PURE__ */ a.jsx(
|
|
3211
|
+
/* @__PURE__ */ a.jsx(Jo, { children: e.table.getHeaderGroups().map((n) => /* @__PURE__ */ a.jsx(xt, { children: n.headers.map((r) => /* @__PURE__ */ a.jsx(
|
|
3208
3212
|
Zo,
|
|
3209
3213
|
{
|
|
3210
3214
|
w: r.id === Xo ? "1%" : void 0,
|
|
3211
|
-
children: r.isPlaceholder ? null :
|
|
3215
|
+
children: r.isPlaceholder ? null : Rt(
|
|
3212
3216
|
r.column.columnDef.header,
|
|
3213
3217
|
r.getContext()
|
|
3214
3218
|
)
|
|
@@ -3216,10 +3220,10 @@ const Ut = ({
|
|
|
3216
3220
|
r.id
|
|
3217
3221
|
)) }, n.id)) }),
|
|
3218
3222
|
/* @__PURE__ */ a.jsx(Qo, { pos: "relative", children: e.table.getRowModel().rows.map((n) => /* @__PURE__ */ a.jsx(
|
|
3219
|
-
|
|
3223
|
+
xt,
|
|
3220
3224
|
{
|
|
3221
3225
|
bg: e.selectedRowKeys[n.id] ? "var(--mantine-color-blue-light)" : void 0,
|
|
3222
|
-
children: n.getVisibleCells().map((r) => /* @__PURE__ */ a.jsx(er, { children:
|
|
3226
|
+
children: n.getVisibleCells().map((r) => /* @__PURE__ */ a.jsx(er, { children: Rt(r.column.columnDef.cell, r.getContext()) }, r.id))
|
|
3223
3227
|
},
|
|
3224
3228
|
n.id
|
|
3225
3229
|
)) })
|
|
@@ -3264,7 +3268,7 @@ const Ut = ({
|
|
|
3264
3268
|
] }),
|
|
3265
3269
|
i
|
|
3266
3270
|
] }) : i;
|
|
3267
|
-
},
|
|
3271
|
+
}, _t = {
|
|
3268
3272
|
xs: le(22),
|
|
3269
3273
|
sm: le(26),
|
|
3270
3274
|
md: le(32),
|
|
@@ -3287,7 +3291,7 @@ function or({
|
|
|
3287
3291
|
style: [
|
|
3288
3292
|
{ fontWeight: "normal" },
|
|
3289
3293
|
(r) => ({
|
|
3290
|
-
height:
|
|
3294
|
+
height: _t[e],
|
|
3291
3295
|
paddingLeft: r.spacing[e],
|
|
3292
3296
|
paddingRight: r.spacing[e]
|
|
3293
3297
|
})
|
|
@@ -3307,7 +3311,7 @@ function or({
|
|
|
3307
3311
|
{
|
|
3308
3312
|
className: i ? nr.pageSizeSelectorActive : void 0,
|
|
3309
3313
|
style: [
|
|
3310
|
-
{ height:
|
|
3314
|
+
{ height: _t[e] }
|
|
3311
3315
|
// isCurrent
|
|
3312
3316
|
// ? {
|
|
3313
3317
|
// color: "var(--mantine-color-text)",
|
|
@@ -3325,7 +3329,7 @@ function or({
|
|
|
3325
3329
|
}) })
|
|
3326
3330
|
] });
|
|
3327
3331
|
}
|
|
3328
|
-
const rr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]),
|
|
3332
|
+
const rr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ar = (e) => {
|
|
3329
3333
|
var C, y;
|
|
3330
3334
|
const [o, t] = L({
|
|
3331
3335
|
records: [],
|
|
@@ -3539,7 +3543,7 @@ function Xt(e, o, {
|
|
|
3539
3543
|
return /* @__PURE__ */ a.jsx(i, { db: e, property: o, value: d });
|
|
3540
3544
|
}), s;
|
|
3541
3545
|
}
|
|
3542
|
-
function
|
|
3546
|
+
function Dr(e, o, t, {
|
|
3543
3547
|
title: n,
|
|
3544
3548
|
nestedKey: r,
|
|
3545
3549
|
component: i
|
|
@@ -3570,16 +3574,16 @@ function Ar(e, o, t, {
|
|
|
3570
3574
|
return /* @__PURE__ */ a.jsx(s, { db: e, property: t, value: g });
|
|
3571
3575
|
}), l;
|
|
3572
3576
|
}
|
|
3573
|
-
function
|
|
3577
|
+
function Tr(e, o, t, n = {}) {
|
|
3574
3578
|
return t.map((r) => Jt(r) ? r : Xt(e, o.publicProperties[r], n));
|
|
3575
3579
|
}
|
|
3576
|
-
function
|
|
3580
|
+
function Lr(e, o, t = [], n = {}) {
|
|
3577
3581
|
return t.map((r) => Jt(r) ? r : Xt(e, o.publicProperties[r], n));
|
|
3578
3582
|
}
|
|
3579
3583
|
function Jt(e) {
|
|
3580
3584
|
return typeof e == "object" && "key" in e && "title" in e;
|
|
3581
3585
|
}
|
|
3582
|
-
const sr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]),
|
|
3586
|
+
const sr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Nr = (e) => {
|
|
3583
3587
|
var f, S;
|
|
3584
3588
|
const [o, t] = L(
|
|
3585
3589
|
{}
|
|
@@ -3719,7 +3723,7 @@ const sr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Lr = (e) => {
|
|
|
3719
3723
|
}
|
|
3720
3724
|
)
|
|
3721
3725
|
] });
|
|
3722
|
-
},
|
|
3726
|
+
}, yt = J(
|
|
3723
3727
|
({
|
|
3724
3728
|
store: e,
|
|
3725
3729
|
record: o,
|
|
@@ -3766,7 +3770,7 @@ function dr(e, o, t, n, r) {
|
|
|
3766
3770
|
else if (typeof f == "object" && "prop" in f) {
|
|
3767
3771
|
const c = e.allProperties[f.prop], u = f.display;
|
|
3768
3772
|
S = /* @__PURE__ */ a.jsx(
|
|
3769
|
-
|
|
3773
|
+
yt,
|
|
3770
3774
|
{
|
|
3771
3775
|
store: o,
|
|
3772
3776
|
record: t,
|
|
@@ -3787,7 +3791,7 @@ function dr(e, o, t, n, r) {
|
|
|
3787
3791
|
u = W[c.datatype];
|
|
3788
3792
|
}
|
|
3789
3793
|
S = /* @__PURE__ */ a.jsx(
|
|
3790
|
-
|
|
3794
|
+
yt,
|
|
3791
3795
|
{
|
|
3792
3796
|
store: o,
|
|
3793
3797
|
record: t,
|
|
@@ -3803,7 +3807,7 @@ function dr(e, o, t, n, r) {
|
|
|
3803
3807
|
}
|
|
3804
3808
|
return /* @__PURE__ */ a.jsx(T, { gutter: "sm", children: s }, n);
|
|
3805
3809
|
}
|
|
3806
|
-
function
|
|
3810
|
+
function kr(e, o) {
|
|
3807
3811
|
const t = e[e.length - 1];
|
|
3808
3812
|
let n;
|
|
3809
3813
|
if (o !== void 0)
|
|
@@ -3827,7 +3831,7 @@ function Nr(e, o) {
|
|
|
3827
3831
|
}
|
|
3828
3832
|
);
|
|
3829
3833
|
}
|
|
3830
|
-
const
|
|
3834
|
+
const zr = (e) => /* @__PURE__ */ a.jsxs(he, { defaultValue: e.fieldTabs[0].tabName, children: [
|
|
3831
3835
|
/* @__PURE__ */ a.jsx(he.List, { children: e.fieldTabs.map((o, t) => /* @__PURE__ */ a.jsx(he.Tab, { value: o.tabName, children: o.tabName }, t)) }),
|
|
3832
3836
|
e.fieldTabs.map((o, t) => /* @__PURE__ */ a.jsx(he.Panel, { value: o.tabName, pt: "sm", children: /* @__PURE__ */ a.jsx(
|
|
3833
3837
|
ur,
|
|
@@ -3844,7 +3848,7 @@ const kr = (e) => /* @__PURE__ */ a.jsxs(he, { defaultValue: e.fieldTabs[0].tabN
|
|
|
3844
3848
|
export {
|
|
3845
3849
|
He as CountryFlagComponent,
|
|
3846
3850
|
rr as DEFAULT_PAGINATION_POSITIONS,
|
|
3847
|
-
|
|
3851
|
+
ht as DataType2Component,
|
|
3848
3852
|
W as DataType2DisplayComponent,
|
|
3849
3853
|
Tn as DateDisplay,
|
|
3850
3854
|
Dn as DateTimeDisplay,
|
|
@@ -3862,30 +3866,31 @@ export {
|
|
|
3862
3866
|
N as MultiLingualString,
|
|
3863
3867
|
yr as NotAuthorized,
|
|
3864
3868
|
wr as NotFound,
|
|
3865
|
-
|
|
3869
|
+
Vt as NotFoundInline,
|
|
3866
3870
|
Rr as NotFoundSubPage,
|
|
3867
3871
|
$r as OrderedUniqueList,
|
|
3868
3872
|
Be as Permission,
|
|
3869
3873
|
In as SVGCountryFlag,
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
Vr as
|
|
3874
|
+
Mr as SeraContextProvider,
|
|
3875
|
+
Nr as SeraEmbeddedTable,
|
|
3876
|
+
Vr as SeraForm,
|
|
3877
|
+
Ar as SeraTable,
|
|
3873
3878
|
Pr as SeraVerticalMenu,
|
|
3874
3879
|
ur as SeraView,
|
|
3875
|
-
|
|
3880
|
+
zr as SeraViewTab,
|
|
3876
3881
|
Fe as SingleForeignKeyDisplay,
|
|
3877
|
-
|
|
3878
|
-
|
|
3882
|
+
At as Trie,
|
|
3883
|
+
ft as TrieNode,
|
|
3879
3884
|
En as buildMenuItemIndex,
|
|
3880
3885
|
E as countryFlags,
|
|
3881
3886
|
Vn as filterAllowedItems,
|
|
3882
3887
|
Fr as groupBy,
|
|
3883
3888
|
jr as groupByAsList,
|
|
3884
3889
|
Jt as isSeraColumn,
|
|
3885
|
-
|
|
3886
|
-
|
|
3890
|
+
Lr as makeEmbeddedTableColumns,
|
|
3891
|
+
kr as makeFieldDisplay,
|
|
3887
3892
|
Xt as makeTableColumn,
|
|
3888
|
-
|
|
3889
|
-
|
|
3893
|
+
Dr as makeTableColumnFromNestedProperty,
|
|
3894
|
+
Tr as makeTableColumns,
|
|
3890
3895
|
Ir as uniqueList
|
|
3891
3896
|
};
|