@adaas/a-frame 0.0.22 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.conf/tsconfig.browser.json +13 -0
- package/.conf/tsconfig.node.json +14 -0
- package/.env.example +12 -0
- package/dist/browser/A-FrameBrowserStorageBlobs.context-OEQr85oq.d.mts +40 -0
- package/dist/browser/A-FrameBundle.types-DaaUvViw.d.mts +33 -0
- package/dist/browser/A-FrameChannel.types-DWOEUs28.d.mts +142 -0
- package/dist/browser/A-FrameDefinition.entity-DWGN_Ujr.d.mts +329 -0
- package/dist/browser/A-FrameDynamicStructure.entity-DaBgSRCR.d.mts +188 -0
- package/dist/browser/A-FrameLogger.component.env-browser-BIPAP4oQ.d.mts +112 -0
- package/dist/browser/A-FrameNamespace.entity-rCm1AavP.d.mts +125 -0
- package/dist/browser/bundle.d.mts +8 -0
- package/dist/browser/bundle.mjs +2 -0
- package/dist/browser/bundle.mjs.map +1 -0
- package/dist/browser/channel.d.mts +165 -0
- package/dist/browser/channel.mjs +3 -0
- package/dist/browser/channel.mjs.map +1 -0
- package/dist/browser/chunk-5TTVFB3G.mjs +2 -0
- package/dist/browser/chunk-5TTVFB3G.mjs.map +1 -0
- package/dist/browser/chunk-AYN7KUQT.mjs +3 -0
- package/dist/browser/chunk-AYN7KUQT.mjs.map +1 -0
- package/dist/browser/chunk-DMGQW3AO.mjs +2 -0
- package/dist/browser/chunk-DMGQW3AO.mjs.map +1 -0
- package/dist/browser/chunk-G66IL2DR.mjs +2 -0
- package/dist/browser/chunk-G66IL2DR.mjs.map +1 -0
- package/dist/browser/chunk-GOADBDTE.mjs +2 -0
- package/dist/browser/chunk-GOADBDTE.mjs.map +1 -0
- package/dist/browser/chunk-H6OZP4ZV.mjs +2 -0
- package/dist/browser/chunk-H6OZP4ZV.mjs.map +1 -0
- package/dist/browser/chunk-INS7RO3B.mjs +2 -0
- package/dist/browser/chunk-INS7RO3B.mjs.map +1 -0
- package/dist/browser/chunk-K4MZY4ME.mjs +2 -0
- package/dist/browser/chunk-K4MZY4ME.mjs.map +1 -0
- package/dist/browser/chunk-OFKV5GNB.mjs +3 -0
- package/dist/browser/chunk-OFKV5GNB.mjs.map +1 -0
- package/dist/browser/chunk-QATIN7CO.mjs +3 -0
- package/dist/browser/chunk-QATIN7CO.mjs.map +1 -0
- package/dist/browser/chunk-QBBQ37P3.mjs +2 -0
- package/dist/browser/chunk-QBBQ37P3.mjs.map +1 -0
- package/dist/browser/chunk-VDVJWU5T.mjs +2 -0
- package/dist/browser/chunk-VDVJWU5T.mjs.map +1 -0
- package/dist/browser/chunk-X3C4I6YJ.mjs +2 -0
- package/dist/browser/chunk-X3C4I6YJ.mjs.map +1 -0
- package/dist/browser/chunk-YQJFTBGV.mjs +3 -0
- package/dist/browser/chunk-YQJFTBGV.mjs.map +1 -0
- package/dist/browser/chunk-ZVCTU2DN.mjs +3 -0
- package/dist/browser/chunk-ZVCTU2DN.mjs.map +1 -0
- package/dist/browser/core.d.mts +97 -0
- package/dist/browser/core.mjs +2 -0
- package/dist/browser/core.mjs.map +1 -0
- package/dist/browser/crypto.d.mts +35 -0
- package/dist/browser/crypto.mjs +2 -0
- package/dist/browser/crypto.mjs.map +1 -0
- package/dist/browser/definition.d.mts +13 -0
- package/dist/browser/definition.mjs +2 -0
- package/dist/browser/definition.mjs.map +1 -0
- package/dist/browser/dynamic-feature.d.mts +10 -0
- package/dist/browser/dynamic-feature.mjs +2 -0
- package/dist/browser/dynamic-feature.mjs.map +1 -0
- package/dist/browser/dynamic-structure.d.mts +12 -0
- package/dist/browser/dynamic-structure.mjs +2 -0
- package/dist/browser/dynamic-structure.mjs.map +1 -0
- package/dist/browser/env.d.mts +2 -0
- package/dist/browser/env.mjs +2 -0
- package/dist/browser/env.mjs.map +1 -0
- package/dist/browser/frame-index.d.mts +95 -0
- package/dist/browser/frame-index.mjs +2 -0
- package/dist/browser/frame-index.mjs.map +1 -0
- package/dist/browser/index.browser-CZlhzfSP.d.mts +22 -0
- package/dist/browser/index.d.mts +1 -144
- package/dist/browser/index.mjs +1 -1
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/logger.d.mts +41 -0
- package/dist/browser/logger.mjs +2 -0
- package/dist/browser/logger.mjs.map +1 -0
- package/dist/browser/namespace.d.mts +13 -0
- package/dist/browser/namespace.mjs +2 -0
- package/dist/browser/namespace.mjs.map +1 -0
- package/dist/browser/storage.d.mts +194 -0
- package/dist/browser/storage.mjs +2 -0
- package/dist/browser/storage.mjs.map +1 -0
- package/dist/browser/vector.d.mts +15 -0
- package/dist/browser/vector.mjs +2 -0
- package/dist/browser/vector.mjs.map +1 -0
- package/dist/index.cjs +0 -0
- package/dist/node/A-FrameChannel.component-BfBcs734.d.ts +62 -0
- package/dist/node/A-FrameChannel.component-NNKcFViw.d.mts +62 -0
- package/dist/node/A-FrameChannel.types-DQF-IiRq.d.mts +146 -0
- package/dist/node/A-FrameChannel.types-DQF-IiRq.d.ts +146 -0
- package/dist/node/A-FrameDefinition.entity-CAUOdEvU.d.ts +329 -0
- package/dist/node/A-FrameDefinition.entity-DWGN_Ujr.d.mts +329 -0
- package/dist/node/A-FrameDynamicStructure.entity-DaBgSRCR.d.mts +188 -0
- package/dist/node/A-FrameDynamicStructure.entity-DaBgSRCR.d.ts +188 -0
- package/dist/node/A-FrameNamespace.entity-D3fZBGDx.d.ts +125 -0
- package/dist/node/A-FrameNamespace.entity-rCm1AavP.d.mts +125 -0
- package/dist/node/A-FrameStorage.component-BYjHfHJJ.d.mts +107 -0
- package/dist/node/A-FrameStorage.component-CT01fs-t.d.ts +107 -0
- package/dist/node/bundle.cjs +101 -0
- package/dist/node/bundle.cjs.map +1 -0
- package/dist/node/bundle.d.mts +69 -0
- package/dist/node/bundle.d.ts +69 -0
- package/dist/node/bundle.mjs +76 -0
- package/dist/node/bundle.mjs.map +1 -0
- package/dist/node/channel.cjs +60 -0
- package/dist/node/channel.cjs.map +1 -0
- package/dist/node/channel.d.mts +61 -0
- package/dist/node/channel.d.ts +61 -0
- package/dist/node/channel.mjs +11 -0
- package/dist/node/channel.mjs.map +1 -0
- package/dist/node/chunk-3LOMGNWA.cjs +8 -0
- package/dist/node/chunk-3LOMGNWA.cjs.map +1 -0
- package/dist/node/chunk-3ONWH75E.mjs +257 -0
- package/dist/node/chunk-3ONWH75E.mjs.map +1 -0
- package/dist/node/chunk-3TD2PEDZ.mjs +53 -0
- package/dist/node/chunk-3TD2PEDZ.mjs.map +1 -0
- package/dist/node/chunk-442DXGOD.mjs +16 -0
- package/dist/node/chunk-442DXGOD.mjs.map +1 -0
- package/dist/node/chunk-5BKCX2RO.mjs +33 -0
- package/dist/node/chunk-5BKCX2RO.mjs.map +1 -0
- package/dist/node/chunk-6EFXNUL4.mjs +6 -0
- package/dist/node/chunk-6EFXNUL4.mjs.map +1 -0
- package/dist/node/chunk-6KAGWGTE.mjs +529 -0
- package/dist/node/chunk-6KAGWGTE.mjs.map +1 -0
- package/dist/node/chunk-7A6XGT5J.cjs +541 -0
- package/dist/node/chunk-7A6XGT5J.cjs.map +1 -0
- package/dist/node/chunk-AOQRXZPC.mjs +207 -0
- package/dist/node/chunk-AOQRXZPC.mjs.map +1 -0
- package/dist/node/chunk-APRYHBEF.mjs +171 -0
- package/dist/node/chunk-APRYHBEF.mjs.map +1 -0
- package/dist/node/chunk-B7BXP7K4.mjs +253 -0
- package/dist/node/chunk-B7BXP7K4.mjs.map +1 -0
- package/dist/node/chunk-B7ZDJXD3.cjs +35 -0
- package/dist/node/chunk-B7ZDJXD3.cjs.map +1 -0
- package/dist/node/chunk-CP6JHUU6.cjs +541 -0
- package/dist/node/chunk-CP6JHUU6.cjs.map +1 -0
- package/dist/node/chunk-DDCEMKBP.mjs +655 -0
- package/dist/node/chunk-DDCEMKBP.mjs.map +1 -0
- package/dist/node/chunk-DMY44VUG.mjs +655 -0
- package/dist/node/chunk-DMY44VUG.mjs.map +1 -0
- package/dist/node/chunk-F46TSY2K.cjs +541 -0
- package/dist/node/chunk-F46TSY2K.cjs.map +1 -0
- package/dist/node/chunk-F4UCOZW5.mjs +33 -0
- package/dist/node/chunk-F4UCOZW5.mjs.map +1 -0
- package/dist/node/chunk-GBTFMT3K.cjs +256 -0
- package/dist/node/chunk-GBTFMT3K.cjs.map +1 -0
- package/dist/node/chunk-GNVXVK2B.cjs +8 -0
- package/dist/node/chunk-GNVXVK2B.cjs.map +1 -0
- package/dist/node/chunk-GRR6NNWY.cjs +688 -0
- package/dist/node/chunk-GRR6NNWY.cjs.map +1 -0
- package/dist/node/chunk-IIVYTS5M.mjs +239 -0
- package/dist/node/chunk-IIVYTS5M.mjs.map +1 -0
- package/dist/node/chunk-JQBYDEMW.mjs +33 -0
- package/dist/node/chunk-JQBYDEMW.mjs.map +1 -0
- package/dist/node/chunk-K4MZY4ME.mjs +3 -0
- package/dist/node/chunk-K4MZY4ME.mjs.map +1 -0
- package/dist/node/chunk-KK64VLZN.cjs +4 -0
- package/dist/node/chunk-KK64VLZN.cjs.map +1 -0
- package/dist/node/chunk-KLG6HKFU.cjs +175 -0
- package/dist/node/chunk-KLG6HKFU.cjs.map +1 -0
- package/dist/node/chunk-LJIZ47HO.cjs +688 -0
- package/dist/node/chunk-LJIZ47HO.cjs.map +1 -0
- package/dist/node/chunk-NIXKAQVP.cjs +35 -0
- package/dist/node/chunk-NIXKAQVP.cjs.map +1 -0
- package/dist/node/chunk-OI76LHVT.mjs +21 -0
- package/dist/node/chunk-OI76LHVT.mjs.map +1 -0
- package/dist/node/chunk-OJGCQNAH.mjs +529 -0
- package/dist/node/chunk-OJGCQNAH.mjs.map +1 -0
- package/dist/node/chunk-OYC6L5NX.mjs +6 -0
- package/dist/node/chunk-OYC6L5NX.mjs.map +1 -0
- package/dist/node/chunk-QFHZIG7Y.cjs +25 -0
- package/dist/node/chunk-QFHZIG7Y.cjs.map +1 -0
- package/dist/node/chunk-QFUZVN4Y.cjs +259 -0
- package/dist/node/chunk-QFUZVN4Y.cjs.map +1 -0
- package/dist/node/chunk-R2H234YO.cjs +8 -0
- package/dist/node/chunk-R2H234YO.cjs.map +1 -0
- package/dist/node/chunk-RRLTGGM7.cjs +209 -0
- package/dist/node/chunk-RRLTGGM7.cjs.map +1 -0
- package/dist/node/chunk-SDKIJDMH.mjs +655 -0
- package/dist/node/chunk-SDKIJDMH.mjs.map +1 -0
- package/dist/node/chunk-TO4BPKCY.mjs +6 -0
- package/dist/node/chunk-TO4BPKCY.mjs.map +1 -0
- package/dist/node/chunk-UKKCN7CQ.cjs +688 -0
- package/dist/node/chunk-UKKCN7CQ.cjs.map +1 -0
- package/dist/node/chunk-UPA7VN4R.mjs +153 -0
- package/dist/node/chunk-UPA7VN4R.mjs.map +1 -0
- package/dist/node/chunk-UTJ7CVVB.cjs +248 -0
- package/dist/node/chunk-UTJ7CVVB.cjs.map +1 -0
- package/dist/node/chunk-XFUF7SDO.cjs +35 -0
- package/dist/node/chunk-XFUF7SDO.cjs.map +1 -0
- package/dist/node/chunk-YVX4W6SI.cjs +155 -0
- package/dist/node/chunk-YVX4W6SI.cjs.map +1 -0
- package/dist/node/chunk-YWWGJ6EJ.cjs +55 -0
- package/dist/node/chunk-YWWGJ6EJ.cjs.map +1 -0
- package/dist/node/chunk-Z4HUCRK2.mjs +529 -0
- package/dist/node/chunk-Z4HUCRK2.mjs.map +1 -0
- package/dist/node/chunk-ZM2RLVVH.cjs +18 -0
- package/dist/node/chunk-ZM2RLVVH.cjs.map +1 -0
- package/dist/node/core.cjs +259 -0
- package/dist/node/core.cjs.map +1 -0
- package/dist/node/core.d.mts +76 -0
- package/dist/node/core.d.ts +76 -0
- package/dist/node/core.mjs +248 -0
- package/dist/node/core.mjs.map +1 -0
- package/dist/node/crypto.cjs +13 -0
- package/dist/node/crypto.cjs.map +1 -0
- package/dist/node/crypto.d.mts +44 -0
- package/dist/node/crypto.d.ts +44 -0
- package/dist/node/crypto.mjs +4 -0
- package/dist/node/crypto.mjs.map +1 -0
- package/dist/node/definition.cjs +19 -0
- package/dist/node/definition.cjs.map +1 -0
- package/dist/node/definition.d.mts +13 -0
- package/dist/node/definition.d.ts +13 -0
- package/dist/node/definition.mjs +6 -0
- package/dist/node/definition.mjs.map +1 -0
- package/dist/node/dynamic-feature.cjs +14 -0
- package/dist/node/dynamic-feature.cjs.map +1 -0
- package/dist/node/dynamic-feature.d.mts +10 -0
- package/dist/node/dynamic-feature.d.ts +10 -0
- package/dist/node/dynamic-feature.mjs +12 -0
- package/dist/node/dynamic-feature.mjs.map +1 -0
- package/dist/node/dynamic-structure.cjs +143 -0
- package/dist/node/dynamic-structure.cjs.map +1 -0
- package/dist/node/dynamic-structure.d.mts +12 -0
- package/dist/node/dynamic-structure.d.ts +12 -0
- package/dist/node/dynamic-structure.mjs +138 -0
- package/dist/node/dynamic-structure.mjs.map +1 -0
- package/dist/node/env.cjs +14 -0
- package/dist/node/env.cjs.map +1 -0
- package/dist/node/env.d.mts +22 -0
- package/dist/node/env.d.ts +22 -0
- package/dist/node/env.mjs +5 -0
- package/dist/node/env.mjs.map +1 -0
- package/dist/node/frame-index.cjs +16 -0
- package/dist/node/frame-index.cjs.map +1 -0
- package/dist/node/frame-index.d.mts +95 -0
- package/dist/node/frame-index.d.ts +95 -0
- package/dist/node/frame-index.mjs +7 -0
- package/dist/node/frame-index.mjs.map +1 -0
- package/dist/node/index.cjs +0 -288
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.mts +1 -144
- package/dist/node/index.d.ts +1 -144
- package/dist/node/index.mjs +0 -284
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/logger.cjs +41 -0
- package/dist/node/logger.cjs.map +1 -0
- package/dist/node/logger.d.mts +150 -0
- package/dist/node/logger.d.ts +150 -0
- package/dist/node/logger.mjs +4 -0
- package/dist/node/logger.mjs.map +1 -0
- package/dist/node/namespace.cjs +24 -0
- package/dist/node/namespace.cjs.map +1 -0
- package/dist/node/namespace.d.mts +13 -0
- package/dist/node/namespace.d.ts +13 -0
- package/dist/node/namespace.mjs +7 -0
- package/dist/node/namespace.mjs.map +1 -0
- package/dist/node/storage.cjs +42 -0
- package/dist/node/storage.cjs.map +1 -0
- package/dist/node/storage.d.mts +110 -0
- package/dist/node/storage.d.ts +110 -0
- package/dist/node/storage.mjs +13 -0
- package/dist/node/storage.mjs.map +1 -0
- package/dist/node/vector.cjs +13 -0
- package/dist/node/vector.cjs.map +1 -0
- package/dist/node/vector.d.mts +15 -0
- package/dist/node/vector.d.ts +15 -0
- package/dist/node/vector.mjs +4 -0
- package/dist/node/vector.mjs.map +1 -0
- package/jest.config.browser.ts +41 -0
- package/jest.config.ts +18 -8
- package/package.json +125 -13
- package/{index.ts → src/concept.ts} +5 -2
- package/src/helpers/Hash.helper.ts +14 -0
- package/src/index.ts +0 -24
- package/src/lib/A-Frame/A-Frame.component.env-browser.ts +126 -0
- package/src/lib/A-Frame/A-Frame.component.env-node.ts +105 -0
- package/src/lib/A-Frame/A-Frame.component.ts +62 -0
- package/src/lib/A-Frame/A-Frame.context.ts +40 -0
- package/src/lib/{components/Index.component.ts/Index.error.ts → A-Frame/A-Frame.error.ts} +1 -1
- package/src/lib/{components/Index.component.ts/Index.guard.ts → A-Frame/A-Frame.guard.ts} +9 -6
- package/src/lib/A-Frame/A-Frame.meta.ts +27 -0
- package/src/lib/{components/Index.component.ts/Index.types.ts → A-Frame/A-Frame.types.ts} +52 -17
- package/src/lib/A-Frame/decorators/A-FrameDefine.decorator.ts +104 -0
- package/src/lib/A-Frame/decorators/A-FrameNamespace.decorator.ts +33 -0
- package/src/lib/A-Frame/index.browser.ts +10 -0
- package/src/lib/A-Frame/index.ts +10 -0
- package/src/lib/A-FrameBundle/A-FrameBundle.builder.env-node.ts +95 -0
- package/src/lib/A-FrameBundle/A-FrameBundle.constants.ts +5 -0
- package/src/lib/A-FrameBundle/A-FrameBundle.types.ts +31 -0
- package/src/lib/A-FrameBundle/index.browser.ts +6 -0
- package/src/lib/A-FrameBundle/index.ts +7 -0
- package/src/lib/A-FrameCLI/A-FrameCLI.container.ts +333 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.component.env-browser.ts +63 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.component.env-node.ts +586 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.component.ts +273 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.constants.ts +39 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.error.ts +10 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.types.ts +143 -0
- package/src/lib/A-FrameChannel/A-FrameChannelEvent.context.ts +28 -0
- package/src/lib/A-FrameChannel/A-FrameChannelRequest.context.ts +36 -0
- package/src/lib/A-FrameChannel/A-FrameChannelSocket.entity.ts +189 -0
- package/src/lib/A-FrameChannel/A-FrameChannelStream.entity.ts +144 -0
- package/src/lib/A-FrameChannel/index.browser.ts +3 -0
- package/src/lib/A-FrameChannel/index.ts +10 -0
- package/src/lib/A-FrameCrypto/A-FrameCrypto.component.env-browser.ts +123 -0
- package/src/lib/A-FrameCrypto/A-FrameCrypto.component.env-node.ts +204 -0
- package/src/lib/A-FrameCrypto/index.browser.ts +1 -0
- package/src/lib/A-FrameCrypto/index.ts +1 -0
- package/src/lib/A-FrameDefinition/A-FrameDefinition.constants.ts +8 -0
- package/src/lib/A-FrameDefinition/A-FrameDefinition.entity.ts +290 -0
- package/src/lib/A-FrameDefinition/A-FrameDefinition.types.ts +109 -0
- package/src/lib/A-FrameDefinition/index.ts +3 -0
- package/src/lib/A-FrameDynamicFeature/A-FrameDynamicFeature.entity.ts +13 -0
- package/src/lib/A-FrameDynamicFeature/A-FrameDynamicFeature.types.ts +10 -0
- package/src/lib/A-FrameDynamicFeature/index.ts +2 -0
- package/src/lib/A-FrameDynamicPatch/A-FrameDynamicPatch.entity.ts +38 -0
- package/src/lib/A-FrameDynamicPatch/A-FrameDynamicPatch.types.ts +20 -0
- package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.constants.ts +9 -0
- package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.entity.ts +91 -0
- package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.types.ts +18 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.constants.ts +13 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.entity.ts +187 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.error.ts +13 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.types.ts +128 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructureOperation.context.ts +32 -0
- package/src/lib/A-FrameDynamicStructure/index.ts +5 -0
- package/src/lib/A-FrameEnv/A-FrameEnv.fragment.env-browser.ts +31 -0
- package/src/lib/A-FrameEnv/A-FrameEnv.fragment.env-node.ts +39 -0
- package/src/lib/A-FrameEnv/A-FrameEnv.types.ts +7 -0
- package/src/lib/A-FrameEnv/index.browser.ts +1 -0
- package/src/lib/A-FrameEnv/index.ts +1 -0
- package/src/lib/A-FrameIndex/A-FrameIndex.context.ts +321 -0
- package/src/lib/A-FrameIndex/A-FrameIndex.types.ts +63 -0
- package/src/lib/A-FrameIndex/index.browser.ts +3 -0
- package/src/lib/A-FrameIndex/index.ts +3 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.component.env-browser.ts +99 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.component.env-node.ts +129 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.component.ts +123 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.constants.ts +66 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.types.ts +67 -0
- package/src/lib/A-FrameLogger/index.browser.ts +4 -0
- package/src/lib/A-FrameLogger/index.ts +4 -0
- package/src/lib/A-FrameNamespace/A-FrameNamespace.constants.ts +12 -0
- package/src/lib/A-FrameNamespace/A-FrameNamespace.entity.ts +211 -0
- package/src/lib/A-FrameNamespace/A-FrameNamespace.types.ts +72 -0
- package/src/lib/A-FrameNamespace/index.ts +3 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.codec.ts +338 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.component.ts +191 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.constants.ts +11 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.error.ts +13 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.types.ts +98 -0
- package/src/lib/A-FrameStorage/A-FrameStorageOperation.context.ts +59 -0
- package/src/lib/A-FrameStorage/browser/A-FrameBrowserStorage.component.ts +312 -0
- package/src/lib/A-FrameStorage/browser/A-FrameBrowserStorageBlobs.context.ts +77 -0
- package/src/lib/A-FrameStorage/index.browser.ts +11 -0
- package/src/lib/A-FrameStorage/index.ts +10 -0
- package/src/lib/A-FrameStorage/node/A-FrameNodeStorage.component.ts +464 -0
- package/src/lib/A-FrameStorage/server/A-FrameServerStorage.component.ts +177 -0
- package/src/lib/{entities/A_FrameVector/A_FrameVector.entity.ts → A-FrameVector/A-FrameVector.entity.ts} +10 -0
- package/src/lib/A-FrameVector/index.ts +3 -0
- package/tests/A-Frame.browser.test.ts +94 -0
- package/tests/A-Frame.test.ts +74 -67
- package/tests/jest.browser-environment.js +30 -0
- package/tests/jest.polyfills.browser.ts +13 -0
- package/tests/jest.setup.browser.ts +33 -0
- package/tsconfig.browser.json +54 -0
- package/tsconfig.json +16 -0
- package/tsup.config.ts +32 -2
- package/src/lib/components/Builder.component.ts/Builder.component.ts +0 -0
- package/src/lib/components/Index.component.ts/Index.component.ts +0 -79
- package/src/lib/components/Index.component.ts/Index.constants.ts +0 -0
- package/src/lib/components/Index.component.ts/Index.meta.ts +0 -28
- package/src/lib/components/Index.component.ts/IndexConfigurations.meta.ts +0 -78
- package/src/lib/components/Index.component.ts/decorators/IndexComponent.decorator.ts +0 -97
- package/src/lib/components/Index.component.ts/decorators/IndexDescribe.decorator.ts +0 -59
- package/src/lib/components/Index.component.ts/decorators/IndexNamespace.decorator.ts +0 -57
- package/src/lib/components/Search/A_FrameSearch.component.ts +0 -66
- package/src/lib/containers/CLI.container.ts +0 -27
- package/src/lib/entities/Namespace/Namespace.entity.ts +0 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { A_FrameIndex } from './chunk-AOQRXZPC.mjs';
|
|
2
|
+
import './chunk-APRYHBEF.mjs';
|
|
3
|
+
import './chunk-442DXGOD.mjs';
|
|
4
|
+
import './chunk-3TD2PEDZ.mjs';
|
|
5
|
+
import './chunk-OI76LHVT.mjs';
|
|
6
|
+
//# sourceMappingURL=frame-index.mjs.map
|
|
7
|
+
//# sourceMappingURL=frame-index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"frame-index.mjs"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,292 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var aConcept = require('@adaas/a-concept');
|
|
4
|
-
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
-
if (decorator = decorators[i])
|
|
11
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
-
if (kind && result) __defProp(target, key, result);
|
|
13
|
-
return result;
|
|
14
|
-
};
|
|
15
|
-
var A_Frame_CLIContainer = class extends aConcept.A_Container {
|
|
16
|
-
async initialize() {
|
|
17
|
-
if (aConcept.A_Context.environment !== "server") {
|
|
18
|
-
throw new aConcept.A_Error("A-Frame CLI can only be used in Node.js environment.");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
async readCommandParams() {
|
|
22
|
-
console.log("Reading command parameters from CLI...");
|
|
23
|
-
const args = process.argv.slice(2);
|
|
24
|
-
console.log("Command Line Arguments:", args);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
__decorateClass([
|
|
28
|
-
aConcept.A_Concept.Load()
|
|
29
|
-
], A_Frame_CLIContainer.prototype, "initialize", 1);
|
|
30
|
-
__decorateClass([
|
|
31
|
-
aConcept.A_Concept.Start()
|
|
32
|
-
], A_Frame_CLIContainer.prototype, "readCommandParams", 1);
|
|
33
|
-
|
|
34
|
-
// src/lib/components/Index.component.ts/Index.types.ts
|
|
35
|
-
var A_Frame_IndexTargetType = /* @__PURE__ */ ((A_Frame_IndexTargetType2) => {
|
|
36
|
-
A_Frame_IndexTargetType2["COMPONENT"] = "component";
|
|
37
|
-
A_Frame_IndexTargetType2["ENTITY"] = "entity";
|
|
38
|
-
A_Frame_IndexTargetType2["CONTAINER"] = "container";
|
|
39
|
-
A_Frame_IndexTargetType2["FRAGMENT"] = "fragment";
|
|
40
|
-
A_Frame_IndexTargetType2["METHOD"] = "method";
|
|
41
|
-
return A_Frame_IndexTargetType2;
|
|
42
|
-
})(A_Frame_IndexTargetType || {});
|
|
43
|
-
var A_Frame_IndexError = class extends aConcept.A_Error {
|
|
44
|
-
};
|
|
45
|
-
A_Frame_IndexError.InvalidTarget = "A-Frame Index Invalid Target Error";
|
|
46
|
-
A_Frame_IndexError.InvalidConfiguration = "A-Frame Index Invalid Configuration Error";
|
|
47
|
-
A_Frame_IndexError.IndexDefinitionError = "A-Frame Index Definition Error";
|
|
48
|
-
A_Frame_IndexError.IndexMetadataError = "A-Frame Index Metadata Error";
|
|
49
|
-
A_Frame_IndexError.IndexRegistryError = "A-Frame Index Registry Error";
|
|
50
|
-
A_Frame_IndexError.IndexComponentNotFoundError = "A-Frame Index Component Not Found Error";
|
|
51
|
-
var A_Frame_IndexTypeGuard = class {
|
|
52
|
-
/**
|
|
53
|
-
* Determines if the target is an allowed type for indexing
|
|
54
|
-
*
|
|
55
|
-
* @param target
|
|
56
|
-
* @returns
|
|
57
|
-
*/
|
|
58
|
-
static isAllowedTarget(target) {
|
|
59
|
-
return aConcept.A_TypeGuards.isEntityConstructor(target) || aConcept.A_TypeGuards.isComponentConstructor(target) || aConcept.A_TypeGuards.isContainerConstructor(target) || aConcept.A_TypeGuards.isFragmentConstructor(target) || aConcept.A_TypeGuards.isComponentInstance(target) || aConcept.A_TypeGuards.isContainerInstance(target) || aConcept.A_TypeGuards.isEntityInstance(target) || aConcept.A_TypeGuards.isFragmentInstance(target);
|
|
60
|
-
}
|
|
61
|
-
static getTargetName(target) {
|
|
62
|
-
return aConcept.A_CommonHelper.getComponentName(target);
|
|
63
|
-
}
|
|
64
|
-
static getTargetConstructor(target) {
|
|
65
|
-
return typeof target === "function" ? target : target.constructor;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// src/lib/components/Index.component.ts/decorators/IndexComponent.decorator.ts
|
|
70
|
-
function A_Frame_IndexDecorator(componentType, config = {}) {
|
|
71
|
-
return function(target, propertyKey, descriptor) {
|
|
72
|
-
if (propertyKey && descriptor && componentType === "method" /* METHOD */) {
|
|
73
|
-
const targetClass = target.constructor;
|
|
74
|
-
const methodName = String(propertyKey);
|
|
75
|
-
try {
|
|
76
|
-
const indexMeta = aConcept.A_Context.meta(exports.A_Frame);
|
|
77
|
-
const targetMeta = indexMeta.getMetaFor(targetClass);
|
|
78
|
-
if (!!config.namespace && !!targetMeta.namespace && config.namespace !== targetMeta.namespace) {
|
|
79
|
-
throw new A_Frame_IndexError(
|
|
80
|
-
A_Frame_IndexError.InvalidConfiguration,
|
|
81
|
-
`Method namespace '${config.namespace}' does not match target class namespace '${targetMeta.namespace}'.`
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
const methodInfo = {
|
|
85
|
-
name: config.name || methodName,
|
|
86
|
-
description: config.description,
|
|
87
|
-
namespace: config.namespace || targetMeta.namespace,
|
|
88
|
-
methodName
|
|
89
|
-
};
|
|
90
|
-
targetMeta.addMethod(methodInfo);
|
|
91
|
-
indexMeta.seMetaFor(targetClass, targetMeta);
|
|
92
|
-
return descriptor;
|
|
93
|
-
} catch (error) {
|
|
94
|
-
throw new A_Frame_IndexError(
|
|
95
|
-
A_Frame_IndexError.IndexDefinitionError,
|
|
96
|
-
`Unable to apply @A_Frame_Index.Method decorator on '${targetClass.name}.${methodName}': ${error instanceof Error ? error.message : "Unknown error"}`
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if (!A_Frame_IndexTypeGuard.isAllowedTarget(target)) {
|
|
101
|
-
throw new A_Frame_IndexError(
|
|
102
|
-
A_Frame_IndexError.InvalidTarget,
|
|
103
|
-
`@A_Frame_Index.${componentType} decorator can only be applied to allowed targets.`
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
const componentName = aConcept.A_CommonHelper.getComponentName(target);
|
|
107
|
-
try {
|
|
108
|
-
const indexMeta = aConcept.A_Context.meta(exports.A_Frame);
|
|
109
|
-
const targetClass = A_Frame_IndexTypeGuard.getTargetConstructor(target);
|
|
110
|
-
const targetMeta = indexMeta.getMetaFor(targetClass);
|
|
111
|
-
targetMeta.name = config.name || componentName;
|
|
112
|
-
targetMeta.description = config.description;
|
|
113
|
-
targetMeta.namespace = config.namespace;
|
|
114
|
-
targetMeta.type = componentType;
|
|
115
|
-
indexMeta.seMetaFor(targetClass, targetMeta);
|
|
116
|
-
return target;
|
|
117
|
-
} catch (error) {
|
|
118
|
-
throw new A_Frame_IndexError(
|
|
119
|
-
A_Frame_IndexError.IndexDefinitionError,
|
|
120
|
-
`Unable to apply @A_Frame_Index.${componentType} decorator on '${componentName}': ${error instanceof Error ? error.message : "Unknown error"}`
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function A_Frame_IndexNamespaceDecorator(name) {
|
|
126
|
-
return function(target, propertyKey, descriptor) {
|
|
127
|
-
const componentName = aConcept.A_CommonHelper.getComponentName(target);
|
|
128
|
-
if (!A_Frame_IndexTypeGuard.isAllowedTarget(target)) {
|
|
129
|
-
throw new A_Frame_IndexError(
|
|
130
|
-
A_Frame_IndexError.InvalidTarget,
|
|
131
|
-
`Unable Apply Describe Index Decorator for '${componentName}': Target type is not allowed.`
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
try {
|
|
135
|
-
const indexMeta = aConcept.A_Context.meta(exports.A_Frame);
|
|
136
|
-
const targetClass = A_Frame_IndexTypeGuard.getTargetConstructor(target);
|
|
137
|
-
const targetMeta = indexMeta.getMetaFor(targetClass);
|
|
138
|
-
if (!!propertyKey || !!descriptor) {
|
|
139
|
-
} else {
|
|
140
|
-
targetMeta.namespace = name;
|
|
141
|
-
indexMeta.seMetaFor(targetClass, targetMeta);
|
|
142
|
-
}
|
|
143
|
-
return target;
|
|
144
|
-
} catch (error) {
|
|
145
|
-
throw new A_Frame_IndexError(error);
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function A_Frame_IndexDescribeDecorator(description) {
|
|
150
|
-
return function(target, propertyKey, descriptor) {
|
|
151
|
-
const componentName = aConcept.A_CommonHelper.getComponentName(target);
|
|
152
|
-
if (!A_Frame_IndexTypeGuard.isAllowedTarget(target)) {
|
|
153
|
-
throw new A_Frame_IndexError(
|
|
154
|
-
A_Frame_IndexError.InvalidTarget,
|
|
155
|
-
`Unable Apply Describe Index Decorator for '${componentName}': Target type is not allowed.`
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
try {
|
|
159
|
-
const indexMeta = aConcept.A_Context.meta(exports.A_Frame);
|
|
160
|
-
const targetClass = A_Frame_IndexTypeGuard.getTargetConstructor(target);
|
|
161
|
-
const targetMeta = indexMeta.getMetaFor(targetClass);
|
|
162
|
-
if (!!propertyKey || !!descriptor) {
|
|
163
|
-
const targetMethodName = propertyKey ? propertyKey.toString() : "";
|
|
164
|
-
const methodMeta = targetMeta.methods.get(targetMethodName);
|
|
165
|
-
if (!!methodMeta) {
|
|
166
|
-
methodMeta.description = description;
|
|
167
|
-
targetMeta.methods.set(targetMethodName, methodMeta);
|
|
168
|
-
}
|
|
169
|
-
} else {
|
|
170
|
-
targetMeta.description = description;
|
|
171
|
-
indexMeta.seMetaFor(targetClass, targetMeta);
|
|
172
|
-
}
|
|
173
|
-
return target;
|
|
174
|
-
} catch (error) {
|
|
175
|
-
throw new A_Frame_IndexError(error);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
var A_Namespace = class extends aConcept.A_Entity {
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
// src/lib/components/Index.component.ts/IndexConfigurations.meta.ts
|
|
183
|
-
var A_Frame_IndexConfigurationsMeta = class extends aConcept.A_Meta {
|
|
184
|
-
get name() {
|
|
185
|
-
return this.get("name");
|
|
186
|
-
}
|
|
187
|
-
set name(value) {
|
|
188
|
-
if (value)
|
|
189
|
-
this.set("name", value);
|
|
190
|
-
}
|
|
191
|
-
get type() {
|
|
192
|
-
return this.get("type");
|
|
193
|
-
}
|
|
194
|
-
set type(value) {
|
|
195
|
-
if (value)
|
|
196
|
-
this.set("type", value);
|
|
197
|
-
}
|
|
198
|
-
get namespace() {
|
|
199
|
-
return this.get("namespaces");
|
|
200
|
-
}
|
|
201
|
-
set namespace(value) {
|
|
202
|
-
if (value) {
|
|
203
|
-
const target = value instanceof A_Namespace ? value.aseid.toString() : value;
|
|
204
|
-
this.set("namespaces", target);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
get description() {
|
|
208
|
-
return this.get("descriptions");
|
|
209
|
-
}
|
|
210
|
-
set description(value) {
|
|
211
|
-
if (value)
|
|
212
|
-
this.set("descriptions", value);
|
|
213
|
-
}
|
|
214
|
-
get methods() {
|
|
215
|
-
if (!this.get("methods")) {
|
|
216
|
-
this.set("methods", /* @__PURE__ */ new Map());
|
|
217
|
-
}
|
|
218
|
-
return this.get("methods");
|
|
219
|
-
}
|
|
220
|
-
clear() {
|
|
221
|
-
this.set("name", void 0);
|
|
222
|
-
this.set("type", void 0);
|
|
223
|
-
this.set("namespaces", void 0);
|
|
224
|
-
this.set("descriptions", void 0);
|
|
225
|
-
this.set("methods", /* @__PURE__ */ new Map());
|
|
226
|
-
}
|
|
227
|
-
addMethod(methodMeta) {
|
|
228
|
-
const methods = this.methods;
|
|
229
|
-
if (!methods.has(methodMeta.name)) {
|
|
230
|
-
methods.set(methodMeta.name, methodMeta);
|
|
231
|
-
this.set("methods", methods);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
// src/lib/components/Index.component.ts/Index.meta.ts
|
|
237
|
-
var A_Frame_IndexMeta = class extends aConcept.A_ComponentMeta {
|
|
238
|
-
getMetaFor(target) {
|
|
239
|
-
const targetSpace = this.get("A_FRAME_INDEX_CONFIGURATIONS_META") || /* @__PURE__ */ new Map();
|
|
240
|
-
if (!targetSpace.has(target)) {
|
|
241
|
-
targetSpace.set(target, new A_Frame_IndexConfigurationsMeta());
|
|
242
|
-
this.set("A_FRAME_INDEX_CONFIGURATIONS_META", targetSpace);
|
|
243
|
-
}
|
|
244
|
-
return targetSpace.get(target);
|
|
245
|
-
}
|
|
246
|
-
seMetaFor(target, meta) {
|
|
247
|
-
const targetSpace = this.get("A_FRAME_INDEX_CONFIGURATIONS_META") || /* @__PURE__ */ new Map();
|
|
248
|
-
targetSpace.set(target, meta);
|
|
249
|
-
this.set("A_FRAME_INDEX_CONFIGURATIONS_META", targetSpace);
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
// src/lib/components/Index.component.ts/Index.component.ts
|
|
254
|
-
exports.A_Frame = class A_Frame_Index extends aConcept.A_Component {
|
|
255
|
-
/**
|
|
256
|
-
* Allows to mark namespace and add it to index structure,
|
|
257
|
-
*/
|
|
258
|
-
static Namespace(name) {
|
|
259
|
-
return A_Frame_IndexNamespaceDecorator(name);
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Allows to add description to a class and add it to index structure
|
|
263
|
-
*/
|
|
264
|
-
static Describe(description) {
|
|
265
|
-
return A_Frame_IndexDescribeDecorator(description);
|
|
266
|
-
}
|
|
267
|
-
static Component(options = {}) {
|
|
268
|
-
return A_Frame_IndexDecorator("component" /* COMPONENT */, options);
|
|
269
|
-
}
|
|
270
|
-
static Container(options = {}) {
|
|
271
|
-
return A_Frame_IndexDecorator("container" /* CONTAINER */, options);
|
|
272
|
-
}
|
|
273
|
-
static Entity(options = {}) {
|
|
274
|
-
return A_Frame_IndexDecorator("entity" /* ENTITY */, options);
|
|
275
|
-
}
|
|
276
|
-
static Fragment(options = {}) {
|
|
277
|
-
return A_Frame_IndexDecorator("fragment" /* FRAGMENT */, options);
|
|
278
|
-
}
|
|
279
|
-
static Method(options = {}) {
|
|
280
|
-
return A_Frame_IndexDecorator("method" /* METHOD */, options);
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
exports.A_Frame = __decorateClass([
|
|
284
|
-
aConcept.A_Meta.Define(A_Frame_IndexMeta)
|
|
285
|
-
], exports.A_Frame);
|
|
286
|
-
|
|
287
|
-
exports.A_Frame_CLIContainer = A_Frame_CLIContainer;
|
|
288
|
-
exports.A_Frame_IndexError = A_Frame_IndexError;
|
|
289
|
-
exports.A_Frame_IndexMeta = A_Frame_IndexMeta;
|
|
290
|
-
exports.A_Frame_IndexTargetType = A_Frame_IndexTargetType;
|
|
291
3
|
//# sourceMappingURL=index.cjs.map
|
|
292
4
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/containers/CLI.container.ts","../../src/lib/components/Index.component.ts/Index.types.ts","../../src/lib/components/Index.component.ts/Index.error.ts","../../src/lib/components/Index.component.ts/Index.guard.ts","../../src/lib/components/Index.component.ts/decorators/IndexComponent.decorator.ts","../../src/lib/components/Index.component.ts/decorators/IndexNamespace.decorator.ts","../../src/lib/components/Index.component.ts/decorators/IndexDescribe.decorator.ts","../../src/lib/entities/Namespace/Namespace.entity.ts","../../src/lib/components/Index.component.ts/IndexConfigurations.meta.ts","../../src/lib/components/Index.component.ts/Index.meta.ts","../../src/lib/components/Index.component.ts/Index.component.ts"],"names":["A_Container","A_Context","A_Error","A_Concept","A_Frame_IndexTargetType","A_TypeGuards","A_CommonHelper","A_Frame_Index","A_Entity","A_Meta","A_ComponentMeta","A_Component"],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,oBAAA,GAAN,cAAmCA,oBAAA,CAAY;AAAA,EAKlD,MAAM,UAAA,GAAa;AACf,IAAA,IAAIC,kBAAA,CAAU,gBAAgB,QAAA,EAAU;AACpC,MAAA,MAAM,IAAIC,iBAAQ,sDAAsD,CAAA;AAAA,IAC5E;AAAA,EACJ;AAAA,EAIA,MAAM,iBAAA,GAAoB;AACtB,IAAA,OAAA,CAAQ,IAAI,wCAAwC,CAAA;AAEpD,IAAA,MAAM,IAAA,GAAO,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAA;AAEjC,IAAA,OAAA,CAAQ,GAAA,CAAI,2BAA2B,IAAI,CAAA;AAAA,EAG/C;AAEJ;AAlBU,eAAA,CAAA;AAAA,EADLC,mBAAU,IAAA;AAAK,CAAA,EAJP,oBAAA,CAKH,SAAA,EAAA,YAAA,EAAA,CAAA,CAAA;AAQA,eAAA,CAAA;AAAA,EADLA,mBAAU,KAAA;AAAM,CAAA,EAZR,oBAAA,CAaH,SAAA,EAAA,mBAAA,EAAA,CAAA,CAAA;;;AC+BH,IAAK,uBAAA,qBAAAC,wBAAAA,KAAL;AACH,EAAAA,yBAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,yBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,yBAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,yBAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,yBAAA,QAAA,CAAA,GAAS,QAAA;AALD,EAAA,OAAAA,wBAAAA;AAAA,CAAA,EAAA,uBAAA,IAAA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AAA,EACrD;AAAA,EASA,OAAO,SAAA,CAAU,OAAA,GAAyC,EAAC,EAAmB;AAC1E,IAAA,OAAO,oDAA0D,OAAO,CAAA;AAAA,EAC5E;AAAA,EAOA,OAAO,SAAA,CAAU,OAAA,GAAyC,EAAC,EAAmB;AAC1E,IAAA,OAAO,oDAA0D,OAAO,CAAA;AAAA,EAC5E;AAAA,EAQA,OAAO,MAAA,CAAO,OAAA,GAAyC,EAAC,EAAmB;AACvE,IAAA,OAAO,8CAAuD,OAAO,CAAA;AAAA,EACzE;AAAA,EASA,OAAO,QAAA,CAAS,OAAA,GAAyC,EAAC,EAAmB;AACzE,IAAA,OAAO,kDAAyD,OAAO,CAAA;AAAA,EAC3E;AAAA,EAQA,OAAO,MAAA,CAAO,OAAA,GAAyC,EAAC,EAAoB;AACxE,IAAA,OAAO,8CAAuD,OAAO,CAAA;AAAA,EACzE;AAEJ;AApEaJ,eAAA,GAAN,eAAA,CAAA;AAAA,EADNE,eAAAA,CAAO,OAAO,iBAAiB;AAAA,CAAA,EACnBF,eAAA,CAAA","file":"index.cjs","sourcesContent":["import { A_Concept, A_Container, A_Context, A_Error } from \"@adaas/a-concept\";\n\n\nexport class A_Frame_CLIContainer extends A_Container {\n\n\n\n @A_Concept.Load()\n async initialize() {\n if (A_Context.environment !== 'server') {\n throw new A_Error('A-Frame CLI can only be used in Node.js environment.');\n }\n }\n\n\n @A_Concept.Start()\n async readCommandParams() {\n console.log('Reading command parameters from CLI...');\n\n const args = process.argv.slice(2);\n\n console.log('Command Line Arguments:', args);\n\n // Here you can parse the args and set them to the container's state or properties as needed\n }\n\n}","import { A_Component, A_Container, A_Entity, A_Fragment, A_TYPES__Component_Constructor, A_TYPES__Container_Constructor, A_TYPES__Entity_Constructor, A_TYPES__Fragment_Constructor, A_TYPES__Required } from \"@adaas/a-concept\"\nimport { A_Namespace } from \"src/lib/entities/Namespace/Namespace.entity\"\n\n\nexport type A_Frame_IndexOptions = {\n name?: string,\n namespace?: string | A_Namespace\n description?: string\n}\n\n\n\nexport type A_Frame_IndexMetaTarget = A_TYPES__Container_Constructor\n | A_TYPES__Entity_Constructor\n | A_TYPES__Component_Constructor\n | A_TYPES__Fragment_Constructor\n\n\n// ===========================================================================\n// --------------------------- Decorator Types -------------------------------\n// ===========================================================================\n// ---------------------------------------------------------------------------\n// -------------------- A-Frame Index Decorator Types-------------------------\n// ---------------------------------------------------------------------------\n/**\n * Indicates a type of Feature Define decorator\n */\nexport type A_Frame_IndexDecoratorDescriptor =\n TypedPropertyDescriptor<(...args: any[]) => any>\n | TypedPropertyDescriptor<(...args: any[]) => any>\n | TypedPropertyDescriptor<(...args: any[]) => Promise<any>>\n | TypedPropertyDescriptor<(...args: any[]) => Promise<any>>\n\n\n/**\n * Describes a target where Feature Define decorator can be applied\n * \n * [!] The feature can be defined on Container, Entity, Component or Command\n */\nexport type A_Frame_IndexDecoratorTarget = A_Frame_IndexMetaTarget\n | A_Component\n | A_Container\n | A_Entity\n | A_Fragment\n/**\n * Targets types that can be indexed\n */\nexport enum A_Frame_IndexTargetType {\n COMPONENT = 'component',\n ENTITY = 'entity',\n CONTAINER = 'container',\n FRAGMENT = 'fragment',\n METHOD = 'method'\n}\n\n/**\n * A type of Meta information stored by Index decorator\n * This information is used by A-Context to build a proper index structure\n */\nexport type A_Frame_IndexDecoratorMeta = {\n /**\n * Component name\n */\n name: string,\n /**\n * Component description\n */\n description?: string,\n /**\n * Type of the component\n */\n type: A_Frame_IndexTargetType,\n /**\n * Namespace for the component\n */\n namespace?: string | A_Namespace,\n /**\n * Constructor reference\n */\n constructor: A_Frame_IndexDecoratorTarget\n}\n\n\n// ---------------------------------------------------------------------------\n// -------------------- A-Frame Index Decorator Types-------------------------\n// ---------------------------------------------------------------------------\n/**\n * Indicates a type of Feature Define decorator\n */\nexport type A_Frame_IndexNamespaceDecoratorDescriptor =\n TypedPropertyDescriptor<(...args: any[]) => any>\n | TypedPropertyDescriptor<(...args: any[]) => any>\n | TypedPropertyDescriptor<(...args: any[]) => Promise<any>>\n | TypedPropertyDescriptor<(...args: any[]) => Promise<any>>\n\n\n/**\n * Describes a target where Feature Define decorator can be applied\n * \n * [!] The feature can be defined on Container, Entity, Component or Command\n */\nexport type A_Frame_IndexNamespaceDecoratorTarget = A_Container\n | A_Entity\n | A_Component\n | A_Fragment\n | A_TYPES__Fragment_Constructor\n | A_TYPES__Component_Constructor\n | A_TYPES__Container_Constructor\n | A_TYPES__Entity_Constructor\n\n\n\n\n// ---------------------------------------------------------------------------\n// ------------- A-Frame Index Configurations Meta Types----------------------\n// ---------------------------------------------------------------------------\n\n\nexport type A_Frame_IndexConfigurationsMetaType = {\n namespaces: string,\n descriptions: string,\n type: string,\n name: string,\n methods: Map<string, A_Frame_IndexConfigurationsMetaMethodMeta>\n}\n\n\nexport type A_Frame_IndexConfigurationsMetaMethodMeta = {\n name: string,\n description?: string,\n methodName: string\n}","import { A_Error } from \"@adaas/a-concept\";\n\n\nexport class A_Frame_IndexError extends A_Error {\n\n static readonly InvalidTarget = 'A-Frame Index Invalid Target Error';\n\n static readonly InvalidConfiguration = 'A-Frame Index Invalid Configuration Error';\n\n static readonly IndexDefinitionError = 'A-Frame Index Definition Error';\n static readonly IndexMetadataError = 'A-Frame Index Metadata Error';\n static readonly IndexRegistryError = 'A-Frame Index Registry Error';\n static readonly IndexComponentNotFoundError = 'A-Frame Index Component Not Found Error';\n}","import { A_CommonHelper, A_TypeGuards } from \"@adaas/a-concept\";\nimport { A_Frame_IndexDecoratorTarget, A_Frame_IndexMetaTarget } from \"./Index.types\";\n\n\n\nexport class A_Frame_IndexTypeGuard {\n /**\n * Determines if the target is an allowed type for indexing\n * \n * @param target \n * @returns \n */\n static isAllowedTarget(target: any): target is A_Frame_IndexDecoratorTarget {\n return A_TypeGuards.isEntityConstructor(target)\n || A_TypeGuards.isComponentConstructor(target)\n || A_TypeGuards.isContainerConstructor(target)\n || A_TypeGuards.isFragmentConstructor(target)\n || A_TypeGuards.isComponentInstance(target)\n || A_TypeGuards.isContainerInstance(target)\n || A_TypeGuards.isEntityInstance(target)\n || A_TypeGuards.isFragmentInstance(target);\n }\n\n\n\n static getTargetName(target: A_Frame_IndexDecoratorTarget): string {\n return A_CommonHelper.getComponentName(target);\n }\n\n\n static getTargetConstructor(target: A_Frame_IndexDecoratorTarget): A_Frame_IndexMetaTarget {\n return typeof target === 'function' ? target : target.constructor as A_Frame_IndexMetaTarget;\n }\n}","import { A_CommonHelper, A_Context, A_Meta } from \"@adaas/a-concept\";\nimport { A_Frame_IndexError } from \"../Index.error\";\nimport { A_Frame_IndexDecoratorTarget, A_Frame_IndexOptions, A_Frame_IndexTargetType, A_Frame_IndexDecoratorDescriptor, A_Frame_IndexMetaTarget } from \"../Index.types\";\nimport { A_Frame_Index } from \"../Index.component\";\nimport { A_Frame_IndexMeta } from \"../Index.meta\";\nimport { A_Frame_IndexTypeGuard } from \"../Index.guard\";\n\nexport function A_Frame_IndexDecorator(\n componentType: A_Frame_IndexTargetType,\n config: Partial<A_Frame_IndexOptions> = {}\n) {\n return function (\n target: A_Frame_IndexDecoratorTarget,\n propertyKey?: string | symbol,\n descriptor?: A_Frame_IndexDecoratorDescriptor\n ): any {\n\n // Handle method decorator case\n if (propertyKey && descriptor && componentType === A_Frame_IndexTargetType.METHOD) {\n // For methods, target is the class prototype\n const targetClass = target.constructor as A_Frame_IndexMetaTarget;\n const methodName = String(propertyKey);\n\n try {\n const indexMeta: A_Frame_IndexMeta = A_Context.meta(A_Frame_Index) as any;\n const targetMeta = indexMeta.getMetaFor(targetClass);\n\n\n if (!!config.namespace && !!targetMeta.namespace && config.namespace !== targetMeta.namespace) {\n throw new A_Frame_IndexError(\n A_Frame_IndexError.InvalidConfiguration,\n `Method namespace '${config.namespace}' does not match target class namespace '${targetMeta.namespace}'.`\n );\n }\n\n // Store method information\n const methodInfo = {\n name: config.name || methodName,\n description: config.description,\n namespace: config.namespace || targetMeta.namespace,\n methodName: methodName\n };\n\n // Add to methods array\n targetMeta.addMethod(methodInfo);\n\n indexMeta.seMetaFor(targetClass, targetMeta);\n\n return descriptor;\n\n } catch (error) {\n\n throw new A_Frame_IndexError(\n A_Frame_IndexError.IndexDefinitionError,\n `Unable to apply @A_Frame_Index.Method decorator on '${targetClass.name}.${methodName}': ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n\n }\n }\n\n // Handle class decorator case\n if (!A_Frame_IndexTypeGuard.isAllowedTarget(target)) {\n throw new A_Frame_IndexError(\n A_Frame_IndexError.InvalidTarget,\n `@A_Frame_Index.${componentType} decorator can only be applied to allowed targets.`\n );\n }\n\n // for error messages\n const componentName = A_CommonHelper.getComponentName(target);\n\n try {\n // Get the index meta for the global A_Frame_Index component\n const indexMeta: A_Frame_IndexMeta = A_Context.meta(A_Frame_Index) as any;\n\n const targetClass = A_Frame_IndexTypeGuard.getTargetConstructor(target);\n\n // Check for pending namespace and description from other decorators\n const targetMeta = indexMeta.getMetaFor(targetClass);\n\n targetMeta.name = config.name || componentName;\n targetMeta.description = config.description;\n targetMeta.namespace = config.namespace;\n targetMeta.type = componentType;\n\n indexMeta.seMetaFor(targetClass, targetMeta);\n\n return target;\n\n } catch (error) {\n throw new A_Frame_IndexError(\n A_Frame_IndexError.IndexDefinitionError,\n `Unable to apply @A_Frame_Index.${componentType} decorator on '${componentName}': ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n };\n}","import { A_CommonHelper, A_Context } from \"@adaas/a-concept\";\nimport { A_Frame_IndexDecoratorDescriptor, A_Frame_IndexDecoratorTarget, A_Frame_IndexNamespaceDecoratorTarget } from \"../Index.types\";\nimport { A_Frame_Index } from \"../Index.component\";\nimport { A_Frame_IndexTypeGuard } from \"../Index.guard\";\nimport { A_Frame_IndexMeta } from \"../Index.meta\";\nimport { A_Frame_IndexError } from \"../Index.error\";\n\nexport function A_Frame_IndexNamespaceDecorator(name?: string) {\n return function (\n target: A_Frame_IndexDecoratorTarget,\n propertyKey?: string | symbol,\n descriptor?: A_Frame_IndexDecoratorDescriptor\n\n ): A_Frame_IndexDecoratorTarget {\n const componentName = A_CommonHelper.getComponentName(target);\n\n if (!A_Frame_IndexTypeGuard.isAllowedTarget(target)) {\n throw new A_Frame_IndexError(\n A_Frame_IndexError.InvalidTarget,\n `Unable Apply Describe Index Decorator for '${componentName}': Target type is not allowed.`\n );\n }\n\n // for error messages\n\n try {\n // Get the index meta for the global A_Frame_Index component\n // TODO: Type casting hack to avoid circular dependency issues\n const indexMeta: A_Frame_IndexMeta = A_Context.meta(A_Frame_Index) as any;\n\n const targetClass = A_Frame_IndexTypeGuard.getTargetConstructor(target);\n\n // Check for pending namespace and description from other decorators\n const targetMeta = indexMeta.getMetaFor(targetClass)\n if (!!propertyKey || !!descriptor) {\n\n // const targetMethodName = propertyKey ? propertyKey.toString() : '';\n\n // const methodMeta = targetMeta.methods.get(targetMethodName);\n // if (!!methodMeta) {\n // methodMeta.namespace = name;\n // targetMeta.methods.set(targetMethodName, methodMeta);\n // }\n\n } else {\n targetMeta.namespace = name;\n\n indexMeta.seMetaFor(targetClass, targetMeta);\n }\n\n return target;\n\n } catch (error) {\n throw new A_Frame_IndexError(error);\n }\n };\n}","import { A_CommonHelper, A_Context } from \"@adaas/a-concept\";\nimport { A_Frame_IndexDecoratorDescriptor, A_Frame_IndexDecoratorTarget, A_Frame_IndexNamespaceDecoratorTarget } from \"../Index.types\";\nimport { A_Frame_Index } from \"../Index.component\";\nimport { A_Frame_IndexMeta } from \"../Index.meta\";\nimport { A_Frame_IndexTypeGuard } from \"../Index.guard\";\nimport { A_Frame_IndexError } from \"../Index.error\";\n\nexport function A_Frame_IndexDescribeDecorator(description: string) {\n return function (\n target: A_Frame_IndexDecoratorTarget,\n propertyKey?: string | symbol,\n descriptor?: A_Frame_IndexDecoratorDescriptor\n\n ): A_Frame_IndexDecoratorTarget {\n const componentName = A_CommonHelper.getComponentName(target);\n\n if (!A_Frame_IndexTypeGuard.isAllowedTarget(target)) {\n throw new A_Frame_IndexError(\n A_Frame_IndexError.InvalidTarget,\n `Unable Apply Describe Index Decorator for '${componentName}': Target type is not allowed.`\n );\n }\n\n // for error messages\n\n // for error messages\n\n try {\n // Get the index meta for the global A_Frame_Index component\n // TODO: Type casting hack to avoid circular dependency issues\n const indexMeta: A_Frame_IndexMeta = A_Context.meta(A_Frame_Index) as any;\n\n const targetClass = A_Frame_IndexTypeGuard.getTargetConstructor(target);\n\n // Check for pending namespace and description from other decorators\n const targetMeta = indexMeta.getMetaFor(targetClass)\n if (!!propertyKey || !!descriptor) {\n\n const targetMethodName = propertyKey ? propertyKey.toString() : '';\n\n const methodMeta = targetMeta.methods.get(targetMethodName);\n if (!!methodMeta) {\n methodMeta.description = description;\n targetMeta.methods.set(targetMethodName, methodMeta);\n }\n\n } else {\n targetMeta.description = description;\n\n indexMeta.seMetaFor(targetClass, targetMeta);\n }\n\n return target;\n\n } catch (error) {\n throw new A_Frame_IndexError(error);\n }\n };\n}","import { A_Entity } from \"@adaas/a-concept\";\n\n\nexport class A_Namespace extends A_Entity {\n\n\n \n}","import { A_Meta } from \"@adaas/a-concept\";\nimport { A_Namespace } from \"../../entities/Namespace/Namespace.entity\";\nimport { A_Frame_IndexConfigurationsMetaMethodMeta, A_Frame_IndexConfigurationsMetaType } from \"./Index.types\";\n\n\n\nexport class A_Frame_IndexConfigurationsMeta extends A_Meta<Partial<A_Frame_IndexConfigurationsMetaType>> {\n\n get name(): string | undefined {\n return this.get('name');\n }\n\n set name(value: string | undefined) {\n if (value)\n this.set('name', value);\n }\n\n\n get type(): string | undefined {\n return this.get('type');\n }\n\n set type(value: string | undefined) {\n if (value)\n this.set('type', value);\n }\n\n\n get namespace(): string | undefined {\n return this.get('namespaces');\n }\n\n set namespace(value: string | undefined | A_Namespace) {\n if (value) {\n const target = value instanceof A_Namespace ? value.aseid.toString() : value;\n this.set('namespaces', target);\n }\n }\n\n\n get description(): string | undefined {\n return this.get('descriptions');\n }\n\n set description(value: string | undefined) {\n if (value)\n this.set('descriptions', value);\n }\n\n\n\n get methods(): Map<string, A_Frame_IndexConfigurationsMetaMethodMeta> {\n if (!this.get('methods')) {\n this.set('methods', new Map());\n }\n\n return this.get('methods')!;\n }\n\n\n clear(): void {\n this.set('name', undefined);\n this.set('type', undefined);\n this.set('namespaces', undefined);\n this.set('descriptions', undefined);\n this.set('methods', new Map());\n }\n\n\n addMethod(methodMeta: A_Frame_IndexConfigurationsMetaMethodMeta): void {\n const methods = this.methods;\n\n if (!methods.has(methodMeta.name)) {\n methods.set(methodMeta.name, methodMeta);\n this.set('methods', methods);\n }\n }\n}","import { A_ComponentMeta, A_Context, A_Meta } from \"@adaas/a-concept\";\nimport { A_Frame_IndexDecoratorMeta, A_Frame_IndexTargetType, A_Frame_IndexMetaTarget } from \"./Index.types\";\nimport { A_Frame_Index } from \"./Index.component\";\nimport { A_Frame_IndexConfigurationsMeta } from \"./IndexConfigurations.meta\";\n\nexport class A_Frame_IndexMeta extends A_ComponentMeta {\n\n getMetaFor(target: A_Frame_IndexMetaTarget): A_Frame_IndexConfigurationsMeta {\n\n const targetSpace = this.get('A_FRAME_INDEX_CONFIGURATIONS_META' as any) || new Map<A_Frame_IndexMetaTarget, A_Frame_IndexConfigurationsMeta>();\n\n if (!targetSpace.has(target)) {\n targetSpace.set(target, new A_Frame_IndexConfigurationsMeta());\n this.set('A_FRAME_INDEX_CONFIGURATIONS_META' as any, targetSpace);\n }\n\n return targetSpace.get(target)!;\n }\n\n\n seMetaFor(target: A_Frame_IndexMetaTarget, meta: A_Frame_IndexConfigurationsMeta): void {\n const targetSpace = this.get('A_FRAME_INDEX_CONFIGURATIONS_META' as any) || new Map<A_Frame_IndexMetaTarget, A_Frame_IndexConfigurationsMeta>();\n\n targetSpace.set(target, meta);\n\n this.set('A_FRAME_INDEX_CONFIGURATIONS_META' as any, targetSpace);\n }\n}\n","import { A_Component, A_Meta } from \"@adaas/a-concept\";\nimport { A_Frame_IndexOptions, A_Frame_IndexTargetType } from \"./Index.types\";\nimport { A_Frame_IndexDecorator } from \"./decorators/IndexComponent.decorator\";\nimport { A_Frame_IndexNamespaceDecorator } from \"./decorators/IndexNamespace.decorator\";\nimport { A_Frame_IndexDescribeDecorator } from \"./decorators/IndexDescribe.decorator\";\nimport { A_Frame_IndexMeta } from \"./Index.meta\";\n\n\n\n@A_Meta.Define(A_Frame_IndexMeta)\nexport class A_Frame_Index extends A_Component {\n\n\n /**\n * Allows to mark namespace and add it to index structure,\n */\n static Namespace(name: string): ClassDecorator & MethodDecorator {\n return A_Frame_IndexNamespaceDecorator(name) as ClassDecorator & MethodDecorator;\n }\n\n /**\n * Allows to add description to a class and add it to index structure\n */\n static Describe(description: string): ClassDecorator & MethodDecorator {\n return A_Frame_IndexDescribeDecorator(description) as ClassDecorator & MethodDecorator;\n }\n\n\n\n /**\n * Allows to mark component and add it to index structure,\n */\n static Component(): ClassDecorator\n static Component(options: Partial<A_Frame_IndexOptions>): ClassDecorator\n static Component(options: Partial<A_Frame_IndexOptions> = {}): ClassDecorator {\n return A_Frame_IndexDecorator(A_Frame_IndexTargetType.COMPONENT, options) as ClassDecorator;\n }\n\n /**\n * Allows to mark container and add it to index structure,\n */\n static Container(): ClassDecorator\n static Container(options: Partial<A_Frame_IndexOptions>): ClassDecorator\n static Container(options: Partial<A_Frame_IndexOptions> = {}): ClassDecorator {\n return A_Frame_IndexDecorator(A_Frame_IndexTargetType.CONTAINER, options) as ClassDecorator;\n }\n\n /**\n * Allows to mark entity and add it to index structure, \n * so it can be reused in other components or structures\n */\n static Entity(): ClassDecorator\n static Entity(options: Partial<A_Frame_IndexOptions>): ClassDecorator\n static Entity(options: Partial<A_Frame_IndexOptions> = {}): ClassDecorator {\n return A_Frame_IndexDecorator(A_Frame_IndexTargetType.ENTITY, options) as ClassDecorator;\n }\n\n\n /**\n * Allows to mark fragment and add it to index structure, \n * so it can be reused in other components or structures\n */\n static Fragment(): ClassDecorator\n static Fragment(options: Partial<A_Frame_IndexOptions>): ClassDecorator\n static Fragment(options: Partial<A_Frame_IndexOptions> = {}): ClassDecorator {\n return A_Frame_IndexDecorator(A_Frame_IndexTargetType.FRAGMENT, options) as ClassDecorator;\n }\n\n /**\n * Allows to define a reusable AI method from components, \n * that can be reused in other components. to build new Features\n */\n static Method(): MethodDecorator\n static Method(options: Partial<A_Frame_IndexOptions>): MethodDecorator\n static Method(options: Partial<A_Frame_IndexOptions> = {}): MethodDecorator {\n return A_Frame_IndexDecorator(A_Frame_IndexTargetType.METHOD, options) as MethodDecorator;\n }\n\n}"]}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,145 +1,2 @@
|
|
|
1
|
-
import { A_Container, A_Entity, A_TYPES__Container_Constructor, A_TYPES__Entity_Constructor, A_TYPES__Component_Constructor, A_TYPES__Fragment_Constructor, A_Component, A_Fragment, A_Meta, A_ComponentMeta, A_Error } from '@adaas/a-concept';
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
initialize(): Promise<void>;
|
|
5
|
-
readCommandParams(): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare class A_Namespace extends A_Entity {
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type A_Frame_IndexOptions = {
|
|
12
|
-
name?: string;
|
|
13
|
-
namespace?: string | A_Namespace;
|
|
14
|
-
description?: string;
|
|
15
|
-
};
|
|
16
|
-
type A_Frame_IndexMetaTarget = A_TYPES__Container_Constructor | A_TYPES__Entity_Constructor | A_TYPES__Component_Constructor | A_TYPES__Fragment_Constructor;
|
|
17
|
-
/**
|
|
18
|
-
* Describes a target where Feature Define decorator can be applied
|
|
19
|
-
*
|
|
20
|
-
* [!] The feature can be defined on Container, Entity, Component or Command
|
|
21
|
-
*/
|
|
22
|
-
type A_Frame_IndexDecoratorTarget = A_Frame_IndexMetaTarget | A_Component | A_Container | A_Entity | A_Fragment;
|
|
23
|
-
/**
|
|
24
|
-
* Targets types that can be indexed
|
|
25
|
-
*/
|
|
26
|
-
declare enum A_Frame_IndexTargetType {
|
|
27
|
-
COMPONENT = "component",
|
|
28
|
-
ENTITY = "entity",
|
|
29
|
-
CONTAINER = "container",
|
|
30
|
-
FRAGMENT = "fragment",
|
|
31
|
-
METHOD = "method"
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* A type of Meta information stored by Index decorator
|
|
35
|
-
* This information is used by A-Context to build a proper index structure
|
|
36
|
-
*/
|
|
37
|
-
type A_Frame_IndexDecoratorMeta = {
|
|
38
|
-
/**
|
|
39
|
-
* Component name
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
/**
|
|
43
|
-
* Component description
|
|
44
|
-
*/
|
|
45
|
-
description?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Type of the component
|
|
48
|
-
*/
|
|
49
|
-
type: A_Frame_IndexTargetType;
|
|
50
|
-
/**
|
|
51
|
-
* Namespace for the component
|
|
52
|
-
*/
|
|
53
|
-
namespace?: string | A_Namespace;
|
|
54
|
-
/**
|
|
55
|
-
* Constructor reference
|
|
56
|
-
*/
|
|
57
|
-
constructor: A_Frame_IndexDecoratorTarget;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Describes a target where Feature Define decorator can be applied
|
|
61
|
-
*
|
|
62
|
-
* [!] The feature can be defined on Container, Entity, Component or Command
|
|
63
|
-
*/
|
|
64
|
-
type A_Frame_IndexNamespaceDecoratorTarget = A_Container | A_Entity | A_Component | A_Fragment | A_TYPES__Fragment_Constructor | A_TYPES__Component_Constructor | A_TYPES__Container_Constructor | A_TYPES__Entity_Constructor;
|
|
65
|
-
type A_Frame_IndexConfigurationsMetaType = {
|
|
66
|
-
namespaces: string;
|
|
67
|
-
descriptions: string;
|
|
68
|
-
type: string;
|
|
69
|
-
name: string;
|
|
70
|
-
methods: Map<string, A_Frame_IndexConfigurationsMetaMethodMeta>;
|
|
71
|
-
};
|
|
72
|
-
type A_Frame_IndexConfigurationsMetaMethodMeta = {
|
|
73
|
-
name: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
methodName: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
declare class A_Frame_Index extends A_Component {
|
|
79
|
-
/**
|
|
80
|
-
* Allows to mark namespace and add it to index structure,
|
|
81
|
-
*/
|
|
82
|
-
static Namespace(name: string): ClassDecorator & MethodDecorator;
|
|
83
|
-
/**
|
|
84
|
-
* Allows to add description to a class and add it to index structure
|
|
85
|
-
*/
|
|
86
|
-
static Describe(description: string): ClassDecorator & MethodDecorator;
|
|
87
|
-
/**
|
|
88
|
-
* Allows to mark component and add it to index structure,
|
|
89
|
-
*/
|
|
90
|
-
static Component(): ClassDecorator;
|
|
91
|
-
static Component(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
92
|
-
/**
|
|
93
|
-
* Allows to mark container and add it to index structure,
|
|
94
|
-
*/
|
|
95
|
-
static Container(): ClassDecorator;
|
|
96
|
-
static Container(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
97
|
-
/**
|
|
98
|
-
* Allows to mark entity and add it to index structure,
|
|
99
|
-
* so it can be reused in other components or structures
|
|
100
|
-
*/
|
|
101
|
-
static Entity(): ClassDecorator;
|
|
102
|
-
static Entity(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
103
|
-
/**
|
|
104
|
-
* Allows to mark fragment and add it to index structure,
|
|
105
|
-
* so it can be reused in other components or structures
|
|
106
|
-
*/
|
|
107
|
-
static Fragment(): ClassDecorator;
|
|
108
|
-
static Fragment(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
109
|
-
/**
|
|
110
|
-
* Allows to define a reusable AI method from components,
|
|
111
|
-
* that can be reused in other components. to build new Features
|
|
112
|
-
*/
|
|
113
|
-
static Method(): MethodDecorator;
|
|
114
|
-
static Method(options: Partial<A_Frame_IndexOptions>): MethodDecorator;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare class A_Frame_IndexConfigurationsMeta extends A_Meta<Partial<A_Frame_IndexConfigurationsMetaType>> {
|
|
118
|
-
get name(): string | undefined;
|
|
119
|
-
set name(value: string | undefined);
|
|
120
|
-
get type(): string | undefined;
|
|
121
|
-
set type(value: string | undefined);
|
|
122
|
-
get namespace(): string | undefined;
|
|
123
|
-
set namespace(value: string | undefined | A_Namespace);
|
|
124
|
-
get description(): string | undefined;
|
|
125
|
-
set description(value: string | undefined);
|
|
126
|
-
get methods(): Map<string, A_Frame_IndexConfigurationsMetaMethodMeta>;
|
|
127
|
-
clear(): void;
|
|
128
|
-
addMethod(methodMeta: A_Frame_IndexConfigurationsMetaMethodMeta): void;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
declare class A_Frame_IndexMeta extends A_ComponentMeta {
|
|
132
|
-
getMetaFor(target: A_Frame_IndexMetaTarget): A_Frame_IndexConfigurationsMeta;
|
|
133
|
-
seMetaFor(target: A_Frame_IndexMetaTarget, meta: A_Frame_IndexConfigurationsMeta): void;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare class A_Frame_IndexError extends A_Error {
|
|
137
|
-
static readonly InvalidTarget = "A-Frame Index Invalid Target Error";
|
|
138
|
-
static readonly InvalidConfiguration = "A-Frame Index Invalid Configuration Error";
|
|
139
|
-
static readonly IndexDefinitionError = "A-Frame Index Definition Error";
|
|
140
|
-
static readonly IndexMetadataError = "A-Frame Index Metadata Error";
|
|
141
|
-
static readonly IndexRegistryError = "A-Frame Index Registry Error";
|
|
142
|
-
static readonly IndexComponentNotFoundError = "A-Frame Index Component Not Found Error";
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export { A_Frame_Index as A_Frame, A_Frame_CLIContainer, type A_Frame_IndexDecoratorMeta, type A_Frame_IndexDecoratorTarget, A_Frame_IndexError, A_Frame_IndexMeta, type A_Frame_IndexNamespaceDecoratorTarget, type A_Frame_IndexOptions, A_Frame_IndexTargetType };
|
|
2
|
+
export { }
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,145 +1,2 @@
|
|
|
1
|
-
import { A_Container, A_Entity, A_TYPES__Container_Constructor, A_TYPES__Entity_Constructor, A_TYPES__Component_Constructor, A_TYPES__Fragment_Constructor, A_Component, A_Fragment, A_Meta, A_ComponentMeta, A_Error } from '@adaas/a-concept';
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
initialize(): Promise<void>;
|
|
5
|
-
readCommandParams(): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare class A_Namespace extends A_Entity {
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type A_Frame_IndexOptions = {
|
|
12
|
-
name?: string;
|
|
13
|
-
namespace?: string | A_Namespace;
|
|
14
|
-
description?: string;
|
|
15
|
-
};
|
|
16
|
-
type A_Frame_IndexMetaTarget = A_TYPES__Container_Constructor | A_TYPES__Entity_Constructor | A_TYPES__Component_Constructor | A_TYPES__Fragment_Constructor;
|
|
17
|
-
/**
|
|
18
|
-
* Describes a target where Feature Define decorator can be applied
|
|
19
|
-
*
|
|
20
|
-
* [!] The feature can be defined on Container, Entity, Component or Command
|
|
21
|
-
*/
|
|
22
|
-
type A_Frame_IndexDecoratorTarget = A_Frame_IndexMetaTarget | A_Component | A_Container | A_Entity | A_Fragment;
|
|
23
|
-
/**
|
|
24
|
-
* Targets types that can be indexed
|
|
25
|
-
*/
|
|
26
|
-
declare enum A_Frame_IndexTargetType {
|
|
27
|
-
COMPONENT = "component",
|
|
28
|
-
ENTITY = "entity",
|
|
29
|
-
CONTAINER = "container",
|
|
30
|
-
FRAGMENT = "fragment",
|
|
31
|
-
METHOD = "method"
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* A type of Meta information stored by Index decorator
|
|
35
|
-
* This information is used by A-Context to build a proper index structure
|
|
36
|
-
*/
|
|
37
|
-
type A_Frame_IndexDecoratorMeta = {
|
|
38
|
-
/**
|
|
39
|
-
* Component name
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
/**
|
|
43
|
-
* Component description
|
|
44
|
-
*/
|
|
45
|
-
description?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Type of the component
|
|
48
|
-
*/
|
|
49
|
-
type: A_Frame_IndexTargetType;
|
|
50
|
-
/**
|
|
51
|
-
* Namespace for the component
|
|
52
|
-
*/
|
|
53
|
-
namespace?: string | A_Namespace;
|
|
54
|
-
/**
|
|
55
|
-
* Constructor reference
|
|
56
|
-
*/
|
|
57
|
-
constructor: A_Frame_IndexDecoratorTarget;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Describes a target where Feature Define decorator can be applied
|
|
61
|
-
*
|
|
62
|
-
* [!] The feature can be defined on Container, Entity, Component or Command
|
|
63
|
-
*/
|
|
64
|
-
type A_Frame_IndexNamespaceDecoratorTarget = A_Container | A_Entity | A_Component | A_Fragment | A_TYPES__Fragment_Constructor | A_TYPES__Component_Constructor | A_TYPES__Container_Constructor | A_TYPES__Entity_Constructor;
|
|
65
|
-
type A_Frame_IndexConfigurationsMetaType = {
|
|
66
|
-
namespaces: string;
|
|
67
|
-
descriptions: string;
|
|
68
|
-
type: string;
|
|
69
|
-
name: string;
|
|
70
|
-
methods: Map<string, A_Frame_IndexConfigurationsMetaMethodMeta>;
|
|
71
|
-
};
|
|
72
|
-
type A_Frame_IndexConfigurationsMetaMethodMeta = {
|
|
73
|
-
name: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
methodName: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
declare class A_Frame_Index extends A_Component {
|
|
79
|
-
/**
|
|
80
|
-
* Allows to mark namespace and add it to index structure,
|
|
81
|
-
*/
|
|
82
|
-
static Namespace(name: string): ClassDecorator & MethodDecorator;
|
|
83
|
-
/**
|
|
84
|
-
* Allows to add description to a class and add it to index structure
|
|
85
|
-
*/
|
|
86
|
-
static Describe(description: string): ClassDecorator & MethodDecorator;
|
|
87
|
-
/**
|
|
88
|
-
* Allows to mark component and add it to index structure,
|
|
89
|
-
*/
|
|
90
|
-
static Component(): ClassDecorator;
|
|
91
|
-
static Component(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
92
|
-
/**
|
|
93
|
-
* Allows to mark container and add it to index structure,
|
|
94
|
-
*/
|
|
95
|
-
static Container(): ClassDecorator;
|
|
96
|
-
static Container(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
97
|
-
/**
|
|
98
|
-
* Allows to mark entity and add it to index structure,
|
|
99
|
-
* so it can be reused in other components or structures
|
|
100
|
-
*/
|
|
101
|
-
static Entity(): ClassDecorator;
|
|
102
|
-
static Entity(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
103
|
-
/**
|
|
104
|
-
* Allows to mark fragment and add it to index structure,
|
|
105
|
-
* so it can be reused in other components or structures
|
|
106
|
-
*/
|
|
107
|
-
static Fragment(): ClassDecorator;
|
|
108
|
-
static Fragment(options: Partial<A_Frame_IndexOptions>): ClassDecorator;
|
|
109
|
-
/**
|
|
110
|
-
* Allows to define a reusable AI method from components,
|
|
111
|
-
* that can be reused in other components. to build new Features
|
|
112
|
-
*/
|
|
113
|
-
static Method(): MethodDecorator;
|
|
114
|
-
static Method(options: Partial<A_Frame_IndexOptions>): MethodDecorator;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare class A_Frame_IndexConfigurationsMeta extends A_Meta<Partial<A_Frame_IndexConfigurationsMetaType>> {
|
|
118
|
-
get name(): string | undefined;
|
|
119
|
-
set name(value: string | undefined);
|
|
120
|
-
get type(): string | undefined;
|
|
121
|
-
set type(value: string | undefined);
|
|
122
|
-
get namespace(): string | undefined;
|
|
123
|
-
set namespace(value: string | undefined | A_Namespace);
|
|
124
|
-
get description(): string | undefined;
|
|
125
|
-
set description(value: string | undefined);
|
|
126
|
-
get methods(): Map<string, A_Frame_IndexConfigurationsMetaMethodMeta>;
|
|
127
|
-
clear(): void;
|
|
128
|
-
addMethod(methodMeta: A_Frame_IndexConfigurationsMetaMethodMeta): void;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
declare class A_Frame_IndexMeta extends A_ComponentMeta {
|
|
132
|
-
getMetaFor(target: A_Frame_IndexMetaTarget): A_Frame_IndexConfigurationsMeta;
|
|
133
|
-
seMetaFor(target: A_Frame_IndexMetaTarget, meta: A_Frame_IndexConfigurationsMeta): void;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare class A_Frame_IndexError extends A_Error {
|
|
137
|
-
static readonly InvalidTarget = "A-Frame Index Invalid Target Error";
|
|
138
|
-
static readonly InvalidConfiguration = "A-Frame Index Invalid Configuration Error";
|
|
139
|
-
static readonly IndexDefinitionError = "A-Frame Index Definition Error";
|
|
140
|
-
static readonly IndexMetadataError = "A-Frame Index Metadata Error";
|
|
141
|
-
static readonly IndexRegistryError = "A-Frame Index Registry Error";
|
|
142
|
-
static readonly IndexComponentNotFoundError = "A-Frame Index Component Not Found Error";
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export { A_Frame_Index as A_Frame, A_Frame_CLIContainer, type A_Frame_IndexDecoratorMeta, type A_Frame_IndexDecoratorTarget, A_Frame_IndexError, A_Frame_IndexMeta, type A_Frame_IndexNamespaceDecoratorTarget, type A_Frame_IndexOptions, A_Frame_IndexTargetType };
|
|
2
|
+
export { }
|