@ea-lab/reactive-json 1.0.0-alpha.2 → 1.0.0-alpha.4
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/assets/VariablesDebug.css +4 -1
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +15 -16
- package/dist/component/element/index.js +37 -31
- package/dist/component/element/special/ReactiveJsonBasicComponentWrapper.js +11 -24
- package/dist/component/element/special/ReactiveJsonSubroot.js +53 -12
- package/dist/component/element/special/index.js +6 -6
- package/dist/component/index.js +63 -62
- package/dist/coreComponentsPlugin.js +13 -6
- package/dist/engine/ReactiveJsonRoot.js +373 -18
- package/dist/engine/index.js +24 -22
- package/dist/engine/utility/index.js +15 -13
- package/dist/index-Ya6_R5yr.js +23 -0
- package/dist/main.js +92 -88
- package/package.json +1 -1
- package/dist/assets/reset.css +0 -4
- package/dist/index-CBEHeXej.js +0 -463
|
@@ -1,20 +1,375 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../httpRequestCommon-DUo2Oxgl.js";
|
|
3
|
-
import "../lodash-CYNxjS-I.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "../dnd-kit-sortable-tree.esm-Cz1RJyIg.js";
|
|
6
|
-
import {
|
|
7
|
-
import "./ComponentCollector.js";
|
|
8
|
-
import "./EventDispatcherProvider.js";
|
|
9
|
-
import "./GlobalDataContextProvider.js";
|
|
10
|
-
import "./ParsingDebugDisplay/ParsingDebugDisplay.js";
|
|
11
|
-
import "./TemplateContext.js";
|
|
12
|
-
import "./TemplateSystem.js";
|
|
13
|
-
import "./utility/alterData.js";
|
|
14
|
-
import "./utility/dataMappingSystem.js";
|
|
15
|
-
import "./utility/parseRjBuild.js";
|
|
16
|
-
import "./utility/stringToBoolean.js";
|
|
17
|
-
import "./View.js";
|
|
1
|
+
import { jsx as C, jsxs as L, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
+
import { a as _ } from "../httpRequestCommon-DUo2Oxgl.js";
|
|
3
|
+
import { l as ut } from "../lodash-CYNxjS-I.js";
|
|
4
|
+
import { useReducer as dt, useState as v, useRef as ft, useEffect as q } from "react";
|
|
5
|
+
import { r as mt } from "../dnd-kit-sortable-tree.esm-Cz1RJyIg.js";
|
|
6
|
+
import { coreComponentsPlugin as tt } from "../coreComponentsPlugin.js";
|
|
7
|
+
import { mergeComponentCollections as ht } from "./ComponentCollector.js";
|
|
8
|
+
import { EventDispatcherProvider as gt } from "./EventDispatcherProvider.js";
|
|
9
|
+
import { GlobalDataContextProvider as yt } from "./GlobalDataContextProvider.js";
|
|
10
|
+
import Dt from "./ParsingDebugDisplay/ParsingDebugDisplay.js";
|
|
11
|
+
import { TemplateContext as Pt } from "./TemplateContext.js";
|
|
12
|
+
import { dataLocationToPath as Ct } from "./TemplateSystem.js";
|
|
13
|
+
import { alterData as bt } from "./utility/alterData.js";
|
|
14
|
+
import { applyDataMapping as Et } from "./utility/dataMappingSystem.js";
|
|
15
|
+
import { parseRjBuild as vt } from "./utility/parseRjBuild.js";
|
|
16
|
+
import { stringToBoolean as wt } from "./utility/stringToBoolean.js";
|
|
17
|
+
import { View as St } from "./View.js";
|
|
18
|
+
const xt = ({
|
|
19
|
+
dataOverride: w,
|
|
20
|
+
dataFetchMethod: M,
|
|
21
|
+
dataUrl: z,
|
|
22
|
+
debugMode: et,
|
|
23
|
+
DebugModeContentWrapper: A,
|
|
24
|
+
DebugModeDataWrapper: K,
|
|
25
|
+
DebugModeRootWrapper: rt,
|
|
26
|
+
headersForData: X,
|
|
27
|
+
headersForRjBuild: c,
|
|
28
|
+
maybeRawAppData: $,
|
|
29
|
+
maybeRawAppRjBuild: d,
|
|
30
|
+
plugins: H,
|
|
31
|
+
rjBuildFetchMethod: b,
|
|
32
|
+
rjBuildUrl: f,
|
|
33
|
+
upstreamUpdateCallbacks: N
|
|
34
|
+
}) => {
|
|
35
|
+
const h = [];
|
|
36
|
+
M && (h.push({
|
|
37
|
+
deprecatedProperty: "dataFetchMethod",
|
|
38
|
+
newProperty: "rjBuildFetchMethod"
|
|
39
|
+
}), b = M), z && (h.push({
|
|
40
|
+
deprecatedProperty: "dataUrl",
|
|
41
|
+
newProperty: "rjBuildUrl"
|
|
42
|
+
}), f = z), X && (h.push({
|
|
43
|
+
deprecatedProperty: "headersForData",
|
|
44
|
+
newProperty: "headersForRjBuild"
|
|
45
|
+
}), c = X), $ && (h.push({
|
|
46
|
+
deprecatedProperty: "maybeRawAppData",
|
|
47
|
+
newProperty: "maybeRawAppRjBuild"
|
|
48
|
+
}), d = $), h.length > 0 && console.warn(
|
|
49
|
+
"A ReactiveJsonRoot component got the following deprecated properties that must be replaced: " + h.map((t) => t.deprecatedProperty + " -> " + t.newProperty).join(", ")
|
|
50
|
+
);
|
|
51
|
+
const [S, g] = dt(
|
|
52
|
+
(t, a) => {
|
|
53
|
+
switch (a.type) {
|
|
54
|
+
case "setData":
|
|
55
|
+
return { updateId: 0, realCurrentData: a.data };
|
|
56
|
+
case "updateData":
|
|
57
|
+
return it(t, a.path, a.value, a.updateMode);
|
|
58
|
+
default:
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{ updateId: 0, realCurrentData: {} }
|
|
63
|
+
), [at, ot] = v({}), [nt, Q] = v({}), [st, Y] = v([]), [x, T] = v(() => {
|
|
64
|
+
if (d)
|
|
65
|
+
return typeof d == "string" ? d : JSON.stringify(d);
|
|
66
|
+
}), [V, Z] = v(null), n = ft(null);
|
|
67
|
+
q(() => () => {
|
|
68
|
+
typeof document < "u" && n.current && n.current.parentNode && (n.current.parentNode.removeChild(n.current), n.current = null);
|
|
69
|
+
}, []);
|
|
70
|
+
const I = H ? ht([tt, H]) : tt;
|
|
71
|
+
q(() => {
|
|
72
|
+
f && (typeof b == "string" && b.toLowerCase() === "post" ? _.post(f, {
|
|
73
|
+
headers: c
|
|
74
|
+
}).then((t) => {
|
|
75
|
+
T(t.data);
|
|
76
|
+
}) : _.get(f, {
|
|
77
|
+
headers: c
|
|
78
|
+
}).then((t) => {
|
|
79
|
+
T(t.data);
|
|
80
|
+
}));
|
|
81
|
+
}, [f, c]), q(() => {
|
|
82
|
+
if (!x)
|
|
83
|
+
return;
|
|
84
|
+
const t = vt(x);
|
|
85
|
+
if (!t.success) {
|
|
86
|
+
if (console.group(
|
|
87
|
+
`Tried to load the app's RjBuild but the ${t.format} content could not be parsed.`
|
|
88
|
+
), console.error(t.error.message), console.debug("Context:", {
|
|
89
|
+
rjBuildUrl: f,
|
|
90
|
+
rjBuildFetchMethod: b,
|
|
91
|
+
headersForRjBuild: c,
|
|
92
|
+
maybeRawAppRjBuild: d,
|
|
93
|
+
dataOverride: w
|
|
94
|
+
}), console.debug("Error details:", t.error), console.groupEnd(), typeof document < "u") {
|
|
95
|
+
let e = document.getElementById("rj-parsing-error-root");
|
|
96
|
+
if (e || (e = document.createElement("div"), e.id = "rj-parsing-error-root", document.body.appendChild(e)), !n.current) {
|
|
97
|
+
const p = document.createElement("div");
|
|
98
|
+
e.appendChild(p), n.current = p;
|
|
99
|
+
}
|
|
100
|
+
Z(
|
|
101
|
+
mt.createPortal(
|
|
102
|
+
/* @__PURE__ */ C(
|
|
103
|
+
Dt,
|
|
104
|
+
{
|
|
105
|
+
processedRjBuild: t,
|
|
106
|
+
errorContext: {
|
|
107
|
+
rjBuildUrl: f,
|
|
108
|
+
rjBuildFetchMethod: b,
|
|
109
|
+
headersForRjBuild: c,
|
|
110
|
+
maybeRawAppRjBuild: d
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
n.current,
|
|
115
|
+
() => {
|
|
116
|
+
n.current && (n.current.parentNode.removeChild(n.current), n.current = null);
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
V && (Z(null), typeof document < "u" && n.current && n.current.parentNode && (n.current.parentNode.removeChild(n.current), n.current = null));
|
|
124
|
+
const a = t.data;
|
|
125
|
+
ot(a.templates ?? a.listForms), !a.templates && a.listForms && console.log(
|
|
126
|
+
"'listForms' needs to be renamed to 'templates'. The support for 'listForms' will be removed in the next releases of reactive-json."
|
|
127
|
+
);
|
|
128
|
+
let i = w === void 0 ? a.data : w;
|
|
129
|
+
const s = a.additionalDataSource;
|
|
130
|
+
if (!Array.isArray(s) || s.length === 0) {
|
|
131
|
+
g({ type: "setData", data: i }), Q(a.renderView), Y(Object.keys(a.renderView));
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const m = {
|
|
135
|
+
headersForRjBuild: c,
|
|
136
|
+
templateData: i,
|
|
137
|
+
templatePath: "data",
|
|
138
|
+
setData: R,
|
|
139
|
+
updateData: W
|
|
140
|
+
}, r = {
|
|
141
|
+
templateData: i,
|
|
142
|
+
templatePath: "data"
|
|
143
|
+
}, l = s.filter((e) => e.blocking === !0), E = s.filter((e) => e.blocking !== !0), o = async (e, p) => {
|
|
144
|
+
var y;
|
|
145
|
+
try {
|
|
146
|
+
if (!e.src) {
|
|
147
|
+
console.warn("additionalDataSource item number " + p + " missing 'src' property.", e);
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const D = {
|
|
151
|
+
method: ((y = e.method) == null ? void 0 : y.toUpperCase()) || "GET",
|
|
152
|
+
url: e.src
|
|
153
|
+
};
|
|
154
|
+
c && Object.keys(c).length > 0 && (D.headers = c);
|
|
155
|
+
const k = await _(D), ct = {
|
|
156
|
+
url: D.url,
|
|
157
|
+
method: D.method,
|
|
158
|
+
headers: D.headers || {},
|
|
159
|
+
body: D.data
|
|
160
|
+
}, lt = {
|
|
161
|
+
headers: k.headers || {},
|
|
162
|
+
status: k.status,
|
|
163
|
+
data: k.data
|
|
164
|
+
}, P = bt({
|
|
165
|
+
requestContext: ct,
|
|
166
|
+
responseContext: lt,
|
|
167
|
+
responseBody: k.data,
|
|
168
|
+
// additionalDataSource always processes raw data, not RjBuild.
|
|
169
|
+
isRjBuild: !1,
|
|
170
|
+
dataProcessors: (I == null ? void 0 : I.dataProcessor) || {}
|
|
171
|
+
});
|
|
172
|
+
if (e.dataMapping)
|
|
173
|
+
try {
|
|
174
|
+
Et({
|
|
175
|
+
dataMapping: e.dataMapping,
|
|
176
|
+
responseData: P,
|
|
177
|
+
globalDataContext: m,
|
|
178
|
+
templateContext: r
|
|
179
|
+
});
|
|
180
|
+
return;
|
|
181
|
+
} catch (u) {
|
|
182
|
+
console.error("Error applying dataMapping for additionalDataSource:", u);
|
|
183
|
+
}
|
|
184
|
+
if (!e.path) {
|
|
185
|
+
if (typeof P != "object" || Array.isArray(P)) {
|
|
186
|
+
console.warn(
|
|
187
|
+
"additionalDataSource data cannot be merged at root - must be an object:",
|
|
188
|
+
P
|
|
189
|
+
);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
Object.entries(P).forEach(([u, G]) => {
|
|
193
|
+
g({
|
|
194
|
+
type: "updateData",
|
|
195
|
+
path: u,
|
|
196
|
+
value: G
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
try {
|
|
202
|
+
const u = Ct({
|
|
203
|
+
dataLocation: e.path,
|
|
204
|
+
currentPath: "data",
|
|
205
|
+
globalDataContext: m,
|
|
206
|
+
templateContext: r
|
|
207
|
+
});
|
|
208
|
+
if (typeof u != "string") {
|
|
209
|
+
console.warn(
|
|
210
|
+
"additionalDataSource path evaluation did not result in a string:",
|
|
211
|
+
e.path,
|
|
212
|
+
"->",
|
|
213
|
+
u
|
|
214
|
+
);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const G = u.substring(5);
|
|
218
|
+
g({
|
|
219
|
+
type: "updateData",
|
|
220
|
+
path: G,
|
|
221
|
+
value: P
|
|
222
|
+
});
|
|
223
|
+
} catch (u) {
|
|
224
|
+
console.error("Error evaluating additionalDataSource path:", e.path, u);
|
|
225
|
+
}
|
|
226
|
+
} catch (B) {
|
|
227
|
+
console.error("Error fetching additional data source:", e.src, B);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
g({ type: "setData", data: i }), (async () => {
|
|
231
|
+
if (l.length > 0) {
|
|
232
|
+
const e = l.map((p, y) => o(p, y));
|
|
233
|
+
await Promise.allSettled(e).catch((p) => {
|
|
234
|
+
console.error("Error processing blocking additionalDataSource:", p);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
if (Q(a.renderView), Y(Object.keys(a.renderView)), E.length > 0) {
|
|
238
|
+
const e = E.map(
|
|
239
|
+
(p, y) => o(p, l.length + y)
|
|
240
|
+
);
|
|
241
|
+
Promise.allSettled(e);
|
|
242
|
+
}
|
|
243
|
+
})();
|
|
244
|
+
}, [x, w, c]);
|
|
245
|
+
function j(t, a, i) {
|
|
246
|
+
if (!N || N.size === 0)
|
|
247
|
+
return !1;
|
|
248
|
+
for (const [s, m] of N)
|
|
249
|
+
if (t === s || t.startsWith(s + ".") || s === "") {
|
|
250
|
+
const r = s === "" ? t : t.substring(s.length + 1);
|
|
251
|
+
try {
|
|
252
|
+
return m(a, r, i), !0;
|
|
253
|
+
} catch (l) {
|
|
254
|
+
console.warn("Error during upstream update:", l);
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return !1;
|
|
259
|
+
}
|
|
260
|
+
function W(t, a, i = void 0) {
|
|
261
|
+
let s = a.replace("data.", "");
|
|
262
|
+
j(s, t, i) || g({
|
|
263
|
+
type: "updateData",
|
|
264
|
+
path: s,
|
|
265
|
+
value: t,
|
|
266
|
+
updateMode: i
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
function R(t) {
|
|
270
|
+
j("", t, void 0) || g({
|
|
271
|
+
type: "setData",
|
|
272
|
+
data: t
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
function it(t, a, i, s = void 0) {
|
|
276
|
+
const m = a.split(".");
|
|
277
|
+
(typeof t.realCurrentData != "object" || t.realCurrentData === null || Array.isArray(t.realCurrentData)) && (t.realCurrentData = {});
|
|
278
|
+
let r = t.realCurrentData;
|
|
279
|
+
for (let l = 0, E = m.length; l < E; l++) {
|
|
280
|
+
const o = m[l];
|
|
281
|
+
if (l === E - 1) {
|
|
282
|
+
if (s === "remove" && Array.isArray(r))
|
|
283
|
+
r.splice(o, 1);
|
|
284
|
+
else if (s === "move")
|
|
285
|
+
if (i.increment) {
|
|
286
|
+
if (!Array.isArray(r))
|
|
287
|
+
return t;
|
|
288
|
+
const J = Math.min(
|
|
289
|
+
r.length,
|
|
290
|
+
Math.max(0, parseInt(o) + parseInt(i.increment))
|
|
291
|
+
);
|
|
292
|
+
if (J === parseInt(o))
|
|
293
|
+
return t;
|
|
294
|
+
const e = r.splice(o, 1);
|
|
295
|
+
if (e.length < 1)
|
|
296
|
+
return t;
|
|
297
|
+
r.splice(J, 0, e[0]);
|
|
298
|
+
} else
|
|
299
|
+
return t;
|
|
300
|
+
else if (i === void 0)
|
|
301
|
+
delete r[o];
|
|
302
|
+
else {
|
|
303
|
+
if (ut.isEqual(i, r[o]))
|
|
304
|
+
return t;
|
|
305
|
+
s === "add" ? (r[o] === void 0 && (r[o] = []), r[o].push(i)) : r[o] = i;
|
|
306
|
+
}
|
|
307
|
+
return {
|
|
308
|
+
// Using modulo in case of massive update counts in long frontend sessions.
|
|
309
|
+
updateId: (t.updateId ?? 0) % (Number.MAX_SAFE_INTEGER - 1) + 1,
|
|
310
|
+
realCurrentData: t.realCurrentData
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
if (r.hasOwnProperty(o)) {
|
|
314
|
+
(typeof r[o] != "object" || r[o] === null) && (r[o] = {}), r = r[o];
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
r[o] = {}, r = r[o];
|
|
318
|
+
}
|
|
319
|
+
throw new Error("Could not update data.");
|
|
320
|
+
}
|
|
321
|
+
if (!x)
|
|
322
|
+
return null;
|
|
323
|
+
const U = st.map((t) => {
|
|
324
|
+
var a;
|
|
325
|
+
return /* @__PURE__ */ C(
|
|
326
|
+
St,
|
|
327
|
+
{
|
|
328
|
+
datafield: t,
|
|
329
|
+
props: nt[t],
|
|
330
|
+
path: "data." + t,
|
|
331
|
+
currentData: (a = S.realCurrentData) == null ? void 0 : a[t]
|
|
332
|
+
},
|
|
333
|
+
t
|
|
334
|
+
);
|
|
335
|
+
}), O = wt(et), F = /* @__PURE__ */ C(gt, { children: /* @__PURE__ */ L(
|
|
336
|
+
yt,
|
|
337
|
+
{
|
|
338
|
+
value: {
|
|
339
|
+
element: at,
|
|
340
|
+
headersForRjBuild: c,
|
|
341
|
+
plugins: I,
|
|
342
|
+
// Expose the root component to avoid import cycles in core plugins.
|
|
343
|
+
ReactiveJsonRoot: xt,
|
|
344
|
+
setData: R,
|
|
345
|
+
setRawAppRjBuild: T,
|
|
346
|
+
templateData: S.realCurrentData,
|
|
347
|
+
templatePath: "data",
|
|
348
|
+
updateData: W
|
|
349
|
+
},
|
|
350
|
+
children: [
|
|
351
|
+
/* @__PURE__ */ C(
|
|
352
|
+
Pt.Provider,
|
|
353
|
+
{
|
|
354
|
+
value: {
|
|
355
|
+
templateData: S.realCurrentData,
|
|
356
|
+
templatePath: "data"
|
|
357
|
+
},
|
|
358
|
+
children: O && A ? /* @__PURE__ */ C(A, { children: U }) : U
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
O ? K && /* @__PURE__ */ C(K, { children: JSON.stringify(S.realCurrentData, null, " ") }) : null
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
) });
|
|
365
|
+
return O && A ? /* @__PURE__ */ L(rt, { children: [
|
|
366
|
+
F,
|
|
367
|
+
V
|
|
368
|
+
] }) : /* @__PURE__ */ L(pt, { children: [
|
|
369
|
+
F,
|
|
370
|
+
V
|
|
371
|
+
] });
|
|
372
|
+
};
|
|
18
373
|
export {
|
|
19
|
-
|
|
374
|
+
xt as ReactiveJsonRoot
|
|
20
375
|
};
|
package/dist/engine/index.js
CHANGED
|
@@ -2,46 +2,48 @@ import { ActionDependant as o, isValid as r } from "./Actions.js";
|
|
|
2
2
|
import { mergeComponentCollections as p } from "./ComponentCollector.js";
|
|
3
3
|
import { EventDispatcherContext as m } from "./EventDispatcherContext.js";
|
|
4
4
|
import { EventDispatcherProvider as l, addEventListener as x, removeEventListener as f } from "./EventDispatcherProvider.js";
|
|
5
|
-
import { GlobalDataContext as
|
|
5
|
+
import { GlobalDataContext as u } from "./GlobalDataContext.js";
|
|
6
6
|
import { GlobalDataContextProvider as d } from "./GlobalDataContextProvider.js";
|
|
7
|
-
import { PaginationContext as
|
|
8
|
-
import {
|
|
9
|
-
import { TemplateContext as
|
|
10
|
-
import { dataLocationToPath as
|
|
7
|
+
import { PaginationContext as D } from "./PaginationContext.js";
|
|
8
|
+
import { ReactiveJsonRoot as T } from "./ReactiveJsonRoot.js";
|
|
9
|
+
import { TemplateContext as g } from "./TemplateContext.js";
|
|
10
|
+
import { dataLocationToPath as A, evaluateAttributes as E, evaluateTemplateValue as P, evaluateTemplateValueCollection as R, isTemplateValue as h, useEvaluatedAttributes as L } from "./TemplateSystem.js";
|
|
11
11
|
import { alterData as z } from "./utility/alterData.js";
|
|
12
12
|
import { analyzeDataOverrideReferences as F } from "./utility/analyzeDataOverrideReferences.js";
|
|
13
13
|
import { applyDataMapping as J } from "./utility/dataMappingSystem.js";
|
|
14
14
|
import { formatString as j, maybeFormatString as w } from "./utility/formatString.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { propsDataLocationToPathAndValue as O } from "./utility/formElementsCommon.js";
|
|
16
|
+
import { parseRjBuild as q } from "./utility/parseRjBuild.js";
|
|
17
|
+
import { normalizeAttributesForReactJsx as I } from "./utility/reactJsxHelpers.js";
|
|
18
|
+
import { stringToBoolean as N } from "./utility/stringToBoolean.js";
|
|
19
|
+
import { View as U } from "./View.js";
|
|
19
20
|
export {
|
|
20
21
|
o as ActionDependant,
|
|
21
22
|
m as EventDispatcherContext,
|
|
22
23
|
l as EventDispatcherProvider,
|
|
23
|
-
|
|
24
|
+
u as GlobalDataContext,
|
|
24
25
|
d as GlobalDataContextProvider,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
D as PaginationContext,
|
|
27
|
+
T as ReactiveJsonRoot,
|
|
28
|
+
g as TemplateContext,
|
|
29
|
+
U as View,
|
|
29
30
|
x as addEventListener,
|
|
30
31
|
z as alterData,
|
|
31
32
|
F as analyzeDataOverrideReferences,
|
|
32
33
|
J as applyDataMapping,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
A as dataLocationToPath,
|
|
35
|
+
E as evaluateAttributes,
|
|
36
|
+
P as evaluateTemplateValue,
|
|
37
|
+
R as evaluateTemplateValueCollection,
|
|
37
38
|
j as formatString,
|
|
38
39
|
h as isTemplateValue,
|
|
39
40
|
r as isValid,
|
|
40
41
|
w as maybeFormatString,
|
|
41
42
|
p as mergeComponentCollections,
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
I as normalizeAttributesForReactJsx,
|
|
44
|
+
q as parseRjBuild,
|
|
45
|
+
O as propsDataLocationToPathAndValue,
|
|
44
46
|
f as removeEventListener,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
N as stringToBoolean,
|
|
48
|
+
L as useEvaluatedAttributes
|
|
47
49
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { alterData as
|
|
2
|
-
import { analyzeDataOverrideReferences as
|
|
1
|
+
import { alterData as t } from "./alterData.js";
|
|
2
|
+
import { analyzeDataOverrideReferences as e } from "./analyzeDataOverrideReferences.js";
|
|
3
3
|
import { applyDataMapping as m } from "./dataMappingSystem.js";
|
|
4
|
-
import { formatString as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { formatString as n, maybeFormatString as i } from "./formatString.js";
|
|
5
|
+
import { propsDataLocationToPathAndValue as l } from "./formElementsCommon.js";
|
|
6
|
+
import { parseRjBuild as g } from "./parseRjBuild.js";
|
|
7
|
+
import { normalizeAttributesForReactJsx as c } from "./reactJsxHelpers.js";
|
|
8
|
+
import { stringToBoolean as u } from "./stringToBoolean.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
t as alterData,
|
|
11
|
+
e as analyzeDataOverrideReferences,
|
|
11
12
|
m as applyDataMapping,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
n as formatString,
|
|
14
|
+
i as maybeFormatString,
|
|
15
|
+
c as normalizeAttributesForReactJsx,
|
|
16
|
+
g as parseRjBuild,
|
|
17
|
+
l as propsDataLocationToPathAndValue,
|
|
18
|
+
u as stringToBoolean
|
|
17
19
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Count as o } from "./component/element/special/Count.js";
|
|
2
|
+
import { DataFilter as t } from "./component/element/special/DataFilter.js";
|
|
3
|
+
import { DelayedActions as e, getReactionFunctionsToExecute as r } from "./component/element/special/DelayedActions.js";
|
|
4
|
+
import { PageControls as m } from "./component/element/special/PageControls.js";
|
|
5
|
+
import { Phantom as i } from "./component/element/special/Phantom.js";
|
|
6
|
+
import { ReactiveJsonBasicComponentWrapper as n } from "./component/element/special/ReactiveJsonBasicComponentWrapper.js";
|
|
7
|
+
import { ReactiveJsonSubroot as p } from "./component/element/special/ReactiveJsonSubroot.js";
|
|
8
|
+
import { Switch as a } from "./component/element/special/Switch.js";
|
|
9
|
+
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
Count: o,
|
|
12
|
+
DataFilter: t,
|
|
13
|
+
DelayedActions: e,
|
|
14
|
+
PageControls: m,
|
|
15
|
+
Phantom: i,
|
|
16
|
+
ReactiveJsonBasicComponentWrapper: n,
|
|
17
|
+
ReactiveJsonSubroot: p,
|
|
18
|
+
Switch: a,
|
|
19
|
+
getReactionFunctionsToExecute: r
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
export {
|
|
22
|
+
S as s
|
|
23
|
+
};
|