@ea-lab/reactive-json 0.7.1 → 1.0.0-alpha.1

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.
Files changed (93) hide show
  1. package/README.md +1 -3
  2. package/dist/View-D8TN1L2h.js +126 -0
  3. package/dist/assets/VariablesDebug.css +1 -4
  4. package/dist/assets/reset.css +4 -0
  5. package/dist/assets/usePagination.css +1 -0
  6. package/dist/component/action/HashChangeListener.js +29 -7
  7. package/dist/component/action/MessageListener.js +26 -8
  8. package/dist/component/action/ReactOnEvent.js +64 -8
  9. package/dist/component/action/Redirect.js +9 -5
  10. package/dist/component/action/SetAttributeValue.js +37 -5
  11. package/dist/component/action/ToggleAttributeValue.js +56 -5
  12. package/dist/component/action/UnsetAttribute.js +20 -5
  13. package/dist/component/action/UnsetAttributeValue.js +58 -5
  14. package/dist/component/action/index.js +19 -15
  15. package/dist/component/dataMapping/index.js +6 -3
  16. package/dist/component/dataMapping/simpleMapping.js +93 -2
  17. package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +110 -12
  18. package/dist/component/element/debug/index.js +2 -2
  19. package/dist/component/element/html/FolderSortableTree.js +133 -7
  20. package/dist/component/element/html/FormatNumeral.js +58 -6
  21. package/dist/component/element/html/Html.js +5 -3
  22. package/dist/component/element/html/LabelFromValue.js +27 -6
  23. package/dist/component/element/html/PreformattedMarkup.js +51 -6
  24. package/dist/component/element/html/SortableTreeItemCollapseButton.js +10 -5
  25. package/dist/component/element/html/index.js +11 -10
  26. package/dist/component/element/index.js +34 -29
  27. package/dist/component/element/special/Count.js +23 -12
  28. package/dist/component/element/special/DataFilter.js +76 -6
  29. package/dist/component/element/special/DelayedActions.js +47 -7
  30. package/dist/component/element/special/Phantom.js +13 -3
  31. package/dist/component/element/special/ReactiveJsonBasicComponentWrapper.js +32 -0
  32. package/dist/component/element/special/ReactiveJsonSubroot.js +8 -5
  33. package/dist/component/element/special/Switch.js +80 -8
  34. package/dist/component/element/special/index.js +16 -10
  35. package/dist/component/hook/index.js +1 -1
  36. package/dist/component/hook/usePagination.js +172 -4
  37. package/dist/component/index.js +84 -62
  38. package/dist/component/reaction/addData.js +23 -3
  39. package/dist/component/reaction/fetchData.js +12 -2
  40. package/dist/component/reaction/index.js +34 -12
  41. package/dist/component/reaction/moveData.js +34 -2
  42. package/dist/component/reaction/postMessage.js +23 -2
  43. package/dist/component/reaction/redirectNow.js +6 -2
  44. package/dist/component/reaction/removeData.js +27 -2
  45. package/dist/component/reaction/setClipboardData.js +16 -2
  46. package/dist/component/reaction/setData.js +22 -3
  47. package/dist/component/reaction/submitData.js +25 -2
  48. package/dist/component/reaction/utility/httpRequestCommon.js +5 -4
  49. package/dist/component/reaction/utility/index.js +1 -1
  50. package/dist/coreComponentsPlugin.js +5 -2
  51. package/dist/dnd-kit-sortable-tree.esm-Cz1RJyIg.js +4135 -0
  52. package/dist/engine/Actions.js +161 -10
  53. package/dist/engine/ParsingDebugDisplay/ParsingDebugDisplay.js +692 -3
  54. package/dist/engine/ReactiveJsonRoot.js +10 -5
  55. package/dist/engine/TemplateSystem.js +117 -11
  56. package/dist/engine/View.js +3 -6
  57. package/dist/engine/index.js +45 -40
  58. package/dist/engine/utility/alterData.js +27 -2
  59. package/dist/engine/utility/analyzeDataOverrideReferences.js +41 -2
  60. package/dist/engine/utility/formElementsCommon.js +34 -0
  61. package/dist/engine/utility/formatString.js +19 -3
  62. package/dist/engine/utility/index.js +15 -12
  63. package/dist/engine/utility/parseRjBuild.js +23 -1002
  64. package/dist/engine/utility/reactJsxHelpers.js +15 -0
  65. package/dist/httpRequestCommon-DUo2Oxgl.js +1799 -0
  66. package/dist/index-B3RKTGQ2.js +18 -0
  67. package/dist/index-BA09SSaJ.js +26 -0
  68. package/dist/index-BYLJtf9L.js +462 -0
  69. package/dist/index-CACLSxWi.js +8 -0
  70. package/dist/index-NNBvIV0S.js +1873 -0
  71. package/dist/js-yaml-Bw0KO4XO.js +983 -0
  72. package/dist/jsonpath-B9kE9k9e.js +3168 -0
  73. package/dist/{alterData-CjaFWyAA.js → lodash-CYNxjS-I.js} +1348 -1368
  74. package/dist/main.js +127 -101
  75. package/package.json +4 -4
  76. package/dist/ParsingDebugDisplay-8f4yL4Jw.js +0 -696
  77. package/dist/VariablesDebug-1UzZWgD7.js +0 -17782
  78. package/dist/component/action/Popover.js +0 -6
  79. package/dist/component/action/Tooltip.js +0 -5
  80. package/dist/component/element/form/CheckBoxField.js +0 -8
  81. package/dist/component/element/form/DateField.js +0 -8
  82. package/dist/component/element/form/NumberField.js +0 -8
  83. package/dist/component/element/form/SelectField.js +0 -8
  84. package/dist/component/element/form/TextAreaField.js +0 -8
  85. package/dist/component/element/form/TextField.js +0 -8
  86. package/dist/component/element/form/formElementsCommon.js +0 -4
  87. package/dist/component/element/form/index.js +0 -10
  88. package/dist/component/element/html/AccordionItem.js +0 -6
  89. package/dist/component/element/html/Modal.js +0 -8
  90. package/dist/component/element/html/Tabs.js +0 -8
  91. package/dist/component/element/special/BootstrapElement.js +0 -5
  92. package/dist/engine/PaginationProvider.js +0 -30
  93. package/dist/usePagination-Bb6lefHG.js +0 -353
@@ -0,0 +1,18 @@
1
+ import { FolderSortableTree as o } from "./component/element/html/FolderSortableTree.js";
2
+ import { FormatNumeral as r } from "./component/element/html/FormatNumeral.js";
3
+ import { H as e } from "./View-D8TN1L2h.js";
4
+ import { LabelFromValue as t } from "./component/element/html/LabelFromValue.js";
5
+ import { PreformattedMarkup as m } from "./component/element/html/PreformattedMarkup.js";
6
+ import { SortableTreeItemCollapseButton as l } from "./component/element/html/SortableTreeItemCollapseButton.js";
7
+ const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ FolderSortableTree: o,
10
+ FormatNumeral: r,
11
+ Html: e,
12
+ LabelFromValue: t,
13
+ PreformattedMarkup: m,
14
+ SortableTreeItemCollapseButton: l
15
+ }, Symbol.toStringTag, { value: "Module" }));
16
+ export {
17
+ b as h
18
+ };
@@ -0,0 +1,26 @@
1
+ import { HashChangeListener as t } from "./component/action/HashChangeListener.js";
2
+ import { Hide as e } from "./component/action/Hide.js";
3
+ import { MessageListener as r } from "./component/action/MessageListener.js";
4
+ import { ReactOnEvent as o } from "./component/action/ReactOnEvent.js";
5
+ import { Redirect as i } from "./component/action/Redirect.js";
6
+ import { SetAttributeValue as m } from "./component/action/SetAttributeValue.js";
7
+ import { ToggleAttributeValue as n } from "./component/action/ToggleAttributeValue.js";
8
+ import { UnsetAttribute as p } from "./component/action/UnsetAttribute.js";
9
+ import { UnsetAttributeValue as f } from "./component/action/UnsetAttributeValue.js";
10
+ import { VisuallyHide as a } from "./component/action/VisuallyHide.js";
11
+ const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ __proto__: null,
13
+ HashChangeListener: t,
14
+ Hide: e,
15
+ MessageListener: r,
16
+ ReactOnEvent: o,
17
+ Redirect: i,
18
+ SetAttributeValue: m,
19
+ ToggleAttributeValue: n,
20
+ UnsetAttribute: p,
21
+ UnsetAttributeValue: f,
22
+ VisuallyHide: a
23
+ }, Symbol.toStringTag, { value: "Module" }));
24
+ export {
25
+ y as c
26
+ };
@@ -0,0 +1,462 @@
1
+ import { d as ft } from "./index-CACLSxWi.js";
2
+ import { h as ht } from "./index-B3RKTGQ2.js";
3
+ import { Count as gt } from "./component/element/special/Count.js";
4
+ import { DataFilter as Dt } from "./component/element/special/DataFilter.js";
5
+ import { DelayedActions as yt, getReactionFunctionsToExecute as Ct } from "./component/element/special/DelayedActions.js";
6
+ import { PageControls as Pt } from "./component/element/special/PageControls.js";
7
+ import { Phantom as vt } from "./component/element/special/Phantom.js";
8
+ import { ReactiveJsonBasicComponentWrapper as bt } from "./component/element/special/ReactiveJsonBasicComponentWrapper.js";
9
+ import { jsx as y, jsxs as K, Fragment as Et } from "react/jsx-runtime";
10
+ import { ActionDependant as wt } from "./engine/Actions.js";
11
+ import "./engine/EventDispatcherContext.js";
12
+ import { EventDispatcherProvider as xt } from "./engine/EventDispatcherProvider.js";
13
+ import { GlobalDataContext as St } from "./engine/GlobalDataContext.js";
14
+ import "./engine/PaginationContext.js";
15
+ import { a as X } from "./httpRequestCommon-DUo2Oxgl.js";
16
+ import { l as It } from "./lodash-CYNxjS-I.js";
17
+ import { useReducer as Ot, useState as N, useRef as Tt, useEffect as H, useContext as rt } from "react";
18
+ import { r as At } from "./dnd-kit-sortable-tree.esm-Cz1RJyIg.js";
19
+ import { c as kt } from "./index-BA09SSaJ.js";
20
+ import { coreDataMappingComponents as Nt } from "./component/dataMapping/index.js";
21
+ import { coreDataProcessorComponents as Vt } from "./component/dataProcessor/index.js";
22
+ import "./component/element/debug/VariablesDebug/VariablesDebug.js";
23
+ import "./component/element/html/FolderSortableTree.js";
24
+ import "./component/element/html/FormatNumeral.js";
25
+ import { V as _t } from "./View-D8TN1L2h.js";
26
+ import "./component/element/html/LabelFromValue.js";
27
+ import "./component/element/html/PreformattedMarkup.js";
28
+ import "./component/element/html/SortableTreeItemCollapseButton.js";
29
+ import { Switch as Jt } from "./component/element/special/Switch.js";
30
+ import { coreReactionComponents as Mt } from "./component/reaction/index.js";
31
+ import { mergeComponentCollections as zt } from "./engine/ComponentCollector.js";
32
+ import { GlobalDataContextProvider as Gt } from "./engine/GlobalDataContextProvider.js";
33
+ import Lt from "./engine/ParsingDebugDisplay/ParsingDebugDisplay.js";
34
+ import { TemplateContext as nt } from "./engine/TemplateContext.js";
35
+ import { dataLocationToPath as it, evaluateTemplateValueCollection as at } from "./engine/TemplateSystem.js";
36
+ import { alterData as Rt } from "./engine/utility/alterData.js";
37
+ import { applyDataMapping as $t } from "./engine/utility/dataMappingSystem.js";
38
+ import { parseRjBuild as qt } from "./engine/utility/parseRjBuild.js";
39
+ import { stringToBoolean as jt } from "./engine/utility/stringToBoolean.js";
40
+ import { analyzeDataOverrideReferences as Kt } from "./engine/utility/analyzeDataOverrideReferences.js";
41
+ import "./js-yaml-Bw0KO4XO.js";
42
+ const ot = {
43
+ action: kt,
44
+ dataMapping: Nt,
45
+ dataProcessor: Vt,
46
+ element: Yt,
47
+ reaction: Mt
48
+ }, Xt = ({
49
+ dataOverride: o,
50
+ dataFetchMethod: D,
51
+ dataUrl: C,
52
+ debugMode: m,
53
+ DebugModeContentWrapper: P,
54
+ DebugModeDataWrapper: E,
55
+ DebugModeRootWrapper: G,
56
+ headersForData: T,
57
+ headersForRjBuild: l,
58
+ maybeRawAppData: V,
59
+ maybeRawAppRjBuild: u,
60
+ plugins: _,
61
+ rjBuildFetchMethod: v,
62
+ rjBuildUrl: d,
63
+ upstreamUpdateCallbacks: A
64
+ }) => {
65
+ const p = [];
66
+ D && (p.push({
67
+ deprecatedProperty: "dataFetchMethod",
68
+ newProperty: "rjBuildFetchMethod"
69
+ }), v = D), C && (p.push({
70
+ deprecatedProperty: "dataUrl",
71
+ newProperty: "rjBuildUrl"
72
+ }), d = C), T && (p.push({
73
+ deprecatedProperty: "headersForData",
74
+ newProperty: "headersForRjBuild"
75
+ }), l = T), V && (p.push({
76
+ deprecatedProperty: "maybeRawAppData",
77
+ newProperty: "maybeRawAppRjBuild"
78
+ }), u = V), p.length > 0 && console.warn(
79
+ "A ReactiveJsonRoot component got the following deprecated properties that must be replaced: " + p.map((t) => t.deprecatedProperty + " -> " + t.newProperty).join(", ")
80
+ );
81
+ const [w, x] = Ot(
82
+ (t, a) => {
83
+ switch (a.type) {
84
+ case "setData":
85
+ return { updateId: 0, realCurrentData: a.data };
86
+ case "updateData":
87
+ return pt(t, a.path, a.value, a.updateMode);
88
+ default:
89
+ return t;
90
+ }
91
+ },
92
+ { updateId: 0, realCurrentData: {} }
93
+ ), [st, ct] = N({}), [lt, Q] = N({}), [mt, Y] = N([]), [J, L] = N(() => {
94
+ if (u)
95
+ return typeof u == "string" ? u : JSON.stringify(u);
96
+ }), [R, Z] = N(null), i = Tt(null);
97
+ H(() => () => {
98
+ typeof document < "u" && i.current && i.current.parentNode && (i.current.parentNode.removeChild(i.current), i.current = null);
99
+ }, []);
100
+ const M = _ ? zt([ot, _]) : ot;
101
+ H(() => {
102
+ d && (typeof v == "string" && v.toLowerCase() === "post" ? X.post(d, {
103
+ headers: l
104
+ }).then((t) => {
105
+ L(t.data);
106
+ }) : X.get(d, {
107
+ headers: l
108
+ }).then((t) => {
109
+ L(t.data);
110
+ }));
111
+ }, [d, l]), H(() => {
112
+ if (!J)
113
+ return;
114
+ const t = qt(J);
115
+ if (!t.success) {
116
+ if (console.group(
117
+ `Tried to load the app's RjBuild but the ${t.format} content could not be parsed.`
118
+ ), console.error(t.error.message), console.debug("Context:", {
119
+ rjBuildUrl: d,
120
+ rjBuildFetchMethod: v,
121
+ headersForRjBuild: l,
122
+ maybeRawAppRjBuild: u,
123
+ dataOverride: o
124
+ }), console.debug("Error details:", t.error), console.groupEnd(), typeof document < "u") {
125
+ let e = document.getElementById("rj-parsing-error-root");
126
+ if (e || (e = document.createElement("div"), e.id = "rj-parsing-error-root", document.body.appendChild(e)), !i.current) {
127
+ const h = document.createElement("div");
128
+ e.appendChild(h), i.current = h;
129
+ }
130
+ Z(
131
+ At.createPortal(
132
+ /* @__PURE__ */ y(
133
+ Lt,
134
+ {
135
+ processedRjBuild: t,
136
+ errorContext: {
137
+ rjBuildUrl: d,
138
+ rjBuildFetchMethod: v,
139
+ headersForRjBuild: l,
140
+ maybeRawAppRjBuild: u
141
+ }
142
+ }
143
+ ),
144
+ i.current,
145
+ () => {
146
+ i.current && (i.current.parentNode.removeChild(i.current), i.current = null);
147
+ }
148
+ )
149
+ );
150
+ }
151
+ return;
152
+ }
153
+ R && (Z(null), typeof document < "u" && i.current && i.current.parentNode && (i.current.parentNode.removeChild(i.current), i.current = null));
154
+ const a = t.data;
155
+ ct(a.templates ?? a.listForms), !a.templates && a.listForms && console.log(
156
+ "'listForms' needs to be renamed to 'templates'. The support for 'listForms' will be removed in the next releases of reactive-json."
157
+ );
158
+ let c = o === void 0 ? a.data : o;
159
+ const s = a.additionalDataSource;
160
+ if (!Array.isArray(s) || s.length === 0) {
161
+ x({ type: "setData", data: c }), Q(a.renderView), Y(Object.keys(a.renderView));
162
+ return;
163
+ }
164
+ const b = {
165
+ headersForRjBuild: l,
166
+ templateData: c,
167
+ templatePath: "data",
168
+ setData: F,
169
+ updateData: W
170
+ }, r = {
171
+ templateData: c,
172
+ templatePath: "data"
173
+ }, f = s.filter((e) => e.blocking === !0), k = s.filter((e) => e.blocking !== !0), n = async (e, h) => {
174
+ var S;
175
+ try {
176
+ if (!e.src) {
177
+ console.warn("additionalDataSource item number " + h + " missing 'src' property.", e);
178
+ return;
179
+ }
180
+ const I = {
181
+ method: ((S = e.method) == null ? void 0 : S.toUpperCase()) || "GET",
182
+ url: e.src
183
+ };
184
+ l && Object.keys(l).length > 0 && (I.headers = l);
185
+ const z = await X(I), ut = {
186
+ url: I.url,
187
+ method: I.method,
188
+ headers: I.headers || {},
189
+ body: I.data
190
+ }, dt = {
191
+ headers: z.headers || {},
192
+ status: z.status,
193
+ data: z.data
194
+ }, O = Rt({
195
+ requestContext: ut,
196
+ responseContext: dt,
197
+ responseBody: z.data,
198
+ // additionalDataSource always processes raw data, not RjBuild.
199
+ isRjBuild: !1,
200
+ dataProcessors: (M == null ? void 0 : M.dataProcessor) || {}
201
+ });
202
+ if (e.dataMapping)
203
+ try {
204
+ $t({
205
+ dataMapping: e.dataMapping,
206
+ responseData: O,
207
+ globalDataContext: b,
208
+ templateContext: r
209
+ });
210
+ return;
211
+ } catch (g) {
212
+ console.error("Error applying dataMapping for additionalDataSource:", g);
213
+ }
214
+ if (!e.path) {
215
+ if (typeof O != "object" || Array.isArray(O)) {
216
+ console.warn(
217
+ "additionalDataSource data cannot be merged at root - must be an object:",
218
+ O
219
+ );
220
+ return;
221
+ }
222
+ Object.entries(O).forEach(([g, j]) => {
223
+ x({
224
+ type: "updateData",
225
+ path: g,
226
+ value: j
227
+ });
228
+ });
229
+ return;
230
+ }
231
+ try {
232
+ const g = it({
233
+ dataLocation: e.path,
234
+ currentPath: "data",
235
+ globalDataContext: b,
236
+ templateContext: r
237
+ });
238
+ if (typeof g != "string") {
239
+ console.warn(
240
+ "additionalDataSource path evaluation did not result in a string:",
241
+ e.path,
242
+ "->",
243
+ g
244
+ );
245
+ return;
246
+ }
247
+ const j = g.substring(5);
248
+ x({
249
+ type: "updateData",
250
+ path: j,
251
+ value: O
252
+ });
253
+ } catch (g) {
254
+ console.error("Error evaluating additionalDataSource path:", e.path, g);
255
+ }
256
+ } catch (et) {
257
+ console.error("Error fetching additional data source:", e.src, et);
258
+ }
259
+ };
260
+ x({ type: "setData", data: c }), (async () => {
261
+ if (f.length > 0) {
262
+ const e = f.map((h, S) => n(h, S));
263
+ await Promise.allSettled(e).catch((h) => {
264
+ console.error("Error processing blocking additionalDataSource:", h);
265
+ });
266
+ }
267
+ if (Q(a.renderView), Y(Object.keys(a.renderView)), k.length > 0) {
268
+ const e = k.map(
269
+ (h, S) => n(h, f.length + S)
270
+ );
271
+ Promise.allSettled(e);
272
+ }
273
+ })();
274
+ }, [J, o, l]);
275
+ function U(t, a, c) {
276
+ if (!A || A.size === 0)
277
+ return !1;
278
+ for (const [s, b] of A)
279
+ if (t === s || t.startsWith(s + ".") || s === "") {
280
+ const r = s === "" ? t : t.substring(s.length + 1);
281
+ try {
282
+ return b(a, r, c), !0;
283
+ } catch (f) {
284
+ console.warn("Error during upstream update:", f);
285
+ break;
286
+ }
287
+ }
288
+ return !1;
289
+ }
290
+ function W(t, a, c = void 0) {
291
+ let s = a.replace("data.", "");
292
+ U(s, t, c) || x({
293
+ type: "updateData",
294
+ path: s,
295
+ value: t,
296
+ updateMode: c
297
+ });
298
+ }
299
+ function F(t) {
300
+ U("", t, void 0) || x({
301
+ type: "setData",
302
+ data: t
303
+ });
304
+ }
305
+ function pt(t, a, c, s = void 0) {
306
+ const b = a.split(".");
307
+ (typeof t.realCurrentData != "object" || t.realCurrentData === null || Array.isArray(t.realCurrentData)) && (t.realCurrentData = {});
308
+ let r = t.realCurrentData;
309
+ for (let f = 0, k = b.length; f < k; f++) {
310
+ const n = b[f];
311
+ if (f === k - 1) {
312
+ if (s === "remove" && Array.isArray(r))
313
+ r.splice(n, 1);
314
+ else if (s === "move")
315
+ if (c.increment) {
316
+ if (!Array.isArray(r))
317
+ return t;
318
+ const q = Math.min(
319
+ r.length,
320
+ Math.max(0, parseInt(n) + parseInt(c.increment))
321
+ );
322
+ if (q === parseInt(n))
323
+ return t;
324
+ const e = r.splice(n, 1);
325
+ if (e.length < 1)
326
+ return t;
327
+ r.splice(q, 0, e[0]);
328
+ } else
329
+ return t;
330
+ else if (c === void 0)
331
+ delete r[n];
332
+ else {
333
+ if (It.isEqual(c, r[n]))
334
+ return t;
335
+ s === "add" ? (r[n] === void 0 && (r[n] = []), r[n].push(c)) : r[n] = c;
336
+ }
337
+ return {
338
+ // Using modulo in case of massive update counts in long frontend sessions.
339
+ updateId: (t.updateId ?? 0) % (Number.MAX_SAFE_INTEGER - 1) + 1,
340
+ realCurrentData: t.realCurrentData
341
+ };
342
+ }
343
+ if (r.hasOwnProperty(n)) {
344
+ (typeof r[n] != "object" || r[n] === null) && (r[n] = {}), r = r[n];
345
+ continue;
346
+ }
347
+ r[n] = {}, r = r[n];
348
+ }
349
+ throw new Error("Could not update data.");
350
+ }
351
+ if (!J)
352
+ return null;
353
+ const B = mt.map((t) => {
354
+ var a;
355
+ return /* @__PURE__ */ y(
356
+ _t,
357
+ {
358
+ datafield: t,
359
+ props: lt[t],
360
+ path: "data." + t,
361
+ currentData: (a = w.realCurrentData) == null ? void 0 : a[t]
362
+ },
363
+ t
364
+ );
365
+ }), $ = jt(m), tt = /* @__PURE__ */ y(xt, { children: /* @__PURE__ */ K(
366
+ Gt,
367
+ {
368
+ value: {
369
+ element: st,
370
+ headersForRjBuild: l,
371
+ plugins: M,
372
+ setData: F,
373
+ setRawAppRjBuild: L,
374
+ templateData: w.realCurrentData,
375
+ templatePath: "data",
376
+ updateData: W
377
+ },
378
+ children: [
379
+ /* @__PURE__ */ y(
380
+ nt.Provider,
381
+ {
382
+ value: {
383
+ templateData: w.realCurrentData,
384
+ templatePath: "data"
385
+ },
386
+ children: $ && P ? /* @__PURE__ */ y(P, { children: B }) : B
387
+ }
388
+ ),
389
+ $ ? E && /* @__PURE__ */ y(E, { children: JSON.stringify(w.realCurrentData, null, " ") }) : null
390
+ ]
391
+ }
392
+ ) });
393
+ return $ && P ? /* @__PURE__ */ K(G, { children: [
394
+ tt,
395
+ R
396
+ ] }) : /* @__PURE__ */ K(Et, { children: [
397
+ tt,
398
+ R
399
+ ] });
400
+ }, Ht = ({ props: o }) => {
401
+ var T;
402
+ const D = rt(St), C = rt(nt), m = at({
403
+ valueToEvaluate: o == null ? void 0 : o.rjOptions,
404
+ globalDataContext: D,
405
+ templateContext: C
406
+ }) || {};
407
+ if (typeof m != "object")
408
+ return;
409
+ let P;
410
+ if ((o == null ? void 0 : o.sharedUpdates) === !0 && ((T = o == null ? void 0 : o.rjOptions) != null && T.dataOverride)) {
411
+ const l = Kt(o.rjOptions.dataOverride);
412
+ if (l.size > 0) {
413
+ P = /* @__PURE__ */ new Map();
414
+ for (const [V, u] of l) {
415
+ const _ = (v, d, A) => {
416
+ try {
417
+ const p = it({
418
+ dataLocation: u,
419
+ currentPath: C.templatePath,
420
+ globalDataContext: D,
421
+ templateContext: C
422
+ }), w = d ? `${p}.${d}` : p;
423
+ D.updateData(v, w, A);
424
+ } catch (p) {
425
+ console.warn(`Error during upstream propagation for ${u}:`, p);
426
+ }
427
+ };
428
+ P.set(V, _);
429
+ }
430
+ }
431
+ }
432
+ const E = Number.isInteger(parseInt(o == null ? void 0 : o.dataOverrideEvaluationDepth)) ? parseInt(o == null ? void 0 : o.dataOverrideEvaluationDepth) : 10;
433
+ m != null && m.dataOverride && Number.isInteger(E) && E !== 0 && (m.dataOverride = at({
434
+ valueToEvaluate: m == null ? void 0 : m.dataOverride,
435
+ globalDataContext: D,
436
+ templateContext: C,
437
+ evaluationDepth: E
438
+ }) || {});
439
+ const G = D.plugins ?? {};
440
+ return /* @__PURE__ */ y(wt, { ...o, children: /* @__PURE__ */ y(Xt, { ...m, plugins: G, upstreamUpdateCallbacks: P }) });
441
+ }, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
442
+ __proto__: null,
443
+ Count: gt,
444
+ DataFilter: Dt,
445
+ DelayedActions: yt,
446
+ PageControls: Pt,
447
+ Phantom: vt,
448
+ ReactiveJsonBasicComponentWrapper: bt,
449
+ ReactiveJsonSubroot: Ht,
450
+ Switch: Jt,
451
+ getReactionFunctionsToExecute: Ct
452
+ }, Symbol.toStringTag, { value: "Module" })), Yt = {
453
+ ...ft,
454
+ ...ht,
455
+ ...Qt
456
+ };
457
+ export {
458
+ Ht as R,
459
+ Xt as a,
460
+ ot as b,
461
+ Yt as c
462
+ };
@@ -0,0 +1,8 @@
1
+ import { VariablesDebug as e } from "./component/element/debug/VariablesDebug/VariablesDebug.js";
2
+ const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
+ __proto__: null,
4
+ VariablesDebug: e
5
+ }, Symbol.toStringTag, { value: "Module" }));
6
+ export {
7
+ t as d
8
+ };