@declarion/react 0.1.55 → 0.1.57
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-lib/declarion-react.css +1 -1
- package/dist-lib/index.js +308 -280
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/types/api.d.ts +7 -0
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -830,7 +830,7 @@ function ve({ name: e, size: t = 22, color: n }) {
|
|
|
830
830
|
}
|
|
831
831
|
//#endregion
|
|
832
832
|
//#region src/components/primitives/Dropdown.tsx
|
|
833
|
-
function
|
|
833
|
+
function ye({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
|
|
834
834
|
let s = f(null), [c, d] = p(null);
|
|
835
835
|
return u(() => {
|
|
836
836
|
if (!e || !n) return;
|
|
@@ -876,7 +876,7 @@ function W({ open: e, onClose: t, anchor: n, children: r, align: i = "start", wi
|
|
|
876
876
|
}
|
|
877
877
|
//#endregion
|
|
878
878
|
//#region src/components/primitives/Chip.tsx
|
|
879
|
-
function
|
|
879
|
+
function be({ icon: e, children: t, onRemove: n, onClick: r }) {
|
|
880
880
|
return /* @__PURE__ */ P("span", {
|
|
881
881
|
onClick: r,
|
|
882
882
|
style: {
|
|
@@ -916,7 +916,7 @@ function ye({ icon: e, children: t, onRemove: n, onClick: r }) {
|
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region src/components/primitives/SectionCard.tsx
|
|
919
|
-
function
|
|
919
|
+
function xe({ title: e, subtitle: t, right: n, badge: r, children: i, collapsible: a = !0, defaultOpen: o = !0, icon: s, padding: c = "16px" }) {
|
|
920
920
|
let [l, u] = p(o);
|
|
921
921
|
return /* @__PURE__ */ P("div", {
|
|
922
922
|
style: {
|
|
@@ -997,14 +997,14 @@ function be({ title: e, subtitle: t, right: n, badge: r, children: i, collapsibl
|
|
|
997
997
|
}
|
|
998
998
|
//#endregion
|
|
999
999
|
//#region src/components/primitives/RecordIdBadge.tsx
|
|
1000
|
-
var
|
|
1001
|
-
function
|
|
1002
|
-
let [t, n] = p(!1), r =
|
|
1000
|
+
var Se = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, Ce = 1200;
|
|
1001
|
+
function W({ value: e }) {
|
|
1002
|
+
let [t, n] = p(!1), r = Se.test(e) ? `${e.slice(0, 8)}…` : e;
|
|
1003
1003
|
return /* @__PURE__ */ P("button", {
|
|
1004
1004
|
type: "button",
|
|
1005
1005
|
onClick: s(async () => {
|
|
1006
1006
|
try {
|
|
1007
|
-
await navigator.clipboard.writeText(e), n(!0), window.setTimeout(() => n(!1),
|
|
1007
|
+
await navigator.clipboard.writeText(e), n(!0), window.setTimeout(() => n(!1), Ce);
|
|
1008
1008
|
} catch {}
|
|
1009
1009
|
}, [e]),
|
|
1010
1010
|
title: t ? "Copied" : `Copy ${e}`,
|
|
@@ -1168,7 +1168,7 @@ function Te({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
//#endregion
|
|
1170
1170
|
//#region src/components/primitives/Spinner.tsx
|
|
1171
|
-
function
|
|
1171
|
+
function Ee({ size: e = 14 }) {
|
|
1172
1172
|
return /* @__PURE__ */ P("svg", {
|
|
1173
1173
|
width: e,
|
|
1174
1174
|
height: e,
|
|
@@ -1196,7 +1196,7 @@ function q({ size: e = 14 }) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
//#endregion
|
|
1198
1198
|
//#region src/components/primitives/Fields.tsx
|
|
1199
|
-
var
|
|
1199
|
+
var q = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ P("div", {
|
|
1200
1200
|
style: {
|
|
1201
1201
|
display: "flex",
|
|
1202
1202
|
alignItems: "center",
|
|
@@ -1223,7 +1223,7 @@ var J = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ P("div", {
|
|
|
1223
1223
|
children: /* @__PURE__ */ N(B.info, { size: 11 })
|
|
1224
1224
|
})
|
|
1225
1225
|
]
|
|
1226
|
-
}),
|
|
1226
|
+
}), De = {
|
|
1227
1227
|
width: "100%",
|
|
1228
1228
|
height: 30,
|
|
1229
1229
|
padding: "0 10px",
|
|
@@ -1236,14 +1236,14 @@ var J = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ P("div", {
|
|
|
1236
1236
|
outline: "none",
|
|
1237
1237
|
transition: "border-color .12s, box-shadow .12s"
|
|
1238
1238
|
};
|
|
1239
|
-
function
|
|
1239
|
+
function J({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
|
|
1240
1240
|
let [s, c] = p(!1);
|
|
1241
1241
|
return /* @__PURE__ */ P("div", {
|
|
1242
1242
|
style: {
|
|
1243
1243
|
display: "flex",
|
|
1244
1244
|
alignItems: "center",
|
|
1245
1245
|
gap: 6,
|
|
1246
|
-
...
|
|
1246
|
+
...De,
|
|
1247
1247
|
padding: r || i ? "0 8px" : "0 10px",
|
|
1248
1248
|
borderColor: s ? "var(--accent)" : "var(--border)",
|
|
1249
1249
|
boxShadow: s ? "0 0 0 3px var(--accent-ring)" : "none",
|
|
@@ -1285,7 +1285,7 @@ function Y({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style:
|
|
|
1285
1285
|
]
|
|
1286
1286
|
});
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Oe({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i }) {
|
|
1289
1289
|
let [a, o] = p(!1), s = i ? {
|
|
1290
1290
|
flex: 1,
|
|
1291
1291
|
height: "100%",
|
|
@@ -1303,7 +1303,7 @@ function De({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i }) {
|
|
|
1303
1303
|
onFocus: () => o(!0),
|
|
1304
1304
|
onBlur: () => o(!1),
|
|
1305
1305
|
style: {
|
|
1306
|
-
...
|
|
1306
|
+
...De,
|
|
1307
1307
|
padding: "8px 10px",
|
|
1308
1308
|
lineHeight: 1.5,
|
|
1309
1309
|
...s,
|
|
@@ -1313,14 +1313,14 @@ function De({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i }) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function ke({ value: e, options: t, onChange: n, placeholder: r = "Select..." }) {
|
|
1317
1317
|
let [i, a] = p(!1), o = f(null), s = t.find((t) => t.value === e);
|
|
1318
1318
|
return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("button", {
|
|
1319
1319
|
type: "button",
|
|
1320
1320
|
ref: o,
|
|
1321
1321
|
onClick: () => a(!i),
|
|
1322
1322
|
style: {
|
|
1323
|
-
...
|
|
1323
|
+
...De,
|
|
1324
1324
|
display: "flex",
|
|
1325
1325
|
alignItems: "center",
|
|
1326
1326
|
justifyContent: "space-between",
|
|
@@ -1342,7 +1342,7 @@ function Oe({ value: e, options: t, onChange: n, placeholder: r = "Select..." })
|
|
|
1342
1342
|
cls: "",
|
|
1343
1343
|
style: { color: "var(--text-3)" }
|
|
1344
1344
|
})]
|
|
1345
|
-
}), /* @__PURE__ */ N(
|
|
1345
|
+
}), /* @__PURE__ */ N(ye, {
|
|
1346
1346
|
open: i,
|
|
1347
1347
|
anchor: o.current,
|
|
1348
1348
|
onClose: () => a(!1),
|
|
@@ -1356,35 +1356,35 @@ function Oe({ value: e, options: t, onChange: n, placeholder: r = "Select..." })
|
|
|
1356
1356
|
}, t.value))
|
|
1357
1357
|
})] });
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return /* @__PURE__ */ N(
|
|
1359
|
+
function Ae({ value: e, onChange: t }) {
|
|
1360
|
+
return /* @__PURE__ */ N(J, {
|
|
1361
1361
|
value: e || "",
|
|
1362
1362
|
onChange: t,
|
|
1363
1363
|
placeholder: "YYYY-MM-DD HH:mm",
|
|
1364
1364
|
prefix: /* @__PURE__ */ N(B.calendar, { size: 13 })
|
|
1365
1365
|
});
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function je(e) {
|
|
1368
1368
|
if (!e) return 0;
|
|
1369
1369
|
let t = 0;
|
|
1370
1370
|
return e.length >= 8 && t++, e.length >= 12 && t++, /[A-Z]/.test(e) && /[a-z]/.test(e) && t++, /\d/.test(e) && t++, /[^A-Za-z0-9]/.test(e) && t++, Math.min(4, t);
|
|
1371
1371
|
}
|
|
1372
|
-
var
|
|
1372
|
+
var Me = [
|
|
1373
1373
|
"Too short",
|
|
1374
1374
|
"Weak",
|
|
1375
1375
|
"Fair",
|
|
1376
1376
|
"Good",
|
|
1377
1377
|
"Strong"
|
|
1378
|
-
],
|
|
1378
|
+
], Ne = [
|
|
1379
1379
|
"var(--danger)",
|
|
1380
1380
|
"var(--danger)",
|
|
1381
1381
|
"var(--warning, #B45309)",
|
|
1382
1382
|
"var(--accent)",
|
|
1383
1383
|
"var(--success, #3FBF8F)"
|
|
1384
1384
|
];
|
|
1385
|
-
function
|
|
1386
|
-
let [i, a] = p(!1), o = e || "", s =
|
|
1387
|
-
return /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
1385
|
+
function Y({ value: e, onChange: t, placeholder: n = "Enter password", showStrength: r }) {
|
|
1386
|
+
let [i, a] = p(!1), o = e || "", s = je(o);
|
|
1387
|
+
return /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(J, {
|
|
1388
1388
|
type: i ? "text" : "password",
|
|
1389
1389
|
value: o,
|
|
1390
1390
|
onChange: t,
|
|
@@ -1425,7 +1425,7 @@ function Ne({ value: e, onChange: t, placeholder: n = "Enter password", showStre
|
|
|
1425
1425
|
flex: 1,
|
|
1426
1426
|
height: 3,
|
|
1427
1427
|
borderRadius: 999,
|
|
1428
|
-
background: e < s ?
|
|
1428
|
+
background: e < s ? Ne[s] : "var(--surface-3)",
|
|
1429
1429
|
transition: "background .15s"
|
|
1430
1430
|
} }, e))
|
|
1431
1431
|
}), /* @__PURE__ */ N("span", {
|
|
@@ -1435,7 +1435,7 @@ function Ne({ value: e, onChange: t, placeholder: n = "Enter password", showStre
|
|
|
1435
1435
|
minWidth: 54,
|
|
1436
1436
|
textAlign: "right"
|
|
1437
1437
|
},
|
|
1438
|
-
children: o ?
|
|
1438
|
+
children: o ? Me[s] : ""
|
|
1439
1439
|
})]
|
|
1440
1440
|
})] });
|
|
1441
1441
|
}
|
|
@@ -1443,7 +1443,7 @@ function Pe({ value: e = [], onChange: t }) {
|
|
|
1443
1443
|
let [n, r] = p("");
|
|
1444
1444
|
return /* @__PURE__ */ P("div", {
|
|
1445
1445
|
style: {
|
|
1446
|
-
...
|
|
1446
|
+
...De,
|
|
1447
1447
|
height: "auto",
|
|
1448
1448
|
minHeight: 30,
|
|
1449
1449
|
display: "flex",
|
|
@@ -1452,7 +1452,7 @@ function Pe({ value: e = [], onChange: t }) {
|
|
|
1452
1452
|
padding: "4px 6px",
|
|
1453
1453
|
alignItems: "center"
|
|
1454
1454
|
},
|
|
1455
|
-
children: [e.map((n, r) => /* @__PURE__ */ N(
|
|
1455
|
+
children: [e.map((n, r) => /* @__PURE__ */ N(be, {
|
|
1456
1456
|
tone: "slate",
|
|
1457
1457
|
onRemove: () => t(e.filter((e, t) => t !== r)),
|
|
1458
1458
|
children: n
|
|
@@ -1541,7 +1541,7 @@ function Ie({ value: e, entity: t = "company", onChange: n, items: r = [] }) {
|
|
|
1541
1541
|
ref: o,
|
|
1542
1542
|
onClick: () => a(!0),
|
|
1543
1543
|
style: {
|
|
1544
|
-
...
|
|
1544
|
+
...De,
|
|
1545
1545
|
display: "flex",
|
|
1546
1546
|
alignItems: "center",
|
|
1547
1547
|
justifyContent: "space-between",
|
|
@@ -1576,14 +1576,14 @@ function Ie({ value: e, entity: t = "company", onChange: n, items: r = [] }) {
|
|
|
1576
1576
|
cls: "",
|
|
1577
1577
|
style: { color: "var(--text-3)" }
|
|
1578
1578
|
})]
|
|
1579
|
-
}), /* @__PURE__ */ P(
|
|
1579
|
+
}), /* @__PURE__ */ P(ye, {
|
|
1580
1580
|
open: i,
|
|
1581
1581
|
anchor: o.current,
|
|
1582
1582
|
onClose: () => a(!1),
|
|
1583
1583
|
width: o.current?.offsetWidth,
|
|
1584
1584
|
children: [/* @__PURE__ */ N("div", {
|
|
1585
1585
|
style: { padding: 4 },
|
|
1586
|
-
children: /* @__PURE__ */ N(
|
|
1586
|
+
children: /* @__PURE__ */ N(J, {
|
|
1587
1587
|
placeholder: `Search ${t}…`,
|
|
1588
1588
|
prefix: /* @__PURE__ */ N(B.search, { size: 12 }),
|
|
1589
1589
|
style: { marginBottom: 4 }
|
|
@@ -1645,7 +1645,7 @@ function Re({ value: e, onChange: t, type: n = "text", options: r }) {
|
|
|
1645
1645
|
onKeyDown: (e) => {
|
|
1646
1646
|
e.key === "Enter" && c(), e.key === "Escape" && l();
|
|
1647
1647
|
},
|
|
1648
|
-
children: [n === "select" ? /* @__PURE__ */ N(
|
|
1648
|
+
children: [n === "select" ? /* @__PURE__ */ N(ke, {
|
|
1649
1649
|
value: o,
|
|
1650
1650
|
options: r || [],
|
|
1651
1651
|
onChange: (e) => {
|
|
@@ -1657,7 +1657,7 @@ function Re({ value: e, onChange: t, type: n = "text", options: r }) {
|
|
|
1657
1657
|
let n = String(e);
|
|
1658
1658
|
s(n), t && t(n), a(!1);
|
|
1659
1659
|
}
|
|
1660
|
-
}) : /* @__PURE__ */ N(
|
|
1660
|
+
}) : /* @__PURE__ */ N(J, {
|
|
1661
1661
|
value: o ?? "",
|
|
1662
1662
|
onChange: s,
|
|
1663
1663
|
autoFocus: !0
|
|
@@ -2838,7 +2838,7 @@ function $t({ tenant: e, tenants: t, onSwitch: n, busy: r }) {
|
|
|
2838
2838
|
style: { color: "var(--text-3)" }
|
|
2839
2839
|
})
|
|
2840
2840
|
]
|
|
2841
|
-
}), /* @__PURE__ */ P(
|
|
2841
|
+
}), /* @__PURE__ */ P(ye, {
|
|
2842
2842
|
open: i,
|
|
2843
2843
|
anchor: o.current,
|
|
2844
2844
|
onClose: () => a(!1),
|
|
@@ -3209,7 +3209,7 @@ function rn({ breadcrumbs: e, onCrumbClick: t, onCmdK: n, onToggleAI: r, aiOpen:
|
|
|
3209
3209
|
style: { color: "var(--text-3)" }
|
|
3210
3210
|
})
|
|
3211
3211
|
]
|
|
3212
|
-
}), /* @__PURE__ */ P(
|
|
3212
|
+
}), /* @__PURE__ */ P(ye, {
|
|
3213
3213
|
open: _,
|
|
3214
3214
|
anchor: y.current,
|
|
3215
3215
|
onClose: () => v(!1),
|
|
@@ -4112,7 +4112,7 @@ function pn({ open: e, onClose: t, context: n }) {
|
|
|
4112
4112
|
color: "var(--text-3)",
|
|
4113
4113
|
fontSize: 11.5
|
|
4114
4114
|
},
|
|
4115
|
-
children: [/* @__PURE__ */ N(
|
|
4115
|
+
children: [/* @__PURE__ */ N(Ee, { size: 12 }), "Thinking…"]
|
|
4116
4116
|
})]
|
|
4117
4117
|
}),
|
|
4118
4118
|
r.length <= 1 && /* @__PURE__ */ N("div", {
|
|
@@ -4260,7 +4260,7 @@ function hn({ field: e, value: t, mode: n, onChange: r }) {
|
|
|
4260
4260
|
})
|
|
4261
4261
|
});
|
|
4262
4262
|
}
|
|
4263
|
-
return /* @__PURE__ */ N(
|
|
4263
|
+
return /* @__PURE__ */ N(J, {
|
|
4264
4264
|
value: String(t ?? ""),
|
|
4265
4265
|
onChange: (e) => r?.(e)
|
|
4266
4266
|
});
|
|
@@ -4325,10 +4325,10 @@ function _n({ field: e, value: t, mode: n, onChange: r, fill: i, compact: a }) {
|
|
|
4325
4325
|
})]
|
|
4326
4326
|
}) : r;
|
|
4327
4327
|
}
|
|
4328
|
-
return a ? /* @__PURE__ */ N(
|
|
4328
|
+
return a ? /* @__PURE__ */ N(J, {
|
|
4329
4329
|
value: String(t ?? ""),
|
|
4330
4330
|
onChange: (e) => r?.(e)
|
|
4331
|
-
}) : /* @__PURE__ */ N(
|
|
4331
|
+
}) : /* @__PURE__ */ N(Oe, {
|
|
4332
4332
|
value: String(t ?? ""),
|
|
4333
4333
|
onChange: (e) => r?.(e),
|
|
4334
4334
|
rows: o === "markdown" || o === "code" ? 10 : 4,
|
|
@@ -4352,7 +4352,7 @@ function yn({ field: e, value: t, mode: n, onChange: r }) {
|
|
|
4352
4352
|
children: "—"
|
|
4353
4353
|
});
|
|
4354
4354
|
let o = !e.required;
|
|
4355
|
-
return /* @__PURE__ */ N(
|
|
4355
|
+
return /* @__PURE__ */ N(ke, {
|
|
4356
4356
|
value: t != null && t !== "" ? String(t) : vn,
|
|
4357
4357
|
options: [...o ? [{
|
|
4358
4358
|
value: vn,
|
|
@@ -4384,7 +4384,7 @@ function bn({ value: e, mode: t, onChange: n }) {
|
|
|
4384
4384
|
color: "var(--text-4)"
|
|
4385
4385
|
},
|
|
4386
4386
|
children: "—"
|
|
4387
|
-
}) : /* @__PURE__ */ N(
|
|
4387
|
+
}) : /* @__PURE__ */ N(J, {
|
|
4388
4388
|
type: "email",
|
|
4389
4389
|
value: r,
|
|
4390
4390
|
onChange: (e) => n?.(e)
|
|
@@ -4483,7 +4483,7 @@ function An({ field: e, value: t, mode: n, onChange: r }) {
|
|
|
4483
4483
|
]
|
|
4484
4484
|
});
|
|
4485
4485
|
}
|
|
4486
|
-
return /* @__PURE__ */ N(
|
|
4486
|
+
return /* @__PURE__ */ N(J, {
|
|
4487
4487
|
type: "url",
|
|
4488
4488
|
value: i,
|
|
4489
4489
|
onChange: (e) => r?.(e),
|
|
@@ -4643,7 +4643,7 @@ function Rn({ field: e, value: t, mode: n, onChange: r }) {
|
|
|
4643
4643
|
});
|
|
4644
4644
|
}
|
|
4645
4645
|
let o = t ? a ? In(String(t), i) : Ln(String(t), i) : "";
|
|
4646
|
-
return /* @__PURE__ */ N(
|
|
4646
|
+
return /* @__PURE__ */ N(J, {
|
|
4647
4647
|
type: i ? "date" : "datetime-local",
|
|
4648
4648
|
value: o,
|
|
4649
4649
|
onChange: (e) => {
|
|
@@ -4736,7 +4736,7 @@ function Hn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a
|
|
|
4736
4736
|
})]
|
|
4737
4737
|
});
|
|
4738
4738
|
}
|
|
4739
|
-
return s ? /* @__PURE__ */ N(
|
|
4739
|
+
return s ? /* @__PURE__ */ N(J, {
|
|
4740
4740
|
type: "text",
|
|
4741
4741
|
inputMode: "decimal",
|
|
4742
4742
|
pattern: "-?\\d*\\.?\\d*",
|
|
@@ -4744,7 +4744,7 @@ function Hn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a
|
|
|
4744
4744
|
onChange: (e) => {
|
|
4745
4745
|
e === "" ? i?.(null) : i?.(e);
|
|
4746
4746
|
}
|
|
4747
|
-
}) : /* @__PURE__ */ N(
|
|
4747
|
+
}) : /* @__PURE__ */ N(J, {
|
|
4748
4748
|
type: "number",
|
|
4749
4749
|
step: e.type === "float" ? "0.01" : "1",
|
|
4750
4750
|
value: n == null ? "" : String(n),
|
|
@@ -4758,7 +4758,7 @@ function Hn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a
|
|
|
4758
4758
|
function Un(e, t) {
|
|
4759
4759
|
let n = new URL(`/api/data/${e}`, window.location.origin);
|
|
4760
4760
|
if (t.page && n.searchParams.set("page", String(t.page)), t.per_page && n.searchParams.set("per_page", String(t.per_page)), t.sort && n.searchParams.set("sort", t.sort), t.search && n.searchParams.set("search", t.search), t.filters && t.filters.length > 0 && n.searchParams.set("filters", JSON.stringify(t.filters)), t.include_deleted && n.searchParams.set("include_deleted", "true"), t.expand) for (let e of t.expand) n.searchParams.append("expand", e);
|
|
4761
|
-
return t.screen && n.searchParams.set("screen", t.screen), n.pathname + n.search;
|
|
4761
|
+
return t.select && t.select.length > 0 && n.searchParams.set("select", t.select.join(",")), t.screen && n.searchParams.set("screen", t.screen), n.pathname + n.search;
|
|
4762
4762
|
}
|
|
4763
4763
|
async function Wn(e, t = {}) {
|
|
4764
4764
|
return Z(Un(e, t));
|
|
@@ -4893,7 +4893,7 @@ function ir({ field: e, value: t, mode: n, onChange: r, refs: i }) {
|
|
|
4893
4893
|
children: p
|
|
4894
4894
|
});
|
|
4895
4895
|
let m = String(t ?? ""), h = f.some((e) => String(e[c]) === m);
|
|
4896
|
-
return /* @__PURE__ */ N(
|
|
4896
|
+
return /* @__PURE__ */ N(ke, {
|
|
4897
4897
|
value: m,
|
|
4898
4898
|
options: [
|
|
4899
4899
|
{
|
|
@@ -4991,7 +4991,7 @@ function lr({ value: e, mode: t, onChange: n }) {
|
|
|
4991
4991
|
children: e.code
|
|
4992
4992
|
}), /* @__PURE__ */ N("div", {
|
|
4993
4993
|
style: { flex: 1 },
|
|
4994
|
-
children: /* @__PURE__ */ N(
|
|
4994
|
+
children: /* @__PURE__ */ N(J, {
|
|
4995
4995
|
value: a[e.code] ?? "",
|
|
4996
4996
|
onChange: (t) => o(e.code, t),
|
|
4997
4997
|
placeholder: `Value (${e.code})`
|
|
@@ -5047,7 +5047,7 @@ function dr({ value: e, mode: t, onChange: n }) {
|
|
|
5047
5047
|
fontWeight: 500
|
|
5048
5048
|
},
|
|
5049
5049
|
children: e.code
|
|
5050
|
-
}), /* @__PURE__ */ N(
|
|
5050
|
+
}), /* @__PURE__ */ N(Oe, {
|
|
5051
5051
|
value: a[e.code] ?? "",
|
|
5052
5052
|
onChange: (t) => o(e.code, t),
|
|
5053
5053
|
placeholder: `Value (${e.code})`,
|
|
@@ -5145,7 +5145,7 @@ function pr({ structDef: e, value: t, mode: n, onChange: r }) {
|
|
|
5145
5145
|
flexDirection: "column",
|
|
5146
5146
|
gap: 2
|
|
5147
5147
|
},
|
|
5148
|
-
children: [/* @__PURE__ */ N(
|
|
5148
|
+
children: [/* @__PURE__ */ N(q, {
|
|
5149
5149
|
required: n.required,
|
|
5150
5150
|
children: n.display ? X(n.display.name) : t
|
|
5151
5151
|
}), n.type === "structure" && n.structure ? /* @__PURE__ */ N(fr, {
|
|
@@ -5246,7 +5246,7 @@ function gr({ value: e, mode: t, onChange: n, record: r }) {
|
|
|
5246
5246
|
fontStyle: "italic"
|
|
5247
5247
|
},
|
|
5248
5248
|
children: "Not set"
|
|
5249
|
-
}) : /* @__PURE__ */ N(
|
|
5249
|
+
}) : /* @__PURE__ */ N(Y, {
|
|
5250
5250
|
value: i,
|
|
5251
5251
|
onChange: (e) => {
|
|
5252
5252
|
a(e), o && e === "" ? n?.(s ? hr : "") : n?.(e);
|
|
@@ -5273,7 +5273,7 @@ function vr({ value: e, mode: t, onChange: n, record: r }) {
|
|
|
5273
5273
|
fontStyle: "italic"
|
|
5274
5274
|
},
|
|
5275
5275
|
children: "Not set"
|
|
5276
|
-
}) : /* @__PURE__ */ N(
|
|
5276
|
+
}) : /* @__PURE__ */ N(Y, {
|
|
5277
5277
|
value: i,
|
|
5278
5278
|
onChange: (e) => {
|
|
5279
5279
|
a(e), o && e === "" ? n?.(s ? _r : "") : n?.(e);
|
|
@@ -5300,7 +5300,7 @@ function br({ value: e, mode: t, onChange: n }) {
|
|
|
5300
5300
|
flexWrap: "wrap",
|
|
5301
5301
|
gap: 4
|
|
5302
5302
|
},
|
|
5303
|
-
children: r.map((e, t) => /* @__PURE__ */ N(
|
|
5303
|
+
children: r.map((e, t) => /* @__PURE__ */ N(be, {
|
|
5304
5304
|
tone: "slate",
|
|
5305
5305
|
children: e
|
|
5306
5306
|
}, t))
|
|
@@ -5323,7 +5323,7 @@ function br({ value: e, mode: t, onChange: n }) {
|
|
|
5323
5323
|
flexWrap: "wrap",
|
|
5324
5324
|
gap: 4
|
|
5325
5325
|
},
|
|
5326
|
-
children: r.map((e, t) => /* @__PURE__ */ N(
|
|
5326
|
+
children: r.map((e, t) => /* @__PURE__ */ N(be, {
|
|
5327
5327
|
tone: "slate",
|
|
5328
5328
|
onRemove: () => s(t),
|
|
5329
5329
|
children: e
|
|
@@ -5335,7 +5335,7 @@ function br({ value: e, mode: t, onChange: n }) {
|
|
|
5335
5335
|
},
|
|
5336
5336
|
children: [/* @__PURE__ */ N("div", {
|
|
5337
5337
|
style: { flex: 1 },
|
|
5338
|
-
children: /* @__PURE__ */ N(
|
|
5338
|
+
children: /* @__PURE__ */ N(J, {
|
|
5339
5339
|
value: i,
|
|
5340
5340
|
onChange: a,
|
|
5341
5341
|
onKeyDown: (e) => {
|
|
@@ -5370,7 +5370,7 @@ function Sr({ value: e, mode: t, onChange: n }) {
|
|
|
5370
5370
|
flexWrap: "wrap",
|
|
5371
5371
|
gap: 4
|
|
5372
5372
|
},
|
|
5373
|
-
children: r.map((e, t) => /* @__PURE__ */ N(
|
|
5373
|
+
children: r.map((e, t) => /* @__PURE__ */ N(be, {
|
|
5374
5374
|
tone: "slate",
|
|
5375
5375
|
children: e
|
|
5376
5376
|
}, t))
|
|
@@ -5395,7 +5395,7 @@ function Sr({ value: e, mode: t, onChange: n }) {
|
|
|
5395
5395
|
flexWrap: "wrap",
|
|
5396
5396
|
gap: 4
|
|
5397
5397
|
},
|
|
5398
|
-
children: r.map((e, t) => /* @__PURE__ */ N(
|
|
5398
|
+
children: r.map((e, t) => /* @__PURE__ */ N(be, {
|
|
5399
5399
|
tone: "slate",
|
|
5400
5400
|
onRemove: () => s(t),
|
|
5401
5401
|
children: e
|
|
@@ -5407,7 +5407,7 @@ function Sr({ value: e, mode: t, onChange: n }) {
|
|
|
5407
5407
|
},
|
|
5408
5408
|
children: [/* @__PURE__ */ N("div", {
|
|
5409
5409
|
style: { flex: 1 },
|
|
5410
|
-
children: /* @__PURE__ */ N(
|
|
5410
|
+
children: /* @__PURE__ */ N(J, {
|
|
5411
5411
|
type: "number",
|
|
5412
5412
|
value: i,
|
|
5413
5413
|
onChange: a,
|
|
@@ -5597,7 +5597,7 @@ function Gr({ param: e, value: t, onChange: n, statusGroups: r }) {
|
|
|
5597
5597
|
label: X(t.name) || e
|
|
5598
5598
|
}))];
|
|
5599
5599
|
}, [r, e.required]);
|
|
5600
|
-
return /* @__PURE__ */ N(
|
|
5600
|
+
return /* @__PURE__ */ N(ke, {
|
|
5601
5601
|
value: typeof t == "string" ? t : "",
|
|
5602
5602
|
options: i,
|
|
5603
5603
|
onChange: (e) => n(e),
|
|
@@ -5624,7 +5624,7 @@ function Kr({ param: e, value: t, onChange: n, statusGroups: r, formData: i }) {
|
|
|
5624
5624
|
value: e.code,
|
|
5625
5625
|
label: X(e.name) || e.code
|
|
5626
5626
|
}))], [a]);
|
|
5627
|
-
return /* @__PURE__ */ N(
|
|
5627
|
+
return /* @__PURE__ */ N(ke, {
|
|
5628
5628
|
value: typeof t == "string" ? t : "",
|
|
5629
5629
|
options: o,
|
|
5630
5630
|
onChange: (e) => n(e),
|
|
@@ -5768,7 +5768,7 @@ function qr({ open: e, onOpenChange: t, action: n, actionName: r, onSubmit: i, i
|
|
|
5768
5768
|
mode: "edit",
|
|
5769
5769
|
onChange: (t) => _(e, t)
|
|
5770
5770
|
}), /* @__PURE__ */ P("div", { children: [
|
|
5771
|
-
/* @__PURE__ */ N(
|
|
5771
|
+
/* @__PURE__ */ N(q, {
|
|
5772
5772
|
required: t.required,
|
|
5773
5773
|
children: n
|
|
5774
5774
|
}),
|
|
@@ -5803,7 +5803,7 @@ function qr({ open: e, onOpenChange: t, action: n, actionName: r, onSubmit: i, i
|
|
|
5803
5803
|
}),
|
|
5804
5804
|
/* @__PURE__ */ N(V, {
|
|
5805
5805
|
kind: "primary",
|
|
5806
|
-
icon: N(a ?
|
|
5806
|
+
icon: N(a ? Ee : B.bolt, { size: 13 }),
|
|
5807
5807
|
onClick: v,
|
|
5808
5808
|
disabled: a,
|
|
5809
5809
|
children: a ? "Executing…" : "Execute"
|
|
@@ -6080,7 +6080,7 @@ function ti({ state: e, onClose: t, onExecute: n }) {
|
|
|
6080
6080
|
/* @__PURE__ */ N(V, {
|
|
6081
6081
|
kind: "primary",
|
|
6082
6082
|
danger: l,
|
|
6083
|
-
icon: N(a ?
|
|
6083
|
+
icon: N(a ? Ee : B.bolt, { size: 13 }),
|
|
6084
6084
|
onClick: async () => {
|
|
6085
6085
|
o(!0);
|
|
6086
6086
|
try {
|
|
@@ -6465,7 +6465,7 @@ function vi(e, t, n) {
|
|
|
6465
6465
|
if (e) return e;
|
|
6466
6466
|
}
|
|
6467
6467
|
};
|
|
6468
|
-
for (let t of e) {
|
|
6468
|
+
for (let t of e ?? []) {
|
|
6469
6469
|
let e = i(t, t.area || hi);
|
|
6470
6470
|
if (e) return e;
|
|
6471
6471
|
}
|
|
@@ -6486,7 +6486,7 @@ function yi(e, t, n, r, i, a) {
|
|
|
6486
6486
|
}
|
|
6487
6487
|
return null;
|
|
6488
6488
|
}, s = null;
|
|
6489
|
-
for (let t of e) if (s = o(t, []), s) break;
|
|
6489
|
+
for (let t of e ?? []) if (s = o(t, []), s) break;
|
|
6490
6490
|
if (!s || s.length === 0) return [];
|
|
6491
6491
|
let c = [];
|
|
6492
6492
|
for (let e = 0; e < s.length; e++) {
|
|
@@ -7030,7 +7030,7 @@ function Di() {
|
|
|
7030
7030
|
gap: 12
|
|
7031
7031
|
},
|
|
7032
7032
|
children: [
|
|
7033
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7033
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Email" }), /* @__PURE__ */ N(J, {
|
|
7034
7034
|
value: a,
|
|
7035
7035
|
onChange: o,
|
|
7036
7036
|
prefix: /* @__PURE__ */ N(B.email, { size: 13 }),
|
|
@@ -7044,7 +7044,7 @@ function Di() {
|
|
|
7044
7044
|
alignItems: "center"
|
|
7045
7045
|
},
|
|
7046
7046
|
children: [
|
|
7047
|
-
/* @__PURE__ */ N(
|
|
7047
|
+
/* @__PURE__ */ N(q, { children: "Password" }),
|
|
7048
7048
|
/* @__PURE__ */ N("div", { style: { flex: 1 } }),
|
|
7049
7049
|
/* @__PURE__ */ N(h, {
|
|
7050
7050
|
to: "/forgot",
|
|
@@ -7057,7 +7057,7 @@ function Di() {
|
|
|
7057
7057
|
children: "Forgot?"
|
|
7058
7058
|
})
|
|
7059
7059
|
]
|
|
7060
|
-
}), /* @__PURE__ */ N(
|
|
7060
|
+
}), /* @__PURE__ */ N(Y, {
|
|
7061
7061
|
value: s,
|
|
7062
7062
|
onChange: c,
|
|
7063
7063
|
placeholder: "Your password"
|
|
@@ -7170,28 +7170,28 @@ function Oi() {
|
|
|
7170
7170
|
gridTemplateColumns: "1fr 1fr",
|
|
7171
7171
|
gap: 10
|
|
7172
7172
|
},
|
|
7173
|
-
children: [/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7173
|
+
children: [/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "First name" }), /* @__PURE__ */ N(J, {
|
|
7174
7174
|
value: i,
|
|
7175
7175
|
onChange: a
|
|
7176
|
-
})] }), /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7176
|
+
})] }), /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Last name" }), /* @__PURE__ */ N(J, {
|
|
7177
7177
|
value: o,
|
|
7178
7178
|
onChange: s
|
|
7179
7179
|
})] })]
|
|
7180
7180
|
}),
|
|
7181
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7181
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Work email" }), /* @__PURE__ */ N(J, {
|
|
7182
7182
|
value: c,
|
|
7183
7183
|
onChange: u,
|
|
7184
7184
|
prefix: /* @__PURE__ */ N(B.email, { size: 13 }),
|
|
7185
7185
|
placeholder: "name@company.com",
|
|
7186
7186
|
required: !0
|
|
7187
7187
|
})] }),
|
|
7188
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7188
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Company" }), /* @__PURE__ */ N(J, {
|
|
7189
7189
|
value: d,
|
|
7190
7190
|
onChange: f,
|
|
7191
7191
|
prefix: /* @__PURE__ */ N(B.building, { size: 13 }),
|
|
7192
7192
|
placeholder: "Acme, Inc."
|
|
7193
7193
|
})] }),
|
|
7194
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7194
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Workspace URL" }), /* @__PURE__ */ P("div", {
|
|
7195
7195
|
style: {
|
|
7196
7196
|
display: "flex",
|
|
7197
7197
|
alignItems: "stretch",
|
|
@@ -7199,7 +7199,7 @@ function Oi() {
|
|
|
7199
7199
|
borderRadius: 6,
|
|
7200
7200
|
overflow: "hidden"
|
|
7201
7201
|
},
|
|
7202
|
-
children: [/* @__PURE__ */ N(
|
|
7202
|
+
children: [/* @__PURE__ */ N(J, {
|
|
7203
7203
|
value: m,
|
|
7204
7204
|
onChange: g,
|
|
7205
7205
|
style: {
|
|
@@ -7220,7 +7220,7 @@ function Oi() {
|
|
|
7220
7220
|
children: ".declarion.app"
|
|
7221
7221
|
})]
|
|
7222
7222
|
})] }),
|
|
7223
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7223
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Password" }), /* @__PURE__ */ N(Y, {
|
|
7224
7224
|
value: _,
|
|
7225
7225
|
onChange: v,
|
|
7226
7226
|
placeholder: "At least 12 characters",
|
|
@@ -7347,7 +7347,7 @@ function ki() {
|
|
|
7347
7347
|
gap: 12
|
|
7348
7348
|
},
|
|
7349
7349
|
children: [
|
|
7350
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7350
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, { children: "Email" }), /* @__PURE__ */ N(J, {
|
|
7351
7351
|
value: e,
|
|
7352
7352
|
onChange: t,
|
|
7353
7353
|
prefix: /* @__PURE__ */ N(B.email, { size: 13 }),
|
|
@@ -7644,27 +7644,27 @@ function Ni({ open: e, onClose: t, onSubmit: n }) {
|
|
|
7644
7644
|
gap: 12
|
|
7645
7645
|
},
|
|
7646
7646
|
children: [
|
|
7647
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7647
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, {
|
|
7648
7648
|
required: !0,
|
|
7649
7649
|
children: "Current password"
|
|
7650
|
-
}), /* @__PURE__ */ N(
|
|
7650
|
+
}), /* @__PURE__ */ N(Y, {
|
|
7651
7651
|
value: r,
|
|
7652
7652
|
onChange: i,
|
|
7653
7653
|
placeholder: "Enter your current password"
|
|
7654
7654
|
})] }),
|
|
7655
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7655
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, {
|
|
7656
7656
|
required: !0,
|
|
7657
7657
|
children: "New password"
|
|
7658
|
-
}), /* @__PURE__ */ N(
|
|
7658
|
+
}), /* @__PURE__ */ N(Y, {
|
|
7659
7659
|
value: a,
|
|
7660
7660
|
onChange: o,
|
|
7661
7661
|
placeholder: "At least 8 characters",
|
|
7662
7662
|
showStrength: !0
|
|
7663
7663
|
})] }),
|
|
7664
|
-
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
7664
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(q, {
|
|
7665
7665
|
required: !0,
|
|
7666
7666
|
children: "Confirm new password"
|
|
7667
|
-
}), /* @__PURE__ */ N(
|
|
7667
|
+
}), /* @__PURE__ */ N(Y, {
|
|
7668
7668
|
value: s,
|
|
7669
7669
|
onChange: c,
|
|
7670
7670
|
placeholder: "Re-enter new password"
|
|
@@ -7708,7 +7708,7 @@ function Ni({ open: e, onClose: t, onSubmit: n }) {
|
|
|
7708
7708
|
}),
|
|
7709
7709
|
/* @__PURE__ */ N(V, {
|
|
7710
7710
|
kind: "primary",
|
|
7711
|
-
icon: N(l ?
|
|
7711
|
+
icon: N(l ? Ee : B.key, { size: 13 }),
|
|
7712
7712
|
onClick: async () => {
|
|
7713
7713
|
if (!g) {
|
|
7714
7714
|
a.length < 8 ? f("New password must be at least 8 characters.") : f(s === a ? "Fill in all fields." : "Passwords do not match.");
|
|
@@ -7843,7 +7843,7 @@ function Pi() {
|
|
|
7843
7843
|
gap: 14
|
|
7844
7844
|
},
|
|
7845
7845
|
children: [
|
|
7846
|
-
/* @__PURE__ */ N(
|
|
7846
|
+
/* @__PURE__ */ N(xe, {
|
|
7847
7847
|
title: "Personal info",
|
|
7848
7848
|
icon: /* @__PURE__ */ N(B.users, { size: 14 }),
|
|
7849
7849
|
children: /* @__PURE__ */ P("div", {
|
|
@@ -7890,7 +7890,7 @@ function Pi() {
|
|
|
7890
7890
|
]
|
|
7891
7891
|
})
|
|
7892
7892
|
}),
|
|
7893
|
-
/* @__PURE__ */ N(
|
|
7893
|
+
/* @__PURE__ */ N(xe, {
|
|
7894
7894
|
title: "Security",
|
|
7895
7895
|
icon: /* @__PURE__ */ N(B.shield, { size: 14 }),
|
|
7896
7896
|
children: /* @__PURE__ */ P("div", {
|
|
@@ -7943,7 +7943,7 @@ function Pi() {
|
|
|
7943
7943
|
]
|
|
7944
7944
|
})
|
|
7945
7945
|
}),
|
|
7946
|
-
/* @__PURE__ */ N(
|
|
7946
|
+
/* @__PURE__ */ N(xe, {
|
|
7947
7947
|
title: "Access",
|
|
7948
7948
|
icon: /* @__PURE__ */ N(B.key, { size: 14 }),
|
|
7949
7949
|
children: /* @__PURE__ */ P("div", {
|
|
@@ -7970,7 +7970,7 @@ function Pi() {
|
|
|
7970
7970
|
gap: 4,
|
|
7971
7971
|
flexWrap: "wrap"
|
|
7972
7972
|
},
|
|
7973
|
-
children: t.roles.map((e) => /* @__PURE__ */ N(
|
|
7973
|
+
children: t.roles.map((e) => /* @__PURE__ */ N(be, { children: e }, e))
|
|
7974
7974
|
}) : /* @__PURE__ */ N("span", {
|
|
7975
7975
|
style: { color: "var(--text-4)" },
|
|
7976
7976
|
children: "—"
|
|
@@ -7997,7 +7997,7 @@ function Pi() {
|
|
|
7997
7997
|
]
|
|
7998
7998
|
})
|
|
7999
7999
|
}),
|
|
8000
|
-
/* @__PURE__ */ N(
|
|
8000
|
+
/* @__PURE__ */ N(xe, {
|
|
8001
8001
|
title: "Notifications",
|
|
8002
8002
|
icon: /* @__PURE__ */ N(B.bell, { size: 14 }),
|
|
8003
8003
|
children: /* @__PURE__ */ N("div", {
|
|
@@ -8232,7 +8232,7 @@ function Vi() {
|
|
|
8232
8232
|
]
|
|
8233
8233
|
})]
|
|
8234
8234
|
}),
|
|
8235
|
-
/* @__PURE__ */ N(
|
|
8235
|
+
/* @__PURE__ */ N(xe, {
|
|
8236
8236
|
title: "Appearance",
|
|
8237
8237
|
icon: /* @__PURE__ */ N(B.moon, { size: 14 }),
|
|
8238
8238
|
children: /* @__PURE__ */ P("div", {
|
|
@@ -8326,7 +8326,7 @@ function Vi() {
|
|
|
8326
8326
|
})
|
|
8327
8327
|
}),
|
|
8328
8328
|
/* @__PURE__ */ N("div", { style: { height: 12 } }),
|
|
8329
|
-
/* @__PURE__ */ N(
|
|
8329
|
+
/* @__PURE__ */ N(xe, {
|
|
8330
8330
|
title: "Keyboard",
|
|
8331
8331
|
icon: /* @__PURE__ */ N(B.command, { size: 14 }),
|
|
8332
8332
|
children: /* @__PURE__ */ N("div", {
|
|
@@ -9604,7 +9604,7 @@ function ja({ record: e, title: t, recordId: n, avatarName: r, fields: i, refs:
|
|
|
9604
9604
|
}),
|
|
9605
9605
|
onClick: () => x(!b),
|
|
9606
9606
|
children: "Actions"
|
|
9607
|
-
}), /* @__PURE__ */ N(
|
|
9607
|
+
}), /* @__PURE__ */ N(ye, {
|
|
9608
9608
|
open: b,
|
|
9609
9609
|
anchor: S.current,
|
|
9610
9610
|
onClose: () => x(!1),
|
|
@@ -9771,7 +9771,7 @@ function La({ count: e, actions: t, onClear: n, onDelete: r, onExport: i }) {
|
|
|
9771
9771
|
onMouseEnter: (e) => e.currentTarget.style.background = "var(--inverted-overlay)",
|
|
9772
9772
|
onMouseLeave: (e) => e.currentTarget.style.background = "transparent",
|
|
9773
9773
|
children: [/* @__PURE__ */ N(B.more, { size: 13 }), " More"]
|
|
9774
|
-
}), /* @__PURE__ */ P(
|
|
9774
|
+
}), /* @__PURE__ */ P(ye, {
|
|
9775
9775
|
open: a,
|
|
9776
9776
|
anchor: s.current,
|
|
9777
9777
|
onClose: () => o(!1),
|
|
@@ -9857,7 +9857,7 @@ function za({ filters: e, onRemove: t, onClearAll: n, onChipClick: r, fieldLabel
|
|
|
9857
9857
|
padding: "0 4px"
|
|
9858
9858
|
},
|
|
9859
9859
|
children: "OR"
|
|
9860
|
-
}), /* @__PURE__ */ N(
|
|
9860
|
+
}), /* @__PURE__ */ N(be, {
|
|
9861
9861
|
tone: "slate",
|
|
9862
9862
|
onClick: r,
|
|
9863
9863
|
children: e.filter((e) => e.field && e.op).map((e) => `${i(e.field)} ${Va(e)}`).join(" AND ")
|
|
@@ -9898,7 +9898,7 @@ function za({ filters: e, onRemove: t, onClearAll: n, onChipClick: r, fieldLabel
|
|
|
9898
9898
|
});
|
|
9899
9899
|
}
|
|
9900
9900
|
function Ba({ node: e, fieldLabel: t, onRemove: n, onClick: r }) {
|
|
9901
|
-
return /* @__PURE__ */ N(
|
|
9901
|
+
return /* @__PURE__ */ N(be, {
|
|
9902
9902
|
tone: "slate",
|
|
9903
9903
|
icon: /* @__PURE__ */ N(B.filter, { size: 11 }),
|
|
9904
9904
|
onClick: r,
|
|
@@ -10129,12 +10129,12 @@ function Ua({ node: e, meta: t, onUpdate: n, onRemove: r }) {
|
|
|
10129
10129
|
title: t.label,
|
|
10130
10130
|
children: t.label
|
|
10131
10131
|
}),
|
|
10132
|
-
/* @__PURE__ */ N(
|
|
10132
|
+
/* @__PURE__ */ N(ke, {
|
|
10133
10133
|
value: e.op ?? a[0]?.value,
|
|
10134
10134
|
options: a,
|
|
10135
10135
|
onChange: (e) => n({ op: e })
|
|
10136
10136
|
}),
|
|
10137
|
-
i ? /* @__PURE__ */ N("span", {}) : t.options ? /* @__PURE__ */ N(
|
|
10137
|
+
i ? /* @__PURE__ */ N("span", {}) : t.options ? /* @__PURE__ */ N(ke, {
|
|
10138
10138
|
value: String(e.value ?? ""),
|
|
10139
10139
|
options: t.options.map((e) => ({
|
|
10140
10140
|
value: e.value,
|
|
@@ -10142,7 +10142,7 @@ function Ua({ node: e, meta: t, onUpdate: n, onRemove: r }) {
|
|
|
10142
10142
|
})),
|
|
10143
10143
|
onChange: (e) => n({ value: e }),
|
|
10144
10144
|
placeholder: "Select…"
|
|
10145
|
-
}) : /* @__PURE__ */ N(
|
|
10145
|
+
}) : /* @__PURE__ */ N(J, {
|
|
10146
10146
|
value: String(e.value ?? ""),
|
|
10147
10147
|
onChange: (e) => n({ value: e }),
|
|
10148
10148
|
placeholder: "Value…"
|
|
@@ -10261,7 +10261,7 @@ function Ga({ fields: e, activeFields: t, onSelect: n, onCancel: r }) {
|
|
|
10261
10261
|
gap: 6
|
|
10262
10262
|
},
|
|
10263
10263
|
children: [
|
|
10264
|
-
/* @__PURE__ */ N(
|
|
10264
|
+
/* @__PURE__ */ N(J, {
|
|
10265
10265
|
value: i,
|
|
10266
10266
|
onChange: a,
|
|
10267
10267
|
placeholder: "Search fields…",
|
|
@@ -10329,7 +10329,7 @@ function Ka({ availableColumns: e, visibleColumns: t, onToggle: n, onReset: r, o
|
|
|
10329
10329
|
onClick: () => c(!s),
|
|
10330
10330
|
active: s,
|
|
10331
10331
|
children: "Columns"
|
|
10332
|
-
}), /* @__PURE__ */ P(
|
|
10332
|
+
}), /* @__PURE__ */ P(ye, {
|
|
10333
10333
|
open: s,
|
|
10334
10334
|
anchor: o.current,
|
|
10335
10335
|
onClose: () => c(!1),
|
|
@@ -10423,7 +10423,7 @@ function Ja({ views: e, activeViewId: t, isDirty: n, onSelect: r, onSave: i, onS
|
|
|
10423
10423
|
/* @__PURE__ */ N(B.down, { size: 11 })
|
|
10424
10424
|
]
|
|
10425
10425
|
}),
|
|
10426
|
-
/* @__PURE__ */ P(
|
|
10426
|
+
/* @__PURE__ */ P(ye, {
|
|
10427
10427
|
open: s,
|
|
10428
10428
|
anchor: o.current,
|
|
10429
10429
|
onClose: () => c(!1),
|
|
@@ -10623,7 +10623,14 @@ function eo({ screenCode: e }) {
|
|
|
10623
10623
|
}, [n, T?.columns]), pe = d(() => {
|
|
10624
10624
|
let e = [], t = [...T?.columns ?? [], ...fe];
|
|
10625
10625
|
return t.some((e) => e.startsWith("$status.")) && e.push("statuses"), t.some((e) => e.startsWith("$property.")) && e.push("properties"), e.length > 0 && e.unshift("refs"), e.length > 0 ? e : void 0;
|
|
10626
|
-
}, [T?.columns, fe]),
|
|
10626
|
+
}, [T?.columns, fe]), me = d(() => {
|
|
10627
|
+
let e = fe.filter((e) => e && !e.startsWith("$"));
|
|
10628
|
+
if (ue) {
|
|
10629
|
+
let t = ue.split(":")[0];
|
|
10630
|
+
t && !t.startsWith("$") && !e.includes(t) && e.push(t);
|
|
10631
|
+
}
|
|
10632
|
+
return e.length > 0 ? e : void 0;
|
|
10633
|
+
}, [fe, ue]), { data: he, isLoading: ge, isError: z } = tr(D, {
|
|
10627
10634
|
page: ce,
|
|
10628
10635
|
per_page: 50,
|
|
10629
10636
|
sort: ue || void 0,
|
|
@@ -10631,17 +10638,18 @@ function eo({ screenCode: e }) {
|
|
|
10631
10638
|
filters: v.length > 0 ? v : void 0,
|
|
10632
10639
|
include_deleted: R || void 0,
|
|
10633
10640
|
expand: pe,
|
|
10641
|
+
select: me,
|
|
10634
10642
|
screen: T?.fixed_filters ? e : void 0
|
|
10635
|
-
}),
|
|
10643
|
+
}), ve = Qi(D ?? ""), ye = Zi(D ?? ""), be = d(() => {
|
|
10636
10644
|
if (!ue) return [];
|
|
10637
10645
|
let [e, t] = ue.split(":");
|
|
10638
10646
|
return [{
|
|
10639
10647
|
id: e,
|
|
10640
10648
|
desc: t === "desc"
|
|
10641
10649
|
}];
|
|
10642
|
-
}, [ue]),
|
|
10643
|
-
|
|
10644
|
-
let [
|
|
10650
|
+
}, [ue]), xe = d(() => E?.fields.names().find((e) => E.fields.get(e)?.primary) ?? "id", [E]), Se = he?.$refs, Ce = f(Se);
|
|
10651
|
+
Ce.current = Se;
|
|
10652
|
+
let [W, G] = p(null), we = T?.on_row_click === "peek" && T.quick_peek?.enabled !== !1, Ee = d(() => {
|
|
10645
10653
|
if (fe.length === 0 || !E) return [];
|
|
10646
10654
|
let e = [];
|
|
10647
10655
|
I && e.push({
|
|
@@ -10717,7 +10725,7 @@ function eo({ screenCode: e }) {
|
|
|
10717
10725
|
value: e(),
|
|
10718
10726
|
mode: "display",
|
|
10719
10727
|
record: r.original,
|
|
10720
|
-
refs:
|
|
10728
|
+
refs: Ce.current
|
|
10721
10729
|
})
|
|
10722
10730
|
});
|
|
10723
10731
|
}
|
|
@@ -10728,7 +10736,7 @@ function eo({ screenCode: e }) {
|
|
|
10728
10736
|
size: 40,
|
|
10729
10737
|
cell: ({ row: e }) => /* @__PURE__ */ N(ro, {
|
|
10730
10738
|
row: e.original,
|
|
10731
|
-
rowId: String(e.original[
|
|
10739
|
+
rowId: String(e.original[xe] ?? ""),
|
|
10732
10740
|
screen: T,
|
|
10733
10741
|
entity: E,
|
|
10734
10742
|
entityCode: D,
|
|
@@ -10740,7 +10748,7 @@ function eo({ screenCode: e }) {
|
|
|
10740
10748
|
ids: e,
|
|
10741
10749
|
confirmation: t
|
|
10742
10750
|
}),
|
|
10743
|
-
onPeek:
|
|
10751
|
+
onPeek: we ? () => G(e.original) : void 0
|
|
10744
10752
|
})
|
|
10745
10753
|
}), e;
|
|
10746
10754
|
}, [
|
|
@@ -10752,19 +10760,19 @@ function eo({ screenCode: e }) {
|
|
|
10752
10760
|
A,
|
|
10753
10761
|
F,
|
|
10754
10762
|
D,
|
|
10755
|
-
|
|
10756
|
-
]), q =
|
|
10763
|
+
xe
|
|
10764
|
+
]), q = he?.data ?? [], De = he?.meta, Oe = re({
|
|
10757
10765
|
data: q,
|
|
10758
|
-
columns:
|
|
10766
|
+
columns: Ee,
|
|
10759
10767
|
getCoreRowModel: ne(),
|
|
10760
10768
|
manualSorting: !0,
|
|
10761
10769
|
manualPagination: !0,
|
|
10762
10770
|
state: {
|
|
10763
|
-
sorting:
|
|
10771
|
+
sorting: be,
|
|
10764
10772
|
rowSelection: c
|
|
10765
10773
|
},
|
|
10766
10774
|
onSortingChange: (e) => {
|
|
10767
|
-
let t = typeof e == "function" ? e(
|
|
10775
|
+
let t = typeof e == "function" ? e(be) : e, i = new URLSearchParams(n);
|
|
10768
10776
|
if (t.length === 0) i.delete("sort");
|
|
10769
10777
|
else {
|
|
10770
10778
|
let e = t[0];
|
|
@@ -10773,9 +10781,9 @@ function eo({ screenCode: e }) {
|
|
|
10773
10781
|
i.set("page", "1"), r(i);
|
|
10774
10782
|
},
|
|
10775
10783
|
onRowSelectionChange: u,
|
|
10776
|
-
getRowId: (e) => String(e[
|
|
10777
|
-
rowCount:
|
|
10778
|
-
}),
|
|
10784
|
+
getRowId: (e) => String(e[xe] ?? ""),
|
|
10785
|
+
rowCount: De?.total ?? 0
|
|
10786
|
+
}), ke = d(() => Object.keys(c).filter((e) => c[e]), [c]);
|
|
10779
10787
|
l(() => {
|
|
10780
10788
|
u({});
|
|
10781
10789
|
}, [
|
|
@@ -10794,35 +10802,35 @@ function eo({ screenCode: e }) {
|
|
|
10794
10802
|
};
|
|
10795
10803
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
10796
10804
|
}, []);
|
|
10797
|
-
let
|
|
10798
|
-
count:
|
|
10799
|
-
getScrollElement: () =>
|
|
10805
|
+
let Ae = f(null), { rows: je } = Oe.getRowModel(), Me = Q((e) => e.density), Ne = Q((e) => e.zebra), Y = ie({
|
|
10806
|
+
count: je.length,
|
|
10807
|
+
getScrollElement: () => Ae.current,
|
|
10800
10808
|
estimateSize: () => 48,
|
|
10801
10809
|
overscan: 10
|
|
10802
10810
|
});
|
|
10803
10811
|
l(() => {
|
|
10804
|
-
|
|
10805
|
-
}, [
|
|
10806
|
-
let
|
|
10812
|
+
Y.measure();
|
|
10813
|
+
}, [Me, Y]);
|
|
10814
|
+
let Pe = s((e) => {
|
|
10807
10815
|
r((t) => {
|
|
10808
10816
|
let n = new URLSearchParams(t);
|
|
10809
10817
|
return e ? n.set("search", e) : n.delete("search"), n.set("page", "1"), n;
|
|
10810
10818
|
});
|
|
10811
|
-
}, [r]),
|
|
10819
|
+
}, [r]), Fe = s(() => {
|
|
10812
10820
|
r((e) => {
|
|
10813
10821
|
let t = new URLSearchParams(e);
|
|
10814
10822
|
return t.get("include_deleted") ? t.delete("include_deleted") : t.set("include_deleted", "true"), t.set("page", "1"), t;
|
|
10815
10823
|
});
|
|
10816
|
-
}, [r]),
|
|
10824
|
+
}, [r]), Ie = s((e) => {
|
|
10817
10825
|
r((t) => {
|
|
10818
10826
|
let n = new URLSearchParams(t);
|
|
10819
10827
|
return n.set("page", String(e)), n;
|
|
10820
10828
|
});
|
|
10821
|
-
}, [r]),
|
|
10829
|
+
}, [r]), Le = d(() => !T || !E ? !1 : $a(T, "_", E, i?.screens) !== null, [
|
|
10822
10830
|
T,
|
|
10823
10831
|
E,
|
|
10824
10832
|
i?.screens
|
|
10825
|
-
]),
|
|
10833
|
+
]), Re = s((e, n) => {
|
|
10826
10834
|
if (!E || !T) return;
|
|
10827
10835
|
let r = E.fields.names()?.find((e) => E.fields.get(e)?.primary), a = r ? String(e[r] ?? "") : "";
|
|
10828
10836
|
if (!a) return;
|
|
@@ -10843,14 +10851,14 @@ function eo({ screenCode: e }) {
|
|
|
10843
10851
|
T,
|
|
10844
10852
|
i,
|
|
10845
10853
|
t
|
|
10846
|
-
]),
|
|
10847
|
-
if (
|
|
10848
|
-
|
|
10854
|
+
]), ze = s((e) => {
|
|
10855
|
+
if (we) {
|
|
10856
|
+
G(e);
|
|
10849
10857
|
return;
|
|
10850
10858
|
}
|
|
10851
|
-
|
|
10852
|
-
}, [
|
|
10853
|
-
if (!
|
|
10859
|
+
Re(e);
|
|
10860
|
+
}, [we, Re]), Ve = d(() => {
|
|
10861
|
+
if (!we || !E || !W) return [];
|
|
10854
10862
|
let e = T?.quick_peek?.fields, t = T?.quick_peek?.sections, n;
|
|
10855
10863
|
if (e && e.length > 0) n = e.filter((e) => E.fields.get(e));
|
|
10856
10864
|
else if (t && t.length > 0) {
|
|
@@ -10877,18 +10885,18 @@ function eo({ screenCode: e }) {
|
|
|
10877
10885
|
};
|
|
10878
10886
|
});
|
|
10879
10887
|
}, [
|
|
10880
|
-
|
|
10881
|
-
|
|
10888
|
+
we,
|
|
10889
|
+
W,
|
|
10882
10890
|
E,
|
|
10883
10891
|
T,
|
|
10884
10892
|
i?.entities
|
|
10885
|
-
]),
|
|
10886
|
-
let r = E?.fields.names().find((e) => E.fields.get(e)?.primary), i = r &&
|
|
10893
|
+
]), He = d(() => E?.actions ? E.actions : {}, [E?.actions]), Ue = s(async (e, t, n) => {
|
|
10894
|
+
let r = E?.fields.names().find((e) => E.fields.get(e)?.primary), i = r && W ? [String(W[r] ?? "")] : void 0;
|
|
10887
10895
|
return $n(t.entity ? `${t.entity}.${e}` : e, Qn(n, i));
|
|
10888
|
-
}, [E,
|
|
10896
|
+
}, [E, W]), We = s(async () => {
|
|
10889
10897
|
if (!a || a.ids.length === 0) return;
|
|
10890
10898
|
o(null);
|
|
10891
|
-
let e = await Promise.allSettled(a.ids.map((e) =>
|
|
10899
|
+
let e = await Promise.allSettled(a.ids.map((e) => ve.mutateAsync(e))), t = e.filter((e) => e.status === "rejected").length;
|
|
10892
10900
|
if (t === 0) u({});
|
|
10893
10901
|
else if (t < a.ids.length) {
|
|
10894
10902
|
let n = new Set(a.ids.filter((t, n) => e[n].status === "fulfilled"));
|
|
@@ -10898,9 +10906,9 @@ function eo({ screenCode: e }) {
|
|
|
10898
10906
|
return t;
|
|
10899
10907
|
}), j.warning(`${t} of ${a.ids.length} deletes failed`);
|
|
10900
10908
|
}
|
|
10901
|
-
}, [a,
|
|
10909
|
+
}, [a, ve]);
|
|
10902
10910
|
if (!T || !E) return null;
|
|
10903
|
-
let
|
|
10911
|
+
let Ge = E.display, Ke = X(T.display?.name) || X(Ge.name), qe = T.display?.icon || Ge.icon;
|
|
10904
10912
|
return /* @__PURE__ */ P("div", {
|
|
10905
10913
|
style: {
|
|
10906
10914
|
display: "flex",
|
|
@@ -10911,18 +10919,18 @@ function eo({ screenCode: e }) {
|
|
|
10911
10919
|
children: [
|
|
10912
10920
|
/* @__PURE__ */ P(M, { children: [
|
|
10913
10921
|
/* @__PURE__ */ N(io, {
|
|
10914
|
-
title:
|
|
10915
|
-
total:
|
|
10922
|
+
title: Ke,
|
|
10923
|
+
total: De?.total,
|
|
10916
10924
|
loaded: q.length,
|
|
10917
10925
|
screenRoute: T.route,
|
|
10918
|
-
entityName: X(
|
|
10919
|
-
screenIcon:
|
|
10926
|
+
entityName: X(Ge.name),
|
|
10927
|
+
screenIcon: qe,
|
|
10920
10928
|
readonly: !!E?.readonly,
|
|
10921
10929
|
screenHasExplicitActions: T.actions !== void 0,
|
|
10922
10930
|
toolbarActions: k,
|
|
10923
|
-
selectedIds:
|
|
10931
|
+
selectedIds: ke,
|
|
10924
10932
|
data: q,
|
|
10925
|
-
pkField:
|
|
10933
|
+
pkField: xe,
|
|
10926
10934
|
entityCode: D,
|
|
10927
10935
|
onOpenDelete: (e, t) => o({
|
|
10928
10936
|
ids: e,
|
|
@@ -10959,10 +10967,10 @@ function eo({ screenCode: e }) {
|
|
|
10959
10967
|
position: "relative",
|
|
10960
10968
|
width: 260
|
|
10961
10969
|
},
|
|
10962
|
-
children: [/* @__PURE__ */ N(
|
|
10970
|
+
children: [/* @__PURE__ */ N(J, {
|
|
10963
10971
|
value: le,
|
|
10964
|
-
onChange:
|
|
10965
|
-
placeholder: `Search ${
|
|
10972
|
+
onChange: Pe,
|
|
10973
|
+
placeholder: `Search ${Ke.toLowerCase()}…`,
|
|
10966
10974
|
prefix: /* @__PURE__ */ N(B.search, { size: 13 })
|
|
10967
10975
|
}), /* @__PURE__ */ N("span", {
|
|
10968
10976
|
style: {
|
|
@@ -11022,9 +11030,9 @@ function eo({ screenCode: e }) {
|
|
|
11022
11030
|
/* @__PURE__ */ N(H, {
|
|
11023
11031
|
icon: /* @__PURE__ */ N(B.grid, { size: 14 }),
|
|
11024
11032
|
title: "Density",
|
|
11025
|
-
active:
|
|
11033
|
+
active: Me !== "compact",
|
|
11026
11034
|
onClick: () => {
|
|
11027
|
-
let e =
|
|
11035
|
+
let e = Me === "compact" ? "comfortable" : Me === "comfortable" ? "cozy" : "compact";
|
|
11028
11036
|
Q.getState().setMany({ density: e });
|
|
11029
11037
|
}
|
|
11030
11038
|
}),
|
|
@@ -11033,7 +11041,7 @@ function eo({ screenCode: e }) {
|
|
|
11033
11041
|
kind: "ghost",
|
|
11034
11042
|
size: "sm",
|
|
11035
11043
|
icon: N(R ? B.eyeOff : B.eye, { size: 12 }),
|
|
11036
|
-
onClick:
|
|
11044
|
+
onClick: Fe,
|
|
11037
11045
|
active: R,
|
|
11038
11046
|
children: R ? "Hide deleted" : "Show deleted"
|
|
11039
11047
|
}),
|
|
@@ -11068,7 +11076,7 @@ function eo({ screenCode: e }) {
|
|
|
11068
11076
|
})
|
|
11069
11077
|
})
|
|
11070
11078
|
] }),
|
|
11071
|
-
|
|
11079
|
+
ge ? /* @__PURE__ */ N(aa, { cols: T.columns?.length ?? 4 }) : z ? /* @__PURE__ */ N("div", {
|
|
11072
11080
|
style: { padding: "0 20px" },
|
|
11073
11081
|
children: /* @__PURE__ */ N(na, {
|
|
11074
11082
|
icon: "alert-circle",
|
|
@@ -11078,17 +11086,17 @@ function eo({ screenCode: e }) {
|
|
|
11078
11086
|
}) : q.length === 0 ? /* @__PURE__ */ N("div", {
|
|
11079
11087
|
style: { padding: "0 20px" },
|
|
11080
11088
|
children: /* @__PURE__ */ N(na, {
|
|
11081
|
-
icon:
|
|
11082
|
-
title: de || y > 0 ? "No results found" : `No ${
|
|
11083
|
-
description: de || y > 0 ? "Try adjusting your search or filters" : `Create your first ${X(
|
|
11089
|
+
icon: qe,
|
|
11090
|
+
title: de || y > 0 ? "No results found" : `No ${Ke.toLowerCase()} yet`,
|
|
11091
|
+
description: de || y > 0 ? "Try adjusting your search or filters" : `Create your first ${X(Ge.name).toLowerCase()} to get started`,
|
|
11084
11092
|
action: !de && y === 0 && !E?.readonly ? /* @__PURE__ */ P(V, {
|
|
11085
11093
|
kind: "primary",
|
|
11086
11094
|
icon: /* @__PURE__ */ N(B.plus, { size: 13 }),
|
|
11087
11095
|
onClick: () => t(`${T.route}/new`, {
|
|
11088
|
-
title: `New ${X(
|
|
11089
|
-
icon:
|
|
11096
|
+
title: `New ${X(Ge.name)}`,
|
|
11097
|
+
icon: qe
|
|
11090
11098
|
}),
|
|
11091
|
-
children: ["New ", X(
|
|
11099
|
+
children: ["New ", X(Ge.name)]
|
|
11092
11100
|
}) : void 0
|
|
11093
11101
|
})
|
|
11094
11102
|
}) : /* @__PURE__ */ N("div", {
|
|
@@ -11112,7 +11120,7 @@ function eo({ screenCode: e }) {
|
|
|
11112
11120
|
minHeight: 0
|
|
11113
11121
|
},
|
|
11114
11122
|
children: [/* @__PURE__ */ N("div", {
|
|
11115
|
-
ref:
|
|
11123
|
+
ref: Ae,
|
|
11116
11124
|
style: {
|
|
11117
11125
|
overflow: "auto",
|
|
11118
11126
|
flex: 1,
|
|
@@ -11126,7 +11134,7 @@ function eo({ screenCode: e }) {
|
|
|
11126
11134
|
fontSize: 12.5,
|
|
11127
11135
|
color: "var(--text)"
|
|
11128
11136
|
},
|
|
11129
|
-
children: [/* @__PURE__ */ N("thead", { children:
|
|
11137
|
+
children: [/* @__PURE__ */ N("thead", { children: Oe.getHeaderGroups().map((e) => /* @__PURE__ */ N("tr", {
|
|
11130
11138
|
style: {
|
|
11131
11139
|
height: 32,
|
|
11132
11140
|
background: "var(--surface-2)"
|
|
@@ -11170,18 +11178,18 @@ function eo({ screenCode: e }) {
|
|
|
11170
11178
|
}, e.id);
|
|
11171
11179
|
})
|
|
11172
11180
|
}, e.id)) }), /* @__PURE__ */ P("tbody", { children: [
|
|
11173
|
-
|
|
11174
|
-
style: { height:
|
|
11175
|
-
colSpan:
|
|
11181
|
+
Y.getVirtualItems().length > 0 && /* @__PURE__ */ N("tr", { children: /* @__PURE__ */ N("td", {
|
|
11182
|
+
style: { height: Y.getVirtualItems()[0]?.start ?? 0 },
|
|
11183
|
+
colSpan: Ee.length
|
|
11176
11184
|
}) }),
|
|
11177
|
-
|
|
11178
|
-
let t =
|
|
11185
|
+
Y.getVirtualItems().map((e) => {
|
|
11186
|
+
let t = je[e.index], n = ee && t.original[E.soft_delete] != null, r = t.getIsSelected(), i = Ne && e.index % 2 == 1, a = r ? "var(--row-selected-bg)" : i ? "var(--surface-2)" : "transparent";
|
|
11179
11187
|
return /* @__PURE__ */ N("tr", {
|
|
11180
11188
|
"data-index": e.index,
|
|
11181
|
-
ref: (e) =>
|
|
11189
|
+
ref: (e) => Y.measureElement(e),
|
|
11182
11190
|
style: {
|
|
11183
11191
|
height: "var(--row-h)",
|
|
11184
|
-
cursor:
|
|
11192
|
+
cursor: Le ? "pointer" : "default",
|
|
11185
11193
|
opacity: n ? .5 : 1,
|
|
11186
11194
|
fontStyle: n ? "italic" : "normal",
|
|
11187
11195
|
background: a,
|
|
@@ -11194,9 +11202,9 @@ function eo({ screenCode: e }) {
|
|
|
11194
11202
|
onMouseLeave: (e) => {
|
|
11195
11203
|
e.currentTarget.style.background = a;
|
|
11196
11204
|
},
|
|
11197
|
-
onClick:
|
|
11198
|
-
onDoubleClick:
|
|
11199
|
-
|
|
11205
|
+
onClick: Le ? () => ze(t.original) : void 0,
|
|
11206
|
+
onDoubleClick: Le ? () => {
|
|
11207
|
+
G(null), Re(t.original);
|
|
11200
11208
|
} : void 0,
|
|
11201
11209
|
onContextMenu: (e) => {
|
|
11202
11210
|
e.preventDefault(), _({
|
|
@@ -11229,13 +11237,13 @@ function eo({ screenCode: e }) {
|
|
|
11229
11237
|
})
|
|
11230
11238
|
}, t.id);
|
|
11231
11239
|
}),
|
|
11232
|
-
|
|
11233
|
-
style: { height:
|
|
11234
|
-
colSpan:
|
|
11240
|
+
Y.getVirtualItems().length > 0 && /* @__PURE__ */ N("tr", { children: /* @__PURE__ */ N("td", {
|
|
11241
|
+
style: { height: Y.getTotalSize() - (Y.getVirtualItems().at(-1)?.end ?? 0) },
|
|
11242
|
+
colSpan: Ee.length
|
|
11235
11243
|
}) })
|
|
11236
11244
|
] })]
|
|
11237
11245
|
})
|
|
11238
|
-
}),
|
|
11246
|
+
}), De && /* @__PURE__ */ P("div", {
|
|
11239
11247
|
style: {
|
|
11240
11248
|
display: "flex",
|
|
11241
11249
|
alignItems: "center",
|
|
@@ -11250,9 +11258,9 @@ function eo({ screenCode: e }) {
|
|
|
11250
11258
|
/* @__PURE__ */ P("span", {
|
|
11251
11259
|
className: "num",
|
|
11252
11260
|
children: [
|
|
11253
|
-
|
|
11261
|
+
De.total,
|
|
11254
11262
|
" ",
|
|
11255
|
-
|
|
11263
|
+
De.total === 1 ? "record" : "records"
|
|
11256
11264
|
]
|
|
11257
11265
|
}),
|
|
11258
11266
|
/* @__PURE__ */ N("span", { children: "·" }),
|
|
@@ -11265,7 +11273,7 @@ function eo({ screenCode: e }) {
|
|
|
11265
11273
|
color: "var(--text-2)",
|
|
11266
11274
|
fontWeight: 500
|
|
11267
11275
|
},
|
|
11268
|
-
children:
|
|
11276
|
+
children: ke.length
|
|
11269
11277
|
})
|
|
11270
11278
|
] }),
|
|
11271
11279
|
/* @__PURE__ */ N("div", { style: { flex: 1 } }),
|
|
@@ -11283,7 +11291,7 @@ function eo({ screenCode: e }) {
|
|
|
11283
11291
|
},
|
|
11284
11292
|
children: /* @__PURE__ */ N("option", { children: "50" })
|
|
11285
11293
|
}),
|
|
11286
|
-
|
|
11294
|
+
De.total_pages > 1 && /* @__PURE__ */ P("div", {
|
|
11287
11295
|
style: {
|
|
11288
11296
|
display: "flex",
|
|
11289
11297
|
alignItems: "center",
|
|
@@ -11293,7 +11301,7 @@ function eo({ screenCode: e }) {
|
|
|
11293
11301
|
/* @__PURE__ */ N(H, {
|
|
11294
11302
|
size: 22,
|
|
11295
11303
|
icon: /* @__PURE__ */ N(B.left, { size: 12 }),
|
|
11296
|
-
onClick: () =>
|
|
11304
|
+
onClick: () => Ie(ce - 1),
|
|
11297
11305
|
disabled: ce <= 1
|
|
11298
11306
|
}),
|
|
11299
11307
|
/* @__PURE__ */ P("span", {
|
|
@@ -11301,16 +11309,16 @@ function eo({ screenCode: e }) {
|
|
|
11301
11309
|
style: { padding: "0 6px" },
|
|
11302
11310
|
children: [
|
|
11303
11311
|
"Page ",
|
|
11304
|
-
|
|
11312
|
+
De.page,
|
|
11305
11313
|
" of ",
|
|
11306
|
-
|
|
11314
|
+
De.total_pages
|
|
11307
11315
|
]
|
|
11308
11316
|
}),
|
|
11309
11317
|
/* @__PURE__ */ N(H, {
|
|
11310
11318
|
size: 22,
|
|
11311
11319
|
icon: /* @__PURE__ */ N(B.right, { size: 12 }),
|
|
11312
|
-
onClick: () =>
|
|
11313
|
-
disabled: ce >=
|
|
11320
|
+
onClick: () => Ie(ce + 1),
|
|
11321
|
+
disabled: ce >= De.total_pages
|
|
11314
11322
|
})
|
|
11315
11323
|
]
|
|
11316
11324
|
})
|
|
@@ -11328,19 +11336,19 @@ function eo({ screenCode: e }) {
|
|
|
11328
11336
|
/* @__PURE__ */ N(sa, {
|
|
11329
11337
|
open: a !== null,
|
|
11330
11338
|
onOpenChange: (e) => !e && o(null),
|
|
11331
|
-
title: `Delete ${X(
|
|
11332
|
-
description: a?.confirmation ? a.confirmation : ee ? `Are you sure you want to delete this ${X(
|
|
11339
|
+
title: `Delete ${X(Ge.name)}`,
|
|
11340
|
+
description: a?.confirmation ? a.confirmation : ee ? `Are you sure you want to delete this ${X(Ge.name).toLowerCase()}? It can be restored later by an admin.` : `Are you sure you want to delete this ${X(Ge.name).toLowerCase()}? This action cannot be undone.`,
|
|
11333
11341
|
confirmLabel: "Delete",
|
|
11334
|
-
onConfirm:
|
|
11342
|
+
onConfirm: We,
|
|
11335
11343
|
destructive: !0
|
|
11336
11344
|
}),
|
|
11337
|
-
I &&
|
|
11338
|
-
selectedIds:
|
|
11345
|
+
I && ke.length > 0 && /* @__PURE__ */ N(ao, {
|
|
11346
|
+
selectedIds: ke,
|
|
11339
11347
|
toolbarActions: k,
|
|
11340
11348
|
data: q,
|
|
11341
|
-
pkField:
|
|
11349
|
+
pkField: xe,
|
|
11342
11350
|
entityCode: D,
|
|
11343
|
-
entityName: X(
|
|
11351
|
+
entityName: X(Ge.name),
|
|
11344
11352
|
onClear: () => u({}),
|
|
11345
11353
|
onOpenDelete: (e, t) => o({
|
|
11346
11354
|
ids: e,
|
|
@@ -11366,17 +11374,17 @@ function eo({ screenCode: e }) {
|
|
|
11366
11374
|
width: 200
|
|
11367
11375
|
},
|
|
11368
11376
|
children: [
|
|
11369
|
-
|
|
11377
|
+
we && /* @__PURE__ */ N(K, {
|
|
11370
11378
|
icon: /* @__PURE__ */ N(B.eye, { size: 13 }),
|
|
11371
11379
|
onClick: () => {
|
|
11372
|
-
|
|
11380
|
+
G(g.row), _(null);
|
|
11373
11381
|
},
|
|
11374
11382
|
children: "Quick peek"
|
|
11375
11383
|
}),
|
|
11376
11384
|
/* @__PURE__ */ N(K, {
|
|
11377
11385
|
icon: /* @__PURE__ */ N(B.external, { size: 13 }),
|
|
11378
11386
|
onClick: () => {
|
|
11379
|
-
|
|
11387
|
+
Re(g.row), _(null);
|
|
11380
11388
|
},
|
|
11381
11389
|
children: "Open"
|
|
11382
11390
|
}),
|
|
@@ -11402,41 +11410,41 @@ function eo({ screenCode: e }) {
|
|
|
11402
11410
|
}
|
|
11403
11411
|
})]
|
|
11404
11412
|
}),
|
|
11405
|
-
|
|
11406
|
-
record:
|
|
11413
|
+
we && W && E && /* @__PURE__ */ N(ja, {
|
|
11414
|
+
record: W,
|
|
11407
11415
|
title: (() => {
|
|
11408
11416
|
let e = T.columns?.find((e) => !e.startsWith("$status.") && !e.startsWith("$property."));
|
|
11409
|
-
return e ? String(
|
|
11417
|
+
return e ? String(W[e] ?? X(E.display.name)) : X(E.display.name);
|
|
11410
11418
|
})(),
|
|
11411
11419
|
recordId: (() => {
|
|
11412
11420
|
let e = E.fields.names()?.find((e) => E.fields.get(e)?.primary);
|
|
11413
|
-
return e ? String(
|
|
11421
|
+
return e ? String(W[e] ?? "") : void 0;
|
|
11414
11422
|
})(),
|
|
11415
|
-
fields:
|
|
11423
|
+
fields: Ve,
|
|
11416
11424
|
screen: T,
|
|
11417
|
-
actions:
|
|
11418
|
-
executeAction:
|
|
11425
|
+
actions: He,
|
|
11426
|
+
executeAction: Ue,
|
|
11419
11427
|
onClose: () => {
|
|
11420
|
-
if (E &&
|
|
11428
|
+
if (E && W) {
|
|
11421
11429
|
let e = E.fields.names()?.find((e) => E.fields.get(e)?.primary);
|
|
11422
|
-
e && Ia(String(
|
|
11430
|
+
e && Ia(String(W[e] ?? ""));
|
|
11423
11431
|
}
|
|
11424
|
-
|
|
11432
|
+
G(null);
|
|
11425
11433
|
},
|
|
11426
11434
|
onOpen: (e) => {
|
|
11427
|
-
let t =
|
|
11428
|
-
|
|
11435
|
+
let t = W;
|
|
11436
|
+
G(null), Re(t, { draft: e });
|
|
11429
11437
|
},
|
|
11430
11438
|
onSave: (e) => {
|
|
11431
|
-
|
|
11439
|
+
G(e);
|
|
11432
11440
|
let t = E.fields.names()?.find((e) => E.fields.get(e)?.primary);
|
|
11433
11441
|
if (!t) return;
|
|
11434
11442
|
let n = String(e[t] ?? ""), r = {};
|
|
11435
11443
|
for (let t of Object.keys(e)) {
|
|
11436
|
-
let n =
|
|
11444
|
+
let n = W[t], i = e[t];
|
|
11437
11445
|
n !== i && (r[t] = i);
|
|
11438
11446
|
}
|
|
11439
|
-
Object.keys(r).length !== 0 &&
|
|
11447
|
+
Object.keys(r).length !== 0 && ye.mutate({
|
|
11440
11448
|
pkValues: n,
|
|
11441
11449
|
data: r
|
|
11442
11450
|
});
|
|
@@ -11618,7 +11626,7 @@ function ro({ row: e, rowId: t, screen: n, entity: r, allScreens: i, hasDefaultA
|
|
|
11618
11626
|
onClick: () => m(!d),
|
|
11619
11627
|
title: "Actions"
|
|
11620
11628
|
}),
|
|
11621
|
-
/* @__PURE__ */ P(
|
|
11629
|
+
/* @__PURE__ */ P(ye, {
|
|
11622
11630
|
open: d,
|
|
11623
11631
|
anchor: u.current,
|
|
11624
11632
|
onClose: () => m(!1),
|
|
@@ -11764,7 +11772,7 @@ function io({ title: e, total: t, loaded: n, screenRoute: r, entityName: i, scre
|
|
|
11764
11772
|
onClick: () => b(!y),
|
|
11765
11773
|
active: y,
|
|
11766
11774
|
children: "Actions"
|
|
11767
|
-
}), /* @__PURE__ */ P(
|
|
11775
|
+
}), /* @__PURE__ */ P(ye, {
|
|
11768
11776
|
open: y,
|
|
11769
11777
|
anchor: v.current,
|
|
11770
11778
|
onClose: () => b(!1),
|
|
@@ -11921,7 +11929,7 @@ function so({ entityCode: e, recordId: t, associations: n, schema: r }) {
|
|
|
11921
11929
|
let i = d(() => Object.entries(n), [n]), [a, o] = p(0);
|
|
11922
11930
|
if (i.length === 0) return null;
|
|
11923
11931
|
let [s, c] = i[a];
|
|
11924
|
-
return /* @__PURE__ */ N(
|
|
11932
|
+
return /* @__PURE__ */ N(xe, {
|
|
11925
11933
|
title: /* @__PURE__ */ N("div", {
|
|
11926
11934
|
style: {
|
|
11927
11935
|
display: "flex",
|
|
@@ -12237,7 +12245,7 @@ function vo(e, t) {
|
|
|
12237
12245
|
}
|
|
12238
12246
|
function yo({ config: e, ctx: t }) {
|
|
12239
12247
|
let { items: n } = e, [r, i] = p(0);
|
|
12240
|
-
return n.length === 0 ? null : /* @__PURE__ */ N(
|
|
12248
|
+
return n.length === 0 ? null : /* @__PURE__ */ N(xe, {
|
|
12241
12249
|
title: /* @__PURE__ */ N("div", {
|
|
12242
12250
|
style: {
|
|
12243
12251
|
display: "flex",
|
|
@@ -12295,7 +12303,7 @@ function bo({ config: e, ctx: t }) {
|
|
|
12295
12303
|
tone: s.tone,
|
|
12296
12304
|
dot: s.dot
|
|
12297
12305
|
} : void 0;
|
|
12298
|
-
return /* @__PURE__ */ N(
|
|
12306
|
+
return /* @__PURE__ */ N(xe, {
|
|
12299
12307
|
title: X(n),
|
|
12300
12308
|
defaultOpen: !i,
|
|
12301
12309
|
icon: u,
|
|
@@ -13284,7 +13292,7 @@ function Yo({ row: e, rowId: t, childEntity: n, entityCode: r, parentEntity: i,
|
|
|
13284
13292
|
children: [/* @__PURE__ */ N(V, {
|
|
13285
13293
|
kind: "primary",
|
|
13286
13294
|
size: "xs",
|
|
13287
|
-
icon: b.isPending ? /* @__PURE__ */ N(
|
|
13295
|
+
icon: b.isPending ? /* @__PURE__ */ N(Ee, { size: 12 }) : /* @__PURE__ */ N(B.check, { size: 12 }),
|
|
13288
13296
|
onClick: () => b.mutate(_),
|
|
13289
13297
|
disabled: b.isPending,
|
|
13290
13298
|
children: b.isPending ? "Saving…" : "Save"
|
|
@@ -14067,7 +14075,7 @@ function rs({ open: e, onOpenChange: t, actionName: n, message: r, onConfirm: i,
|
|
|
14067
14075
|
}),
|
|
14068
14076
|
/* @__PURE__ */ N(V, {
|
|
14069
14077
|
kind: "primary",
|
|
14070
|
-
icon: N(a ?
|
|
14078
|
+
icon: N(a ? Ee : B.bolt, { size: 13 }),
|
|
14071
14079
|
onClick: i,
|
|
14072
14080
|
disabled: a,
|
|
14073
14081
|
children: a ? "Executing…" : "Confirm"
|
|
@@ -14406,7 +14414,7 @@ function ss({ actions: e, objectIds: t, row: n, onSuccess: r, preMenu: i, divide
|
|
|
14406
14414
|
icon: /* @__PURE__ */ N(B.more, { size: Math.round(o * .55) }),
|
|
14407
14415
|
onClick: () => u(!l),
|
|
14408
14416
|
title: "Actions"
|
|
14409
|
-
}), /* @__PURE__ */ P(
|
|
14417
|
+
}), /* @__PURE__ */ P(ye, {
|
|
14410
14418
|
open: l,
|
|
14411
14419
|
anchor: c.current,
|
|
14412
14420
|
onClose: () => u(!1),
|
|
@@ -14455,7 +14463,7 @@ function cs({ entity: e, searchable: t, filterFields: n, searchValue: r, onSearc
|
|
|
14455
14463
|
flex: 1,
|
|
14456
14464
|
maxWidth: 220
|
|
14457
14465
|
},
|
|
14458
|
-
children: /* @__PURE__ */ N(
|
|
14466
|
+
children: /* @__PURE__ */ N(J, {
|
|
14459
14467
|
value: r,
|
|
14460
14468
|
onChange: i,
|
|
14461
14469
|
placeholder: "Search…",
|
|
@@ -14472,7 +14480,7 @@ function cs({ entity: e, searchable: t, filterFields: n, searchValue: r, onSearc
|
|
|
14472
14480
|
onChange: (e) => o(t, e)
|
|
14473
14481
|
}, t) : n.values ? /* @__PURE__ */ N("div", {
|
|
14474
14482
|
style: { width: 160 },
|
|
14475
|
-
children: /* @__PURE__ */ N(
|
|
14483
|
+
children: /* @__PURE__ */ N(ke, {
|
|
14476
14484
|
value: r,
|
|
14477
14485
|
options: [{
|
|
14478
14486
|
value: "__all__",
|
|
@@ -14502,7 +14510,7 @@ function ls({ field: e, label: t, value: n, onChange: r }) {
|
|
|
14502
14510
|
};
|
|
14503
14511
|
return /* @__PURE__ */ N("div", {
|
|
14504
14512
|
style: { width: 160 },
|
|
14505
|
-
children: /* @__PURE__ */ N(
|
|
14513
|
+
children: /* @__PURE__ */ N(ke, {
|
|
14506
14514
|
value: n,
|
|
14507
14515
|
options: [{
|
|
14508
14516
|
value: "__all__",
|
|
@@ -14781,7 +14789,7 @@ function ms({ entityCode: e, entity: t, parentEntity: n, parentId: r, foreignKey
|
|
|
14781
14789
|
children: /* @__PURE__ */ N(V, {
|
|
14782
14790
|
kind: "ghost",
|
|
14783
14791
|
size: "xs",
|
|
14784
|
-
icon: I ? /* @__PURE__ */ N(
|
|
14792
|
+
icon: I ? /* @__PURE__ */ N(Ee, { size: 12 }) : void 0,
|
|
14785
14793
|
onClick: () => F(),
|
|
14786
14794
|
disabled: I,
|
|
14787
14795
|
children: "Load more"
|
|
@@ -15140,7 +15148,7 @@ function gs({ rowId: e, row: t, entity: n, columns: r, editableColumns: i, edita
|
|
|
15140
15148
|
gap: 4
|
|
15141
15149
|
},
|
|
15142
15150
|
children: [
|
|
15143
|
-
l?.saving && /* @__PURE__ */ N(
|
|
15151
|
+
l?.saving && /* @__PURE__ */ N(Ee, { size: 12 }),
|
|
15144
15152
|
l?.error && /* @__PURE__ */ N("span", {
|
|
15145
15153
|
style: {
|
|
15146
15154
|
fontSize: 11,
|
|
@@ -15241,7 +15249,7 @@ function _s({ draftRow: e, entity: t, columns: n, editableColumns: r, foreignKey
|
|
|
15241
15249
|
}),
|
|
15242
15250
|
/* @__PURE__ */ N(H, {
|
|
15243
15251
|
size: 24,
|
|
15244
|
-
icon: N(o ?
|
|
15252
|
+
icon: N(o ? Ee : B.check, { size: 12 }),
|
|
15245
15253
|
onClick: c,
|
|
15246
15254
|
title: "Confirm (Enter)"
|
|
15247
15255
|
}),
|
|
@@ -15435,7 +15443,7 @@ function Cs({ statusGroups: e, objectStatuses: t, onSetStatus: n, isPending: r,
|
|
|
15435
15443
|
opacity: r ? .6 : 1,
|
|
15436
15444
|
pointerEvents: r ? "none" : "auto"
|
|
15437
15445
|
},
|
|
15438
|
-
children: /* @__PURE__ */ N(
|
|
15446
|
+
children: /* @__PURE__ */ N(ke, {
|
|
15439
15447
|
value: o ?? "",
|
|
15440
15448
|
options: c,
|
|
15441
15449
|
onChange: (t) => n(e, t),
|
|
@@ -15579,11 +15587,11 @@ function Ms({ screenCode: e }) {
|
|
|
15579
15587
|
z.current && t && he(parseInt(t.style.width, 10) || z.current.startW), z.current = null, document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", i);
|
|
15580
15588
|
};
|
|
15581
15589
|
document.addEventListener("mousemove", r), document.addEventListener("mouseup", i);
|
|
15582
|
-
}, []), U = T?.data, _e = U?.$refs, ve = !!u?.soft_delete,
|
|
15590
|
+
}, []), U = T?.data, _e = U?.$refs, ve = !!u?.soft_delete, ye = ve && U != null && U[u.soft_delete] != null, be = b(), { openTab: xe, updateTabTitle: Se, findTabByPathname: Ce } = jt();
|
|
15583
15591
|
l(() => {
|
|
15584
15592
|
if (!u || g) return;
|
|
15585
|
-
let e =
|
|
15586
|
-
|
|
15593
|
+
let e = be.pathname, t = X(c?.display?.name) || X(u.display.name), n = c?.display?.icon || u.display.icon;
|
|
15594
|
+
Ce(e) || xe({
|
|
15587
15595
|
pathname: e,
|
|
15588
15596
|
search: "",
|
|
15589
15597
|
title: v ? `New ${t}` : t,
|
|
@@ -15591,7 +15599,7 @@ function Ms({ screenCode: e }) {
|
|
|
15591
15599
|
closable: !0
|
|
15592
15600
|
});
|
|
15593
15601
|
}, [
|
|
15594
|
-
|
|
15602
|
+
be.pathname,
|
|
15595
15603
|
c?.display?.name?.en,
|
|
15596
15604
|
u?.display.name?.en,
|
|
15597
15605
|
c?.display?.icon,
|
|
@@ -15600,29 +15608,29 @@ function Ms({ screenCode: e }) {
|
|
|
15600
15608
|
g
|
|
15601
15609
|
]), l(() => {
|
|
15602
15610
|
if (!U || !u || g) return;
|
|
15603
|
-
let e =
|
|
15611
|
+
let e = Ce(be.pathname);
|
|
15604
15612
|
if (e) {
|
|
15605
15613
|
let t = u.display?.display_field, n = t ? U[t] : void 0, r = n && typeof n == "object" && !Array.isArray(n) ? X(n) : n, i = r ? String(r) : X(c?.display?.name) || X(u.display.name);
|
|
15606
|
-
|
|
15614
|
+
Se(e.id, i);
|
|
15607
15615
|
}
|
|
15608
15616
|
}, [
|
|
15609
15617
|
U,
|
|
15610
15618
|
u?.display.name?.en,
|
|
15611
15619
|
u?.display.display_field,
|
|
15612
|
-
|
|
15620
|
+
be.pathname,
|
|
15613
15621
|
g
|
|
15614
15622
|
]);
|
|
15615
|
-
let
|
|
15623
|
+
let W = d(() => {
|
|
15616
15624
|
if (!u) return /* @__PURE__ */ new Set();
|
|
15617
15625
|
let e = /* @__PURE__ */ new Set();
|
|
15618
15626
|
for (let [t, n] of u.fields) !n.auto && !n.primary && e.add(t);
|
|
15619
15627
|
return e;
|
|
15620
15628
|
}, [u]);
|
|
15621
15629
|
l(() => {
|
|
15622
|
-
if (!(!L || !U ||
|
|
15630
|
+
if (!(!L || !U || W.size === 0)) {
|
|
15623
15631
|
if (R || te(!0), Object.keys(ne).length === 0) {
|
|
15624
15632
|
let e = _ ? Fa(_) : null, t = {};
|
|
15625
|
-
|
|
15633
|
+
W.forEach((n) => {
|
|
15626
15634
|
let r = e ? e[n] : void 0;
|
|
15627
15635
|
t[n] = r === void 0 ? U[n] ?? "" : r;
|
|
15628
15636
|
}), re(t);
|
|
@@ -15635,14 +15643,14 @@ function Ms({ screenCode: e }) {
|
|
|
15635
15643
|
}, [
|
|
15636
15644
|
L,
|
|
15637
15645
|
U,
|
|
15638
|
-
|
|
15646
|
+
W
|
|
15639
15647
|
]), l(() => {
|
|
15640
15648
|
!v || !u?.children || u.children.length === 0 || ce === void 0 && (le({}), de({}));
|
|
15641
15649
|
}, [v, u?.children]);
|
|
15642
15650
|
let G = s(() => {
|
|
15643
15651
|
if (U) {
|
|
15644
15652
|
let e = {};
|
|
15645
|
-
|
|
15653
|
+
W.forEach((t) => {
|
|
15646
15654
|
e[t] = U[t] ?? "";
|
|
15647
15655
|
}), re(e);
|
|
15648
15656
|
}
|
|
@@ -15668,7 +15676,7 @@ function Ms({ screenCode: e }) {
|
|
|
15668
15676
|
te(!0);
|
|
15669
15677
|
}, [
|
|
15670
15678
|
U,
|
|
15671
|
-
|
|
15679
|
+
W,
|
|
15672
15680
|
u?.children,
|
|
15673
15681
|
a
|
|
15674
15682
|
]), we = s(() => {
|
|
@@ -15686,7 +15694,7 @@ function Ms({ screenCode: e }) {
|
|
|
15686
15694
|
if (!c?.route) return "/";
|
|
15687
15695
|
let e = c.route.split("/");
|
|
15688
15696
|
return e.pop(), e.join("/") || "/";
|
|
15689
|
-
}, [c]),
|
|
15697
|
+
}, [c]), Ee = d(() => !a?.screens || !Te || Te === "/" ? !1 : Object.values(a.screens).some((e) => e.route === Te), [a, Te]), q = s(() => {
|
|
15690
15698
|
if (!m) return;
|
|
15691
15699
|
let e = {};
|
|
15692
15700
|
if (v) for (let [t, n] of Object.entries(ne)) n !== "" && n != null && (e[t] = n);
|
|
@@ -15740,12 +15748,12 @@ function Ms({ screenCode: e }) {
|
|
|
15740
15748
|
n,
|
|
15741
15749
|
Te,
|
|
15742
15750
|
U
|
|
15743
|
-
]),
|
|
15751
|
+
]), De = s((e, t) => {
|
|
15744
15752
|
le((n) => ({
|
|
15745
15753
|
...n ?? {},
|
|
15746
15754
|
[e]: t
|
|
15747
15755
|
}));
|
|
15748
|
-
}, []),
|
|
15756
|
+
}, []), J = s(() => {
|
|
15749
15757
|
!y || v || k.mutate(y, { onSuccess: () => n(Te, { replace: !0 }) });
|
|
15750
15758
|
}, [
|
|
15751
15759
|
y,
|
|
@@ -15753,13 +15761,13 @@ function Ms({ screenCode: e }) {
|
|
|
15753
15761
|
k,
|
|
15754
15762
|
n,
|
|
15755
15763
|
Te
|
|
15756
|
-
]),
|
|
15764
|
+
]), Oe = s(() => {
|
|
15757
15765
|
!y || v || A.mutate(y);
|
|
15758
15766
|
}, [
|
|
15759
15767
|
y,
|
|
15760
15768
|
v,
|
|
15761
15769
|
A
|
|
15762
|
-
]),
|
|
15770
|
+
]), ke = d(() => ks(ce, a), [ce, a]), Ae = Object.keys(ke).length > 0;
|
|
15763
15771
|
if (!c || !u) return null;
|
|
15764
15772
|
if (!v && E) return /* @__PURE__ */ N(oa, {});
|
|
15765
15773
|
if (!v && !U) return /* @__PURE__ */ P("div", {
|
|
@@ -15771,7 +15779,7 @@ function Ms({ screenCode: e }) {
|
|
|
15771
15779
|
gap: 8,
|
|
15772
15780
|
marginBottom: 8
|
|
15773
15781
|
},
|
|
15774
|
-
children: [
|
|
15782
|
+
children: [Ee && /* @__PURE__ */ N(H, {
|
|
15775
15783
|
icon: /* @__PURE__ */ N(B.back, { size: 14 }),
|
|
15776
15784
|
onClick: () => n(Te),
|
|
15777
15785
|
title: "Back"
|
|
@@ -15789,7 +15797,7 @@ function Ms({ screenCode: e }) {
|
|
|
15789
15797
|
children: "Record not found."
|
|
15790
15798
|
})]
|
|
15791
15799
|
});
|
|
15792
|
-
let
|
|
15800
|
+
let je = u.display, Me = X(c.display?.name) || X(je.name), Ne = u.display?.display_field, Y = Ne ? U?.[Ne] : void 0, Pe = Y && typeof Y == "object" && !Array.isArray(Y) ? X(Y) : Y, Fe = v ? `New ${Me}` : Pe ? String(Pe) : Me, Ie = D.isPending || O.isPending, Le = c.actions !== void 0, Re = Le ? pa(u.actions, c.actions, "detail", a?.actions) : fa(u.actions, "detail"), ze = {
|
|
15793
15801
|
schema: a,
|
|
15794
15802
|
entity: u,
|
|
15795
15803
|
entityCode: m,
|
|
@@ -15843,18 +15851,18 @@ function Ms({ screenCode: e }) {
|
|
|
15843
15851
|
})) : void 0,
|
|
15844
15852
|
isStatusPending: !1,
|
|
15845
15853
|
pendingChildren: R ? ce : void 0,
|
|
15846
|
-
onChildrenChange: R ?
|
|
15847
|
-
childValidationErrors: R ?
|
|
15854
|
+
onChildrenChange: R ? De : void 0,
|
|
15855
|
+
childValidationErrors: R ? ke : void 0
|
|
15848
15856
|
}, Be = c.sidebar && c.sidebar.length > 0, Ve = /* @__PURE__ */ N(Ns, {
|
|
15849
15857
|
title: Fe,
|
|
15850
15858
|
recordId: _,
|
|
15851
15859
|
editing: R,
|
|
15852
15860
|
isNew: v,
|
|
15853
15861
|
isSelf: !!g,
|
|
15854
|
-
isRecordDeleted:
|
|
15862
|
+
isRecordDeleted: ye,
|
|
15855
15863
|
dirty: R,
|
|
15856
15864
|
isSaving: Ie,
|
|
15857
|
-
hasChildErrors:
|
|
15865
|
+
hasChildErrors: Ae,
|
|
15858
15866
|
canEdit: !u?.readonly,
|
|
15859
15867
|
canDelete: !v && !g && !u?.readonly,
|
|
15860
15868
|
hasExplicitActions: Le,
|
|
@@ -15863,18 +15871,18 @@ function Ms({ screenCode: e }) {
|
|
|
15863
15871
|
record: U,
|
|
15864
15872
|
id: _,
|
|
15865
15873
|
listRoute: Te,
|
|
15866
|
-
listRouteExists: !!
|
|
15867
|
-
onBack: () => n(
|
|
15874
|
+
listRouteExists: !!Ee,
|
|
15875
|
+
onBack: () => n(Ee ? Te : "/"),
|
|
15868
15876
|
onCancelEdit: we,
|
|
15869
|
-
onSave:
|
|
15877
|
+
onSave: q,
|
|
15870
15878
|
onStartEdit: G,
|
|
15871
15879
|
onRequestDelete: (e) => pe({
|
|
15872
15880
|
show: !0,
|
|
15873
15881
|
confirmation: e
|
|
15874
15882
|
}),
|
|
15875
|
-
onRestore:
|
|
15883
|
+
onRestore: Oe,
|
|
15876
15884
|
isRestoring: A.isPending
|
|
15877
|
-
}), Ge =
|
|
15885
|
+
}), Ge = ye && /* @__PURE__ */ P("div", {
|
|
15878
15886
|
style: {
|
|
15879
15887
|
display: "flex",
|
|
15880
15888
|
alignItems: "center",
|
|
@@ -15924,10 +15932,10 @@ function Ms({ screenCode: e }) {
|
|
|
15924
15932
|
] }), Je = /* @__PURE__ */ N(sa, {
|
|
15925
15933
|
open: fe.show,
|
|
15926
15934
|
onOpenChange: (e) => !e && pe({ show: !1 }),
|
|
15927
|
-
title: `Delete ${
|
|
15928
|
-
description: fe.confirmation ? fe.confirmation : ve ? `Are you sure you want to delete this ${
|
|
15935
|
+
title: `Delete ${Me}`,
|
|
15936
|
+
description: fe.confirmation ? fe.confirmation : ve ? `Are you sure you want to delete this ${Me.toLowerCase()}? It can be restored later by an admin.` : `Are you sure you want to delete this ${Me.toLowerCase()}? This action cannot be undone.`,
|
|
15929
15937
|
confirmLabel: "Delete",
|
|
15930
|
-
onConfirm:
|
|
15938
|
+
onConfirm: J,
|
|
15931
15939
|
destructive: !0
|
|
15932
15940
|
});
|
|
15933
15941
|
return Be ? /* @__PURE__ */ P("div", {
|
|
@@ -16077,7 +16085,7 @@ function Ns({ title: e, recordId: t, editing: n, isNew: r, isSelf: i, isRecordDe
|
|
|
16077
16085
|
maxWidth: "100%"
|
|
16078
16086
|
},
|
|
16079
16087
|
children: e
|
|
16080
|
-
}), t && /* @__PURE__ */ N(
|
|
16088
|
+
}), t && /* @__PURE__ */ N(W, { value: t })]
|
|
16081
16089
|
})
|
|
16082
16090
|
}),
|
|
16083
16091
|
/* @__PURE__ */ N("div", {
|
|
@@ -16090,7 +16098,7 @@ function Ns({ title: e, recordId: t, editing: n, isNew: r, isSelf: i, isRecordDe
|
|
|
16090
16098
|
},
|
|
16091
16099
|
children: a ? /* @__PURE__ */ N(V, {
|
|
16092
16100
|
kind: "primary",
|
|
16093
|
-
icon: N(T ?
|
|
16101
|
+
icon: N(T ? Ee : B.refresh, { size: 13 }),
|
|
16094
16102
|
onClick: w,
|
|
16095
16103
|
disabled: T,
|
|
16096
16104
|
children: T ? "Restoring…" : "Restore"
|
|
@@ -16114,7 +16122,7 @@ function Ns({ title: e, recordId: t, editing: n, isNew: r, isSelf: i, isRecordDe
|
|
|
16114
16122
|
}),
|
|
16115
16123
|
/* @__PURE__ */ N(V, {
|
|
16116
16124
|
kind: "primary",
|
|
16117
|
-
icon: N(s ?
|
|
16125
|
+
icon: N(s ? Ee : B.save, { size: 13 }),
|
|
16118
16126
|
onClick: x,
|
|
16119
16127
|
disabled: s || c,
|
|
16120
16128
|
title: c ? "Fix errors in child rows" : void 0,
|
|
@@ -16139,7 +16147,7 @@ function Ns({ title: e, recordId: t, editing: n, isNew: r, isSelf: i, isRecordDe
|
|
|
16139
16147
|
onClick: () => O(!D),
|
|
16140
16148
|
active: D,
|
|
16141
16149
|
children: "Actions"
|
|
16142
|
-
}), /* @__PURE__ */ N(
|
|
16150
|
+
}), /* @__PURE__ */ N(ye, {
|
|
16143
16151
|
open: D,
|
|
16144
16152
|
anchor: E.current,
|
|
16145
16153
|
onClose: () => O(!1),
|
|
@@ -16384,7 +16392,7 @@ function Bs({ screenCode: e }) {
|
|
|
16384
16392
|
borderBottom: "1px solid var(--divider)"
|
|
16385
16393
|
},
|
|
16386
16394
|
children: [
|
|
16387
|
-
/* @__PURE__ */ N(
|
|
16395
|
+
/* @__PURE__ */ N(J, {
|
|
16388
16396
|
value: m,
|
|
16389
16397
|
onChange: T,
|
|
16390
16398
|
placeholder: `Search ${X(a.display.name_plural)}…`,
|
|
@@ -16402,7 +16410,7 @@ function Bs({ screenCode: e }) {
|
|
|
16402
16410
|
let n = _?.find((t) => t.field === e && t.op === "eq")?.value ?? "__all__", i = Be(t, e, r.entities);
|
|
16403
16411
|
return /* @__PURE__ */ N("div", {
|
|
16404
16412
|
style: { minWidth: 120 },
|
|
16405
|
-
children: /* @__PURE__ */ N(
|
|
16413
|
+
children: /* @__PURE__ */ N(ke, {
|
|
16406
16414
|
value: n,
|
|
16407
16415
|
options: [{
|
|
16408
16416
|
value: "__all__",
|
|
@@ -16717,7 +16725,7 @@ function Hs({ entityCode: e, recordId: t, items: n, schema: r, entity: i }) {
|
|
|
16717
16725
|
}), /* @__PURE__ */ N(V, {
|
|
16718
16726
|
kind: "primary",
|
|
16719
16727
|
size: "xs",
|
|
16720
|
-
icon: c.isPending ? /* @__PURE__ */ N(
|
|
16728
|
+
icon: c.isPending ? /* @__PURE__ */ N(Ee, { size: 12 }) : /* @__PURE__ */ N(B.save, { size: 12 }),
|
|
16721
16729
|
onClick: C,
|
|
16722
16730
|
disabled: c.isPending,
|
|
16723
16731
|
children: c.isPending ? "Saving…" : "Save"
|
|
@@ -16909,28 +16917,48 @@ function Ys() {
|
|
|
16909
16917
|
};
|
|
16910
16918
|
}
|
|
16911
16919
|
function Xs() {
|
|
16912
|
-
let e = Jt((e) => e.initialize), { data: t } = st(), {
|
|
16920
|
+
let e = Jt((e) => e.initialize), { data: t } = st(), { data: n, isLoading: r } = pi(), { routes: i, defaultRoute: a } = Ys();
|
|
16913
16921
|
l(() => {
|
|
16914
16922
|
e();
|
|
16915
16923
|
}, [e]);
|
|
16916
|
-
let
|
|
16924
|
+
let o = n?.branding;
|
|
16925
|
+
l(() => {
|
|
16926
|
+
if (typeof document > "u") return;
|
|
16927
|
+
let e = o?.app_name;
|
|
16928
|
+
e && (document.title = e);
|
|
16929
|
+
}, [o?.app_name]), l(() => {
|
|
16930
|
+
if (typeof document > "u") return;
|
|
16931
|
+
let e = o?.app_logo;
|
|
16932
|
+
if (!e) return;
|
|
16933
|
+
let t = Js(e);
|
|
16934
|
+
if (!t) return;
|
|
16935
|
+
let n = "consumer-favicon", r = document.getElementById(n);
|
|
16936
|
+
r || (document.querySelectorAll("link[rel=\"icon\"], link[rel=\"shortcut icon\"]").forEach((e) => e.remove()), r = document.createElement("link"), r.id = n, r.rel = "icon", document.head.appendChild(r)), r.href !== t && (r.href = t);
|
|
16937
|
+
}, [o?.app_logo]);
|
|
16938
|
+
let s = t?.branding?.css_url ?? null;
|
|
16917
16939
|
return l(() => {
|
|
16918
16940
|
if (typeof document > "u") return;
|
|
16919
16941
|
let e = "consumer-brand-css", t = document.getElementById(e);
|
|
16920
|
-
if (!
|
|
16942
|
+
if (!s) {
|
|
16921
16943
|
t && t.remove();
|
|
16922
16944
|
return;
|
|
16923
16945
|
}
|
|
16924
|
-
let n = Js(
|
|
16946
|
+
let n = Js(s);
|
|
16925
16947
|
if (!n) {
|
|
16926
|
-
t && t.remove(), console.error(`[declarion] branding.css_url rejected: ${
|
|
16948
|
+
t && t.remove(), console.error(`[declarion] branding.css_url rejected: ${s}. Only same-origin, relative URLs are allowed (e.g. /crm-brand.css).`);
|
|
16927
16949
|
return;
|
|
16928
16950
|
}
|
|
16929
16951
|
if (t && t.href === n) return;
|
|
16930
16952
|
t && t.remove();
|
|
16931
16953
|
let r = document.createElement("link");
|
|
16932
16954
|
r.id = e, r.rel = "stylesheet", r.href = n, document.head.appendChild(r);
|
|
16933
|
-
}, [
|
|
16955
|
+
}, [s]), r && !n ? /* @__PURE__ */ N("div", {
|
|
16956
|
+
"aria-hidden": !0,
|
|
16957
|
+
style: {
|
|
16958
|
+
minHeight: "100vh",
|
|
16959
|
+
background: "var(--bg)"
|
|
16960
|
+
}
|
|
16961
|
+
}) : /* @__PURE__ */ P(y, { children: [
|
|
16934
16962
|
/* @__PURE__ */ N(v, {
|
|
16935
16963
|
path: "/login",
|
|
16936
16964
|
element: /* @__PURE__ */ N(Di, {})
|
|
@@ -16954,14 +16982,14 @@ function Xs() {
|
|
|
16954
16982
|
/* @__PURE__ */ P(v, {
|
|
16955
16983
|
element: /* @__PURE__ */ N(gi, {}),
|
|
16956
16984
|
children: [
|
|
16957
|
-
|
|
16985
|
+
a && /* @__PURE__ */ N(v, {
|
|
16958
16986
|
index: !0,
|
|
16959
16987
|
element: /* @__PURE__ */ N(g, {
|
|
16960
|
-
to:
|
|
16988
|
+
to: a,
|
|
16961
16989
|
replace: !0
|
|
16962
16990
|
})
|
|
16963
16991
|
}),
|
|
16964
|
-
|
|
16992
|
+
i,
|
|
16965
16993
|
/* @__PURE__ */ N(v, {
|
|
16966
16994
|
path: "/profile",
|
|
16967
16995
|
element: /* @__PURE__ */ N(Pi, {})
|
|
@@ -17421,7 +17449,7 @@ function mc({ title: e, singular: t, total: n, shown: r, selectionCount: i, clea
|
|
|
17421
17449
|
}),
|
|
17422
17450
|
onClick: () => x(!b),
|
|
17423
17451
|
children: "Actions"
|
|
17424
|
-
}), /* @__PURE__ */ P(
|
|
17452
|
+
}), /* @__PURE__ */ P(ye, {
|
|
17425
17453
|
open: b,
|
|
17426
17454
|
anchor: y.current,
|
|
17427
17455
|
onClose: () => x(!1),
|
|
@@ -17580,7 +17608,7 @@ function _c({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "a
|
|
|
17580
17608
|
onKeyDown: (e) => {
|
|
17581
17609
|
e.key === "Enter" && S(), e.key === "Escape" && x();
|
|
17582
17610
|
},
|
|
17583
|
-
children: [n === "select" ? /* @__PURE__ */ N(
|
|
17611
|
+
children: [n === "select" ? /* @__PURE__ */ N(ke, {
|
|
17584
17612
|
value: g,
|
|
17585
17613
|
options: r || [],
|
|
17586
17614
|
onChange: (e) => {
|
|
@@ -17592,7 +17620,7 @@ function _c({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "a
|
|
|
17592
17620
|
let t = String(e);
|
|
17593
17621
|
_(t), b(t);
|
|
17594
17622
|
}
|
|
17595
|
-
}) : /* @__PURE__ */ N(
|
|
17623
|
+
}) : /* @__PURE__ */ N(J, {
|
|
17596
17624
|
value: g ?? "",
|
|
17597
17625
|
onChange: _,
|
|
17598
17626
|
autoFocus: !0,
|
|
@@ -17787,7 +17815,7 @@ function yc({ mode: e, onModeChange: t, onClose: n, onSave: r, onDelete: i, titl
|
|
|
17787
17815
|
}),
|
|
17788
17816
|
onClick: () => C(!S),
|
|
17789
17817
|
children: "Actions"
|
|
17790
|
-
}), /* @__PURE__ */ P(
|
|
17818
|
+
}), /* @__PURE__ */ P(ye, {
|
|
17791
17819
|
open: S,
|
|
17792
17820
|
anchor: x.current,
|
|
17793
17821
|
onClose: () => C(!1),
|
|
@@ -18020,7 +18048,7 @@ function Cc({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLa
|
|
|
18020
18048
|
gridTemplateColumns: "2fr 1fr",
|
|
18021
18049
|
gap: 14
|
|
18022
18050
|
},
|
|
18023
|
-
children: [/* @__PURE__ */ N(
|
|
18051
|
+
children: [/* @__PURE__ */ N(xe, {
|
|
18024
18052
|
title: "Quick access",
|
|
18025
18053
|
icon: /* @__PURE__ */ N(B.bolt, { size: 14 }),
|
|
18026
18054
|
children: /* @__PURE__ */ N("div", {
|
|
@@ -18065,7 +18093,7 @@ function Cc({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLa
|
|
|
18065
18093
|
}, t);
|
|
18066
18094
|
})
|
|
18067
18095
|
})
|
|
18068
|
-
}), /* @__PURE__ */ N(
|
|
18096
|
+
}), /* @__PURE__ */ N(xe, {
|
|
18069
18097
|
title: "Recent activity",
|
|
18070
18098
|
icon: /* @__PURE__ */ N(B.activity, { size: 14 }),
|
|
18071
18099
|
children: /* @__PURE__ */ N("div", {
|
|
@@ -18557,6 +18585,6 @@ function jc() {
|
|
|
18557
18585
|
});
|
|
18558
18586
|
}
|
|
18559
18587
|
//#endregion
|
|
18560
|
-
export { pn as AIPanel, $r as ActionRunnerProvider, Zs as App, Zs as Declarion, Ci as AuthShell, ve as Avatar, we as BoolToggle, tn as Breadcrumbs, V as Btn, La as BulkBar, Ni as ChangePasswordDialog, Te as Check,
|
|
18588
|
+
export { pn as AIPanel, $r as ActionRunnerProvider, Zs as App, Zs as Declarion, Ci as AuthShell, ve as Avatar, we as BoolToggle, tn as Breadcrumbs, V as Btn, La as BulkBar, Ni as ChangePasswordDialog, Te as Check, be as Chip, Ka as ColumnPicker, ln as CommandPalette, sa as ConfirmDialog, Ae as DateInput, ye as Dropdown, an as DynamicIcon, na as EmptyState, rc as EntityClient, q as FieldLabel, za as FilterChips, Ha as FilterDrawer, ki as Forgot, Cc as HomeStub, B as Icon, H as IconBtn, _c as InlineEditCell, jc as JobsStub, Fe as JsonField, _e as Kbd, K as MenuItem, _a as NO_VALUE_OPS, va as OP_LABELS, sc as PageHeader, Y as PasswordInput, U as Pill, Dc as PipelineStub, Vi as Preferences, Pi as Profile, Ma as QEField, Re as QuickEditCell, ja as QuickPeek, Ke as Rail, W as RecordIdBadge, tc as RefCache, Ie as RefField, G as RowField, cc as RowMenu, xe as SectionCard, ke as Select, yc as ShellDetailPage, mc as ShellListPage, Nt as Sidebar, Di as SignIn, Oi as SignUp, Ms as SmartDetailPage, eo as SmartListPage, Bs as SmartRecordListPage, Ee as Spinner, on as TabStrip, Pe as TagsInput, $t as TenantChip, Oe as TextArea, J as TextInput, rn as TopBar, Ai as TwoFA, uc as VISIBILITY_LIST_BULK_BAR, lc as VISIBILITY_LIST_TOOLBAR, Le as ViewField, Ja as ViewSwitcher, Pt as buildSections, Ca as countActiveFilters, ge as cx, ic as entityClient, Qt as envTone, Be as fieldDisplayName, xa as hasOrGroups, X as loc, ya as parseFiltersFromURL, Gs as registerScreen, fc as resolveBulkBarActions, dc as resolveToolbarActions, ba as setFiltersInURL, Zr as useActionRunner, Yt as useAuth, ac as useColumns, Xi as useCreateEntity, ta as useDebounce, Qi as useDeleteEntity, zs as useDeleteProperty, nr as useEntity, tr as useEntityData, oo as useEntityItem, Ea as useFilters, pi as usePublicParams, mi as useResolvedParam, st as useSchema, Ya as useScreen, Rs as useSetProperty, Fs as useSetStatus, Mt as useTabNavigate, jt as useTabStore, Zi as useUpdateEntity, Xa as useViews };
|
|
18561
18589
|
|
|
18562
18590
|
//# sourceMappingURL=index.js.map
|