@declarion/react 0.48.2 → 0.50.0

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.
Files changed (88) hide show
  1. package/dist-lib/Check-DAfMbQIw.js +38 -0
  2. package/dist-lib/{DraggableChildrenTable-p2ZSdwzj.js → DraggableChildrenTable-Dar8C-Z9.js} +31 -31
  3. package/dist-lib/DynamicIcon-DW5krHuX.js +280 -0
  4. package/dist-lib/{Grid-CjLFAKMZ.js → Grid-BkHtfsty.js} +2 -2
  5. package/dist-lib/{LayoutRenderer-DCscqXsv.js → LayoutRenderer-Cic7IAop.js} +601 -598
  6. package/dist-lib/ListCardsBody-Dko91bLv.js +287 -0
  7. package/dist-lib/{MarkdownRenderer-Sb7zcvj0.js → MarkdownRenderer-CJrVG5HZ.js} +1 -1
  8. package/dist-lib/RefreshControl-BS8WWL8i.js +430 -0
  9. package/dist-lib/{SmartDetailPage.impl-BAW-Tx_H.js → SmartDetailPage.impl-DxRDo0p2.js} +521 -516
  10. package/dist-lib/SmartListPage.impl-CNdq5Vts.js +2849 -0
  11. package/dist-lib/{SmartRecordListPage.impl-DtSSlGrI.js → SmartRecordListPage.impl-3ct7f4rT.js} +244 -241
  12. package/dist-lib/SortHeaderMenu-NgjkW8QZ.js +106 -0
  13. package/dist-lib/action-dispatch-hVrm3Hrg.js +1984 -0
  14. package/dist-lib/api/batch.d.ts +5 -2
  15. package/dist-lib/api/data.d.ts +35 -4
  16. package/dist-lib/api/entities.d.ts +3 -3
  17. package/dist-lib/cardProjection-BR-fXPvJ.js +757 -0
  18. package/dist-lib/components/{shared → actions}/ObjectActionBar.d.ts +1 -1
  19. package/dist-lib/components/{shared → actions}/ResponsiveActionBar.d.ts +1 -1
  20. package/dist-lib/components/fields/cells/factories/date.d.ts +2 -0
  21. package/dist-lib/components/file-widgets/upload.d.ts +6 -1
  22. package/dist-lib/components/layout/Layout.d.ts +1 -1
  23. package/dist-lib/components/layout/TopBar.d.ts +1 -1
  24. package/dist-lib/components/pages/SmartListPage.d.ts +2 -12
  25. package/dist-lib/components/pages/SmartListPage.impl.d.ts +4 -0
  26. package/dist-lib/components/pages/list/ListCardRow.d.ts +40 -0
  27. package/dist-lib/components/pages/list/ListCardsBody.d.ts +34 -0
  28. package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
  29. package/dist-lib/components/pages/list/ListFooter.d.ts +26 -0
  30. package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
  31. package/dist-lib/components/pages/list/ListNoRows.d.ts +32 -0
  32. package/dist-lib/components/pages/list/ListTable.d.ts +34 -0
  33. package/dist-lib/components/pages/list/ListTableRow.d.ts +18 -0
  34. package/dist-lib/components/pages/list/ListToolbar.d.ts +43 -0
  35. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +14 -0
  36. package/dist-lib/components/pages/list/page-size.d.ts +3 -0
  37. package/dist-lib/components/pages/list/sortable-header.d.ts +2 -0
  38. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +37 -0
  39. package/dist-lib/components/pages/list/useListQuery.d.ts +66 -0
  40. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +61 -0
  41. package/dist-lib/components/pages/list/useListSelection.d.ts +31 -0
  42. package/dist-lib/components/pages/list/useListSort.d.ts +45 -0
  43. package/dist-lib/components/pages/list/useListViews.d.ts +46 -0
  44. package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
  45. package/dist-lib/components/primitives/Icons.d.ts +5 -0
  46. package/dist-lib/components/shared/RefreshControl.d.ts +17 -4
  47. package/dist-lib/field-classification-Bm0mgbwA.js +1134 -0
  48. package/dist-lib/format-count-BfRGwx2v.js +1551 -0
  49. package/dist-lib/hooks/useBrandingChrome.d.ts +17 -1
  50. package/dist-lib/hooks/useText.d.ts +3 -0
  51. package/dist-lib/hooks/useViews.d.ts +1 -1
  52. package/dist-lib/icons.js +1 -1
  53. package/dist-lib/index.d.ts +17 -15
  54. package/dist-lib/index.js +1784 -6288
  55. package/dist-lib/lib/messages.d.ts +7 -1
  56. package/dist-lib/lib/rowClickGesture.d.ts +12 -0
  57. package/dist-lib/lib/timestamp.d.ts +8 -3
  58. package/dist-lib/peekDraftStore-bb4WroTA.js +194 -0
  59. package/dist-lib/record-documents-key-8fdm7C10.js +27 -0
  60. package/dist-lib/registry-CgeGoWpW.js +1768 -0
  61. package/dist-lib/testing.d.ts +17 -2
  62. package/dist-lib/testing.js +72 -58
  63. package/dist-lib/types/api.d.ts +54 -12
  64. package/dist-lib/types/schema.d.ts +22 -6
  65. package/dist-lib/{useCurrentScreen-BshVTPVq.js → useCurrentScreen-D3XH5ptA.js} +1127 -1070
  66. package/dist-lib/useListQuery-CfuINl-0.js +87 -0
  67. package/dist-lib/useProperties-DNocaxBX.js +81 -0
  68. package/dist-lib/{useProperties-DrHFr0A1.js → useTabSearchMirror-d0BAUIcQ.js} +116 -194
  69. package/dist-lib/{value-B1O6QikE.js → value-D71J0sJq.js} +69 -69
  70. package/package.json +1 -1
  71. package/dist-lib/DynamicIcon-Dc2j-rg_.js +0 -275
  72. package/dist-lib/RefreshControl-Cnl9nE0x.js +0 -945
  73. package/dist-lib/registry-CCxnZW2b.js +0 -5281
  74. /package/dist-lib/components/{shared → actions}/ActionButton.d.ts +0 -0
  75. /package/dist-lib/components/{shared → actions}/ActionDialog.d.ts +0 -0
  76. /package/dist-lib/components/{shared → actions}/ActionResultDialog.d.ts +0 -0
  77. /package/dist-lib/components/{shared → actions}/ActionRunner.d.ts +0 -0
  78. /package/dist-lib/components/{mass-edit → actions}/PropertyGridEditor.d.ts +0 -0
  79. /package/dist-lib/components/{shared → actions}/RowActionsKebab.d.ts +0 -0
  80. /package/dist-lib/components/{shared → chrome}/AssociationTabs.d.ts +0 -0
  81. /package/dist-lib/components/{shared → chrome}/AuditMetaStrip.d.ts +0 -0
  82. /package/dist-lib/components/{shared → chrome}/Breadcrumbs.d.ts +0 -0
  83. /package/dist-lib/components/{shared → chrome}/HighlightsStrip.d.ts +0 -0
  84. /package/dist-lib/components/{shared → chrome}/PageHeader.d.ts +0 -0
  85. /package/dist-lib/components/{shared → chrome}/RecordHeader.d.ts +0 -0
  86. /package/dist-lib/components/{shell → layout}/CommandPalette.d.ts +0 -0
  87. /package/dist-lib/components/{columns → list}/ColumnPicker.d.ts +0 -0
  88. /package/dist-lib/components/{views → list}/ViewSwitcher.d.ts +0 -0
@@ -0,0 +1,38 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ //#region src/components/primitives/Check.tsx
3
+ function n({ checked: n, onChange: r, indeterminate: i, size: a = 14 }) {
4
+ return /* @__PURE__ */ t("span", {
5
+ onClick: (e) => {
6
+ e.stopPropagation(), r?.(!n);
7
+ },
8
+ style: {
9
+ display: "inline-flex",
10
+ width: a,
11
+ height: a,
12
+ borderRadius: 3,
13
+ border: `1px solid ${n || i ? "var(--accent)" : "var(--border-strong)"}`,
14
+ background: n || i ? "var(--accent)" : "var(--surface)",
15
+ alignItems: "center",
16
+ justifyContent: "center",
17
+ cursor: "pointer",
18
+ flexShrink: 0
19
+ },
20
+ children: [n && /* @__PURE__ */ e("svg", {
21
+ width: a - 4,
22
+ height: a - 4,
23
+ viewBox: "0 0 10 10",
24
+ fill: "none",
25
+ stroke: "var(--accent-foreground)",
26
+ strokeWidth: "2",
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round",
29
+ children: /* @__PURE__ */ e("path", { d: "m2 5 2 2 4-5" })
30
+ }), i && !n && /* @__PURE__ */ e("span", { style: {
31
+ width: 6,
32
+ height: 1.5,
33
+ background: "var(--accent-foreground)"
34
+ } })]
35
+ });
36
+ }
37
+ //#endregion
38
+ export { n as t };
@@ -1,5 +1,5 @@
1
- import { s as e } from "./DynamicIcon-Dc2j-rg_.js";
2
- import { A as t, Ln as n, Sn as r, j as i, lr as a, ur as o } from "./useCurrentScreen-BshVTPVq.js";
1
+ import { s as e } from "./DynamicIcon-DW5krHuX.js";
2
+ import { A as t, dr as n, fr as r, j as i, wn as a, zn as o } from "./useCurrentScreen-D3XH5ptA.js";
3
3
  import { n as s, r as c, t as l } from "./dataTableStyles-vwD1mVOP.js";
4
4
  import { useCallback as u, useMemo as d, useRef as f } from "react";
5
5
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -7,7 +7,7 @@ import { DndContext as h, PointerSensor as g, closestCenter as _, useSensor as v
7
7
  import { SortableContext as b, useSortable as x, verticalListSortingStrategy as S } from "@dnd-kit/sortable";
8
8
  import { CSS as C } from "@dnd-kit/utilities";
9
9
  //#region src/components/detail-layout/DraggableChildrenTable.tsx
10
- function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validationErrors: x, refs: C }) {
10
+ function w({ config: t, childEntity: n, schema: i, rows: o, onChange: l, validationErrors: x, refs: C }) {
11
11
  let w = f(null), E = t.position_field, D = t.columns, O = y(v(g, { activationConstraint: { distance: 5 } })), k = new Set(Array.isArray(t.foreign_key) ? t.foreign_key : [t.foreign_key]), A = D.filter((e) => {
12
12
  if (k.has(e) || e === E) return !1;
13
13
  let t = n.fields.get(e);
@@ -16,14 +16,14 @@ function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validat
16
16
  if (e === E) return !0;
17
17
  let t = n.fields.get(e);
18
18
  return t && (t.auto || t.primary || t.source);
19
- })), M = D.filter((e) => e !== E), N = d(() => a.filter((e) => !e._deleted).map((e) => e._key), [a]), P = u((e, t, n) => {
20
- l(a.map((r) => r._key === e ? {
19
+ })), M = D.filter((e) => e !== E), N = d(() => o.filter((e) => !e._deleted).map((e) => e._key), [o]), P = u((e, t, n) => {
20
+ l(o.map((r) => r._key === e ? {
21
21
  ...r,
22
22
  [t]: n,
23
23
  _dirty: !0
24
24
  } : r));
25
- }, [a, l]), F = u(() => {
26
- let e = a.filter((e) => !e._deleted).reduce((e, t) => {
25
+ }, [o, l]), F = u(() => {
26
+ let e = o.filter((e) => !e._deleted).reduce((e, t) => {
27
27
  let n = typeof t[E] == "number" ? t[E] : -1;
28
28
  return Math.max(e, n);
29
29
  }, -1), r = {
@@ -35,37 +35,37 @@ function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validat
35
35
  let t = n.fields.get(e);
36
36
  t && (i[e] === void 0 ? t.default === void 0 ? t.type === "bool" && (r[e] = !1) : r[e] = t.default : r[e] = i[e]);
37
37
  }
38
- l([...a, r]);
38
+ l([...o, r]);
39
39
  }, [
40
- a,
40
+ o,
41
41
  l,
42
42
  A,
43
43
  n,
44
44
  t.quick_add?.defaults,
45
45
  E
46
46
  ]), I = u((e) => {
47
- l(a.map((t) => t._key === e ? {
47
+ l(o.map((t) => t._key === e ? {
48
48
  ...t,
49
49
  _deleted: !0
50
50
  } : t));
51
- }, [a, l]), L = u((e) => {
52
- l(a.map((t) => t._key === e ? {
51
+ }, [o, l]), L = u((e) => {
52
+ l(o.map((t) => t._key === e ? {
53
53
  ...t,
54
54
  _deleted: !1
55
55
  } : t));
56
- }, [a, l]), R = u((e) => {
56
+ }, [o, l]), R = u((e) => {
57
57
  let { active: t, over: n } = e;
58
58
  if (!n || t.id === n.id) return;
59
- let r = a.filter((e) => !e._deleted), i = a.filter((e) => e._deleted), o = r.findIndex((e) => e._key === String(t.id)), s = r.findIndex((e) => e._key === String(n.id));
60
- if (o === -1 || s === -1) return;
61
- let c = [...r], [u] = c.splice(o, 1);
59
+ let r = o.filter((e) => !e._deleted), i = o.filter((e) => e._deleted), a = r.findIndex((e) => e._key === String(t.id)), s = r.findIndex((e) => e._key === String(n.id));
60
+ if (a === -1 || s === -1) return;
61
+ let c = [...r], [u] = c.splice(a, 1);
62
62
  c.splice(s, 0, u), l([...c.map((e, t) => ({
63
63
  ...e,
64
64
  [E]: t,
65
65
  _dirty: e[E] !== t || e._dirty
66
66
  })), ...i]);
67
67
  }, [
68
- a,
68
+ o,
69
69
  l,
70
70
  E
71
71
  ]), z = u((e) => {
@@ -121,7 +121,7 @@ function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validat
121
121
  let t = n.fields.get(e);
122
122
  return /* @__PURE__ */ p("th", {
123
123
  style: B,
124
- children: t ? r(t, e, i.entities) : e
124
+ children: t ? a(t, e, i.entities) : e
125
125
  }, e);
126
126
  }),
127
127
  /* @__PURE__ */ p("th", { style: {
@@ -131,7 +131,7 @@ function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validat
131
131
  ] }) }), /* @__PURE__ */ p(b, {
132
132
  items: N,
133
133
  strategy: S,
134
- children: /* @__PURE__ */ p("tbody", { children: a.map((e) => /* @__PURE__ */ p(T, {
134
+ children: /* @__PURE__ */ p("tbody", { children: o.map((e) => /* @__PURE__ */ p(T, {
135
135
  row: e,
136
136
  columns: M,
137
137
  editableColumns: A,
@@ -148,7 +148,7 @@ function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validat
148
148
  })
149
149
  }), /* @__PURE__ */ p("div", {
150
150
  style: { marginTop: 8 },
151
- children: /* @__PURE__ */ p(o, {
151
+ children: /* @__PURE__ */ p(r, {
152
152
  kind: "ghost",
153
153
  size: "xs",
154
154
  icon: /* @__PURE__ */ p(e.plus, { size: 12 }),
@@ -157,7 +157,7 @@ function w({ config: t, childEntity: n, schema: i, rows: a, onChange: l, validat
157
157
  })
158
158
  })] });
159
159
  }
160
- function T({ row: r, columns: o, editableColumns: s, displayOnlyColumns: c, childEntity: u, validationErrors: d, refs: f, onCellChange: h, onDelete: g, onUndoDelete: _ }) {
160
+ function T({ row: r, columns: a, editableColumns: s, displayOnlyColumns: c, childEntity: u, validationErrors: d, refs: f, onCellChange: h, onDelete: g, onUndoDelete: _ }) {
161
161
  let v = t(), y = !!r._deleted, b = d?.[r._key], { attributes: S, listeners: w, setNodeRef: T, transform: E, transition: D, isDragging: O } = x({
162
162
  id: r._key,
163
163
  disabled: y
@@ -200,9 +200,9 @@ function T({ row: r, columns: o, editableColumns: s, displayOnlyColumns: c, chil
200
200
  children: /* @__PURE__ */ p(e.grid, { size: 14 })
201
201
  })
202
202
  }),
203
- o.map((e) => {
204
- let t = u.fields.get(e), a = b?.includes(e), o = c.has(e), l = s.includes(e);
205
- return y || o || !l ? /* @__PURE__ */ p("td", {
203
+ a.map((e) => {
204
+ let t = u.fields.get(e), n = b?.includes(e), a = c.has(e), l = s.includes(e);
205
+ return y || a || !l ? /* @__PURE__ */ p("td", {
206
206
  style: {
207
207
  ...A,
208
208
  textDecoration: y ? "line-through" : "none"
@@ -215,15 +215,15 @@ function T({ row: r, columns: o, editableColumns: s, displayOnlyColumns: c, chil
215
215
  record: r,
216
216
  refs: f,
217
217
  locale: v
218
- }) : n(r[e])
218
+ }) : o(r[e])
219
219
  }, e) : /* @__PURE__ */ p("td", {
220
220
  style: {
221
221
  ...j,
222
- outline: a ? "1px solid var(--danger)" : "none",
222
+ outline: n ? "1px solid var(--danger)" : "none",
223
223
  outlineOffset: -1,
224
- borderRadius: a ? 4 : 0
224
+ borderRadius: n ? 4 : 0
225
225
  },
226
- title: a ? `${e} is required` : void 0,
226
+ title: n ? `${e} is required` : void 0,
227
227
  children: t ? i({
228
228
  field: t,
229
229
  fieldName: e,
@@ -233,7 +233,7 @@ function T({ row: r, columns: o, editableColumns: s, displayOnlyColumns: c, chil
233
233
  record: r,
234
234
  refs: f,
235
235
  locale: v
236
- }) : n(r[e])
236
+ }) : o(r[e])
237
237
  }, e);
238
238
  }),
239
239
  /* @__PURE__ */ p("td", {
@@ -242,12 +242,12 @@ function T({ row: r, columns: o, editableColumns: s, displayOnlyColumns: c, chil
242
242
  borderBottom: "1px solid var(--divider)",
243
243
  verticalAlign: "middle"
244
244
  },
245
- children: y ? /* @__PURE__ */ p(a, {
245
+ children: y ? /* @__PURE__ */ p(n, {
246
246
  size: 24,
247
247
  icon: /* @__PURE__ */ p(e.refresh, { size: 12 }),
248
248
  onClick: () => _(r._key),
249
249
  title: "Undo delete"
250
- }) : /* @__PURE__ */ p(a, {
250
+ }) : /* @__PURE__ */ p(n, {
251
251
  size: 24,
252
252
  icon: /* @__PURE__ */ p(e.trash, { size: 12 }),
253
253
  onClick: () => g(r._key),
@@ -0,0 +1,280 @@
1
+ import { useEffect as e, useState as t, useSyncExternalStore as n } from "react";
2
+ import { Activity as r, ArrowDown as i, ArrowLeft as a, ArrowUp as o, ArrowUpDown as s, BadgeDollarSign as c, Ban as l, Bell as u, Bolt as ee, BookOpen as te, Box as d, Boxes as ne, Briefcase as re, Building as f, Building2 as ie, Calendar as ae, CalendarClock as oe, Check as se, ChevronDown as p, ChevronLeft as ce, ChevronRight as le, ChevronUp as ue, CircleDot as de, ClipboardCheck as fe, Clock as pe, Code as me, Columns as he, Columns3 as ge, Command as _e, Copy as m, Cpu as h, CreditCard as g, Database as _, Dot as v, Download as y, Edit as b, ExternalLink as x, Eye as S, EyeOff as C, File as w, FileDiff as T, FilePlus as E, Filter as D, Fingerprint as O, Folder as k, FormInput as A, Gavel as j, GitBranch as M, Globe as N, Grid as P, Group as F, Hash as I, Home as ve, Inbox as ye, Info as be, Key as xe, KeyRound as L, Layers as Se, Layout as Ce, LayoutDashboard as we, Link as Te, List as Ee, ListChecks as De, Loader as Oe, Lock as ke, LogIn as Ae, LogOut as je, Mail as Me, Menu as Ne, MessagesSquare as Pe, Minus as Fe, Moon as Ie, MoreHorizontal as Le, Package as Re, Paperclip as ze, Play as Be, PlayCircle as Ve, Plus as He, PlusCircle as Ue, ReceiptText as We, RefreshCw as Ge, Repeat as R, Save as Ke, Scale as qe, ScrollText as Je, Search as Ye, Settings as Xe, Settings2 as Ze, Shield as Qe, ShieldCheck as $e, ShieldPlus as et, ShoppingCart as tt, Sliders as nt, SlidersHorizontal as rt, Smartphone as it, Sparkle as at, Sparkles as ot, Star as st, Sun as ct, Table2 as lt, Tag as ut, Tags as dt, ToggleRight as ft, Trash as pt, Trash2 as mt, TriangleAlert as ht, Undo2 as gt, Upload as _t, User as vt, UserPlus as yt, Users as z, UsersRound as bt, WalletCards as xt, Webhook as St, Workflow as Ct, X as wt, Zap as B } from "lucide-react";
3
+ import { jsx as V } from "react/jsx-runtime";
4
+ //#region src/components/primitives/Icons.tsx
5
+ var H = (e) => function({ size: t = 14, cls: n = "", style: r = {} }) {
6
+ return /* @__PURE__ */ V(e, {
7
+ size: t,
8
+ className: n,
9
+ style: r
10
+ });
11
+ }, U = function({ size: e = 14, cls: t = "", style: n = {} }) {
12
+ return /* @__PURE__ */ V("svg", {
13
+ width: e,
14
+ height: e,
15
+ viewBox: "0 0 24 24",
16
+ fill: "currentColor",
17
+ "aria-hidden": "true",
18
+ className: t,
19
+ style: n,
20
+ children: /* @__PURE__ */ V("path", { d: "M20.45 20.45h-3.55v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.13 1.45-2.13 2.94v5.67H9.36V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z" })
21
+ });
22
+ }, W = {
23
+ action: H(B),
24
+ activity: H(r),
25
+ ai: H(ot),
26
+ arrowDown: H(i),
27
+ arrowUp: H(o),
28
+ audit: H(fe),
29
+ back: H(a),
30
+ "badge-dollar-sign": H(c),
31
+ ban: H(l),
32
+ bell: H(u),
33
+ bolt: H(ee),
34
+ "book-open": H(te),
35
+ box: H(d),
36
+ boxes: H(ne),
37
+ branch: H(M),
38
+ building: H(f),
39
+ calendar: H(ae),
40
+ check: H(se),
41
+ cheveron: H(p),
42
+ "circle-dot": H(de),
43
+ clock: H(pe),
44
+ code: H(me),
45
+ columns: H(he),
46
+ "columns-3": H(ge),
47
+ command: H(_e),
48
+ company: H(ie),
49
+ copy: H(m),
50
+ cpu: H(h),
51
+ "credit-card": H(g),
52
+ database: H(_),
53
+ dbtable: H(lt),
54
+ device: H(it),
55
+ dot: H(v),
56
+ down: H(p),
57
+ download: H(y),
58
+ edit: H(b),
59
+ email: H(Me),
60
+ entity: H(d),
61
+ external: H(x),
62
+ eye: H(S),
63
+ eyeOff: H(C),
64
+ field: H(A),
65
+ file: H(w),
66
+ "file-diff": H(T),
67
+ filePlus: H(E),
68
+ filter: H(D),
69
+ fingerprint: H(O),
70
+ flow: H(Ct),
71
+ folder: H(k),
72
+ gavel: H(j),
73
+ "git-branch": H(M),
74
+ globe: H(N),
75
+ grid: H(P),
76
+ group: H(F),
77
+ handlers: H(St),
78
+ hash: H(I),
79
+ home: H(ve),
80
+ idp: H(L),
81
+ inbox: H(ye),
82
+ info: H(be),
83
+ jobs: H(re),
84
+ key: H(xe),
85
+ "key-round": H(L),
86
+ layers: H(Se),
87
+ layout: H(Ce),
88
+ "layout-dashboard": H(we),
89
+ leads: H(z),
90
+ left: H(ce),
91
+ link: H(Te),
92
+ linkedin: U,
93
+ list: H(Ee),
94
+ "list-checks": H(De),
95
+ loader: H(Oe),
96
+ lock: H(ke),
97
+ log: H(Je),
98
+ "log-in": H(Ae),
99
+ logout: H(je),
100
+ menu: H(Ne),
101
+ "messages-square": H(Pe),
102
+ minus: H(Fe),
103
+ moon: H(Ie),
104
+ more: H(Le),
105
+ package: H(Re),
106
+ paperclip: H(ze),
107
+ pipeline: H(M),
108
+ play: H(Be),
109
+ "play-circle": H(Ve),
110
+ plus: H(He),
111
+ "plus-circle": H(Ue),
112
+ "receipt-text": H(We),
113
+ refresh: H(Ge),
114
+ repeat: H(R),
115
+ right: H(le),
116
+ save: H(Ke),
117
+ scale: H(qe),
118
+ sched: H(oe),
119
+ search: H(Ye),
120
+ settings: H(Xe),
121
+ "settings-2": H(Ze),
122
+ shield: H(Qe),
123
+ "shield-check": H($e),
124
+ "shield-plus": H(et),
125
+ "shopping-cart": H(tt),
126
+ sliders: H(nt),
127
+ "sliders-horizontal": H(rt),
128
+ sort: H(s),
129
+ sparkle: H(at),
130
+ star: H(st),
131
+ sun: H(ct),
132
+ tag: H(ut),
133
+ tags: H(dt),
134
+ tenant: H(f),
135
+ "toggle-right": H(ft),
136
+ trash: H(pt),
137
+ "trash-2": H(mt),
138
+ "undo-2": H(gt),
139
+ up: H(ue),
140
+ upload: H(_t),
141
+ user: H(vt),
142
+ "user-plus": H(yt),
143
+ users: H(z),
144
+ "users-round": H(bt),
145
+ "wallet-cards": H(xt),
146
+ warning: H(ht),
147
+ x: H(wt),
148
+ zap: H(B)
149
+ }, G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Set(), q = 0;
150
+ function Tt() {
151
+ q += 1;
152
+ for (let e of K) e();
153
+ }
154
+ function Et(e) {
155
+ G.clear();
156
+ for (let [t, n] of Object.entries(e)) G.set(t, n);
157
+ Tt();
158
+ }
159
+ function J(e) {
160
+ return G.get(e);
161
+ }
162
+ function Y(e) {
163
+ return K.add(e), () => {
164
+ K.delete(e);
165
+ };
166
+ }
167
+ function X() {
168
+ return q;
169
+ }
170
+ //#endregion
171
+ //#region src/components/shared/LucideIcon.tsx
172
+ var Z = /* @__PURE__ */ new Map(), Q = null;
173
+ function Dt() {
174
+ return Q ||= import("lucide-react/dynamic.js").then((e) => e.dynamicIconImports), Q;
175
+ }
176
+ function $({ name: n, size: r = 14, className: i, style: a }) {
177
+ let [o, s] = t(() => Z.get(n)), [c, l] = t(!1);
178
+ if (e(() => {
179
+ let e = Z.get(n);
180
+ if (e) {
181
+ s(() => e), l(!1);
182
+ return;
183
+ }
184
+ s(void 0), l(!1);
185
+ let t = !0;
186
+ return Dt().then((e) => {
187
+ let r = e[n];
188
+ if (!r) {
189
+ t && l(!0);
190
+ return;
191
+ }
192
+ return r().then((e) => {
193
+ Z.set(n, e.default), t && (s(() => e.default), l(!1));
194
+ });
195
+ }), () => {
196
+ t = !1;
197
+ };
198
+ }, [n]), c) {
199
+ let e = W.folder;
200
+ return /* @__PURE__ */ V(e, {
201
+ size: r,
202
+ cls: i,
203
+ style: a
204
+ });
205
+ }
206
+ return o ? /* @__PURE__ */ V(o, {
207
+ size: r,
208
+ className: i,
209
+ style: a
210
+ }) : null;
211
+ }
212
+ //#endregion
213
+ //#region src/components/shared/DynamicIcon.tsx
214
+ var Ot = "lucide:";
215
+ function kt({ name: e, size: t, className: r, style: i }) {
216
+ n(Y, X, X);
217
+ let a = typeof t == "number" ? t : typeof t == "string" ? parseFloat(t) : 14, o = J(e);
218
+ if (o) return /* @__PURE__ */ V(At, {
219
+ def: o,
220
+ size: a,
221
+ className: r,
222
+ style: i
223
+ });
224
+ let s = W[e];
225
+ if (s) return /* @__PURE__ */ V(s, {
226
+ size: a,
227
+ cls: r,
228
+ style: i
229
+ });
230
+ let c = e.startsWith(Ot) ? e.slice(7) : e;
231
+ return /* @__PURE__ */ V($, {
232
+ name: c,
233
+ size: a,
234
+ className: r,
235
+ style: i
236
+ });
237
+ }
238
+ function At({ def: e, size: t, className: n, style: r }) {
239
+ switch (e.kind) {
240
+ case "svg": return /* @__PURE__ */ V(jt, {
241
+ paths: e.paths,
242
+ size: t,
243
+ className: n,
244
+ style: r
245
+ });
246
+ case "url": return /* @__PURE__ */ V("img", {
247
+ src: e.src,
248
+ alt: "",
249
+ "aria-hidden": "true",
250
+ width: t,
251
+ height: t,
252
+ className: n,
253
+ style: r
254
+ });
255
+ case "lucide": return /* @__PURE__ */ V($, {
256
+ name: e.name,
257
+ size: t,
258
+ className: n,
259
+ style: r
260
+ });
261
+ }
262
+ }
263
+ function jt({ paths: e, size: t, className: n, style: r }) {
264
+ return /* @__PURE__ */ V("svg", {
265
+ width: t,
266
+ height: t,
267
+ viewBox: "0 0 24 24",
268
+ fill: "none",
269
+ stroke: "currentColor",
270
+ strokeWidth: 1.5,
271
+ strokeLinecap: "round",
272
+ strokeLinejoin: "round",
273
+ className: n,
274
+ style: r,
275
+ "aria-hidden": "true",
276
+ children: e.map((e, t) => /* @__PURE__ */ V("path", { d: e }, t))
277
+ });
278
+ }
279
+ //#endregion
280
+ export { Et as a, U as c, X as i, $ as n, Y as o, J as r, W as s, kt as t };
@@ -1,5 +1,5 @@
1
- import { B as e, I as t, L as n, P as r, R as i, z as a } from "./useCurrentScreen-BshVTPVq.js";
2
- import { c as o, i as s, l as c, t as l } from "./value-B1O6QikE.js";
1
+ import { B as e, I as t, L as n, P as r, R as i, z as a } from "./useCurrentScreen-D3XH5ptA.js";
2
+ import { c as o, i as s, l as c, t as l } from "./value-D71J0sJq.js";
3
3
  import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
4
4
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
5
5
  import { DndContext as v, PointerSensor as y, closestCenter as b, useSensor as x, useSensors as ee } from "@dnd-kit/core";