@actdim/dynstruct 1.0.5 → 1.0.7
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/appDomain/appContracts.d.ts +1 -1
- package/dist/appDomain/appContracts.es.js.map +1 -1
- package/dist/componentModel/DynamicContent.d.ts +1 -1
- package/dist/componentModel/DynamicContent.es.js +4 -4
- package/dist/componentModel/DynamicContent.es.js.map +1 -1
- package/dist/componentModel/adapters.d.ts +13 -0
- package/dist/componentModel/adapters.d.ts.map +1 -0
- package/dist/componentModel/adapters.es.js +30 -0
- package/dist/componentModel/adapters.es.js.map +1 -0
- package/dist/componentModel/componentContext.es.js +1 -1
- package/dist/componentModel/componentModel.d.ts +33 -32
- package/dist/componentModel/componentModel.d.ts.map +1 -1
- package/dist/componentModel/componentModel.es.js +205 -205
- package/dist/componentModel/componentModel.es.js.map +1 -1
- package/dist/componentModel/scope.d.ts +3 -6
- package/dist/componentModel/scope.d.ts.map +1 -1
- package/dist/componentModel/scope.es.js +2 -2
- package/dist/componentModel/scope.es.js.map +1 -1
- package/dist/services/NavService.d.ts +4 -5
- package/dist/services/NavService.d.ts.map +1 -1
- package/dist/services/NavService.es.js +26 -27
- package/dist/services/NavService.es.js.map +1 -1
- package/dist/services/ServiceProvider.d.ts +6 -0
- package/dist/services/ServiceProvider.d.ts.map +1 -0
- package/dist/services/ServiceProvider.es.js +17 -0
- package/dist/services/ServiceProvider.es.js.map +1 -0
- package/dist/services/StorageService.d.ts +4 -4
- package/dist/services/StorageService.d.ts.map +1 -1
- package/dist/services/StorageService.es.js +13 -12
- package/dist/services/StorageService.es.js.map +1 -1
- package/package.json +3 -3
- package/dist/appDomain/adapters.d.ts +0 -10
- package/dist/appDomain/adapters.d.ts.map +0 -1
- package/dist/appDomain/adapters.es.js +0 -25
- package/dist/appDomain/adapters.es.js.map +0 -1
- package/dist/appDomain/reactHooks.d.ts +0 -6
- package/dist/appDomain/reactHooks.d.ts.map +0 -1
- package/dist/appDomain/reactHooks.es.js +0 -12
- package/dist/appDomain/reactHooks.es.js.map +0 -1
- package/dist/dist/componentModel/componentContext.es.es.js +0 -15
- package/dist/dist/componentModel/componentContext.es.es.js.map +0 -1
- package/dist/dist/componentModel/componentModel.es.es.js +0 -260
- package/dist/dist/componentModel/componentModel.es.es.js.map +0 -1
- package/dist/dist/globals.es.es.js +0 -10
- package/dist/dist/globals.es.es.js.map +0 -1
- package/dist/dist/reactHooks.es.es.js +0 -9
- package/dist/dist/reactHooks.es.es.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { observer as
|
|
3
|
-
import { observable as
|
|
4
|
-
import { useLazyRef as
|
|
1
|
+
import O, { useLayoutEffect as R, useMemo as z, useEffect as L } from "react";
|
|
2
|
+
import { observer as M } from "mobx-react-lite";
|
|
3
|
+
import { observable as H, runInAction as _ } from "mobx";
|
|
4
|
+
import { useLazyRef as V } from "../reactHooks.es.js";
|
|
5
5
|
import { getGlobalFlags as w } from "../globals.es.js";
|
|
6
|
-
import { useComponentContext as
|
|
7
|
-
import { lazy as
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
class
|
|
6
|
+
import { useComponentContext as Z, ReactComponentContext as J } from "./componentContext.es.js";
|
|
7
|
+
import { lazy as K } from "@actdim/utico/utils";
|
|
8
|
+
var T = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.FromAncestors = 1] = "FromAncestors", e[e.FromDescendants = 2] = "FromDescendants", e))(T || {});
|
|
9
|
+
const F = Symbol("$isBinding");
|
|
10
|
+
class j {
|
|
11
11
|
// getter
|
|
12
12
|
get;
|
|
13
13
|
// setter
|
|
@@ -15,297 +15,297 @@ class H {
|
|
|
15
15
|
converter;
|
|
16
16
|
validator;
|
|
17
17
|
readOnly;
|
|
18
|
-
constructor(
|
|
19
|
-
this.get =
|
|
18
|
+
constructor(r, t, n, b) {
|
|
19
|
+
this.get = r, this.set = t, this.converter = n, this.validator = b, this.readOnly = !!t, this[F] = !0;
|
|
20
20
|
}
|
|
21
|
-
[
|
|
21
|
+
[F];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return e[
|
|
23
|
+
function q(e) {
|
|
24
|
+
return e[F] === !0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return new
|
|
26
|
+
function le(e, r, t, n) {
|
|
27
|
+
return new j(e, r, t, n);
|
|
28
28
|
}
|
|
29
|
-
function ae(e,
|
|
30
|
-
return new
|
|
31
|
-
() => e()[
|
|
32
|
-
(
|
|
33
|
-
e()[
|
|
29
|
+
function ae(e, r) {
|
|
30
|
+
return new j(
|
|
31
|
+
() => e()[r],
|
|
32
|
+
(t) => {
|
|
33
|
+
e()[r] = t;
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
function
|
|
39
|
-
const n =
|
|
37
|
+
const Q = "onGet", W = "onChanging", X = "onChange";
|
|
38
|
+
function Y(e, r, t) {
|
|
39
|
+
const n = t.onPropChanging, b = t.onPropChange;
|
|
40
40
|
return new Proxy(e, {
|
|
41
|
-
get(
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
41
|
+
get(C, u, c) {
|
|
42
|
+
const g = t[u]?.onGet;
|
|
43
|
+
if (g)
|
|
44
|
+
return g();
|
|
45
|
+
const y = r.get(String(u));
|
|
46
|
+
if (y) {
|
|
47
47
|
let d;
|
|
48
|
-
return d =
|
|
48
|
+
return d = y.get(), d;
|
|
49
49
|
}
|
|
50
|
-
return Reflect.get(
|
|
50
|
+
return Reflect.get(C, u, c);
|
|
51
51
|
},
|
|
52
|
-
set(
|
|
53
|
-
const
|
|
54
|
-
if (d && !d(
|
|
52
|
+
set(C, u, c, g) {
|
|
53
|
+
const y = C[u], d = t[u]?.onChanging;
|
|
54
|
+
if (d && !d(y, c) || n && !n(u, y, c))
|
|
55
55
|
return !0;
|
|
56
|
-
const k =
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
return
|
|
56
|
+
const k = _(() => Reflect.set(C, u, c, g)), a = r.get(u);
|
|
57
|
+
a?.set && a.set(c);
|
|
58
|
+
const l = t[u]?.onChange;
|
|
59
|
+
return l && l(c), b && b(u, c), k;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function $(e) {
|
|
64
64
|
return e.replace(/^./, e[0].toUpperCase());
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const E = {
|
|
67
67
|
sources: /* @__PURE__ */ new Map(),
|
|
68
68
|
count: 0
|
|
69
69
|
};
|
|
70
|
-
function
|
|
71
|
-
return e.split(/[?#]/)[0].split("/").filter(Boolean).map((
|
|
70
|
+
function p(e, r = 1) {
|
|
71
|
+
return e.split(/[?#]/)[0].split("/").filter(Boolean).map((c) => decodeURIComponent(c)).slice(-r).join("-").normalize("NFKD").replace(/[^a-zA-Z0-9\-_:.+#]/g, "-").replace(/-+/g, "-").replace(/^[^a-zA-Z]+/, "-").replace(/[+#]$/, "-");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const
|
|
73
|
+
function m(e = 2) {
|
|
74
|
+
const t = new Error().stack?.split(`
|
|
75
75
|
`);
|
|
76
|
-
if (!
|
|
77
|
-
const n =
|
|
76
|
+
if (!t || t.length <= e) return null;
|
|
77
|
+
const n = t[e].match(/\((.*):\d+:\d+\)/);
|
|
78
78
|
return n ? n[1] : null;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
for (const [n,
|
|
84
|
-
for (const [
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
return d & 1 && (
|
|
80
|
+
function D(e) {
|
|
81
|
+
const r = e?.msgBroker.provide;
|
|
82
|
+
if (r)
|
|
83
|
+
for (const [n, b] of Object.entries(r))
|
|
84
|
+
for (const [C, u] of Object.entries(b)) {
|
|
85
|
+
const c = u, g = c.callback;
|
|
86
|
+
g && (c.callback = (a, l) => g(a, l, e));
|
|
87
|
+
const y = c.filter, d = c.componentFilter || 0, k = (a) => {
|
|
88
|
+
let l = !0;
|
|
89
|
+
return d & 1 && (l = e.getChainUp().indexOf(a.headers?.sourceId) >= 0), l && d & 2 && (l = e.getChainDown().indexOf(a.headers?.sourceId) >= 0), l && y && (l = y(a, e)), l;
|
|
90
90
|
};
|
|
91
|
-
|
|
92
|
-
...
|
|
91
|
+
c.filter = k, e.msgBus.provide({
|
|
92
|
+
...u,
|
|
93
93
|
channel: n,
|
|
94
|
-
group:
|
|
94
|
+
group: C,
|
|
95
95
|
config: {
|
|
96
96
|
abortSignal: e.msgBroker.abortController.signal
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
for (const [n,
|
|
103
|
-
for (const [
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
let
|
|
108
|
-
return d & 1 && (
|
|
100
|
+
const t = e?.msgBroker?.subscribe;
|
|
101
|
+
if (t)
|
|
102
|
+
for (const [n, b] of Object.entries(t))
|
|
103
|
+
for (const [C, u] of Object.entries(b)) {
|
|
104
|
+
const c = u, g = c.callback;
|
|
105
|
+
g && (c.callback = (a) => g(a, e));
|
|
106
|
+
const y = c.filter, d = c.componentFilter || 0, k = (a) => {
|
|
107
|
+
let l = !0;
|
|
108
|
+
return d & 1 && (l = e.getChainUp().indexOf(a.headers?.sourceId) >= 0), l && d & 2 && (l = e.getChainDown().indexOf(a.headers?.sourceId) >= 0), l && y && (l = y(a, e)), l;
|
|
109
109
|
};
|
|
110
|
-
|
|
111
|
-
...
|
|
110
|
+
c.filter = k, e.msgBus.on({
|
|
111
|
+
...u,
|
|
112
112
|
channel: n,
|
|
113
|
-
group:
|
|
113
|
+
group: C,
|
|
114
114
|
config: {
|
|
115
115
|
abortSignal: e.msgBroker.abortController.signal
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
const
|
|
122
|
-
n.headers || (n.headers = {}),
|
|
120
|
+
function ee(e, r) {
|
|
121
|
+
const t = (n) => {
|
|
122
|
+
n.headers || (n.headers = {}), r?.(n.headers);
|
|
123
123
|
};
|
|
124
124
|
return {
|
|
125
125
|
config: e.config,
|
|
126
126
|
on: (n) => e.on(n),
|
|
127
127
|
onceAsync: (n) => e.onceAsync(n),
|
|
128
128
|
stream: (n) => e.stream(n),
|
|
129
|
-
provide: (n) => (
|
|
130
|
-
dispatch: (n) => (
|
|
131
|
-
dispatchAsync: (n) => (
|
|
129
|
+
provide: (n) => (t(n), e.provide(n)),
|
|
130
|
+
dispatch: (n) => (t(n), e.dispatch(n)),
|
|
131
|
+
dispatchAsync: (n) => (t(n), e.dispatchAsync(n))
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
function te(e, r) {
|
|
135
|
+
let t, n;
|
|
136
|
+
const b = e.view;
|
|
137
|
+
let C = e.msgBus;
|
|
138
|
+
const u = /* @__PURE__ */ new Map(), c = K(() => ee(C, (o) => {
|
|
139
|
+
o?.sourceId == null && (o.sourceId = t.id);
|
|
140
|
+
}));
|
|
141
|
+
let g = {
|
|
139
142
|
...e.msgBroker
|
|
140
143
|
};
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
const i =
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
() => ({ ...
|
|
147
|
-
[e,
|
|
144
|
+
g.abortController || (g.abortController = new AbortController());
|
|
145
|
+
const y = M((o) => {
|
|
146
|
+
const i = t.id, s = Z(), v = s.currentId;
|
|
147
|
+
t.parentId = v, C || (C = s.msgBus);
|
|
148
|
+
const f = z(
|
|
149
|
+
() => ({ ...s, currentId: i }),
|
|
150
|
+
[e, r, s]
|
|
148
151
|
);
|
|
149
|
-
|
|
152
|
+
R(() => {
|
|
150
153
|
try {
|
|
151
154
|
if (w().debug) {
|
|
152
|
-
const
|
|
153
|
-
console.debug(`${
|
|
155
|
+
const h = t.getHierarchyId();
|
|
156
|
+
console.debug(`${h}>layout`);
|
|
154
157
|
}
|
|
155
|
-
|
|
156
|
-
} catch (
|
|
157
|
-
e.events?.onError?.(
|
|
158
|
+
s.register(i, v), t.getHierarchyId = () => s.getHierarchyPath(i), t.getChainDown = () => s.getChainDown(i), t.getChainUp = () => s.getChainUp(i), t.getChildren = () => s.getChildren(i), t.getParent = () => s.getParent(i), t.getNodeMap = () => s.getNodeMap(), D(t), e.events?.onLayout?.(t), r?.onLayout?.(t);
|
|
159
|
+
} catch (h) {
|
|
160
|
+
e.events?.onError?.(t, h), r?.onError?.(t, h);
|
|
158
161
|
}
|
|
159
162
|
return () => {
|
|
160
163
|
if (w().debug) {
|
|
161
|
-
const
|
|
162
|
-
console.debug(`${
|
|
164
|
+
const h = t.getHierarchyId();
|
|
165
|
+
console.debug(`${h}>layout-destroy`);
|
|
163
166
|
}
|
|
164
|
-
|
|
167
|
+
s.unregister(i), g.abortController?.abort(), e.events?.onLayoutDestroy?.(t), r?.onLayoutDestroy?.(t);
|
|
165
168
|
};
|
|
166
|
-
}, [e,
|
|
169
|
+
}, [e, r, s]), L(() => {
|
|
167
170
|
try {
|
|
168
171
|
if (w().debug) {
|
|
169
|
-
const
|
|
170
|
-
console.debug(`${
|
|
172
|
+
const h = t.getHierarchyId();
|
|
173
|
+
console.debug(`${h}>ready`);
|
|
171
174
|
}
|
|
172
|
-
e.events?.onReady?.(
|
|
173
|
-
} catch (
|
|
175
|
+
e.events?.onReady?.(t), r?.onReady?.(t);
|
|
176
|
+
} catch (h) {
|
|
174
177
|
if (w().debug) {
|
|
175
|
-
const B =
|
|
178
|
+
const B = t.getHierarchyId();
|
|
176
179
|
console.debug(`${B}>destroy`);
|
|
177
180
|
}
|
|
178
|
-
e.events?.onError?.(
|
|
181
|
+
e.events?.onError?.(t, h), r?.onError?.(t, h);
|
|
179
182
|
}
|
|
180
183
|
return () => {
|
|
181
|
-
e.events?.onDestroy?.(
|
|
184
|
+
e.events?.onDestroy?.(t), r?.onDestroy?.(t);
|
|
182
185
|
};
|
|
183
|
-
}, [e,
|
|
186
|
+
}, [e, r, s]);
|
|
184
187
|
let I;
|
|
185
188
|
try {
|
|
186
189
|
if (w().debug) {
|
|
187
|
-
const
|
|
188
|
-
console.debug(`${
|
|
190
|
+
const h = t.getHierarchyId();
|
|
191
|
+
console.debug(`${h}>view`);
|
|
189
192
|
}
|
|
190
|
-
typeof
|
|
191
|
-
} catch (
|
|
192
|
-
const B = JSON.stringify(
|
|
193
|
-
I = /* @__PURE__ */
|
|
193
|
+
typeof b == "function" ? I = b(o, t) : I = /* @__PURE__ */ O.createElement(O.Fragment, null, o.children);
|
|
194
|
+
} catch (h) {
|
|
195
|
+
const B = JSON.stringify(h);
|
|
196
|
+
I = /* @__PURE__ */ O.createElement(O.Fragment, null, B);
|
|
194
197
|
}
|
|
195
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ O.createElement(J.Provider, { value: f }, I);
|
|
196
199
|
});
|
|
197
200
|
let d;
|
|
198
|
-
const k =
|
|
199
|
-
k.has(
|
|
200
|
-
structId: e.name ||
|
|
201
|
+
const k = E.sources, a = m(6), l = p(a, 2);
|
|
202
|
+
k.has(a) ? (d = k.get(a), d.count++) : (d = {
|
|
203
|
+
structId: e.name || l || `Component_${E.count}`,
|
|
201
204
|
count: 0
|
|
202
|
-
}, k.set(
|
|
203
|
-
const
|
|
204
|
-
if (
|
|
205
|
-
bindings: o,
|
|
206
|
-
id: $,
|
|
207
|
-
parentId: void 0,
|
|
208
|
-
getHierarchyId: () => {
|
|
209
|
-
},
|
|
210
|
-
getChainDown: () => {
|
|
211
|
-
},
|
|
212
|
-
getChainUp: () => {
|
|
213
|
-
},
|
|
214
|
-
getChildren: () => {
|
|
215
|
-
},
|
|
216
|
-
getParent: () => {
|
|
217
|
-
},
|
|
218
|
-
getNodeMap: () => {
|
|
219
|
-
}
|
|
220
|
-
}, r = {
|
|
205
|
+
}, k.set(a, d), E.count++);
|
|
206
|
+
const P = `${d.structId}#${d.count}`, N = {};
|
|
207
|
+
if (n = {
|
|
221
208
|
...e.props,
|
|
222
|
-
...e.
|
|
223
|
-
// view: component.view,
|
|
224
|
-
View: b,
|
|
225
|
-
get msgBus() {
|
|
226
|
-
return a();
|
|
227
|
-
},
|
|
228
|
-
msgBroker: h,
|
|
229
|
-
$: c
|
|
209
|
+
...e.actions
|
|
230
210
|
}, e.children)
|
|
231
|
-
for (const [
|
|
211
|
+
for (const [o, i] of Object.entries(e.children))
|
|
232
212
|
if (typeof i == "function") {
|
|
233
|
-
const
|
|
234
|
-
const I =
|
|
235
|
-
return /* @__PURE__ */
|
|
213
|
+
const s = i, v = (f) => {
|
|
214
|
+
const I = s(f);
|
|
215
|
+
return /* @__PURE__ */ O.createElement(I.View, null);
|
|
236
216
|
};
|
|
237
|
-
Reflect.set(
|
|
217
|
+
Reflect.set(N, $(o), v);
|
|
238
218
|
} else
|
|
239
|
-
Reflect.set(
|
|
240
|
-
for (const [
|
|
241
|
-
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
if (e.methods)
|
|
247
|
-
for (const s of Object.keys(e.methods))
|
|
248
|
-
O[s] = !1;
|
|
249
|
-
if (e.children)
|
|
250
|
-
for (const s of Object.keys(e.children))
|
|
251
|
-
O[s] = !1;
|
|
252
|
-
O.View = !1, O.msgBus = !1, O.$ = !1;
|
|
253
|
-
const F = {
|
|
254
|
-
onPropChanging: t?.onPropChanging || e.events?.onPropChanging ? (s, i, u) => {
|
|
255
|
-
let v = !0, y = t.onPropChanging;
|
|
256
|
-
return y && (v = y(String(s), i, u)), v && (y = e.events?.onPropChanging, y && (v = y(String(s), i, u))), v;
|
|
219
|
+
Reflect.set(N, o, i);
|
|
220
|
+
for (const [o, i] of Object.entries(r))
|
|
221
|
+
o in n && (q(i) ? u.set(o, i) : Reflect.set(n, o, i));
|
|
222
|
+
const A = {
|
|
223
|
+
onPropChanging: r?.onPropChanging || e.events?.onPropChanging ? (o, i, s) => {
|
|
224
|
+
let v = !0, f = r.onPropChanging;
|
|
225
|
+
return f && (v = f(String(o), i, s)), v && (f = e.events?.onPropChanging, f && (v = f(String(o), i, s))), v;
|
|
257
226
|
} : void 0,
|
|
258
|
-
onPropChange:
|
|
259
|
-
|
|
227
|
+
onPropChange: r?.onPropChange || e.events?.onPropChange ? (o, i) => {
|
|
228
|
+
r.onPropChange?.(String(o), i), e.events.onPropChange?.(String(o), i);
|
|
260
229
|
} : void 0
|
|
261
230
|
};
|
|
262
|
-
function
|
|
263
|
-
const i = `${
|
|
264
|
-
return
|
|
231
|
+
function S(o) {
|
|
232
|
+
const i = `${Q}${$(o)}`;
|
|
233
|
+
return r?.[i] || e.events?.[i];
|
|
265
234
|
}
|
|
266
|
-
function
|
|
267
|
-
const i = `${
|
|
268
|
-
return ((
|
|
269
|
-
let
|
|
270
|
-
return I && (
|
|
235
|
+
function x(o) {
|
|
236
|
+
const i = `${W}${$(o)}`;
|
|
237
|
+
return ((s, v) => {
|
|
238
|
+
let f = !0, I = r?.[i];
|
|
239
|
+
return I && (f = I(s, v)), f && (I = e.events[i], I && (f = I(s, v))), f;
|
|
271
240
|
});
|
|
272
241
|
}
|
|
273
|
-
function
|
|
274
|
-
const i = `${
|
|
275
|
-
return ((
|
|
276
|
-
|
|
242
|
+
function U(o) {
|
|
243
|
+
const i = `${X}${$(o)}`;
|
|
244
|
+
return ((s) => {
|
|
245
|
+
r[i]?.(s), e.events[i]?.(s);
|
|
277
246
|
});
|
|
278
247
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
248
|
+
let G = {};
|
|
249
|
+
if (e.props) {
|
|
250
|
+
for (const o of Object.keys(e.props))
|
|
251
|
+
A[o] = {
|
|
252
|
+
onGet: S(o),
|
|
253
|
+
onChanging: x(o),
|
|
254
|
+
onChange: U(o)
|
|
285
255
|
};
|
|
286
|
-
|
|
256
|
+
for (const o of Object.keys(e.props))
|
|
257
|
+
G[o] = H.ref;
|
|
258
|
+
}
|
|
259
|
+
if (e.actions)
|
|
260
|
+
for (const o of Object.keys(e.actions))
|
|
261
|
+
;
|
|
262
|
+
return n = H(n, G, {
|
|
287
263
|
deep: !0
|
|
288
|
-
}),
|
|
264
|
+
}), n = Y(n, u, A), t = {
|
|
265
|
+
id: P,
|
|
266
|
+
parentId: void 0,
|
|
267
|
+
getHierarchyId: () => {
|
|
268
|
+
},
|
|
269
|
+
getChainDown: () => {
|
|
270
|
+
},
|
|
271
|
+
getChainUp: () => {
|
|
272
|
+
},
|
|
273
|
+
getChildren: () => {
|
|
274
|
+
},
|
|
275
|
+
getParent: () => {
|
|
276
|
+
},
|
|
277
|
+
getNodeMap: () => {
|
|
278
|
+
},
|
|
279
|
+
bindings: u,
|
|
280
|
+
get msgBus() {
|
|
281
|
+
return c();
|
|
282
|
+
},
|
|
283
|
+
msgBroker: g,
|
|
284
|
+
// view: componentDef.view,
|
|
285
|
+
View: y,
|
|
286
|
+
children: N,
|
|
287
|
+
model: n
|
|
288
|
+
}, e.events?.onInit && e.events.onInit(t), r?.onInit && r.onInit(t), t;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const
|
|
292
|
-
return
|
|
293
|
-
|
|
294
|
-
}, [e,
|
|
290
|
+
function de(e, r) {
|
|
291
|
+
const t = V(() => te(e, r));
|
|
292
|
+
return R(() => () => {
|
|
293
|
+
t.current = null;
|
|
294
|
+
}, [e, r]), t.current;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return (
|
|
298
|
-
const n = e(
|
|
299
|
-
return /* @__PURE__ */
|
|
296
|
+
function ge(e) {
|
|
297
|
+
return (t) => {
|
|
298
|
+
const n = e(t);
|
|
299
|
+
return /* @__PURE__ */ O.createElement(n.View, { ...t });
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
export {
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
T as ComponentMsgFilter,
|
|
304
|
+
le as bind,
|
|
305
305
|
ae as bindProp,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
ge as getFC,
|
|
307
|
+
q as isBinding,
|
|
308
|
+
p as toHtmlId,
|
|
309
|
+
de as useComponent
|
|
310
310
|
};
|
|
311
311
|
//# sourceMappingURL=componentModel.es.js.map
|