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