@ea-lab/reactive-json 1.0.0-alpha.0 → 1.0.0-alpha.2
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/component/action/HashChangeListener.js +7 -7
- package/dist/component/action/MessageListener.js +1 -1
- package/dist/component/action/Redirect.js +3 -3
- package/dist/component/action/SetAttributeValue.js +1 -1
- package/dist/component/action/ToggleAttributeValue.js +1 -1
- package/dist/component/action/UnsetAttribute.js +5 -5
- package/dist/component/action/UnsetAttributeValue.js +1 -1
- package/dist/component/dataMapping/simpleMapping.js +17 -17
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +20 -19
- package/dist/component/element/html/FolderSortableTree.js +29 -27
- package/dist/component/element/html/FormatNumeral.js +23 -22
- package/dist/component/element/html/Html.js +57 -7
- package/dist/component/element/html/LabelFromValue.js +20 -18
- package/dist/component/element/html/PreformattedMarkup.js +9 -8
- package/dist/component/element/html/SortableTreeItemCollapseButton.js +4 -4
- package/dist/component/element/html/index.js +6 -7
- package/dist/component/element/index.js +26 -27
- package/dist/component/element/special/Count.js +9 -10
- package/dist/component/element/special/DataFilter.js +24 -23
- package/dist/component/element/special/DelayedActions.js +17 -16
- package/dist/component/element/special/Phantom.js +7 -6
- package/dist/component/element/special/ReactiveJsonBasicComponentWrapper.js +12 -9
- package/dist/component/element/special/ReactiveJsonSubroot.js +4 -3
- package/dist/component/element/special/Switch.js +34 -32
- package/dist/component/element/special/index.js +1 -1
- package/dist/component/index.js +59 -60
- package/dist/component/reaction/addData.js +14 -14
- package/dist/component/reaction/fetchData.js +1 -1
- package/dist/component/reaction/index.js +1 -1
- package/dist/component/reaction/moveData.js +6 -6
- package/dist/component/reaction/postMessage.js +5 -5
- package/dist/component/reaction/redirectNow.js +3 -3
- package/dist/component/reaction/removeData.js +6 -6
- package/dist/component/reaction/setClipboardData.js +6 -6
- package/dist/component/reaction/setData.js +8 -8
- package/dist/component/reaction/submitData.js +2 -2
- package/dist/component/reaction/utility/httpRequestCommon.js +2 -2
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/coreComponentsPlugin.js +1 -1
- package/dist/engine/Actions.js +161 -8
- package/dist/engine/ReactiveJsonRoot.js +5 -4
- package/dist/engine/TemplateSystem.js +117 -11
- package/dist/engine/View.js +74 -6
- package/dist/engine/index.js +43 -39
- package/dist/engine/utility/analyzeDataOverrideReferences.js +7 -7
- package/dist/engine/utility/formElementsCommon.js +11 -11
- package/dist/engine/utility/formatString.js +3 -3
- package/dist/engine/utility/index.js +9 -7
- package/dist/engine/utility/reactJsxHelpers.js +15 -0
- package/dist/{httpRequestCommon-BFntjNdS.js → httpRequestCommon-DUo2Oxgl.js} +1 -1
- package/dist/{index-Bzk15m61.js → index-BNvY8PkY.js} +6 -7
- package/dist/{index-OhHUX6nj.js → index-CBEHeXej.js} +64 -61
- package/dist/jsonpath-B9kE9k9e.js +3168 -0
- package/dist/main.js +110 -106
- package/package.json +1 -1
- package/dist/TemplateSystem-kQJEKjik.js +0 -3568
|
@@ -1,13 +1,119 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import "./GlobalDataContext.js";
|
|
3
|
-
import "./TemplateContext.js";
|
|
4
|
-
import {
|
|
1
|
+
import { useContext as c } from "react";
|
|
2
|
+
import { GlobalDataContext as y } from "./GlobalDataContext.js";
|
|
3
|
+
import { TemplateContext as P } from "./TemplateContext.js";
|
|
4
|
+
import { normalizeAttributesForReactJsx as d } from "./utility/reactJsxHelpers.js";
|
|
5
|
+
const A = ({ dataLocation: r, currentPath: t, globalDataContext: e, templateContext: s }) => {
|
|
6
|
+
if (typeof r != "string" || !(r.startsWith("~.") || r.startsWith("~~.") || r.startsWith("~>") || r.startsWith("~~>")))
|
|
7
|
+
return r === "~" ? s.templatePath : r === "~~" ? e.templatePath : r;
|
|
8
|
+
let f;
|
|
9
|
+
if (r.startsWith("~~."))
|
|
10
|
+
f = e.templatePath;
|
|
11
|
+
else if (r.startsWith("~."))
|
|
12
|
+
f = s.templatePath;
|
|
13
|
+
else if (r.startsWith("~>") || r.startsWith("~~>")) {
|
|
14
|
+
const h = r.startsWith("~>") ? "~>" : "~~>", m = r.indexOf("."), n = m === -1 ? r.substring(h.length) : r.substring(h.length, m);
|
|
15
|
+
if (!s.templatePath.includes(n))
|
|
16
|
+
throw new Error(
|
|
17
|
+
n + " not found in the current template path. The current template path is: " + s.templatePath
|
|
18
|
+
);
|
|
19
|
+
let p;
|
|
20
|
+
h === "~>" ? p = s.templatePath.lastIndexOf(n) : p = s.templatePath.indexOf(n), f = s.templatePath.substring(0, p + n.length);
|
|
21
|
+
} else
|
|
22
|
+
f = t;
|
|
23
|
+
const i = r.split(".");
|
|
24
|
+
return i.shift(), i.length ? f + "." + i.join(".") : f;
|
|
25
|
+
}, I = ({ attrs: r, globalDataContext: t, templateContext: e, options: s = {} }) => {
|
|
26
|
+
const f = {};
|
|
27
|
+
if (!r)
|
|
28
|
+
return f;
|
|
29
|
+
const i = s.normalizeBeforeEvaluation ? d(r) : r;
|
|
30
|
+
for (const h of Object.keys(i)) {
|
|
31
|
+
const m = u({
|
|
32
|
+
globalDataContext: t,
|
|
33
|
+
templateContext: e,
|
|
34
|
+
valueToEvaluate: i[h]
|
|
35
|
+
});
|
|
36
|
+
m && (f[h] = m);
|
|
37
|
+
}
|
|
38
|
+
return f;
|
|
39
|
+
}, W = ({ valueToEvaluate: r, globalDataContext: t, templateContext: e }) => {
|
|
40
|
+
if (!j(r))
|
|
41
|
+
return r;
|
|
42
|
+
if (r === "~")
|
|
43
|
+
return e.templateData;
|
|
44
|
+
if (r === "~~")
|
|
45
|
+
return t.templateData;
|
|
46
|
+
let s;
|
|
47
|
+
if (r.startsWith("~~.") ? s = t == null ? void 0 : t.templateData : r.startsWith("~>") || r.startsWith("~~>") ? (r = A({
|
|
48
|
+
dataLocation: r,
|
|
49
|
+
currentPath: e.templatePath,
|
|
50
|
+
globalDataContext: t,
|
|
51
|
+
templateContext: e
|
|
52
|
+
}), s = t == null ? void 0 : t.templateData) : s = e == null ? void 0 : e.templateData, !s)
|
|
53
|
+
return;
|
|
54
|
+
const f = r.split(".");
|
|
55
|
+
for (f.shift(); f.length; )
|
|
56
|
+
if (typeof s != "object" || (s = s[f.shift()], s === void 0))
|
|
57
|
+
return;
|
|
58
|
+
return s;
|
|
59
|
+
}, u = ({
|
|
60
|
+
valueToEvaluate: r,
|
|
61
|
+
globalDataContext: t,
|
|
62
|
+
templateContext: e,
|
|
63
|
+
evaluationDepth: s = 1
|
|
64
|
+
}) => {
|
|
65
|
+
if (s === 0 || s <= -20)
|
|
66
|
+
return r;
|
|
67
|
+
let i;
|
|
68
|
+
if (typeof r == "object") {
|
|
69
|
+
i = Array.isArray(r) ? [] : {};
|
|
70
|
+
for (const [h, m] of Object.entries(r)) {
|
|
71
|
+
const n = W({
|
|
72
|
+
globalDataContext: t,
|
|
73
|
+
templateContext: e,
|
|
74
|
+
valueToEvaluate: m
|
|
75
|
+
});
|
|
76
|
+
(s > 1 || s < 0) && typeof n == "object" && n !== null ? i[h] = u({
|
|
77
|
+
valueToEvaluate: n,
|
|
78
|
+
globalDataContext: t,
|
|
79
|
+
templateContext: e,
|
|
80
|
+
evaluationDepth: s - 1
|
|
81
|
+
}) : i[h] = n;
|
|
82
|
+
}
|
|
83
|
+
} else
|
|
84
|
+
i = W({
|
|
85
|
+
globalDataContext: t,
|
|
86
|
+
templateContext: e,
|
|
87
|
+
valueToEvaluate: r
|
|
88
|
+
}), (s > 1 || s < 0) && typeof i == "object" && i !== null && (i = u({
|
|
89
|
+
valueToEvaluate: i,
|
|
90
|
+
globalDataContext: t,
|
|
91
|
+
templateContext: e,
|
|
92
|
+
evaluationDepth: s - 1
|
|
93
|
+
}));
|
|
94
|
+
return i;
|
|
95
|
+
}, j = (r) => typeof r != "string" || !(r.startsWith("~.") || r.startsWith("~~.") || r.startsWith("~>") || r.startsWith("~~>") || r === "~" || r === "~~") ? !1 : r, B = ({ valueToEvaluate: r }) => {
|
|
96
|
+
const t = c(y), e = c(P);
|
|
97
|
+
return W({
|
|
98
|
+
globalDataContext: t,
|
|
99
|
+
templateContext: e,
|
|
100
|
+
valueToEvaluate: r
|
|
101
|
+
});
|
|
102
|
+
}, w = (r, t = {}) => {
|
|
103
|
+
const e = c(y), s = c(P);
|
|
104
|
+
return I({
|
|
105
|
+
attrs: r,
|
|
106
|
+
globalDataContext: e,
|
|
107
|
+
templateContext: s,
|
|
108
|
+
options: t.normalizeBeforeEvaluation === void 0 ? { ...t, normalizeBeforeEvaluation: !0 } : t
|
|
109
|
+
});
|
|
110
|
+
};
|
|
5
111
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
112
|
+
A as dataLocationToPath,
|
|
113
|
+
B as default,
|
|
114
|
+
I as evaluateAttributes,
|
|
115
|
+
W as evaluateTemplateValue,
|
|
116
|
+
u as evaluateTemplateValueCollection,
|
|
117
|
+
j as isTemplateValue,
|
|
118
|
+
w as useEvaluatedAttributes
|
|
13
119
|
};
|
package/dist/engine/View.js
CHANGED
|
@@ -1,8 +1,76 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as y } from "react";
|
|
3
|
+
import { GlobalDataContext as D } from "./GlobalDataContext.js";
|
|
4
|
+
import { TemplateContext as C } from "./TemplateContext.js";
|
|
5
|
+
import L, { evaluateTemplateValue as x, dataLocationToPath as P } from "./TemplateSystem.js";
|
|
6
|
+
function u({ props: t, currentData: o, datafield: c, path: n }) {
|
|
7
|
+
const i = y(D), v = y(C), f = i.plugins ?? {}, d = (f == null ? void 0 : f.element) ?? {};
|
|
8
|
+
if (!d)
|
|
9
|
+
return null;
|
|
10
|
+
const { element: T } = i;
|
|
11
|
+
if (o === void 0 && (o = ""), t != null && t.type) {
|
|
12
|
+
let e = d[t.type] ?? void 0;
|
|
13
|
+
const a = d.Html;
|
|
14
|
+
return e === void 0 && (e = a), e ? (a === e && (t.tag = t.tag ?? t.type), /* @__PURE__ */ l(e, { path: n, props: t, currentData: o, datafield: c })) : (console.warn(`No component found for type "${t.type}" and no Html fallback available.`), null);
|
|
15
|
+
}
|
|
16
|
+
if (t != null && t.load) {
|
|
17
|
+
let e;
|
|
18
|
+
const a = (t == null ? void 0 : t.customDataLocation) ?? void 0, m = a ? (
|
|
19
|
+
// The data is located somewhere in the current data.
|
|
20
|
+
x({
|
|
21
|
+
globalDataContext: i,
|
|
22
|
+
templateContext: v,
|
|
23
|
+
valueToEvaluate: a
|
|
24
|
+
})
|
|
25
|
+
) : (
|
|
26
|
+
// The data is the current data.
|
|
27
|
+
o
|
|
28
|
+
), r = a ? P({
|
|
29
|
+
dataLocation: a,
|
|
30
|
+
currentPath: n,
|
|
31
|
+
globalDataContext: i,
|
|
32
|
+
templateContext: v
|
|
33
|
+
}) : n;
|
|
34
|
+
typeof t.load == "function" ? e = t.load(m) : e = T[t.load];
|
|
35
|
+
const { load: h, customDataLocation: g, ...b } = t;
|
|
36
|
+
return e = { ...e, ...b }, t.keepTemplateContext ? /* @__PURE__ */ l(
|
|
37
|
+
u,
|
|
38
|
+
{
|
|
39
|
+
currentData: m,
|
|
40
|
+
datafield: c,
|
|
41
|
+
path: r,
|
|
42
|
+
props: e
|
|
43
|
+
}
|
|
44
|
+
) : /* @__PURE__ */ l(C.Provider, { value: { templateData: m, templatePath: r }, children: /* @__PURE__ */ l(
|
|
45
|
+
u,
|
|
46
|
+
{
|
|
47
|
+
currentData: m,
|
|
48
|
+
datafield: c,
|
|
49
|
+
path: r,
|
|
50
|
+
props: e
|
|
51
|
+
}
|
|
52
|
+
) });
|
|
53
|
+
}
|
|
54
|
+
return Array.isArray(t) ? t.map((e, a) => /* @__PURE__ */ l(
|
|
55
|
+
u,
|
|
56
|
+
{
|
|
57
|
+
currentData: o[a] ?? void 0,
|
|
58
|
+
datafield: a,
|
|
59
|
+
path: n + "." + a,
|
|
60
|
+
props: e ?? void 0
|
|
61
|
+
},
|
|
62
|
+
n + "." + a
|
|
63
|
+
)) : typeof t == "object" ? Object.entries(t).map(([e, a]) => /* @__PURE__ */ l(
|
|
64
|
+
u,
|
|
65
|
+
{
|
|
66
|
+
currentData: o[e] ?? void 0,
|
|
67
|
+
datafield: e ?? void 0,
|
|
68
|
+
path: n + "." + e,
|
|
69
|
+
props: a
|
|
70
|
+
},
|
|
71
|
+
n + "." + e
|
|
72
|
+
)) : /* @__PURE__ */ l(L, { valueToEvaluate: o || (t ?? null) });
|
|
73
|
+
}
|
|
6
74
|
export {
|
|
7
|
-
|
|
75
|
+
u as View
|
|
8
76
|
};
|
package/dist/engine/index.js
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mergeComponentCollections as
|
|
3
|
-
import { EventDispatcherContext as
|
|
4
|
-
import { EventDispatcherProvider as
|
|
5
|
-
import { GlobalDataContext as
|
|
6
|
-
import { GlobalDataContextProvider as
|
|
7
|
-
import { PaginationContext as
|
|
8
|
-
import { a as
|
|
9
|
-
import { TemplateContext as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { ActionDependant as o, isValid as r } from "./Actions.js";
|
|
2
|
+
import { mergeComponentCollections as p } from "./ComponentCollector.js";
|
|
3
|
+
import { EventDispatcherContext as m } from "./EventDispatcherContext.js";
|
|
4
|
+
import { EventDispatcherProvider as l, addEventListener as x, removeEventListener as f } from "./EventDispatcherProvider.js";
|
|
5
|
+
import { GlobalDataContext as v } from "./GlobalDataContext.js";
|
|
6
|
+
import { GlobalDataContextProvider as d } from "./GlobalDataContextProvider.js";
|
|
7
|
+
import { PaginationContext as C } from "./PaginationContext.js";
|
|
8
|
+
import { a as b } from "../index-CBEHeXej.js";
|
|
9
|
+
import { TemplateContext as T } from "./TemplateContext.js";
|
|
10
|
+
import { dataLocationToPath as R, evaluateAttributes as V, evaluateTemplateValue as A, evaluateTemplateValueCollection as P, isTemplateValue as h, useEvaluatedAttributes as y } from "./TemplateSystem.js";
|
|
11
|
+
import { alterData as z } from "./utility/alterData.js";
|
|
12
|
+
import { analyzeDataOverrideReferences as F } from "./utility/analyzeDataOverrideReferences.js";
|
|
13
|
+
import { applyDataMapping as J } from "./utility/dataMappingSystem.js";
|
|
14
|
+
import { formatString as j, maybeFormatString as w } from "./utility/formatString.js";
|
|
14
15
|
import { parseRjBuild as O } from "./utility/parseRjBuild.js";
|
|
15
|
-
import {
|
|
16
|
+
import { normalizeAttributesForReactJsx as q } from "./utility/reactJsxHelpers.js";
|
|
17
|
+
import { stringToBoolean as I } from "./utility/stringToBoolean.js";
|
|
18
|
+
import { View as N } from "./View.js";
|
|
16
19
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
o as ActionDependant,
|
|
21
|
+
m as EventDispatcherContext,
|
|
22
|
+
l as EventDispatcherProvider,
|
|
23
|
+
v as GlobalDataContext,
|
|
24
|
+
d as GlobalDataContextProvider,
|
|
25
|
+
C as PaginationContext,
|
|
26
|
+
b as ReactiveJsonRoot,
|
|
27
|
+
T as TemplateContext,
|
|
28
|
+
N as View,
|
|
29
|
+
x as addEventListener,
|
|
30
|
+
z as alterData,
|
|
31
|
+
F as analyzeDataOverrideReferences,
|
|
32
|
+
J as applyDataMapping,
|
|
33
|
+
R as dataLocationToPath,
|
|
34
|
+
V as evaluateAttributes,
|
|
35
|
+
A as evaluateTemplateValue,
|
|
36
|
+
P as evaluateTemplateValueCollection,
|
|
37
|
+
j as formatString,
|
|
38
|
+
h as isTemplateValue,
|
|
39
|
+
r as isValid,
|
|
40
|
+
w as maybeFormatString,
|
|
41
|
+
p as mergeComponentCollections,
|
|
42
|
+
q as normalizeAttributesForReactJsx,
|
|
39
43
|
O as parseRjBuild,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
f as removeEventListener,
|
|
45
|
+
I as stringToBoolean,
|
|
46
|
+
y as useEvaluatedAttributes
|
|
43
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isTemplateValue as l } from "../TemplateSystem.js";
|
|
2
2
|
const w = (n, u = "", y = {}) => {
|
|
3
3
|
const r = /* @__PURE__ */ new Map();
|
|
4
4
|
if (!n)
|
|
@@ -24,15 +24,15 @@ const w = (n, u = "", y = {}) => {
|
|
|
24
24
|
}
|
|
25
25
|
if (!(!e || typeof e != "object")) {
|
|
26
26
|
if (Array.isArray(e)) {
|
|
27
|
-
e.forEach((
|
|
28
|
-
const o = t ? `${t}.${
|
|
29
|
-
c(
|
|
27
|
+
e.forEach((i, a) => {
|
|
28
|
+
const o = t ? `${t}.${a}` : a.toString();
|
|
29
|
+
c(i, o, s, f + 1);
|
|
30
30
|
});
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
Object.entries(e).forEach(([
|
|
34
|
-
const o = t ? `${t}.${
|
|
35
|
-
c(
|
|
33
|
+
Object.entries(e).forEach(([i, a]) => {
|
|
34
|
+
const o = t ? `${t}.${i}` : i;
|
|
35
|
+
c(a, o, s, f + 1);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { evaluateTemplateValue as P, dataLocationToPath as m } from "../TemplateSystem.js";
|
|
2
2
|
const u = ({
|
|
3
|
-
currentPath:
|
|
3
|
+
currentPath: v,
|
|
4
4
|
datafield: D,
|
|
5
5
|
dataLocation: o,
|
|
6
|
-
defaultValue:
|
|
7
|
-
globalDataContext:
|
|
6
|
+
defaultValue: h,
|
|
7
|
+
globalDataContext: f,
|
|
8
8
|
templateContext: a
|
|
9
9
|
}) => {
|
|
10
10
|
const r = {
|
|
@@ -13,19 +13,19 @@ const u = ({
|
|
|
13
13
|
// This is the path that leads to the data.
|
|
14
14
|
formDataPath: void 0
|
|
15
15
|
};
|
|
16
|
-
return o && typeof o == "string" ? (r.formData =
|
|
17
|
-
globalDataContext:
|
|
16
|
+
return o && typeof o == "string" ? (r.formData = P({
|
|
17
|
+
globalDataContext: f,
|
|
18
18
|
templateContext: a,
|
|
19
19
|
valueToEvaluate: o
|
|
20
|
-
}) ??
|
|
20
|
+
}) ?? h, r.formDataPath = m({
|
|
21
21
|
dataLocation: o,
|
|
22
|
-
currentPath:
|
|
23
|
-
globalDataContext:
|
|
22
|
+
currentPath: v,
|
|
23
|
+
globalDataContext: f,
|
|
24
24
|
templateContext: a
|
|
25
|
-
})) : ((a.templateData[D] ?? void 0) === void 0 && (a.templateData = typeof a.templateData == "object" ? a.templateData : {}, a.templateData[D] =
|
|
25
|
+
})) : ((a.templateData[D] ?? void 0) === void 0 && (a.templateData = typeof a.templateData == "object" ? a.templateData : {}, a.templateData[D] = h), r.formData = a.templateData[D], r.formDataPath = m({
|
|
26
26
|
dataLocation: "~." + D,
|
|
27
27
|
currentPath: a.templatePath,
|
|
28
|
-
globalDataContext:
|
|
28
|
+
globalDataContext: f,
|
|
29
29
|
templateContext: a
|
|
30
30
|
})), r;
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { evaluateTemplateValue as l } from "../TemplateSystem.js";
|
|
2
2
|
const r = (e, ...t) => t.length ? r(e = e.replace(r.token || "$token", t.shift()), ...t) : e, u = ({ templateContexts: e }, t, ...a) => {
|
|
3
3
|
const n = a.map((o) => l({
|
|
4
4
|
globalDataContext: e.globalDataContext,
|
|
@@ -6,7 +6,7 @@ const r = (e, ...t) => t.length ? r(e = e.replace(r.token || "$token", t.shift()
|
|
|
6
6
|
valueToEvaluate: o
|
|
7
7
|
}));
|
|
8
8
|
return r(t, ...n);
|
|
9
|
-
},
|
|
9
|
+
}, p = (e, t) => {
|
|
10
10
|
if (typeof t == "string")
|
|
11
11
|
return t;
|
|
12
12
|
if (Array.isArray(t)) {
|
|
@@ -17,5 +17,5 @@ const r = (e, ...t) => t.length ? r(e = e.replace(r.token || "$token", t.shift()
|
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
u as formatString,
|
|
20
|
-
|
|
20
|
+
p as maybeFormatString
|
|
21
21
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { alterData as o } from "./alterData.js";
|
|
2
|
-
import { analyzeDataOverrideReferences as
|
|
2
|
+
import { analyzeDataOverrideReferences as a } from "./analyzeDataOverrideReferences.js";
|
|
3
3
|
import { applyDataMapping as m } from "./dataMappingSystem.js";
|
|
4
|
-
import { formatString as
|
|
4
|
+
import { formatString as i, maybeFormatString as n } from "./formatString.js";
|
|
5
5
|
import { parseRjBuild as l } from "./parseRjBuild.js";
|
|
6
|
-
import {
|
|
6
|
+
import { normalizeAttributesForReactJsx as g } from "./reactJsxHelpers.js";
|
|
7
|
+
import { stringToBoolean as D } from "./stringToBoolean.js";
|
|
7
8
|
export {
|
|
8
9
|
o as alterData,
|
|
9
|
-
|
|
10
|
+
a as analyzeDataOverrideReferences,
|
|
10
11
|
m as applyDataMapping,
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
i as formatString,
|
|
13
|
+
n as maybeFormatString,
|
|
14
|
+
g as normalizeAttributesForReactJsx,
|
|
13
15
|
l as parseRjBuild,
|
|
14
|
-
|
|
16
|
+
D as stringToBoolean
|
|
15
17
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const a = (t) => {
|
|
2
|
+
if (typeof t != "object" || Object.keys(t).length === 0)
|
|
3
|
+
return {};
|
|
4
|
+
const r = {
|
|
5
|
+
class: "className"
|
|
6
|
+
}, n = {};
|
|
7
|
+
for (const [e, o] of Object.entries(t)) {
|
|
8
|
+
const s = r.hasOwnProperty(e) ? r[e] : e;
|
|
9
|
+
n[s] = o;
|
|
10
|
+
}
|
|
11
|
+
return n;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
a as normalizeAttributesForReactJsx
|
|
15
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { evaluateTemplateValue as it, dataLocationToPath as at } from "./engine/TemplateSystem.js";
|
|
2
2
|
import { alterData as ct } from "./engine/utility/alterData.js";
|
|
3
3
|
import { applyDataMapping as lt } from "./engine/utility/dataMappingSystem.js";
|
|
4
4
|
import "./js-yaml-Bw0KO4XO.js";
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { FolderSortableTree as o } from "./component/element/html/FolderSortableTree.js";
|
|
2
2
|
import { FormatNumeral as r } from "./component/element/html/FormatNumeral.js";
|
|
3
|
-
import {
|
|
4
|
-
import { LabelFromValue as
|
|
5
|
-
import { PreformattedMarkup as
|
|
3
|
+
import { Html as e } from "./component/element/html/Html.js";
|
|
4
|
+
import { LabelFromValue as t } from "./component/element/html/LabelFromValue.js";
|
|
5
|
+
import { PreformattedMarkup as m } from "./component/element/html/PreformattedMarkup.js";
|
|
6
6
|
import { SortableTreeItemCollapseButton as l } from "./component/element/html/SortableTreeItemCollapseButton.js";
|
|
7
7
|
const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
9
9
|
FolderSortableTree: o,
|
|
10
10
|
FormatNumeral: r,
|
|
11
11
|
Html: e,
|
|
12
|
-
LabelFromValue:
|
|
13
|
-
PreformattedMarkup:
|
|
14
|
-
SortableTreeItemCollapseButton: l
|
|
15
|
-
normalizeAttributesForReactJsx: t
|
|
12
|
+
LabelFromValue: t,
|
|
13
|
+
PreformattedMarkup: m,
|
|
14
|
+
SortableTreeItemCollapseButton: l
|
|
16
15
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
17
16
|
export {
|
|
18
17
|
b as h
|