@ea-lab/reactive-json 0.5.0 → 0.6.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/HashChangeListener-CZjn9YZy.js +8550 -0
- package/dist/ParsingDebugDisplay-8f4yL4Jw.js +696 -0
- package/dist/VariablesDebug-DgS3E2aX.js +9305 -0
- package/dist/assets/DebugJson.css +1 -0
- package/dist/assets/DebugList.css +1 -0
- package/dist/assets/ParsingDebugDisplay.css +1 -0
- package/dist/assets/VariablesDebug.css +4 -0
- package/dist/component/action/HashChangeListener.js +1 -1
- package/dist/component/action/MessageListener.js +2 -2
- package/dist/component/action/Popover.js +1 -1
- package/dist/component/action/ReactOnEvent.js +1 -1
- package/dist/component/action/Redirect.js +1 -1
- package/dist/component/action/SetAttributeValue.js +1 -1
- package/dist/component/action/ToggleAttributeValue.js +1 -1
- package/dist/component/action/Tooltip.js +1 -1
- package/dist/component/action/UnsetAttribute.js +1 -1
- package/dist/component/action/UnsetAttributeValue.js +1 -1
- package/dist/component/action/index.js +1 -1
- package/dist/component/dataMapping/index.js +1 -1
- package/dist/component/dataMapping/simpleMapping.js +1 -1
- package/dist/component/element/debug/VariablesDebug/DebugMode.enum.js +4 -0
- package/dist/component/element/debug/VariablesDebug/ModeDisplay/DebugJson/DebugJson.js +7 -0
- package/dist/component/element/debug/VariablesDebug/ModeDisplay/DebugList/DebugList.js +14 -0
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +18 -0
- package/dist/component/element/debug/VariablesDebug/utils.js +19 -0
- package/dist/component/element/debug/index.js +4 -0
- package/dist/component/element/form/CheckBoxField.js +1 -1
- package/dist/component/element/form/DateField.js +1 -1
- package/dist/component/element/form/NumberField.js +1 -1
- package/dist/component/element/form/SelectField.js +1 -1
- package/dist/component/element/form/TextAreaField.js +1 -1
- package/dist/component/element/form/TextField.js +1 -1
- package/dist/component/element/form/formElementsCommon.js +1 -1
- package/dist/component/element/form/index.js +1 -1
- package/dist/component/element/html/AccordionItem.js +1 -1
- package/dist/component/element/html/FolderSortableTree.js +4 -3
- package/dist/component/element/html/FormatNumeral.js +1 -1
- package/dist/component/element/html/Html.js +1 -1
- package/dist/component/element/html/LabelFromValue.js +1 -1
- package/dist/component/element/html/Modal.js +1 -1
- package/dist/component/element/html/PreformattedMarkup.js +3 -2
- package/dist/component/element/html/SortableTreeItemCollapseButton.js +1 -1
- package/dist/component/element/html/Tabs.js +1 -1
- package/dist/component/element/html/index.js +1 -1
- package/dist/component/element/index.js +28 -26
- package/dist/component/element/special/BootstrapElement.js +1 -1
- package/dist/component/element/special/Count.js +7 -5
- package/dist/component/element/special/DataFilter.js +1 -1
- package/dist/component/element/special/DelayedActions.js +1 -1
- package/dist/component/element/special/Phantom.js +1 -1
- package/dist/component/element/special/ReactiveJsonSubroot.js +5 -4
- package/dist/component/element/special/Switch.js +1 -1
- package/dist/component/element/special/index.js +1 -1
- package/dist/component/index.js +20 -18
- package/dist/component/reaction/addData.js +2 -2
- package/dist/component/reaction/fetchData.js +1 -1
- package/dist/component/reaction/index.js +1 -1
- package/dist/component/reaction/moveData.js +1 -1
- package/dist/component/reaction/postMessage.js +1 -1
- package/dist/component/reaction/redirectNow.js +1 -1
- package/dist/component/reaction/removeData.js +1 -1
- package/dist/component/reaction/setClipboardData.js +1 -1
- package/dist/component/reaction/setData.js +2 -2
- package/dist/component/reaction/submitData.js +1 -1
- package/dist/component/reaction/utility/httpRequestCommon.js +3 -3
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/coreComponentsPlugin.js +1 -1
- package/dist/engine/Actions.js +5 -4
- package/dist/engine/ParsingDebugDisplay/ParsingDebugDisplay.js +6 -0
- package/dist/engine/ReactiveJsonRoot.js +6 -3
- package/dist/engine/TemplateSystem.js +1 -1
- package/dist/engine/View.js +7 -3
- package/dist/engine/index.js +2 -2
- package/dist/engine/utility/alterData.js +21 -2
- package/dist/engine/utility/analyzeDataOverrideReferences.js +1 -1
- package/dist/engine/utility/formatString.js +1 -1
- package/dist/engine/utility/index.js +4 -4
- package/dist/engine/utility/parseRjBuild.js +39 -991
- package/dist/js-yaml-Bw0KO4XO.js +983 -0
- package/dist/{alterData-CjaFWyAA.js → lodash-CYNxjS-I.js} +1348 -1368
- package/dist/main.js +46 -44
- package/dist/utils.d.ts +5 -0
- package/package.json +4 -2
- package/dist/HashChangeListener-BaaJxyFq.js +0 -18247
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as e, E as s, z as r, G as o, I as D, J as m, K as p, O as d, Q as i, V as c } from "../../HashChangeListener-
|
|
1
|
+
import { y as e, E as s, z as r, G as o, I as D, J as m, K as p, O as d, Q as i, V as c } from "../../HashChangeListener-CZjn9YZy.js";
|
|
2
2
|
import { triggerEvent as g } from "./triggerEvent.js";
|
|
3
3
|
export {
|
|
4
4
|
e as addData,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as m } from "../../../HashChangeListener-
|
|
2
|
-
import "../../../alterData
|
|
1
|
+
import { E as m } from "../../../HashChangeListener-CZjn9YZy.js";
|
|
2
|
+
import "../../../engine/utility/alterData.js";
|
|
3
3
|
import "../../../engine/utility/dataMappingSystem.js";
|
|
4
|
-
import "../../../
|
|
4
|
+
import "../../../js-yaml-Bw0KO4XO.js";
|
|
5
5
|
export {
|
|
6
6
|
m as executeHttpRequest
|
|
7
7
|
};
|
package/dist/engine/Actions.js
CHANGED
|
@@ -2,11 +2,12 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "./GlobalDataContext.js";
|
|
4
4
|
import "./TemplateContext.js";
|
|
5
|
-
import { X as
|
|
5
|
+
import { X as d, W as c } from "../HashChangeListener-CZjn9YZy.js";
|
|
6
6
|
import "../component/action/Hide.js";
|
|
7
7
|
import "../component/action/VisuallyHide.js";
|
|
8
|
-
import "../
|
|
8
|
+
import "../lodash-CYNxjS-I.js";
|
|
9
|
+
import "../VariablesDebug-DgS3E2aX.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
d as ActionDependant,
|
|
12
|
+
c as isValid
|
|
12
13
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { Y as
|
|
2
|
+
import { Y as J } from "../HashChangeListener-CZjn9YZy.js";
|
|
3
3
|
import "./ComponentCollector.js";
|
|
4
4
|
import "./EventDispatcherProvider.js";
|
|
5
5
|
import "./GlobalDataContextProvider.js";
|
|
6
|
+
import "../ParsingDebugDisplay-8f4yL4Jw.js";
|
|
6
7
|
import "./TemplateContext.js";
|
|
7
|
-
import "
|
|
8
|
+
import "./utility/alterData.js";
|
|
8
9
|
import "./utility/dataMappingSystem.js";
|
|
9
10
|
import "./utility/parseRjBuild.js";
|
|
10
11
|
import "./utility/stringToBoolean.js";
|
|
12
|
+
import "../lodash-CYNxjS-I.js";
|
|
11
13
|
import "react";
|
|
14
|
+
import "../VariablesDebug-DgS3E2aX.js";
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
J as ReactiveJsonRoot
|
|
14
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "./GlobalDataContext.js";
|
|
3
3
|
import "./TemplateContext.js";
|
|
4
|
-
import { Z as u, a8 as o, _ as i, $ as m, a0 as p, a1 as r, a2 as v } from "../HashChangeListener-
|
|
4
|
+
import { Z as u, a8 as o, _ as i, $ as m, a0 as p, a1 as r, a2 as v } from "../HashChangeListener-CZjn9YZy.js";
|
|
5
5
|
export {
|
|
6
6
|
u as dataLocationToPath,
|
|
7
7
|
o as default,
|
package/dist/engine/View.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a6 as e } from "../HashChangeListener-BaaJxyFq.js";
|
|
4
|
-
import "../component/element/special/PageControls.js";
|
|
5
3
|
import "./GlobalDataContext.js";
|
|
6
4
|
import "./TemplateContext.js";
|
|
5
|
+
import { a6 as x } from "../HashChangeListener-CZjn9YZy.js";
|
|
6
|
+
import "../lodash-CYNxjS-I.js";
|
|
7
|
+
import "../js-yaml-Bw0KO4XO.js";
|
|
8
|
+
import "./EventDispatcherContext.js";
|
|
9
|
+
import "../VariablesDebug-DgS3E2aX.js";
|
|
10
|
+
import "../component/element/special/PageControls.js";
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
x as View
|
|
9
13
|
};
|
package/dist/engine/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as t, Y as o, a6 as r, a3 as n, Z as i, _ as s, $ as p, a0 as l, a4 as m, a1 as x, W as f, a5 as v, a2 as d } from "../HashChangeListener-
|
|
1
|
+
import { X as t, Y as o, a6 as r, a3 as n, Z as i, _ as s, $ as p, a0 as l, a4 as m, a1 as x, W as f, a5 as v, a2 as d } from "../HashChangeListener-CZjn9YZy.js";
|
|
2
2
|
import { mergeComponentCollections as c } from "./ComponentCollector.js";
|
|
3
3
|
import { EventDispatcherContext as D } from "./EventDispatcherContext.js";
|
|
4
4
|
import { EventDispatcherProvider as P, addEventListener as T, removeEventListener as b } from "./EventDispatcherProvider.js";
|
|
@@ -7,7 +7,7 @@ import { GlobalDataContextProvider as h } from "./GlobalDataContextProvider.js";
|
|
|
7
7
|
import { PaginationContext as A } from "./PaginationContext.js";
|
|
8
8
|
import { PaginationProvider as B } from "./PaginationProvider.js";
|
|
9
9
|
import { TemplateContext as S } from "./TemplateContext.js";
|
|
10
|
-
import {
|
|
10
|
+
import { alterData as w } from "./utility/alterData.js";
|
|
11
11
|
import { applyDataMapping as F } from "./utility/dataMappingSystem.js";
|
|
12
12
|
import { parseRjBuild as M } from "./utility/parseRjBuild.js";
|
|
13
13
|
import { stringToBoolean as W } from "./utility/stringToBoolean.js";
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as n } from "../../lodash-CYNxjS-I.js";
|
|
2
|
+
const D = ({ requestContext: l, responseContext: f, responseBody: e, isRjBuild: t = !1, dataProcessors: a = {} }) => {
|
|
3
|
+
if (Object.keys(a).length === 0)
|
|
4
|
+
return e;
|
|
5
|
+
const o = n.cloneDeep(e), c = t ? o.data : o;
|
|
6
|
+
let r = n.cloneDeep(c);
|
|
7
|
+
for (const [p, s] of Object.entries(a))
|
|
8
|
+
if (typeof s.callback == "function")
|
|
9
|
+
try {
|
|
10
|
+
r = s.callback({
|
|
11
|
+
requestContext: l,
|
|
12
|
+
responseContext: f,
|
|
13
|
+
dataToProcess: r,
|
|
14
|
+
originalDataToProcess: c
|
|
15
|
+
});
|
|
16
|
+
} catch (i) {
|
|
17
|
+
console.error(`Error in dataProcessor "${p}":`, i);
|
|
18
|
+
}
|
|
19
|
+
return t ? (o.data = r, o) : r;
|
|
20
|
+
};
|
|
2
21
|
export {
|
|
3
|
-
|
|
22
|
+
D as alterData
|
|
4
23
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a3 as t, a4 as p, a5 as m } from "../../HashChangeListener-
|
|
1
|
+
import { alterData as e } from "./alterData.js";
|
|
2
|
+
import { a3 as t, a4 as p, a5 as m } from "../../HashChangeListener-CZjn9YZy.js";
|
|
3
3
|
import { applyDataMapping as n } from "./dataMappingSystem.js";
|
|
4
|
-
import { parseRjBuild as
|
|
4
|
+
import { parseRjBuild as s } from "./parseRjBuild.js";
|
|
5
5
|
import { stringToBoolean as x } from "./stringToBoolean.js";
|
|
6
6
|
export {
|
|
7
7
|
e as alterData,
|
|
@@ -9,6 +9,6 @@ export {
|
|
|
9
9
|
n as applyDataMapping,
|
|
10
10
|
p as formatString,
|
|
11
11
|
m as maybeFormatString,
|
|
12
|
-
|
|
12
|
+
s as parseRjBuild,
|
|
13
13
|
x as stringToBoolean
|
|
14
14
|
};
|