@ea-lab/reactive-json 1.3.0 → 2.0.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/CustomEventListener.js +4 -3
- package/dist/component/action/ReactOnEvent.js +7 -6
- package/dist/component/attributeTransformer/setAttributeValue.js +21 -20
- package/dist/component/attributeTransformer/toggleAttributeValue.js +16 -15
- package/dist/component/attributeTransformer/unsetAttributeValue.js +9 -8
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +75 -61
- package/dist/component/element/html/LabelFromValue.js +30 -18
- package/dist/component/element/index.js +28 -26
- package/dist/component/element/special/Count.js +1 -1
- package/dist/component/element/special/DataFilter.js +49 -40
- package/dist/component/element/special/DataSync.js +94 -0
- package/dist/component/element/special/ReactiveJsonSubroot.js +1 -1
- package/dist/component/element/special/index.js +15 -13
- package/dist/component/index.js +57 -55
- package/dist/component/reaction/fetchData.js +1 -1
- package/dist/component/reaction/index.js +1 -1
- package/dist/component/reaction/submitData.js +1 -1
- package/dist/component/reaction/utility/httpRequestCommon.js +119 -6
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/engine/DataStore.js +120 -0
- package/dist/engine/ReactiveJsonRoot.js +218 -277
- package/dist/engine/StoreContext.js +17 -0
- package/dist/engine/View.js +94 -58
- package/dist/engine/hook/useReactiveData.js +9 -0
- package/dist/engine/index.js +53 -45
- package/dist/engine/utility/formElementsCommon.js +36 -23
- package/dist/engine/utility/parseRjBuild.js +1 -1
- package/dist/{httpRequestCommon-BNA1zivP.js → index-BUPRVmV-.js} +599 -704
- package/dist/index-DJuOXIM5.js +25 -0
- package/dist/{js-yaml-Bw0KO4XO.js → js-yaml-CFDLc3Ha.js} +196 -193
- package/dist/main.js +156 -146
- package/package.json +2 -2
- package/dist/index-Ya6_R5yr.js +0 -23
package/dist/main.js
CHANGED
|
@@ -6,174 +6,184 @@ import { ReactOnEvent as l } from "./component/action/ReactOnEvent.js";
|
|
|
6
6
|
import { Redirect as s } from "./component/action/Redirect.js";
|
|
7
7
|
import { SetAttributeValue as u } from "./component/action/SetAttributeValue.js";
|
|
8
8
|
import { ToggleAttributeValue as F } from "./component/action/ToggleAttributeValue.js";
|
|
9
|
-
import { UnsetAttribute as
|
|
9
|
+
import { UnsetAttribute as v } from "./component/action/UnsetAttribute.js";
|
|
10
10
|
import { UnsetAttributeValue as b } from "./component/action/UnsetAttributeValue.js";
|
|
11
11
|
import { VisuallyHide as T } from "./component/action/VisuallyHide.js";
|
|
12
|
-
import { coreDataMappingComponents as
|
|
13
|
-
import { coreDataProcessorComponents as
|
|
12
|
+
import { coreDataMappingComponents as S } from "./component/dataMapping/index.js";
|
|
13
|
+
import { coreDataProcessorComponents as A } from "./component/dataProcessor/index.js";
|
|
14
14
|
import { coreElementComponents as P } from "./component/element/index.js";
|
|
15
15
|
import { coreHookComponents as L } from "./component/hook/index.js";
|
|
16
16
|
import { coreReactionComponents as M } from "./component/reaction/index.js";
|
|
17
17
|
import { ActionDependant as B, isValid as J } from "./engine/Actions.js";
|
|
18
18
|
import { mergeComponentCollections as w } from "./engine/ComponentCollector.js";
|
|
19
|
-
import {
|
|
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 {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
19
|
+
import { DataStore as z } from "./engine/DataStore.js";
|
|
20
|
+
import { EventDispatcherContext as G } from "./engine/EventDispatcherContext.js";
|
|
21
|
+
import { EventDispatcherProvider as O, addEventListener as W, removeEventListener as j } from "./engine/EventDispatcherProvider.js";
|
|
22
|
+
import { GlobalDataContext as K } from "./engine/GlobalDataContext.js";
|
|
23
|
+
import { GlobalDataContextProvider as X } from "./engine/GlobalDataContextProvider.js";
|
|
24
|
+
import { PaginationContext as Z } from "./engine/PaginationContext.js";
|
|
25
|
+
import { ReactiveJsonRoot as $ } from "./engine/ReactiveJsonRoot.js";
|
|
26
|
+
import { StoreContext as oe, StoreProvider as re, useStore as te } from "./engine/StoreContext.js";
|
|
27
|
+
import { TemplateContext as me } from "./engine/TemplateContext.js";
|
|
28
|
+
import { dataLocationToPath as xe, evaluateAttributes as fe, evaluateTemplateValue as ie, evaluateTemplateValueCollection as le, isTemplateValue as ne, useEvaluatedAttributes as se } from "./engine/TemplateSystem.js";
|
|
29
|
+
import { useReactiveData as ue } from "./engine/hook/useReactiveData.js";
|
|
30
|
+
import { alterData as Fe } from "./engine/utility/alterData.js";
|
|
31
|
+
import { analyzeDataOverrideReferences as ve } from "./engine/utility/analyzeDataOverrideReferences.js";
|
|
32
|
+
import { applyDataMapping as be } from "./engine/utility/dataMappingSystem.js";
|
|
33
|
+
import { replaceEventPlaceholders as Te } from "./engine/utility/eventPlaceholderSystem.js";
|
|
34
|
+
import { formatString as Se, maybeFormatString as he } from "./engine/utility/formatString.js";
|
|
35
|
+
import { propsDataLocationToPathAndValue as Ee } from "./engine/utility/formElementsCommon.js";
|
|
36
|
+
import { parseRjBuild as Ve } from "./engine/utility/parseRjBuild.js";
|
|
37
|
+
import { normalizeAttributeNameForReactJsx as He, normalizeAttributesForReactJsx as Me } from "./engine/utility/reactJsxHelpers.js";
|
|
38
|
+
import { stringToBoolean as Be } from "./engine/utility/stringToBoolean.js";
|
|
39
|
+
import { View as ke } from "./engine/View.js";
|
|
40
|
+
import { simpleMapping as Ne } from "./component/dataMapping/simpleMapping.js";
|
|
41
|
+
import { VariablesDebug as Ue } from "./component/element/debug/VariablesDebug/VariablesDebug.js";
|
|
42
|
+
import { Input as Ie } from "./component/element/form/Input.js";
|
|
43
|
+
import { CheckBoxField as We } from "./component/element/form/CheckBoxField.js";
|
|
44
|
+
import { ColorField as qe } from "./component/element/form/ColorField.js";
|
|
45
|
+
import { DateField as Qe } from "./component/element/form/DateField.js";
|
|
46
|
+
import { DateTimeField as Ye } from "./component/element/form/DateTimeField.js";
|
|
47
|
+
import { EmailField as _e } from "./component/element/form/EmailField.js";
|
|
48
|
+
import { FileField as eo } from "./component/element/form/FileField.js";
|
|
49
|
+
import { HiddenField as ro } from "./component/element/form/HiddenField.js";
|
|
50
|
+
import { MonthField as ao } from "./component/element/form/MonthField.js";
|
|
51
|
+
import { NumberField as po } from "./component/element/form/NumberField.js";
|
|
52
|
+
import { PasswordField as fo } from "./component/element/form/PasswordField.js";
|
|
53
|
+
import { RangeField as lo } from "./component/element/form/RangeField.js";
|
|
54
|
+
import { SearchField as so } from "./component/element/form/SearchField.js";
|
|
55
|
+
import { SelectField as co } from "./component/element/form/SelectField.js";
|
|
56
|
+
import { TelField as Do } from "./component/element/form/TelField.js";
|
|
57
|
+
import { TextAreaField as Co } from "./component/element/form/TextAreaField.js";
|
|
58
|
+
import { TextField as go } from "./component/element/form/TextField.js";
|
|
59
|
+
import { TimeField as Ro } from "./component/element/form/TimeField.js";
|
|
60
|
+
import { UrlField as ho } from "./component/element/form/UrlField.js";
|
|
61
|
+
import { WeekField as Eo } from "./component/element/form/WeekField.js";
|
|
62
|
+
import { FolderSortableTree as Vo } from "./component/element/html/FolderSortableTree.js";
|
|
63
|
+
import { FormatNumeral as Ho } from "./component/element/html/FormatNumeral.js";
|
|
64
|
+
import { Html as yo } from "./component/element/html/Html.js";
|
|
65
|
+
import { LabelFromValue as Jo } from "./component/element/html/LabelFromValue.js";
|
|
66
|
+
import { PreformattedMarkup as wo } from "./component/element/html/PreformattedMarkup.js";
|
|
67
|
+
import { SortableTreeItemCollapseButton as zo } from "./component/element/html/SortableTreeItemCollapseButton.js";
|
|
68
|
+
import { Count as Go } from "./component/element/special/Count.js";
|
|
69
|
+
import { DataFilter as Oo } from "./component/element/special/DataFilter.js";
|
|
70
|
+
import { DataSync as jo } from "./component/element/special/DataSync.js";
|
|
71
|
+
import { DelayedActions as Ko, getReactionFunctionsToExecute as Qo } from "./component/element/special/DelayedActions.js";
|
|
72
|
+
import { PageControls as Yo } from "./component/element/special/PageControls.js";
|
|
73
|
+
import { Phantom as _o } from "./component/element/special/Phantom.js";
|
|
74
|
+
import { ReactiveJsonBasicComponentWrapper as er } from "./component/element/special/ReactiveJsonBasicComponentWrapper.js";
|
|
75
|
+
import { ReactiveJsonSubroot as rr } from "./component/element/special/ReactiveJsonSubroot.js";
|
|
76
|
+
import { Switch as ar } from "./component/element/special/Switch.js";
|
|
77
|
+
import { addData as pr } from "./component/reaction/addData.js";
|
|
78
|
+
import { fetchData as fr } from "./component/reaction/fetchData.js";
|
|
79
|
+
import { executeHttpRequest as lr } from "./component/reaction/utility/httpRequestCommon.js";
|
|
80
|
+
import { moveData as sr } from "./component/reaction/moveData.js";
|
|
81
|
+
import { postMessage as ur } from "./component/reaction/postMessage.js";
|
|
82
|
+
import { redirectNow as Fr } from "./component/reaction/redirectNow.js";
|
|
83
|
+
import { removeData as vr } from "./component/reaction/removeData.js";
|
|
84
|
+
import { setClipboardData as br } from "./component/reaction/setClipboardData.js";
|
|
85
|
+
import { setData as Tr } from "./component/reaction/setData.js";
|
|
86
|
+
import { submitData as Sr } from "./component/reaction/submitData.js";
|
|
87
|
+
import { triggerEvent as Ar } from "./component/reaction/triggerEvent.js";
|
|
84
88
|
export {
|
|
85
89
|
B as ActionDependant,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
We as CheckBoxField,
|
|
91
|
+
qe as ColorField,
|
|
92
|
+
Go as Count,
|
|
89
93
|
r as CustomEventListener,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
Oo as DataFilter,
|
|
95
|
+
z as DataStore,
|
|
96
|
+
jo as DataSync,
|
|
97
|
+
Qe as DateField,
|
|
98
|
+
Ye as DateTimeField,
|
|
99
|
+
Ko as DelayedActions,
|
|
100
|
+
_e as EmailField,
|
|
101
|
+
G as EventDispatcherContext,
|
|
102
|
+
O as EventDispatcherProvider,
|
|
103
|
+
eo as FileField,
|
|
104
|
+
Vo as FolderSortableTree,
|
|
105
|
+
Ho as FormatNumeral,
|
|
106
|
+
K as GlobalDataContext,
|
|
107
|
+
X as GlobalDataContextProvider,
|
|
102
108
|
a as HashChangeListener,
|
|
103
|
-
|
|
109
|
+
ro as HiddenField,
|
|
104
110
|
p as Hide,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
yo as Html,
|
|
112
|
+
Ie as Input,
|
|
113
|
+
Jo as LabelFromValue,
|
|
108
114
|
f as MessageListener,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
ao as MonthField,
|
|
116
|
+
po as NumberField,
|
|
117
|
+
Yo as PageControls,
|
|
118
|
+
Z as PaginationContext,
|
|
119
|
+
fo as PasswordField,
|
|
120
|
+
_o as Phantom,
|
|
121
|
+
wo as PreformattedMarkup,
|
|
122
|
+
lo as RangeField,
|
|
117
123
|
l as ReactOnEvent,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
er as ReactiveJsonBasicComponentWrapper,
|
|
125
|
+
$ as ReactiveJsonRoot,
|
|
126
|
+
rr as ReactiveJsonSubroot,
|
|
121
127
|
s as Redirect,
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
so as SearchField,
|
|
129
|
+
co as SelectField,
|
|
124
130
|
u as SetAttributeValue,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
zo as SortableTreeItemCollapseButton,
|
|
132
|
+
oe as StoreContext,
|
|
133
|
+
re as StoreProvider,
|
|
134
|
+
ar as Switch,
|
|
135
|
+
Do as TelField,
|
|
136
|
+
me as TemplateContext,
|
|
137
|
+
Co as TextAreaField,
|
|
138
|
+
go as TextField,
|
|
139
|
+
Ro as TimeField,
|
|
132
140
|
F as ToggleAttributeValue,
|
|
133
|
-
|
|
141
|
+
v as UnsetAttribute,
|
|
134
142
|
b as UnsetAttributeValue,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
143
|
+
ho as UrlField,
|
|
144
|
+
Ue as VariablesDebug,
|
|
145
|
+
ke as View,
|
|
138
146
|
T as VisuallyHide,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
Eo as WeekField,
|
|
148
|
+
pr as addData,
|
|
149
|
+
W as addEventListener,
|
|
150
|
+
Fe as alterData,
|
|
151
|
+
ve as analyzeDataOverrideReferences,
|
|
152
|
+
be as applyDataMapping,
|
|
153
|
+
S as coreDataMappingComponents,
|
|
154
|
+
A as coreDataProcessorComponents,
|
|
147
155
|
P as coreElementComponents,
|
|
148
156
|
L as coreHookComponents,
|
|
149
157
|
M as coreReactionComponents,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
xe as dataLocationToPath,
|
|
159
|
+
fe as evaluateAttributes,
|
|
160
|
+
ie as evaluateTemplateValue,
|
|
161
|
+
le as evaluateTemplateValueCollection,
|
|
162
|
+
lr as executeHttpRequest,
|
|
163
|
+
fr as fetchData,
|
|
164
|
+
Se as formatString,
|
|
165
|
+
Qo as getReactionFunctionsToExecute,
|
|
166
|
+
ne as isTemplateValue,
|
|
159
167
|
J as isValid,
|
|
160
|
-
|
|
168
|
+
he as maybeFormatString,
|
|
161
169
|
w as mergeComponentCollections,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
170
|
+
sr as moveData,
|
|
171
|
+
He as normalizeAttributeNameForReactJsx,
|
|
172
|
+
Me as normalizeAttributesForReactJsx,
|
|
173
|
+
Ve as parseRjBuild,
|
|
174
|
+
ur as postMessage,
|
|
175
|
+
Ee as propsDataLocationToPathAndValue,
|
|
176
|
+
Fr as redirectNow,
|
|
177
|
+
vr as removeData,
|
|
178
|
+
j as removeEventListener,
|
|
179
|
+
Te as replaceEventPlaceholders,
|
|
180
|
+
br as setClipboardData,
|
|
181
|
+
Tr as setData,
|
|
182
|
+
Ne as simpleMapping,
|
|
183
|
+
Be as stringToBoolean,
|
|
184
|
+
Sr as submitData,
|
|
185
|
+
Ar as triggerEvent,
|
|
186
|
+
se as useEvaluatedAttributes,
|
|
187
|
+
ue as useReactiveData,
|
|
188
|
+
te as useStore
|
|
179
189
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ea-lab/reactive-json",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"babel-jest": "^30.2.0",
|
|
65
65
|
"clsx": "^2.1.1",
|
|
66
66
|
"dnd-kit-sortable-tree": "^0.1.73",
|
|
67
|
-
"esbuild-jest": "^0.
|
|
67
|
+
"esbuild-jest": "^0.4.0",
|
|
68
68
|
"eslint": "^9.25.0",
|
|
69
69
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
70
70
|
"eslint-plugin-react-refresh": "^0.4.19",
|
package/dist/index-Ya6_R5yr.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
};
|