@declarion/react 0.49.0 → 0.51.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.
- package/dist-lib/{DraggableChildrenTable-B98Md-Yq.js → DraggableChildrenTable-CJCjc_cd.js} +2 -2
- package/dist-lib/DynamicIcon-DW5krHuX.js +280 -0
- package/dist-lib/{Grid-BdtEd4R9.js → Grid-DUjbQg3r.js} +2 -2
- package/dist-lib/{LayoutRenderer-oVU3nEb5.js → LayoutRenderer-DbdxC-Bq.js} +10 -9
- package/dist-lib/{ListCardsBody-DYMt1H8l.js → ListCardsBody-C8ofksQb.js} +4 -4
- package/dist-lib/{MarkdownRenderer-E9hbyoUn.js → MarkdownRenderer-B9_5fwuE.js} +1 -1
- package/dist-lib/{RefreshControl-B_2eW53M.js → RefreshControl-C-8UCyau.js} +3 -3
- package/dist-lib/{SmartDetailPage.impl-Dg22HOxb.js → SmartDetailPage.impl-DWjNQ052.js} +10 -10
- package/dist-lib/{SmartListPage.impl-CPhhXT5S.js → SmartListPage.impl-yKBK7a8b.js} +652 -647
- package/dist-lib/{SmartRecordListPage.impl-CF0UKgUj.js → SmartRecordListPage.impl-DRpU_DOC.js} +10 -10
- package/dist-lib/{SortHeaderMenu-DodGvb7A.js → SortHeaderMenu-CbihbEGd.js} +2 -2
- package/dist-lib/{action-dispatch-CYOw7nkP.js → action-dispatch-C28UhXXA.js} +15 -14
- package/dist-lib/{cardProjection-D-AufCh-.js → cardProjection-Bp_ZPLUE.js} +2 -2
- package/dist-lib/components/fields/cells/registry.d.ts +1 -0
- package/dist-lib/components/fields/index.d.ts +1 -0
- package/dist-lib/components/file-widgets/host.d.ts +1 -0
- package/dist-lib/components/pages/list/DataCell.d.ts +2 -3
- package/dist-lib/components/pages/list/ListCardRow.d.ts +2 -2
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +2 -2
- package/dist-lib/components/pages/list/ListTable.d.ts +5 -6
- package/dist-lib/components/pages/list/ListTableRow.d.ts +2 -3
- package/dist-lib/components/pages/list/column-sizing.d.ts +2 -3
- package/dist-lib/components/pages/list/columns.d.ts +2 -2
- package/dist-lib/components/pages/list/table-features.d.ts +14 -0
- package/dist-lib/components/primitives/Icons.d.ts +5 -0
- package/dist-lib/{field-classification-DTgUnbzd.js → field-classification-CeYJlsNq.js} +9 -9
- package/dist-lib/{format-count-DAHCcHZO.js → format-count-C3N-WxEy.js} +6 -6
- package/dist-lib/hooks/useActionData.d.ts +1 -1
- package/dist-lib/hooks/useAllEntityData.d.ts +1 -1
- package/dist-lib/hooks/useChildrenData.d.ts +1 -1
- package/dist-lib/hooks/useEntityData.d.ts +2 -2
- package/dist-lib/hooks/useObject.d.ts +1 -1
- package/dist-lib/hooks/useParams.d.ts +3 -3
- package/dist-lib/hooks/useSchema.d.ts +1 -1
- package/dist-lib/icons.js +1 -1
- package/dist-lib/index.js +16 -16
- package/dist-lib/{peekDraftStore-CnxqkoWN.js → peekDraftStore-D3sowXga.js} +2 -2
- package/dist-lib/{record-documents-key-DEFlLxnF.js → record-documents-key-8fdm7C10.js} +1 -1
- package/dist-lib/{registry-WypUQQ7t.js → registry-p6CejATt.js} +4 -4
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/files.d.ts +3 -0
- package/dist-lib/types/ordmap.d.ts +9 -2
- package/dist-lib/types/schema.d.ts +2 -1
- package/dist-lib/{useCurrentScreen-C5Oio-1G.js → useCurrentScreen-74x5yJNb.js} +23 -16
- package/dist-lib/{useListQuery-Dc2vbxqs.js → useListQuery-D75bgLLz.js} +3 -3
- package/dist-lib/{useProperties-C36ENFdY.js → useProperties-C5fZp12D.js} +1 -1
- package/dist-lib/{useTabSearchMirror-sIuYEFaq.js → useTabSearchMirror-D_wzoYRz.js} +2 -2
- package/dist-lib/{value-igT4LsqW.js → value-DKekzcjz.js} +1 -1
- package/package.json +20 -20
- package/dist-lib/DynamicIcon-Dc2j-rg_.js +0 -275
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, s as t, t as n } from "./DynamicIcon-
|
|
1
|
+
import { c as e, s as t, t as n } from "./DynamicIcon-DW5krHuX.js";
|
|
2
2
|
import { Suspense as r, createContext as i, forwardRef as a, lazy as o, useCallback as s, useContext as c, useEffect as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
3
3
|
import { useLocation as m, useNavigate as h } from "react-router";
|
|
4
4
|
import { useQuery as g, useQueryClient as _ } from "@tanstack/react-query";
|
|
@@ -1350,6 +1350,12 @@ var L = class e {
|
|
|
1350
1350
|
this.#t = t;
|
|
1351
1351
|
}
|
|
1352
1352
|
static fromObject(t) {
|
|
1353
|
+
return e.#n(t);
|
|
1354
|
+
}
|
|
1355
|
+
static fromWire(t) {
|
|
1356
|
+
return e.#n(t);
|
|
1357
|
+
}
|
|
1358
|
+
static #n(t) {
|
|
1353
1359
|
if (!t) return new e([]);
|
|
1354
1360
|
let n = [];
|
|
1355
1361
|
for (let [e, r] of Object.entries(t)) n.push({
|
|
@@ -2156,13 +2162,13 @@ async function Y(e, t = {}) {
|
|
|
2156
2162
|
function Fn(e) {
|
|
2157
2163
|
return {
|
|
2158
2164
|
...e,
|
|
2159
|
-
params: e.params ? L.
|
|
2165
|
+
params: e.params ? L.fromWire(e.params) : void 0
|
|
2160
2166
|
};
|
|
2161
2167
|
}
|
|
2162
2168
|
function In(e) {
|
|
2163
2169
|
return {
|
|
2164
2170
|
...e,
|
|
2165
|
-
resolved_params: e.resolved_params ? L.
|
|
2171
|
+
resolved_params: e.resolved_params ? L.fromWire(e.resolved_params) : void 0
|
|
2166
2172
|
};
|
|
2167
2173
|
}
|
|
2168
2174
|
function Ln(e) {
|
|
@@ -2172,9 +2178,9 @@ function Ln(e) {
|
|
|
2172
2178
|
if (e.actions) for (let [t, r] of Object.entries(e.actions)) n[t] = In(r);
|
|
2173
2179
|
return {
|
|
2174
2180
|
...e,
|
|
2175
|
-
fields: L.
|
|
2176
|
-
files: e.files ? L.
|
|
2177
|
-
variants: e.variants ? L.
|
|
2181
|
+
fields: L.fromWire(e.fields),
|
|
2182
|
+
files: e.files ? L.fromWire(e.files) : void 0,
|
|
2183
|
+
variants: e.variants ? L.fromWire(e.variants) : void 0,
|
|
2178
2184
|
handlers: e.handlers ? t : void 0,
|
|
2179
2185
|
actions: e.actions ? n : void 0
|
|
2180
2186
|
};
|
|
@@ -2185,7 +2191,7 @@ function Rn(e) {
|
|
|
2185
2191
|
let n = {};
|
|
2186
2192
|
if (e.structures) for (let [t, r] of Object.entries(e.structures)) n[t] = {
|
|
2187
2193
|
...r,
|
|
2188
|
-
fields: L.
|
|
2194
|
+
fields: L.fromWire(r.fields)
|
|
2189
2195
|
};
|
|
2190
2196
|
let r = {};
|
|
2191
2197
|
if (e.handlers) for (let [t, n] of Object.entries(e.handlers)) r[t] = Fn(n);
|
|
@@ -2196,7 +2202,7 @@ function Rn(e) {
|
|
|
2196
2202
|
let n = t;
|
|
2197
2203
|
a[e] = {
|
|
2198
2204
|
...t,
|
|
2199
|
-
variants: n.variants ? L.
|
|
2205
|
+
variants: n.variants ? L.fromWire(n.variants) : void 0
|
|
2200
2206
|
};
|
|
2201
2207
|
}
|
|
2202
2208
|
return {
|
|
@@ -3048,7 +3054,7 @@ var Z = {
|
|
|
3048
3054
|
update: ri,
|
|
3049
3055
|
dismiss: (e) => v.dismiss(e),
|
|
3050
3056
|
dismissAll: () => v.dismiss()
|
|
3051
|
-
}, ii = o(() => import("./MarkdownRenderer-
|
|
3057
|
+
}, ii = o(() => import("./MarkdownRenderer-B9_5fwuE.js").then((e) => ({ default: e.MarkdownRenderer })));
|
|
3052
3058
|
function ai() {
|
|
3053
3059
|
return /* @__PURE__ */ b("div", { className: "h-4 w-2/3 rounded bg-muted animate-pulse" });
|
|
3054
3060
|
}
|
|
@@ -5046,19 +5052,19 @@ function co(e, t, n) {
|
|
|
5046
5052
|
//#endregion
|
|
5047
5053
|
//#region src/components/fields/cells/factories/refLink.tsx
|
|
5048
5054
|
var lo = (e) => {
|
|
5049
|
-
let { field: t, entities: r, screens: i, refs: a, surface: o } = e,
|
|
5055
|
+
let { field: t, entities: r, screens: i, refs: a, surface: o, detailScreen: s } = e, c = t.ref?.entity, l = c ? r?.[c] : void 0, u = typeof a == "function" ? a : () => a, d = o === "detail", f = l?.display?.icon, p = t.display?.ref_display_field || "$display", m = s || l?.detail_screen, h = (m ? i?.[m] : void 0)?.route;
|
|
5050
5056
|
return (e, t) => {
|
|
5051
5057
|
if (e == null || e === "") return "—";
|
|
5052
|
-
let r = R(e), i = uo(r,
|
|
5053
|
-
if (
|
|
5054
|
-
let e = /* @__PURE__ */ x(y, { children: [
|
|
5058
|
+
let r = R(e), i = uo(r, c, u(), p), a = h ? h.replace(":id", encodeURIComponent(r)) : void 0;
|
|
5059
|
+
if (d) {
|
|
5060
|
+
let e = /* @__PURE__ */ x(y, { children: [f && /* @__PURE__ */ b("span", {
|
|
5055
5061
|
style: {
|
|
5056
5062
|
color: "var(--text-3)",
|
|
5057
5063
|
display: "flex",
|
|
5058
5064
|
flexShrink: 0
|
|
5059
5065
|
},
|
|
5060
5066
|
children: /* @__PURE__ */ b(n, {
|
|
5061
|
-
name:
|
|
5067
|
+
name: f,
|
|
5062
5068
|
size: 13
|
|
5063
5069
|
})
|
|
5064
5070
|
}), /* @__PURE__ */ b("span", {
|
|
@@ -5737,7 +5743,8 @@ function Cs(e) {
|
|
|
5737
5743
|
entities: e.entities,
|
|
5738
5744
|
screens: e.screens,
|
|
5739
5745
|
refs: e.refs,
|
|
5740
|
-
locale: e.locale
|
|
5746
|
+
locale: e.locale,
|
|
5747
|
+
detailScreen: e.detailScreen
|
|
5741
5748
|
})(e.value, e.record ?? {});
|
|
5742
5749
|
}
|
|
5743
5750
|
//#endregion
|
|
@@ -6782,7 +6789,7 @@ function tl({ open: e, onOpenChange: n, action: r, actionName: i, onSubmit: a, i
|
|
|
6782
6789
|
icon: b(o ? Se : v ? t.trash : t.bolt, { size: 13 }),
|
|
6783
6790
|
onClick: te,
|
|
6784
6791
|
disabled: o,
|
|
6785
|
-
children: o ? "
|
|
6792
|
+
children: o ? "Working…" : i || "Confirm"
|
|
6786
6793
|
})
|
|
6787
6794
|
]
|
|
6788
6795
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as e, X as t, Y as n } from "./useCurrentScreen-
|
|
2
|
-
import { y as r } from "./field-classification-
|
|
3
|
-
import { _ as i, y as a } from "./useTabSearchMirror-
|
|
1
|
+
import { J as e, X as t, Y as n } from "./useCurrentScreen-74x5yJNb.js";
|
|
2
|
+
import { y as r } from "./field-classification-CeYJlsNq.js";
|
|
3
|
+
import { _ as i, y as a } from "./useTabSearchMirror-D_wzoYRz.js";
|
|
4
4
|
import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
5
5
|
import { useQueryClient as u } from "@tanstack/react-query";
|
|
6
6
|
//#region src/components/pages/list/useListQuery.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bt as e, rt as t } from "./useCurrentScreen-
|
|
1
|
+
import { bt as e, rt as t } from "./useCurrentScreen-74x5yJNb.js";
|
|
2
2
|
import { useMutation as n, useQueryClient as r } from "@tanstack/react-query";
|
|
3
3
|
//#region src/api/status.ts
|
|
4
4
|
async function i(t, n, r, i, a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dn as e, Gt as t, Kt as n, bt as r, mn as i, pn as a, pt as o, zn as s } from "./useCurrentScreen-
|
|
2
|
-
import { F as c } from "./field-classification-
|
|
1
|
+
import { Dn as e, Gt as t, Kt as n, bt as r, mn as i, pn as a, pt as o, zn as s } from "./useCurrentScreen-74x5yJNb.js";
|
|
2
|
+
import { F as c } from "./field-classification-CeYJlsNq.js";
|
|
3
3
|
import { useEffect as l, useLayoutEffect as u, useMemo as d } from "react";
|
|
4
4
|
import { useSearchParams as f } from "react-router";
|
|
5
5
|
import { useInfiniteQuery as p, useQueryClient as m } from "@tanstack/react-query";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as e, en as t, hn as n, rn as r } from "./useCurrentScreen-
|
|
1
|
+
import { $t as e, en as t, hn as n, rn as r } from "./useCurrentScreen-74x5yJNb.js";
|
|
2
2
|
import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
|
|
3
3
|
//#region src/embed/file-src.ts
|
|
4
4
|
var c = "/api/files";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"@radix-ui/react-select": "^2.3.7",
|
|
66
66
|
"@radix-ui/react-separator": "^1.1.15",
|
|
67
67
|
"@radix-ui/react-slot": "^1.3.3",
|
|
68
|
-
"@tanstack/react-query": "^5.
|
|
69
|
-
"@tanstack/react-table": "^
|
|
70
|
-
"@tanstack/react-virtual": "^3.14.
|
|
68
|
+
"@tanstack/react-query": "^5.102.4",
|
|
69
|
+
"@tanstack/react-table": "^9.1.2",
|
|
70
|
+
"@tanstack/react-virtual": "^3.14.10",
|
|
71
71
|
"class-variance-authority": "^0.7.1",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
73
73
|
"date-fns": "^4.4.0",
|
|
74
|
-
"lucide-react": "^1.
|
|
74
|
+
"lucide-react": "^1.34.0",
|
|
75
75
|
"mdast-util-to-string": "^4.0.0",
|
|
76
76
|
"monaco-editor": "^0.56.0",
|
|
77
77
|
"react-markdown": "^10.1.0",
|
|
@@ -81,38 +81,38 @@
|
|
|
81
81
|
"remark-breaks": "^4.0.0",
|
|
82
82
|
"remark-gfm": "^4.0.1",
|
|
83
83
|
"remark-parse": "^11.0.0",
|
|
84
|
-
"sonner": "^2.0.
|
|
84
|
+
"sonner": "^2.0.8",
|
|
85
85
|
"tailwind-merge": "^3.6.0",
|
|
86
86
|
"unified": "^11.0.5",
|
|
87
87
|
"vanilla-jsoneditor": "^3.13.0",
|
|
88
|
-
"zustand": "^5.0.
|
|
88
|
+
"zustand": "^5.0.15"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@axe-core/react": "^4.
|
|
91
|
+
"@axe-core/react": "^4.13.0",
|
|
92
92
|
"@tailwindcss/typography": "^0.5.20",
|
|
93
93
|
"@tailwindcss/vite": "^4.3.3",
|
|
94
94
|
"@testing-library/dom": "^10.4.1",
|
|
95
|
-
"@testing-library/jest-dom": "^7.0.
|
|
95
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
96
96
|
"@testing-library/react": "^16.3.2",
|
|
97
|
-
"@testing-library/user-event": "^14.6.
|
|
97
|
+
"@testing-library/user-event": "^14.6.6",
|
|
98
98
|
"@types/react": "^19.2.18",
|
|
99
|
-
"@types/react-dom": "^19.2.
|
|
100
|
-
"@vitejs/plugin-react": "^6.0
|
|
101
|
-
"@vitest/coverage-v8": "^4.1.
|
|
99
|
+
"@types/react-dom": "^19.2.5",
|
|
100
|
+
"@vitejs/plugin-react": "^6.1.0",
|
|
101
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
102
102
|
"axe-core": "^4.13.0",
|
|
103
|
-
"eslint": "^10.
|
|
103
|
+
"eslint": "^10.9.1",
|
|
104
104
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
105
|
-
"jsdom": "^
|
|
105
|
+
"jsdom": "^30.0.1",
|
|
106
106
|
"msw": "^2.15.0",
|
|
107
|
-
"publint": "^0.3.
|
|
107
|
+
"publint": "^0.3.24",
|
|
108
108
|
"react": "^19.2.8",
|
|
109
109
|
"react-dom": "^19.2.8",
|
|
110
110
|
"tailwindcss": "^4.3.3",
|
|
111
|
-
"tsc-alias": "^1.9.
|
|
111
|
+
"tsc-alias": "^1.9.2",
|
|
112
112
|
"typescript": "^6.0.3",
|
|
113
|
-
"typescript-eslint": "^8.
|
|
114
|
-
"vite": "^8.2.
|
|
115
|
-
"vitest": "^4.1.
|
|
113
|
+
"typescript-eslint": "^8.68.0",
|
|
114
|
+
"vite": "^8.2.2",
|
|
115
|
+
"vitest": "^4.1.11"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"dev": "vite",
|
|
@@ -1,275 +0,0 @@
|
|
|
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 ee, Bolt as te, Box as u, Boxes as ne, Briefcase as re, Building as d, Building2 as f, Calendar as ie, CalendarClock as ae, Check as oe, ChevronDown as p, ChevronLeft as se, ChevronRight as ce, ChevronUp as le, CircleDot as ue, ClipboardCheck as de, Clock as fe, Code as pe, Columns as me, Columns3 as he, Command as ge, Copy as _e, Cpu as m, CreditCard as h, Database as g, Dot as _, Download as v, Edit as y, ExternalLink as b, Eye as x, EyeOff as S, File as C, FileDiff as w, FilePlus as T, Filter as E, Folder as D, FormInput as O, GitBranch as k, Globe as A, Grid as j, Group as M, Hash as N, Home as P, Inbox as F, Info as I, Key as ve, KeyRound as L, Layers as ye, Layout as be, LayoutDashboard as xe, Link as Se, List as Ce, ListChecks as we, Loader as Te, Lock as Ee, LogIn as De, LogOut as Oe, Mail as ke, Menu as Ae, Minus as je, Moon as Me, MoreHorizontal as Ne, Package as Pe, Paperclip as Fe, Play as Ie, PlayCircle as Le, Plus as R, PlusCircle as Re, ReceiptText as ze, RefreshCw as Be, Repeat as Ve, Save as He, ScrollText as Ue, Search as We, Settings as Ge, Settings2 as Ke, Shield as qe, ShieldCheck as Je, ShieldPlus as Ye, ShoppingCart as Xe, Sliders as Ze, SlidersHorizontal as Qe, Smartphone as $e, Sparkle as et, Sparkles as tt, Star as nt, Sun as rt, Table2 as it, Tag as at, Tags as ot, ToggleRight as st, Trash as ct, Trash2 as lt, TriangleAlert as ut, Undo2 as dt, Upload as ft, User as pt, UserPlus as mt, Users as z, UsersRound as ht, WalletCards as gt, Webhook as _t, Workflow as vt, X as yt, 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(tt),
|
|
26
|
-
arrowDown: H(i),
|
|
27
|
-
arrowUp: H(o),
|
|
28
|
-
audit: H(de),
|
|
29
|
-
back: H(a),
|
|
30
|
-
"badge-dollar-sign": H(c),
|
|
31
|
-
ban: H(l),
|
|
32
|
-
bell: H(ee),
|
|
33
|
-
bolt: H(te),
|
|
34
|
-
box: H(u),
|
|
35
|
-
boxes: H(ne),
|
|
36
|
-
branch: H(k),
|
|
37
|
-
building: H(d),
|
|
38
|
-
calendar: H(ie),
|
|
39
|
-
check: H(oe),
|
|
40
|
-
cheveron: H(p),
|
|
41
|
-
"circle-dot": H(ue),
|
|
42
|
-
clock: H(fe),
|
|
43
|
-
code: H(pe),
|
|
44
|
-
columns: H(me),
|
|
45
|
-
"columns-3": H(he),
|
|
46
|
-
command: H(ge),
|
|
47
|
-
company: H(f),
|
|
48
|
-
copy: H(_e),
|
|
49
|
-
cpu: H(m),
|
|
50
|
-
"credit-card": H(h),
|
|
51
|
-
database: H(g),
|
|
52
|
-
dbtable: H(it),
|
|
53
|
-
device: H($e),
|
|
54
|
-
dot: H(_),
|
|
55
|
-
down: H(p),
|
|
56
|
-
download: H(v),
|
|
57
|
-
edit: H(y),
|
|
58
|
-
email: H(ke),
|
|
59
|
-
entity: H(u),
|
|
60
|
-
external: H(b),
|
|
61
|
-
eye: H(x),
|
|
62
|
-
eyeOff: H(S),
|
|
63
|
-
field: H(O),
|
|
64
|
-
file: H(C),
|
|
65
|
-
"file-diff": H(w),
|
|
66
|
-
filePlus: H(T),
|
|
67
|
-
filter: H(E),
|
|
68
|
-
flow: H(vt),
|
|
69
|
-
folder: H(D),
|
|
70
|
-
"git-branch": H(k),
|
|
71
|
-
globe: H(A),
|
|
72
|
-
grid: H(j),
|
|
73
|
-
group: H(M),
|
|
74
|
-
handlers: H(_t),
|
|
75
|
-
hash: H(N),
|
|
76
|
-
home: H(P),
|
|
77
|
-
idp: H(L),
|
|
78
|
-
inbox: H(F),
|
|
79
|
-
info: H(I),
|
|
80
|
-
jobs: H(re),
|
|
81
|
-
key: H(ve),
|
|
82
|
-
"key-round": H(L),
|
|
83
|
-
layers: H(ye),
|
|
84
|
-
layout: H(be),
|
|
85
|
-
"layout-dashboard": H(xe),
|
|
86
|
-
leads: H(z),
|
|
87
|
-
left: H(se),
|
|
88
|
-
link: H(Se),
|
|
89
|
-
linkedin: U,
|
|
90
|
-
list: H(Ce),
|
|
91
|
-
"list-checks": H(we),
|
|
92
|
-
loader: H(Te),
|
|
93
|
-
lock: H(Ee),
|
|
94
|
-
log: H(Ue),
|
|
95
|
-
"log-in": H(De),
|
|
96
|
-
logout: H(Oe),
|
|
97
|
-
menu: H(Ae),
|
|
98
|
-
minus: H(je),
|
|
99
|
-
moon: H(Me),
|
|
100
|
-
more: H(Ne),
|
|
101
|
-
package: H(Pe),
|
|
102
|
-
paperclip: H(Fe),
|
|
103
|
-
pipeline: H(k),
|
|
104
|
-
play: H(Ie),
|
|
105
|
-
"play-circle": H(Le),
|
|
106
|
-
plus: H(R),
|
|
107
|
-
"plus-circle": H(Re),
|
|
108
|
-
"receipt-text": H(ze),
|
|
109
|
-
refresh: H(Be),
|
|
110
|
-
repeat: H(Ve),
|
|
111
|
-
right: H(ce),
|
|
112
|
-
save: H(He),
|
|
113
|
-
sched: H(ae),
|
|
114
|
-
search: H(We),
|
|
115
|
-
settings: H(Ge),
|
|
116
|
-
"settings-2": H(Ke),
|
|
117
|
-
shield: H(qe),
|
|
118
|
-
"shield-check": H(Je),
|
|
119
|
-
"shield-plus": H(Ye),
|
|
120
|
-
"shopping-cart": H(Xe),
|
|
121
|
-
sliders: H(Ze),
|
|
122
|
-
"sliders-horizontal": H(Qe),
|
|
123
|
-
sort: H(s),
|
|
124
|
-
sparkle: H(et),
|
|
125
|
-
star: H(nt),
|
|
126
|
-
sun: H(rt),
|
|
127
|
-
tag: H(at),
|
|
128
|
-
tags: H(ot),
|
|
129
|
-
tenant: H(d),
|
|
130
|
-
"toggle-right": H(st),
|
|
131
|
-
trash: H(ct),
|
|
132
|
-
"trash-2": H(lt),
|
|
133
|
-
"undo-2": H(dt),
|
|
134
|
-
up: H(le),
|
|
135
|
-
upload: H(ft),
|
|
136
|
-
user: H(pt),
|
|
137
|
-
"user-plus": H(mt),
|
|
138
|
-
users: H(z),
|
|
139
|
-
"users-round": H(ht),
|
|
140
|
-
"wallet-cards": H(gt),
|
|
141
|
-
warning: H(ut),
|
|
142
|
-
x: H(yt),
|
|
143
|
-
zap: H(B)
|
|
144
|
-
}, G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Set(), q = 0;
|
|
145
|
-
function bt() {
|
|
146
|
-
q += 1;
|
|
147
|
-
for (let e of K) e();
|
|
148
|
-
}
|
|
149
|
-
function xt(e) {
|
|
150
|
-
G.clear();
|
|
151
|
-
for (let [t, n] of Object.entries(e)) G.set(t, n);
|
|
152
|
-
bt();
|
|
153
|
-
}
|
|
154
|
-
function J(e) {
|
|
155
|
-
return G.get(e);
|
|
156
|
-
}
|
|
157
|
-
function Y(e) {
|
|
158
|
-
return K.add(e), () => {
|
|
159
|
-
K.delete(e);
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
function X() {
|
|
163
|
-
return q;
|
|
164
|
-
}
|
|
165
|
-
//#endregion
|
|
166
|
-
//#region src/components/shared/LucideIcon.tsx
|
|
167
|
-
var Z = /* @__PURE__ */ new Map(), Q = null;
|
|
168
|
-
function St() {
|
|
169
|
-
return Q ||= import("lucide-react/dynamic.js").then((e) => e.dynamicIconImports), Q;
|
|
170
|
-
}
|
|
171
|
-
function $({ name: n, size: r = 14, className: i, style: a }) {
|
|
172
|
-
let [o, s] = t(() => Z.get(n)), [c, l] = t(!1);
|
|
173
|
-
if (e(() => {
|
|
174
|
-
let e = Z.get(n);
|
|
175
|
-
if (e) {
|
|
176
|
-
s(() => e), l(!1);
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
s(void 0), l(!1);
|
|
180
|
-
let t = !0;
|
|
181
|
-
return St().then((e) => {
|
|
182
|
-
let r = e[n];
|
|
183
|
-
if (!r) {
|
|
184
|
-
t && l(!0);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
return r().then((e) => {
|
|
188
|
-
Z.set(n, e.default), t && (s(() => e.default), l(!1));
|
|
189
|
-
});
|
|
190
|
-
}), () => {
|
|
191
|
-
t = !1;
|
|
192
|
-
};
|
|
193
|
-
}, [n]), c) {
|
|
194
|
-
let e = W.folder;
|
|
195
|
-
return /* @__PURE__ */ V(e, {
|
|
196
|
-
size: r,
|
|
197
|
-
cls: i,
|
|
198
|
-
style: a
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
return o ? /* @__PURE__ */ V(o, {
|
|
202
|
-
size: r,
|
|
203
|
-
className: i,
|
|
204
|
-
style: a
|
|
205
|
-
}) : null;
|
|
206
|
-
}
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region src/components/shared/DynamicIcon.tsx
|
|
209
|
-
var Ct = "lucide:";
|
|
210
|
-
function wt({ name: e, size: t, className: r, style: i }) {
|
|
211
|
-
n(Y, X, X);
|
|
212
|
-
let a = typeof t == "number" ? t : typeof t == "string" ? parseFloat(t) : 14, o = J(e);
|
|
213
|
-
if (o) return /* @__PURE__ */ V(Tt, {
|
|
214
|
-
def: o,
|
|
215
|
-
size: a,
|
|
216
|
-
className: r,
|
|
217
|
-
style: i
|
|
218
|
-
});
|
|
219
|
-
let s = W[e];
|
|
220
|
-
if (s) return /* @__PURE__ */ V(s, {
|
|
221
|
-
size: a,
|
|
222
|
-
cls: r,
|
|
223
|
-
style: i
|
|
224
|
-
});
|
|
225
|
-
let c = e.startsWith(Ct) ? e.slice(7) : e;
|
|
226
|
-
return /* @__PURE__ */ V($, {
|
|
227
|
-
name: c,
|
|
228
|
-
size: a,
|
|
229
|
-
className: r,
|
|
230
|
-
style: i
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function Tt({ def: e, size: t, className: n, style: r }) {
|
|
234
|
-
switch (e.kind) {
|
|
235
|
-
case "svg": return /* @__PURE__ */ V(Et, {
|
|
236
|
-
paths: e.paths,
|
|
237
|
-
size: t,
|
|
238
|
-
className: n,
|
|
239
|
-
style: r
|
|
240
|
-
});
|
|
241
|
-
case "url": return /* @__PURE__ */ V("img", {
|
|
242
|
-
src: e.src,
|
|
243
|
-
alt: "",
|
|
244
|
-
"aria-hidden": "true",
|
|
245
|
-
width: t,
|
|
246
|
-
height: t,
|
|
247
|
-
className: n,
|
|
248
|
-
style: r
|
|
249
|
-
});
|
|
250
|
-
case "lucide": return /* @__PURE__ */ V($, {
|
|
251
|
-
name: e.name,
|
|
252
|
-
size: t,
|
|
253
|
-
className: n,
|
|
254
|
-
style: r
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
function Et({ paths: e, size: t, className: n, style: r }) {
|
|
259
|
-
return /* @__PURE__ */ V("svg", {
|
|
260
|
-
width: t,
|
|
261
|
-
height: t,
|
|
262
|
-
viewBox: "0 0 24 24",
|
|
263
|
-
fill: "none",
|
|
264
|
-
stroke: "currentColor",
|
|
265
|
-
strokeWidth: 1.5,
|
|
266
|
-
strokeLinecap: "round",
|
|
267
|
-
strokeLinejoin: "round",
|
|
268
|
-
className: n,
|
|
269
|
-
style: r,
|
|
270
|
-
"aria-hidden": "true",
|
|
271
|
-
children: e.map((e, t) => /* @__PURE__ */ V("path", { d: e }, t))
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
//#endregion
|
|
275
|
-
export { xt as a, U as c, X as i, $ as n, Y as o, J as r, W as s, wt as t };
|