@ea-lab/reactive-json 1.0.1 → 1.1.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.
- package/dist/component/action/CustomEventListener.js +33 -0
- package/dist/component/action/ReactOnEvent.js +37 -57
- package/dist/component/action/index.js +22 -20
- package/dist/component/attributeTransformer/setAttributeValue.js +6 -7
- package/dist/component/attributeTransformer/toggleAttributeValue.js +14 -15
- package/dist/component/attributeTransformer/unsetAttributeValue.js +7 -8
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +15 -16
- package/dist/component/index.js +121 -119
- 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 +1 -1
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/coreComponentsPlugin.js +1 -1
- package/dist/engine/Actions.js +93 -74
- package/dist/engine/ReactiveJsonRoot.js +25 -24
- package/dist/engine/index.js +23 -21
- package/dist/engine/utility/eventPlaceholderSystem.js +42 -0
- package/dist/engine/utility/index.js +16 -14
- package/dist/engine/utility/reactEventProps.js +82 -0
- package/dist/{httpRequestCommon-DUo2Oxgl.js → httpRequestCommon-vfSMynsl.js} +339 -333
- package/dist/index-BQyEEFVW.js +50 -0
- package/dist/main.js +167 -163
- package/package.json +1 -1
- package/dist/assets/reset.css +0 -4
- package/dist/index-BA09SSaJ.js +0 -26
package/dist/component/index.js
CHANGED
|
@@ -1,121 +1,123 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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 {
|
|
1
|
+
import { CustomEventListener as r } from "./action/CustomEventListener.js";
|
|
2
|
+
import { HashChangeListener as m } from "./action/HashChangeListener.js";
|
|
3
|
+
import { Hide as x } from "./action/Hide.js";
|
|
4
|
+
import { MessageListener as a } from "./action/MessageListener.js";
|
|
5
|
+
import { ReactOnEvent as l } from "./action/ReactOnEvent.js";
|
|
6
|
+
import { Redirect as s } from "./action/Redirect.js";
|
|
7
|
+
import { SetAttributeValue as u } from "./action/SetAttributeValue.js";
|
|
8
|
+
import { ToggleAttributeValue as c } from "./action/ToggleAttributeValue.js";
|
|
9
|
+
import { UnsetAttribute as b } from "./action/UnsetAttribute.js";
|
|
10
|
+
import { UnsetAttributeValue as C } from "./action/UnsetAttributeValue.js";
|
|
11
|
+
import { VisuallyHide as T } from "./action/VisuallyHide.js";
|
|
12
|
+
import { coreDataMappingComponents as v } from "./dataMapping/index.js";
|
|
13
|
+
import { coreDataProcessorComponents as E } from "./dataProcessor/index.js";
|
|
14
|
+
import { coreElementComponents as S } from "./element/index.js";
|
|
15
|
+
import { coreHookComponents as A } from "./hook/index.js";
|
|
16
|
+
import { coreReactionComponents as L } from "./reaction/index.js";
|
|
17
|
+
import { simpleMapping as w } from "./dataMapping/simpleMapping.js";
|
|
18
|
+
import { VariablesDebug as U } from "./element/debug/VariablesDebug/VariablesDebug.js";
|
|
19
|
+
import { Input as B } from "./element/form/Input.js";
|
|
20
|
+
import { ColorField as J } from "./element/form/ColorField.js";
|
|
21
|
+
import { DateField as q } from "./element/form/DateField.js";
|
|
22
|
+
import { DateTimeField as j } from "./element/form/DateTimeField.js";
|
|
23
|
+
import { EmailField as G } from "./element/form/EmailField.js";
|
|
24
|
+
import { FileField as Q } from "./element/form/FileField.js";
|
|
25
|
+
import { HiddenField as Y } from "./element/form/HiddenField.js";
|
|
26
|
+
import { MonthField as _ } from "./element/form/MonthField.js";
|
|
27
|
+
import { NumberField as ee } from "./element/form/NumberField.js";
|
|
28
|
+
import { PasswordField as re } from "./element/form/PasswordField.js";
|
|
29
|
+
import { RangeField as me } from "./element/form/RangeField.js";
|
|
30
|
+
import { SearchField as xe } from "./element/form/SearchField.js";
|
|
31
|
+
import { TelField as ae } from "./element/form/TelField.js";
|
|
32
|
+
import { TextField as le } from "./element/form/TextField.js";
|
|
33
|
+
import { TimeField as se } from "./element/form/TimeField.js";
|
|
34
|
+
import { UrlField as ue } from "./element/form/UrlField.js";
|
|
35
|
+
import { WeekField as ce } from "./element/form/WeekField.js";
|
|
36
|
+
import { FolderSortableTree as be } from "./element/html/FolderSortableTree.js";
|
|
37
|
+
import { FormatNumeral as Ce } from "./element/html/FormatNumeral.js";
|
|
38
|
+
import { Html as Te } from "./element/html/Html.js";
|
|
39
|
+
import { LabelFromValue as ve } from "./element/html/LabelFromValue.js";
|
|
40
|
+
import { PreformattedMarkup as Ee } from "./element/html/PreformattedMarkup.js";
|
|
41
|
+
import { SortableTreeItemCollapseButton as Se } from "./element/html/SortableTreeItemCollapseButton.js";
|
|
42
|
+
import { Count as Ae } from "./element/special/Count.js";
|
|
43
|
+
import { DataFilter as Le } from "./element/special/DataFilter.js";
|
|
44
|
+
import { DelayedActions as we, getReactionFunctionsToExecute as Ne } from "./element/special/DelayedActions.js";
|
|
45
|
+
import { PageControls as ye } from "./element/special/PageControls.js";
|
|
46
|
+
import { Phantom as Ie } from "./element/special/Phantom.js";
|
|
47
|
+
import { ReactiveJsonBasicComponentWrapper as We } from "./element/special/ReactiveJsonBasicComponentWrapper.js";
|
|
48
|
+
import { ReactiveJsonSubroot as Oe } from "./element/special/ReactiveJsonSubroot.js";
|
|
49
|
+
import { Switch as ze } from "./element/special/Switch.js";
|
|
50
|
+
import { addData as Ke } from "./reaction/addData.js";
|
|
51
|
+
import { fetchData as Xe } from "./reaction/fetchData.js";
|
|
52
|
+
import { e as Ze } from "../httpRequestCommon-vfSMynsl.js";
|
|
53
|
+
import { moveData as $e } from "./reaction/moveData.js";
|
|
54
|
+
import { postMessage as oo } from "./reaction/postMessage.js";
|
|
55
|
+
import { redirectNow as to } from "./reaction/redirectNow.js";
|
|
56
|
+
import { removeData as po } from "./reaction/removeData.js";
|
|
57
|
+
import { setClipboardData as fo } from "./reaction/setClipboardData.js";
|
|
58
|
+
import { setData as io } from "./reaction/setData.js";
|
|
59
|
+
import { submitData as no } from "./reaction/submitData.js";
|
|
60
|
+
import { triggerEvent as uo } from "./reaction/triggerEvent.js";
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
q as
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
G as
|
|
69
|
-
|
|
70
|
-
be as
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
_ as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
We as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
ae as
|
|
95
|
-
le as
|
|
96
|
-
|
|
97
|
-
c as
|
|
98
|
-
b as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
$e as
|
|
114
|
-
oo as
|
|
115
|
-
to as
|
|
116
|
-
po as
|
|
117
|
-
fo as
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
no as
|
|
62
|
+
J as ColorField,
|
|
63
|
+
Ae as Count,
|
|
64
|
+
r as CustomEventListener,
|
|
65
|
+
Le as DataFilter,
|
|
66
|
+
q as DateField,
|
|
67
|
+
j as DateTimeField,
|
|
68
|
+
we as DelayedActions,
|
|
69
|
+
G as EmailField,
|
|
70
|
+
Q as FileField,
|
|
71
|
+
be as FolderSortableTree,
|
|
72
|
+
Ce as FormatNumeral,
|
|
73
|
+
m as HashChangeListener,
|
|
74
|
+
Y as HiddenField,
|
|
75
|
+
x as Hide,
|
|
76
|
+
Te as Html,
|
|
77
|
+
B as Input,
|
|
78
|
+
ve as LabelFromValue,
|
|
79
|
+
a as MessageListener,
|
|
80
|
+
_ as MonthField,
|
|
81
|
+
ee as NumberField,
|
|
82
|
+
ye as PageControls,
|
|
83
|
+
re as PasswordField,
|
|
84
|
+
Ie as Phantom,
|
|
85
|
+
Ee as PreformattedMarkup,
|
|
86
|
+
me as RangeField,
|
|
87
|
+
l as ReactOnEvent,
|
|
88
|
+
We as ReactiveJsonBasicComponentWrapper,
|
|
89
|
+
Oe as ReactiveJsonSubroot,
|
|
90
|
+
s as Redirect,
|
|
91
|
+
xe as SearchField,
|
|
92
|
+
u as SetAttributeValue,
|
|
93
|
+
Se as SortableTreeItemCollapseButton,
|
|
94
|
+
ze as Switch,
|
|
95
|
+
ae as TelField,
|
|
96
|
+
le as TextField,
|
|
97
|
+
se as TimeField,
|
|
98
|
+
c as ToggleAttributeValue,
|
|
99
|
+
b as UnsetAttribute,
|
|
100
|
+
C as UnsetAttributeValue,
|
|
101
|
+
ue as UrlField,
|
|
102
|
+
U as VariablesDebug,
|
|
103
|
+
T as VisuallyHide,
|
|
104
|
+
ce as WeekField,
|
|
105
|
+
Ke as addData,
|
|
106
|
+
v as coreDataMappingComponents,
|
|
107
|
+
E as coreDataProcessorComponents,
|
|
108
|
+
S as coreElementComponents,
|
|
109
|
+
A as coreHookComponents,
|
|
110
|
+
L as coreReactionComponents,
|
|
111
|
+
Ze as executeHttpRequest,
|
|
112
|
+
Xe as fetchData,
|
|
113
|
+
Ne as getReactionFunctionsToExecute,
|
|
114
|
+
$e as moveData,
|
|
115
|
+
oo as postMessage,
|
|
116
|
+
to as redirectNow,
|
|
117
|
+
po as removeData,
|
|
118
|
+
fo as setClipboardData,
|
|
119
|
+
io as setData,
|
|
120
|
+
w as simpleMapping,
|
|
121
|
+
no as submitData,
|
|
122
|
+
uo as triggerEvent
|
|
121
123
|
};
|
|
@@ -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-vfSMynsl.js";
|
|
12
12
|
const R = {
|
|
13
13
|
addData: t,
|
|
14
14
|
fetchData: o,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as i } from "../../../httpRequestCommon-
|
|
1
|
+
import { e as i } from "../../../httpRequestCommon-vfSMynsl.js";
|
|
2
2
|
import "../../../engine/TemplateSystem.js";
|
|
3
3
|
import "../../../engine/utility/alterData.js";
|
|
4
4
|
import "../../../engine/utility/dataMappingSystem.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-BQyEEFVW.js";
|
|
2
2
|
import { coreAttributeTransformerComponents as r } from "./component/attributeTransformer/index.js";
|
|
3
3
|
import { coreDataMappingComponents as t } from "./component/dataMapping/index.js";
|
|
4
4
|
import { coreDataProcessorComponents as e } from "./component/dataProcessor/index.js";
|
package/dist/engine/Actions.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
-
import { J as
|
|
3
|
-
import { l as
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { GlobalDataContext as
|
|
2
|
+
import { J as A } from "../jsonpath-B9kE9k9e.js";
|
|
3
|
+
import { l as C } from "../lodash-CYNxjS-I.js";
|
|
4
|
+
import { useContext as O } from "react";
|
|
5
|
+
import { GlobalDataContext as g } from "./GlobalDataContext.js";
|
|
6
6
|
import { TemplateContext as x } from "./TemplateContext.js";
|
|
7
|
-
import { isTemplateValue as
|
|
8
|
-
|
|
7
|
+
import { isTemplateValue as E, evaluateTemplateValue as b } from "./TemplateSystem.js";
|
|
8
|
+
import { reactEventProps as D } from "./utility/reactEventProps.js";
|
|
9
|
+
const P = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), p = (e, c, s) => {
|
|
9
10
|
const { globalDataContext: h, templateContext: l } = c;
|
|
10
11
|
if (Array.isArray(e.andConditions))
|
|
11
|
-
return e.andConditions.reduce((t,
|
|
12
|
+
return e.andConditions.reduce((t, o) => t && p(o, c, s), !0);
|
|
12
13
|
if (Array.isArray(e.orConditions)) {
|
|
13
14
|
const t = e.orConditions;
|
|
14
|
-
for (const
|
|
15
|
-
if (
|
|
15
|
+
for (const o of t)
|
|
16
|
+
if (p(o, c, s))
|
|
16
17
|
return !0;
|
|
17
18
|
return !1;
|
|
18
19
|
}
|
|
19
|
-
if (e.when !== void 0 && !
|
|
20
|
+
if (e.when !== void 0 && !E(e.when))
|
|
20
21
|
return !1;
|
|
21
|
-
const
|
|
22
|
+
const i = (t) => b({
|
|
22
23
|
globalDataContext: h,
|
|
23
24
|
templateContext: l,
|
|
24
25
|
valueToEvaluate: t
|
|
25
26
|
});
|
|
26
|
-
let
|
|
27
|
+
let n;
|
|
27
28
|
if (e.when === void 0 && e.hasOwnProperty("whenDataCountOf")) {
|
|
28
29
|
let t;
|
|
29
30
|
switch (e.inContext) {
|
|
@@ -37,127 +38,145 @@ const P = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), m = (e, c, u) => {
|
|
|
37
38
|
t = h.templateData;
|
|
38
39
|
break;
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
+
n = A.query(t, e.whenDataCountOf).length;
|
|
41
42
|
} else
|
|
42
|
-
|
|
43
|
-
if (
|
|
44
|
-
for (const [t,
|
|
43
|
+
n = (() => {
|
|
44
|
+
if (s) {
|
|
45
|
+
for (const [t, o] of s)
|
|
45
46
|
if (e.hasOwnProperty(t))
|
|
46
|
-
return
|
|
47
|
+
return o({
|
|
47
48
|
condition: e,
|
|
48
49
|
templateContexts: c,
|
|
49
|
-
evaluateAgainstTemplates: (a) =>
|
|
50
|
+
evaluateAgainstTemplates: (a) => i(a)
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
return
|
|
53
|
+
return i(e.when);
|
|
53
54
|
})();
|
|
54
55
|
if (e.hasOwnProperty("isEmpty") || e.hasOwnProperty("isNotEmpty")) {
|
|
55
|
-
const t = (
|
|
56
|
-
if (
|
|
56
|
+
const t = (o) => e.hasOwnProperty("isEmpty") ? e.isEmpty === "not" ? !o : o : !o;
|
|
57
|
+
if (n === null)
|
|
57
58
|
return t(!0);
|
|
58
|
-
switch (typeof
|
|
59
|
+
switch (typeof n) {
|
|
59
60
|
case "undefined":
|
|
60
61
|
return t(!0);
|
|
61
62
|
case "string":
|
|
62
|
-
return t(
|
|
63
|
+
return t(n.length === 0);
|
|
63
64
|
case "object":
|
|
64
|
-
return t(Object.keys(
|
|
65
|
+
return t(Object.keys(n).length === 0);
|
|
65
66
|
default:
|
|
66
|
-
return t(!
|
|
67
|
+
return t(!n);
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
const
|
|
70
|
+
const r = e.compareAsDates;
|
|
70
71
|
if (e.hasOwnProperty("isNot"))
|
|
71
|
-
return
|
|
72
|
+
return u(r, n) !== u(r, i(e.isNot));
|
|
72
73
|
if (e.hasOwnProperty("is"))
|
|
73
|
-
return
|
|
74
|
+
return u(r, n) === u(r, i(e.is));
|
|
74
75
|
if (e.hasOwnProperty("containsNot") || e.hasOwnProperty("contains")) {
|
|
75
|
-
const t = e.hasOwnProperty("containsNot"),
|
|
76
|
-
if (typeof
|
|
76
|
+
const t = e.hasOwnProperty("containsNot"), o = t ? e.containsNot : e.contains, a = u(r, i(o));
|
|
77
|
+
if (typeof n == "string") {
|
|
77
78
|
if (typeof a != "string")
|
|
78
79
|
return t;
|
|
79
|
-
const
|
|
80
|
-
return t ? !
|
|
80
|
+
const f = n.toLowerCase().indexOf(a.toLowerCase()) !== -1;
|
|
81
|
+
return t ? !f : f;
|
|
81
82
|
} else
|
|
82
|
-
for (const
|
|
83
|
-
if (
|
|
83
|
+
for (const f of Object.values(n))
|
|
84
|
+
if (C.isEqual(u(r, f), a))
|
|
84
85
|
return !t;
|
|
85
86
|
return t;
|
|
86
87
|
}
|
|
87
88
|
if (e.hasOwnProperty("containedByNot") || e.hasOwnProperty("containedBy")) {
|
|
88
|
-
const t = e.hasOwnProperty("containedByNot"),
|
|
89
|
-
if (typeof
|
|
89
|
+
const t = e.hasOwnProperty("containedByNot"), o = t ? e.containedByNot : e.containedBy, a = u(r, i(o));
|
|
90
|
+
if (typeof n == "string") {
|
|
90
91
|
if (typeof a != "string")
|
|
91
92
|
return t;
|
|
92
|
-
const
|
|
93
|
-
return t ? !
|
|
93
|
+
const f = a.toLowerCase().indexOf(n.toLowerCase()) !== -1;
|
|
94
|
+
return t ? !f : f;
|
|
94
95
|
} else
|
|
95
|
-
for (const
|
|
96
|
-
if (
|
|
96
|
+
for (const f of Object.values(a))
|
|
97
|
+
if (C.isEqual(u(r, f), n))
|
|
97
98
|
return !t;
|
|
98
99
|
return t;
|
|
99
100
|
}
|
|
100
|
-
return e.hasOwnProperty(">") ?
|
|
101
|
-
},
|
|
102
|
-
const
|
|
101
|
+
return e.hasOwnProperty(">") ? u(r, n) > u(r, i(e[">"])) : e.hasOwnProperty(">=") ? u(r, n) >= u(r, i(e[">="])) : e.hasOwnProperty("<") ? u(r, n) < u(r, i(e["<"])) : e.hasOwnProperty("<=") ? u(r, n) <= u(r, i(e["<="])) : !0;
|
|
102
|
+
}, L = (e, c) => {
|
|
103
|
+
const s = [];
|
|
103
104
|
let h = !1;
|
|
104
105
|
const l = {};
|
|
105
106
|
if (!Array.isArray(e))
|
|
106
|
-
return
|
|
107
|
-
const { globalDataContext:
|
|
108
|
-
if (!
|
|
109
|
-
return
|
|
110
|
-
for (const [
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
107
|
+
return s;
|
|
108
|
+
const { globalDataContext: i } = c, n = i.plugins ?? {}, r = (n == null ? void 0 : n.action) ?? {}, t = (n == null ? void 0 : n.reaction) ?? {};
|
|
109
|
+
if (!r)
|
|
110
|
+
return s;
|
|
111
|
+
for (const [o, a] of e.entries()) {
|
|
112
|
+
const f = (a == null ? void 0 : a.what) ?? void 0;
|
|
113
|
+
if (!f)
|
|
113
114
|
continue;
|
|
114
|
-
let
|
|
115
|
-
if (!
|
|
116
|
-
if (!w || a.on === void 0 || !
|
|
115
|
+
let m = r[f] ?? void 0, w = t[f] ?? void 0;
|
|
116
|
+
if (!m && !w && (m = r[P(f)]), !m) {
|
|
117
|
+
if (!w || a.on === void 0 || !p(a, c))
|
|
117
118
|
continue;
|
|
118
119
|
if (a.on === "message") {
|
|
119
|
-
if (!
|
|
120
|
+
if (!r.MessageListener)
|
|
120
121
|
continue;
|
|
121
|
-
|
|
122
|
+
s.push({
|
|
123
|
+
ActionComponent: r.MessageListener,
|
|
124
|
+
actionProps: a,
|
|
125
|
+
actionIndex: o
|
|
126
|
+
});
|
|
122
127
|
continue;
|
|
123
128
|
}
|
|
124
129
|
if (a.on === "hashchange") {
|
|
125
|
-
if (!
|
|
130
|
+
if (!r.HashChangeListener)
|
|
126
131
|
continue;
|
|
127
|
-
|
|
132
|
+
s.push({
|
|
133
|
+
ActionComponent: r.HashChangeListener,
|
|
134
|
+
actionProps: a,
|
|
135
|
+
actionIndex: o
|
|
136
|
+
});
|
|
128
137
|
continue;
|
|
129
138
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
139
|
+
if (D.has(a.on)) {
|
|
140
|
+
h = !0;
|
|
141
|
+
const y = "on" + P(a.on);
|
|
142
|
+
Array.isArray(l[y]) || (l[y] = []), l[y].push(a);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
if (!r.CustomEventListener)
|
|
146
|
+
continue;
|
|
147
|
+
s.push({
|
|
148
|
+
ActionComponent: r.CustomEventListener,
|
|
149
|
+
actionProps: a,
|
|
150
|
+
actionIndex: o
|
|
151
|
+
});
|
|
133
152
|
continue;
|
|
134
153
|
}
|
|
135
|
-
|
|
154
|
+
p(a, c) && s.push({ ActionComponent: m, actionProps: a, actionIndex: o });
|
|
136
155
|
}
|
|
137
156
|
if (h) {
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
ActionComponent:
|
|
157
|
+
if (!r.ReactOnEvent)
|
|
158
|
+
return s;
|
|
159
|
+
s.push({
|
|
160
|
+
ActionComponent: r.ReactOnEvent,
|
|
142
161
|
actionProps: l,
|
|
143
162
|
actionIndex: "_reactOnEvent"
|
|
144
163
|
});
|
|
145
164
|
}
|
|
146
|
-
return
|
|
147
|
-
},
|
|
148
|
-
const c =
|
|
149
|
-
return e ?
|
|
150
|
-
|
|
165
|
+
return s;
|
|
166
|
+
}, u = (e, c) => e ? new Date(c) : c, F = (e) => {
|
|
167
|
+
const c = O(g), s = O(x);
|
|
168
|
+
return e ? L((e == null ? void 0 : e.actions) ?? [], { globalDataContext: c, templateContext: s }).reverse().reduce((l, { ActionComponent: i, actionProps: n, actionIndex: r }) => /* @__PURE__ */ v(
|
|
169
|
+
i,
|
|
151
170
|
{
|
|
152
171
|
componentProps: e,
|
|
153
|
-
actionProps:
|
|
154
|
-
actionIndex:
|
|
172
|
+
actionProps: n,
|
|
173
|
+
actionIndex: r,
|
|
155
174
|
attributesHolderRef: e.attributesHolderRef,
|
|
156
175
|
children: l
|
|
157
176
|
}
|
|
158
177
|
), (e == null ? void 0 : e.children) ?? null) : null;
|
|
159
178
|
};
|
|
160
179
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
180
|
+
F as ActionDependant,
|
|
181
|
+
p as isValid
|
|
163
182
|
};
|