@creatio-devkit/common 0.815.0 → 0.820.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/CHANGELOG.md +6 -1
- package/esm2022/lib/base-exports.mjs +5 -0
- package/esm2022/lib/external/functions/aggregation-adapter.mjs +72 -0
- package/esm2022/lib/external/functions/date-part-type-adapter.mjs +48 -0
- package/esm2022/lib/external/functions/function-type-adapter.mjs +28 -0
- package/esm2022/lib/external/functions/order-direction-adapter.mjs +28 -0
- package/esm2022/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +17 -0
- package/{esm2020 → esm2022}/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.mjs +1 -1
- package/esm2022/lib/internal/models/design-time-view-element-registry-item.mjs +2 -0
- package/esm2022/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +2 -0
- package/esm2022/lib/internal/models/lazy-module-ref.mjs +26 -0
- package/esm2022/lib/internal/services/base-registry/base-registry.mjs +31 -0
- package/esm2022/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +28 -0
- package/esm2022/lib/internal/services/chat-message-type-registry/chat-message-type-registry.mjs +22 -0
- package/esm2022/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +32 -0
- package/esm2022/lib/internal/services/element-registration-checker/element-registration-checker.mjs +60 -0
- package/esm2022/lib/internal/services/global-converters-registry/converter-registry.mjs +32 -0
- package/esm2022/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +26 -0
- package/esm2022/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +28 -0
- package/esm2022/lib/internal/services/lazy-modules-manager/lazy-modules-manager.mjs +35 -0
- package/esm2022/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +18 -0
- package/{esm2020 → esm2022}/lib/internal/services/remote-entries-registry/remote-entries-registry.mjs +5 -5
- package/esm2022/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +106 -0
- package/esm2022/lib/internal/services/request-registry/request-registry.service.mjs +33 -0
- package/esm2022/lib/internal/services/validator-registry/validator-registry.mjs +42 -0
- package/esm2022/lib/internal/services/view-element-registry/view-element-registry.mjs +75 -0
- package/{esm2020 → esm2022}/lib/internal/utils/component-config-utils.mjs +1 -1
- package/esm2022/lib/internal/utils/handlers-order-comparer.mjs +42 -0
- package/{esm2020 → esm2022}/lib/internal/utils/index.mjs +2 -1
- package/esm2022/lib/internal/utils/instantiate.mjs +24 -0
- package/esm2022/lib/internal/utils/localization-utils.mjs +24 -0
- package/esm2022/lib/internal/utils/metadata-utils.mjs +208 -0
- package/esm2022/lib/internal/utils/module-utils.mjs +38 -0
- package/esm2022/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +13 -0
- package/{esm2020 → esm2022}/lib/internal/utils/request-handler-scopes.mjs +1 -1
- package/esm2022/lib/public/decorators/converter/converter.decorator.mjs +21 -0
- package/esm2022/lib/public/decorators/input/input.decorator.mjs +25 -0
- package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +23 -0
- package/esm2022/lib/public/decorators/request-handler/request-handler.decorator.mjs +22 -0
- package/esm2022/lib/public/decorators/validator/validator.decorator.mjs +25 -0
- package/{esm2020 → esm2022}/lib/public/decorators/view-element/view-element.decorator.mjs +2 -2
- package/esm2022/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +32 -0
- package/esm2022/lib/public/functions/bootstrap-crt-module.mjs +303 -0
- package/esm2022/lib/public/functions/bootstrapped-crt-modules.mjs +8 -0
- package/esm2022/lib/public/functions/crt-module-context-hooks.mjs +30 -0
- package/esm2022/lib/public/handlers/base-request-handler.mjs +37 -0
- package/{esm2020 → esm2022}/lib/public/models/localizable-value.mjs +6 -6
- package/esm2022/lib/public/models/module-definition.mjs +2 -0
- package/{esm2020 → esm2022}/lib/public/models/request/handle-view-model-attribute-change.request.mjs +1 -1
- package/esm2022/lib/public/models/validation/base-validator.mjs +40 -0
- package/esm2022/lib/public/models/view-element/base-view-element-registration-config.mjs +2 -0
- package/{esm2020 → esm2022}/lib/public/models/view-element/index.mjs +2 -2
- package/esm2022/lib/public/models/view-element/view-element-render-strategy.mjs +16 -0
- package/{esm2020 → esm2022}/lib/public/services/crt-zone/crt-zone.service.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/services/dialog-service/dialog.service.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/services/feature/feature.service.mjs +1 -1
- package/esm2022/lib/public/services/handler-chain/handler-chain.service.mjs +71 -0
- package/esm2022/lib/public/services/handler-chain/internal-handler-chain.mjs +195 -0
- package/{esm2020 → esm2022}/lib/public/services/http-client/http-client.service.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/services/index.mjs +2 -1
- package/esm2022/lib/public/services/license/license.service.mjs +30 -0
- package/{esm2020 → esm2022}/lib/public/services/mask-service/mask.service.mjs +1 -1
- package/esm2022/lib/public/services/message-channel/index.mjs +2 -0
- package/esm2022/lib/public/services/message-channel/message-channel.service.mjs +27 -0
- package/esm2022/lib/public/services/model/model.mjs +85 -0
- package/{esm2020 → esm2022}/lib/public/services/rights/rights.service.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/services/sys-settings/sys-settings.service.mjs +1 -1
- package/esm2022/lib/public/services/sys-values/sys-values.mjs +2 -0
- package/{esm2020 → esm2022}/lib/public/services/sys-values/sys-values.service.mjs +1 -1
- package/{fesm2020 → fesm2022}/creatio-devkit-common.mjs +416 -325
- package/fesm2022/creatio-devkit-common.mjs.map +1 -0
- package/index.d.ts +66 -6
- package/package.json +8 -17
- package/esm2020/lib/base-exports.mjs +0 -4
- package/esm2020/lib/external/functions/aggregation-adapter.mjs +0 -72
- package/esm2020/lib/external/functions/date-part-type-adapter.mjs +0 -48
- package/esm2020/lib/external/functions/function-type-adapter.mjs +0 -28
- package/esm2020/lib/external/functions/order-direction-adapter.mjs +0 -28
- package/esm2020/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +0 -15
- package/esm2020/lib/internal/models/design-time-view-element-registry-item.mjs +0 -2
- package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +0 -2
- package/esm2020/lib/internal/models/lazy-module-ref.mjs +0 -26
- package/esm2020/lib/internal/services/base-registry/base-registry.mjs +0 -31
- package/esm2020/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +0 -28
- package/esm2020/lib/internal/services/chat-message-type-registry/chat-message-type-registry.mjs +0 -22
- package/esm2020/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +0 -32
- package/esm2020/lib/internal/services/element-registration-checker/element-registration-checker.mjs +0 -60
- package/esm2020/lib/internal/services/global-converters-registry/converter-registry.mjs +0 -32
- package/esm2020/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +0 -26
- package/esm2020/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +0 -28
- package/esm2020/lib/internal/services/lazy-modules-manager/lazy-modules-manager.mjs +0 -35
- package/esm2020/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +0 -18
- package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +0 -106
- package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +0 -33
- package/esm2020/lib/internal/services/validator-registry/validator-registry.mjs +0 -42
- package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +0 -60
- package/esm2020/lib/internal/utils/handlers-order-comparer.mjs +0 -42
- package/esm2020/lib/internal/utils/instantiate.mjs +0 -24
- package/esm2020/lib/internal/utils/localization-utils.mjs +0 -24
- package/esm2020/lib/internal/utils/metadata-utils.mjs +0 -208
- package/esm2020/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +0 -13
- package/esm2020/lib/public/decorators/converter/converter.decorator.mjs +0 -21
- package/esm2020/lib/public/decorators/input/input.decorator.mjs +0 -25
- package/esm2020/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +0 -23
- package/esm2020/lib/public/decorators/request-handler/request-handler.decorator.mjs +0 -22
- package/esm2020/lib/public/decorators/validator/validator.decorator.mjs +0 -25
- package/esm2020/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +0 -32
- package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +0 -303
- package/esm2020/lib/public/functions/bootstrapped-crt-modules.mjs +0 -9
- package/esm2020/lib/public/functions/crt-module-context-hooks.mjs +0 -30
- package/esm2020/lib/public/handlers/base-request-handler.mjs +0 -37
- package/esm2020/lib/public/models/module-definition.mjs +0 -2
- package/esm2020/lib/public/models/validation/base-validator.mjs +0 -40
- package/esm2020/lib/public/models/view-element/base-view-element-registration-config.mjs +0 -2
- package/esm2020/lib/public/models/view-element/view-element-visibility-strategy.mjs +0 -16
- package/esm2020/lib/public/services/handler-chain/handler-chain.service.mjs +0 -71
- package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +0 -190
- package/esm2020/lib/public/services/license/license.service.mjs +0 -22
- package/esm2020/lib/public/services/model/model.mjs +0 -85
- package/esm2020/lib/public/services/sys-values/sys-values.mjs +0 -2
- package/fesm2015/creatio-devkit-common.mjs +0 -2710
- package/fesm2015/creatio-devkit-common.mjs.map +0 -1
- package/fesm2020/creatio-devkit-common.mjs.map +0 -1
- /package/{esm2020 → esm2022}/creatio-devkit-common.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/functions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/models/attribute-value-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/models/date-time/grouped-date-value.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/models/date-time/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/models/file-value.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/constants/default-size.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/constants/metadata.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/decorators/design-time-view-element/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/decorators/implement-using-handler-chain/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/decorators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/decorators/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/decorators/request/request.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/designer-group-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/handler-source-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/view-element-group-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/attribute-property-config.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/converter/converter-registry-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/converter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/handler-chain-service-registry-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/injection-context/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/injection-context/injection-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/interface-designer-item/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/interface-designer-registry-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/internal-module-definition.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/lazy-module-metadata.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/lazy-registry-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/remote-build-info.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request/method-invoke-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request-handler/contexed-handler-scope-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request-handler/handler-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request-handler/handler-source.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request-handler/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request-handler/request-handler-factory.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/validator/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/validator/validator-parameters.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/validator/validator-registry-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/validator/validator-schema-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/view-element/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/view-element-registry-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/base-handler-chain.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/base-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/bootstrap-notifier/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/chat-message-type-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/design-time-view-element-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/element-registration-checker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/global-converters-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/handler-chain-services-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/interface-designer-item-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/lazy-modules-manager/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/pkg-topology-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/remote-entries-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/request-handler-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/request-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/validator-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/services/view-element-registry/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/types/internal-resolve-dependency-fn.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/types/localizable-values.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/utils/object-deep-keys/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/chat-message-type/chat-message-type.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/chat-message-type/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/converter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/inject/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/inject/inject.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/interface-designer-item/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/module/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/module/module.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/output/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/output/output.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/request-handler/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/validation-input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/validation-input/validation-input.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/validator/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/decorators/view-element/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/data-source-load-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/view-element-property.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/functions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/functions/localize.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/functions/register-angular-view-element.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/functions/register-view-element.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/functions/reset-globals.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/handlers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/base-response.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/converter/converter-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/converter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/converter.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/entity.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/error-info.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/image-value.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/input/input-registration-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/interface-designer-item/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/item-creation-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/license/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/license/license-restriction-operation-values.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/mask-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/base-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/data-source-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/model-event.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/view-model-attribute-change-event-options.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request-handler/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request-handler/request-handler-definition.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/crt-control-state.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/crt-validation-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/crt-validator-fn.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/validation-info.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/validator-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/validation/validator-parameter-values.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/view-element/view-element-registration-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/view-element/view-element-reuse-strategy.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/view-element/view-element-slot-definition.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/crt-zone/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog-service/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/feature/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/handler-chain/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/http-client/http-headers.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/http-client/http-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/http-client/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/license/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/mask-service/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/rights/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/sys-settings/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/sys-settings/sys-setting.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/sys-values/index.mjs +0 -0
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { ɵAggregationType, ɵAggregationFunction, ɵAggregationEvalType, ɵDatePartType, ɵFunctionType, ɵOrderDirection, ɵgenerateGuid, ɵNextHandlerAlreadySpecifiedException, ɵBaseRequest, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction } from '@creatio/base';
|
|
2
|
-
export { ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵColumnExpression as ColumnExpression, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaType as DataSchemaType, ɵDataSourceScope as DataSourceScope, ɵDataValueType as DataValueType, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartType as DatePartType, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionType as FunctionType, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLogicalOperatorType as LogicalOperatorType, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵMessageChannelType as MessageChannelType, ɵModelInPageAction as ModelInPageAction, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterQueryColumn as ParameterQueryColumn, ɵPlatformAPIs as PlatformAPIs, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵSchemaViewMaskRequest as SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
1
|
+
import { ɵAggregationType as _AggregationType, ɵAggregationFunction as _AggregationFunction, ɵAggregationEvalType as _AggregationEvalType, ɵDatePartType as _DatePartType, ɵFunctionType as _FunctionType, ɵOrderDirection as _OrderDirection, ɵgenerateGuid as _generateGuid, ɵNextHandlerAlreadySpecifiedException as _NextHandlerAlreadySpecifiedException, ɵBaseRequest as _BaseRequest, ɵSchemaViewMaskRequest as _SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as _SchemaViewMaskRequestAction } from '@creatio/base';
|
|
2
|
+
export { ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵColumnExpression as ColumnExpression, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaType as DataSchemaType, ɵDataSourceScope as DataSourceScope, ɵDataValueType as DataValueType, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartType as DatePartType, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionType as FunctionType, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLogicalOperatorType as LogicalOperatorType, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵMessageChannelType as MessageChannelType, ɵModelInPageAction as ModelInPageAction, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterQueryColumn as ParameterQueryColumn, ɵPlatformAPIs as PlatformAPIs, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵSchemaViewMaskRequest as SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵSubscription as Subscription, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
3
3
|
import { get, set, upperFirst, camelCase, isEqual, cloneDeep } from 'lodash';
|
|
4
4
|
import 'reflect-metadata';
|
|
5
5
|
import { __decorate, __metadata } from 'tslib';
|
|
6
6
|
|
|
7
|
+
// noinspection NonAsciiCharacters, JSNonASCIINames
|
|
8
|
+
|
|
7
9
|
/**
|
|
8
10
|
* @internal
|
|
9
11
|
*/
|
|
10
12
|
function toAggregationType(aggregationFunction) {
|
|
11
13
|
switch (aggregationFunction) {
|
|
12
|
-
case
|
|
13
|
-
return
|
|
14
|
-
case
|
|
15
|
-
return
|
|
16
|
-
case
|
|
17
|
-
return
|
|
18
|
-
case
|
|
19
|
-
return
|
|
20
|
-
case
|
|
21
|
-
return
|
|
22
|
-
case
|
|
23
|
-
return
|
|
14
|
+
case _AggregationFunction.Count:
|
|
15
|
+
return _AggregationType.Count;
|
|
16
|
+
case _AggregationFunction.Sum:
|
|
17
|
+
return _AggregationType.Sum;
|
|
18
|
+
case _AggregationFunction.Avg:
|
|
19
|
+
return _AggregationType.Avg;
|
|
20
|
+
case _AggregationFunction.Min:
|
|
21
|
+
return _AggregationType.Min;
|
|
22
|
+
case _AggregationFunction.Max:
|
|
23
|
+
return _AggregationType.Max;
|
|
24
|
+
case _AggregationFunction.TopOne:
|
|
25
|
+
return _AggregationType.TopOne;
|
|
24
26
|
default:
|
|
25
|
-
return
|
|
27
|
+
return _AggregationType.None;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
@@ -30,20 +32,20 @@ function toAggregationType(aggregationFunction) {
|
|
|
30
32
|
*/
|
|
31
33
|
function toAggregationFunction(aggregationType) {
|
|
32
34
|
switch (aggregationType) {
|
|
33
|
-
case
|
|
34
|
-
return
|
|
35
|
-
case
|
|
36
|
-
return
|
|
37
|
-
case
|
|
38
|
-
return
|
|
39
|
-
case
|
|
40
|
-
return
|
|
41
|
-
case
|
|
42
|
-
return
|
|
43
|
-
case
|
|
44
|
-
return
|
|
35
|
+
case _AggregationType.Count:
|
|
36
|
+
return _AggregationFunction.Count;
|
|
37
|
+
case _AggregationType.Sum:
|
|
38
|
+
return _AggregationFunction.Sum;
|
|
39
|
+
case _AggregationType.Avg:
|
|
40
|
+
return _AggregationFunction.Avg;
|
|
41
|
+
case _AggregationType.Min:
|
|
42
|
+
return _AggregationFunction.Min;
|
|
43
|
+
case _AggregationType.Max:
|
|
44
|
+
return _AggregationFunction.Max;
|
|
45
|
+
case _AggregationType.TopOne:
|
|
46
|
+
return _AggregationFunction.TopOne;
|
|
45
47
|
default:
|
|
46
|
-
return
|
|
48
|
+
return _AggregationFunction.None;
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
@@ -52,11 +54,11 @@ function toAggregationFunction(aggregationType) {
|
|
|
52
54
|
function toAggregationEvalType(aggregationEval) {
|
|
53
55
|
switch (aggregationEval) {
|
|
54
56
|
case 'all':
|
|
55
|
-
return
|
|
57
|
+
return _AggregationEvalType.All;
|
|
56
58
|
case 'distinct':
|
|
57
|
-
return
|
|
59
|
+
return _AggregationEvalType.Distinct;
|
|
58
60
|
default:
|
|
59
|
-
return
|
|
61
|
+
return _AggregationEvalType.None;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
@@ -64,9 +66,9 @@ function toAggregationEvalType(aggregationEval) {
|
|
|
64
66
|
*/
|
|
65
67
|
function toAggregationEval(aggregationEvalType) {
|
|
66
68
|
switch (aggregationEvalType) {
|
|
67
|
-
case
|
|
69
|
+
case _AggregationEvalType.All:
|
|
68
70
|
return 'all';
|
|
69
|
-
case
|
|
71
|
+
case _AggregationEvalType.Distinct:
|
|
70
72
|
return 'distinct';
|
|
71
73
|
default:
|
|
72
74
|
return 'none';
|
|
@@ -79,21 +81,21 @@ function toAggregationEval(aggregationEvalType) {
|
|
|
79
81
|
function toDatePartType(aggregationFunction) {
|
|
80
82
|
switch (aggregationFunction) {
|
|
81
83
|
case 'minute':
|
|
82
|
-
return
|
|
84
|
+
return _DatePartType.HourMinute;
|
|
83
85
|
case 'hour':
|
|
84
|
-
return
|
|
86
|
+
return _DatePartType.Hour;
|
|
85
87
|
case 'day':
|
|
86
|
-
return
|
|
88
|
+
return _DatePartType.Day;
|
|
87
89
|
case 'weekday':
|
|
88
|
-
return
|
|
90
|
+
return _DatePartType.WeekDay;
|
|
89
91
|
case 'week':
|
|
90
|
-
return
|
|
92
|
+
return _DatePartType.Week;
|
|
91
93
|
case 'month':
|
|
92
|
-
return
|
|
94
|
+
return _DatePartType.Month;
|
|
93
95
|
case 'year':
|
|
94
|
-
return
|
|
96
|
+
return _DatePartType.Year;
|
|
95
97
|
default:
|
|
96
|
-
return
|
|
98
|
+
return _DatePartType.None;
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
101
|
/**
|
|
@@ -101,19 +103,19 @@ function toDatePartType(aggregationFunction) {
|
|
|
101
103
|
*/
|
|
102
104
|
function toDatePart(aggregationType) {
|
|
103
105
|
switch (aggregationType) {
|
|
104
|
-
case
|
|
106
|
+
case _DatePartType.HourMinute:
|
|
105
107
|
return 'minute';
|
|
106
|
-
case
|
|
108
|
+
case _DatePartType.Hour:
|
|
107
109
|
return 'hour';
|
|
108
|
-
case
|
|
110
|
+
case _DatePartType.Day:
|
|
109
111
|
return 'day';
|
|
110
|
-
case
|
|
112
|
+
case _DatePartType.WeekDay:
|
|
111
113
|
return 'weekday';
|
|
112
|
-
case
|
|
114
|
+
case _DatePartType.Week:
|
|
113
115
|
return 'week';
|
|
114
|
-
case
|
|
116
|
+
case _DatePartType.Month:
|
|
115
117
|
return 'month';
|
|
116
|
-
case
|
|
118
|
+
case _DatePartType.Year:
|
|
117
119
|
return 'year';
|
|
118
120
|
default:
|
|
119
121
|
return 'none';
|
|
@@ -125,9 +127,9 @@ function toDatePart(aggregationType) {
|
|
|
125
127
|
*/
|
|
126
128
|
function toStringFunctionType(functionType) {
|
|
127
129
|
switch (functionType) {
|
|
128
|
-
case
|
|
130
|
+
case _FunctionType.Aggregation:
|
|
129
131
|
return 'aggregation';
|
|
130
|
-
case
|
|
132
|
+
case _FunctionType.DatePart:
|
|
131
133
|
return 'datePart';
|
|
132
134
|
default:
|
|
133
135
|
return 'none';
|
|
@@ -139,11 +141,11 @@ function toStringFunctionType(functionType) {
|
|
|
139
141
|
function toNumericFunctionType(functionType) {
|
|
140
142
|
switch (functionType) {
|
|
141
143
|
case 'aggregation':
|
|
142
|
-
return
|
|
144
|
+
return _FunctionType.Aggregation;
|
|
143
145
|
case 'datePart':
|
|
144
|
-
return
|
|
146
|
+
return _FunctionType.DatePart;
|
|
145
147
|
default:
|
|
146
|
-
return
|
|
148
|
+
return _FunctionType.None;
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
151
|
|
|
@@ -153,11 +155,11 @@ function toNumericFunctionType(functionType) {
|
|
|
153
155
|
function toOrderDirection(sortDirection) {
|
|
154
156
|
switch (sortDirection) {
|
|
155
157
|
case 'asc':
|
|
156
|
-
return
|
|
158
|
+
return _OrderDirection.Asc;
|
|
157
159
|
case 'desc':
|
|
158
|
-
return
|
|
160
|
+
return _OrderDirection.Desc;
|
|
159
161
|
default:
|
|
160
|
-
return
|
|
162
|
+
return _OrderDirection.None;
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
/**
|
|
@@ -165,9 +167,9 @@ function toOrderDirection(sortDirection) {
|
|
|
165
167
|
*/
|
|
166
168
|
function toSortDirection(orderDirection) {
|
|
167
169
|
switch (orderDirection) {
|
|
168
|
-
case
|
|
170
|
+
case _OrderDirection.Asc:
|
|
169
171
|
return 'asc';
|
|
170
|
-
case
|
|
172
|
+
case _OrderDirection.Desc:
|
|
171
173
|
return 'desc';
|
|
172
174
|
default:
|
|
173
175
|
return 'none';
|
|
@@ -204,6 +206,7 @@ class LazyModulesManager {
|
|
|
204
206
|
this._refs = new Set();
|
|
205
207
|
this.lazyLoadingDisabled = false;
|
|
206
208
|
}
|
|
209
|
+
static { this._globalInstancePath = 'creatio._lazyModulesManager'; }
|
|
207
210
|
static get instance() {
|
|
208
211
|
if (!this._instance) {
|
|
209
212
|
let globalInstance = get(window, this._globalInstancePath);
|
|
@@ -228,7 +231,6 @@ class LazyModulesManager {
|
|
|
228
231
|
this._refs.clear();
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
|
-
LazyModulesManager._globalInstancePath = 'creatio._lazyModulesManager';
|
|
232
234
|
|
|
233
235
|
/**
|
|
234
236
|
* @internal
|
|
@@ -286,6 +288,7 @@ class ɵBaseRegistry {
|
|
|
286
288
|
typeInfos: new Map(),
|
|
287
289
|
};
|
|
288
290
|
}
|
|
291
|
+
static { this._prefix = 'creatio.registry.'; }
|
|
289
292
|
static get store() {
|
|
290
293
|
if (!this._instance) {
|
|
291
294
|
let globalInstance = get(global$4, this._prefix + this.registryKey);
|
|
@@ -298,12 +301,12 @@ class ɵBaseRegistry {
|
|
|
298
301
|
return this._instance.store;
|
|
299
302
|
}
|
|
300
303
|
}
|
|
301
|
-
ɵBaseRegistry._prefix = 'creatio.registry.';
|
|
302
304
|
|
|
303
305
|
/**
|
|
304
306
|
* @internal
|
|
305
307
|
*/
|
|
306
308
|
class PkgTopology extends ɵBaseRegistry {
|
|
309
|
+
static { this.registryKey = 'pkgTopology'; }
|
|
307
310
|
static get items() {
|
|
308
311
|
return this.store.typeInfos;
|
|
309
312
|
}
|
|
@@ -315,7 +318,6 @@ class PkgTopology extends ɵBaseRegistry {
|
|
|
315
318
|
return order;
|
|
316
319
|
}
|
|
317
320
|
}
|
|
318
|
-
PkgTopology.registryKey = 'pkgTopology';
|
|
319
321
|
|
|
320
322
|
/**
|
|
321
323
|
* @internal
|
|
@@ -357,6 +359,249 @@ class HandlersOrderComparer {
|
|
|
357
359
|
}
|
|
358
360
|
}
|
|
359
361
|
|
|
362
|
+
const moduleMetadataKey = 'module';
|
|
363
|
+
const viewElementMetadataKey = 'viewElement';
|
|
364
|
+
const interfaceDesignerItemMetadataKey = 'interfaceDesignerItem';
|
|
365
|
+
const requestHandlerMetadataKey = 'requestHandler';
|
|
366
|
+
const designTimeViewElementMetadataKey = 'designTimeViewElement';
|
|
367
|
+
const validatorMetadataKey = 'validator';
|
|
368
|
+
const converterMetadataKey = 'converter';
|
|
369
|
+
/**
|
|
370
|
+
* @internal
|
|
371
|
+
*/
|
|
372
|
+
function setModuleMetadata(metadata, type) {
|
|
373
|
+
Reflect.defineMetadata(moduleMetadataKey, metadata, type);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @internal
|
|
377
|
+
*/
|
|
378
|
+
function getModuleMetadata(type) {
|
|
379
|
+
const metadata = Reflect.getMetadata(moduleMetadataKey, type);
|
|
380
|
+
if (!metadata) {
|
|
381
|
+
throw new Error(`Module metadata was not found on '${type.name}' class`);
|
|
382
|
+
}
|
|
383
|
+
return metadata;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
function setViewElementMetadata(metadata, type) {
|
|
389
|
+
Reflect.defineMetadata(viewElementMetadataKey, metadata, type);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* @internal
|
|
393
|
+
*/
|
|
394
|
+
function getViewElementMetadata(type) {
|
|
395
|
+
const metadata = Reflect.getMetadata(viewElementMetadataKey, type);
|
|
396
|
+
if (!metadata) {
|
|
397
|
+
throw new Error(`View element metadata was not found on '${type.name}' class`);
|
|
398
|
+
}
|
|
399
|
+
return metadata;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @internal
|
|
403
|
+
*/
|
|
404
|
+
function setValidatorMetadata(metadata, type) {
|
|
405
|
+
Reflect.defineMetadata(validatorMetadataKey, metadata, type);
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @internal
|
|
409
|
+
*/
|
|
410
|
+
function getValidatorMetadata(type) {
|
|
411
|
+
const metadata = Reflect.getOwnMetadata(validatorMetadataKey, type);
|
|
412
|
+
if (!metadata) {
|
|
413
|
+
throw new Error(`Validator metadata was not found on '${type.name}' class`);
|
|
414
|
+
}
|
|
415
|
+
return metadata;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* @internal
|
|
419
|
+
*/
|
|
420
|
+
function setConverterMetadata(metadata, type) {
|
|
421
|
+
Reflect.defineMetadata(converterMetadataKey, metadata, type);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @internal
|
|
425
|
+
*/
|
|
426
|
+
function getConverterMetadata(type) {
|
|
427
|
+
const metadata = Reflect.getOwnMetadata(converterMetadataKey, type);
|
|
428
|
+
if (!metadata) {
|
|
429
|
+
throw new Error(`Converter metadata was not found on '${type.name}' class`);
|
|
430
|
+
}
|
|
431
|
+
return metadata;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* @internal
|
|
435
|
+
*/
|
|
436
|
+
function setInterfaceDesignerItemMetadata(metadata, type) {
|
|
437
|
+
Reflect.defineMetadata(interfaceDesignerItemMetadataKey, metadata, type);
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* @internal
|
|
441
|
+
*/
|
|
442
|
+
function getInterfaceDesignerItemMetadata(type) {
|
|
443
|
+
const metadata = Reflect.getOwnMetadata(interfaceDesignerItemMetadataKey, type);
|
|
444
|
+
if (!metadata) {
|
|
445
|
+
throw new Error(`Interface designer item metadata was not found on '${type.name}' class`);
|
|
446
|
+
}
|
|
447
|
+
return metadata;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @internal
|
|
451
|
+
*/
|
|
452
|
+
function setDesignTimeViewElementMetadata(metadata, type) {
|
|
453
|
+
Reflect.defineMetadata(designTimeViewElementMetadataKey, metadata, type);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @internal
|
|
457
|
+
*/
|
|
458
|
+
function getDesignTimeViewElementMetadata(type) {
|
|
459
|
+
const metadata = Reflect.getOwnMetadata(designTimeViewElementMetadataKey, type);
|
|
460
|
+
if (!metadata) {
|
|
461
|
+
throw new Error(`Design time view element metadata was not found on '${type.name}' class`);
|
|
462
|
+
}
|
|
463
|
+
return metadata;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* @internal
|
|
467
|
+
*/
|
|
468
|
+
function hasInterfaceDesignerItemMetadata(type) {
|
|
469
|
+
return Reflect.hasOwnMetadata(interfaceDesignerItemMetadataKey, type);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* @internal
|
|
473
|
+
*/
|
|
474
|
+
function setRequestHandlerMetadata(metadata, type) {
|
|
475
|
+
Reflect.defineMetadata(requestHandlerMetadataKey, metadata, type);
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* @internal
|
|
479
|
+
*/
|
|
480
|
+
function getRequestHandlerMetadata(type) {
|
|
481
|
+
const metadata = Reflect.getMetadata(requestHandlerMetadataKey, type);
|
|
482
|
+
if (!metadata) {
|
|
483
|
+
throw new Error(`Request handler metadata was not found on '${type.name}' class`);
|
|
484
|
+
}
|
|
485
|
+
return metadata;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* @internal
|
|
489
|
+
*/
|
|
490
|
+
function getHandlerChainServiceMetadata(typeRef) {
|
|
491
|
+
const requestType = Reflect.getMetadata('requestType', typeRef);
|
|
492
|
+
if (!requestType) {
|
|
493
|
+
throw new Error(`requestType was not found on '${typeRef.name}' class`);
|
|
494
|
+
}
|
|
495
|
+
return { requestType, typeRef };
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @internal
|
|
499
|
+
*/
|
|
500
|
+
function getCrtInputsMetadata(type) {
|
|
501
|
+
const keys = Reflect.getMetadataKeys(type);
|
|
502
|
+
const crtInputKeys = keys.filter((x) => x.startsWith(crtInputPrefix));
|
|
503
|
+
return Object.fromEntries(crtInputKeys.map((key) => {
|
|
504
|
+
const data = Reflect.getMetadata(key, type);
|
|
505
|
+
return [key.replace(crtInputPrefix, ''), data];
|
|
506
|
+
}));
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @internal
|
|
510
|
+
*/
|
|
511
|
+
function getCrtOutputsMetadata(type) {
|
|
512
|
+
const keys = Reflect.getMetadataKeys(type);
|
|
513
|
+
const crtOutputKeys = keys.filter((x) => x.startsWith(crtOutputPrefix));
|
|
514
|
+
return Object.fromEntries(crtOutputKeys.map((key) => {
|
|
515
|
+
const data = Reflect.getMetadata(key, type);
|
|
516
|
+
return [key.replace(crtOutputPrefix, ''), data];
|
|
517
|
+
}));
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @internal
|
|
521
|
+
*/
|
|
522
|
+
function getCrtValidationInputsMetadata(type) {
|
|
523
|
+
const keys = Reflect.getMetadataKeys(type);
|
|
524
|
+
const crtValidationInputKeys = keys.filter((x) => x.startsWith(crtValidationInputPrefix));
|
|
525
|
+
return Object.fromEntries(crtValidationInputKeys.map((key) => {
|
|
526
|
+
const data = Reflect.getMetadata(key, type);
|
|
527
|
+
return [key.replace(crtValidationInputPrefix, ''), data];
|
|
528
|
+
}));
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @internal
|
|
532
|
+
*/
|
|
533
|
+
function getCrtInjectMetadata(type) {
|
|
534
|
+
const keys = Reflect.getOwnMetadataKeys(type);
|
|
535
|
+
const crtInjectKeys = keys.filter((x) => x.startsWith(crtInjectPrefix));
|
|
536
|
+
return Object.fromEntries(crtInjectKeys.map((key) => {
|
|
537
|
+
const index = Number(key.replace(crtInjectPrefix, ''));
|
|
538
|
+
const data = Reflect.getMetadata(key, type);
|
|
539
|
+
return [index, data];
|
|
540
|
+
}));
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* @internal
|
|
544
|
+
*/
|
|
545
|
+
function getParentType(type) {
|
|
546
|
+
const parentProto = type.prototype ? Object.getPrototypeOf(type.prototype) : null;
|
|
547
|
+
return parentProto ? parentProto.constructor : null;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* @internal
|
|
551
|
+
*/
|
|
552
|
+
function getTypeDependencies(type) {
|
|
553
|
+
const paramTypes = Reflect.getOwnMetadata('design:paramtypes', type);
|
|
554
|
+
if (!paramTypes) {
|
|
555
|
+
if (type.length > 0) {
|
|
556
|
+
throw new Error(`Dependency Injection error. Cannot read dependencies of class '${type.name}'. ` +
|
|
557
|
+
`Please make sure class '${type.name}' has decorator and ` +
|
|
558
|
+
"'emitDecoratorMetadata' option is enabled in your 'tsconfig.json' file.");
|
|
559
|
+
}
|
|
560
|
+
const parentType = getParentType(type);
|
|
561
|
+
return parentType && parentType !== Object ? getTypeDependencies(parentType) : [];
|
|
562
|
+
}
|
|
563
|
+
const crtInjectMetadata = getCrtInjectMetadata(type);
|
|
564
|
+
Object.entries(crtInjectMetadata).forEach(([index, token]) => (paramTypes[index] = token));
|
|
565
|
+
return paramTypes;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
function raiseLazyModulesDependencyError(module) {
|
|
569
|
+
// TODO RND-60883
|
|
570
|
+
console.error('Not supported: lazy modules should not be dependent on other lazy modules. ' +
|
|
571
|
+
'Some functions may not work correctly', module);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* @internal
|
|
575
|
+
* Retrieves the deep module dependencies for the given types.
|
|
576
|
+
*
|
|
577
|
+
* @param types An array of types.
|
|
578
|
+
* @returns An array of unique module dependencies.
|
|
579
|
+
*/
|
|
580
|
+
function getDeepModuleDependencies(types) {
|
|
581
|
+
if (!Array.isArray(types)) {
|
|
582
|
+
return [];
|
|
583
|
+
}
|
|
584
|
+
if (types.length === 0) {
|
|
585
|
+
return [];
|
|
586
|
+
}
|
|
587
|
+
const uniqueModules = new Set();
|
|
588
|
+
const stack = [...types];
|
|
589
|
+
while (stack.length > 0) {
|
|
590
|
+
const module = stack.pop();
|
|
591
|
+
if (!module || uniqueModules.has(module)) {
|
|
592
|
+
continue;
|
|
593
|
+
}
|
|
594
|
+
if (typeof module !== 'function') {
|
|
595
|
+
raiseLazyModulesDependencyError(module);
|
|
596
|
+
continue;
|
|
597
|
+
}
|
|
598
|
+
uniqueModules.add(module);
|
|
599
|
+
const nestedModules = getModuleMetadata(module)?.includes || [];
|
|
600
|
+
stack.push(...nestedModules);
|
|
601
|
+
}
|
|
602
|
+
return [...uniqueModules];
|
|
603
|
+
}
|
|
604
|
+
|
|
360
605
|
/**
|
|
361
606
|
* @internal
|
|
362
607
|
*/
|
|
@@ -367,10 +612,9 @@ function matchScopes(handlerScopes, requestScopes) {
|
|
|
367
612
|
return handlerScopes.some((s) => requestScopes?.includes(s));
|
|
368
613
|
}
|
|
369
614
|
|
|
370
|
-
var _a;
|
|
371
615
|
const global$3 = window;
|
|
372
|
-
global$3.creatio
|
|
373
|
-
|
|
616
|
+
global$3.creatio ??= {};
|
|
617
|
+
global$3.creatio._bootstrappedCrtModules ??= new Map();
|
|
374
618
|
/**
|
|
375
619
|
* @internal
|
|
376
620
|
*/
|
|
@@ -470,7 +714,7 @@ class InternalHandlerChain {
|
|
|
470
714
|
if (!callback) {
|
|
471
715
|
return () => void 0;
|
|
472
716
|
}
|
|
473
|
-
const listenerId =
|
|
717
|
+
const listenerId = _generateGuid();
|
|
474
718
|
const listenerFn = (request) => {
|
|
475
719
|
if (!context || request.$context === context) {
|
|
476
720
|
callback(request);
|
|
@@ -547,10 +791,14 @@ class InternalHandlerChain {
|
|
|
547
791
|
lazyModules.add(config.lazyModuleRef);
|
|
548
792
|
}
|
|
549
793
|
});
|
|
550
|
-
|
|
794
|
+
const lazyModuleRefs = [...lazyModules];
|
|
795
|
+
await Promise.all(lazyModuleRefs.map((m) => m.loadAndBootstrap()));
|
|
551
796
|
const injectionContext = this._getInjectionContext(request?.$context);
|
|
552
797
|
if (injectionContext && lazyModules.size) {
|
|
553
|
-
|
|
798
|
+
const deepModuleDependencies = await getDeepModuleDependencies(lazyModuleRefs.map((ref) => ref.typeRef));
|
|
799
|
+
for (const type of deepModuleDependencies) {
|
|
800
|
+
injectionContext.addLazyModule(type);
|
|
801
|
+
}
|
|
554
802
|
callOnContextUpdateHooks(injectionContext);
|
|
555
803
|
}
|
|
556
804
|
}
|
|
@@ -579,7 +827,7 @@ class InternalHandlerChain {
|
|
|
579
827
|
handlers[index].setNext(handlers[index + 1]);
|
|
580
828
|
}
|
|
581
829
|
catch (error) {
|
|
582
|
-
if (error instanceof
|
|
830
|
+
if (error instanceof _NextHandlerAlreadySpecifiedException) {
|
|
583
831
|
throw new Error('Handler factory should return new instance of ' +
|
|
584
832
|
'BaseRequestHandler class or its subclass ' +
|
|
585
833
|
'(next handler should not be specified)');
|
|
@@ -760,6 +1008,9 @@ function checkOnlyOneRegistration(type, item, map) {
|
|
|
760
1008
|
* @hostPublicApi available through window.creatio.requestHandlerRegistry
|
|
761
1009
|
*/
|
|
762
1010
|
class InternalRequestHandlerRegistryType {
|
|
1011
|
+
static { this._addItemListeners = []; }
|
|
1012
|
+
static { this._removeItemListeners = []; }
|
|
1013
|
+
static { this._requestHandlersMap = new Map(); }
|
|
763
1014
|
/**
|
|
764
1015
|
* @publicHostApi
|
|
765
1016
|
*/
|
|
@@ -821,11 +1072,8 @@ class InternalRequestHandlerRegistryType {
|
|
|
821
1072
|
}
|
|
822
1073
|
}
|
|
823
1074
|
}
|
|
824
|
-
InternalRequestHandlerRegistryType._addItemListeners = [];
|
|
825
|
-
InternalRequestHandlerRegistryType._removeItemListeners = [];
|
|
826
|
-
InternalRequestHandlerRegistryType._requestHandlersMap = new Map();
|
|
827
1075
|
const global$1 = window;
|
|
828
|
-
global$1.creatio
|
|
1076
|
+
global$1.creatio ??= {};
|
|
829
1077
|
if (!global$1.creatio.requestHandlerRegistry) {
|
|
830
1078
|
Object.defineProperty(global$1.creatio, 'requestHandlerRegistry', {
|
|
831
1079
|
get: () => InternalRequestHandlerRegistryType,
|
|
@@ -841,6 +1089,7 @@ const InternalRequestHandlerRegistry = global$1.creatio.requestHandlerRegistry;
|
|
|
841
1089
|
* @internal
|
|
842
1090
|
*/
|
|
843
1091
|
class RequestHandlerRegistryService {
|
|
1092
|
+
static { this._internalRegistry = global$1.creatio.requestHandlerRegistry; }
|
|
844
1093
|
/**
|
|
845
1094
|
* Register request handler class.
|
|
846
1095
|
* @param config Request handler registration config.
|
|
@@ -859,12 +1108,13 @@ class RequestHandlerRegistryService {
|
|
|
859
1108
|
RequestHandlerRegistryService._internalRegistry.addRequestHandler(requestHandlerType, requestHandlerMapValue);
|
|
860
1109
|
}
|
|
861
1110
|
}
|
|
862
|
-
RequestHandlerRegistryService._internalRegistry = global$1.creatio.requestHandlerRegistry;
|
|
863
1111
|
|
|
864
1112
|
/**
|
|
865
1113
|
* @internal
|
|
866
1114
|
*/
|
|
867
1115
|
class RequestRegistryService {
|
|
1116
|
+
static { this._requestsMap = new Map(); }
|
|
1117
|
+
static { this._requestsRegistrationInfos = new Map(); }
|
|
868
1118
|
static get requestsRegistrationInfos() {
|
|
869
1119
|
return this._requestsRegistrationInfos;
|
|
870
1120
|
}
|
|
@@ -890,14 +1140,13 @@ class RequestRegistryService {
|
|
|
890
1140
|
return requestInstanceConstructor && new requestInstanceConstructor();
|
|
891
1141
|
}
|
|
892
1142
|
}
|
|
893
|
-
RequestRegistryService._requestsMap = new Map();
|
|
894
|
-
RequestRegistryService._requestsRegistrationInfos = new Map();
|
|
895
1143
|
|
|
896
1144
|
/**
|
|
897
1145
|
* @internal
|
|
898
1146
|
* @hostPublicApi available through window.creatio.registry.ConverterRegistry
|
|
899
1147
|
*/
|
|
900
1148
|
class ConverterRegistry extends ɵBaseRegistry {
|
|
1149
|
+
static { this.registryKey = 'ConverterRegistry'; }
|
|
901
1150
|
static has(type) {
|
|
902
1151
|
return this.store.typeInfos.has(type);
|
|
903
1152
|
}
|
|
@@ -921,7 +1170,6 @@ class ConverterRegistry extends ɵBaseRegistry {
|
|
|
921
1170
|
this.store.typeInfos.clear();
|
|
922
1171
|
}
|
|
923
1172
|
}
|
|
924
|
-
ConverterRegistry.registryKey = 'ConverterRegistry';
|
|
925
1173
|
|
|
926
1174
|
/**
|
|
927
1175
|
* @internal
|
|
@@ -932,6 +1180,7 @@ const viewElementRegistryKey = 'ViewElementRegistry';
|
|
|
932
1180
|
* @hostPublicApi available through window.creatio.registry.ValidatorRegistry
|
|
933
1181
|
*/
|
|
934
1182
|
class ViewElementRegistry extends ɵBaseRegistry {
|
|
1183
|
+
static { this.registryKey = viewElementRegistryKey; }
|
|
935
1184
|
static validate(config) {
|
|
936
1185
|
checkTypeNameFormat(config.type, 'ViewElementTypeName');
|
|
937
1186
|
const existingItem = ViewElementRegistry.viewElements.get(config.type);
|
|
@@ -978,8 +1227,22 @@ class ViewElementRegistry extends ɵBaseRegistry {
|
|
|
978
1227
|
},
|
|
979
1228
|
];
|
|
980
1229
|
}
|
|
1230
|
+
static getViewElementCompatiblePlatformAPIsOptions(type, platformAPI) {
|
|
1231
|
+
const config = this.store.typeInfos.get(type);
|
|
1232
|
+
return (config?.compatibleAPIs?.[platformAPI] ?? {});
|
|
1233
|
+
}
|
|
1234
|
+
static isViewElementAvailableByCompatibleAPIs(type, ...availableAPIs) {
|
|
1235
|
+
const config = this.store.typeInfos.get(type);
|
|
1236
|
+
return Object.entries(config?.compatibleAPIs ?? {})
|
|
1237
|
+
.filter(([key, _]) => availableAPIs.includes(key))
|
|
1238
|
+
.some(([_, value]) => {
|
|
1239
|
+
if (typeof value === 'boolean') {
|
|
1240
|
+
return value;
|
|
1241
|
+
}
|
|
1242
|
+
return (value || {}).enable;
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
981
1245
|
}
|
|
982
|
-
ViewElementRegistry.registryKey = viewElementRegistryKey;
|
|
983
1246
|
|
|
984
1247
|
/**
|
|
985
1248
|
* @internal
|
|
@@ -990,6 +1253,7 @@ const interfaceDesignerItemRegistryKey = 'InterfaceDesignerItemRegistry';
|
|
|
990
1253
|
* @hostPublicApi available through window.creatio.registry.InterfaceDesignerItemRegistry
|
|
991
1254
|
*/
|
|
992
1255
|
class InterfaceDesignerItemRegistry extends ɵBaseRegistry {
|
|
1256
|
+
static { this.registryKey = interfaceDesignerItemRegistryKey; }
|
|
993
1257
|
static validate(config) {
|
|
994
1258
|
checkTypeNameFormat(config.type, 'InterfaceDesignerItemTypeName');
|
|
995
1259
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1005,7 +1269,6 @@ class InterfaceDesignerItemRegistry extends ɵBaseRegistry {
|
|
|
1005
1269
|
return this.interfaceDesignerItemRegistrationInfos.get(type);
|
|
1006
1270
|
}
|
|
1007
1271
|
}
|
|
1008
|
-
InterfaceDesignerItemRegistry.registryKey = interfaceDesignerItemRegistryKey;
|
|
1009
1272
|
|
|
1010
1273
|
const global = window;
|
|
1011
1274
|
/**
|
|
@@ -1039,6 +1302,7 @@ class BootstrapNotifier {
|
|
|
1039
1302
|
* @internal
|
|
1040
1303
|
*/
|
|
1041
1304
|
class HandlerChainServicesRegistry extends ɵBaseRegistry {
|
|
1305
|
+
static { this.registryKey = 'HandlerChainServicesRegistry'; }
|
|
1042
1306
|
static validate({ requestType }) {
|
|
1043
1307
|
checkTypeNameFormat(requestType, this.registryKey);
|
|
1044
1308
|
checkCrtTypeNamePascalCase(requestType);
|
|
@@ -1057,7 +1321,6 @@ class HandlerChainServicesRegistry extends ɵBaseRegistry {
|
|
|
1057
1321
|
return this.store.typeInfos;
|
|
1058
1322
|
}
|
|
1059
1323
|
}
|
|
1060
|
-
HandlerChainServicesRegistry.registryKey = 'HandlerChainServicesRegistry';
|
|
1061
1324
|
|
|
1062
1325
|
/**
|
|
1063
1326
|
* @internal
|
|
@@ -1068,6 +1331,7 @@ const designTimeViewElementRegistryKey = 'DesignTimeViewElementRegistry';
|
|
|
1068
1331
|
* @hostPublicApi available through window.creatio.registry.DesignTimeViewElementRegistry
|
|
1069
1332
|
*/
|
|
1070
1333
|
class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
1334
|
+
static { this.registryKey = designTimeViewElementRegistryKey; }
|
|
1071
1335
|
static validate(config) {
|
|
1072
1336
|
checkTypeNameFormat(config.type, 'DesignTimeViewElementRegistryItemTypeName');
|
|
1073
1337
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1087,7 +1351,6 @@ class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
|
1087
1351
|
return this.store.typeInfos;
|
|
1088
1352
|
}
|
|
1089
1353
|
}
|
|
1090
|
-
DesignTimeViewElementRegistry.registryKey = designTimeViewElementRegistryKey;
|
|
1091
1354
|
|
|
1092
1355
|
/**
|
|
1093
1356
|
* @internal
|
|
@@ -1103,6 +1366,7 @@ const validatorRegistryKey = 'ValidatorRegistry';
|
|
|
1103
1366
|
* @hostPublicApi available through window.creatio.registry.ValidatorRegistry
|
|
1104
1367
|
*/
|
|
1105
1368
|
class ValidatorRegistry extends ɵBaseRegistry {
|
|
1369
|
+
static { this.registryKey = validatorRegistryKey; }
|
|
1106
1370
|
static _has(configType, type) {
|
|
1107
1371
|
const config = ValidatorRegistry.items.get(configType);
|
|
1108
1372
|
if (config?.lazy && !config?.typeRef) {
|
|
@@ -1127,13 +1391,16 @@ class ValidatorRegistry extends ɵBaseRegistry {
|
|
|
1127
1391
|
});
|
|
1128
1392
|
}
|
|
1129
1393
|
}
|
|
1130
|
-
ValidatorRegistry.registryKey = validatorRegistryKey;
|
|
1131
1394
|
|
|
1132
1395
|
/**
|
|
1133
1396
|
* @internal
|
|
1134
1397
|
* @dontChange
|
|
1135
1398
|
*/
|
|
1136
1399
|
class RemoteEntriesRegistry extends ɵBaseRegistry {
|
|
1400
|
+
/**
|
|
1401
|
+
* @dontChange
|
|
1402
|
+
*/
|
|
1403
|
+
static { this.registryKey = 'remotes'; }
|
|
1137
1404
|
/**
|
|
1138
1405
|
* @dontChange
|
|
1139
1406
|
*/
|
|
@@ -1141,10 +1408,6 @@ class RemoteEntriesRegistry extends ɵBaseRegistry {
|
|
|
1141
1408
|
return this.store.typeInfos;
|
|
1142
1409
|
}
|
|
1143
1410
|
}
|
|
1144
|
-
/**
|
|
1145
|
-
* @dontChange
|
|
1146
|
-
*/
|
|
1147
|
-
RemoteEntriesRegistry.registryKey = 'remotes';
|
|
1148
1411
|
|
|
1149
1412
|
/**
|
|
1150
1413
|
* @internal
|
|
@@ -1155,6 +1418,7 @@ const registryKey = 'ChatMessageTypeRegistry';
|
|
|
1155
1418
|
* @hostPublicApi available through window.creatio.registry.ChatMessageTypeRegistry
|
|
1156
1419
|
*/
|
|
1157
1420
|
class ChatMessageTypeRegistry extends ɵBaseRegistry {
|
|
1421
|
+
static { this.registryKey = registryKey; }
|
|
1158
1422
|
static get messageTypes() {
|
|
1159
1423
|
return this.store.typeInfos;
|
|
1160
1424
|
}
|
|
@@ -1165,7 +1429,6 @@ class ChatMessageTypeRegistry extends ɵBaseRegistry {
|
|
|
1165
1429
|
return this.store.typeInfos.get(messageType);
|
|
1166
1430
|
}
|
|
1167
1431
|
}
|
|
1168
|
-
ChatMessageTypeRegistry.registryKey = registryKey;
|
|
1169
1432
|
|
|
1170
1433
|
/**
|
|
1171
1434
|
* @internal
|
|
@@ -1178,212 +1441,6 @@ function isComponentPropertyBindable(viewConfigType, componentProperty) {
|
|
|
1178
1441
|
return !!componentConfig?.inputs[componentProperty]?.propertyBindable;
|
|
1179
1442
|
}
|
|
1180
1443
|
|
|
1181
|
-
const moduleMetadataKey = 'module';
|
|
1182
|
-
const viewElementMetadataKey = 'viewElement';
|
|
1183
|
-
const interfaceDesignerItemMetadataKey = 'interfaceDesignerItem';
|
|
1184
|
-
const requestHandlerMetadataKey = 'requestHandler';
|
|
1185
|
-
const designTimeViewElementMetadataKey = 'designTimeViewElement';
|
|
1186
|
-
const validatorMetadataKey = 'validator';
|
|
1187
|
-
const converterMetadataKey = 'converter';
|
|
1188
|
-
/**
|
|
1189
|
-
* @internal
|
|
1190
|
-
*/
|
|
1191
|
-
function setModuleMetadata(metadata, type) {
|
|
1192
|
-
Reflect.defineMetadata(moduleMetadataKey, metadata, type);
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* @internal
|
|
1196
|
-
*/
|
|
1197
|
-
function getModuleMetadata(type) {
|
|
1198
|
-
const metadata = Reflect.getMetadata(moduleMetadataKey, type);
|
|
1199
|
-
if (!metadata) {
|
|
1200
|
-
throw new Error(`Module metadata was not found on '${type.name}' class`);
|
|
1201
|
-
}
|
|
1202
|
-
return metadata;
|
|
1203
|
-
}
|
|
1204
|
-
/**
|
|
1205
|
-
* @internal
|
|
1206
|
-
*/
|
|
1207
|
-
function setViewElementMetadata(metadata, type) {
|
|
1208
|
-
Reflect.defineMetadata(viewElementMetadataKey, metadata, type);
|
|
1209
|
-
}
|
|
1210
|
-
/**
|
|
1211
|
-
* @internal
|
|
1212
|
-
*/
|
|
1213
|
-
function getViewElementMetadata(type) {
|
|
1214
|
-
const metadata = Reflect.getMetadata(viewElementMetadataKey, type);
|
|
1215
|
-
if (!metadata) {
|
|
1216
|
-
throw new Error(`View element metadata was not found on '${type.name}' class`);
|
|
1217
|
-
}
|
|
1218
|
-
return metadata;
|
|
1219
|
-
}
|
|
1220
|
-
/**
|
|
1221
|
-
* @internal
|
|
1222
|
-
*/
|
|
1223
|
-
function setValidatorMetadata(metadata, type) {
|
|
1224
|
-
Reflect.defineMetadata(validatorMetadataKey, metadata, type);
|
|
1225
|
-
}
|
|
1226
|
-
/**
|
|
1227
|
-
* @internal
|
|
1228
|
-
*/
|
|
1229
|
-
function getValidatorMetadata(type) {
|
|
1230
|
-
const metadata = Reflect.getOwnMetadata(validatorMetadataKey, type);
|
|
1231
|
-
if (!metadata) {
|
|
1232
|
-
throw new Error(`Validator metadata was not found on '${type.name}' class`);
|
|
1233
|
-
}
|
|
1234
|
-
return metadata;
|
|
1235
|
-
}
|
|
1236
|
-
/**
|
|
1237
|
-
* @internal
|
|
1238
|
-
*/
|
|
1239
|
-
function setConverterMetadata(metadata, type) {
|
|
1240
|
-
Reflect.defineMetadata(converterMetadataKey, metadata, type);
|
|
1241
|
-
}
|
|
1242
|
-
/**
|
|
1243
|
-
* @internal
|
|
1244
|
-
*/
|
|
1245
|
-
function getConverterMetadata(type) {
|
|
1246
|
-
const metadata = Reflect.getOwnMetadata(converterMetadataKey, type);
|
|
1247
|
-
if (!metadata) {
|
|
1248
|
-
throw new Error(`Converter metadata was not found on '${type.name}' class`);
|
|
1249
|
-
}
|
|
1250
|
-
return metadata;
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* @internal
|
|
1254
|
-
*/
|
|
1255
|
-
function setInterfaceDesignerItemMetadata(metadata, type) {
|
|
1256
|
-
Reflect.defineMetadata(interfaceDesignerItemMetadataKey, metadata, type);
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* @internal
|
|
1260
|
-
*/
|
|
1261
|
-
function getInterfaceDesignerItemMetadata(type) {
|
|
1262
|
-
const metadata = Reflect.getOwnMetadata(interfaceDesignerItemMetadataKey, type);
|
|
1263
|
-
if (!metadata) {
|
|
1264
|
-
throw new Error(`Interface designer item metadata was not found on '${type.name}' class`);
|
|
1265
|
-
}
|
|
1266
|
-
return metadata;
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* @internal
|
|
1270
|
-
*/
|
|
1271
|
-
function setDesignTimeViewElementMetadata(metadata, type) {
|
|
1272
|
-
Reflect.defineMetadata(designTimeViewElementMetadataKey, metadata, type);
|
|
1273
|
-
}
|
|
1274
|
-
/**
|
|
1275
|
-
* @internal
|
|
1276
|
-
*/
|
|
1277
|
-
function getDesignTimeViewElementMetadata(type) {
|
|
1278
|
-
const metadata = Reflect.getOwnMetadata(designTimeViewElementMetadataKey, type);
|
|
1279
|
-
if (!metadata) {
|
|
1280
|
-
throw new Error(`Design time view element metadata was not found on '${type.name}' class`);
|
|
1281
|
-
}
|
|
1282
|
-
return metadata;
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1285
|
-
* @internal
|
|
1286
|
-
*/
|
|
1287
|
-
function hasInterfaceDesignerItemMetadata(type) {
|
|
1288
|
-
return Reflect.hasOwnMetadata(interfaceDesignerItemMetadataKey, type);
|
|
1289
|
-
}
|
|
1290
|
-
/**
|
|
1291
|
-
* @internal
|
|
1292
|
-
*/
|
|
1293
|
-
function setRequestHandlerMetadata(metadata, type) {
|
|
1294
|
-
Reflect.defineMetadata(requestHandlerMetadataKey, metadata, type);
|
|
1295
|
-
}
|
|
1296
|
-
/**
|
|
1297
|
-
* @internal
|
|
1298
|
-
*/
|
|
1299
|
-
function getRequestHandlerMetadata(type) {
|
|
1300
|
-
const metadata = Reflect.getMetadata(requestHandlerMetadataKey, type);
|
|
1301
|
-
if (!metadata) {
|
|
1302
|
-
throw new Error(`Request handler metadata was not found on '${type.name}' class`);
|
|
1303
|
-
}
|
|
1304
|
-
return metadata;
|
|
1305
|
-
}
|
|
1306
|
-
/**
|
|
1307
|
-
* @internal
|
|
1308
|
-
*/
|
|
1309
|
-
function getHandlerChainServiceMetadata(typeRef) {
|
|
1310
|
-
const requestType = Reflect.getMetadata('requestType', typeRef);
|
|
1311
|
-
if (!requestType) {
|
|
1312
|
-
throw new Error(`requestType was not found on '${typeRef.name}' class`);
|
|
1313
|
-
}
|
|
1314
|
-
return { requestType, typeRef };
|
|
1315
|
-
}
|
|
1316
|
-
/**
|
|
1317
|
-
* @internal
|
|
1318
|
-
*/
|
|
1319
|
-
function getCrtInputsMetadata(type) {
|
|
1320
|
-
const keys = Reflect.getMetadataKeys(type);
|
|
1321
|
-
const crtInputKeys = keys.filter((x) => x.startsWith(crtInputPrefix));
|
|
1322
|
-
return Object.fromEntries(crtInputKeys.map((key) => {
|
|
1323
|
-
const data = Reflect.getMetadata(key, type);
|
|
1324
|
-
return [key.replace(crtInputPrefix, ''), data];
|
|
1325
|
-
}));
|
|
1326
|
-
}
|
|
1327
|
-
/**
|
|
1328
|
-
* @internal
|
|
1329
|
-
*/
|
|
1330
|
-
function getCrtOutputsMetadata(type) {
|
|
1331
|
-
const keys = Reflect.getMetadataKeys(type);
|
|
1332
|
-
const crtOutputKeys = keys.filter((x) => x.startsWith(crtOutputPrefix));
|
|
1333
|
-
return Object.fromEntries(crtOutputKeys.map((key) => {
|
|
1334
|
-
const data = Reflect.getMetadata(key, type);
|
|
1335
|
-
return [key.replace(crtOutputPrefix, ''), data];
|
|
1336
|
-
}));
|
|
1337
|
-
}
|
|
1338
|
-
/**
|
|
1339
|
-
* @internal
|
|
1340
|
-
*/
|
|
1341
|
-
function getCrtValidationInputsMetadata(type) {
|
|
1342
|
-
const keys = Reflect.getMetadataKeys(type);
|
|
1343
|
-
const crtValidationInputKeys = keys.filter((x) => x.startsWith(crtValidationInputPrefix));
|
|
1344
|
-
return Object.fromEntries(crtValidationInputKeys.map((key) => {
|
|
1345
|
-
const data = Reflect.getMetadata(key, type);
|
|
1346
|
-
return [key.replace(crtValidationInputPrefix, ''), data];
|
|
1347
|
-
}));
|
|
1348
|
-
}
|
|
1349
|
-
/**
|
|
1350
|
-
* @internal
|
|
1351
|
-
*/
|
|
1352
|
-
function getCrtInjectMetadata(type) {
|
|
1353
|
-
const keys = Reflect.getOwnMetadataKeys(type);
|
|
1354
|
-
const crtInjectKeys = keys.filter((x) => x.startsWith(crtInjectPrefix));
|
|
1355
|
-
return Object.fromEntries(crtInjectKeys.map((key) => {
|
|
1356
|
-
const index = Number(key.replace(crtInjectPrefix, ''));
|
|
1357
|
-
const data = Reflect.getMetadata(key, type);
|
|
1358
|
-
return [index, data];
|
|
1359
|
-
}));
|
|
1360
|
-
}
|
|
1361
|
-
/**
|
|
1362
|
-
* @internal
|
|
1363
|
-
*/
|
|
1364
|
-
function getParentType(type) {
|
|
1365
|
-
const parentProto = type.prototype ? Object.getPrototypeOf(type.prototype) : null;
|
|
1366
|
-
return parentProto ? parentProto.constructor : null;
|
|
1367
|
-
}
|
|
1368
|
-
/**
|
|
1369
|
-
* @internal
|
|
1370
|
-
*/
|
|
1371
|
-
function getTypeDependencies(type) {
|
|
1372
|
-
const paramTypes = Reflect.getOwnMetadata('design:paramtypes', type);
|
|
1373
|
-
if (!paramTypes) {
|
|
1374
|
-
if (type.length > 0) {
|
|
1375
|
-
throw new Error(`Dependency Injection error. Cannot read dependencies of class '${type.name}'. ` +
|
|
1376
|
-
`Please make sure class '${type.name}' has decorator and ` +
|
|
1377
|
-
"'emitDecoratorMetadata' option is enabled in your 'tsconfig.json' file.");
|
|
1378
|
-
}
|
|
1379
|
-
const parentType = getParentType(type);
|
|
1380
|
-
return parentType && parentType !== Object ? getTypeDependencies(parentType) : [];
|
|
1381
|
-
}
|
|
1382
|
-
const crtInjectMetadata = getCrtInjectMetadata(type);
|
|
1383
|
-
Object.entries(crtInjectMetadata).forEach(([index, token]) => (paramTypes[index] = token));
|
|
1384
|
-
return paramTypes;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
1444
|
/**
|
|
1388
1445
|
* @internal
|
|
1389
1446
|
*/
|
|
@@ -1420,7 +1477,7 @@ class CrtInputRegistrationConfig {
|
|
|
1420
1477
|
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
1421
1478
|
* @property {string} dataSourceName - name of assigned data source.
|
|
1422
1479
|
*/
|
|
1423
|
-
class DataRequest extends
|
|
1480
|
+
class DataRequest extends _BaseRequest {
|
|
1424
1481
|
}
|
|
1425
1482
|
|
|
1426
1483
|
/**
|
|
@@ -1446,7 +1503,7 @@ function CrtRequest(config) {
|
|
|
1446
1503
|
* @hostPublicApi
|
|
1447
1504
|
* TODO: RND-55882
|
|
1448
1505
|
*/
|
|
1449
|
-
let HandleViewModelAttributeChangeRequest = class HandleViewModelAttributeChangeRequest extends
|
|
1506
|
+
let HandleViewModelAttributeChangeRequest = class HandleViewModelAttributeChangeRequest extends _BaseRequest {
|
|
1450
1507
|
constructor(payload) {
|
|
1451
1508
|
super();
|
|
1452
1509
|
this.type = 'crt.HandleViewModelAttributeChangeRequest';
|
|
@@ -1484,19 +1541,19 @@ var ViewElementReuseStrategy;
|
|
|
1484
1541
|
|
|
1485
1542
|
/**
|
|
1486
1543
|
* @internal
|
|
1487
|
-
* @description
|
|
1544
|
+
* @description Render strategy for view element.
|
|
1488
1545
|
*/
|
|
1489
|
-
var
|
|
1490
|
-
(function (
|
|
1546
|
+
var ViewElementRenderStrategy;
|
|
1547
|
+
(function (ViewElementRenderStrategy) {
|
|
1491
1548
|
/**
|
|
1492
|
-
* @description Default
|
|
1549
|
+
* @description Default render strategy.
|
|
1493
1550
|
*/
|
|
1494
|
-
|
|
1551
|
+
ViewElementRenderStrategy["Default"] = "default";
|
|
1495
1552
|
/**
|
|
1496
|
-
* @description On
|
|
1553
|
+
* @description On viewport render strategy.
|
|
1497
1554
|
*/
|
|
1498
|
-
|
|
1499
|
-
})(
|
|
1555
|
+
ViewElementRenderStrategy["OnViewport"] = "on-viewport";
|
|
1556
|
+
})(ViewElementRenderStrategy || (ViewElementRenderStrategy = {}));
|
|
1500
1557
|
|
|
1501
1558
|
/**
|
|
1502
1559
|
* @public
|
|
@@ -1513,6 +1570,11 @@ var ViewElementVisibilityStrategy;
|
|
|
1513
1570
|
* }
|
|
1514
1571
|
*/
|
|
1515
1572
|
class BaseValidator {
|
|
1573
|
+
/**
|
|
1574
|
+
* @internal
|
|
1575
|
+
* @dontChange
|
|
1576
|
+
*/
|
|
1577
|
+
static { this._instanceOfKey = 'devkit_BaseValidator'; }
|
|
1516
1578
|
/**
|
|
1517
1579
|
* @description getter for async/sync indicator
|
|
1518
1580
|
*/
|
|
@@ -1532,16 +1594,16 @@ class BaseValidator {
|
|
|
1532
1594
|
return instance?.constructor?.['_instanceOfKey'] === BaseValidator._instanceOfKey;
|
|
1533
1595
|
}
|
|
1534
1596
|
}
|
|
1535
|
-
/**
|
|
1536
|
-
* @internal
|
|
1537
|
-
* @dontChange
|
|
1538
|
-
*/
|
|
1539
|
-
BaseValidator._instanceOfKey = 'devkit_BaseValidator';
|
|
1540
1597
|
|
|
1541
1598
|
/**
|
|
1542
1599
|
* @public
|
|
1543
1600
|
*/
|
|
1544
1601
|
class LocalizableValue {
|
|
1602
|
+
/**
|
|
1603
|
+
* @internal
|
|
1604
|
+
* @dontChange
|
|
1605
|
+
*/
|
|
1606
|
+
static { this._instanceOfKey = 'devkit_LocalizableValue'; }
|
|
1545
1607
|
constructor(key) {
|
|
1546
1608
|
this.key = key;
|
|
1547
1609
|
}
|
|
@@ -1552,11 +1614,6 @@ class LocalizableValue {
|
|
|
1552
1614
|
return instance?.constructor?.['_instanceOfKey'] === LocalizableValue._instanceOfKey;
|
|
1553
1615
|
}
|
|
1554
1616
|
}
|
|
1555
|
-
/**
|
|
1556
|
-
* @internal
|
|
1557
|
-
* @dontChange
|
|
1558
|
-
*/
|
|
1559
|
-
LocalizableValue._instanceOfKey = 'devkit_LocalizableValue';
|
|
1560
1617
|
|
|
1561
1618
|
/**
|
|
1562
1619
|
* @internal
|
|
@@ -1585,9 +1642,11 @@ function applyLocalizeMetadataFn(obj, localizeMetadata) {
|
|
|
1585
1642
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1586
1643
|
function CrtDesignTimeViewElement(config) {
|
|
1587
1644
|
return function (type) {
|
|
1645
|
+
const inputs = getCrtInputsMetadata(type);
|
|
1588
1646
|
const registrationConfig = {
|
|
1589
1647
|
...config,
|
|
1590
1648
|
typeRef: type,
|
|
1649
|
+
inputs,
|
|
1591
1650
|
};
|
|
1592
1651
|
setDesignTimeViewElementMetadata(registrationConfig, type);
|
|
1593
1652
|
};
|
|
@@ -1608,7 +1667,7 @@ class InterfaceDesignerItemRegistrationConfig {
|
|
|
1608
1667
|
* @property {string} method - method name.
|
|
1609
1668
|
* @property {unknown[]} args - arguments passing to the method.
|
|
1610
1669
|
*/
|
|
1611
|
-
class MethodInvokeRequest extends
|
|
1670
|
+
class MethodInvokeRequest extends _BaseRequest {
|
|
1612
1671
|
}
|
|
1613
1672
|
|
|
1614
1673
|
/**
|
|
@@ -1731,7 +1790,7 @@ function CrtViewElement(config) {
|
|
|
1731
1790
|
? { ...baseRegistrationConfig, selector: config.selector }
|
|
1732
1791
|
: { ...baseRegistrationConfig, typeRef: type };
|
|
1733
1792
|
registrationConfig.reuseStrategy = config?.reuseStrategy ?? ViewElementReuseStrategy.Rerender;
|
|
1734
|
-
registrationConfig.
|
|
1793
|
+
registrationConfig.placeholderSize = config.placeholderSize ?? {
|
|
1735
1794
|
height: VIEW_ELEMENT_DEFAULT_HEIGHT,
|
|
1736
1795
|
};
|
|
1737
1796
|
setViewElementMetadata(registrationConfig, type);
|
|
@@ -1760,7 +1819,7 @@ function CrtInterfaceDesignerItem(config) {
|
|
|
1760
1819
|
}
|
|
1761
1820
|
return function (type) {
|
|
1762
1821
|
config.typeRef = type;
|
|
1763
|
-
config.viewElementGroupType
|
|
1822
|
+
config.viewElementGroupType ??= ViewElementGroupType.CustomElements;
|
|
1764
1823
|
_applyTypeCaption();
|
|
1765
1824
|
setInterfaceDesignerItemMetadata(config, type);
|
|
1766
1825
|
};
|
|
@@ -2195,7 +2254,7 @@ function bootstrapCrtModule(...args) {
|
|
|
2195
2254
|
const name = typeof args[0] === 'string' ? args.shift() : undefined;
|
|
2196
2255
|
const type = args[0];
|
|
2197
2256
|
const options = args[1] ?? {};
|
|
2198
|
-
options.moduleType
|
|
2257
|
+
options.moduleType ??= 'remote';
|
|
2199
2258
|
if (name) {
|
|
2200
2259
|
if (options.moduleType === 'remote') {
|
|
2201
2260
|
checkRemoteName(name);
|
|
@@ -2305,6 +2364,11 @@ class BaseRequestHandler {
|
|
|
2305
2364
|
constructor() {
|
|
2306
2365
|
this.handlerChain = HandlerChainService.instance;
|
|
2307
2366
|
}
|
|
2367
|
+
/**
|
|
2368
|
+
* @internal
|
|
2369
|
+
* @dontChange
|
|
2370
|
+
*/
|
|
2371
|
+
static { this._instanceOfKey = 'devkit_BaseRequestHandler'; }
|
|
2308
2372
|
get next() {
|
|
2309
2373
|
return this._next;
|
|
2310
2374
|
}
|
|
@@ -2320,16 +2384,11 @@ class BaseRequestHandler {
|
|
|
2320
2384
|
*/
|
|
2321
2385
|
setNext(next) {
|
|
2322
2386
|
if (this._next) {
|
|
2323
|
-
throw new
|
|
2387
|
+
throw new _NextHandlerAlreadySpecifiedException();
|
|
2324
2388
|
}
|
|
2325
2389
|
this._next = next;
|
|
2326
2390
|
}
|
|
2327
2391
|
}
|
|
2328
|
-
/**
|
|
2329
|
-
* @internal
|
|
2330
|
-
* @dontChange
|
|
2331
|
-
*/
|
|
2332
|
-
BaseRequestHandler._instanceOfKey = 'devkit_BaseRequestHandler';
|
|
2333
2392
|
|
|
2334
2393
|
class BaseHandlerChainService {
|
|
2335
2394
|
}
|
|
@@ -2551,6 +2610,14 @@ class LicenseService extends BaseHandlerChainService {
|
|
|
2551
2610
|
this.requestType = 'crt.LicenseService';
|
|
2552
2611
|
}
|
|
2553
2612
|
}
|
|
2613
|
+
__decorate([
|
|
2614
|
+
ImplementUsingHandlerChain(),
|
|
2615
|
+
__metadata("design:type", Function)
|
|
2616
|
+
], LicenseService.prototype, "getLicenseOperationStatuses", void 0);
|
|
2617
|
+
__decorate([
|
|
2618
|
+
ImplementUsingHandlerChain(),
|
|
2619
|
+
__metadata("design:type", Function)
|
|
2620
|
+
], LicenseService.prototype, "getExplicitLicenseOperationStatuses", void 0);
|
|
2554
2621
|
__decorate([
|
|
2555
2622
|
ImplementUsingHandlerChain(),
|
|
2556
2623
|
__metadata("design:type", Function)
|
|
@@ -2575,7 +2642,7 @@ class MaskService extends BaseHandlerChainService {
|
|
|
2575
2642
|
* @param context
|
|
2576
2643
|
*/
|
|
2577
2644
|
async showMask(taskName, context) {
|
|
2578
|
-
const request = new
|
|
2645
|
+
const request = new _SchemaViewMaskRequest(_SchemaViewMaskRequestAction.AddTask, taskName, context);
|
|
2579
2646
|
await HandlerChainService.instance.process(request);
|
|
2580
2647
|
}
|
|
2581
2648
|
/**
|
|
@@ -2584,7 +2651,7 @@ class MaskService extends BaseHandlerChainService {
|
|
|
2584
2651
|
* @param context
|
|
2585
2652
|
*/
|
|
2586
2653
|
async hideMask(taskName, context) {
|
|
2587
|
-
const request = new
|
|
2654
|
+
const request = new _SchemaViewMaskRequest(_SchemaViewMaskRequestAction.RemoveTask, taskName, context);
|
|
2588
2655
|
await HandlerChainService.instance.process(request);
|
|
2589
2656
|
}
|
|
2590
2657
|
}
|
|
@@ -2719,9 +2786,33 @@ __decorate([
|
|
|
2719
2786
|
__metadata("design:type", Function)
|
|
2720
2787
|
], DialogService.prototype, "open", void 0);
|
|
2721
2788
|
|
|
2789
|
+
/**
|
|
2790
|
+
* @public
|
|
2791
|
+
* @classdesc Service for working with messages sent or received through a server channel.
|
|
2792
|
+
* @extends {BaseHandlerChainService}
|
|
2793
|
+
* @implements {BaseMessageChannelService}
|
|
2794
|
+
*/
|
|
2795
|
+
class MessageChannelService extends BaseHandlerChainService {
|
|
2796
|
+
constructor() {
|
|
2797
|
+
super(...arguments);
|
|
2798
|
+
/**
|
|
2799
|
+
* @internal
|
|
2800
|
+
*/
|
|
2801
|
+
this.requestType = 'crt.MessageChannelService';
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
__decorate([
|
|
2805
|
+
ImplementUsingHandlerChain(),
|
|
2806
|
+
__metadata("design:type", Function)
|
|
2807
|
+
], MessageChannelService.prototype, "subscribe", void 0);
|
|
2808
|
+
__decorate([
|
|
2809
|
+
ImplementUsingHandlerChain(),
|
|
2810
|
+
__metadata("design:type", Function)
|
|
2811
|
+
], MessageChannelService.prototype, "sendMessage", void 0);
|
|
2812
|
+
|
|
2722
2813
|
/**
|
|
2723
2814
|
* Generated bundle index. Do not edit.
|
|
2724
2815
|
*/
|
|
2725
2816
|
|
|
2726
|
-
export { BaseRequestHandler, BaseValidator, BootstrapNotifier, ChatMessageTypeRegistry, ConverterRegistry, CrtChatMessageType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, DialogService, FeatureService, HandleViewModelAttributeChangeRequest, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LazyModuleRef, LazyModulesManager, LicenseService, LocalizableValue, MaskService, MethodInvokeRequest, Model, PkgTopology, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RightsService, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, VIEW_ELEMENT_DEFAULT_HEIGHT, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementProperty, ViewElementRegistry,
|
|
2817
|
+
export { BaseRequestHandler, BaseValidator, BootstrapNotifier, ChatMessageTypeRegistry, ConverterRegistry, CrtChatMessageType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, DialogService, FeatureService, HandleViewModelAttributeChangeRequest, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LazyModuleRef, LazyModulesManager, LicenseService, LocalizableValue, MaskService, MessageChannelService, MethodInvokeRequest, Model, PkgTopology, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RightsService, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, VIEW_ELEMENT_DEFAULT_HEIGHT, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementProperty, ViewElementRegistry, ViewElementRenderStrategy, ViewElementReuseStrategy, _from, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, bootstrappedCrtModules, callOnContextCreateHooks, callOnContextDestroyHooks, callOnContextUpdateHooks, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, designTimeViewElementRegistryKey, getConverterMetadata, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDeepModuleDependencies, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegistryKey, isComponentPropertyBindable, localize, matchScopes, objectDeepKeys, registerAngularViewElement, registerViewElement, registryKey, resetGlobals, setConverterMetadata, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationEval, toAggregationEvalType, toAggregationFunction, toAggregationType, toDatePart, toDatePartType, toNumericFunctionType, toOrderDirection, toPascalCase, toSortDirection, toStringFunctionType, validatorRegistryKey, viewElementRegistryKey, ɵBaseRegistry, ɵcheckTypeNameFormat, ɵinstantiate };
|
|
2727
2818
|
//# sourceMappingURL=creatio-devkit-common.mjs.map
|