@ea-lab/reactive-json 1.1.2 → 1.2.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/component/action/ReactOnEvent.js +38 -18
- package/dist/component/element/form/CheckBoxField.js +84 -0
- package/dist/component/element/form/SelectField.js +64 -0
- package/dist/component/element/form/TextAreaField.js +59 -0
- package/dist/component/element/form/index.js +36 -30
- package/dist/component/element/index.js +72 -66
- package/dist/component/index.js +111 -105
- package/dist/component/reaction/fetchData.js +1 -1
- package/dist/component/reaction/index.js +1 -1
- package/dist/component/reaction/submitData.js +12 -13
- package/dist/component/reaction/utility/httpRequestCommon.js +1 -1
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/engine/ReactiveJsonRoot.js +1 -1
- package/dist/{httpRequestCommon-COBq6B-n.js → httpRequestCommon-BNA1zivP.js} +491 -489
- package/dist/index-CpGvV5AF.js +46 -0
- package/dist/main.js +108 -102
- package/package.json +1 -1
- package/dist/index-2EvkwDZS.js +0 -40
package/dist/component/index.js
CHANGED
|
@@ -4,120 +4,126 @@ import { Hide as x } from "./action/Hide.js";
|
|
|
4
4
|
import { MessageListener as a } from "./action/MessageListener.js";
|
|
5
5
|
import { ReactOnEvent as l } from "./action/ReactOnEvent.js";
|
|
6
6
|
import { Redirect as s } from "./action/Redirect.js";
|
|
7
|
-
import { SetAttributeValue as
|
|
8
|
-
import { ToggleAttributeValue as
|
|
9
|
-
import { UnsetAttribute as
|
|
10
|
-
import { UnsetAttributeValue as
|
|
11
|
-
import { VisuallyHide as
|
|
7
|
+
import { SetAttributeValue as F } from "./action/SetAttributeValue.js";
|
|
8
|
+
import { ToggleAttributeValue as u } from "./action/ToggleAttributeValue.js";
|
|
9
|
+
import { UnsetAttribute as D } from "./action/UnsetAttribute.js";
|
|
10
|
+
import { UnsetAttributeValue as g } from "./action/UnsetAttributeValue.js";
|
|
11
|
+
import { VisuallyHide as h } from "./action/VisuallyHide.js";
|
|
12
12
|
import { coreDataMappingComponents as v } from "./dataMapping/index.js";
|
|
13
|
-
import { coreDataProcessorComponents as
|
|
14
|
-
import { coreElementComponents as
|
|
15
|
-
import { coreHookComponents as
|
|
16
|
-
import { coreReactionComponents as
|
|
13
|
+
import { coreDataProcessorComponents as S } from "./dataProcessor/index.js";
|
|
14
|
+
import { coreElementComponents as E } from "./element/index.js";
|
|
15
|
+
import { coreHookComponents as V } from "./hook/index.js";
|
|
16
|
+
import { coreReactionComponents as k } from "./reaction/index.js";
|
|
17
17
|
import { simpleMapping as w } from "./dataMapping/simpleMapping.js";
|
|
18
|
-
import { VariablesDebug as
|
|
19
|
-
import { Input as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
18
|
+
import { VariablesDebug as N } from "./element/debug/VariablesDebug/VariablesDebug.js";
|
|
19
|
+
import { Input as y } from "./element/form/Input.js";
|
|
20
|
+
import { CheckBoxField as J } from "./element/form/CheckBoxField.js";
|
|
21
|
+
import { ColorField as q } from "./element/form/ColorField.js";
|
|
22
|
+
import { DateField as j } from "./element/form/DateField.js";
|
|
23
|
+
import { DateTimeField as G } from "./element/form/DateTimeField.js";
|
|
24
|
+
import { EmailField as Q } from "./element/form/EmailField.js";
|
|
25
|
+
import { FileField as Y } from "./element/form/FileField.js";
|
|
26
|
+
import { HiddenField as _ } from "./element/form/HiddenField.js";
|
|
27
|
+
import { MonthField as ee } from "./element/form/MonthField.js";
|
|
28
|
+
import { NumberField as re } from "./element/form/NumberField.js";
|
|
29
|
+
import { PasswordField as me } from "./element/form/PasswordField.js";
|
|
30
|
+
import { RangeField as xe } from "./element/form/RangeField.js";
|
|
31
|
+
import { SearchField as ae } from "./element/form/SearchField.js";
|
|
32
|
+
import { SelectField as le } from "./element/form/SelectField.js";
|
|
33
|
+
import { TelField as se } from "./element/form/TelField.js";
|
|
34
|
+
import { TextAreaField as Fe } from "./element/form/TextAreaField.js";
|
|
35
|
+
import { TextField as ue } from "./element/form/TextField.js";
|
|
36
|
+
import { TimeField as De } from "./element/form/TimeField.js";
|
|
37
|
+
import { UrlField as ge } from "./element/form/UrlField.js";
|
|
38
|
+
import { WeekField as he } from "./element/form/WeekField.js";
|
|
39
|
+
import { FolderSortableTree as ve } from "./element/html/FolderSortableTree.js";
|
|
40
|
+
import { FormatNumeral as Se } from "./element/html/FormatNumeral.js";
|
|
41
|
+
import { Html as Ee } from "./element/html/Html.js";
|
|
42
|
+
import { LabelFromValue as Ve } from "./element/html/LabelFromValue.js";
|
|
43
|
+
import { PreformattedMarkup as ke } from "./element/html/PreformattedMarkup.js";
|
|
44
|
+
import { SortableTreeItemCollapseButton as we } from "./element/html/SortableTreeItemCollapseButton.js";
|
|
45
|
+
import { Count as Ne } from "./element/special/Count.js";
|
|
46
|
+
import { DataFilter as ye } from "./element/special/DataFilter.js";
|
|
47
|
+
import { DelayedActions as Je, getReactionFunctionsToExecute as We } from "./element/special/DelayedActions.js";
|
|
48
|
+
import { PageControls as Oe } from "./element/special/PageControls.js";
|
|
49
|
+
import { Phantom as ze } from "./element/special/Phantom.js";
|
|
50
|
+
import { ReactiveJsonBasicComponentWrapper as Ke } from "./element/special/ReactiveJsonBasicComponentWrapper.js";
|
|
51
|
+
import { ReactiveJsonSubroot as Xe } from "./element/special/ReactiveJsonSubroot.js";
|
|
52
|
+
import { Switch as Ze } from "./element/special/Switch.js";
|
|
53
|
+
import { addData as $e } from "./reaction/addData.js";
|
|
54
|
+
import { fetchData as oo } from "./reaction/fetchData.js";
|
|
55
|
+
import { e as to } from "../httpRequestCommon-BNA1zivP.js";
|
|
56
|
+
import { moveData as po } from "./reaction/moveData.js";
|
|
57
|
+
import { postMessage as fo } from "./reaction/postMessage.js";
|
|
58
|
+
import { redirectNow as io } from "./reaction/redirectNow.js";
|
|
59
|
+
import { removeData as no } from "./reaction/removeData.js";
|
|
60
|
+
import { setClipboardData as Fo } from "./reaction/setClipboardData.js";
|
|
61
|
+
import { setData as uo } from "./reaction/setData.js";
|
|
62
|
+
import { submitData as Do } from "./reaction/submitData.js";
|
|
63
|
+
import { triggerEvent as go } from "./reaction/triggerEvent.js";
|
|
61
64
|
export {
|
|
62
|
-
J as
|
|
63
|
-
|
|
65
|
+
J as CheckBoxField,
|
|
66
|
+
q as ColorField,
|
|
67
|
+
Ne as Count,
|
|
64
68
|
r as CustomEventListener,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
ye as DataFilter,
|
|
70
|
+
j as DateField,
|
|
71
|
+
G as DateTimeField,
|
|
72
|
+
Je as DelayedActions,
|
|
73
|
+
Q as EmailField,
|
|
74
|
+
Y as FileField,
|
|
75
|
+
ve as FolderSortableTree,
|
|
76
|
+
Se as FormatNumeral,
|
|
73
77
|
m as HashChangeListener,
|
|
74
|
-
|
|
78
|
+
_ as HiddenField,
|
|
75
79
|
x as Hide,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
Ee as Html,
|
|
81
|
+
y as Input,
|
|
82
|
+
Ve as LabelFromValue,
|
|
79
83
|
a as MessageListener,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
ee as MonthField,
|
|
85
|
+
re as NumberField,
|
|
86
|
+
Oe as PageControls,
|
|
87
|
+
me as PasswordField,
|
|
88
|
+
ze as Phantom,
|
|
89
|
+
ke as PreformattedMarkup,
|
|
90
|
+
xe as RangeField,
|
|
87
91
|
l as ReactOnEvent,
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
Ke as ReactiveJsonBasicComponentWrapper,
|
|
93
|
+
Xe as ReactiveJsonSubroot,
|
|
90
94
|
s as Redirect,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
95
|
+
ae as SearchField,
|
|
96
|
+
le as SelectField,
|
|
97
|
+
F as SetAttributeValue,
|
|
98
|
+
we as SortableTreeItemCollapseButton,
|
|
99
|
+
Ze as Switch,
|
|
100
|
+
se as TelField,
|
|
101
|
+
Fe as TextAreaField,
|
|
102
|
+
ue as TextField,
|
|
103
|
+
De as TimeField,
|
|
104
|
+
u as ToggleAttributeValue,
|
|
105
|
+
D as UnsetAttribute,
|
|
106
|
+
g as UnsetAttributeValue,
|
|
107
|
+
ge as UrlField,
|
|
108
|
+
N as VariablesDebug,
|
|
109
|
+
h as VisuallyHide,
|
|
110
|
+
he as WeekField,
|
|
111
|
+
$e as addData,
|
|
106
112
|
v as coreDataMappingComponents,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
S as coreDataProcessorComponents,
|
|
114
|
+
E as coreElementComponents,
|
|
115
|
+
V as coreHookComponents,
|
|
116
|
+
k as coreReactionComponents,
|
|
117
|
+
to as executeHttpRequest,
|
|
118
|
+
oo as fetchData,
|
|
119
|
+
We as getReactionFunctionsToExecute,
|
|
120
|
+
po as moveData,
|
|
121
|
+
fo as postMessage,
|
|
122
|
+
io as redirectNow,
|
|
123
|
+
no as removeData,
|
|
124
|
+
Fo as setClipboardData,
|
|
125
|
+
uo as setData,
|
|
120
126
|
w as simpleMapping,
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
Do as submitData,
|
|
128
|
+
go as triggerEvent
|
|
123
129
|
};
|
|
@@ -8,7 +8,7 @@ import { setClipboardData as p } from "./setClipboardData.js";
|
|
|
8
8
|
import { setData as i } from "./setData.js";
|
|
9
9
|
import { submitData as f } from "./submitData.js";
|
|
10
10
|
import { triggerEvent as s } from "./triggerEvent.js";
|
|
11
|
-
import { e as q } from "../../httpRequestCommon-
|
|
11
|
+
import { e as q } from "../../httpRequestCommon-BNA1zivP.js";
|
|
12
12
|
const R = {
|
|
13
13
|
addData: t,
|
|
14
14
|
fetchData: o,
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import { evaluateTemplateValue as
|
|
1
|
+
import { e as D } from "../../httpRequestCommon-BNA1zivP.js";
|
|
2
|
+
import { evaluateTemplateValue as c } from "../../engine/TemplateSystem.js";
|
|
3
3
|
const x = (t) => {
|
|
4
|
-
var m,
|
|
5
|
-
const { globalDataContext:
|
|
4
|
+
var m, r;
|
|
5
|
+
const { globalDataContext: l, templateContext: i } = t, o = l.getRootContext ? l.getRootContext() : l;
|
|
6
6
|
let e = {};
|
|
7
|
-
(m = t == null ? void 0 : t.args) != null && m.hasOwnProperty("data") ? (e = t.args.data, e = ((a,
|
|
7
|
+
(m = t == null ? void 0 : t.args) != null && m.hasOwnProperty("data") ? (e = t.args.data, e = ((a, n) => {
|
|
8
8
|
if (Array.isArray(a))
|
|
9
|
-
return a.map(
|
|
9
|
+
return a.map(n);
|
|
10
10
|
if (typeof a == "object" && a !== null) {
|
|
11
|
-
const
|
|
12
|
-
return Object.fromEntries(
|
|
11
|
+
const s = Object.entries(a).map(([_, d]) => [_, n(d)]);
|
|
12
|
+
return Object.fromEntries(s);
|
|
13
13
|
} else
|
|
14
|
-
return
|
|
15
|
-
})(e, (a) =>
|
|
14
|
+
return n(a);
|
|
15
|
+
})(e, (a) => c({ valueToEvaluate: a, globalDataContext: o, templateContext: i })), o.templateData.__state !== void 0 && (e.__state = o.templateData.__state)) : (e.data = o.templateData, o.templateData.__state !== void 0 && (e.data.__state = o.templateData.__state)), D(
|
|
16
16
|
t,
|
|
17
17
|
{
|
|
18
|
-
method: ((
|
|
19
|
-
data: e
|
|
20
|
-
submitSilently: (s = t == null ? void 0 : t.args) == null ? void 0 : s.submitSilently
|
|
18
|
+
method: ((r = t == null ? void 0 : t.args) == null ? void 0 : r.httpMethod) ?? "post",
|
|
19
|
+
data: e
|
|
21
20
|
},
|
|
22
21
|
"submitData"
|
|
23
22
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as i } from "../../../httpRequestCommon-
|
|
1
|
+
import { e as i } from "../../../httpRequestCommon-BNA1zivP.js";
|
|
2
2
|
import "../../../engine/TemplateSystem.js";
|
|
3
3
|
import "../../../engine/utility/alterData.js";
|
|
4
4
|
import "../../../engine/utility/dataMappingSystem.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as C, jsxs as L, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
-
import { a as _ } from "../httpRequestCommon-
|
|
2
|
+
import { a as _ } from "../httpRequestCommon-BNA1zivP.js";
|
|
3
3
|
import { l as ut } from "../lodash-CYNxjS-I.js";
|
|
4
4
|
import { useReducer as dt, useState as w, useRef as ft, useEffect as q } from "react";
|
|
5
5
|
import { r as mt } from "../dnd-kit-sortable-tree.esm-Cz1RJyIg.js";
|