@actdim/dynstruct 1.0.5 → 1.1.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/appDomain/appContracts.d.ts +1 -1
- package/dist/appDomain/appContracts.es.js.map +1 -1
- package/dist/componentModel/DynamicContent.d.ts +2 -5
- package/dist/componentModel/DynamicContent.d.ts.map +1 -1
- package/dist/componentModel/DynamicContent.es.js +7 -6
- 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 +55 -43
- package/dist/componentModel/componentModel.d.ts.map +1 -1
- package/dist/componentModel/componentModel.es.js +257 -225
- 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/net/request.d.ts +2 -2
- package/dist/net/request.d.ts.map +1 -1
- package/dist/net/request.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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useComponentContext as o } from "../componentModel/componentContext.es.js";
|
|
2
|
+
import n, { createContext as a, useLayoutEffect as c } from "react";
|
|
3
|
+
import { registerAdapters as s } from "../componentModel/adapters.es.js";
|
|
4
|
+
const i = a(void 0);
|
|
5
|
+
function l(t) {
|
|
6
|
+
const e = o();
|
|
7
|
+
return c(() => {
|
|
8
|
+
const r = new AbortController();
|
|
9
|
+
return s(e.msgBus, t.adapters, r.signal), () => {
|
|
10
|
+
r.abort();
|
|
11
|
+
};
|
|
12
|
+
}, [e.msgBus, t.adapters]), /* @__PURE__ */ n.createElement(i.Provider, { value: t.adapters }, t.children);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
l as ServiceProvider
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ServiceProvider.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceProvider.es.js","sources":["../../src/services/ServiceProvider.tsx"],"sourcesContent":["import { useComponentContext } from '@/componentModel/componentContext';\r\nimport { createContext, PropsWithChildren, useLayoutEffect } from 'react';\r\nimport { MsgProviderAdapter, registerAdapters } from '../componentModel/adapters';\r\nimport React from 'react';\r\n\r\nconst ReactContext = createContext<MsgProviderAdapter[]>(undefined);\r\n\r\nexport function ServiceProvider(\r\n props: PropsWithChildren<{\r\n adapters?: MsgProviderAdapter[];\r\n }>,\r\n) {\r\n const context = useComponentContext();\r\n useLayoutEffect(() => {\r\n const abortController = new AbortController();\r\n registerAdapters(context.msgBus, props.adapters, abortController.signal);\r\n return () => {\r\n abortController.abort();\r\n };\r\n }, [context.msgBus, props.adapters]);\r\n\r\n return <ReactContext.Provider value={props.adapters}>{props.children}</ReactContext.Provider>;\r\n}\r\n"],"names":["ReactContext","createContext","ServiceProvider","props","context","useComponentContext","useLayoutEffect","abortController","registerAdapters","React"],"mappings":";;;AAKA,MAAMA,IAAeC,EAAoC,MAAS;AAE3D,SAASC,EACZC,GAGF;AACE,QAAMC,IAAUC,EAAA;AAChB,SAAAC,EAAgB,MAAM;AAClB,UAAMC,IAAkB,IAAI,gBAAA;AAC5B,WAAAC,EAAiBJ,EAAQ,QAAQD,EAAM,UAAUI,EAAgB,MAAM,GAChE,MAAM;AACT,MAAAA,EAAgB,MAAA;AAAA,IACpB;AAAA,EACJ,GAAG,CAACH,EAAQ,QAAQD,EAAM,QAAQ,CAAC,GAE5B,gBAAAM,EAAA,cAACT,EAAa,UAAb,EAAsB,OAAOG,EAAM,SAAA,GAAWA,EAAM,QAAS;AACzE;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentParams, ComponentStruct,
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentParams, ComponentStruct, Component } from '../componentModel/componentModel';
|
|
2
|
+
import { BaseAppMsgChannels, BaseAppMsgStruct } from '../appDomain/appContracts';
|
|
3
3
|
type Struct = ComponentStruct<BaseAppMsgStruct, {
|
|
4
4
|
props: {
|
|
5
5
|
name?: string;
|
|
6
6
|
};
|
|
7
7
|
msgScope: {
|
|
8
|
-
provide:
|
|
8
|
+
provide: BaseAppMsgChannels<'APP-KV-STORE-GET' | 'APP-KV-STORE-SET' | 'APP-KV-STORE-REMOVE'>;
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
|
-
export declare const useStorageService: (params: ComponentParams<Struct>) =>
|
|
11
|
+
export declare const useStorageService: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
12
12
|
export type StorageServiceStruct = Struct;
|
|
13
13
|
export declare const StorageServiceFC: FC<ComponentParams<TStruct>>;
|
|
14
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageService.d.ts","sourceRoot":"","sources":["../../src/services/StorageService.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,eAAe,
|
|
1
|
+
{"version":3,"file":"StorageService.d.ts","sourceRoot":"","sources":["../../src/services/StorageService.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,eAAe,EAGf,SAAS,EAEZ,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,0BAA0B,CAAC;AAGnG,KAAK,MAAM,GAAG,eAAe,CACzB,gBAAgB,EAChB;IACI,KAAK,EAAE;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACN,OAAO,EAAE,kBAAkB,CACvB,kBAAkB,GAAG,kBAAkB,GAAG,qBAAqB,CAClE,CAAC;KACL,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,sBA+DhE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAC1C,eAAO,MAAM,gBAAgB,8BAA2B,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { getFC as i, useComponent as
|
|
1
|
+
import { getFC as i, useComponent as l } from "../componentModel/componentModel.es.js";
|
|
2
2
|
import { PersistentStore as y } from "@actdim/utico/store/persistentStore";
|
|
3
|
-
const
|
|
4
|
-
let t,
|
|
3
|
+
const m = (s) => {
|
|
4
|
+
let t, o;
|
|
5
|
+
async function c() {
|
|
6
|
+
a = await y.openAsync(o.name);
|
|
7
|
+
}
|
|
8
|
+
let a, r;
|
|
5
9
|
const n = new Promise((e) => {
|
|
6
|
-
|
|
10
|
+
r = e;
|
|
7
11
|
});
|
|
8
|
-
return t =
|
|
12
|
+
return t = l({
|
|
9
13
|
props: {
|
|
10
14
|
name: ""
|
|
11
15
|
},
|
|
@@ -42,13 +46,10 @@ const l = (s) => {
|
|
|
42
46
|
c();
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
|
-
}, s), c().then(() =>
|
|
46
|
-
|
|
47
|
-
a = await y.openAsync(t.name);
|
|
48
|
-
}
|
|
49
|
-
}, k = i(l);
|
|
49
|
+
}, s), o = t.model, c().then(() => r()), t;
|
|
50
|
+
}, u = i(m);
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
u as StorageServiceFC,
|
|
53
|
+
m as useStorageService
|
|
53
54
|
};
|
|
54
55
|
//# sourceMappingURL=StorageService.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageService.es.js","sources":["../../src/services/StorageService.tsx"],"sourcesContent":["import {\r\n ComponentParams,\r\n ComponentStruct,\r\n getFC,\r\n useComponent,\r\n Component,\r\n ComponentModel,\r\n} from '
|
|
1
|
+
{"version":3,"file":"StorageService.es.js","sources":["../../src/services/StorageService.tsx"],"sourcesContent":["import {\r\n ComponentParams,\r\n ComponentStruct,\r\n getFC,\r\n useComponent,\r\n Component,\r\n ComponentModel,\r\n} from '@/componentModel/componentModel';\r\nimport { PersistentStore } from '@actdim/utico/store/persistentStore';\r\nimport { BaseAppMsgChannels, BaseAppMsgStruct, useBaseAppContext } from '@/appDomain/appContracts';\r\nimport type { ComponentDef } from '@/componentModel/componentModel';\r\n\r\ntype Struct = ComponentStruct<\r\n BaseAppMsgStruct,\r\n {\r\n props: {\r\n name?: string;\r\n };\r\n msgScope: {\r\n provide: BaseAppMsgChannels<\r\n 'APP-KV-STORE-GET' | 'APP-KV-STORE-SET' | 'APP-KV-STORE-REMOVE'\r\n >;\r\n };\r\n }\r\n>;\r\n\r\nexport const useStorageService = (params: ComponentParams<Struct>) => {\r\n let c: Component<Struct>;\r\n let m: ComponentModel<Struct>;\r\n\r\n async function _updateStoreAsync() {\r\n store = await PersistentStore.openAsync(m.name);\r\n }\r\n\r\n let store: PersistentStore;\r\n let ready: () => void;\r\n const init = new Promise<void>((res) => {\r\n ready = res;\r\n });\r\n\r\n const def: ComponentDef<Struct> = {\r\n props: {\r\n name: '',\r\n },\r\n msgBroker: {\r\n provide: {\r\n 'APP-KV-STORE-GET': {\r\n in: {\r\n callback: async (msg) => {\r\n await init;\r\n const item = await store.getAsync(msg.payload.key);\r\n return item?.data.value;\r\n },\r\n },\r\n },\r\n 'APP-KV-STORE-SET': {\r\n in: {\r\n callback: async (msg) => {\r\n await init;\r\n await store.setAsync(\r\n {\r\n key: msg.payload.key,\r\n },\r\n msg.payload.value,\r\n );\r\n },\r\n },\r\n },\r\n 'APP-KV-STORE-REMOVE': {\r\n in: {\r\n callback: async (msg) => {\r\n await init;\r\n await store.deleteAsync(msg.payload.key);\r\n },\r\n },\r\n },\r\n },\r\n },\r\n events: {\r\n onChangeName: () => {\r\n _updateStoreAsync();\r\n },\r\n },\r\n };\r\n\r\n c = useComponent(def, params);\r\n m = c.model;\r\n _updateStoreAsync().then(() => ready());\r\n return c;\r\n};\r\n\r\nexport type StorageServiceStruct = Struct;\r\nexport const StorageServiceFC = getFC(useStorageService);\r\n"],"names":["useStorageService","params","c","m","_updateStoreAsync","store","PersistentStore","ready","init","res","useComponent","msg","StorageServiceFC","getFC"],"mappings":";;AA0BO,MAAMA,IAAoB,CAACC,MAAoC;AAClE,MAAIC,GACAC;AAEJ,iBAAeC,IAAoB;AAC/B,IAAAC,IAAQ,MAAMC,EAAgB,UAAUH,EAAE,IAAI;AAAA,EAClD;AAEA,MAAIE,GACAE;AACJ,QAAMC,IAAO,IAAI,QAAc,CAACC,MAAQ;AACpC,IAAAF,IAAQE;AAAA,EACZ,CAAC;AA+CD,SAAAP,IAAIQ,EA7C8B;AAAA,IAC9B,OAAO;AAAA,MACH,MAAM;AAAA,IAAA;AAAA,IAEV,WAAW;AAAA,MACP,SAAS;AAAA,QACL,oBAAoB;AAAA,UAChB,IAAI;AAAA,YACA,UAAU,OAAOC,OACb,MAAMH,IACO,MAAMH,EAAM,SAASM,EAAI,QAAQ,GAAG,IACpC,KAAK;AAAA,UACtB;AAAA,QACJ;AAAA,QAEJ,oBAAoB;AAAA,UAChB,IAAI;AAAA,YACA,UAAU,OAAOA,MAAQ;AACrB,oBAAMH,GACN,MAAMH,EAAM;AAAA,gBACR;AAAA,kBACI,KAAKM,EAAI,QAAQ;AAAA,gBAAA;AAAA,gBAErBA,EAAI,QAAQ;AAAA,cAAA;AAAA,YAEpB;AAAA,UAAA;AAAA,QACJ;AAAA,QAEJ,uBAAuB;AAAA,UACnB,IAAI;AAAA,YACA,UAAU,OAAOA,MAAQ;AACrB,oBAAMH,GACN,MAAMH,EAAM,YAAYM,EAAI,QAAQ,GAAG;AAAA,YAC3C;AAAA,UAAA;AAAA,QACJ;AAAA,MACJ;AAAA,IACJ;AAAA,IAEJ,QAAQ;AAAA,MACJ,cAAc,MAAM;AAChB,QAAAP,EAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EACJ,GAGkBH,CAAM,GAC5BE,IAAID,EAAE,OACNE,IAAoB,KAAK,MAAMG,GAAO,GAC/BL;AACX,GAGaU,IAAmBC,EAAMb,CAAiB;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actdim/dynstruct",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A type-safe component system for large-scale apps: explicit dependencies, message bus communication, and structure-first, declarative design",
|
|
5
5
|
"author": "Pavel Borodaev",
|
|
6
6
|
"license": "Proprietary",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"build-storybook": "storybook build"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@actdim/msgmesh": "^1.1
|
|
74
|
-
"@actdim/utico": "^1.0
|
|
73
|
+
"@actdim/msgmesh": "^1.2.1",
|
|
74
|
+
"@actdim/utico": "^1.1.0",
|
|
75
75
|
"http-status": "^2.1.0",
|
|
76
76
|
"jwt-decode": "^4.0.0",
|
|
77
77
|
"mobx": "^6.15.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MsgBus, MsgStruct } from '@actdim/msgmesh/msgBusCore';
|
|
2
|
-
export type MsgProviderAdapter = {
|
|
3
|
-
service: any;
|
|
4
|
-
channelResolver: (methodName: string) => string;
|
|
5
|
-
};
|
|
6
|
-
export type MsgBusAdapterConfig = {
|
|
7
|
-
providers: MsgProviderAdapter[];
|
|
8
|
-
};
|
|
9
|
-
export declare function registerAdapters<TMsgStruct extends MsgStruct = MsgStruct>(msgBus: MsgBus<TMsgStruct>, { providers }: MsgBusAdapterConfig): void;
|
|
10
|
-
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/appDomain/adapters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAW/D,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,EAAE,GAAG,CAAC;IAEb,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,SAAS,EAAE,kBAAkB,EAAE,CAAA;CAClC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,UAAU,SAAS,SAAS,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,mBAAmB,QAqBxI"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ClientBase as i } from "../net/client.es.js";
|
|
2
|
-
const c = (t) => Object.getOwnPropertyNames(t).filter(
|
|
3
|
-
(e) => e !== "constructor" && typeof t[e] == "function"
|
|
4
|
-
);
|
|
5
|
-
c(i.prototype);
|
|
6
|
-
function l(t, { providers: e }) {
|
|
7
|
-
if (e)
|
|
8
|
-
for (const f of e) {
|
|
9
|
-
const { service: o, channelResolver: r } = f;
|
|
10
|
-
if (!o || r)
|
|
11
|
-
throw new Error("client and channelResolver are required for an adapter");
|
|
12
|
-
for (const n of c(Object.getPrototypeOf(o))) {
|
|
13
|
-
const a = r?.(n);
|
|
14
|
-
a && t.provide({
|
|
15
|
-
channel: a,
|
|
16
|
-
topic: "/.*/",
|
|
17
|
-
callback: (s) => o[n](...s.payload || [])
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
l as registerAdapters
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=adapters.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.es.js","sources":["../../src/appDomain/adapters.ts"],"sourcesContent":["import { ClientBase } from \"@/net/client\";\r\nimport { MsgBus, MsgStruct } from \"@actdim/msgmesh/msgBusCore\";\r\nimport { Func } from \"@actdim/utico/typeCore\";\r\n\r\nconst getMethodNames = (client: any) => {\r\n // return new Set(...)\r\n return Object.getOwnPropertyNames(client).filter(\r\n (name) => name !== 'constructor' && typeof client[name] === 'function',\r\n );\r\n};\r\nconst baseMethodNames = getMethodNames(ClientBase.prototype);\r\n\r\nexport type MsgProviderAdapter = {\r\n service: any;\r\n // channelSelector/channelMapper\r\n channelResolver: (methodName: string) => string;\r\n};\r\n\r\nexport type MsgBusAdapterConfig = {\r\n providers: MsgProviderAdapter[]\r\n};\r\n\r\nexport function registerAdapters<TMsgStruct extends MsgStruct = MsgStruct>(msgBus: MsgBus<TMsgStruct>, { providers }: MsgBusAdapterConfig) {\r\n if (providers) {\r\n for (const adapter of providers) {\r\n const { service, channelResolver } = adapter;\r\n if (!service || !!channelResolver) {\r\n throw new Error(\"client and channelResolver are required for an adapter\")\r\n }\r\n for (const methodName of getMethodNames(Object.getPrototypeOf(service))) {\r\n const channel = channelResolver?.(methodName);\r\n if (channel) {\r\n msgBus.provide({\r\n channel: channel as keyof TMsgStruct,\r\n topic: '/.*/',\r\n callback: (msg) => {\r\n return (service[methodName] as Func)(...((msg.payload || []) as any[]));\r\n },\r\n });\r\n }\r\n }\r\n }\r\n }\r\n}"],"names":["getMethodNames","client","name","ClientBase","registerAdapters","msgBus","providers","adapter","service","channelResolver","methodName","channel","msg"],"mappings":";AAIA,MAAMA,IAAiB,CAACC,MAEb,OAAO,oBAAoBA,CAAM,EAAE;AAAA,EACtC,CAACC,MAASA,MAAS,iBAAiB,OAAOD,EAAOC,CAAI,KAAM;AAAA;AAG5CF,EAAeG,EAAW,SAAS;AAYpD,SAASC,EAA2DC,GAA4B,EAAE,WAAAC,KAAkC;AACvI,MAAIA;AACA,eAAWC,KAAWD,GAAW;AAC7B,YAAM,EAAE,SAAAE,GAAS,iBAAAC,EAAA,IAAoBF;AACrC,UAAI,CAACC,KAAaC;AACd,cAAM,IAAI,MAAM,wDAAwD;AAE5E,iBAAWC,KAAcV,EAAe,OAAO,eAAeQ,CAAO,CAAC,GAAG;AACrE,cAAMG,IAAUF,IAAkBC,CAAU;AAC5C,QAAIC,KACAN,EAAO,QAAQ;AAAA,UACX,SAAAM;AAAA,UACA,OAAO;AAAA,UACP,UAAU,CAACC,MACCJ,EAAQE,CAAU,EAAW,GAAKE,EAAI,WAAW,CAAA,CAAa;AAAA,QAC1E,CACH;AAAA,MAET;AAAA,IACJ;AAER;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactHooks.d.ts","sourceRoot":"","sources":["../../src/appDomain/reactHooks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAoB,MAAM,YAAY,CAAC;AAKnE,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,iBAAiB,CAAC;IACrB,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC,OAKL"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useComponentContext as r } from "../componentModel/componentContext.es.js";
|
|
2
|
-
import o, { createContext as n } from "react";
|
|
3
|
-
import { registerAdapters as a } from "./adapters.es.js";
|
|
4
|
-
const c = n(void 0);
|
|
5
|
-
function s(e) {
|
|
6
|
-
const t = r();
|
|
7
|
-
return a(t.msgBus, e.value), /* @__PURE__ */ o.createElement(c.Provider, { value: e.value }, e.children);
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
s as MsgBusAdapterProvider
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=reactHooks.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactHooks.es.js","sources":["../../src/appDomain/reactHooks.tsx"],"sourcesContent":["import { useComponentContext } from '@/componentModel/componentContext';\r\nimport { createContext, PropsWithChildren } from 'react';\r\nimport { MsgBusAdapterConfig, registerAdapters } from './adapters';\r\nimport React from 'react';\r\n\r\nconst ReactContext = createContext<MsgBusAdapterConfig>(undefined);\r\n\r\nexport function MsgBusAdapterProvider(\r\n props: PropsWithChildren<{\r\n value?: MsgBusAdapterConfig;\r\n }>,\r\n) {\r\n const context = useComponentContext();\r\n registerAdapters(context.msgBus, props.value);\r\n return <ReactContext.Provider value={props.value}>{props.children}</ReactContext.Provider>;\r\n}\r\n"],"names":["ReactContext","createContext","MsgBusAdapterProvider","props","context","useComponentContext","registerAdapters","React"],"mappings":";;;AAKA,MAAMA,IAAeC,EAAmC,MAAS;AAE1D,SAASC,EACZC,GAGF;AACE,QAAMC,IAAUC,EAAA;AAChB,SAAAC,EAAiBF,EAAQ,QAAQD,EAAM,KAAK,GACrC,gBAAAI,EAAA,cAACP,EAAa,UAAb,EAAsB,OAAOG,EAAM,MAAA,GAAQA,EAAM,QAAS;AACtE;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createContext as t, useContext as e } from "react";
|
|
2
|
-
const n = t(void 0);
|
|
3
|
-
function C() {
|
|
4
|
-
const o = e(n);
|
|
5
|
-
if (!o)
|
|
6
|
-
throw new Error(
|
|
7
|
-
"Can't resolve ComponentContext. Please wrap your component tree with <ComponentContextProvider>."
|
|
8
|
-
);
|
|
9
|
-
return o;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
n as ReactComponentContext,
|
|
13
|
-
C as useComponentContext
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=componentContext.es.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"componentContext.es.es.js","sources":["../../componentModel/componentContext.es.js"],"sourcesContent":["import P, { createContext as R, useContext as k, useRef as i } from \"react\";\nconst f = R(void 0);\nfunction E(o) {\n let h;\n const c = i(/* @__PURE__ */ new Map()), u = i([]), g = () => u.current[u.current.length - 1], d = (e, t) => {\n let n = c.current.get(e);\n if (n ? n.parentId = t : (n = {\n id: e,\n parentId: t,\n children: /* @__PURE__ */ new Set()\n }, c.current.set(e, n)), t) {\n let r = c.current.get(t);\n r || (r = {\n id: t,\n children: /* @__PURE__ */ new Set()\n }, c.current.set(t, r)), r.children.has(e) || r.children.add(e);\n }\n u.current.push(e);\n }, a = (e) => {\n const t = c.current.get(e);\n if (!t)\n return;\n t.parentId && c.current.get(t.parentId)?.children.delete(e), t.children.forEach((r) => a(r)), c.current.delete(e);\n const n = u.current.lastIndexOf(e);\n n >= 0 && u.current.splice(n, 1);\n }, s = (e) => c.current.get(e)?.parentId, p = (e) => Array.from(c.current.get(e)?.children ?? []), C = (e) => {\n const t = [];\n let n = e;\n for (; ; ) {\n const r = s(n);\n if (!r)\n break;\n t.push(r), n = r;\n }\n return t;\n }, x = (e) => {\n const t = [], n = [e];\n for (; n.length > 0; ) {\n const r = n.pop(), v = p(r);\n for (const l of v)\n t.includes(l) || (t.push(l), n.push(l));\n }\n return t;\n }, w = (e) => {\n e || (e = g());\n const t = [];\n let n = e;\n for (; n; )\n t.push(n), n = s(n);\n return t.reverse().join(\"/\");\n }, m = () => c.current;\n return h = i({\n ...o.value,\n register: d,\n unregister: a,\n getParent: s,\n getChildren: p,\n getChainUp: C,\n getChainDown: x,\n getHierarchyPath: w,\n getNodeMap: m\n }), /* @__PURE__ */ P.createElement(f.Provider, { value: h.current }, o.children);\n}\nfunction S() {\n const o = k(f);\n if (!o)\n throw new Error(\n \"Can't resolve ComponentContext. Please wrap your component tree with <ComponentContextProvider>.\"\n );\n return o;\n}\nexport {\n E as ComponentContextProvider,\n f as ReactComponentContext,\n S as useComponentContext\n};\n//# sourceMappingURL=componentContext.es.js.map\n"],"names":["f","R","S","k"],"mappings":";AACK,MAACA,IAAIC,EAAE,MAAM;AA8DlB,SAASC,IAAI;AACX,QAAM,IAAIC,EAAEH,CAAC;AACb,MAAI,CAAC;AACH,UAAM,IAAI;AAAA,MACR;AAAA,IACN;AACE,SAAO;AACT;"}
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import y, { useLayoutEffect as R, useMemo as F, useEffect as L } from "react";
|
|
2
|
-
import { observer as M } from "mobx-react-lite";
|
|
3
|
-
import { observable as j, runInAction as N } from "mobx";
|
|
4
|
-
import { useLazyRef as A } from "../reactHooks.es.es.js";
|
|
5
|
-
import { getGlobalFlags as I } from "../globals.es.es.js";
|
|
6
|
-
import { useComponentContext as U, ReactComponentContext as x } from "./componentContext.es.es.js";
|
|
7
|
-
const z = Symbol("$isBinding");
|
|
8
|
-
function G(n) {
|
|
9
|
-
return n[z] === !0;
|
|
10
|
-
}
|
|
11
|
-
const V = "onGet", Z = "onChanging", J = "onChange";
|
|
12
|
-
function K(n, e, a) {
|
|
13
|
-
const C = a.onPropChanging, t = a.onPropChange;
|
|
14
|
-
return new Proxy(n, {
|
|
15
|
-
get(c, u, i) {
|
|
16
|
-
const p = a[u]?.onGet;
|
|
17
|
-
if (p)
|
|
18
|
-
return p();
|
|
19
|
-
const g = e.get(String(u));
|
|
20
|
-
if (g) {
|
|
21
|
-
let l;
|
|
22
|
-
return l = g.get(), l;
|
|
23
|
-
}
|
|
24
|
-
return Reflect.get(c, u, i);
|
|
25
|
-
},
|
|
26
|
-
set(c, u, i, p) {
|
|
27
|
-
const g = c[u], l = a[u]?.onChanging;
|
|
28
|
-
if (l && !l(g, i) || C && !C(u, g, i))
|
|
29
|
-
return !0;
|
|
30
|
-
const v = N(() => Reflect.set(c, u, i, p)), P = e.get(u);
|
|
31
|
-
P?.set && P.set(i);
|
|
32
|
-
const k = a[u]?.onChange;
|
|
33
|
-
return k && k(i), t && t(u, i), v;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function w(n) {
|
|
38
|
-
return n.replace(/^./, n[0].toUpperCase());
|
|
39
|
-
}
|
|
40
|
-
const E = {
|
|
41
|
-
sources: /* @__PURE__ */ new Map(),
|
|
42
|
-
count: 0
|
|
43
|
-
};
|
|
44
|
-
function _(n, e = 1) {
|
|
45
|
-
return n.split(/[?#]/)[0].split("/").filter(Boolean).map((a) => decodeURIComponent(a)).slice(-e).join("-").normalize("NFKD").replace(/[^a-zA-Z0-9\-_:.+#]/g, "-").replace(/-+/g, "-").replace(/^[^a-zA-Z]+/, "-").replace(/[+#]$/, "-");
|
|
46
|
-
}
|
|
47
|
-
function q(n = 2) {
|
|
48
|
-
const e = new Error().stack?.split(`
|
|
49
|
-
`);
|
|
50
|
-
if (!e || e.length <= n) return null;
|
|
51
|
-
const a = e[n].match(/\((.*):\d+:\d+\)/);
|
|
52
|
-
return a ? a[1] : null;
|
|
53
|
-
}
|
|
54
|
-
function Q(n) {
|
|
55
|
-
const e = n?.msgBroker.provide;
|
|
56
|
-
if (e)
|
|
57
|
-
for (const [C, t] of Object.entries(e))
|
|
58
|
-
for (const [c, u] of Object.entries(t)) {
|
|
59
|
-
const i = u, p = i.callback;
|
|
60
|
-
p && (i.callback = (l) => p(l, n));
|
|
61
|
-
const g = i.filter;
|
|
62
|
-
g && (i.filter = (l) => g(l, n)), n.msgBus.provide({
|
|
63
|
-
...u,
|
|
64
|
-
channel: C,
|
|
65
|
-
group: c,
|
|
66
|
-
config: {
|
|
67
|
-
abortSignal: n.msgBroker.abortController.signal
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
const a = n?.msgBroker?.subscribe;
|
|
72
|
-
if (a)
|
|
73
|
-
for (const [C, t] of Object.entries(a))
|
|
74
|
-
for (const [c, u] of Object.entries(t)) {
|
|
75
|
-
const i = u, p = i.callback;
|
|
76
|
-
p && (i.callback = (l) => p(l, n));
|
|
77
|
-
const g = i.filter;
|
|
78
|
-
g && (i.filter = (l) => g(l, n)), n.msgBus.on({
|
|
79
|
-
...u,
|
|
80
|
-
channel: C,
|
|
81
|
-
group: c,
|
|
82
|
-
config: {
|
|
83
|
-
abortSignal: n.msgBroker.abortController.signal
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function T(n, e) {
|
|
89
|
-
const a = /* @__PURE__ */ new Map(), C = n.view;
|
|
90
|
-
let t, c, u = n.msgBus, i = {
|
|
91
|
-
...n.msgBroker
|
|
92
|
-
};
|
|
93
|
-
i.abortController || (i.abortController = new AbortController());
|
|
94
|
-
const p = M((o) => {
|
|
95
|
-
const r = c.id, s = U(), h = s.currentId;
|
|
96
|
-
c.parentId = h, u || (u = s.msgBus);
|
|
97
|
-
const d = F(
|
|
98
|
-
() => ({ ...s, currentId: r }),
|
|
99
|
-
[n, e, s]
|
|
100
|
-
);
|
|
101
|
-
R(() => {
|
|
102
|
-
try {
|
|
103
|
-
if (I().debug) {
|
|
104
|
-
const f = c.getHierarchyId;
|
|
105
|
-
console.debug(`${f}>layout`);
|
|
106
|
-
}
|
|
107
|
-
s.register(r, h), c.getHierarchyId = () => s.getHierarchyPath(r), c.getChainDown = () => s.getChainDown(r), c.getChainUp = () => s.getChainUp(r), c.getChildren = () => s.getChildren(r), c.getParent = () => s.getParent(r), c.getNodeMap = () => s.getNodeMap(), Q(t), n.events?.onLayout?.(t), e?.onLayout?.(t);
|
|
108
|
-
} catch (f) {
|
|
109
|
-
n.events?.onError?.(t, f), e?.onError?.(t, f);
|
|
110
|
-
}
|
|
111
|
-
return () => {
|
|
112
|
-
if (I().debug) {
|
|
113
|
-
const f = c.getHierarchyId;
|
|
114
|
-
console.debug(`${f}>layout-destroy`);
|
|
115
|
-
}
|
|
116
|
-
s.unregister(r), i.abortController.abort(), n.events?.onLayoutDestroy?.(t), e?.onLayoutDestroy?.(t);
|
|
117
|
-
};
|
|
118
|
-
}, [n, e, s]), L(() => {
|
|
119
|
-
try {
|
|
120
|
-
if (I().debug) {
|
|
121
|
-
const f = c.getHierarchyId;
|
|
122
|
-
console.debug(`${f}>ready`);
|
|
123
|
-
}
|
|
124
|
-
n.events?.onReady?.(t), e?.onReady?.(t);
|
|
125
|
-
} catch (f) {
|
|
126
|
-
if (I().debug) {
|
|
127
|
-
const B = c.getHierarchyId;
|
|
128
|
-
console.debug(`${B}>destroy`);
|
|
129
|
-
}
|
|
130
|
-
n.events?.onError?.(t, f), e?.onError?.(t, f);
|
|
131
|
-
}
|
|
132
|
-
return () => {
|
|
133
|
-
n.events?.onDestroy?.(t), e?.onDestroy?.(t);
|
|
134
|
-
};
|
|
135
|
-
}, [n, e, s]);
|
|
136
|
-
let m;
|
|
137
|
-
try {
|
|
138
|
-
if (I().debug) {
|
|
139
|
-
const f = c.getHierarchyId;
|
|
140
|
-
console.debug(`${f}>view`);
|
|
141
|
-
}
|
|
142
|
-
typeof C == "function" ? m = C(o, t) : m = /* @__PURE__ */ y.createElement(y.Fragment, null, o.children);
|
|
143
|
-
} catch (f) {
|
|
144
|
-
const B = JSON.stringify(f);
|
|
145
|
-
m = /* @__PURE__ */ y.createElement(y.Fragment, null, B);
|
|
146
|
-
}
|
|
147
|
-
return /* @__PURE__ */ y.createElement(x.Provider, { value: d }, m);
|
|
148
|
-
});
|
|
149
|
-
let g;
|
|
150
|
-
const l = E.sources, v = q(6), P = _(v, 2);
|
|
151
|
-
l.has(v) ? (g = l.get(v), g.count++) : (g = {
|
|
152
|
-
structId: n.name || P || `Component_${E.count}`,
|
|
153
|
-
count: 0
|
|
154
|
-
}, l.set(v, g), E.count++);
|
|
155
|
-
const k = `${g.structId}#${g.count}`;
|
|
156
|
-
if (c = {
|
|
157
|
-
bindings: a,
|
|
158
|
-
id: k,
|
|
159
|
-
parentId: void 0,
|
|
160
|
-
getHierarchyId: () => {
|
|
161
|
-
},
|
|
162
|
-
getChainDown: () => {
|
|
163
|
-
},
|
|
164
|
-
getChainUp: () => {
|
|
165
|
-
},
|
|
166
|
-
getChildren: () => {
|
|
167
|
-
},
|
|
168
|
-
getParent: () => {
|
|
169
|
-
},
|
|
170
|
-
getNodeMap: () => {
|
|
171
|
-
}
|
|
172
|
-
}, t = {
|
|
173
|
-
...n.props,
|
|
174
|
-
...n.methods,
|
|
175
|
-
// view: component.view,
|
|
176
|
-
View: p,
|
|
177
|
-
get msgBus() {
|
|
178
|
-
return u;
|
|
179
|
-
},
|
|
180
|
-
msgBroker: i,
|
|
181
|
-
$: c
|
|
182
|
-
}, n.children)
|
|
183
|
-
for (const [o, r] of Object.entries(n.children))
|
|
184
|
-
if (typeof r == "function") {
|
|
185
|
-
const s = r, h = (d) => {
|
|
186
|
-
const m = s(d);
|
|
187
|
-
return /* @__PURE__ */ y.createElement(m.View, null);
|
|
188
|
-
};
|
|
189
|
-
Reflect.set(t, w(o), h);
|
|
190
|
-
} else
|
|
191
|
-
Reflect.set(t, o, r);
|
|
192
|
-
for (const [o, r] of Object.entries(e))
|
|
193
|
-
G(r) ? a.set(o, r) : Reflect.set(t, o, r);
|
|
194
|
-
const b = {};
|
|
195
|
-
if (n.props)
|
|
196
|
-
for (const o of Object.keys(n.props))
|
|
197
|
-
b[o] = j.ref;
|
|
198
|
-
if (n.methods)
|
|
199
|
-
for (const o of Object.keys(n.methods))
|
|
200
|
-
b[o] = !1;
|
|
201
|
-
if (n.children)
|
|
202
|
-
for (const o of Object.keys(n.children))
|
|
203
|
-
b[o] = !1;
|
|
204
|
-
b.View = !1, b.msgBus = !1, b.$ = !1;
|
|
205
|
-
const O = {
|
|
206
|
-
onPropChanging: e?.onPropChanging || n.events?.onPropChanging ? (o, r, s) => {
|
|
207
|
-
let h = !0, d = e.onPropChanging;
|
|
208
|
-
return d && (h = d(String(o), r, s)), h && (d = n.events?.onPropChanging, d && (h = d(String(o), r, s))), h;
|
|
209
|
-
} : void 0,
|
|
210
|
-
onPropChange: e?.onPropChange || n.events?.onPropChange ? (o, r) => {
|
|
211
|
-
e.onPropChange?.(String(o), r), n.events.onPropChange?.(String(o), r);
|
|
212
|
-
} : void 0
|
|
213
|
-
};
|
|
214
|
-
function S(o) {
|
|
215
|
-
const r = `${V}${w(o)}`;
|
|
216
|
-
return e[r] || n.events?.[r];
|
|
217
|
-
}
|
|
218
|
-
function D(o) {
|
|
219
|
-
const r = `${Z}${w(o)}`;
|
|
220
|
-
return ((s, h) => {
|
|
221
|
-
let d = !0, m = e[r];
|
|
222
|
-
return m && (d = m(s, h)), d && (m = n.events[r], m && (d = m(s, h))), d;
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function H(o) {
|
|
226
|
-
const r = `${J}${w(o)}`;
|
|
227
|
-
return ((s) => {
|
|
228
|
-
e[r]?.(s), n.events[r]?.(s);
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
if (n.props)
|
|
232
|
-
for (const o of Object.keys(n.props))
|
|
233
|
-
O[o] = {
|
|
234
|
-
onGet: S(o),
|
|
235
|
-
onChanging: D(o),
|
|
236
|
-
onChange: H(o)
|
|
237
|
-
};
|
|
238
|
-
return t = j(t, b, {
|
|
239
|
-
deep: !0
|
|
240
|
-
}), t = K(t, a, O), n.events?.onInit && n.events.onInit(t), e?.onInit && e.onInit(t), t;
|
|
241
|
-
}
|
|
242
|
-
function tn(n, e) {
|
|
243
|
-
const a = A(() => T(n, e));
|
|
244
|
-
return R(() => () => {
|
|
245
|
-
a.current = null;
|
|
246
|
-
}, [n, e]), a.current;
|
|
247
|
-
}
|
|
248
|
-
function on(n) {
|
|
249
|
-
return (e) => {
|
|
250
|
-
const a = n(e);
|
|
251
|
-
return /* @__PURE__ */ y.createElement(a.View, { ...e });
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
export {
|
|
255
|
-
on as getFC,
|
|
256
|
-
G as isBinding,
|
|
257
|
-
_ as toHtmlId,
|
|
258
|
-
tn as useComponent
|
|
259
|
-
};
|
|
260
|
-
//# sourceMappingURL=componentModel.es.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"componentModel.es.es.js","sources":["../../componentModel/componentModel.es.js"],"sourcesContent":["import I, { useLayoutEffect as R, useMemo as H, useEffect as L } from \"react\";\nimport { observer as x } from \"mobx-react-lite\";\nimport { observable as G, runInAction as z } from \"mobx\";\nimport { useLazyRef as U } from \"../reactHooks.es.js\";\nimport { getGlobalFlags as P } from \"../globals.es.js\";\nimport { useComponentContext as _, ReactComponentContext as M } from \"./componentContext.es.js\";\nvar V = /* @__PURE__ */ ((e) => (e[e.None = 0] = \"None\", e[e.FromAncestors = 1] = \"FromAncestors\", e[e.FromDescendants = 2] = \"FromDescendants\", e))(V || {});\nconst E = Symbol(\"$isBinding\");\nclass j {\n // getter\n get;\n // setter\n set;\n converter;\n validator;\n readOnly;\n constructor(t, s, u, n) {\n this.get = t, this.set = s, this.converter = u, this.validator = n, this.readOnly = !!s, this[E] = !0;\n }\n [E];\n}\nfunction Z(e) {\n return e[E] === !0;\n}\nfunction oe(e, t, s, u) {\n return new j(e, t, s, u);\n}\nfunction se(e, t) {\n return new j(\n () => e()[t],\n (s) => {\n e()[t] = s;\n }\n );\n}\nconst J = \"onGet\", K = \"onChanging\", T = \"onChange\";\nfunction q(e, t, s) {\n const u = s.onPropChanging, n = s.onPropChange;\n return new Proxy(e, {\n get(i, g, c) {\n const C = s[g]?.onGet;\n if (C)\n return C();\n const f = t.get(String(g));\n if (f) {\n let a;\n return a = f.get(), a;\n }\n return Reflect.get(i, g, c);\n },\n set(i, g, c, C) {\n const f = i[g], a = s[g]?.onChanging;\n if (a && !a(f, c) || u && !u(g, f, c))\n return !0;\n const k = z(() => Reflect.set(i, g, c, C)), $ = t.get(g);\n $?.set && $.set(c);\n const w = s[g]?.onChange;\n return w && w(c), n && n(g, c), k;\n }\n });\n}\nfunction B(e) {\n return e.replace(/^./, e[0].toUpperCase());\n}\nconst N = {\n sources: /* @__PURE__ */ new Map(),\n count: 0\n};\nfunction Q(e, t = 1) {\n return e.split(/[?#]/)[0].split(\"/\").filter(Boolean).map((c) => decodeURIComponent(c)).slice(-t).join(\"-\").normalize(\"NFKD\").replace(/[^a-zA-Z0-9\\-_:.+#]/g, \"-\").replace(/-+/g, \"-\").replace(/^[^a-zA-Z]+/, \"-\").replace(/[+#]$/, \"-\");\n}\nfunction W(e = 2) {\n const s = new Error().stack?.split(`\n`);\n if (!s || s.length <= e) return null;\n const u = s[e].match(/\\((.*):\\d+:\\d+\\)/);\n return u ? u[1] : null;\n}\nfunction X(e) {\n const t = e?.msgBroker.provide;\n if (t)\n for (const [u, n] of Object.entries(t))\n for (const [i, g] of Object.entries(n)) {\n const c = g, C = c.callback;\n C && (c.callback = (a) => C(a, e));\n const f = c.filter;\n f && (c.filter = (a) => f(a, e)), e.msgBus.provide({\n ...g,\n channel: u,\n group: i,\n config: {\n abortSignal: e.msgBroker.abortController.signal\n }\n });\n }\n const s = e?.msgBroker?.subscribe;\n if (s)\n for (const [u, n] of Object.entries(s))\n for (const [i, g] of Object.entries(n)) {\n const c = g, C = c.callback;\n C && (c.callback = (a) => C(a, e));\n const f = c.filter;\n f && (c.filter = (a) => f(a, e)), e.msgBus.on({\n ...g,\n channel: u,\n group: i,\n config: {\n abortSignal: e.msgBroker.abortController.signal\n }\n });\n }\n}\nfunction Y(e, t) {\n const s = /* @__PURE__ */ new Map(), u = e.view;\n let n, i, g = e.msgBus, c = {\n ...e.msgBroker\n };\n c.abortController || (c.abortController = new AbortController());\n const C = x((r) => {\n const o = i.id, l = _(), b = l.currentId;\n i.parentId = b, g || (g = l.msgBus);\n const h = H(\n () => ({ ...l, currentId: o }),\n [e, t, l]\n );\n R(() => {\n try {\n if (P().debug) {\n const d = i.getHierarchyId;\n console.debug(`${d}>layout`);\n }\n l.register(o, b), i.getHierarchyId = () => l.getHierarchyPath(o), i.getChainDown = () => l.getChainDown(o), i.getChainUp = () => l.getChainUp(o), i.getChildren = () => l.getChildren(o), i.getParent = () => l.getParent(o), i.getNodeMap = () => l.getNodeMap(), X(n), e.events?.onLayout?.(n), t?.onLayout?.(n);\n } catch (d) {\n e.events?.onError?.(n, d), t?.onError?.(n, d);\n }\n return () => {\n if (P().debug) {\n const d = i.getHierarchyId;\n console.debug(`${d}>layout-destroy`);\n }\n l.unregister(o), c.abortController.abort(), e.events?.onLayoutDestroy?.(n), t?.onLayoutDestroy?.(n);\n };\n }, [e, t, l]), L(() => {\n try {\n if (P().debug) {\n const d = i.getHierarchyId;\n console.debug(`${d}>ready`);\n }\n e.events?.onReady?.(n), t?.onReady?.(n);\n } catch (d) {\n if (P().debug) {\n const O = i.getHierarchyId;\n console.debug(`${O}>destroy`);\n }\n e.events?.onError?.(n, d), t?.onError?.(n, d);\n }\n return () => {\n e.events?.onDestroy?.(n), t?.onDestroy?.(n);\n };\n }, [e, t, l]);\n let y;\n try {\n if (P().debug) {\n const d = i.getHierarchyId;\n console.debug(`${d}>view`);\n }\n typeof u == \"function\" ? y = u(r, n) : y = /* @__PURE__ */ I.createElement(I.Fragment, null, r.children);\n } catch (d) {\n const O = JSON.stringify(d);\n y = /* @__PURE__ */ I.createElement(I.Fragment, null, O);\n }\n return /* @__PURE__ */ I.createElement(M.Provider, { value: h }, y);\n });\n let f;\n const a = N.sources, k = W(6), $ = Q(k, 2);\n a.has(k) ? (f = a.get(k), f.count++) : (f = {\n structId: e.name || $ || `Component_${N.count}`,\n count: 0\n }, a.set(k, f), N.count++);\n const w = `${f.structId}#${f.count}`;\n if (i = {\n bindings: s,\n id: w,\n parentId: void 0,\n getHierarchyId: () => {\n },\n getChainDown: () => {\n },\n getChainUp: () => {\n },\n getChildren: () => {\n },\n getParent: () => {\n },\n getNodeMap: () => {\n }\n }, n = {\n ...e.props,\n ...e.methods,\n // view: component.view,\n View: C,\n get msgBus() {\n return g;\n },\n msgBroker: c,\n $: i\n }, e.children)\n for (const [r, o] of Object.entries(e.children))\n if (typeof o == \"function\") {\n const l = o, b = (h) => {\n const y = l(h);\n return /* @__PURE__ */ I.createElement(y.View, null);\n };\n Reflect.set(n, B(r), b);\n } else\n Reflect.set(n, r, o);\n for (const [r, o] of Object.entries(t))\n Z(o) ? s.set(r, o) : Reflect.set(n, r, o);\n const v = {};\n if (e.props)\n for (const r of Object.keys(e.props))\n v[r] = G.ref;\n if (e.methods)\n for (const r of Object.keys(e.methods))\n v[r] = !1;\n if (e.children)\n for (const r of Object.keys(e.children))\n v[r] = !1;\n v.View = !1, v.msgBus = !1, v.$ = !1;\n const D = {\n onPropChanging: t?.onPropChanging || e.events?.onPropChanging ? (r, o, l) => {\n let b = !0, h = t.onPropChanging;\n return h && (b = h(String(r), o, l)), b && (h = e.events?.onPropChanging, h && (b = h(String(r), o, l))), b;\n } : void 0,\n onPropChange: t?.onPropChange || e.events?.onPropChange ? (r, o) => {\n t.onPropChange?.(String(r), o), e.events.onPropChange?.(String(r), o);\n } : void 0\n };\n function S(r) {\n const o = `${J}${B(r)}`;\n return t[o] || e.events?.[o];\n }\n function A(r) {\n const o = `${K}${B(r)}`;\n return ((l, b) => {\n let h = !0, y = t[o];\n return y && (h = y(l, b)), h && (y = e.events[o], y && (h = y(l, b))), h;\n });\n }\n function F(r) {\n const o = `${T}${B(r)}`;\n return ((l) => {\n t[o]?.(l), e.events[o]?.(l);\n });\n }\n if (e.props)\n for (const r of Object.keys(e.props))\n D[r] = {\n onGet: S(r),\n onChanging: A(r),\n onChange: F(r)\n };\n return n = G(n, v, {\n deep: !0\n }), n = q(n, s, D), e.events?.onInit && e.events.onInit(n), t?.onInit && t.onInit(n), n;\n}\nfunction ie(e, t) {\n const s = U(() => Y(e, t));\n return R(() => () => {\n s.current = null;\n }, [e, t]), s.current;\n}\nfunction ce(e) {\n return (s) => {\n const u = e(s);\n return /* @__PURE__ */ I.createElement(u.View, { ...s });\n };\n}\nexport {\n V as ComponentMsgHeaderFilter,\n oe as bind,\n se as bindProp,\n ce as getFC,\n Z as isBinding,\n Q as toHtmlId,\n ie as useComponent\n};\n//# sourceMappingURL=componentModel.es.js.map\n"],"names":["E","Z","e","J","K","T","q","t","s","u","n","i","g","c","C","f","a","k","z","$","w","B","N","Q","W","X","Y","x","r","o","l","_","b","h","H","R","P","d","L","O","y","I","M","v","G","D","S","A","F","ie","U","ce"],"mappings":";;;;;;AAOA,MAAMA,IAAI,OAAO,YAAY;AAc7B,SAASC,EAAEC,GAAG;AACZ,SAAOA,EAAEF,CAAC,MAAM;AAClB;AAYA,MAAMG,IAAI,SAASC,IAAI,cAAcC,IAAI;AACzC,SAASC,EAAEJ,GAAGK,GAAGC,GAAG;AAClB,QAAMC,IAAID,EAAE,gBAAgBE,IAAIF,EAAE;AAClC,SAAO,IAAI,MAAMN,GAAG;AAAA,IAClB,IAAIS,GAAGC,GAAGC,GAAG;AACX,YAAMC,IAAIN,EAAEI,CAAC,GAAG;AAChB,UAAIE;AACF,eAAOA,EAAC;AACV,YAAMC,IAAIR,EAAE,IAAI,OAAOK,CAAC,CAAC;AACzB,UAAIG,GAAG;AACL,YAAIC;AACJ,eAAOA,IAAID,EAAE,IAAG,GAAIC;AAAA,MACtB;AACA,aAAO,QAAQ,IAAIL,GAAGC,GAAGC,C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AO4B,EAAE,MAAM,MAAM;AACnB,IAAA3B,EAAE,UAAU;AAAA,EACd,GAAG,CAACN,GAAGK,CAAC,CAAC,GAAGC,EAAE;AAChB;AACA,SAAS2C,GAAGjD,GAAG;AACb,SAAO,CAACM,MAAM;AACZ,UAAMC,IAAIP,EAAEM,CAAC;AACb,WAAuBiC,gBAAAA,EAAE,cAAchC,EAAE,MAAM,EAAE,GAAGD,GAAG;AAAA,EACzD;AACF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globals.es.es.js","sources":["../globals.es.js"],"sourcesContent":["const l = {\n debug: !1\n};\nfunction e() {\n return typeof globalThis > \"u\" ? l : window.__DYNSTRUCT__ || l;\n}\nexport {\n e as getGlobalFlags\n};\n//# sourceMappingURL=globals.es.js.map\n"],"names":["l","e"],"mappings":"AAAA,MAAMA,IAAI;AAAA,EACR,OAAO;AACT;AACA,SAASC,IAAI;AACX,SAAO,OAAO,aAAa,MAAMD,IAAI,OAAO,iBAAiBA;AAC/D;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactHooks.es.es.js","sources":["../reactHooks.es.js"],"sourcesContent":["import { useRef as n } from \"react\";\nfunction t(e) {\n const r = n(null);\n return r.current === null && (r.current = e()), r;\n}\nexport {\n t as useLazyRef\n};\n//# sourceMappingURL=reactHooks.es.js.map\n"],"names":["t","n"],"mappings":";AACA,SAASA,EAAE,GAAG;AACZ,QAAM,IAAIC,EAAE,IAAI;AAChB,SAAO,EAAE,YAAY,SAAS,EAAE,UAAU,EAAC,IAAK;AAClD;"}
|