@declarion/react 0.37.1 → 0.38.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-_ZZcNOIn.js → DraggableChildrenTable-CI5a0Emm.js} +2 -2
- package/dist-lib/DynamicIcon-DeRpAaXm.js +273 -0
- package/dist-lib/{Grid-k1alUfJH.js → Grid-BZEMUmjI.js} +2 -2
- package/dist-lib/{LayoutRenderer-C3pdqkHp.js → LayoutRenderer-CnKUYh8M.js} +950 -671
- package/dist-lib/{MarkdownRenderer-jhYOLGsz.js → MarkdownRenderer-DNmOqp_M.js} +1 -1
- package/dist-lib/{RefreshControl-BscVr98E.js → RefreshControl-DsEXi6WF.js} +2 -2
- package/dist-lib/{SmartDetailPage.impl-Ycy0dZkv.js → SmartDetailPage.impl-BrIZmjFF.js} +17 -19
- package/dist-lib/{SmartRecordListPage.impl-W41z1hiJ.js → SmartRecordListPage.impl-Bi_FPbGy.js} +5 -5
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +2 -0
- package/dist-lib/components/primitives/Icons.d.ts +2 -0
- package/dist-lib/components/shared/RecordHeader.d.ts +2 -1
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/icons.js +1 -1
- package/dist-lib/index.js +10 -10
- package/dist-lib/{registry-D6uzF1n6.js → registry-B_AmhRdj.js} +35 -23
- package/dist-lib/testing.js +1 -1
- package/dist-lib/{useCurrentScreen-CD6xJlyU.js → useCurrentScreen-CcsD2NAk.js} +1701 -1694
- package/dist-lib/{useProperties-BK4ilgGN.js → useProperties-CPtQIWXp.js} +2 -2
- package/dist-lib/{value-DFxS49M5.js → value-BCjHI_Ai.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/DynamicIcon-BWO6QtNF.js +0 -261
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, $t as t, Mt as n, U as r, bn as i, jt as a, ot as o, un as s } from "./useCurrentScreen-
|
|
2
|
-
import { vt as c } from "./registry-
|
|
1
|
+
import { $ as e, $t as t, Mt as n, U as r, bn as i, jt as a, ot as o, un as s } from "./useCurrentScreen-CcsD2NAk.js";
|
|
2
|
+
import { vt as c } from "./registry-B_AmhRdj.js";
|
|
3
3
|
import { useEffect as l, useMemo as u } from "react";
|
|
4
4
|
import { useSearchParams as d } from "react-router-dom";
|
|
5
5
|
import { useInfiniteQuery as f, useMutation as p, useQueryClient as m } from "@tanstack/react-query";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as e, Ut as t, zt as n } from "./useCurrentScreen-
|
|
1
|
+
import { Bt as e, Ut as t, zt as n } from "./useCurrentScreen-CcsD2NAk.js";
|
|
2
2
|
import { useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
3
3
|
//#region src/embed/file-src.ts
|
|
4
4
|
var s = "/api/files";
|
package/package.json
CHANGED
|
@@ -1,261 +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 u, Bolt as ee, Box as d, Boxes as te, Briefcase as ne, Building as f, Building2 as re, 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 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, Folder as O, FormInput as k, GitBranch as A, Globe as j, Grid as M, Group as N, Hash as P, Home as F, Inbox as I, Info as L, Key as _e, KeyRound as R, Layers as ve, Layout as ye, LayoutDashboard as be, Link as xe, List as Se, ListChecks as Ce, Loader as we, Lock as Te, LogIn as Ee, LogOut as De, Mail as Oe, Menu as ke, Minus as Ae, Moon as je, MoreHorizontal as Me, Package as Ne, Paperclip as Pe, Play as Fe, PlayCircle as Ie, Plus as Le, PlusCircle as Re, ReceiptText as ze, RefreshCw as z, Repeat as Be, Save as Ve, ScrollText as He, Search as Ue, Settings as We, Settings2 as Ge, Shield as Ke, ShieldCheck as qe, ShieldPlus as Je, ShoppingCart as Ye, Sliders as Xe, SlidersHorizontal as Ze, Smartphone as Qe, Sparkle as $e, Sparkles as et, Star as tt, Sun as nt, Table2 as rt, Tag as it, Tags as at, ToggleRight as ot, Trash as st, Trash2 as ct, TriangleAlert as lt, Undo2 as ut, Upload as dt, User as ft, UserPlus as pt, Users as B, UsersRound as mt, WalletCards as ht, Webhook as gt, Workflow as _t, X as vt, Zap as V } from "lucide-react";
|
|
3
|
-
import { jsx as H } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/primitives/Icons.tsx
|
|
5
|
-
var U = (e) => function({ size: t = 14, cls: n = "", style: r = {} }) {
|
|
6
|
-
return /* @__PURE__ */ H(e, {
|
|
7
|
-
size: t,
|
|
8
|
-
className: n,
|
|
9
|
-
style: r
|
|
10
|
-
});
|
|
11
|
-
}, W = {
|
|
12
|
-
action: U(V),
|
|
13
|
-
activity: U(r),
|
|
14
|
-
ai: U(et),
|
|
15
|
-
arrowDown: U(i),
|
|
16
|
-
arrowUp: U(o),
|
|
17
|
-
audit: U(de),
|
|
18
|
-
back: U(a),
|
|
19
|
-
"badge-dollar-sign": U(c),
|
|
20
|
-
ban: U(l),
|
|
21
|
-
bell: U(u),
|
|
22
|
-
bolt: U(ee),
|
|
23
|
-
box: U(d),
|
|
24
|
-
boxes: U(te),
|
|
25
|
-
branch: U(A),
|
|
26
|
-
building: U(f),
|
|
27
|
-
calendar: U(ie),
|
|
28
|
-
check: U(oe),
|
|
29
|
-
cheveron: U(p),
|
|
30
|
-
"circle-dot": U(ue),
|
|
31
|
-
clock: U(fe),
|
|
32
|
-
code: U(pe),
|
|
33
|
-
columns: U(me),
|
|
34
|
-
"columns-3": U(he),
|
|
35
|
-
command: U(ge),
|
|
36
|
-
company: U(re),
|
|
37
|
-
copy: U(m),
|
|
38
|
-
cpu: U(h),
|
|
39
|
-
"credit-card": U(g),
|
|
40
|
-
database: U(_),
|
|
41
|
-
dbtable: U(rt),
|
|
42
|
-
device: U(Qe),
|
|
43
|
-
dot: U(v),
|
|
44
|
-
down: U(p),
|
|
45
|
-
download: U(y),
|
|
46
|
-
edit: U(b),
|
|
47
|
-
email: U(Oe),
|
|
48
|
-
entity: U(d),
|
|
49
|
-
external: U(x),
|
|
50
|
-
eye: U(S),
|
|
51
|
-
eyeOff: U(C),
|
|
52
|
-
field: U(k),
|
|
53
|
-
file: U(w),
|
|
54
|
-
"file-diff": U(T),
|
|
55
|
-
filePlus: U(E),
|
|
56
|
-
filter: U(D),
|
|
57
|
-
flow: U(_t),
|
|
58
|
-
folder: U(O),
|
|
59
|
-
"git-branch": U(A),
|
|
60
|
-
globe: U(j),
|
|
61
|
-
grid: U(M),
|
|
62
|
-
group: U(N),
|
|
63
|
-
handlers: U(gt),
|
|
64
|
-
hash: U(P),
|
|
65
|
-
home: U(F),
|
|
66
|
-
idp: U(R),
|
|
67
|
-
inbox: U(I),
|
|
68
|
-
info: U(L),
|
|
69
|
-
jobs: U(ne),
|
|
70
|
-
key: U(_e),
|
|
71
|
-
"key-round": U(R),
|
|
72
|
-
layers: U(ve),
|
|
73
|
-
layout: U(ye),
|
|
74
|
-
"layout-dashboard": U(be),
|
|
75
|
-
leads: U(B),
|
|
76
|
-
left: U(se),
|
|
77
|
-
link: U(xe),
|
|
78
|
-
list: U(Se),
|
|
79
|
-
"list-checks": U(Ce),
|
|
80
|
-
loader: U(we),
|
|
81
|
-
lock: U(Te),
|
|
82
|
-
log: U(He),
|
|
83
|
-
"log-in": U(Ee),
|
|
84
|
-
logout: U(De),
|
|
85
|
-
menu: U(ke),
|
|
86
|
-
minus: U(Ae),
|
|
87
|
-
moon: U(je),
|
|
88
|
-
more: U(Me),
|
|
89
|
-
package: U(Ne),
|
|
90
|
-
paperclip: U(Pe),
|
|
91
|
-
pipeline: U(A),
|
|
92
|
-
play: U(Fe),
|
|
93
|
-
"play-circle": U(Ie),
|
|
94
|
-
plus: U(Le),
|
|
95
|
-
"plus-circle": U(Re),
|
|
96
|
-
"receipt-text": U(ze),
|
|
97
|
-
refresh: U(z),
|
|
98
|
-
repeat: U(Be),
|
|
99
|
-
right: U(ce),
|
|
100
|
-
save: U(Ve),
|
|
101
|
-
sched: U(ae),
|
|
102
|
-
search: U(Ue),
|
|
103
|
-
settings: U(We),
|
|
104
|
-
"settings-2": U(Ge),
|
|
105
|
-
shield: U(Ke),
|
|
106
|
-
"shield-check": U(qe),
|
|
107
|
-
"shield-plus": U(Je),
|
|
108
|
-
"shopping-cart": U(Ye),
|
|
109
|
-
sliders: U(Xe),
|
|
110
|
-
"sliders-horizontal": U(Ze),
|
|
111
|
-
sort: U(s),
|
|
112
|
-
sparkle: U($e),
|
|
113
|
-
star: U(tt),
|
|
114
|
-
sun: U(nt),
|
|
115
|
-
tag: U(it),
|
|
116
|
-
tags: U(at),
|
|
117
|
-
tenant: U(f),
|
|
118
|
-
"toggle-right": U(ot),
|
|
119
|
-
trash: U(st),
|
|
120
|
-
"trash-2": U(ct),
|
|
121
|
-
"undo-2": U(ut),
|
|
122
|
-
up: U(le),
|
|
123
|
-
upload: U(dt),
|
|
124
|
-
user: U(ft),
|
|
125
|
-
"user-plus": U(pt),
|
|
126
|
-
users: U(B),
|
|
127
|
-
"users-round": U(mt),
|
|
128
|
-
"wallet-cards": U(ht),
|
|
129
|
-
warning: U(lt),
|
|
130
|
-
x: U(vt),
|
|
131
|
-
zap: U(V)
|
|
132
|
-
}, G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Set(), q = 0;
|
|
133
|
-
function yt() {
|
|
134
|
-
q += 1;
|
|
135
|
-
for (let e of K) e();
|
|
136
|
-
}
|
|
137
|
-
function bt(e) {
|
|
138
|
-
G.clear();
|
|
139
|
-
for (let [t, n] of Object.entries(e)) G.set(t, n);
|
|
140
|
-
yt();
|
|
141
|
-
}
|
|
142
|
-
function J(e) {
|
|
143
|
-
return G.get(e);
|
|
144
|
-
}
|
|
145
|
-
function Y(e) {
|
|
146
|
-
return K.add(e), () => {
|
|
147
|
-
K.delete(e);
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
function X() {
|
|
151
|
-
return q;
|
|
152
|
-
}
|
|
153
|
-
//#endregion
|
|
154
|
-
//#region src/components/shared/LucideIcon.tsx
|
|
155
|
-
var Z = /* @__PURE__ */ new Map(), Q = null;
|
|
156
|
-
function xt() {
|
|
157
|
-
return Q ||= import("lucide-react/dynamic.js").then((e) => e.dynamicIconImports), Q;
|
|
158
|
-
}
|
|
159
|
-
function $({ name: n, size: r = 14, className: i, style: a }) {
|
|
160
|
-
let [o, s] = t(() => Z.get(n)), [c, l] = t(!1);
|
|
161
|
-
if (e(() => {
|
|
162
|
-
let e = Z.get(n);
|
|
163
|
-
if (e) {
|
|
164
|
-
s(() => e), l(!1);
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
s(void 0), l(!1);
|
|
168
|
-
let t = !0;
|
|
169
|
-
return xt().then((e) => {
|
|
170
|
-
let r = e[n];
|
|
171
|
-
if (!r) {
|
|
172
|
-
t && l(!0);
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
return r().then((e) => {
|
|
176
|
-
Z.set(n, e.default), t && (s(() => e.default), l(!1));
|
|
177
|
-
});
|
|
178
|
-
}), () => {
|
|
179
|
-
t = !1;
|
|
180
|
-
};
|
|
181
|
-
}, [n]), c) {
|
|
182
|
-
let e = W.folder;
|
|
183
|
-
return /* @__PURE__ */ H(e, {
|
|
184
|
-
size: r,
|
|
185
|
-
cls: i,
|
|
186
|
-
style: a
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
return o ? /* @__PURE__ */ H(o, {
|
|
190
|
-
size: r,
|
|
191
|
-
className: i,
|
|
192
|
-
style: a
|
|
193
|
-
}) : null;
|
|
194
|
-
}
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region src/components/shared/DynamicIcon.tsx
|
|
197
|
-
var St = "lucide:";
|
|
198
|
-
function Ct({ name: e, size: t, className: r, style: i }) {
|
|
199
|
-
n(Y, X, X);
|
|
200
|
-
let a = typeof t == "number" ? t : typeof t == "string" ? parseFloat(t) : 14, o = J(e);
|
|
201
|
-
if (o) return /* @__PURE__ */ H(wt, {
|
|
202
|
-
def: o,
|
|
203
|
-
size: a,
|
|
204
|
-
className: r,
|
|
205
|
-
style: i
|
|
206
|
-
});
|
|
207
|
-
let s = W[e];
|
|
208
|
-
return s ? /* @__PURE__ */ H(s, {
|
|
209
|
-
size: a,
|
|
210
|
-
cls: r,
|
|
211
|
-
style: i
|
|
212
|
-
}) : /* @__PURE__ */ H($, {
|
|
213
|
-
name: e.startsWith(St) ? e.slice(7) : e,
|
|
214
|
-
size: a,
|
|
215
|
-
className: r,
|
|
216
|
-
style: i
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
function wt({ def: e, size: t, className: n, style: r }) {
|
|
220
|
-
switch (e.kind) {
|
|
221
|
-
case "svg": return /* @__PURE__ */ H(Tt, {
|
|
222
|
-
paths: e.paths,
|
|
223
|
-
size: t,
|
|
224
|
-
className: n,
|
|
225
|
-
style: r
|
|
226
|
-
});
|
|
227
|
-
case "url": return /* @__PURE__ */ H("img", {
|
|
228
|
-
src: e.src,
|
|
229
|
-
alt: "",
|
|
230
|
-
"aria-hidden": "true",
|
|
231
|
-
width: t,
|
|
232
|
-
height: t,
|
|
233
|
-
className: n,
|
|
234
|
-
style: r
|
|
235
|
-
});
|
|
236
|
-
case "lucide": return /* @__PURE__ */ H($, {
|
|
237
|
-
name: e.name,
|
|
238
|
-
size: t,
|
|
239
|
-
className: n,
|
|
240
|
-
style: r
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
function Tt({ paths: e, size: t, className: n, style: r }) {
|
|
245
|
-
return /* @__PURE__ */ H("svg", {
|
|
246
|
-
width: t,
|
|
247
|
-
height: t,
|
|
248
|
-
viewBox: "0 0 24 24",
|
|
249
|
-
fill: "none",
|
|
250
|
-
stroke: "currentColor",
|
|
251
|
-
strokeWidth: 1.5,
|
|
252
|
-
strokeLinecap: "round",
|
|
253
|
-
strokeLinejoin: "round",
|
|
254
|
-
className: n,
|
|
255
|
-
style: r,
|
|
256
|
-
"aria-hidden": "true",
|
|
257
|
-
children: e.map((e, t) => /* @__PURE__ */ H("path", { d: e }, t))
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
//#endregion
|
|
261
|
-
export { bt as a, X as i, $ as n, Y as o, J as r, W as s, Ct as t };
|