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