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