@celljs/core 3.0.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/LICENSE +21 -0
- package/README.md +1 -0
- package/cell-remote.yml +3 -0
- package/cell.yml +15 -0
- package/lib/browser/application/frontend-application-state.d.ts +5 -0
- package/lib/browser/application/frontend-application-state.d.ts.map +1 -0
- package/lib/browser/application/frontend-application-state.js +17 -0
- package/lib/browser/application/frontend-application-state.js.map +1 -0
- package/lib/browser/application/frontend-application.d.ts +31 -0
- package/lib/browser/application/frontend-application.d.ts.map +1 -0
- package/lib/browser/application/frontend-application.js +145 -0
- package/lib/browser/application/frontend-application.js.map +1 -0
- package/lib/browser/application/index.d.ts +3 -0
- package/lib/browser/application/index.d.ts.map +1 -0
- package/lib/browser/application/index.js +19 -0
- package/lib/browser/application/index.js.map +1 -0
- package/lib/browser/browser.d.ts +23 -0
- package/lib/browser/browser.d.ts.map +1 -0
- package/lib/browser/browser.js +53 -0
- package/lib/browser/browser.js.map +1 -0
- package/lib/browser/index.d.ts +4 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +20 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/shell/application-shell.d.ts +5 -0
- package/lib/browser/shell/application-shell.d.ts.map +1 -0
- package/lib/browser/shell/application-shell.js +21 -0
- package/lib/browser/shell/application-shell.js.map +1 -0
- package/lib/browser/shell/index.d.ts +3 -0
- package/lib/browser/shell/index.d.ts.map +1 -0
- package/lib/browser/shell/index.js +19 -0
- package/lib/browser/shell/index.js.map +1 -0
- package/lib/browser/shell/shell-protocol.d.ts +5 -0
- package/lib/browser/shell/shell-protocol.d.ts.map +1 -0
- package/lib/browser/shell/shell-protocol.js +5 -0
- package/lib/browser/shell/shell-protocol.js.map +1 -0
- package/lib/browser/static-module.d.ts +4 -0
- package/lib/browser/static-module.d.ts.map +1 -0
- package/lib/browser/static-module.js +6 -0
- package/lib/browser/static-module.js.map +1 -0
- package/lib/common/annotation/aspect.d.ts +8 -0
- package/lib/common/annotation/aspect.d.ts.map +1 -0
- package/lib/common/annotation/aspect.js +14 -0
- package/lib/common/annotation/aspect.js.map +1 -0
- package/lib/common/annotation/autowired-provider.d.ts +8 -0
- package/lib/common/annotation/autowired-provider.d.ts.map +1 -0
- package/lib/common/annotation/autowired-provider.js +31 -0
- package/lib/common/annotation/autowired-provider.js.map +1 -0
- package/lib/common/annotation/autowired.d.ts +23 -0
- package/lib/common/annotation/autowired.d.ts.map +1 -0
- package/lib/common/annotation/autowired.js +55 -0
- package/lib/common/annotation/autowired.js.map +1 -0
- package/lib/common/annotation/component.d.ts +58 -0
- package/lib/common/annotation/component.d.ts.map +1 -0
- package/lib/common/annotation/component.js +71 -0
- package/lib/common/annotation/component.js.map +1 -0
- package/lib/common/annotation/constant.d.ts +9 -0
- package/lib/common/annotation/constant.d.ts.map +1 -0
- package/lib/common/annotation/constant.js +17 -0
- package/lib/common/annotation/constant.js.map +1 -0
- package/lib/common/annotation/decorate.d.ts +2 -0
- package/lib/common/annotation/decorate.d.ts.map +1 -0
- package/lib/common/annotation/decorate.js +6 -0
- package/lib/common/annotation/decorate.js.map +1 -0
- package/lib/common/annotation/detached/autowired-provider.d.ts +3 -0
- package/lib/common/annotation/detached/autowired-provider.d.ts.map +1 -0
- package/lib/common/annotation/detached/autowired-provider.js +16 -0
- package/lib/common/annotation/detached/autowired-provider.js.map +1 -0
- package/lib/common/annotation/detached/autowired.d.ts +3 -0
- package/lib/common/annotation/detached/autowired.d.ts.map +1 -0
- package/lib/common/annotation/detached/autowired.js +13 -0
- package/lib/common/annotation/detached/autowired.js.map +1 -0
- package/lib/common/annotation/detached/index.d.ts +4 -0
- package/lib/common/annotation/detached/index.d.ts.map +1 -0
- package/lib/common/annotation/detached/index.js +20 -0
- package/lib/common/annotation/detached/index.js.map +1 -0
- package/lib/common/annotation/detached/value.d.ts +3 -0
- package/lib/common/annotation/detached/value.d.ts.map +1 -0
- package/lib/common/annotation/detached/value.js +13 -0
- package/lib/common/annotation/detached/value.js.map +1 -0
- package/lib/common/annotation/index.d.ts +18 -0
- package/lib/common/annotation/index.d.ts.map +1 -0
- package/lib/common/annotation/index.js +34 -0
- package/lib/common/annotation/index.js.map +1 -0
- package/lib/common/annotation/inject.d.ts +2 -0
- package/lib/common/annotation/inject.d.ts.map +1 -0
- package/lib/common/annotation/inject.js +6 -0
- package/lib/common/annotation/inject.js.map +1 -0
- package/lib/common/annotation/injectable.d.ts +2 -0
- package/lib/common/annotation/injectable.d.ts.map +1 -0
- package/lib/common/annotation/injectable.js +6 -0
- package/lib/common/annotation/injectable.js.map +1 -0
- package/lib/common/annotation/named.d.ts +2 -0
- package/lib/common/annotation/named.d.ts.map +1 -0
- package/lib/common/annotation/named.js +6 -0
- package/lib/common/annotation/named.js.map +1 -0
- package/lib/common/annotation/optional.d.ts +2 -0
- package/lib/common/annotation/optional.d.ts.map +1 -0
- package/lib/common/annotation/optional.js +6 -0
- package/lib/common/annotation/optional.js.map +1 -0
- package/lib/common/annotation/post-construct.d.ts +2 -0
- package/lib/common/annotation/post-construct.d.ts.map +1 -0
- package/lib/common/annotation/post-construct.js +6 -0
- package/lib/common/annotation/post-construct.js.map +1 -0
- package/lib/common/annotation/pre-destroy.d.ts +2 -0
- package/lib/common/annotation/pre-destroy.d.ts.map +1 -0
- package/lib/common/annotation/pre-destroy.js +6 -0
- package/lib/common/annotation/pre-destroy.js.map +1 -0
- package/lib/common/annotation/service.d.ts +5 -0
- package/lib/common/annotation/service.d.ts.map +1 -0
- package/lib/common/annotation/service.js +18 -0
- package/lib/common/annotation/service.js.map +1 -0
- package/lib/common/annotation/tagged.d.ts +2 -0
- package/lib/common/annotation/tagged.d.ts.map +1 -0
- package/lib/common/annotation/tagged.js +6 -0
- package/lib/common/annotation/tagged.js.map +1 -0
- package/lib/common/annotation/target-name.d.ts +2 -0
- package/lib/common/annotation/target-name.d.ts.map +1 -0
- package/lib/common/annotation/target-name.js +6 -0
- package/lib/common/annotation/target-name.js.map +1 -0
- package/lib/common/annotation/unmanaged.d.ts +2 -0
- package/lib/common/annotation/unmanaged.d.ts.map +1 -0
- package/lib/common/annotation/unmanaged.js +6 -0
- package/lib/common/annotation/unmanaged.js.map +1 -0
- package/lib/common/annotation/value.d.ts +16 -0
- package/lib/common/annotation/value.d.ts.map +1 -0
- package/lib/common/annotation/value.js +58 -0
- package/lib/common/annotation/value.js.map +1 -0
- package/lib/common/aop/aop-protocol.d.ts +41 -0
- package/lib/common/aop/aop-protocol.d.ts.map +1 -0
- package/lib/common/aop/aop-protocol.js +11 -0
- package/lib/common/aop/aop-protocol.js.map +1 -0
- package/lib/common/aop/aop-proxy-factory.d.ts +7 -0
- package/lib/common/aop/aop-proxy-factory.d.ts.map +1 -0
- package/lib/common/aop/aop-proxy-factory.js +70 -0
- package/lib/common/aop/aop-proxy-factory.js.map +1 -0
- package/lib/common/aop/class-filter.d.ts +7 -0
- package/lib/common/aop/class-filter.d.ts.map +1 -0
- package/lib/common/aop/class-filter.js +31 -0
- package/lib/common/aop/class-filter.js.map +1 -0
- package/lib/common/aop/index.d.ts +4 -0
- package/lib/common/aop/index.d.ts.map +1 -0
- package/lib/common/aop/index.js +20 -0
- package/lib/common/aop/index.js.map +1 -0
- package/lib/common/application/application-entry.d.ts +2 -0
- package/lib/common/application/application-entry.d.ts.map +1 -0
- package/lib/common/application/application-entry.js +16 -0
- package/lib/common/application/application-entry.js.map +1 -0
- package/lib/common/application/application-error.d.ts +21 -0
- package/lib/common/application/application-error.d.ts.map +1 -0
- package/lib/common/application/application-error.js +47 -0
- package/lib/common/application/application-error.js.map +1 -0
- package/lib/common/application/application-factory.d.ts +8 -0
- package/lib/common/application/application-factory.d.ts.map +1 -0
- package/lib/common/application/application-factory.js +23 -0
- package/lib/common/application/application-factory.js.map +1 -0
- package/lib/common/application/application-protocol.d.ts +54 -0
- package/lib/common/application/application-protocol.d.ts.map +1 -0
- package/lib/common/application/application-protocol.js +108 -0
- package/lib/common/application/application-protocol.js.map +1 -0
- package/lib/common/application/application-state.d.ts +4 -0
- package/lib/common/application/application-state.d.ts.map +1 -0
- package/lib/common/application/application-state.js +18 -0
- package/lib/common/application/application-state.js.map +1 -0
- package/lib/common/application/application.d.ts +7 -0
- package/lib/common/application/application.d.ts.map +1 -0
- package/lib/common/application/application.js +34 -0
- package/lib/common/application/application.js.map +1 -0
- package/lib/common/application/index.d.ts +3 -0
- package/lib/common/application/index.d.ts.map +1 -0
- package/lib/common/application/index.js +19 -0
- package/lib/common/application/index.js.map +1 -0
- package/lib/common/config/config-protocol.d.ts +5 -0
- package/lib/common/config/config-protocol.d.ts.map +1 -0
- package/lib/common/config/config-protocol.js +5 -0
- package/lib/common/config/config-protocol.js.map +1 -0
- package/lib/common/config/config-provider.d.ts +7 -0
- package/lib/common/config/config-provider.d.ts.map +1 -0
- package/lib/common/config/config-provider.js +29 -0
- package/lib/common/config/config-provider.js.map +1 -0
- package/lib/common/config/config-util.d.ts +5 -0
- package/lib/common/config/config-util.d.ts.map +1 -0
- package/lib/common/config/config-util.js +19 -0
- package/lib/common/config/config-util.js.map +1 -0
- package/lib/common/config/dynamic-config.d.ts +4 -0
- package/lib/common/config/dynamic-config.d.ts.map +1 -0
- package/lib/common/config/dynamic-config.js +6 -0
- package/lib/common/config/dynamic-config.js.map +1 -0
- package/lib/common/config/index.d.ts +4 -0
- package/lib/common/config/index.d.ts.map +1 -0
- package/lib/common/config/index.js +20 -0
- package/lib/common/config/index.js.map +1 -0
- package/lib/common/constants.d.ts +6 -0
- package/lib/common/constants.d.ts.map +1 -0
- package/lib/common/constants.js +9 -0
- package/lib/common/constants.js.map +1 -0
- package/lib/common/container/auto-bind.d.ts +4 -0
- package/lib/common/container/auto-bind.d.ts.map +1 -0
- package/lib/common/container/auto-bind.js +103 -0
- package/lib/common/container/auto-bind.js.map +1 -0
- package/lib/common/container/container-factory.d.ts +5 -0
- package/lib/common/container/container-factory.d.ts.map +1 -0
- package/lib/common/container/container-factory.js +13 -0
- package/lib/common/container/container-factory.js.map +1 -0
- package/lib/common/container/container-provider.d.ts +7 -0
- package/lib/common/container/container-provider.d.ts.map +1 -0
- package/lib/common/container/container-provider.js +26 -0
- package/lib/common/container/container-provider.js.map +1 -0
- package/lib/common/container/container-util.d.ts +10 -0
- package/lib/common/container/container-util.d.ts.map +1 -0
- package/lib/common/container/container-util.js +32 -0
- package/lib/common/container/container-util.js.map +1 -0
- package/lib/common/container/dynamic-container.d.ts +3 -0
- package/lib/common/container/dynamic-container.d.ts.map +1 -0
- package/lib/common/container/dynamic-container.js +7 -0
- package/lib/common/container/dynamic-container.js.map +1 -0
- package/lib/common/container/index.d.ts +9 -0
- package/lib/common/container/index.d.ts.map +1 -0
- package/lib/common/container/index.js +22 -0
- package/lib/common/container/index.js.map +1 -0
- package/lib/common/container/scope.d.ts +6 -0
- package/lib/common/container/scope.d.ts.map +1 -0
- package/lib/common/container/scope.js +10 -0
- package/lib/common/container/scope.js.map +1 -0
- package/lib/common/el/core-context-initializer.d.ts +7 -0
- package/lib/common/el/core-context-initializer.d.ts.map +1 -0
- package/lib/common/el/core-context-initializer.js +39 -0
- package/lib/common/el/core-context-initializer.js.map +1 -0
- package/lib/common/el/expression-compiler.d.ts +18 -0
- package/lib/common/el/expression-compiler.d.ts.map +1 -0
- package/lib/common/el/expression-compiler.js +171 -0
- package/lib/common/el/expression-compiler.js.map +1 -0
- package/lib/common/el/expression-context-provider.d.ts +10 -0
- package/lib/common/el/expression-context-provider.d.ts.map +1 -0
- package/lib/common/el/expression-context-provider.js +46 -0
- package/lib/common/el/expression-context-provider.js.map +1 -0
- package/lib/common/el/expression-handler.d.ts +12 -0
- package/lib/common/el/expression-handler.d.ts.map +1 -0
- package/lib/common/el/expression-handler.js +97 -0
- package/lib/common/el/expression-handler.js.map +1 -0
- package/lib/common/el/expression-protocol.d.ts +25 -0
- package/lib/common/el/expression-protocol.d.ts.map +1 -0
- package/lib/common/el/expression-protocol.js +9 -0
- package/lib/common/el/expression-protocol.js.map +1 -0
- package/lib/common/el/index.d.ts +7 -0
- package/lib/common/el/index.d.ts.map +1 -0
- package/lib/common/el/index.js +23 -0
- package/lib/common/el/index.js.map +1 -0
- package/lib/common/el/jexl-engine-provider.d.ts +6 -0
- package/lib/common/el/jexl-engine-provider.d.ts.map +1 -0
- package/lib/common/el/jexl-engine-provider.js +25 -0
- package/lib/common/el/jexl-engine-provider.js.map +1 -0
- package/lib/common/error/cutom-error.d.ts +4 -0
- package/lib/common/error/cutom-error.d.ts.map +1 -0
- package/lib/common/error/cutom-error.js +8 -0
- package/lib/common/error/cutom-error.js.map +1 -0
- package/lib/common/error/error-protocol.d.ts +4 -0
- package/lib/common/error/error-protocol.d.ts.map +1 -0
- package/lib/common/error/error-protocol.js +3 -0
- package/lib/common/error/error-protocol.js.map +1 -0
- package/lib/common/error/illegal-argument-error.d.ts +4 -0
- package/lib/common/error/illegal-argument-error.d.ts.map +1 -0
- package/lib/common/error/illegal-argument-error.js +8 -0
- package/lib/common/error/illegal-argument-error.js.map +1 -0
- package/lib/common/error/index.d.ts +4 -0
- package/lib/common/error/index.d.ts.map +1 -0
- package/lib/common/error/index.js +20 -0
- package/lib/common/error/index.js.map +1 -0
- package/lib/common/index.d.ts +13 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +29 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/logger/abstract-logger.d.ts +14 -0
- package/lib/common/logger/abstract-logger.d.ts.map +1 -0
- package/lib/common/logger/abstract-logger.js +39 -0
- package/lib/common/logger/abstract-logger.js.map +1 -0
- package/lib/common/logger/index.d.ts +4 -0
- package/lib/common/logger/index.d.ts.map +1 -0
- package/lib/common/logger/index.js +20 -0
- package/lib/common/logger/index.js.map +1 -0
- package/lib/common/logger/logger-protocol.d.ts +16 -0
- package/lib/common/logger/logger-protocol.d.ts.map +1 -0
- package/lib/common/logger/logger-protocol.js +8 -0
- package/lib/common/logger/logger-protocol.js.map +1 -0
- package/lib/common/logger/logger.d.ts +8 -0
- package/lib/common/logger/logger.d.ts.map +1 -0
- package/lib/common/logger/logger.js +38 -0
- package/lib/common/logger/logger.js.map +1 -0
- package/lib/common/provider/component-filter-registry.d.ts +12 -0
- package/lib/common/provider/component-filter-registry.d.ts.map +1 -0
- package/lib/common/provider/component-filter-registry.js +69 -0
- package/lib/common/provider/component-filter-registry.js.map +1 -0
- package/lib/common/provider/index.d.ts +6 -0
- package/lib/common/provider/index.d.ts.map +1 -0
- package/lib/common/provider/index.js +22 -0
- package/lib/common/provider/index.js.map +1 -0
- package/lib/common/provider/provider-creator.d.ts +7 -0
- package/lib/common/provider/provider-creator.d.ts.map +1 -0
- package/lib/common/provider/provider-creator.js +22 -0
- package/lib/common/provider/provider-creator.js.map +1 -0
- package/lib/common/provider/provider-protocol.d.ts +49 -0
- package/lib/common/provider/provider-protocol.d.ts.map +1 -0
- package/lib/common/provider/provider-protocol.js +8 -0
- package/lib/common/provider/provider-protocol.js.map +1 -0
- package/lib/common/provider/provider-util.d.ts +6 -0
- package/lib/common/provider/provider-util.d.ts.map +1 -0
- package/lib/common/provider/provider-util.js +13 -0
- package/lib/common/provider/provider-util.js.map +1 -0
- package/lib/common/provider/provider.d.ts +14 -0
- package/lib/common/provider/provider.d.ts.map +1 -0
- package/lib/common/provider/provider.js +58 -0
- package/lib/common/provider/provider.js.map +1 -0
- package/lib/common/static-module.d.ts +4 -0
- package/lib/common/static-module.d.ts.map +1 -0
- package/lib/common/static-module.js +11 -0
- package/lib/common/static-module.js.map +1 -0
- package/lib/common/test/index.d.ts +2 -0
- package/lib/common/test/index.d.ts.map +1 -0
- package/lib/common/test/index.js +18 -0
- package/lib/common/test/index.js.map +1 -0
- package/lib/common/test/mock-logger.d.ts +9 -0
- package/lib/common/test/mock-logger.d.ts.map +1 -0
- package/lib/common/test/mock-logger.js +32 -0
- package/lib/common/test/mock-logger.js.map +1 -0
- package/lib/common/test/test-module.d.ts +3 -0
- package/lib/common/test/test-module.d.ts.map +1 -0
- package/lib/common/test/test-module.js +15 -0
- package/lib/common/test/test-module.js.map +1 -0
- package/lib/common/utils/annotation-util.d.ts +5 -0
- package/lib/common/utils/annotation-util.d.ts.map +1 -0
- package/lib/common/utils/annotation-util.js +27 -0
- package/lib/common/utils/annotation-util.js.map +1 -0
- package/lib/common/utils/async.d.ts +368 -0
- package/lib/common/utils/async.d.ts.map +1 -0
- package/lib/common/utils/async.js +964 -0
- package/lib/common/utils/async.js.map +1 -0
- package/lib/common/utils/cancellation.d.ts +22 -0
- package/lib/common/utils/cancellation.d.ts.map +1 -0
- package/lib/common/utils/cancellation.js +95 -0
- package/lib/common/utils/cancellation.js.map +1 -0
- package/lib/common/utils/class-util.d.ts +3 -0
- package/lib/common/utils/class-util.d.ts.map +1 -0
- package/lib/common/utils/class-util.js +24 -0
- package/lib/common/utils/class-util.js.map +1 -0
- package/lib/common/utils/disposable.d.ts +30 -0
- package/lib/common/utils/disposable.d.ts.map +1 -0
- package/lib/common/utils/disposable.js +82 -0
- package/lib/common/utils/disposable.js.map +1 -0
- package/lib/common/utils/emitter.d.ts +64 -0
- package/lib/common/utils/emitter.d.ts.map +1 -0
- package/lib/common/utils/emitter.js +226 -0
- package/lib/common/utils/emitter.js.map +1 -0
- package/lib/common/utils/event.d.ts +41 -0
- package/lib/common/utils/event.d.ts.map +1 -0
- package/lib/common/utils/event.js +90 -0
- package/lib/common/utils/event.js.map +1 -0
- package/lib/common/utils/global-util.d.ts +2 -0
- package/lib/common/utils/global-util.d.ts.map +1 -0
- package/lib/common/utils/global-util.js +19 -0
- package/lib/common/utils/global-util.js.map +1 -0
- package/lib/common/utils/index.d.ts +17 -0
- package/lib/common/utils/index.d.ts.map +1 -0
- package/lib/common/utils/index.js +33 -0
- package/lib/common/utils/index.js.map +1 -0
- package/lib/common/utils/metadata-util.d.ts +2 -0
- package/lib/common/utils/metadata-util.d.ts.map +1 -0
- package/lib/common/utils/metadata-util.js +29 -0
- package/lib/common/utils/metadata-util.js.map +1 -0
- package/lib/common/utils/os.d.ts +20 -0
- package/lib/common/utils/os.d.ts.map +1 -0
- package/lib/common/utils/os.js +50 -0
- package/lib/common/utils/os.js.map +1 -0
- package/lib/common/utils/prioritizeable.d.ts +18 -0
- package/lib/common/utils/prioritizeable.d.ts.map +1 -0
- package/lib/common/utils/prioritizeable.js +41 -0
- package/lib/common/utils/prioritizeable.js.map +1 -0
- package/lib/common/utils/promise-util.d.ts +6 -0
- package/lib/common/utils/promise-util.d.ts.map +1 -0
- package/lib/common/utils/promise-util.js +13 -0
- package/lib/common/utils/promise-util.js.map +1 -0
- package/lib/common/utils/proxy-util.d.ts +5 -0
- package/lib/common/utils/proxy-util.d.ts.map +1 -0
- package/lib/common/utils/proxy-util.js +41 -0
- package/lib/common/utils/proxy-util.js.map +1 -0
- package/lib/common/utils/types.d.ts +13 -0
- package/lib/common/utils/types.d.ts.map +1 -0
- package/lib/common/utils/types.js +3 -0
- package/lib/common/utils/types.js.map +1 -0
- package/lib/common/utils/url-util.d.ts +4 -0
- package/lib/common/utils/url-util.d.ts.map +1 -0
- package/lib/common/utils/url-util.js +58 -0
- package/lib/common/utils/url-util.js.map +1 -0
- package/lib/common/utils/uuid.d.ts +3 -0
- package/lib/common/utils/uuid.d.ts.map +1 -0
- package/lib/common/utils/uuid.js +65 -0
- package/lib/common/utils/uuid.js.map +1 -0
- package/lib/node/application/backend-application-state.d.ts +5 -0
- package/lib/node/application/backend-application-state.d.ts.map +1 -0
- package/lib/node/application/backend-application-state.js +17 -0
- package/lib/node/application/backend-application-state.js.map +1 -0
- package/lib/node/application/backend-application.d.ts +12 -0
- package/lib/node/application/backend-application.d.ts.map +1 -0
- package/lib/node/application/backend-application.js +55 -0
- package/lib/node/application/backend-application.js.map +1 -0
- package/lib/node/application/index.d.ts +3 -0
- package/lib/node/application/index.d.ts.map +1 -0
- package/lib/node/application/index.js +19 -0
- package/lib/node/application/index.js.map +1 -0
- package/lib/node/constants.d.ts +16 -0
- package/lib/node/constants.d.ts.map +1 -0
- package/lib/node/constants.js +19 -0
- package/lib/node/constants.js.map +1 -0
- package/lib/node/context/context.d.ts +16 -0
- package/lib/node/context/context.d.ts.map +1 -0
- package/lib/node/context/context.js +60 -0
- package/lib/node/context/context.js.map +1 -0
- package/lib/node/context/index.d.ts +2 -0
- package/lib/node/context/index.d.ts.map +1 -0
- package/lib/node/context/index.js +18 -0
- package/lib/node/context/index.js.map +1 -0
- package/lib/node/index.d.ts +4 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +20 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/static-module.d.ts +4 -0
- package/lib/node/static-module.d.ts.map +1 -0
- package/lib/node/static-module.js +6 -0
- package/lib/node/static-module.js.map +1 -0
- package/lib/node/utils/crc.d.ts +2 -0
- package/lib/node/utils/crc.d.ts.map +1 -0
- package/lib/node/utils/crc.js +11 -0
- package/lib/node/utils/crc.js.map +1 -0
- package/lib/node/utils/index.d.ts +2 -0
- package/lib/node/utils/index.d.ts.map +1 -0
- package/lib/node/utils/index.js +18 -0
- package/lib/node/utils/index.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +4 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +55 -0
- package/src/browser/application/frontend-application-state.ts +11 -0
- package/src/browser/application/frontend-application.ts +142 -0
- package/src/browser/application/index.ts +2 -0
- package/src/browser/browser.ts +59 -0
- package/src/browser/index.ts +3 -0
- package/src/browser/shell/application-shell.ts +10 -0
- package/src/browser/shell/index.ts +2 -0
- package/src/browser/shell/shell-protocol.ts +5 -0
- package/src/browser/static-module.ts +4 -0
- package/src/common/annotation/aspect.ts +18 -0
- package/src/common/annotation/autowired-provider.ts +31 -0
- package/src/common/annotation/autowired.ts +76 -0
- package/src/common/annotation/component.ts +120 -0
- package/src/common/annotation/constant.ts +20 -0
- package/src/common/annotation/decorate.ts +1 -0
- package/src/common/annotation/detached/autowired-provider.ts +13 -0
- package/src/common/annotation/detached/autowired.ts +9 -0
- package/src/common/annotation/detached/index.ts +3 -0
- package/src/common/annotation/detached/value.ts +9 -0
- package/src/common/annotation/index.ts +17 -0
- package/src/common/annotation/inject.ts +1 -0
- package/src/common/annotation/injectable.ts +1 -0
- package/src/common/annotation/named.ts +1 -0
- package/src/common/annotation/optional.ts +1 -0
- package/src/common/annotation/post-construct.ts +1 -0
- package/src/common/annotation/pre-destroy.ts +1 -0
- package/src/common/annotation/service.ts +15 -0
- package/src/common/annotation/tagged.ts +1 -0
- package/src/common/annotation/target-name.ts +1 -0
- package/src/common/annotation/unmanaged.ts +1 -0
- package/src/common/annotation/value.ts +64 -0
- package/src/common/aop/aop-protocol.ts +57 -0
- package/src/common/aop/aop-proxy-factory.ts +61 -0
- package/src/common/aop/class-filter.ts +22 -0
- package/src/common/aop/index.ts +3 -0
- package/src/common/application/application-entry.ts +14 -0
- package/src/common/application/application-error.ts +57 -0
- package/src/common/application/application-factory.ts +20 -0
- package/src/common/application/application-protocol.ts +143 -0
- package/src/common/application/application-state.ts +7 -0
- package/src/common/application/application.ts +20 -0
- package/src/common/application/index.ts +2 -0
- package/src/common/config/config-protocol.ts +5 -0
- package/src/common/config/config-provider.ts +15 -0
- package/src/common/config/config-util.ts +14 -0
- package/src/common/config/dynamic-config.ts +2 -0
- package/src/common/config/index.ts +3 -0
- package/src/common/constants.ts +6 -0
- package/src/common/container/auto-bind.ts +101 -0
- package/src/common/container/container-factory.ts +9 -0
- package/src/common/container/container-provider.ts +23 -0
- package/src/common/container/container-util.ts +28 -0
- package/src/common/container/dynamic-container.ts +4 -0
- package/src/common/container/index.ts +9 -0
- package/src/common/container/scope.ts +3 -0
- package/src/common/el/core-context-initializer.ts +25 -0
- package/src/common/el/expression-compiler.ts +157 -0
- package/src/common/el/expression-context-provider.ts +34 -0
- package/src/common/el/expression-handler.ts +84 -0
- package/src/common/el/expression-protocol.ts +36 -0
- package/src/common/el/index.ts +6 -0
- package/src/common/el/jexl-engine-provider.ts +18 -0
- package/src/common/error/cutom-error.ts +5 -0
- package/src/common/error/error-protocol.ts +4 -0
- package/src/common/error/illegal-argument-error.ts +5 -0
- package/src/common/error/index.ts +3 -0
- package/src/common/index.ts +12 -0
- package/src/common/logger/abstract-logger.ts +32 -0
- package/src/common/logger/index.ts +3 -0
- package/src/common/logger/logger-protocol.ts +23 -0
- package/src/common/logger/logger.ts +31 -0
- package/src/common/provider/component-filter-registry.ts +56 -0
- package/src/common/provider/index.ts +6 -0
- package/src/common/provider/provider-creator.ts +12 -0
- package/src/common/provider/provider-protocol.ts +59 -0
- package/src/common/provider/provider-util.ts +10 -0
- package/src/common/provider/provider.ts +63 -0
- package/src/common/static-module.ts +9 -0
- package/src/common/test/index.ts +1 -0
- package/src/common/test/mock-logger.ts +21 -0
- package/src/common/test/test-module.ts +12 -0
- package/src/common/utils/annotation-util.ts +21 -0
- package/src/common/utils/async.ts +1222 -0
- package/src/common/utils/cancellation.ts +112 -0
- package/src/common/utils/class-util.ts +20 -0
- package/src/common/utils/disposable.ts +94 -0
- package/src/common/utils/emitter.ts +268 -0
- package/src/common/utils/event.ts +124 -0
- package/src/common/utils/global-util.ts +16 -0
- package/src/common/utils/index.ts +16 -0
- package/src/common/utils/metadata-util.ts +24 -0
- package/src/common/utils/os.ts +49 -0
- package/src/common/utils/prioritizeable.ts +44 -0
- package/src/common/utils/promise-util.ts +9 -0
- package/src/common/utils/proxy-util.ts +36 -0
- package/src/common/utils/types.ts +13 -0
- package/src/common/utils/url-util.ts +64 -0
- package/src/common/utils/uuid.ts +75 -0
- package/src/node/application/backend-application-state.ts +9 -0
- package/src/node/application/backend-application.ts +43 -0
- package/src/node/application/index.ts +2 -0
- package/src/node/constants.ts +16 -0
- package/src/node/context/context.ts +58 -0
- package/src/node/context/index.ts +1 -0
- package/src/node/index.ts +3 -0
- package/src/node/static-module.ts +4 -0
- package/src/node/utils/crc.ts +7 -0
- package/src/node/utils/index.ts +1 -0
- package/src/package.spec.ts +4 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ProviderCreatorImpl = void 0;
|
|
10
|
+
const component_1 = require("../annotation/component");
|
|
11
|
+
const provider_protocol_1 = require("./provider-protocol");
|
|
12
|
+
const provider_1 = require("./provider");
|
|
13
|
+
let ProviderCreatorImpl = class ProviderCreatorImpl {
|
|
14
|
+
create(id, container) {
|
|
15
|
+
return new provider_1.ContainerBasedProvider(id, container);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
ProviderCreatorImpl = __decorate([
|
|
19
|
+
(0, component_1.Component)(provider_protocol_1.ProviderCreator)
|
|
20
|
+
], ProviderCreatorImpl);
|
|
21
|
+
exports.ProviderCreatorImpl = ProviderCreatorImpl;
|
|
22
|
+
//# sourceMappingURL=provider-creator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAAiE;AACjE,2DAAgE;AAEhE,yCAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,iCAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;AAJY,mBAAmB;IAD/B,IAAA,qBAAS,EAAC,mCAAe,CAAC;GACd,mBAAmB,CAI/B;AAJY,kDAAmB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentId } from '../annotation/component';
|
|
2
|
+
import { Container } from '../container';
|
|
3
|
+
import { Prioritizeable } from '../utils/prioritizeable';
|
|
4
|
+
export declare const ProviderCreator: unique symbol;
|
|
5
|
+
export declare const ComponentFilter: unique symbol;
|
|
6
|
+
export declare const ComponentFilterRegistry: unique symbol;
|
|
7
|
+
export declare const ComponentFilterContribution: unique symbol;
|
|
8
|
+
export interface Provider<T extends object> {
|
|
9
|
+
get(recursive?: boolean): T[];
|
|
10
|
+
sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>, recursive?: boolean): T[];
|
|
11
|
+
sort(getPriority?: Prioritizeable.GetPriority<T>, recursive?: boolean): Promise<T[]>;
|
|
12
|
+
}
|
|
13
|
+
export interface ProviderCreator<T extends object> {
|
|
14
|
+
create(id: ComponentId, container: Container): Provider<T>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @param toTest Object that should be tested
|
|
18
|
+
* @returns `true` if the object passes the test, `false` otherwise.
|
|
19
|
+
*/
|
|
20
|
+
export declare type ComponentFilter<T extends Object> = (toTest: T) => boolean;
|
|
21
|
+
export declare type ComponentType = ComponentId;
|
|
22
|
+
export interface ComponentFilterRegistry {
|
|
23
|
+
/**
|
|
24
|
+
* Add filters to be applied for every type of component.
|
|
25
|
+
*/
|
|
26
|
+
addFilters(types: '*', filters: ComponentFilter<Object>[]): void;
|
|
27
|
+
/**
|
|
28
|
+
* Given a list of component types, register filters to apply.
|
|
29
|
+
* @param types types for which to register the filters.
|
|
30
|
+
*/
|
|
31
|
+
addFilters(types: ComponentType[], filters: ComponentFilter<Object>[]): void;
|
|
32
|
+
/**
|
|
33
|
+
* Applies the filters for the given component type. Generic filters will be applied on any given type.
|
|
34
|
+
* @param toFilter the elements to filter
|
|
35
|
+
* @param type the component type for which potentially filters were registered
|
|
36
|
+
* @returns the filtered elements
|
|
37
|
+
*/
|
|
38
|
+
applyFilters<T extends Object>(toFilter: T[], type: ComponentType): T[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Register filters to remove contributions.
|
|
42
|
+
*/
|
|
43
|
+
export interface ComponentFilterContribution {
|
|
44
|
+
/**
|
|
45
|
+
* Use the registry to register your contribution filters.
|
|
46
|
+
*/
|
|
47
|
+
registerContributionFilters(registry: ComponentFilterRegistry): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=provider-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-protocol.d.ts","sourceRoot":"","sources":["../../../src/common/provider/provider-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,eAAO,MAAM,eAAe,eAA4B,CAAC;AACzD,eAAO,MAAM,eAAe,eAA4B,CAAC;AACzD,eAAO,MAAM,uBAAuB,eAAoC,CAAC;AACzE,eAAO,MAAM,2BAA2B,eAAwC,CAAC;AAEjF,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,MAAM;IACtC,GAAG,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,CAAC;IACpF,IAAI,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,EAAG,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;CACzF;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM;IAC7C,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;CAC9D;AAED;;;GAGG;AACH,oBAAY,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;AAGvE,oBAAY,aAAa,GAAG,WAAW,CAAC;AAExC,MAAM,WAAW,uBAAuB;IAEpC;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IAEjE;;;OAGG;IACH,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IAE7E;;;;;OAKG;IACH,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE,CAAA;CAC1E;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACxE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComponentFilterContribution = exports.ComponentFilterRegistry = exports.ComponentFilter = exports.ProviderCreator = void 0;
|
|
4
|
+
exports.ProviderCreator = Symbol('ProviderCreator');
|
|
5
|
+
exports.ComponentFilter = Symbol('ComponentFilter');
|
|
6
|
+
exports.ComponentFilterRegistry = Symbol('ComponentFilterRegistry');
|
|
7
|
+
exports.ComponentFilterContribution = Symbol('ComponentFilterContribution');
|
|
8
|
+
//# sourceMappingURL=provider-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-protocol.js","sourceRoot":"","sources":["../../../src/common/provider/provider-protocol.ts"],"names":[],"mappings":";;;AAIa,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC5C,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC5C,QAAA,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAC5D,QAAA,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentId } from '../annotation/component';
|
|
2
|
+
import { Provider } from './provider-protocol';
|
|
3
|
+
export declare namespace ProviderUtil {
|
|
4
|
+
function get<T extends Object>(componentId: ComponentId<T>): Provider<T>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=provider-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-util.d.ts","sourceRoot":"","sources":["../../../src/common/provider/provider-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,yBAAiB,YAAY,CAAC;IAC1B,SAAgB,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAE9E;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProviderUtil = void 0;
|
|
4
|
+
const autowired_provider_1 = require("../annotation/autowired-provider");
|
|
5
|
+
const container_1 = require("../container");
|
|
6
|
+
var ProviderUtil;
|
|
7
|
+
(function (ProviderUtil) {
|
|
8
|
+
function get(componentId) {
|
|
9
|
+
return container_1.ContainerUtil.getTagged(autowired_provider_1.PROVIDER, autowired_provider_1.ID_KEY, componentId);
|
|
10
|
+
}
|
|
11
|
+
ProviderUtil.get = get;
|
|
12
|
+
})(ProviderUtil = exports.ProviderUtil || (exports.ProviderUtil = {}));
|
|
13
|
+
//# sourceMappingURL=provider-util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-util.js","sourceRoot":"","sources":["../../../src/common/provider/provider-util.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,4CAA6C;AAG7C,IAAiB,YAAY,CAI5B;AAJD,WAAiB,YAAY;IACzB,SAAgB,GAAG,CAAmB,WAA2B;QAC7D,OAAO,yBAAa,CAAC,SAAS,CAAC,6BAAQ,EAAE,2BAAM,EAAE,WAAW,CAAC,CAAC;IAClE,CAAC;IAFe,gBAAG,MAElB,CAAA;AACL,CAAC,EAJgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAI5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentId } from '../annotation/component';
|
|
2
|
+
import { Provider } from './provider-protocol';
|
|
3
|
+
import { Container } from '../container';
|
|
4
|
+
import { Prioritizeable } from '../utils';
|
|
5
|
+
export declare class ContainerBasedProvider<T extends object> implements Provider<T> {
|
|
6
|
+
protected readonly componentId: ComponentId<T>;
|
|
7
|
+
protected readonly container: Container;
|
|
8
|
+
protected components: T[] | undefined;
|
|
9
|
+
constructor(componentId: ComponentId<T>, container: Container);
|
|
10
|
+
get(recursive?: boolean): T[];
|
|
11
|
+
sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>, recursive?: boolean): T[];
|
|
12
|
+
sort(getPriority?: Prioritizeable.GetPriority<T>, recursive?: boolean): Promise<T[]>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/common/provider/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAA2B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAa1C,qBAAa,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAKpE,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;IAC9C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS;IAJ3C,SAAS,CAAC,UAAU,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC;gBAGf,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,EAC3B,SAAS,EAAE,SAAS;IAG3C,GAAG,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE;IA2B7B,QAAQ,CAAC,WAAW,GAAE,cAAc,CAAC,eAAe,CAAC,CAAC,CAAwB,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE;IAKnG,IAAI,CAAC,WAAW,GAAE,cAAc,CAAC,WAAW,CAAC,CAAC,CAAwB,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;CAKnH"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerBasedProvider = void 0;
|
|
4
|
+
const provider_protocol_1 = require("./provider-protocol");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const DEFAULT_GET_PRIORITY = value => {
|
|
7
|
+
if (value) {
|
|
8
|
+
if ('priority' in value) {
|
|
9
|
+
return value.priority;
|
|
10
|
+
}
|
|
11
|
+
else if ('order' in value) {
|
|
12
|
+
return value.order;
|
|
13
|
+
}
|
|
14
|
+
return 0;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
class ContainerBasedProvider {
|
|
18
|
+
constructor(componentId, container) {
|
|
19
|
+
this.componentId = componentId;
|
|
20
|
+
this.container = container;
|
|
21
|
+
}
|
|
22
|
+
get(recursive) {
|
|
23
|
+
if (this.components === undefined) {
|
|
24
|
+
const currentComponents = [];
|
|
25
|
+
let filterRegistry;
|
|
26
|
+
let currentContainer = this.container;
|
|
27
|
+
// eslint-disable-next-line no-null/no-null
|
|
28
|
+
while (currentContainer !== null) {
|
|
29
|
+
if (currentContainer.isBound(this.componentId)) {
|
|
30
|
+
try {
|
|
31
|
+
currentComponents.push(...currentContainer.getAll(this.componentId));
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
console.error(error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (filterRegistry === undefined && currentContainer.isBound(provider_protocol_1.ComponentFilterRegistry)) {
|
|
38
|
+
filterRegistry = currentContainer.get(provider_protocol_1.ComponentFilterRegistry);
|
|
39
|
+
}
|
|
40
|
+
// eslint-disable-next-line no-null/no-null
|
|
41
|
+
currentContainer = recursive === true ? currentContainer.parent : null;
|
|
42
|
+
}
|
|
43
|
+
this.components = filterRegistry ? filterRegistry.applyFilters(currentComponents, this.componentId) : currentComponents;
|
|
44
|
+
}
|
|
45
|
+
return this.components;
|
|
46
|
+
}
|
|
47
|
+
sortSync(getPriority = DEFAULT_GET_PRIORITY, recursive) {
|
|
48
|
+
this.components = utils_1.Prioritizeable.prioritizeAllSync(this.get(recursive), getPriority).map(c => c.value);
|
|
49
|
+
return this.components;
|
|
50
|
+
}
|
|
51
|
+
async sort(getPriority = DEFAULT_GET_PRIORITY, recursive) {
|
|
52
|
+
const result = await utils_1.Prioritizeable.prioritizeAll(this.get(recursive), getPriority);
|
|
53
|
+
this.components = result.map(c => c.value);
|
|
54
|
+
return this.components;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ContainerBasedProvider = ContainerBasedProvider;
|
|
58
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../src/common/provider/provider.ts"],"names":[],"mappings":";;;AACA,2DAAwE;AAExE,oCAA0C;AAE1C,MAAM,oBAAoB,GAAwC,KAAK,CAAC,EAAE;IACtE,IAAI,KAAK,EAAE;QACP,IAAI,UAAU,IAAI,KAAK,EAAE;YACrB,OAAO,KAAK,CAAC,QAAQ,CAAC;SACzB;aAAM,IAAI,OAAO,IAAI,KAAK,EAAE;YACzB,OAAO,KAAK,CAAC,KAAK,CAAC;SACtB;QACD,OAAO,CAAC,CAAC;KACZ;AACL,CAAC,CAAC;AAEF,MAAa,sBAAsB;IAI/B,YACuB,WAA2B,EAC3B,SAAoB;QADpB,gBAAW,GAAX,WAAW,CAAgB;QAC3B,cAAS,GAAT,SAAS,CAAW;IACvC,CAAC;IAEL,GAAG,CAAC,SAAmB;QACnB,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;YAC/B,MAAM,iBAAiB,GAAQ,EAAE,CAAC;YAClC,IAAI,cAAmD,CAAC;YACxD,IAAI,gBAAgB,GAAqB,IAAI,CAAC,SAAS,CAAC;YACxD,2CAA2C;YAC3C,OAAO,gBAAgB,KAAK,IAAI,EAAE;gBAC9B,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;oBAC5C,IAAI;wBACA,iBAAiB,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;qBACxE;oBAAC,OAAO,KAAK,EAAE;wBACZ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;qBACxB;iBACJ;gBACD,IAAI,cAAc,KAAK,SAAS,IAAI,gBAAgB,CAAC,OAAO,CAAC,2CAAuB,CAAC,EAAE;oBACnF,cAAc,GAAG,gBAAgB,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;iBAClE;gBACD,2CAA2C;gBAC3C,gBAAgB,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;aAC1E;YAED,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;SAE3H;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,QAAQ,CAAC,cAAiD,oBAAoB,EAAE,SAAmB;QAC/F,IAAI,CAAC,UAAU,GAAG,sBAAc,CAAC,iBAAiB,CAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC1G,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,cAA6C,oBAAoB,EAAE,SAAmB;QAC7F,MAAM,MAAM,GAAG,MAAM,sBAAc,CAAC,aAAa,CAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;QACvF,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,GAAG,CAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AA9CD,wDA8CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-module.d.ts","sourceRoot":"","sources":["../../src/common/static-module.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;;AAKjB,wBAGG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("./index");
|
|
4
|
+
const value_1 = require("./annotation/value");
|
|
5
|
+
const autowired_provider_1 = require("./annotation/autowired-provider");
|
|
6
|
+
const auto_bind_1 = require("./container/auto-bind");
|
|
7
|
+
exports.default = (0, auto_bind_1.autoBind)(bind => {
|
|
8
|
+
(0, value_1.bindValue)(bind);
|
|
9
|
+
(0, autowired_provider_1.bindAutowiredProvider)(bind);
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=static-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-module.js","sourceRoot":"","sources":["../../src/common/static-module.ts"],"names":[],"mappings":";;AAAA,mBAAiB;AACjB,8CAA+C;AAC/C,wEAAwE;AACxE,qDAAiD;AAEjD,kBAAe,IAAA,oBAAQ,EAAC,IAAI,CAAC,EAAE;IAC3B,IAAA,iBAAS,EAAC,IAAI,CAAC,CAAC;IAChB,IAAA,0CAAqB,EAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/test/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./mock-logger"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/test/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Logger } from '../logger/logger-protocol';
|
|
2
|
+
export declare class MockLogger implements Logger {
|
|
3
|
+
setContext(context?: string): void;
|
|
4
|
+
info(message: any, context?: string): void;
|
|
5
|
+
error(message: any, context?: string): void;
|
|
6
|
+
warn(message: any, context?: string): void;
|
|
7
|
+
debug(message: any, context?: string): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=mock-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-logger.d.ts","sourceRoot":"","sources":["../../../src/common/test/mock-logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAEnD,qBACa,UAAW,YAAW,MAAM;IACrC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAGlC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAG1C,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAG3C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAG1C,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;CAG9C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MockLogger = void 0;
|
|
10
|
+
const annotation_1 = require("../annotation");
|
|
11
|
+
let MockLogger = class MockLogger {
|
|
12
|
+
setContext(context) {
|
|
13
|
+
// do nothing
|
|
14
|
+
}
|
|
15
|
+
info(message, context) {
|
|
16
|
+
// do nothing
|
|
17
|
+
}
|
|
18
|
+
error(message, context) {
|
|
19
|
+
// do nothing
|
|
20
|
+
}
|
|
21
|
+
warn(message, context) {
|
|
22
|
+
// do nothing
|
|
23
|
+
}
|
|
24
|
+
debug(message, context) {
|
|
25
|
+
// do nothing
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
MockLogger = __decorate([
|
|
29
|
+
(0, annotation_1.Injectable)()
|
|
30
|
+
], MockLogger);
|
|
31
|
+
exports.MockLogger = MockLogger;
|
|
32
|
+
//# sourceMappingURL=mock-logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-logger.js","sourceRoot":"","sources":["../../../src/common/test/mock-logger.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACnB,UAAU,CAAC,OAAgB;QACvB,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;CACJ,CAAA;AAhBY,UAAU;IADtB,IAAA,uBAAU,GAAE;GACA,UAAU,CAgBtB;AAhBY,gCAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-module.d.ts","sourceRoot":"","sources":["../../../src/common/test/test-module.ts"],"names":[],"mappings":"AAKA,OAAO,UAAU,CAAC;AAElB,eAAO,MAAM,cAAc,0EAIzB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coreTestModule = void 0;
|
|
4
|
+
const autowired_provider_1 = require("../annotation/autowired-provider");
|
|
5
|
+
const value_1 = require("../annotation/value");
|
|
6
|
+
const container_1 = require("../container");
|
|
7
|
+
const logger_1 = require("../logger");
|
|
8
|
+
const mock_logger_1 = require("./mock-logger");
|
|
9
|
+
require("../index");
|
|
10
|
+
exports.coreTestModule = (0, container_1.autoBind)((bind, unbind, isBound, rebind) => {
|
|
11
|
+
(0, value_1.bindValue)(bind);
|
|
12
|
+
(0, autowired_provider_1.bindAutowiredProvider)(bind);
|
|
13
|
+
rebind(logger_1.Logger).to(mock_logger_1.MockLogger).inSingletonScope();
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=test-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-module.js","sourceRoot":"","sources":["../../../src/common/test/test-module.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AACzE,+CAAgD;AAChD,4CAAwC;AACxC,sCAAmC;AACnC,+CAA2C;AAC3C,oBAAkB;AAEL,QAAA,cAAc,GAAG,IAAA,oBAAQ,EAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACrE,IAAA,iBAAS,EAAC,IAAI,CAAC,CAAC;IAChB,IAAA,0CAAqB,EAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,CAAC,eAAM,CAAC,CAAC,EAAE,CAAC,wBAAU,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACrD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-util.d.ts","sourceRoot":"","sources":["../../../src/common/utils/annotation-util.ts"],"names":[],"mappings":"AAAA,yBAAiB,cAAc,CAAC;IAE5B,SAAgB,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,GAAG,EAAE,eAAe,SAAO,GAAG,CAAC,CAQlF;IAED,SAAgB,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,OAM9E;CAEJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnnotationUtil = void 0;
|
|
4
|
+
var AnnotationUtil;
|
|
5
|
+
(function (AnnotationUtil) {
|
|
6
|
+
function getValueOrOption(valueOrOption, primaryProperty = 'id') {
|
|
7
|
+
let option = {};
|
|
8
|
+
if (typeof valueOrOption === 'object' && !Array.isArray(valueOrOption)) {
|
|
9
|
+
option = valueOrOption;
|
|
10
|
+
}
|
|
11
|
+
else if (valueOrOption) {
|
|
12
|
+
option = { [primaryProperty]: valueOrOption };
|
|
13
|
+
}
|
|
14
|
+
return option;
|
|
15
|
+
}
|
|
16
|
+
AnnotationUtil.getValueOrOption = getValueOrOption;
|
|
17
|
+
function getType(target, targetKey, index) {
|
|
18
|
+
if (index !== undefined) {
|
|
19
|
+
return Reflect.getMetadata('design:paramtypes', target, targetKey)[index];
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return Reflect.getMetadata('design:type', target, targetKey);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
AnnotationUtil.getType = getType;
|
|
26
|
+
})(AnnotationUtil = exports.AnnotationUtil || (exports.AnnotationUtil = {}));
|
|
27
|
+
//# sourceMappingURL=annotation-util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-util.js","sourceRoot":"","sources":["../../../src/common/utils/annotation-util.ts"],"names":[],"mappings":";;;AAAA,IAAiB,cAAc,CAoB9B;AApBD,WAAiB,cAAc;IAE3B,SAAgB,gBAAgB,CAAI,aAAmB,EAAE,eAAe,GAAG,IAAI;QAC3E,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,OAAO,aAAa,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;YACpE,MAAM,GAAG,aAAa,CAAC;SAC1B;aAAM,IAAI,aAAa,EAAE;YACtB,MAAM,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;SACjD;QACD,OAAO,MAAW,CAAC;IACvB,CAAC;IARe,+BAAgB,mBAQ/B,CAAA;IAED,SAAgB,OAAO,CAAC,MAAW,EAAE,SAA0B,EAAE,KAAc;QAC3E,IAAI,KAAK,KAAK,SAAS,EAAG;YACtB,OAAO,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC;SAC7E;aAAM;YACH,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;SAChE;IACL,CAAC;IANe,sBAAO,UAMtB,CAAA;AAEL,CAAC,EApBgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAoB9B"}
|