@declarion/react 0.37.0 → 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 { s as e } from "./DynamicIcon-
|
|
2
|
-
import { Gn as t, Kn as n, bn as r, g as i, h as a, sn as o } from "./useCurrentScreen-
|
|
1
|
+
import { s as e } from "./DynamicIcon-DeRpAaXm.js";
|
|
2
|
+
import { Gn as t, Kn as n, bn as r, g as i, h as a, sn as o } from "./useCurrentScreen-CcsD2NAk.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";
|
|
@@ -0,0 +1,273 @@
|
|
|
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 _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 Re, PlusCircle as ze, ReceiptText as Be, RefreshCw as R, 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(u),
|
|
33
|
+
bolt: H(ee),
|
|
34
|
+
box: H(d),
|
|
35
|
+
boxes: H(te),
|
|
36
|
+
branch: H(k),
|
|
37
|
+
building: H(f),
|
|
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(re),
|
|
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(d),
|
|
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(ne),
|
|
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(Re),
|
|
107
|
+
"plus-circle": H(ze),
|
|
108
|
+
"receipt-text": H(Be),
|
|
109
|
+
refresh: H(R),
|
|
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(f),
|
|
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
|
+
return s ? /* @__PURE__ */ V(s, {
|
|
221
|
+
size: a,
|
|
222
|
+
cls: r,
|
|
223
|
+
style: i
|
|
224
|
+
}) : /* @__PURE__ */ V($, {
|
|
225
|
+
name: e.startsWith(Ct) ? e.slice(7) : e,
|
|
226
|
+
size: a,
|
|
227
|
+
className: r,
|
|
228
|
+
style: i
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
function Tt({ def: e, size: t, className: n, style: r }) {
|
|
232
|
+
switch (e.kind) {
|
|
233
|
+
case "svg": return /* @__PURE__ */ V(Et, {
|
|
234
|
+
paths: e.paths,
|
|
235
|
+
size: t,
|
|
236
|
+
className: n,
|
|
237
|
+
style: r
|
|
238
|
+
});
|
|
239
|
+
case "url": return /* @__PURE__ */ V("img", {
|
|
240
|
+
src: e.src,
|
|
241
|
+
alt: "",
|
|
242
|
+
"aria-hidden": "true",
|
|
243
|
+
width: t,
|
|
244
|
+
height: t,
|
|
245
|
+
className: n,
|
|
246
|
+
style: r
|
|
247
|
+
});
|
|
248
|
+
case "lucide": return /* @__PURE__ */ V($, {
|
|
249
|
+
name: e.name,
|
|
250
|
+
size: t,
|
|
251
|
+
className: n,
|
|
252
|
+
style: r
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function Et({ paths: e, size: t, className: n, style: r }) {
|
|
257
|
+
return /* @__PURE__ */ V("svg", {
|
|
258
|
+
width: t,
|
|
259
|
+
height: t,
|
|
260
|
+
viewBox: "0 0 24 24",
|
|
261
|
+
fill: "none",
|
|
262
|
+
stroke: "currentColor",
|
|
263
|
+
strokeWidth: 1.5,
|
|
264
|
+
strokeLinecap: "round",
|
|
265
|
+
strokeLinejoin: "round",
|
|
266
|
+
className: n,
|
|
267
|
+
style: r,
|
|
268
|
+
"aria-hidden": "true",
|
|
269
|
+
children: e.map((e, t) => /* @__PURE__ */ V("path", { d: e }, t))
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
//#endregion
|
|
273
|
+
export { xt as a, U as c, X as i, $ as n, Y as o, J as r, W as s, wt as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, S as t, T as n, w as r, x as i, y as a } from "./useCurrentScreen-
|
|
2
|
-
import { c as o, i as s, l as c, t as l } from "./value-
|
|
1
|
+
import { C as e, S as t, T as n, w as r, x as i, y as a } from "./useCurrentScreen-CcsD2NAk.js";
|
|
2
|
+
import { c as o, i as s, l as c, t as l } from "./value-BCjHI_Ai.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";
|