@creatio-devkit/common 0.833.0 → 0.1000.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI_GUIDES_INDEX.md +38 -0
- package/CHANGELOG.md +25 -1
- package/DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md +1338 -0
- package/ICON_REQUIREMENTS_AI_GUIDE.md +107 -74
- package/LICENSE.md +5 -6
- package/REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md +357 -4
- package/THIRD_PARTY_LICENSES.txt +160 -0
- package/fesm2022/creatio-devkit-common.mjs +674 -96
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +786 -14
- package/package.json +6 -19
- package/types/creatio-devkit-common.d.ts +4509 -0
- package/esm2022/creatio-devkit-common.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/base-exports.mjs +0 -5
- package/esm2022/lib/external/file-viewer/file-viewer-factory.service.mjs +0 -26
- package/esm2022/lib/external/file-viewer/file-viewer-instance.model.mjs +0 -51
- package/esm2022/lib/external/file-viewer/file-viewer-options.model.mjs +0 -2
- package/esm2022/lib/external/file-viewer/index.mjs +0 -4
- package/esm2022/lib/external/functions/aggregation-adapter.mjs +0 -72
- package/esm2022/lib/external/functions/date-part-type-adapter.mjs +0 -48
- package/esm2022/lib/external/functions/function-type-adapter.mjs +0 -28
- package/esm2022/lib/external/functions/index.mjs +0 -5
- package/esm2022/lib/external/functions/order-direction-adapter.mjs +0 -28
- package/esm2022/lib/external/models/attribute-value-config.mjs +0 -2
- package/esm2022/lib/external/models/date-time/grouped-date-value.mjs +0 -2
- package/esm2022/lib/external/models/date-time/index.mjs +0 -2
- package/esm2022/lib/external/models/file-value.model.mjs +0 -2
- package/esm2022/lib/external/models/index.mjs +0 -4
- package/esm2022/lib/index.mjs +0 -18
- package/esm2022/lib/internal/constants/default-size.const.mjs +0 -5
- package/esm2022/lib/internal/constants/index.mjs +0 -3
- package/esm2022/lib/internal/constants/metadata.const.mjs +0 -17
- package/esm2022/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +0 -19
- package/esm2022/lib/internal/decorators/design-time-view-element/index.mjs +0 -2
- package/esm2022/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.mjs +0 -25
- package/esm2022/lib/internal/decorators/implement-using-handler-chain/index.mjs +0 -2
- package/esm2022/lib/internal/decorators/index.mjs +0 -4
- package/esm2022/lib/internal/decorators/request/index.mjs +0 -2
- package/esm2022/lib/internal/decorators/request/request.decorator.mjs +0 -15
- package/esm2022/lib/internal/enums/designer-group-type.enum.mjs +0 -16
- package/esm2022/lib/internal/enums/handler-source-type.enum.mjs +0 -12
- package/esm2022/lib/internal/enums/index.mjs +0 -4
- package/esm2022/lib/internal/enums/view-element-group-type.enum.mjs +0 -13
- package/esm2022/lib/internal/models/attribute-property-config.interface.mjs +0 -2
- package/esm2022/lib/internal/models/converter/converter-registry-item.mjs +0 -2
- package/esm2022/lib/internal/models/converter/index.mjs +0 -2
- package/esm2022/lib/internal/models/data-source-load-parameters.mjs +0 -2
- package/esm2022/lib/internal/models/design-time-view-element-registry-item.mjs +0 -2
- package/esm2022/lib/internal/models/handler-chain-service-registry-item.mjs +0 -2
- package/esm2022/lib/internal/models/index.mjs +0 -20
- package/esm2022/lib/internal/models/injection-context/index.mjs +0 -2
- package/esm2022/lib/internal/models/injection-context/injection-context.mjs +0 -2
- package/esm2022/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +0 -2
- package/esm2022/lib/internal/models/interface-designer-item/index.mjs +0 -4
- package/esm2022/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +0 -7
- package/esm2022/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +0 -2
- package/esm2022/lib/internal/models/interface-designer-registry-item.mjs +0 -2
- package/esm2022/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +0 -2
- package/esm2022/lib/internal/models/internal-module-definition.mjs +0 -2
- package/esm2022/lib/internal/models/lazy-module-metadata.mjs +0 -2
- package/esm2022/lib/internal/models/lazy-module-ref.mjs +0 -26
- package/esm2022/lib/internal/models/lazy-registry-item.mjs +0 -2
- package/esm2022/lib/internal/models/remote-build-info.mjs +0 -9
- package/esm2022/lib/internal/models/request/index.mjs +0 -2
- package/esm2022/lib/internal/models/request/method-invoke-request.mjs +0 -12
- package/esm2022/lib/internal/models/request-handler/contexed-handler-scope-config.mjs +0 -2
- package/esm2022/lib/internal/models/request-handler/handler-config.mjs +0 -2
- package/esm2022/lib/internal/models/request-handler/handler-source.mjs +0 -2
- package/esm2022/lib/internal/models/request-handler/index.mjs +0 -6
- package/esm2022/lib/internal/models/request-handler/request-handler-factory.mjs +0 -2
- package/esm2022/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +0 -2
- package/esm2022/lib/internal/models/transaction/index.mjs +0 -4
- package/esm2022/lib/internal/models/transaction/transaction-factory.mjs +0 -2
- package/esm2022/lib/internal/models/transaction/transaction-operation.mjs +0 -2
- package/esm2022/lib/internal/models/transaction/transaction.mjs +0 -2
- package/esm2022/lib/internal/models/validator/index.mjs +0 -4
- package/esm2022/lib/internal/models/validator/validator-parameters.mjs +0 -2
- package/esm2022/lib/internal/models/validator/validator-registry-item.mjs +0 -2
- package/esm2022/lib/internal/models/validator/validator-schema-config.model.mjs +0 -2
- package/esm2022/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +0 -2
- package/esm2022/lib/internal/models/view-element/index.mjs +0 -2
- package/esm2022/lib/internal/models/view-element-registry-item.mjs +0 -2
- package/esm2022/lib/internal/services/base-handler-chain.service.mjs +0 -3
- package/esm2022/lib/internal/services/base-registry/base-registry.mjs +0 -31
- package/esm2022/lib/internal/services/base-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +0 -28
- package/esm2022/lib/internal/services/bootstrap-notifier/index.mjs +0 -2
- package/esm2022/lib/internal/services/chat-message-type-registry/chat-message-type-registry.mjs +0 -22
- package/esm2022/lib/internal/services/chat-message-type-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +0 -32
- package/esm2022/lib/internal/services/design-time-view-element-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/element-registration-checker/element-registration-checker.mjs +0 -60
- package/esm2022/lib/internal/services/element-registration-checker/index.mjs +0 -2
- package/esm2022/lib/internal/services/global-converters-registry/converter-registry.mjs +0 -36
- package/esm2022/lib/internal/services/global-converters-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +0 -26
- package/esm2022/lib/internal/services/handler-chain-services-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/index.mjs +0 -17
- package/esm2022/lib/internal/services/interface-designer-item-registry/index.mjs +0 -3
- package/esm2022/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +0 -53
- package/esm2022/lib/internal/services/interface-designer-item-registry/mobile-interface-designer-item-registry.mjs +0 -12
- package/esm2022/lib/internal/services/lazy-modules-manager/index.mjs +0 -2
- package/esm2022/lib/internal/services/lazy-modules-manager/lazy-modules-manager.mjs +0 -35
- package/esm2022/lib/internal/services/pkg-topology-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +0 -18
- package/esm2022/lib/internal/services/remote-entries-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/remote-entries-registry/remote-entries-registry.mjs +0 -18
- package/esm2022/lib/internal/services/request-handler-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +0 -131
- package/esm2022/lib/internal/services/request-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/request-registry/request-registry.service.mjs +0 -33
- package/esm2022/lib/internal/services/request-resolver/base-requests-resolver.mjs +0 -6
- package/esm2022/lib/internal/services/request-resolver/index.mjs +0 -3
- package/esm2022/lib/internal/services/request-resolver/requests-resolver.mjs +0 -17
- package/esm2022/lib/internal/services/validator-registry/index.mjs +0 -2
- package/esm2022/lib/internal/services/validator-registry/validator-registry.mjs +0 -45
- package/esm2022/lib/internal/services/view-element-registry/base-view-element-registry.mjs +0 -74
- package/esm2022/lib/internal/services/view-element-registry/index.mjs +0 -4
- package/esm2022/lib/internal/services/view-element-registry/mobile-view-element-registry.mjs +0 -13
- package/esm2022/lib/internal/services/view-element-registry/view-element-registry.mjs +0 -12
- package/esm2022/lib/internal/types/index.mjs +0 -3
- package/esm2022/lib/internal/types/internal-resolve-dependency-fn.type.mjs +0 -2
- package/esm2022/lib/internal/types/localizable-values.type.mjs +0 -2
- package/esm2022/lib/internal/utils/handlers-order-comparer.mjs +0 -42
- package/esm2022/lib/internal/utils/index.mjs +0 -8
- package/esm2022/lib/internal/utils/instantiate.mjs +0 -24
- package/esm2022/lib/internal/utils/localization-utils.mjs +0 -24
- package/esm2022/lib/internal/utils/metadata-utils.mjs +0 -236
- package/esm2022/lib/internal/utils/module-utils.mjs +0 -38
- package/esm2022/lib/internal/utils/object-deep-keys/index.mjs +0 -2
- package/esm2022/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +0 -13
- package/esm2022/lib/internal/utils/request-handler-scopes.mjs +0 -10
- package/esm2022/lib/public/decorators/chat-message-type/chat-message-type.decorator.mjs +0 -20
- package/esm2022/lib/public/decorators/chat-message-type/index.mjs +0 -2
- package/esm2022/lib/public/decorators/converter/converter.decorator.mjs +0 -21
- package/esm2022/lib/public/decorators/converter/index.mjs +0 -2
- package/esm2022/lib/public/decorators/index.mjs +0 -12
- package/esm2022/lib/public/decorators/inject/index.mjs +0 -2
- package/esm2022/lib/public/decorators/inject/inject.decorator.mjs +0 -19
- package/esm2022/lib/public/decorators/input/index.mjs +0 -2
- package/esm2022/lib/public/decorators/input/input.decorator.mjs +0 -25
- package/esm2022/lib/public/decorators/interface-designer-item/index.mjs +0 -4
- package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item-decorator-utils.mjs +0 -29
- package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +0 -10
- package/esm2022/lib/public/decorators/interface-designer-item/mobile-interface-designer-item.decorator.mjs +0 -10
- package/esm2022/lib/public/decorators/module/index.mjs +0 -2
- package/esm2022/lib/public/decorators/module/module.decorator.mjs +0 -9
- package/esm2022/lib/public/decorators/output/index.mjs +0 -2
- package/esm2022/lib/public/decorators/output/output.decorator.mjs +0 -19
- package/esm2022/lib/public/decorators/request-handler/index.mjs +0 -2
- package/esm2022/lib/public/decorators/request-handler/request-handler.decorator.mjs +0 -22
- package/esm2022/lib/public/decorators/validation-input/index.mjs +0 -2
- package/esm2022/lib/public/decorators/validation-input/validation-input.decorator.mjs +0 -27
- package/esm2022/lib/public/decorators/validator/index.mjs +0 -2
- package/esm2022/lib/public/decorators/validator/validator.decorator.mjs +0 -25
- package/esm2022/lib/public/decorators/view-element/index.mjs +0 -4
- package/esm2022/lib/public/decorators/view-element/mobile-view-element.decorator.mjs +0 -9
- package/esm2022/lib/public/decorators/view-element/view-element-decorator-utils.mjs +0 -33
- package/esm2022/lib/public/decorators/view-element/view-element.decorator.mjs +0 -10
- package/esm2022/lib/public/enums/data-source-load-type.enum.mjs +0 -10
- package/esm2022/lib/public/enums/index.mjs +0 -5
- package/esm2022/lib/public/enums/process-status.enum.mjs +0 -28
- package/esm2022/lib/public/enums/view-element-property.enum.mjs +0 -9
- package/esm2022/lib/public/enums/view-model-collection-action-type.enum.mjs +0 -24
- package/esm2022/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +0 -32
- package/esm2022/lib/public/functions/bootstrap-crt-module.mjs +0 -357
- package/esm2022/lib/public/functions/bootstrapped-crt-modules.mjs +0 -8
- package/esm2022/lib/public/functions/crt-module-context-hooks.mjs +0 -30
- package/esm2022/lib/public/functions/define-render-config.mjs +0 -16
- package/esm2022/lib/public/functions/index.mjs +0 -10
- package/esm2022/lib/public/functions/localize.mjs +0 -29
- package/esm2022/lib/public/functions/register-angular-view-element.mjs +0 -13
- package/esm2022/lib/public/functions/register-view-element.mjs +0 -21
- package/esm2022/lib/public/functions/reset-globals.mjs +0 -37
- package/esm2022/lib/public/handlers/base-request-handler.mjs +0 -37
- package/esm2022/lib/public/handlers/index.mjs +0 -2
- package/esm2022/lib/public/models/ai-context/ai-context-part.mjs +0 -2
- package/esm2022/lib/public/models/ai-context/index.mjs +0 -2
- package/esm2022/lib/public/models/base-response.model.mjs +0 -2
- package/esm2022/lib/public/models/converter/converter-config.mjs +0 -2
- package/esm2022/lib/public/models/converter/index.mjs +0 -2
- package/esm2022/lib/public/models/converter.model.mjs +0 -2
- package/esm2022/lib/public/models/entity.model.mjs +0 -2
- package/esm2022/lib/public/models/error-info.model.mjs +0 -2
- package/esm2022/lib/public/models/image-value.model.mjs +0 -2
- package/esm2022/lib/public/models/index.mjs +0 -21
- package/esm2022/lib/public/models/input/index.mjs +0 -2
- package/esm2022/lib/public/models/input/input-registration-config.model.mjs +0 -6
- package/esm2022/lib/public/models/interface-designer-item/index.mjs +0 -2
- package/esm2022/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +0 -2
- package/esm2022/lib/public/models/item-creation-config.mjs +0 -2
- package/esm2022/lib/public/models/license/index.mjs +0 -2
- package/esm2022/lib/public/models/license/license-restriction-operation-values.model.mjs +0 -2
- package/esm2022/lib/public/models/localizable-value.mjs +0 -20
- package/esm2022/lib/public/models/mask-settings.mjs +0 -2
- package/esm2022/lib/public/models/module-definition.mjs +0 -2
- package/esm2022/lib/public/models/process-engine/index.mjs +0 -4
- package/esm2022/lib/public/models/process-engine/process-parameter-value.model.mjs +0 -2
- package/esm2022/lib/public/models/process-engine/run-process-request.model.mjs +0 -12
- package/esm2022/lib/public/models/process-engine/run-process-response.model.mjs +0 -2
- package/esm2022/lib/public/models/request/base-request-config.mjs +0 -8
- package/esm2022/lib/public/models/request/data-source-request.mjs +0 -11
- package/esm2022/lib/public/models/request/handle-view-model-attribute-change.request.mjs +0 -29
- package/esm2022/lib/public/models/request/index.mjs +0 -6
- package/esm2022/lib/public/models/request/model-event.model.mjs +0 -2
- package/esm2022/lib/public/models/request/view-model-attribute-change-event-options.mjs +0 -2
- package/esm2022/lib/public/models/request-handler/index.mjs +0 -2
- package/esm2022/lib/public/models/request-handler/request-handler-definition.mjs +0 -2
- package/esm2022/lib/public/models/validation/base-validator.mjs +0 -40
- package/esm2022/lib/public/models/validation/crt-control-state.mjs +0 -2
- package/esm2022/lib/public/models/validation/crt-validation-errors.mjs +0 -2
- package/esm2022/lib/public/models/validation/crt-validator-fn.mjs +0 -2
- package/esm2022/lib/public/models/validation/index.mjs +0 -8
- package/esm2022/lib/public/models/validation/validation-info.mjs +0 -2
- package/esm2022/lib/public/models/validation/validator-config.mjs +0 -2
- package/esm2022/lib/public/models/validation/validator-parameter-values.mjs +0 -2
- package/esm2022/lib/public/models/view-element/base-view-element-registration-config.mjs +0 -2
- package/esm2022/lib/public/models/view-element/index.mjs +0 -6
- package/esm2022/lib/public/models/view-element/view-element-registration-config.mjs +0 -2
- package/esm2022/lib/public/models/view-element/view-element-render-strategy.mjs +0 -18
- package/esm2022/lib/public/models/view-element/view-element-reuse-strategy.enum.mjs +0 -15
- package/esm2022/lib/public/models/view-element/view-element-slot-definition.mjs +0 -2
- package/esm2022/lib/public/models/view-model-collection/index.mjs +0 -3
- package/esm2022/lib/public/models/view-model-collection/view-model-collection-change.model.mjs +0 -2
- package/esm2022/lib/public/models/view-model-collection/view-model-collection.model.mjs +0 -2
- package/esm2022/lib/public/services/ai-context/ai-context.service.mjs +0 -86
- package/esm2022/lib/public/services/ai-context/index.mjs +0 -2
- package/esm2022/lib/public/services/crt-zone/crt-zone.service.mjs +0 -22
- package/esm2022/lib/public/services/crt-zone/index.mjs +0 -2
- package/esm2022/lib/public/services/dialog-service/dialog.service.mjs +0 -24
- package/esm2022/lib/public/services/dialog-service/index.mjs +0 -2
- package/esm2022/lib/public/services/feature/feature.service.mjs +0 -26
- package/esm2022/lib/public/services/feature/index.mjs +0 -2
- package/esm2022/lib/public/services/handler-chain/handler-chain.service.mjs +0 -71
- package/esm2022/lib/public/services/handler-chain/index.mjs +0 -2
- package/esm2022/lib/public/services/handler-chain/internal-handler-chain.mjs +0 -195
- package/esm2022/lib/public/services/http-client/http-client.service.mjs +0 -83
- package/esm2022/lib/public/services/http-client/http-headers.mjs +0 -2
- package/esm2022/lib/public/services/http-client/http-response.mjs +0 -2
- package/esm2022/lib/public/services/http-client/index.mjs +0 -4
- package/esm2022/lib/public/services/index.mjs +0 -17
- package/esm2022/lib/public/services/license/index.mjs +0 -2
- package/esm2022/lib/public/services/license/license.service.mjs +0 -30
- package/esm2022/lib/public/services/mask-service/index.mjs +0 -2
- package/esm2022/lib/public/services/mask-service/mask.service.mjs +0 -46
- package/esm2022/lib/public/services/message-channel/index.mjs +0 -2
- package/esm2022/lib/public/services/message-channel/message-channel.service.mjs +0 -27
- package/esm2022/lib/public/services/model/index.mjs +0 -2
- package/esm2022/lib/public/services/model/model.mjs +0 -102
- package/esm2022/lib/public/services/process-engine/index.mjs +0 -2
- package/esm2022/lib/public/services/process-engine/process-engine.service.mjs +0 -27
- package/esm2022/lib/public/services/rights/index.mjs +0 -2
- package/esm2022/lib/public/services/rights/rights.service.mjs +0 -26
- package/esm2022/lib/public/services/schema-modal/index.mjs +0 -3
- package/esm2022/lib/public/services/schema-modal/schema-modal-config.model.mjs +0 -2
- package/esm2022/lib/public/services/schema-modal/schema-modal.service.mjs +0 -23
- package/esm2022/lib/public/services/sys-settings/index.mjs +0 -3
- package/esm2022/lib/public/services/sys-settings/sys-setting.model.mjs +0 -24
- package/esm2022/lib/public/services/sys-settings/sys-settings.service.mjs +0 -36
- package/esm2022/lib/public/services/sys-values/index.mjs +0 -3
- package/esm2022/lib/public/services/sys-values/sys-values.mjs +0 -2
- package/esm2022/lib/public/services/sys-values/sys-values.service.mjs +0 -23
- package/esm2022/lib/public/services/transaction-factory/index.mjs +0 -2
- package/esm2022/lib/public/services/transaction-factory/transaction-factory.service.mjs +0 -40
|
@@ -0,0 +1,4509 @@
|
|
|
1
|
+
import { ɵFilterGroup as _FilterGroup, ɵDataSourceLoadOptions as _DataSourceLoadOptions, ɵGuid as _Guid, ɵDataValueType as _DataValueType, ɵDatePartType as _DatePartType, ɵLookupValue as _LookupValue, ɵType as _Type, ɵAggregationEvalType as _AggregationEvalType, ɵAggregationEval as _AggregationEval, ɵAggregationType as _AggregationType, ɵAggregationFunction as _AggregationFunction, ɵDatePart as _DatePart, ɵFunctionStringType as _FunctionStringType, ɵFunctionType as _FunctionType, ɵSortDirection as _SortDirection, ɵOrderDirection as _OrderDirection, ɵCompatibleAPIs as _CompatibleAPIs, ɵViewModelContext as _ViewModelContext, ɵRequestHandler as _RequestHandler, ɵBaseRequest as _BaseRequest, ɵTeardownLogic as _TeardownLogic, ɵEntityColumnValue as _EntityColumnValue, ɵItemCreationConfig as _ItemCreationConfig, ɵJsonData as _JsonData, ɵViewModelCollection as _ViewModelCollection, ɵDataSourceParameters as _DataSourceParameters, ɵRequestRegistrationConfig as _RequestRegistrationConfig, ɵPlatformAPIOptions as _PlatformAPIOptions, ɵPlatformAPIs as _PlatformAPIs, ɵResolveDependencyFn as _ResolveDependencyFn, ɵLocalizeFn as _LocalizeFn, ɵAbstractType as _AbstractType, ɵBaseDialogService as _BaseDialogService, ɵBaseDialogConfig as _BaseDialogConfig, ɵBaseDialogButtonConfig as _BaseDialogButtonConfig, ɵBaseMessageChannelService as _BaseMessageChannelService, ɵMessageChannelEvent as _MessageChannelEvent, ɵSubscription as _Subscription, ɵMessageChannelType as _MessageChannelType, ɵBaseModel as _BaseModel, ɵDataSchema as _DataSchema, ɵDataSourceAttribute as _DataSourceAttribute, ɵJsonArray as _JsonArray, ɵJsonObject as _JsonObject, ɵDataSourceSaveResult as _DataSourceSaveResult, ɵDataSourceCanExecuteOperationPayload as _DataSourceCanExecuteOperationPayload, ɵDataSourceCanExecuteOperationResult as _DataSourceCanExecuteOperationResult, ɵModelInPageAction as _ModelInPageAction, ɵModelDefaultValue as _ModelDefaultValue, ɵLookupValueWithCode as _LookupValueWithCode } from '@creatio/base';
|
|
2
|
+
export { ɵAbstractType as AbstractType, ɵAggregationEval as AggregationEval, ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationFunctionExpressionConfig as AggregationFunctionExpressionConfig, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationSubQueryExpressionConfig as AggregationSubQueryExpressionConfig, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentFunctionExpressionConfig as ArgumentFunctionExpressionConfig, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticExpressionConfig as ArithmeticExpressionConfig, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseDataSourceParameter as BaseDataSourceParameter, ɵBaseDialogButtonConfig as BaseDialogButtonConfig, ɵBaseDialogConfig as BaseDialogConfig, ɵBaseDialogService as BaseDialogService, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseMessageChannelService as BaseMessageChannelService, ɵBaseModel as BaseModel, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵButtonColor as ButtonColor, ɵColumnExpression as ColumnExpression, ɵColumnExpressionConfig as ColumnExpressionConfig, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵConditionalValueItem as ConditionalValueItem, ɵDataSchema as DataSchema, ɵDataSchemaAttribute as DataSchemaAttribute, ɵDataSchemaAttributeAggregationConfig as DataSchemaAttributeAggregationConfig, ɵDataSchemaAttributeAggregationFunctionConfig as DataSchemaAttributeAggregationFunctionConfig, ɵDataSchemaAttributeDatePartFunctionConfig as DataSchemaAttributeDatePartFunctionConfig, ɵDataSchemaAttributeFunctionConfig as DataSchemaAttributeFunctionConfig, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaAttributeValidatorConfig as DataSchemaAttributeValidatorConfig, ɵDataSchemaAttributeValueMaskingSettings as DataSchemaAttributeValueMaskingSettings, ɵDataSchemaType as DataSchemaType, ɵDataSchemaValidatorConfig as DataSchemaValidatorConfig, ɵDataSourceAggregationConfig as DataSourceAggregationConfig, ɵDataSourceAggregationFunctionConfig as DataSourceAggregationFunctionConfig, ɵDataSourceAttribute as DataSourceAttribute, ɵDataSourceAttributeType as DataSourceAttributeType, ɵDataSourceCanExecuteOperationPayload as DataSourceCanExecuteOperationPayload, ɵDataSourceCanExecuteOperationResult as DataSourceCanExecuteOperationResult, ɵDataSourceConfig as DataSourceConfig, ɵDataSourceDatePartFunctionConfig as DataSourceDatePartFunctionConfig, ɵDataSourceFunctionConfig as DataSourceFunctionConfig, ɵDataSourceInsertResult as DataSourceInsertResult, ɵDataSourceInstanceConfig as DataSourceInstanceConfig, ɵDataSourcePagingConfig as DataSourcePagingConfig, ɵDataSourceParameter as DataSourceParameter, ɵDataSourceParameterRelationConfig as DataSourceParameterRelationConfig, ɵDataSourceParameters as DataSourceParameters, ɵDataSourceSaveResult as DataSourceSaveResult, ɵDataSourceScope as DataSourceScope, ɵDataSourceSortingConfig as DataSourceSortingConfig, ɵDataValueType as DataValueType, ɵDatePart as DatePart, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartFunctionExpressionConfig as DatePartFunctionExpressionConfig, ɵDatePartType as DatePartType, ɵDefaultValueSchema as DefaultValueSchema, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityColumnValue as EntityColumnValue, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionConfig as ExpressionConfig, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, FilterGroupOrigin, ɵFilterGroupOriginType as FilterGroupOriginType, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionExpressionConfig as FunctionExpressionConfig, ɵFunctionStringType as FunctionStringType, ɵFunctionType as FunctionType, ɵGuid as Guid, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵJsonArray as JsonArray, ɵJsonData as JsonData, ɵJsonObject as JsonObject, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLengthFunctionExpressionConfig as LengthFunctionExpressionConfig, ɵLocalizableString as LocalizableString, ɵLocalizeFn as LocalizeFn, ɵLogicalOperatorType as LogicalOperatorType, ɵLookupValue as LookupValue, ɵLookupValueWithCode as LookupValueWithCode, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵMacrosFunctionExpressionConfig as MacrosFunctionExpressionConfig, ɵMessageChannelEvent as MessageChannelEvent, ɵMessageChannelType as MessageChannelType, ɵMetadataProvider as MetadataProvider, ɵModelDefaultValue as ModelDefaultValue, ɵModelInPageAction as ModelInPageAction, ɵModelInitConfig as ModelInitConfig, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterExpressionConfig as ParameterExpressionConfig, ɵParameterQueryColumn as ParameterQueryColumn, ɵPlatformAPIOptions as PlatformAPIOptions, ɵPlatformAPIs as PlatformAPIs, ɵPrimaryDisplayFilterDataSourceParameter as PrimaryDisplayFilterDataSourceParameter, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵRequestHandler as RequestHandler, ɵRequestRegistrationConfig as RequestRegistrationConfig, ɵResolveDependencyFn as ResolveDependencyFn, ɵSchemaViewMaskRequest as SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction, ɵSegmentFilter as SegmentFilter, ɵSegmentFilterComparisonType as SegmentFilterComparisonType, ɵSegmentFilterDto as SegmentFilterDto, ɵSegmentFilterOptions as SegmentFilterOptions, ɵSegmentFilterOptionsDto as SegmentFilterOptionsDto, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSortColumnOptions as SortColumnOptions, ɵSortDirection as SortDirection, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵSubQueryExpressionConfig as SubQueryExpressionConfig, ɵSubscription as Subscription, ɵTeardownLogic as TeardownLogic, ɵType as Type, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵViewModelContext as ViewModelContext, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵWindowFunctionExpressionConfig as WindowFunctionExpressionConfig, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
declare enum DataSourceLoadType {
|
|
8
|
+
LoadNext = "loadNext",
|
|
9
|
+
Load = "load",
|
|
10
|
+
Reload = "reload"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @description Enum representing the status of a process.
|
|
16
|
+
*/
|
|
17
|
+
declare enum ProcessStatus {
|
|
18
|
+
/**
|
|
19
|
+
* The process is inactive.
|
|
20
|
+
*/
|
|
21
|
+
Inactive = 0,
|
|
22
|
+
/**
|
|
23
|
+
* The process is currently running.
|
|
24
|
+
*/
|
|
25
|
+
Running = 1,
|
|
26
|
+
/**
|
|
27
|
+
* The process has completed successfully.
|
|
28
|
+
*/
|
|
29
|
+
Completed = 2,
|
|
30
|
+
/**
|
|
31
|
+
* The process encountered an error.
|
|
32
|
+
*/
|
|
33
|
+
Error = 3,
|
|
34
|
+
/**
|
|
35
|
+
* The process was cancelled.
|
|
36
|
+
*/
|
|
37
|
+
Cancelled = 4
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
declare enum ViewElementProperty {
|
|
44
|
+
Readonly = "READONLY_PROPERTY",
|
|
45
|
+
Disabled = "DISABLED_PROPERTY"
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
* @description List of actions which can be performed on collection with a public API.
|
|
51
|
+
*/
|
|
52
|
+
declare enum ViewModelCollectionActionType {
|
|
53
|
+
/**
|
|
54
|
+
* @description Create a collection element.
|
|
55
|
+
*/
|
|
56
|
+
Add = "add",
|
|
57
|
+
/**
|
|
58
|
+
* @description Remove an element from collection.
|
|
59
|
+
*/
|
|
60
|
+
Remove = "remove",
|
|
61
|
+
/**
|
|
62
|
+
* @description Update an element in collection.
|
|
63
|
+
*/
|
|
64
|
+
Move = "move",
|
|
65
|
+
/**
|
|
66
|
+
* @description Reload collection with new elements.
|
|
67
|
+
*/
|
|
68
|
+
Reload = "reload"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
* @description Hierarchy state where collapsed nodes are inferred and expanded nodes are listed explicitly.
|
|
74
|
+
* @property {'collapsed'} mode State mode identifier.
|
|
75
|
+
* @property {string[]} expandedIds Identifiers of expanded hierarchy nodes.
|
|
76
|
+
*/
|
|
77
|
+
interface HierarchyStateCollapsed {
|
|
78
|
+
/**
|
|
79
|
+
* @description State mode identifier.
|
|
80
|
+
*/
|
|
81
|
+
mode: 'collapsed';
|
|
82
|
+
/**
|
|
83
|
+
* @description Identifiers of expanded hierarchy nodes.
|
|
84
|
+
*/
|
|
85
|
+
expandedIds: string[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
* @description Hierarchy state where expanded nodes are inferred and collapsed nodes are listed explicitly.
|
|
90
|
+
* @property {'expanded'} mode State mode identifier.
|
|
91
|
+
* @property {string[]} collapsedIds Identifiers of collapsed hierarchy nodes.
|
|
92
|
+
*/
|
|
93
|
+
interface HierarchyStateExpanded {
|
|
94
|
+
/**
|
|
95
|
+
* @description State mode identifier.
|
|
96
|
+
*/
|
|
97
|
+
mode: 'expanded';
|
|
98
|
+
/**
|
|
99
|
+
* @description Identifiers of collapsed hierarchy nodes.
|
|
100
|
+
*/
|
|
101
|
+
collapsedIds: string[];
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* @description Union type that describes all supported hierarchy row states.
|
|
106
|
+
*/
|
|
107
|
+
type HierarchyState = HierarchyStateCollapsed | HierarchyStateExpanded;
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
* @description Determines whether the hierarchy node with the specified identifier is expanded
|
|
111
|
+
* based on the provided hierarchy state.
|
|
112
|
+
* @param hierarchyState Hierarchy state object.
|
|
113
|
+
* @param itemId Identifier of the hierarchy node.
|
|
114
|
+
* @returns True if the node is expanded; otherwise, false.
|
|
115
|
+
* @remarks If the hierarchy state is not provided or does not contain necessary information,
|
|
116
|
+
* the function returns false.
|
|
117
|
+
*/
|
|
118
|
+
declare function isHierarchicalItemExpanded(hierarchyState: HierarchyState | undefined, itemId: string): boolean;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @description Common hierarchy options shared between client-side and server-side hierarchy modes.
|
|
122
|
+
* @property {'ClientSide' | 'ServerSide'} type Type of hierarchy handling.
|
|
123
|
+
* @property {string} hierarchicalColumnName Name of the column that defines the hierarchy.
|
|
124
|
+
* @property {string} hierarchicalColumnValue Value of the hierarchical column to start loading from.
|
|
125
|
+
*/
|
|
126
|
+
interface BaseDataSourceHierarchyConfig {
|
|
127
|
+
/**
|
|
128
|
+
* @description Type of hierarchy handling.
|
|
129
|
+
*/
|
|
130
|
+
type?: 'ClientSide' | 'ServerSide';
|
|
131
|
+
/**
|
|
132
|
+
* @description Name of the column that defines the hierarchy.
|
|
133
|
+
*/
|
|
134
|
+
hierarchicalColumnName: string;
|
|
135
|
+
/**
|
|
136
|
+
* @description Value of the hierarchical column to start loading from.
|
|
137
|
+
*/
|
|
138
|
+
hierarchicalColumnValue?: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @description Configuration for client-side hierarchy processing.
|
|
143
|
+
* @property {'ClientSide'} type Type of hierarchy handling.
|
|
144
|
+
* @property {string} hierarchicalColumnName Name of the column that defines the hierarchy.
|
|
145
|
+
* @property {string} hierarchicalColumnValue Value of the hierarchical column to start loading from.
|
|
146
|
+
* @property {string} hierarchicalChildrenCountColumnName Name of the column with children count for a node.
|
|
147
|
+
* @property {HierarchyState} hierarchicalState State of hierarchical rows (expanded/collapsed).
|
|
148
|
+
*/
|
|
149
|
+
interface ClientSideDataSourceHierarchyConfig extends BaseDataSourceHierarchyConfig {
|
|
150
|
+
/**
|
|
151
|
+
* @description Type of hierarchy handling.
|
|
152
|
+
*/
|
|
153
|
+
type: 'ClientSide';
|
|
154
|
+
/**
|
|
155
|
+
* @description Name of the column with children count for a node.
|
|
156
|
+
*/
|
|
157
|
+
hierarchicalChildrenCountColumnName?: string;
|
|
158
|
+
/**
|
|
159
|
+
* @description State of hierarchical rows (expanded/collapsed).
|
|
160
|
+
*/
|
|
161
|
+
hierarchicalState?: HierarchyState;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
* @description Configuration for server-side hierarchy processing.
|
|
166
|
+
* @property {'ServerSide'} type Type of hierarchy handling.
|
|
167
|
+
* @property {string} hierarchicalColumnName Name of the column that defines the hierarchy.
|
|
168
|
+
* @property {string} hierarchicalColumnValue Value of the hierarchical column to start loading from.
|
|
169
|
+
* @property {FilterGroup} hierarchicalColumnFiltersValue Filters to be applied on the hierarchical column.
|
|
170
|
+
* @property {number} hierarchicalMaxDepth Maximum depth of the hierarchy to be loaded.
|
|
171
|
+
* @property {boolean} hierarchicalFullDataLoad Whether to load the full hierarchy data.
|
|
172
|
+
*/
|
|
173
|
+
interface ServerSideDataSourceHierarchyConfig extends BaseDataSourceHierarchyConfig {
|
|
174
|
+
/**
|
|
175
|
+
* @description Type of hierarchy handling.
|
|
176
|
+
*/
|
|
177
|
+
type?: 'ServerSide';
|
|
178
|
+
/**
|
|
179
|
+
* @description Filters to be applied on the hierarchical column.
|
|
180
|
+
*/
|
|
181
|
+
hierarchicalColumnFiltersValue?: _FilterGroup;
|
|
182
|
+
/**
|
|
183
|
+
* @description Maximum depth of the hierarchy to be loaded.
|
|
184
|
+
*/
|
|
185
|
+
hierarchicalMaxDepth?: number;
|
|
186
|
+
/**
|
|
187
|
+
* @description Whether to load the full hierarchy data.
|
|
188
|
+
*/
|
|
189
|
+
hierarchicalFullDataLoad?: boolean;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @public
|
|
193
|
+
* @description Union type describing all supported hierarchy configuration modes.
|
|
194
|
+
*/
|
|
195
|
+
type DataSourceHierarchyConfig = ClientSideDataSourceHierarchyConfig | ServerSideDataSourceHierarchyConfig;
|
|
196
|
+
/**
|
|
197
|
+
* @public
|
|
198
|
+
* @description Checks whether hierarchy configuration is client-side.
|
|
199
|
+
* @param hierarchyConfig Hierarchy configuration to check.
|
|
200
|
+
* @returns `true` if configuration is of type `ClientSideDataSourceHierarchyConfig`.
|
|
201
|
+
*/
|
|
202
|
+
declare function isClientSideDataSourceHierarchyConfig(hierarchyConfig: DataSourceHierarchyConfig | undefined): hierarchyConfig is ClientSideDataSourceHierarchyConfig;
|
|
203
|
+
/**
|
|
204
|
+
* @public
|
|
205
|
+
* @description Checks whether hierarchy configuration is server-side.
|
|
206
|
+
* @param hierarchyConfig Hierarchy configuration to check.
|
|
207
|
+
* @returns `true` if configuration is of type `ServerSideDataSourceHierarchyConfig`.
|
|
208
|
+
*/
|
|
209
|
+
declare function isServerSideDataSourceHierarchyConfig(hierarchyConfig: DataSourceHierarchyConfig | undefined): hierarchyConfig is ServerSideDataSourceHierarchyConfig;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @public
|
|
213
|
+
* @description Represents a set of loading options.
|
|
214
|
+
* @property {string} pagingConfig - The paging options for loading.
|
|
215
|
+
* @property {string} sortingConfig - The sorting options.
|
|
216
|
+
* @property {DataSourceHierarchyConfig} hierarchyConfig - The hierarchy options.
|
|
217
|
+
*/
|
|
218
|
+
interface DataSourceLoadOptions extends _DataSourceLoadOptions {
|
|
219
|
+
/**
|
|
220
|
+
* @description Hierarchy options.
|
|
221
|
+
*/
|
|
222
|
+
hierarchyConfig?: DataSourceHierarchyConfig;
|
|
223
|
+
/**
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
loadType?: DataSourceLoadType;
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
throttled?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* @internal
|
|
233
|
+
*/
|
|
234
|
+
isDistinct?: boolean;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
|
+
interface FileViewerOptions {
|
|
241
|
+
zoom?: number;
|
|
242
|
+
[key: string]: unknown;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @internal
|
|
247
|
+
* @hostPublicApi
|
|
248
|
+
*/
|
|
249
|
+
interface AttributeValueConfig {
|
|
250
|
+
uId?: _Guid;
|
|
251
|
+
attributeName: string;
|
|
252
|
+
value: unknown;
|
|
253
|
+
caption?: string;
|
|
254
|
+
dataValueType?: _DataValueType;
|
|
255
|
+
referenceSchemaUId?: _Guid;
|
|
256
|
+
referenceSchemaName?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
interface GroupedDateValue {
|
|
263
|
+
value: number;
|
|
264
|
+
datePartType: _DatePartType;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
interface FileValue extends _LookupValue {
|
|
271
|
+
url?: string;
|
|
272
|
+
extension?: string;
|
|
273
|
+
fileType?: string;
|
|
274
|
+
size?: number;
|
|
275
|
+
entitySchemaUid?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
type OptionsChangeListener = (options: FileViewerOptions) => void;
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
type UnsubscribeFn = () => void;
|
|
286
|
+
/**
|
|
287
|
+
* @internal
|
|
288
|
+
*/
|
|
289
|
+
type OptionChangeSubscribeFn = (listener: OptionsChangeListener) => UnsubscribeFn;
|
|
290
|
+
/**
|
|
291
|
+
* @internal
|
|
292
|
+
*/
|
|
293
|
+
interface OptionChangeSubscription {
|
|
294
|
+
subscribe: OptionChangeSubscribeFn;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @internal
|
|
298
|
+
*/
|
|
299
|
+
declare abstract class FileViewerInstance {
|
|
300
|
+
private readonly _handlerChain;
|
|
301
|
+
private readonly _optionsChangeListeners;
|
|
302
|
+
protected options: FileViewerOptions;
|
|
303
|
+
/**
|
|
304
|
+
* Subscription that notifies when options change.
|
|
305
|
+
*/
|
|
306
|
+
readonly optionsChanged: OptionChangeSubscription;
|
|
307
|
+
/**
|
|
308
|
+
* Processes a request.
|
|
309
|
+
* @param requestType Request type.
|
|
310
|
+
* @param payload Request payload.
|
|
311
|
+
*/
|
|
312
|
+
protected processRequest(requestType: string, payload: Record<string, unknown>): Promise<unknown>;
|
|
313
|
+
/**
|
|
314
|
+
* Initializes the file viewer instance.
|
|
315
|
+
* @param container DOM element for injection.
|
|
316
|
+
*/
|
|
317
|
+
abstract initialize(container: HTMLElement): Promise<unknown>;
|
|
318
|
+
/**
|
|
319
|
+
* Loads a document into the file viewer.
|
|
320
|
+
* @param file File value.
|
|
321
|
+
*/
|
|
322
|
+
abstract loadDocument(file: FileValue): Promise<boolean>;
|
|
323
|
+
/**
|
|
324
|
+
* Sets options for the file viewer instance.
|
|
325
|
+
* @param options Options to set.
|
|
326
|
+
*/
|
|
327
|
+
setOptions(options: FileViewerOptions): Promise<unknown>;
|
|
328
|
+
/**
|
|
329
|
+
* Cleans up resources used by the instance.
|
|
330
|
+
*/
|
|
331
|
+
destroy(): Promise<void>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @internal
|
|
336
|
+
*/
|
|
337
|
+
declare class FileViewerFactory {
|
|
338
|
+
private static readonly _instances;
|
|
339
|
+
/**
|
|
340
|
+
* Registers a file viewer instance type with a given name.
|
|
341
|
+
* @param name Name.
|
|
342
|
+
* @param instanceType Instance type.
|
|
343
|
+
*/
|
|
344
|
+
static registerFileViewer(name: string, instanceType: _Type<FileViewerInstance>): void;
|
|
345
|
+
/**
|
|
346
|
+
* Creates a file viewer instance by name.
|
|
347
|
+
* @param name Name.
|
|
348
|
+
*/
|
|
349
|
+
static createFileViewerInstance(name: string): FileViewerInstance | undefined;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
declare function toAggregationType(aggregationFunction: _AggregationFunction): _AggregationType;
|
|
356
|
+
/**
|
|
357
|
+
* @internal
|
|
358
|
+
*/
|
|
359
|
+
declare function toAggregationFunction(aggregationType: _AggregationType): _AggregationFunction;
|
|
360
|
+
/**
|
|
361
|
+
* @internal
|
|
362
|
+
*/
|
|
363
|
+
declare function toAggregationEvalType(aggregationEval: _AggregationEval): _AggregationEvalType;
|
|
364
|
+
/**
|
|
365
|
+
* @internal
|
|
366
|
+
*/
|
|
367
|
+
declare function toAggregationEval(aggregationEvalType: _AggregationEvalType): _AggregationEval;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @internal
|
|
371
|
+
*/
|
|
372
|
+
declare function toDatePartType(aggregationFunction: _DatePart): _DatePartType;
|
|
373
|
+
/**
|
|
374
|
+
* @internal
|
|
375
|
+
*/
|
|
376
|
+
declare function toDatePart(aggregationType: _DatePartType): _DatePart;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @internal
|
|
380
|
+
*/
|
|
381
|
+
declare function toStringFunctionType(functionType: _FunctionType): _FunctionStringType;
|
|
382
|
+
/**
|
|
383
|
+
* @internal
|
|
384
|
+
*/
|
|
385
|
+
declare function toNumericFunctionType(functionType: _FunctionStringType): _FunctionType;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @internal
|
|
389
|
+
*/
|
|
390
|
+
declare function toOrderDirection(sortDirection: _SortDirection): _OrderDirection;
|
|
391
|
+
/**
|
|
392
|
+
* @internal
|
|
393
|
+
*/
|
|
394
|
+
declare function toSortDirection(orderDirection: _OrderDirection): _SortDirection;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @internal
|
|
398
|
+
*/
|
|
399
|
+
declare const crtInputPrefix = "crtInput:";
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
*/
|
|
403
|
+
declare const crtOutputPrefix = "crtOutput:";
|
|
404
|
+
/**
|
|
405
|
+
* @internal
|
|
406
|
+
*/
|
|
407
|
+
declare const crtValidationInputPrefix = "crtValidationInput:";
|
|
408
|
+
/**
|
|
409
|
+
* @internal
|
|
410
|
+
*/
|
|
411
|
+
declare const crtInjectPrefix = "crtInject:";
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @internal
|
|
415
|
+
*/
|
|
416
|
+
declare const VIEW_ELEMENT_DEFAULT_HEIGHT = "39px";
|
|
417
|
+
|
|
418
|
+
declare abstract class BaseHandlerChainService {
|
|
419
|
+
/**
|
|
420
|
+
* @internal
|
|
421
|
+
*/
|
|
422
|
+
abstract readonly requestType: string;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @internal
|
|
427
|
+
*/
|
|
428
|
+
declare function ImplementUsingHandlerChain(config?: {
|
|
429
|
+
requestType?: string;
|
|
430
|
+
methodName?: string;
|
|
431
|
+
omitResult?: boolean;
|
|
432
|
+
}): (target: BaseHandlerChainService | any, method: string, descriptor?: TypedPropertyDescriptor<any>) => void;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @internal
|
|
436
|
+
* @hostPublicApi
|
|
437
|
+
* @interface BaseInterfaceDesignerItemRegistrationConfig
|
|
438
|
+
* @description Registration config for defining user components in Creatio platform.
|
|
439
|
+
* @property {string} type - type of view element. Used to specify view element in schema.
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* const config: BaseInterfaceDesignerItemRegistrationConfig = {
|
|
443
|
+
* type: 'usr.Component',
|
|
444
|
+
* }
|
|
445
|
+
*/
|
|
446
|
+
interface BaseInterfaceDesignerItemRegistrationConfig {
|
|
447
|
+
type?: string;
|
|
448
|
+
typeRef?: _Type;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @internal
|
|
453
|
+
* @hostPublicApi
|
|
454
|
+
*/
|
|
455
|
+
declare enum ViewElementGroupType {
|
|
456
|
+
Charts = "Charts",
|
|
457
|
+
Components = "Components",
|
|
458
|
+
LayoutElements = "LayoutElements",
|
|
459
|
+
Inputs = "Inputs",
|
|
460
|
+
CustomElements = "CustomElements"
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @internal
|
|
465
|
+
* @hostPublicApi
|
|
466
|
+
*/
|
|
467
|
+
declare enum ViewElementDataGroupType {
|
|
468
|
+
Data = "Data"
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* @internal
|
|
472
|
+
* @hostPublicApi
|
|
473
|
+
*/
|
|
474
|
+
type DesignerToolGroupType = ViewElementDataGroupType | ViewElementGroupType;
|
|
475
|
+
/**
|
|
476
|
+
* @internal
|
|
477
|
+
* @hostPublicApi
|
|
478
|
+
*/
|
|
479
|
+
declare const DesignerToolGroupType: {
|
|
480
|
+
Charts: ViewElementGroupType.Charts;
|
|
481
|
+
Components: ViewElementGroupType.Components;
|
|
482
|
+
LayoutElements: ViewElementGroupType.LayoutElements;
|
|
483
|
+
Inputs: ViewElementGroupType.Inputs;
|
|
484
|
+
CustomElements: ViewElementGroupType.CustomElements;
|
|
485
|
+
Data: ViewElementDataGroupType.Data;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Handler source types in order of call priority.
|
|
490
|
+
* @internal
|
|
491
|
+
* @hostPublicApi
|
|
492
|
+
*/
|
|
493
|
+
declare enum HandlerSourceType {
|
|
494
|
+
Schema = 0,
|
|
495
|
+
Remote = 1,
|
|
496
|
+
Host = 2
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @internal
|
|
501
|
+
*/
|
|
502
|
+
type InternalToolbarViewElementConfig = BaseToolbarViewElementConfig & ExtraToolbarViewElementConfig;
|
|
503
|
+
/**
|
|
504
|
+
* @internal
|
|
505
|
+
*/
|
|
506
|
+
type InternalToolbarViewElementCollectionItemConfig = ToolbarViewElementConfig & ExtraToolbarViewElementConfig;
|
|
507
|
+
/**
|
|
508
|
+
* @internal
|
|
509
|
+
*/
|
|
510
|
+
type InternalToolbarViewElementConfigCollection = Array<InternalToolbarViewElementCollectionItemConfig>;
|
|
511
|
+
/**
|
|
512
|
+
* @internal
|
|
513
|
+
*/
|
|
514
|
+
type ToolbarViewElementConfigType = InternalToolbarViewElementConfig | InternalToolbarViewElementConfigCollection;
|
|
515
|
+
/**
|
|
516
|
+
* @internal
|
|
517
|
+
* @hostPublicApi
|
|
518
|
+
*/
|
|
519
|
+
interface ToolbarViewElementConfig extends BaseToolbarViewElementConfig {
|
|
520
|
+
caption: string;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @internal
|
|
524
|
+
* @hostPublicApi
|
|
525
|
+
*/
|
|
526
|
+
interface DefaultSizeForGrid {
|
|
527
|
+
heightPx?: number;
|
|
528
|
+
colSpanPercentage?: number;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @internal
|
|
532
|
+
* @hostPublicApi
|
|
533
|
+
*/
|
|
534
|
+
interface ToolbarDefaultSize {
|
|
535
|
+
[container: string]: DefaultSizeForGrid;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* @internal
|
|
539
|
+
* @hostPublicApi
|
|
540
|
+
*/
|
|
541
|
+
interface ToolbarExtraProps {
|
|
542
|
+
defaultSize?: {
|
|
543
|
+
[element: string]: ToolbarDefaultSize;
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* @internal
|
|
548
|
+
* @hostPublicApi
|
|
549
|
+
*/
|
|
550
|
+
interface BaseToolbarViewElementConfig {
|
|
551
|
+
icon: string;
|
|
552
|
+
hint?: string;
|
|
553
|
+
defaultPropertyValues?: Record<string, unknown>;
|
|
554
|
+
groupType?: DesignerToolGroupType;
|
|
555
|
+
/**
|
|
556
|
+
* Toolbar's element identifier.
|
|
557
|
+
*/
|
|
558
|
+
id?: string;
|
|
559
|
+
defaultSize?: ToolbarDefaultSize;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* @internal
|
|
563
|
+
*/
|
|
564
|
+
interface ExtraToolbarViewElementConfig {
|
|
565
|
+
defaultLocalizableStrings?: Record<string, unknown>;
|
|
566
|
+
addCommandTypeName?: string;
|
|
567
|
+
position?: number;
|
|
568
|
+
requiredPackages?: string[];
|
|
569
|
+
requiredFeatures?: Record<string, boolean>;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* @internal
|
|
574
|
+
* @hostPublicApi
|
|
575
|
+
*/
|
|
576
|
+
declare class InterfaceDesignerItemRegistrationConfig implements BaseInterfaceDesignerItemRegistrationConfig {
|
|
577
|
+
toolbarConfig: ToolbarViewElementConfig;
|
|
578
|
+
viewElementGroupType: ViewElementGroupType;
|
|
579
|
+
typeCaption?: string;
|
|
580
|
+
typeRef?: _Type;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @public
|
|
585
|
+
* @description Render strategy for view element.
|
|
586
|
+
*/
|
|
587
|
+
declare enum ViewElementRenderStrategy {
|
|
588
|
+
/**
|
|
589
|
+
* @description Default render strategy.
|
|
590
|
+
* The element is rendered immediately.
|
|
591
|
+
*/
|
|
592
|
+
Default = "default",
|
|
593
|
+
/**
|
|
594
|
+
* @description On viewport render strategy.
|
|
595
|
+
* The element is rendered only when it becomes visible in the viewport.
|
|
596
|
+
*/
|
|
597
|
+
OnViewport = "on-viewport"
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @internal
|
|
602
|
+
*/
|
|
603
|
+
declare enum ViewElementReuseStrategy {
|
|
604
|
+
/**
|
|
605
|
+
* Reuse early created view element when it state changed
|
|
606
|
+
*/
|
|
607
|
+
Reuse = 0,
|
|
608
|
+
/**
|
|
609
|
+
* Rerender(recreate) view element when it state changed
|
|
610
|
+
*/
|
|
611
|
+
Rerender = 1
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @public
|
|
616
|
+
* @description Config to specify view element slot.
|
|
617
|
+
*/
|
|
618
|
+
interface ViewElementSlotDefinition {
|
|
619
|
+
/**
|
|
620
|
+
* @description Slot name.
|
|
621
|
+
*/
|
|
622
|
+
name: string;
|
|
623
|
+
/**
|
|
624
|
+
* @internal
|
|
625
|
+
* Indicates that slot elements should be wrapped by ng-template.
|
|
626
|
+
*/
|
|
627
|
+
lazy: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* @internal
|
|
630
|
+
* Indicates that slot items also should be set into input property.
|
|
631
|
+
* It can be useful to access content item property without passing them via DOM attributes.
|
|
632
|
+
*/
|
|
633
|
+
input: boolean;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
*/
|
|
639
|
+
declare class CrtInputRegistrationConfig {
|
|
640
|
+
/**
|
|
641
|
+
* @internal
|
|
642
|
+
*/
|
|
643
|
+
propertyBindable?: boolean;
|
|
644
|
+
/**
|
|
645
|
+
* @internal
|
|
646
|
+
*/
|
|
647
|
+
defaultValue?: unknown;
|
|
648
|
+
/**
|
|
649
|
+
* @internal
|
|
650
|
+
*/
|
|
651
|
+
propertyName?: ViewElementProperty;
|
|
652
|
+
/**
|
|
653
|
+
* @internal
|
|
654
|
+
*/
|
|
655
|
+
reuseStrategy?: {
|
|
656
|
+
resetValue: boolean;
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @public
|
|
662
|
+
* @description Registration config for defining user components in Creatio platform.
|
|
663
|
+
* @property {string} type - type of view element. Used to specify view element in schema.
|
|
664
|
+
* @property {Record<string, CrtInputRegistrationConfig>=} inputs {@link CrtInputRegistrationConfig} - map
|
|
665
|
+
* of component inputs. Communication chanel to send update from Creatio platform to component
|
|
666
|
+
* @property {Record<string, unknown>=} outputs - map of component outputs.
|
|
667
|
+
* Communication chanel to send update from component to Creatio platform.
|
|
668
|
+
* @property {Record<string, unknown>=} validationInputs - map of component validationInputs.
|
|
669
|
+
* Communication chanel to receive updates relates to validation.
|
|
670
|
+
* To properly declare validationInfo field:
|
|
671
|
+
* 1. Declare input field inside inputs section. For example `count`
|
|
672
|
+
* 2. In validationInputs section declare same field which ends with ValidationInfo.
|
|
673
|
+
* For previous example `countValidationInfo`
|
|
674
|
+
*
|
|
675
|
+
* @example
|
|
676
|
+
* const config: BaseViewElementRegistrationConfig = {
|
|
677
|
+
* type: 'usr.Component',
|
|
678
|
+
* inputs: {
|
|
679
|
+
* entitySchemaName: {},
|
|
680
|
+
* user: {},
|
|
681
|
+
* count: {}
|
|
682
|
+
* },
|
|
683
|
+
* outputs: {
|
|
684
|
+
* countChange: {}
|
|
685
|
+
* },
|
|
686
|
+
* validationInputs: {
|
|
687
|
+
* countValidationInfo: {}
|
|
688
|
+
* }
|
|
689
|
+
* }
|
|
690
|
+
*/
|
|
691
|
+
type BaseViewElementRegistrationConfig = {
|
|
692
|
+
/**
|
|
693
|
+
* @description type of view element. Used to specify view element in schema.
|
|
694
|
+
*/
|
|
695
|
+
type: string;
|
|
696
|
+
/**
|
|
697
|
+
* @description Defines the content slots for the view element.
|
|
698
|
+
* The property allows you to project content from a parent component to a child component.
|
|
699
|
+
*/
|
|
700
|
+
contentSlots?: Array<string | ViewElementSlotDefinition>;
|
|
701
|
+
/**
|
|
702
|
+
* @description {@link CrtInputRegistrationConfig} map
|
|
703
|
+
* of component inputs. Communication chanel to send update from Creatio platform to component
|
|
704
|
+
*/
|
|
705
|
+
inputs?: Record<string, CrtInputRegistrationConfig>;
|
|
706
|
+
/**
|
|
707
|
+
* @description map of component outputs.
|
|
708
|
+
* Communication chanel to send update from component to Creatio platform.
|
|
709
|
+
*/
|
|
710
|
+
outputs?: Record<string, unknown>;
|
|
711
|
+
/**
|
|
712
|
+
* @description map of component validationInputs.
|
|
713
|
+
* Communication chanel to receive updates relates to validation.
|
|
714
|
+
* To properly declare validationInfo field:
|
|
715
|
+
* 1. Declare input field inside inputs section. For example `count`
|
|
716
|
+
* 2. In validationInputs section declare same field which ends with ValidationInfo.
|
|
717
|
+
* For previous example `countValidationInfo`
|
|
718
|
+
*/
|
|
719
|
+
validationInputs?: Record<string, unknown>;
|
|
720
|
+
/**
|
|
721
|
+
* @internal
|
|
722
|
+
*/
|
|
723
|
+
reuseStrategy?: ViewElementReuseStrategy;
|
|
724
|
+
/**
|
|
725
|
+
* @internal
|
|
726
|
+
* @description List of compatible platform APIs.
|
|
727
|
+
*/
|
|
728
|
+
compatibleAPIs?: _CompatibleAPIs;
|
|
729
|
+
} & (OnViewportRenderConfig | DefaultRenderConfig);
|
|
730
|
+
/**
|
|
731
|
+
* @public
|
|
732
|
+
* @description Render config for an element with OnViewport render strategy.
|
|
733
|
+
*/
|
|
734
|
+
interface OnViewportRenderConfig {
|
|
735
|
+
/**
|
|
736
|
+
* @description Determines that the element should render on entering the viewport.
|
|
737
|
+
*/
|
|
738
|
+
renderStrategy: ViewElementRenderStrategy.OnViewport;
|
|
739
|
+
/**
|
|
740
|
+
* @description The size of the placeholder displayed while the element is
|
|
741
|
+
* being rendered.
|
|
742
|
+
*/
|
|
743
|
+
placeholderSize: {
|
|
744
|
+
height: string;
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* @public
|
|
749
|
+
* @description Render config for an element with Default render strategy.
|
|
750
|
+
*/
|
|
751
|
+
interface DefaultRenderConfig {
|
|
752
|
+
/**
|
|
753
|
+
* @description Determines that the element should render immediately.
|
|
754
|
+
*/
|
|
755
|
+
renderStrategy?: ViewElementRenderStrategy.Default;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* @public
|
|
760
|
+
* @description Config to specify view element options.
|
|
761
|
+
* @extends {BaseViewElementRegistrationConfig} {@link BaseViewElementRegistrationConfig}
|
|
762
|
+
* @property {string} selector - view element tag selector; View element appears in DOM with this selector.
|
|
763
|
+
*
|
|
764
|
+
* @example
|
|
765
|
+
* ```
|
|
766
|
+
* @CrtViewElement({
|
|
767
|
+
* type: 'usr.Example',
|
|
768
|
+
* selector: 'usr-example',
|
|
769
|
+
* })
|
|
770
|
+
* ```
|
|
771
|
+
*/
|
|
772
|
+
type ViewElementRegistrationConfig = BaseViewElementRegistrationConfig & {
|
|
773
|
+
/**
|
|
774
|
+
* @description view element tag selector; View element appears in DOM with this selector.
|
|
775
|
+
*/
|
|
776
|
+
selector: string;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* @internal
|
|
781
|
+
*/
|
|
782
|
+
type InternalInterfaceDesignerItemRegistrationConfig = BaseInterfaceDesignerItemRegistrationConfig & {
|
|
783
|
+
/**
|
|
784
|
+
* @internal
|
|
785
|
+
*/
|
|
786
|
+
formControlConfig?: any;
|
|
787
|
+
/**
|
|
788
|
+
* @internal
|
|
789
|
+
*/
|
|
790
|
+
toolbarConfig?: ToolbarViewElementConfigType;
|
|
791
|
+
/**
|
|
792
|
+
* @internal
|
|
793
|
+
*/
|
|
794
|
+
designControlConfig?: {
|
|
795
|
+
allowDesignContent?: boolean;
|
|
796
|
+
selfSelect?: boolean;
|
|
797
|
+
defaultValues?: Record<string, unknown>;
|
|
798
|
+
};
|
|
799
|
+
/**
|
|
800
|
+
* @internal
|
|
801
|
+
*/
|
|
802
|
+
dataValueTypes?: _DataValueType[];
|
|
803
|
+
/**
|
|
804
|
+
* @internal
|
|
805
|
+
*/
|
|
806
|
+
designViewItemCommands?: {
|
|
807
|
+
copy?: string;
|
|
808
|
+
update?: string;
|
|
809
|
+
delete?: string;
|
|
810
|
+
create?: string;
|
|
811
|
+
rename?: string;
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* @internal
|
|
815
|
+
*/
|
|
816
|
+
pageDesignerPropertiesPanelSchemaName?: string;
|
|
817
|
+
/**
|
|
818
|
+
* @internal
|
|
819
|
+
*/
|
|
820
|
+
propertiesPanel?: string;
|
|
821
|
+
/**
|
|
822
|
+
* @internal
|
|
823
|
+
*/
|
|
824
|
+
clientSchemaDeps?: string[];
|
|
825
|
+
/**
|
|
826
|
+
* @internal
|
|
827
|
+
* @deprecated Use contentSlots instead.
|
|
828
|
+
*/
|
|
829
|
+
collectionPropertyNames?: string[];
|
|
830
|
+
/**
|
|
831
|
+
* @internal
|
|
832
|
+
*/
|
|
833
|
+
viewElementGroupType?: ViewElementGroupType;
|
|
834
|
+
/**
|
|
835
|
+
* @internal
|
|
836
|
+
*/
|
|
837
|
+
typeCaption?: string;
|
|
838
|
+
/**
|
|
839
|
+
* @internal
|
|
840
|
+
*/
|
|
841
|
+
referenceSchemaNames?: string[];
|
|
842
|
+
/**
|
|
843
|
+
* @internal
|
|
844
|
+
*/
|
|
845
|
+
disableElementRename?: boolean;
|
|
846
|
+
} & (OnViewportRenderConfig | DefaultRenderConfig);
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* @internal
|
|
850
|
+
*/
|
|
851
|
+
type CrtAngularViewElementConfig = BaseViewElementRegistrationConfig & {
|
|
852
|
+
/**
|
|
853
|
+
* @internal
|
|
854
|
+
*/
|
|
855
|
+
formControlConfig?: {
|
|
856
|
+
relatesTo: string;
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* @internal
|
|
860
|
+
*/
|
|
861
|
+
valuePropertyName?: string;
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* @internal
|
|
865
|
+
* @hostPublicApi
|
|
866
|
+
*/
|
|
867
|
+
type AngularViewElementRegistrationConfig = CrtAngularViewElementConfig & {
|
|
868
|
+
/**
|
|
869
|
+
* @internal
|
|
870
|
+
*/
|
|
871
|
+
typeRef?: _Type;
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* @public
|
|
876
|
+
* @description Config used to register converter in Creatio platform.
|
|
877
|
+
* @property {string} type - type of validator
|
|
878
|
+
*/
|
|
879
|
+
interface ConverterConfig {
|
|
880
|
+
/**
|
|
881
|
+
* @description type used to register converter in Creatio platform.
|
|
882
|
+
*/
|
|
883
|
+
type: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* @public
|
|
888
|
+
* @description Config to register request handler.
|
|
889
|
+
* @property {string} type - The type of request handler.
|
|
890
|
+
* @property {string} requestType - The type of request for which the handler will be triggered.
|
|
891
|
+
* @property {string[]} scopes - Scopes of the request for which the handler will be triggered
|
|
892
|
+
*/
|
|
893
|
+
interface RequestHandlerDefinition {
|
|
894
|
+
/**
|
|
895
|
+
* The type of request handler.
|
|
896
|
+
* @example
|
|
897
|
+
* 'crt.EventHandlerType'
|
|
898
|
+
*/
|
|
899
|
+
readonly type: string;
|
|
900
|
+
/**
|
|
901
|
+
* The type of request for which the handler will be triggered.
|
|
902
|
+
* @example
|
|
903
|
+
* 'crt.EventType'
|
|
904
|
+
*/
|
|
905
|
+
readonly requestType: string;
|
|
906
|
+
/**
|
|
907
|
+
* Scopes of the request for which the handler will be triggered
|
|
908
|
+
*/
|
|
909
|
+
readonly scopes?: string[];
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* @public
|
|
914
|
+
* @description Validation error with message
|
|
915
|
+
* @property {string} message - error message.
|
|
916
|
+
*/
|
|
917
|
+
interface CrtValidationError {
|
|
918
|
+
/**
|
|
919
|
+
* @description error message.
|
|
920
|
+
*/
|
|
921
|
+
message: string;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* @public
|
|
925
|
+
* @description Generic shape of validation errors
|
|
926
|
+
*/
|
|
927
|
+
interface CrtValidationErrors {
|
|
928
|
+
[key: string]: CrtValidationError;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @public
|
|
933
|
+
* @description Information relates validation.
|
|
934
|
+
* Includes fields to customize behavior depends on validation
|
|
935
|
+
* @property {boolean} valid - indicates whether input is valid.
|
|
936
|
+
* @property {CrtValidationErrors | null} errors - validation errors shape. {@link CrtValidationErrors}
|
|
937
|
+
* @property {boolean} dirty - indicates whether input was changed.
|
|
938
|
+
* @property {boolean} touched - indicates whether input was touched.
|
|
939
|
+
*/
|
|
940
|
+
interface CrtValidationInfo {
|
|
941
|
+
/**
|
|
942
|
+
* @description indicates whether input is valid.
|
|
943
|
+
*/
|
|
944
|
+
readonly valid: boolean;
|
|
945
|
+
/**
|
|
946
|
+
* @description - validation errors shape. {@link CrtValidationErrors}
|
|
947
|
+
*/
|
|
948
|
+
readonly errors: CrtValidationErrors | null;
|
|
949
|
+
/**
|
|
950
|
+
* @description indicates whether input was changed.
|
|
951
|
+
*/
|
|
952
|
+
readonly dirty: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* @description indicates whether input was touched.
|
|
955
|
+
*/
|
|
956
|
+
readonly touched: boolean;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* @public
|
|
961
|
+
* @description Shape for specifying parameters passed to validator
|
|
962
|
+
* @property {string} message - message should be displayed for error;
|
|
963
|
+
*/
|
|
964
|
+
interface ValidatorParametersValues {
|
|
965
|
+
[name: string]: unknown;
|
|
966
|
+
message?: string;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* @public
|
|
971
|
+
* @description Control state passed for validators
|
|
972
|
+
* @property {unknown} value - control value
|
|
973
|
+
*/
|
|
974
|
+
interface CrtControlState {
|
|
975
|
+
/**
|
|
976
|
+
* @description control value
|
|
977
|
+
*/
|
|
978
|
+
value: unknown;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* @public
|
|
983
|
+
* @description Function used for validation
|
|
984
|
+
* @param controlState - {@link CrtControlState}
|
|
985
|
+
* @param params - incoming parameters for validation {@link ValidatorParametersValues}
|
|
986
|
+
*/
|
|
987
|
+
type CrtValidatorFn = (controlState: CrtControlState, params?: ValidatorParametersValues) => CrtValidationErrors | null | Promise<CrtValidationErrors | null>;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* @public
|
|
991
|
+
* @description Abstract Base Validator class for designing custom validators.
|
|
992
|
+
* @example
|
|
993
|
+
* @CrtValidator({
|
|
994
|
+
* type: 'crt.Required',
|
|
995
|
+
* })
|
|
996
|
+
* export class RequiredValidator extends BaseValidator {
|
|
997
|
+
* protected override async = false;
|
|
998
|
+
* public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {
|
|
999
|
+
* Implementation here...
|
|
1000
|
+
* }
|
|
1001
|
+
* }
|
|
1002
|
+
*/
|
|
1003
|
+
declare abstract class BaseValidator {
|
|
1004
|
+
/**
|
|
1005
|
+
* @internal
|
|
1006
|
+
* @dontChange
|
|
1007
|
+
*/
|
|
1008
|
+
private static readonly _instanceOfKey;
|
|
1009
|
+
/**
|
|
1010
|
+
* @abstract
|
|
1011
|
+
* @description indicator to recognize whether validator asynchronous or synchronous
|
|
1012
|
+
*/
|
|
1013
|
+
protected abstract async: boolean;
|
|
1014
|
+
/**
|
|
1015
|
+
* @description getter for async/sync indicator
|
|
1016
|
+
*/
|
|
1017
|
+
get isAsync(): boolean;
|
|
1018
|
+
/**
|
|
1019
|
+
* @description Function used for validation
|
|
1020
|
+
*/
|
|
1021
|
+
get validateFn(): CrtValidatorFn;
|
|
1022
|
+
/**
|
|
1023
|
+
* @internal
|
|
1024
|
+
*/
|
|
1025
|
+
static [Symbol.hasInstance](instance: BaseValidator): boolean;
|
|
1026
|
+
/**
|
|
1027
|
+
* @description Method which contains main logic relates validation.
|
|
1028
|
+
* @param controlState - {@link CrtControlState}
|
|
1029
|
+
* @param params - incoming parameters for validation {@link ValidatorParametersValues}
|
|
1030
|
+
*/
|
|
1031
|
+
abstract validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null | Promise<CrtValidationErrors | null>;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* @internal
|
|
1036
|
+
*/
|
|
1037
|
+
interface ValidatorParameters {
|
|
1038
|
+
name: string;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* @public
|
|
1043
|
+
* @description Config used to register validator in Creatio platform.
|
|
1044
|
+
* @property {string} type - type of validator
|
|
1045
|
+
*/
|
|
1046
|
+
interface ValidatorConfig {
|
|
1047
|
+
/**
|
|
1048
|
+
* @description Config used to register validator in Creatio platform.
|
|
1049
|
+
*/
|
|
1050
|
+
type: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* @internal
|
|
1053
|
+
*/
|
|
1054
|
+
params?: ValidatorParameters[];
|
|
1055
|
+
/**
|
|
1056
|
+
* @internal
|
|
1057
|
+
*/
|
|
1058
|
+
scope?: string;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* @internal
|
|
1063
|
+
*/
|
|
1064
|
+
interface LazyModuleDefinition {
|
|
1065
|
+
load: () => Promise<_Type>;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* @internal
|
|
1069
|
+
*/
|
|
1070
|
+
interface LazyModuleMetadata {
|
|
1071
|
+
includes?: LazyModuleMetadata[];
|
|
1072
|
+
viewElements?: CrtAngularViewElementConfig[];
|
|
1073
|
+
validators?: ValidatorConfig[];
|
|
1074
|
+
requestHandlers?: RequestHandlerDefinition[];
|
|
1075
|
+
converters?: ConverterConfig[];
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* @internal
|
|
1079
|
+
*/
|
|
1080
|
+
interface LazyModuleDefinitionWithMetadata extends LazyModuleDefinition, LazyModuleMetadata {
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* @public
|
|
1085
|
+
* @description Shape to implementing Converter.
|
|
1086
|
+
* @template V
|
|
1087
|
+
* @template R
|
|
1088
|
+
*/
|
|
1089
|
+
interface Converter<V = unknown, R = unknown> {
|
|
1090
|
+
/**
|
|
1091
|
+
* @description Function which convert incoming value.
|
|
1092
|
+
* @param {V} value - input value.
|
|
1093
|
+
* @param {ViewModelContext} context - view model context.
|
|
1094
|
+
* @param {...unknown[]} arg - arguments rest.
|
|
1095
|
+
* @return {*} {R}
|
|
1096
|
+
*/
|
|
1097
|
+
convert(value: V, context: _ViewModelContext, ...args: unknown[]): R;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* @internal
|
|
1102
|
+
* @hostPublicApi
|
|
1103
|
+
*/
|
|
1104
|
+
interface SchemaHandlerSource {
|
|
1105
|
+
type: HandlerSourceType.Schema;
|
|
1106
|
+
schemaName: string;
|
|
1107
|
+
packageName: string;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
* @hostPublicApi
|
|
1112
|
+
*/
|
|
1113
|
+
interface RemoteHandlerSource {
|
|
1114
|
+
type: HandlerSourceType.Remote;
|
|
1115
|
+
packageName: string;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* @internal
|
|
1119
|
+
* @hostPublicApi
|
|
1120
|
+
*/
|
|
1121
|
+
interface HostHandlerSource {
|
|
1122
|
+
type: HandlerSourceType.Host;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* @internal
|
|
1126
|
+
* @hostPublicApi
|
|
1127
|
+
*/
|
|
1128
|
+
type HandlerSource = SchemaHandlerSource | RemoteHandlerSource | HostHandlerSource;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @internal
|
|
1132
|
+
* @hostPublicApi
|
|
1133
|
+
*/
|
|
1134
|
+
interface InjectionContext {
|
|
1135
|
+
id: string;
|
|
1136
|
+
inject(token: unknown): unknown;
|
|
1137
|
+
addLazyModule(type: _Type): void;
|
|
1138
|
+
getLazyModules(source: string): _Type[];
|
|
1139
|
+
connectHostLazyModules(): void;
|
|
1140
|
+
destroy(): void;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* @internal
|
|
1145
|
+
* @hostPublicApi
|
|
1146
|
+
* @description Factory that produces RequestHandler
|
|
1147
|
+
*/
|
|
1148
|
+
type RequestHandlerFactory = (injectionContext?: InjectionContext) => _RequestHandler;
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Represents a deferred feature activation boundary.
|
|
1152
|
+
*
|
|
1153
|
+
* The instance guarantees at-most-once activation per feature while keeping remote-level
|
|
1154
|
+
* activation tracking balanced for the entire activation lifetime.
|
|
1155
|
+
*
|
|
1156
|
+
* @internal
|
|
1157
|
+
*/
|
|
1158
|
+
declare class ɵFeatureActivationRef {
|
|
1159
|
+
#private;
|
|
1160
|
+
readonly id: string;
|
|
1161
|
+
readonly sourceName: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* @internal
|
|
1164
|
+
* @dontChange
|
|
1165
|
+
*/
|
|
1166
|
+
private static readonly _instanceOfKey;
|
|
1167
|
+
/**
|
|
1168
|
+
* Initializes a feature activation reference.
|
|
1169
|
+
*
|
|
1170
|
+
* @param id - Stable feature identifier.
|
|
1171
|
+
* @param sourceName - Name of the source build that owns the feature.
|
|
1172
|
+
* @param activate - Callback that performs feature activation.
|
|
1173
|
+
*/
|
|
1174
|
+
constructor(id: string, sourceName: string, activate: () => Promise<void>);
|
|
1175
|
+
/**
|
|
1176
|
+
* @internal
|
|
1177
|
+
*/
|
|
1178
|
+
static [Symbol.hasInstance](instance: unknown): instance is ɵFeatureActivationRef;
|
|
1179
|
+
/**
|
|
1180
|
+
* Indicates whether the activation callback has completed successfully.
|
|
1181
|
+
*/
|
|
1182
|
+
get activated(): boolean;
|
|
1183
|
+
/**
|
|
1184
|
+
* Activates the feature if it hasn't been activated yet.
|
|
1185
|
+
*/
|
|
1186
|
+
ensureActivated(): Promise<void>;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* @internal
|
|
1191
|
+
*/
|
|
1192
|
+
declare class ɵLazyModuleRef {
|
|
1193
|
+
#private;
|
|
1194
|
+
readonly sourceName: string;
|
|
1195
|
+
get typeRef(): _Type | undefined;
|
|
1196
|
+
/**
|
|
1197
|
+
* Initializes the lazy module reference.
|
|
1198
|
+
*
|
|
1199
|
+
* @param moduleDefinition - Lazy module definition with the loader function.
|
|
1200
|
+
* @param bootstrapFn - Function to call after module is loaded.
|
|
1201
|
+
* @param sourceName - Name of source build ('host' or remote name).
|
|
1202
|
+
*/
|
|
1203
|
+
constructor(moduleDefinition: LazyModuleDefinition, bootstrapFn: (type: _Type) => void, sourceName: string);
|
|
1204
|
+
loadAndBootstrap(): Promise<_Type>;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Describes a deferred runtime dependency that can be resolved on demand.
|
|
1209
|
+
*
|
|
1210
|
+
* @internal
|
|
1211
|
+
*/
|
|
1212
|
+
type ɵLazyLoadRef = ɵLazyModuleRef | ɵFeatureActivationRef;
|
|
1213
|
+
/**
|
|
1214
|
+
* Loads a lazy ref for its side effects.
|
|
1215
|
+
*
|
|
1216
|
+
* @param ref - Lazy reference to resolve.
|
|
1217
|
+
*
|
|
1218
|
+
* @internal
|
|
1219
|
+
*/
|
|
1220
|
+
declare function ɵloadLazyRef(ref: ɵLazyLoadRef): Promise<void>;
|
|
1221
|
+
/**
|
|
1222
|
+
* Loads multiple lazy references and collects their resolved module types.
|
|
1223
|
+
*
|
|
1224
|
+
* @param refs - Lazy references to resolve.
|
|
1225
|
+
* @returns List of resolved module types.
|
|
1226
|
+
*
|
|
1227
|
+
* @internal
|
|
1228
|
+
*/
|
|
1229
|
+
declare function ɵloadLazyRefs(refs: Iterable<ɵLazyLoadRef>): Promise<_Type[]>;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @internal
|
|
1233
|
+
*/
|
|
1234
|
+
interface LazyRegistryItem {
|
|
1235
|
+
lazy?: boolean;
|
|
1236
|
+
lazyLoadRef?: ɵLazyLoadRef | null;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* @internal
|
|
1241
|
+
* @hostPublicApi
|
|
1242
|
+
*/
|
|
1243
|
+
interface HandlerConfig extends LazyRegistryItem {
|
|
1244
|
+
type?: string;
|
|
1245
|
+
createHandler?: RequestHandlerFactory;
|
|
1246
|
+
requestType: string;
|
|
1247
|
+
scopes?: string[];
|
|
1248
|
+
source: HandlerSource;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* @public
|
|
1253
|
+
* @class HandlerChainService
|
|
1254
|
+
* @classdesc Service to design handlers in chain.
|
|
1255
|
+
*/
|
|
1256
|
+
declare class HandlerChainService {
|
|
1257
|
+
private get _chain();
|
|
1258
|
+
private set _chain(value);
|
|
1259
|
+
private static _instance;
|
|
1260
|
+
static get instance(): HandlerChainService;
|
|
1261
|
+
private constructor();
|
|
1262
|
+
private _createGlobalHandlerChain;
|
|
1263
|
+
/**
|
|
1264
|
+
* @internal
|
|
1265
|
+
*/
|
|
1266
|
+
clearContextedHandlersCache(contextId: string): boolean;
|
|
1267
|
+
/**
|
|
1268
|
+
* @internal
|
|
1269
|
+
*/
|
|
1270
|
+
register(handlerConfig: HandlerConfig): () => void;
|
|
1271
|
+
/**
|
|
1272
|
+
* @internal
|
|
1273
|
+
*/
|
|
1274
|
+
update(handlerConfig: Partial<HandlerConfig>): void;
|
|
1275
|
+
/**
|
|
1276
|
+
* @description Method to process passed request
|
|
1277
|
+
* @param request - {@link ɵBaseRequest}
|
|
1278
|
+
* @return `Promise<unknown>`
|
|
1279
|
+
*/
|
|
1280
|
+
process(request: _BaseRequest): Promise<unknown>;
|
|
1281
|
+
/**
|
|
1282
|
+
* @internal
|
|
1283
|
+
* Subscribes to requests.
|
|
1284
|
+
* @param callback A handler function for each request triggered.
|
|
1285
|
+
* @param context (optional) A context in which the requests were triggered.
|
|
1286
|
+
* The `callback` will be called only for requests with specified context.
|
|
1287
|
+
* If not specified, will be called for all requests.
|
|
1288
|
+
* @returns A function to cancel the subscription.
|
|
1289
|
+
*/
|
|
1290
|
+
subscribe(callback: (request: _BaseRequest) => void, context?: _ViewModelContext): _TeardownLogic;
|
|
1291
|
+
/**
|
|
1292
|
+
* @internal
|
|
1293
|
+
*/
|
|
1294
|
+
clear(): void;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* @public
|
|
1299
|
+
* @abstract
|
|
1300
|
+
* @classdesc Class for designing request handlers.
|
|
1301
|
+
*/
|
|
1302
|
+
declare abstract class BaseRequestHandler<TRequest = _BaseRequest, TResult = unknown> implements _RequestHandler<TRequest, TResult> {
|
|
1303
|
+
/**
|
|
1304
|
+
* @internal
|
|
1305
|
+
* @dontChange
|
|
1306
|
+
*/
|
|
1307
|
+
private static readonly _instanceOfKey;
|
|
1308
|
+
private _next?;
|
|
1309
|
+
protected handlerChain: HandlerChainService;
|
|
1310
|
+
protected get next(): _RequestHandler | undefined;
|
|
1311
|
+
/**
|
|
1312
|
+
* @internal
|
|
1313
|
+
*/
|
|
1314
|
+
static [Symbol.hasInstance](instance: BaseRequestHandler): boolean;
|
|
1315
|
+
/**
|
|
1316
|
+
* @abstract
|
|
1317
|
+
* @description Abstract async method which contains logic to handle request properly.
|
|
1318
|
+
* @param {TRequest} request - {@link ɵBaseRequest}
|
|
1319
|
+
*/
|
|
1320
|
+
abstract handle(request: TRequest): Promise<TResult>;
|
|
1321
|
+
/**
|
|
1322
|
+
* @description Method to set request handler to handler chain.
|
|
1323
|
+
* @param next - link for next request handler - {@link ɵRequestHandler}
|
|
1324
|
+
*/
|
|
1325
|
+
setNext(next: _RequestHandler): void;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* @public
|
|
1330
|
+
* @description Definition of CrtModule. Use this to register elements in Creatio platform.
|
|
1331
|
+
* @property {Type[]} includes - Array of other CrnModules which are included in current.
|
|
1332
|
+
* This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
|
|
1333
|
+
* @property {Type[]} viewElements - Array of user-defined view elements which will be registered in Creatio platform.
|
|
1334
|
+
* @property {Type[]} validators - Array of user-defined validators which will be registered in Creatio platform.
|
|
1335
|
+
* @property {Type<BaseRequestHandler>[]} requestHandlers - Array of user-defined request handlers
|
|
1336
|
+
|
|
1337
|
+
* which will be registered in Creatio platform.
|
|
1338
|
+
* @example
|
|
1339
|
+
* @CrtModule({
|
|
1340
|
+
* viewElements: [AppComponent, UserComponent],
|
|
1341
|
+
* includes: [NotifyModule],
|
|
1342
|
+
* requestHandlers: [SomeRequestHandler],
|
|
1343
|
+
* })
|
|
1344
|
+
* @NgModule({
|
|
1345
|
+
* declarations: [AppComponent, UserComponent],
|
|
1346
|
+
* imports: [BrowserModule],
|
|
1347
|
+
* providers: [],
|
|
1348
|
+
* })
|
|
1349
|
+
* export class AppModule {}
|
|
1350
|
+
*/
|
|
1351
|
+
interface ModuleDefinition {
|
|
1352
|
+
/**
|
|
1353
|
+
* @description Array of other CrtModules which are included in current.
|
|
1354
|
+
* This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
|
|
1355
|
+
*/
|
|
1356
|
+
includes?: _Type[];
|
|
1357
|
+
/**
|
|
1358
|
+
* @description Array of user-defined view elements which will be registered
|
|
1359
|
+
* in Creatio platform.
|
|
1360
|
+
*/
|
|
1361
|
+
viewElements?: _Type[];
|
|
1362
|
+
/**
|
|
1363
|
+
* @description Array of user-defined validators which will be registered in Creatio platform
|
|
1364
|
+
*/
|
|
1365
|
+
validators?: _Type<BaseValidator>[];
|
|
1366
|
+
/**
|
|
1367
|
+
* @internal
|
|
1368
|
+
*/
|
|
1369
|
+
designTimeViewElements?: _Type[];
|
|
1370
|
+
/**
|
|
1371
|
+
* @description Array of user-defined request handlers which will be registered in Creatio platform
|
|
1372
|
+
*/
|
|
1373
|
+
requestHandlers?: _Type<BaseRequestHandler>[];
|
|
1374
|
+
/**
|
|
1375
|
+
* @description Array of user-defined converters which will be registered in Creatio platform
|
|
1376
|
+
*/
|
|
1377
|
+
converters?: _Type<Converter>[];
|
|
1378
|
+
/**
|
|
1379
|
+
* @internal
|
|
1380
|
+
*/
|
|
1381
|
+
handlerChainServices?: _Type<unknown>[];
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* @internal
|
|
1386
|
+
*/
|
|
1387
|
+
type InternalModuleDefinition = Omit<ModuleDefinition, 'includes'> & {
|
|
1388
|
+
includes: (_Type | LazyModuleDefinitionWithMetadata)[];
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* @internal
|
|
1393
|
+
* @hostPublicApi
|
|
1394
|
+
*/
|
|
1395
|
+
type InterfaceDesignerRegistryItem = (InternalInterfaceDesignerItemRegistrationConfig | InterfaceDesignerItemRegistrationConfig) & {
|
|
1396
|
+
type: string;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* @internal
|
|
1401
|
+
* @hostPublicApi
|
|
1402
|
+
*/
|
|
1403
|
+
type ViewElementRegistryItem = (ViewElementRegistrationConfig | AngularViewElementRegistrationConfig) & LazyRegistryItem;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* @public
|
|
1407
|
+
* A data source exposed by a page context part, grouping records of a single entity schema.
|
|
1408
|
+
*/
|
|
1409
|
+
interface ContextDataSourcePart {
|
|
1410
|
+
/** The name of the entity schema the records belong to. */
|
|
1411
|
+
entitySchemaName: string;
|
|
1412
|
+
/** The name of the column used as the display value for each record. */
|
|
1413
|
+
displayColumnName: string;
|
|
1414
|
+
/** Whether the data source represents a collection of records rather than a single record. */
|
|
1415
|
+
isCollection: boolean;
|
|
1416
|
+
/** Whether this is the primary data source of the page. */
|
|
1417
|
+
isPrimary: boolean;
|
|
1418
|
+
/** The records exposed by this data source. */
|
|
1419
|
+
records: Array<ContextDataRecord>;
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* @public
|
|
1423
|
+
* A single record exposed by a {@link ContextDataSourcePart}.
|
|
1424
|
+
*/
|
|
1425
|
+
interface ContextDataRecord {
|
|
1426
|
+
/** The unique identifier of the record. */
|
|
1427
|
+
id: string;
|
|
1428
|
+
/** The display value of the record. */
|
|
1429
|
+
displayColumnValue: string;
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* @public
|
|
1433
|
+
* Context part describing a Creatio page together with the data sources available on it.
|
|
1434
|
+
*/
|
|
1435
|
+
interface CreatioPageContextPart extends BaseContextPart {
|
|
1436
|
+
/** Discriminator identifying the context part as a `CreatioPageContextPart`. */
|
|
1437
|
+
type?: 'CreatioPageContextPart';
|
|
1438
|
+
/** The human-readable title of the page. */
|
|
1439
|
+
title: string;
|
|
1440
|
+
/** The schema name of the page. */
|
|
1441
|
+
pageSchemaName: string;
|
|
1442
|
+
/** The data sources available on the page. */
|
|
1443
|
+
dataSources: Array<ContextDataSourcePart>;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* @public
|
|
1447
|
+
* Context part holding a set of constant key/value pairs.
|
|
1448
|
+
*/
|
|
1449
|
+
interface ConstantValuesContextPart extends BaseContextPart {
|
|
1450
|
+
/** Discriminator identifying the context part as a `ConstantValuesContextPart`. */
|
|
1451
|
+
type: 'ConstantValuesContextPart';
|
|
1452
|
+
/** Optional human-readable title of the context part. */
|
|
1453
|
+
title?: string;
|
|
1454
|
+
/** The constant values exposed by this context part. */
|
|
1455
|
+
values: Record<string, unknown>;
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* @public
|
|
1459
|
+
* Base shape shared by all AI context parts.
|
|
1460
|
+
*/
|
|
1461
|
+
interface BaseContextPart {
|
|
1462
|
+
/** Discriminator identifying the concrete context part type. */
|
|
1463
|
+
type?: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* The unique identifier of the context part as registered in `AiContextService`.
|
|
1466
|
+
* Populated by `AiContextService.getContext()` for each resolved part.
|
|
1467
|
+
*/
|
|
1468
|
+
contextId: string;
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* @public
|
|
1472
|
+
* A `CreatioPageContextPart` returned from a `ContextProvider`, before the AI context service
|
|
1473
|
+
* attaches the registered `contextId`.
|
|
1474
|
+
*/
|
|
1475
|
+
type CreatioPageContextPartInput = Omit<CreatioPageContextPart, 'contextId'>;
|
|
1476
|
+
/**
|
|
1477
|
+
* @public
|
|
1478
|
+
* A `ConstantValuesContextPart` returned from a `ContextProvider`, before the AI context service
|
|
1479
|
+
* attaches the registered `contextId`.
|
|
1480
|
+
*/
|
|
1481
|
+
type ConstantValuesContextPartInput = Omit<ConstantValuesContextPart, 'contextId'>;
|
|
1482
|
+
/**
|
|
1483
|
+
* @public
|
|
1484
|
+
* A factory that produces a context part to register in `AiContextService`, synchronously or asynchronously.
|
|
1485
|
+
*/
|
|
1486
|
+
type ContextProvider = () => CreatioPageContextPartInput | Promise<CreatioPageContextPartInput> | ConstantValuesContextPartInput | Promise<ConstantValuesContextPartInput>;
|
|
1487
|
+
/**
|
|
1488
|
+
* @public
|
|
1489
|
+
* The action to perform on a context part.
|
|
1490
|
+
*/
|
|
1491
|
+
type ContextPartAction = 'set' | 'update' | 'remove';
|
|
1492
|
+
/**
|
|
1493
|
+
* @public
|
|
1494
|
+
* @classdesc Request handler for managing context parts in the AI context service.
|
|
1495
|
+
* This handler processes requests to add, remove, or retrieve context parts.
|
|
1496
|
+
*/
|
|
1497
|
+
declare class ContextPartRequest extends _BaseRequest {
|
|
1498
|
+
/** The unique identifier of the context part. */
|
|
1499
|
+
id: string;
|
|
1500
|
+
/** The provider that resolves the context part. */
|
|
1501
|
+
contextPartProvider: ContextProvider;
|
|
1502
|
+
/** The action to perform on the context part. */
|
|
1503
|
+
action: ContextPartAction;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* @public
|
|
1508
|
+
* @description Shape for detailed error explanation.
|
|
1509
|
+
* @property {string} errorCode - Error code.
|
|
1510
|
+
* @property {string} message - Error message.
|
|
1511
|
+
* @property {string} stackTrace - Stack at the moment of causing an error.
|
|
1512
|
+
*/
|
|
1513
|
+
interface ErrorInfo {
|
|
1514
|
+
/**
|
|
1515
|
+
* @description Error code.
|
|
1516
|
+
*/
|
|
1517
|
+
errorCode: string;
|
|
1518
|
+
/**
|
|
1519
|
+
* @description Error message.
|
|
1520
|
+
*/
|
|
1521
|
+
message: string;
|
|
1522
|
+
/**
|
|
1523
|
+
* @description Stack at the moment of causing an error
|
|
1524
|
+
*/
|
|
1525
|
+
stackTrace: string;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* @public
|
|
1530
|
+
* @description Shape of response
|
|
1531
|
+
* @property {boolean} success - Indicates whether operation was success.
|
|
1532
|
+
* @property {ErrorInfo} errorInfo - detailed error description. {@link ErrorInfo}
|
|
1533
|
+
*/
|
|
1534
|
+
interface BaseResponse {
|
|
1535
|
+
/**
|
|
1536
|
+
* @description Indicates whether operation was success.
|
|
1537
|
+
*/
|
|
1538
|
+
success: boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
* @description detailed error description. {@link ErrorInfo}
|
|
1541
|
+
*/
|
|
1542
|
+
errorInfo?: ErrorInfo;
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* @public
|
|
1546
|
+
* @description - base response with returned value
|
|
1547
|
+
* @extends {BaseResponse} {@link BaseResponse}
|
|
1548
|
+
* @property {T} value - returned value
|
|
1549
|
+
* @template T
|
|
1550
|
+
*/
|
|
1551
|
+
interface ValueResponse<T> extends BaseResponse {
|
|
1552
|
+
value: T;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
interface Entity {
|
|
1556
|
+
[key: string]: _EntityColumnValue;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
interface SysImageValue extends _LookupValue {
|
|
1560
|
+
url?: string;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* @public
|
|
1565
|
+
*/
|
|
1566
|
+
declare class LocalizableValue {
|
|
1567
|
+
readonly key: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* @internal
|
|
1570
|
+
* @dontChange
|
|
1571
|
+
*/
|
|
1572
|
+
private static readonly _instanceOfKey;
|
|
1573
|
+
constructor(key: string);
|
|
1574
|
+
/**
|
|
1575
|
+
* @internal
|
|
1576
|
+
*/
|
|
1577
|
+
static [Symbol.hasInstance](instance: LocalizableValue): boolean;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* @public
|
|
1582
|
+
* @description Config used to register view element options in interface designer.
|
|
1583
|
+
* User-defined view elements will be displayed in Custom Elements group of interface designer.
|
|
1584
|
+
*/
|
|
1585
|
+
interface InterfaceDesignerItemDefinition {
|
|
1586
|
+
/**
|
|
1587
|
+
* Config for defining view element options in left panel of Interface designer.
|
|
1588
|
+
*/
|
|
1589
|
+
toolbarConfig: {
|
|
1590
|
+
/**
|
|
1591
|
+
* Caption of view element in toolbar.
|
|
1592
|
+
*/
|
|
1593
|
+
caption: string | LocalizableValue;
|
|
1594
|
+
/**
|
|
1595
|
+
* @deprecated
|
|
1596
|
+
* Name of view element icon in toolbar.
|
|
1597
|
+
*/
|
|
1598
|
+
name?: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* Require path to load icon that will be displayed for view element
|
|
1601
|
+
* in left panel of Interface designer.
|
|
1602
|
+
* @example icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`),
|
|
1603
|
+
*/
|
|
1604
|
+
icon: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Hint which will be displayed on hover.
|
|
1607
|
+
*/
|
|
1608
|
+
hint?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* Map of default values which will be set after drag&drop.
|
|
1611
|
+
*/
|
|
1612
|
+
defaultPropertyValues?: Record<string, unknown | LocalizableValue>;
|
|
1613
|
+
/**
|
|
1614
|
+
* @internal
|
|
1615
|
+
*/
|
|
1616
|
+
groupType?: DesignerToolGroupType;
|
|
1617
|
+
};
|
|
1618
|
+
/**
|
|
1619
|
+
* @internal
|
|
1620
|
+
*/
|
|
1621
|
+
viewElementGroupType?: ViewElementGroupType;
|
|
1622
|
+
/**
|
|
1623
|
+
* @internal
|
|
1624
|
+
*/
|
|
1625
|
+
typeCaption?: string | LocalizableValue;
|
|
1626
|
+
/**
|
|
1627
|
+
* @internal
|
|
1628
|
+
*/
|
|
1629
|
+
typeRef?: _Type;
|
|
1630
|
+
/**
|
|
1631
|
+
* @public
|
|
1632
|
+
* @description Allows to use a custom component for properties panel.
|
|
1633
|
+
* @example propertiesPanel: 'usr.CustomPanelComponent'
|
|
1634
|
+
*/
|
|
1635
|
+
propertiesPanel?: string;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* @public
|
|
1640
|
+
* @description Config to create item in collection.
|
|
1641
|
+
*/
|
|
1642
|
+
interface ItemCreationConfig extends _ItemCreationConfig {
|
|
1643
|
+
/**
|
|
1644
|
+
* @description Indicates should business rules execute for created item immediately, default false.
|
|
1645
|
+
*/
|
|
1646
|
+
businessRulesActive?: boolean;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* @public
|
|
1651
|
+
* @description Represents a object describes status of license operations
|
|
1652
|
+
* with keys as operations codes and values as operation statuses.
|
|
1653
|
+
*/
|
|
1654
|
+
interface LicenseRestrictionOperationValues {
|
|
1655
|
+
[operation: string]: boolean;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* @public
|
|
1660
|
+
* @description Settings for displaying mask.
|
|
1661
|
+
* @property {number} delay - The duration in milliseconds until which the mask delaying.
|
|
1662
|
+
*/
|
|
1663
|
+
interface MaskSettings {
|
|
1664
|
+
/**
|
|
1665
|
+
* @description The duration in milliseconds until which the mask delaying.
|
|
1666
|
+
*/
|
|
1667
|
+
delay: number;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* @public
|
|
1672
|
+
* @interface
|
|
1673
|
+
* @description Interface representing a process parameter value.
|
|
1674
|
+
* @property {string} name - The name of the process parameter.
|
|
1675
|
+
* @property {string} value - The value of the process parameter.
|
|
1676
|
+
*/
|
|
1677
|
+
interface ProcessParameterValue {
|
|
1678
|
+
/**
|
|
1679
|
+
* @description The name of the process parameter.
|
|
1680
|
+
*/
|
|
1681
|
+
name: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* @description The value of the process parameter.
|
|
1684
|
+
*/
|
|
1685
|
+
value: string;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* @public
|
|
1690
|
+
* @class
|
|
1691
|
+
* @classdesc Class representing a request to run a process.
|
|
1692
|
+
* @property {Guid} schemaUId - The unique identifier of the process schema.
|
|
1693
|
+
* @property {string} schemaName - The name of the process schema.
|
|
1694
|
+
* @property {ProcessParameterValue[]} parameterValues - The values of the process parameters.
|
|
1695
|
+
* @property {string[]} resultParameterNames - The names of the resulting process parameters.
|
|
1696
|
+
*/
|
|
1697
|
+
declare class RunProcessRequest {
|
|
1698
|
+
/**
|
|
1699
|
+
* @description Represents process schema unique identifier to run.
|
|
1700
|
+
*/
|
|
1701
|
+
schemaUId?: _Guid;
|
|
1702
|
+
/**
|
|
1703
|
+
* @description Represents process schema name to run.
|
|
1704
|
+
*/
|
|
1705
|
+
schemaName?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* @description Used to pass the parameters to a starting process.
|
|
1708
|
+
*/
|
|
1709
|
+
parameterValues?: ProcessParameterValue[];
|
|
1710
|
+
/**
|
|
1711
|
+
* @description Used to specify the names of the result parameters to retrieve on process completion.
|
|
1712
|
+
*/
|
|
1713
|
+
resultParameterNames?: string[];
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* @public
|
|
1718
|
+
* @interface
|
|
1719
|
+
* @extends {BaseResponse}
|
|
1720
|
+
* @description Interface representing the response from running a process.
|
|
1721
|
+
* @property {string} message - The message returned from the process execution.
|
|
1722
|
+
* @property {Guid} processId - The unique identifier of the executed process.
|
|
1723
|
+
* @property {Record<string, unknown>} resultParameterValues - The resulting parameter values from the process.
|
|
1724
|
+
*/
|
|
1725
|
+
interface RunProcessResponse extends BaseResponse {
|
|
1726
|
+
/**
|
|
1727
|
+
* @description The message returned from the process execution.
|
|
1728
|
+
*/
|
|
1729
|
+
message: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* @description The unique identifier of the executed process.
|
|
1732
|
+
*/
|
|
1733
|
+
processId: _Guid;
|
|
1734
|
+
/**
|
|
1735
|
+
* @description The status of the executed process.
|
|
1736
|
+
*/
|
|
1737
|
+
processStatus: ProcessStatus;
|
|
1738
|
+
/**
|
|
1739
|
+
* @description The resulting parameter values from the process execution.
|
|
1740
|
+
*/
|
|
1741
|
+
resultParameterValues?: Record<string, unknown>;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Discovery metadata for a remote view element.
|
|
1746
|
+
*
|
|
1747
|
+
* @public
|
|
1748
|
+
*/
|
|
1749
|
+
interface RemoteViewElementDiscoveryMetadata {
|
|
1750
|
+
/**
|
|
1751
|
+
* Stable view element type published during discovery.
|
|
1752
|
+
*/
|
|
1753
|
+
readonly type: string;
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Context passed to remote designer-definition loaders.
|
|
1757
|
+
*
|
|
1758
|
+
* @public
|
|
1759
|
+
*/
|
|
1760
|
+
interface RemoteDesignerDefinitionsLoadContext {
|
|
1761
|
+
/**
|
|
1762
|
+
* Current user culture used to localize returned definitions.
|
|
1763
|
+
*
|
|
1764
|
+
* For example, a remote can use this culture name to load the corresponding translation bundle before
|
|
1765
|
+
* returning toolbox captions.
|
|
1766
|
+
*/
|
|
1767
|
+
readonly cultureName: string;
|
|
1768
|
+
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Interface-designer metadata exposed by a remote view element.
|
|
1771
|
+
*
|
|
1772
|
+
* Use this payload to register toolbox entries in the interface designer without activating the
|
|
1773
|
+
* remote runtime implementation.
|
|
1774
|
+
*
|
|
1775
|
+
* @example
|
|
1776
|
+
* ```ts
|
|
1777
|
+
* {
|
|
1778
|
+
* type: 'usr.Address',
|
|
1779
|
+
* toolbarConfig: {
|
|
1780
|
+
* caption: 'Address',
|
|
1781
|
+
* icon: '<svg viewBox="0 0 16 16"></svg>'
|
|
1782
|
+
* },
|
|
1783
|
+
* defaultPropertyValues: {
|
|
1784
|
+
* street: 'Main st.',
|
|
1785
|
+
* city: 'Boston'
|
|
1786
|
+
* },
|
|
1787
|
+
* propertiesPanel: 'usr.AddressPropertiesPanel'
|
|
1788
|
+
* }
|
|
1789
|
+
* ```
|
|
1790
|
+
*
|
|
1791
|
+
* @public
|
|
1792
|
+
*/
|
|
1793
|
+
interface RemoteViewElementDesignerDefinition {
|
|
1794
|
+
/**
|
|
1795
|
+
* Stable view element type already published through discovery metadata.
|
|
1796
|
+
*
|
|
1797
|
+
* Must match the `type` of a corresponding item from {@link RemoteFeatureDiscoveryMetadata.viewElements} or
|
|
1798
|
+
* {@link RemoteFeatureDiscoveryMetadata.mobileViewElements} published by the same feature.
|
|
1799
|
+
*/
|
|
1800
|
+
readonly type: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* Toolbar configuration displayed in the interface designer.
|
|
1803
|
+
*/
|
|
1804
|
+
readonly toolbarConfig: {
|
|
1805
|
+
/**
|
|
1806
|
+
* Visible caption in the interface-designer toolbox.
|
|
1807
|
+
*/
|
|
1808
|
+
readonly caption: string;
|
|
1809
|
+
/**
|
|
1810
|
+
* Raw SVG markup displayed as the toolbox icon.
|
|
1811
|
+
*
|
|
1812
|
+
* @example
|
|
1813
|
+
* ```ts
|
|
1814
|
+
* icon: '<svg viewBox="0 0 16 16"></svg>'
|
|
1815
|
+
* ```
|
|
1816
|
+
*
|
|
1817
|
+
* @example
|
|
1818
|
+
* ```ts
|
|
1819
|
+
* icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
|
|
1820
|
+
* ```
|
|
1821
|
+
*/
|
|
1822
|
+
readonly icon: string;
|
|
1823
|
+
/**
|
|
1824
|
+
* Optional hint displayed on hover in the interface-designer toolbox.
|
|
1825
|
+
*/
|
|
1826
|
+
readonly hint?: string;
|
|
1827
|
+
};
|
|
1828
|
+
/**
|
|
1829
|
+
* Default property values applied when the item is added from the toolbox.
|
|
1830
|
+
*
|
|
1831
|
+
* Keys must match property names expected by the view element.
|
|
1832
|
+
*/
|
|
1833
|
+
readonly defaultPropertyValues?: Record<string, _JsonData>;
|
|
1834
|
+
/**
|
|
1835
|
+
* Type name of the properties panel component used for configuring the view element in the interface designer.
|
|
1836
|
+
*
|
|
1837
|
+
* @example
|
|
1838
|
+
* ```ts
|
|
1839
|
+
* propertiesPanel: 'usr.AddressPropertiesPanel'
|
|
1840
|
+
* ```
|
|
1841
|
+
*/
|
|
1842
|
+
readonly propertiesPanel?: string;
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Discovery metadata for a remote converter.
|
|
1846
|
+
*
|
|
1847
|
+
* @public
|
|
1848
|
+
*/
|
|
1849
|
+
interface RemoteConverterDiscoveryMetadata {
|
|
1850
|
+
/**
|
|
1851
|
+
* Stable converter type published during discovery.
|
|
1852
|
+
*/
|
|
1853
|
+
readonly type: string;
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Discovery metadata for a remote validator.
|
|
1857
|
+
*
|
|
1858
|
+
* @public
|
|
1859
|
+
*/
|
|
1860
|
+
interface RemoteValidatorDiscoveryMetadata {
|
|
1861
|
+
/**
|
|
1862
|
+
* Stable validator type published during discovery.
|
|
1863
|
+
*/
|
|
1864
|
+
readonly type: string;
|
|
1865
|
+
}
|
|
1866
|
+
/**
|
|
1867
|
+
* Discovery metadata for a remote request handler.
|
|
1868
|
+
*
|
|
1869
|
+
* @public
|
|
1870
|
+
*/
|
|
1871
|
+
interface RemoteRequestHandlerDiscoveryMetadata {
|
|
1872
|
+
/**
|
|
1873
|
+
* Stable request-handler type published during discovery.
|
|
1874
|
+
*/
|
|
1875
|
+
readonly type: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* Request type handled by the handler.
|
|
1878
|
+
*/
|
|
1879
|
+
readonly requestType: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* Optional scope restriction for the handler.
|
|
1882
|
+
*
|
|
1883
|
+
* When specified, the handler is considered only for requests executed inside the listed scopes.
|
|
1884
|
+
*/
|
|
1885
|
+
readonly scopes?: string[];
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Aggregated discovery metadata for a remote feature.
|
|
1889
|
+
*
|
|
1890
|
+
* Lists the public items exposed by a feature during discovery.
|
|
1891
|
+
* Register their implementations in {@link RemoteFeatureDefinition.activate}.
|
|
1892
|
+
*
|
|
1893
|
+
* @public
|
|
1894
|
+
*/
|
|
1895
|
+
interface RemoteFeatureDiscoveryMetadata {
|
|
1896
|
+
/**
|
|
1897
|
+
* View elements exposed by the feature.
|
|
1898
|
+
*/
|
|
1899
|
+
readonly viewElements?: readonly RemoteViewElementDiscoveryMetadata[];
|
|
1900
|
+
/**
|
|
1901
|
+
* Mobile view elements exposed by the feature.
|
|
1902
|
+
*/
|
|
1903
|
+
readonly mobileViewElements?: readonly RemoteViewElementDiscoveryMetadata[];
|
|
1904
|
+
/**
|
|
1905
|
+
* Converters exposed by the feature.
|
|
1906
|
+
*/
|
|
1907
|
+
readonly converters?: readonly RemoteConverterDiscoveryMetadata[];
|
|
1908
|
+
/**
|
|
1909
|
+
* Validators exposed by the feature.
|
|
1910
|
+
*/
|
|
1911
|
+
readonly validators?: readonly RemoteValidatorDiscoveryMetadata[];
|
|
1912
|
+
/**
|
|
1913
|
+
* Request handlers exposed by the feature.
|
|
1914
|
+
*/
|
|
1915
|
+
readonly requestHandlers?: readonly RemoteRequestHandlerDiscoveryMetadata[];
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* Interface-designer definitions returned by a remote feature.
|
|
1919
|
+
*
|
|
1920
|
+
* Use this payload to register toolbox entries without activating the remote runtime implementation.
|
|
1921
|
+
*
|
|
1922
|
+
* @example
|
|
1923
|
+
* ```ts
|
|
1924
|
+
* {
|
|
1925
|
+
* viewElements: [
|
|
1926
|
+
* {
|
|
1927
|
+
* type: 'usr.Address',
|
|
1928
|
+
* toolbarConfig: {
|
|
1929
|
+
* caption: 'Address',
|
|
1930
|
+
* icon: '<svg viewBox="0 0 16 16"></svg>'
|
|
1931
|
+
* },
|
|
1932
|
+
* defaultPropertyValues: {
|
|
1933
|
+
* city: 'Boston'
|
|
1934
|
+
* },
|
|
1935
|
+
* propertiesPanel: 'usr.AddressPropertiesPanel'
|
|
1936
|
+
* }
|
|
1937
|
+
* ]
|
|
1938
|
+
* }
|
|
1939
|
+
* ```
|
|
1940
|
+
*
|
|
1941
|
+
* @public
|
|
1942
|
+
*/
|
|
1943
|
+
interface RemoteFeatureDesignerDefinitions {
|
|
1944
|
+
/**
|
|
1945
|
+
* Designer metadata for discovered view elements.
|
|
1946
|
+
*
|
|
1947
|
+
* Each `type` should correspond to an item from {@link RemoteFeatureDiscoveryMetadata.viewElements}.
|
|
1948
|
+
*/
|
|
1949
|
+
readonly viewElements?: readonly RemoteViewElementDesignerDefinition[];
|
|
1950
|
+
/**
|
|
1951
|
+
* Designer metadata for discovered mobile view elements.
|
|
1952
|
+
*
|
|
1953
|
+
* Each `type` should correspond to an item from {@link RemoteFeatureDiscoveryMetadata.mobileViewElements}.
|
|
1954
|
+
*/
|
|
1955
|
+
readonly mobileViewElements?: readonly RemoteViewElementDesignerDefinition[];
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Defines a remote feature activated on demand.
|
|
1959
|
+
*
|
|
1960
|
+
* A feature can publish runtime types through {@link RemoteFeatureDefinition.discovery}, expose
|
|
1961
|
+
* interface-designer metadata through {@link RemoteFeatureDefinition.loadDesignerDefinitions}, and load its
|
|
1962
|
+
* implementation only when the runtime requests activation.
|
|
1963
|
+
*
|
|
1964
|
+
* @example
|
|
1965
|
+
* ```ts
|
|
1966
|
+
* const runtimeFeature: RemoteFeatureDefinition = {
|
|
1967
|
+
* id: 'runtime',
|
|
1968
|
+
* discovery: {
|
|
1969
|
+
* viewElements: [{ type: 'usr.Address' }],
|
|
1970
|
+
* requestHandlers: [{ type: 'usr.OpenAddressHandler', requestType: 'usr.OpenAddressRequest' }]
|
|
1971
|
+
* },
|
|
1972
|
+
* activate: async () => {
|
|
1973
|
+
* const { activateRuntimeFeature } = await import('./runtime.feature-activation');
|
|
1974
|
+
* await activateRuntimeFeature();
|
|
1975
|
+
* },
|
|
1976
|
+
* loadDesignerDefinitions: async ({ cultureName }) => {
|
|
1977
|
+
* const { loadRuntimeDesignerDefinitions } = await import('./runtime.designer-definitions');
|
|
1978
|
+
* return loadRuntimeDesignerDefinitions({ cultureName });
|
|
1979
|
+
* }
|
|
1980
|
+
* };
|
|
1981
|
+
* ```
|
|
1982
|
+
*
|
|
1983
|
+
* @public
|
|
1984
|
+
*/
|
|
1985
|
+
interface RemoteFeatureDefinition {
|
|
1986
|
+
/**
|
|
1987
|
+
* Stable feature identifier inside the remote entry.
|
|
1988
|
+
*/
|
|
1989
|
+
readonly id: string;
|
|
1990
|
+
/**
|
|
1991
|
+
* Discovery metadata published during startup.
|
|
1992
|
+
*
|
|
1993
|
+
* Lists the public items exposed by the feature during discovery.
|
|
1994
|
+
* This field should declare metadata only. Register implementations in
|
|
1995
|
+
* {@link RemoteFeatureDefinition.activate}.
|
|
1996
|
+
*/
|
|
1997
|
+
readonly discovery?: RemoteFeatureDiscoveryMetadata;
|
|
1998
|
+
/**
|
|
1999
|
+
* Activates the feature when runtime needs its implementation.
|
|
2000
|
+
*
|
|
2001
|
+
* This callback should load and register the implementations for the items published through
|
|
2002
|
+
* {@link RemoteFeatureDefinition.discovery}.
|
|
2003
|
+
*/
|
|
2004
|
+
readonly activate: () => Promise<void>;
|
|
2005
|
+
/**
|
|
2006
|
+
* Loads localized interface-designer definitions exposed by the feature to register view elements
|
|
2007
|
+
* in the designer toolbox.
|
|
2008
|
+
*
|
|
2009
|
+
* This callback should only return metadata. Any returned item `type` should match the discovery metadata
|
|
2010
|
+
* published by the same feature.
|
|
2011
|
+
*
|
|
2012
|
+
* @example
|
|
2013
|
+
* ```ts
|
|
2014
|
+
* async loadDesignerDefinitions({ cultureName }) {
|
|
2015
|
+
* const translations = await loadTranslationsForCulture(cultureName);
|
|
2016
|
+
* return {
|
|
2017
|
+
* viewElements: [
|
|
2018
|
+
* {
|
|
2019
|
+
* type: 'usr.Address',
|
|
2020
|
+
* toolbarConfig: {
|
|
2021
|
+
* caption: translations['address.caption'],
|
|
2022
|
+
* icon: '<svg viewBox="0 0 16 16"></svg>'
|
|
2023
|
+
* },
|
|
2024
|
+
* defaultPropertyValues: {
|
|
2025
|
+
* city: translations['address.defaultCity']
|
|
2026
|
+
* },
|
|
2027
|
+
* propertiesPanel: 'usr.AddressPropertiesPanel'
|
|
2028
|
+
* }
|
|
2029
|
+
* ],
|
|
2030
|
+
* mobileViewElements: [
|
|
2031
|
+
* {
|
|
2032
|
+
* type: 'usr.MobileAddress',
|
|
2033
|
+
* toolbarConfig: {
|
|
2034
|
+
* caption: translations['mobileAddress.caption'],
|
|
2035
|
+
* icon: '<svg viewBox="0 0 16 16"></svg>'
|
|
2036
|
+
* },
|
|
2037
|
+
* propertiesPanel: 'usr.MobileAddressPropertiesPanel'
|
|
2038
|
+
* }
|
|
2039
|
+
* ]
|
|
2040
|
+
* };
|
|
2041
|
+
* }
|
|
2042
|
+
* ```
|
|
2043
|
+
*/
|
|
2044
|
+
readonly loadDesignerDefinitions?: (context: RemoteDesignerDefinitionsLoadContext) => Promise<RemoteFeatureDesignerDefinitions>;
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Entry-side definition exported by a remote module.
|
|
2048
|
+
*
|
|
2049
|
+
* The host loads this object from the remote entry point to discover the features published by
|
|
2050
|
+
* the remote build.
|
|
2051
|
+
*
|
|
2052
|
+
* @public
|
|
2053
|
+
*/
|
|
2054
|
+
interface RemoteEntryDefinition {
|
|
2055
|
+
/**
|
|
2056
|
+
* Stable remote name matching the registered remote build.
|
|
2057
|
+
*/
|
|
2058
|
+
readonly remoteName: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* Features published by the remote entry.
|
|
2061
|
+
*
|
|
2062
|
+
* Feature identifiers must be unique within the same remote entry.
|
|
2063
|
+
*/
|
|
2064
|
+
readonly features: readonly RemoteFeatureDefinition[];
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* @public
|
|
2069
|
+
* @class DataRequest
|
|
2070
|
+
* @description Definition of data source request.
|
|
2071
|
+
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
2072
|
+
* @property {string} dataSourceName - name of assigned data source.
|
|
2073
|
+
*/
|
|
2074
|
+
declare class DataRequest extends _BaseRequest {
|
|
2075
|
+
/**
|
|
2076
|
+
* @description name of assigned data source.
|
|
2077
|
+
*/
|
|
2078
|
+
readonly dataSourceName: string;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* @public
|
|
2083
|
+
* @description Request payload
|
|
2084
|
+
* @property {string} request - request name.
|
|
2085
|
+
* @property {unknown} params - request parameters.
|
|
2086
|
+
*/
|
|
2087
|
+
interface BaseRequestConfig {
|
|
2088
|
+
/**
|
|
2089
|
+
* @description request name.
|
|
2090
|
+
*/
|
|
2091
|
+
request: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* @description request parameters.
|
|
2094
|
+
*/
|
|
2095
|
+
params?: unknown;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* TODO: RND-55882
|
|
2100
|
+
*/
|
|
2101
|
+
interface ViewModelAttributeChangeEventOptionsType {
|
|
2102
|
+
preventAttributeChangeRequest?: boolean;
|
|
2103
|
+
preventStateChange?: boolean;
|
|
2104
|
+
preventRunBusinessRules?: boolean;
|
|
2105
|
+
/**
|
|
2106
|
+
* @internal
|
|
2107
|
+
*/
|
|
2108
|
+
isMaskedValue?: boolean;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* TODO: RND-55882
|
|
2113
|
+
*/
|
|
2114
|
+
interface ChangeAttributeValueEventPayload extends ViewModelAttributeChangeEventOptionsType {
|
|
2115
|
+
attributeName: string;
|
|
2116
|
+
value: any;
|
|
2117
|
+
oldValue: any;
|
|
2118
|
+
/**
|
|
2119
|
+
* @deprecated
|
|
2120
|
+
*/
|
|
2121
|
+
silent?: boolean;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* @hostPublicApi
|
|
2126
|
+
* TODO: RND-55882
|
|
2127
|
+
*/
|
|
2128
|
+
declare class HandleViewModelAttributeChangeRequest extends _BaseRequest<ChangeAttributeValueEventPayload> {
|
|
2129
|
+
readonly type = "crt.HandleViewModelAttributeChangeRequest";
|
|
2130
|
+
/**
|
|
2131
|
+
* @hostPublicApi
|
|
2132
|
+
*/
|
|
2133
|
+
readonly attributeName: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* @hostPublicApi
|
|
2136
|
+
*/
|
|
2137
|
+
readonly value: unknown;
|
|
2138
|
+
/**
|
|
2139
|
+
* @hostPublicApi
|
|
2140
|
+
*/
|
|
2141
|
+
readonly oldValue: unknown;
|
|
2142
|
+
/**
|
|
2143
|
+
* @deprecated
|
|
2144
|
+
*/
|
|
2145
|
+
readonly silent: boolean;
|
|
2146
|
+
readonly preventAttributeChangeRequest: boolean;
|
|
2147
|
+
readonly preventStateChange: boolean;
|
|
2148
|
+
readonly preventRunBusinessRules: boolean;
|
|
2149
|
+
constructor(payload: ChangeAttributeValueEventPayload);
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* @public
|
|
2154
|
+
* @description Theme definition exposed through handler-chain services and shared runtime APIs.
|
|
2155
|
+
*/
|
|
2156
|
+
interface ThemeDefinition {
|
|
2157
|
+
/**
|
|
2158
|
+
* @description Stable theme identifier.
|
|
2159
|
+
*/
|
|
2160
|
+
id: string;
|
|
2161
|
+
/**
|
|
2162
|
+
* @description Display caption.
|
|
2163
|
+
*/
|
|
2164
|
+
caption: string;
|
|
2165
|
+
/**
|
|
2166
|
+
* @description CSS class applied to the host when the theme is active.
|
|
2167
|
+
*/
|
|
2168
|
+
cssClassName: string;
|
|
2169
|
+
/**
|
|
2170
|
+
* @description Resolved theme stylesheet path or URL when external CSS is available.
|
|
2171
|
+
*/
|
|
2172
|
+
cssFilePath?: string;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* @public
|
|
2177
|
+
* @description Represents a consent record.
|
|
2178
|
+
* @property {Guid} id - Unique identifier of the consent record.
|
|
2179
|
+
* @property {string} name - Name of the consent.
|
|
2180
|
+
* @property {string} code - Code of the consent.
|
|
2181
|
+
* @property {string} consentText - Text of the consent.
|
|
2182
|
+
*/
|
|
2183
|
+
interface Consent {
|
|
2184
|
+
/**
|
|
2185
|
+
* @description Unique identifier of the consent record.
|
|
2186
|
+
*/
|
|
2187
|
+
id: _Guid;
|
|
2188
|
+
/**
|
|
2189
|
+
* @description Name of the consent.
|
|
2190
|
+
*/
|
|
2191
|
+
name: string;
|
|
2192
|
+
/**
|
|
2193
|
+
* @description Code of the consent.
|
|
2194
|
+
*/
|
|
2195
|
+
code: string;
|
|
2196
|
+
/**
|
|
2197
|
+
* @description Text of the consent.
|
|
2198
|
+
*/
|
|
2199
|
+
consentText: string;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* @public
|
|
2204
|
+
* @description Represents a user consent history record.
|
|
2205
|
+
* @property {Guid} id - Unique identifier of the user consent record.
|
|
2206
|
+
* @property {string} consentCode - Consent code associated with the user consent.
|
|
2207
|
+
* @property {Date} dateOfConsent - Date when the user provided consent.
|
|
2208
|
+
* @property {Date | null} expirationDate - Date when the user consent expires; `null` for perpetual consent.
|
|
2209
|
+
*/
|
|
2210
|
+
interface UserConsent {
|
|
2211
|
+
/**
|
|
2212
|
+
* @description Unique identifier of the user consent record.
|
|
2213
|
+
*/
|
|
2214
|
+
id: _Guid;
|
|
2215
|
+
/**
|
|
2216
|
+
* @description Consent code associated with the user consent.
|
|
2217
|
+
*/
|
|
2218
|
+
consentCode: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* @description Date when the user provided consent.
|
|
2221
|
+
*/
|
|
2222
|
+
dateOfConsent: Date;
|
|
2223
|
+
/**
|
|
2224
|
+
* @description Date when the user consent expires. `null` when the consent does not expire.
|
|
2225
|
+
*/
|
|
2226
|
+
expirationDate: Date | null;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* @public
|
|
2231
|
+
* @description Interface describes the model of collection change event.
|
|
2232
|
+
*/
|
|
2233
|
+
interface ViewModelCollectionChange<T extends _ViewModelContext> {
|
|
2234
|
+
/**
|
|
2235
|
+
* @description The array of current collection elements.
|
|
2236
|
+
*/
|
|
2237
|
+
collection: T[];
|
|
2238
|
+
/**
|
|
2239
|
+
* @description The array of elements affected by the change.
|
|
2240
|
+
*/
|
|
2241
|
+
affectedElements: T[];
|
|
2242
|
+
/**
|
|
2243
|
+
* @description The type of action that triggered the change.
|
|
2244
|
+
*/
|
|
2245
|
+
action: ViewModelCollectionActionType;
|
|
2246
|
+
/**
|
|
2247
|
+
* @description The index at which the change occurred, if applicable.
|
|
2248
|
+
*/
|
|
2249
|
+
index?: number;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* @public
|
|
2254
|
+
* @description Interface for a view model collection that extends the base collection with
|
|
2255
|
+
* on collection change callbacks registration capabilities.
|
|
2256
|
+
*
|
|
2257
|
+
* @template T - The type of view model context that extends ViewModel
|
|
2258
|
+
*/
|
|
2259
|
+
interface ViewModelCollection<T extends _ViewModelContext> extends _ViewModelCollection<T> {
|
|
2260
|
+
/**
|
|
2261
|
+
* @description Registers a handler to be called whenever the collection emits a change event.
|
|
2262
|
+
* @param callback Executes when the collection changes and receives change metadata.
|
|
2263
|
+
* @param action Optional action filter; omit to receive all collection change notifications.
|
|
2264
|
+
*/
|
|
2265
|
+
registerOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
|
|
2266
|
+
/**
|
|
2267
|
+
* @description Removes a previously registered collection change handler.
|
|
2268
|
+
* @param callback Previously registered callback to detach.
|
|
2269
|
+
* @param action Optional action filter, if provided, only detaches the callback for that action type.
|
|
2270
|
+
*/
|
|
2271
|
+
unregisterOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
|
|
2272
|
+
/**
|
|
2273
|
+
* @description Registers a handler that fires when attributes of any collection item change.
|
|
2274
|
+
* @param callback Executes with the item whose attributes were updated.
|
|
2275
|
+
*/
|
|
2276
|
+
registerOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
|
|
2277
|
+
/**
|
|
2278
|
+
* @description Removes a previously registered item attribute change handler.
|
|
2279
|
+
* @param callback Callback reference to detach from attribute change notifications.
|
|
2280
|
+
*/
|
|
2281
|
+
unregisterOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
* @internal
|
|
2286
|
+
*/
|
|
2287
|
+
interface RequestHandlerRegistrationConfig extends RequestHandlerDefinition, LazyRegistryItem {
|
|
2288
|
+
/**
|
|
2289
|
+
* @internal
|
|
2290
|
+
*/
|
|
2291
|
+
source?: HandlerSource;
|
|
2292
|
+
/**
|
|
2293
|
+
* @internal
|
|
2294
|
+
*/
|
|
2295
|
+
createHandler?: (injectionContext?: InjectionContext) => BaseRequestHandler;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* @internal
|
|
2300
|
+
*/
|
|
2301
|
+
interface ContexedHandlerScopeConfig {
|
|
2302
|
+
requestType: string;
|
|
2303
|
+
scope: string;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* @internal
|
|
2308
|
+
* @class MethodInvokeRequest
|
|
2309
|
+
* @description Definition of invoke method request.
|
|
2310
|
+
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
2311
|
+
* @property {string} method - method name.
|
|
2312
|
+
* @property {unknown[]} args - arguments passing to the method.
|
|
2313
|
+
*/
|
|
2314
|
+
declare class MethodInvokeRequest extends _BaseRequest {
|
|
2315
|
+
/**
|
|
2316
|
+
* @description method name
|
|
2317
|
+
*/
|
|
2318
|
+
method: string;
|
|
2319
|
+
/**
|
|
2320
|
+
* @description arguments passing to the method
|
|
2321
|
+
*/
|
|
2322
|
+
args?: unknown[];
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* @internal
|
|
2327
|
+
*/
|
|
2328
|
+
interface HandlerChainServiceRegistryItem {
|
|
2329
|
+
requestType: string;
|
|
2330
|
+
typeRef: _Type;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* @internal
|
|
2335
|
+
* @interface DesignTimeViewElementRegistryItem
|
|
2336
|
+
* @hostPublicApi
|
|
2337
|
+
*/
|
|
2338
|
+
type DesignTimeViewElementRegistryItem = ViewElementRegistryItem & {
|
|
2339
|
+
overrideType: string;
|
|
2340
|
+
};
|
|
2341
|
+
/**
|
|
2342
|
+
* @internal
|
|
2343
|
+
* @interface InternalDesignTimeViewElementRegistryItem
|
|
2344
|
+
* @hostPublicApi
|
|
2345
|
+
*/
|
|
2346
|
+
type InternalDesignTimeViewElementRegistryItem = DesignTimeViewElementRegistryItem & {
|
|
2347
|
+
typeRef: _Type;
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* @internal
|
|
2352
|
+
* @hostPublicApi
|
|
2353
|
+
*/
|
|
2354
|
+
interface ValidatorRegistryItem extends ValidatorConfig, LazyRegistryItem {
|
|
2355
|
+
typeRef?: _Type<BaseValidator>;
|
|
2356
|
+
instantiate?: (injectionContext?: InjectionContext) => BaseValidator;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
/**
|
|
2360
|
+
* @internal
|
|
2361
|
+
*/
|
|
2362
|
+
interface ValidatorSchemaConfig extends ValidatorConfig {
|
|
2363
|
+
validator: (config: Record<string, unknown>) => CrtValidatorFn;
|
|
2364
|
+
async: boolean;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* @internal
|
|
2369
|
+
*/
|
|
2370
|
+
declare enum RemoteEntryType {
|
|
2371
|
+
Script = "script",
|
|
2372
|
+
Module = "module"
|
|
2373
|
+
}
|
|
2374
|
+
/**
|
|
2375
|
+
* @internal
|
|
2376
|
+
*/
|
|
2377
|
+
interface RemoteBuildInfo {
|
|
2378
|
+
name: string;
|
|
2379
|
+
entry: string;
|
|
2380
|
+
entryType: RemoteEntryType;
|
|
2381
|
+
mainModule: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* @dontChange
|
|
2384
|
+
*/
|
|
2385
|
+
packageName: string;
|
|
2386
|
+
maintainer: string;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* @internal
|
|
2391
|
+
*/
|
|
2392
|
+
interface AttributePropertyConfig {
|
|
2393
|
+
name: string;
|
|
2394
|
+
defaultValue: unknown;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Interface contains parameters for load data source.
|
|
2399
|
+
* @internal
|
|
2400
|
+
*/
|
|
2401
|
+
interface DataSourceLoadParameters {
|
|
2402
|
+
parameters: _DataSourceParameters;
|
|
2403
|
+
options: DataSourceLoadOptions;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
interface ITransactionOperation<TResult = unknown> {
|
|
2407
|
+
get asyncResult(): Promise<TResult>;
|
|
2408
|
+
/**
|
|
2409
|
+
* @internal
|
|
2410
|
+
*/
|
|
2411
|
+
get ready(): Promise<void>;
|
|
2412
|
+
get transactionId(): _Guid;
|
|
2413
|
+
get id(): _Guid;
|
|
2414
|
+
get payload(): Record<string, unknown>;
|
|
2415
|
+
/**
|
|
2416
|
+
* @internal
|
|
2417
|
+
*/
|
|
2418
|
+
markAsReady(): void;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
interface ITransaction {
|
|
2422
|
+
get id(): _Guid;
|
|
2423
|
+
createOperation<TResult>(action: (transactionOperation: ITransactionOperation<TResult>) => Promise<TResult>): ITransactionOperation<TResult>;
|
|
2424
|
+
createFailureOperation<TResult>(reason: TResult): ITransactionOperation<TResult>;
|
|
2425
|
+
commit(): Promise<Record<_Guid, unknown>>;
|
|
2426
|
+
rollback(): Promise<void>;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
interface ITransactionFactory {
|
|
2430
|
+
/**
|
|
2431
|
+
* @description Method create a transaction.
|
|
2432
|
+
* @returns `Promise<ITransaction>` {@link ITransaction}
|
|
2433
|
+
*/
|
|
2434
|
+
create(): Promise<ITransaction>;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* @internal
|
|
2439
|
+
*/
|
|
2440
|
+
interface BaseItemRendererConfig<TItem = unknown> {
|
|
2441
|
+
selector: string;
|
|
2442
|
+
mapInputs?: (item: TItem) => Record<string, unknown>;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* @internal
|
|
2447
|
+
*/
|
|
2448
|
+
declare function CrtDesignTimeViewElement(config: DesignTimeViewElementRegistryItem): (type: _Type) => void;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* @internal
|
|
2452
|
+
*/
|
|
2453
|
+
declare function ɵCrtInterfaceDesignerItem(config: InternalInterfaceDesignerItemRegistrationConfig): (type: _Type) => void;
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* @internal
|
|
2457
|
+
*/
|
|
2458
|
+
declare function ɵCrtMobileInterfaceDesignerItem(config: InternalInterfaceDesignerItemRegistrationConfig): (type: _Type) => void;
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* @internal
|
|
2462
|
+
*/
|
|
2463
|
+
declare function CrtRequest<T extends _BaseRequest>(config: _RequestRegistrationConfig): (type: _Type<T>) => void;
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* @internal
|
|
2467
|
+
*/
|
|
2468
|
+
declare function checkTypeNameFormat(type: string, element: string): void;
|
|
2469
|
+
/**
|
|
2470
|
+
* @public
|
|
2471
|
+
* @description For internal use only.
|
|
2472
|
+
*/
|
|
2473
|
+
declare function ɵcheckTypeNameFormat(type: string, element: string): void;
|
|
2474
|
+
/**
|
|
2475
|
+
* @internal
|
|
2476
|
+
*/
|
|
2477
|
+
declare function checkTypeNamePascalCase(type: string): void;
|
|
2478
|
+
/**
|
|
2479
|
+
* @internal
|
|
2480
|
+
*/
|
|
2481
|
+
declare function checkCrtTypeNamePascalCase(type: string): void;
|
|
2482
|
+
/**
|
|
2483
|
+
* @internal
|
|
2484
|
+
*/
|
|
2485
|
+
declare function toPascalCase(source: string): string;
|
|
2486
|
+
/**
|
|
2487
|
+
* @internal
|
|
2488
|
+
*/
|
|
2489
|
+
declare function checkIfTypeRegistered<T>(type: string, item: (new () => T) | undefined | null): asserts item is new () => T;
|
|
2490
|
+
/**
|
|
2491
|
+
* @internal
|
|
2492
|
+
*/
|
|
2493
|
+
declare function checkOnlyOneRegistration<T>(type: string, item: T, map: Map<string, T>): void;
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* @internal
|
|
2497
|
+
* @hostPublicApi
|
|
2498
|
+
*/
|
|
2499
|
+
type RequestHandlerCtor = new (...args: unknown[]) => _RequestHandler;
|
|
2500
|
+
/**
|
|
2501
|
+
* @internal
|
|
2502
|
+
* @hostPublicApi
|
|
2503
|
+
*/
|
|
2504
|
+
interface RequestHandlerMapValue {
|
|
2505
|
+
readonly instanceType?: RequestHandlerCtor;
|
|
2506
|
+
readonly instanceConfig: RequestHandlerRegistrationConfig;
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* @internal
|
|
2510
|
+
* @hostPublicApi
|
|
2511
|
+
*/
|
|
2512
|
+
type AddRequestHandlerListener = (requestType: string, requestMapInfo: RequestHandlerMapValue) => void;
|
|
2513
|
+
/**
|
|
2514
|
+
* @internal
|
|
2515
|
+
* @hostPublicApi
|
|
2516
|
+
*/
|
|
2517
|
+
type RemoveRequestHandlerListener = AddRequestHandlerListener;
|
|
2518
|
+
/**
|
|
2519
|
+
* @internal
|
|
2520
|
+
* @hostPublicApi
|
|
2521
|
+
*/
|
|
2522
|
+
type UnsubscribeListener = () => void;
|
|
2523
|
+
/**
|
|
2524
|
+
* @internal
|
|
2525
|
+
* @hostPublicApi available through window.creatio.requestHandlerRegistry
|
|
2526
|
+
*/
|
|
2527
|
+
declare class InternalRequestHandlerRegistryType {
|
|
2528
|
+
private static readonly _addItemListeners;
|
|
2529
|
+
private static readonly _removeItemListeners;
|
|
2530
|
+
private static readonly _requestHandlersMap;
|
|
2531
|
+
private static readonly _handlersByRequestMap;
|
|
2532
|
+
/**
|
|
2533
|
+
* @publicHostApi
|
|
2534
|
+
*/
|
|
2535
|
+
static get requestHandlersMap(): Map<string, RequestHandlerMapValue>;
|
|
2536
|
+
/**
|
|
2537
|
+
* @publicHostApi
|
|
2538
|
+
*/
|
|
2539
|
+
static get handlersByRequestMap(): Map<string, Map<string, RequestHandlerMapValue>>;
|
|
2540
|
+
/**
|
|
2541
|
+
* @publicHostApi
|
|
2542
|
+
*/
|
|
2543
|
+
static onAddRequestHandler(handler: AddRequestHandlerListener): UnsubscribeListener;
|
|
2544
|
+
/**
|
|
2545
|
+
* @publicHostApi
|
|
2546
|
+
*/
|
|
2547
|
+
static onRemoveRequestHandler(handler: RemoveRequestHandlerListener): UnsubscribeListener;
|
|
2548
|
+
/**
|
|
2549
|
+
* @publicHostApi
|
|
2550
|
+
*/
|
|
2551
|
+
static addRequestHandler(handlerType: string, config: RequestHandlerMapValue): void;
|
|
2552
|
+
/**
|
|
2553
|
+
* @publicHostApi
|
|
2554
|
+
*/
|
|
2555
|
+
static removeRequestHandler(handlerType: string): void;
|
|
2556
|
+
static clear(): void;
|
|
2557
|
+
}
|
|
2558
|
+
/**
|
|
2559
|
+
* @internal
|
|
2560
|
+
*/
|
|
2561
|
+
declare const InternalRequestHandlerRegistry: typeof InternalRequestHandlerRegistryType;
|
|
2562
|
+
/**
|
|
2563
|
+
* @internal
|
|
2564
|
+
*/
|
|
2565
|
+
declare class RequestHandlerRegistryService {
|
|
2566
|
+
private static readonly _internalRegistry;
|
|
2567
|
+
static find(requestHandlerType: string): RequestHandlerMapValue | undefined;
|
|
2568
|
+
/**
|
|
2569
|
+
* Register request handler class.
|
|
2570
|
+
* @param config Request handler registration config.
|
|
2571
|
+
* @param typeRef Request handler type reference (constructor).
|
|
2572
|
+
*/
|
|
2573
|
+
static register(config: RequestHandlerRegistrationConfig, typeRef?: RequestHandlerCtor): void;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* @internal
|
|
2578
|
+
*/
|
|
2579
|
+
type BaseRequestCtor = new () => _BaseRequest;
|
|
2580
|
+
/**
|
|
2581
|
+
* @internal
|
|
2582
|
+
*/
|
|
2583
|
+
declare class RequestRegistryService {
|
|
2584
|
+
private static readonly _requestsMap;
|
|
2585
|
+
private static readonly _requestsRegistrationInfos;
|
|
2586
|
+
static get requestsRegistrationInfos(): ReadonlyMap<string, _RequestRegistrationConfig>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Registers a specified request class.
|
|
2589
|
+
* @param config Request registration config.
|
|
2590
|
+
* @param type Request type.
|
|
2591
|
+
*/
|
|
2592
|
+
static register(config: _RequestRegistrationConfig, type: BaseRequestCtor): void;
|
|
2593
|
+
/**
|
|
2594
|
+
* Creates request instance by specified registered request type.
|
|
2595
|
+
* @param type Request type.
|
|
2596
|
+
* @returns The instance of registered request.
|
|
2597
|
+
*/
|
|
2598
|
+
static get(type: string): _BaseRequest | undefined;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* @internal
|
|
2603
|
+
* @hostPublicApi
|
|
2604
|
+
*/
|
|
2605
|
+
interface ConverterRegistryItem extends ConverterConfig, LazyRegistryItem {
|
|
2606
|
+
typeRef?: _Type<Converter>;
|
|
2607
|
+
instantiate?: (injectionContext?: InjectionContext) => Converter;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* @public
|
|
2612
|
+
* @description For internal use only.
|
|
2613
|
+
* @hostPublicApi
|
|
2614
|
+
*/
|
|
2615
|
+
interface ɵRegistryItemsStore {
|
|
2616
|
+
typeInfos: Map<string, any>;
|
|
2617
|
+
}
|
|
2618
|
+
/**
|
|
2619
|
+
* @public
|
|
2620
|
+
* @description For internal use only.
|
|
2621
|
+
* @hostPublicApi
|
|
2622
|
+
*/
|
|
2623
|
+
declare class ɵBaseRegistry {
|
|
2624
|
+
private static readonly _prefix;
|
|
2625
|
+
private static _instance;
|
|
2626
|
+
protected static readonly registryKey: string;
|
|
2627
|
+
protected static get store(): ɵRegistryItemsStore;
|
|
2628
|
+
/**
|
|
2629
|
+
* @hostPubicApi available through window.creatio.registry.<registryKey>.store
|
|
2630
|
+
*/
|
|
2631
|
+
protected store: ɵRegistryItemsStore;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* @internal
|
|
2636
|
+
* @hostPublicApi available through window.creatio.registry.ConverterRegistry
|
|
2637
|
+
*/
|
|
2638
|
+
declare class ConverterRegistry extends ɵBaseRegistry {
|
|
2639
|
+
protected static readonly registryKey = "ConverterRegistry";
|
|
2640
|
+
static has(type: string): boolean;
|
|
2641
|
+
static find(type: string): ConverterRegistryItem | undefined;
|
|
2642
|
+
static get(type: string): ConverterRegistryItem;
|
|
2643
|
+
static register(item: ConverterRegistryItem): void;
|
|
2644
|
+
static clear(): void;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* @internal
|
|
2649
|
+
* @hostPublicApi available through window.creatio.registry.BaseViewElementRegistry
|
|
2650
|
+
*/
|
|
2651
|
+
declare class BaseViewElementRegistry extends ɵBaseRegistry {
|
|
2652
|
+
static validate(config: BaseViewElementRegistrationConfig): void;
|
|
2653
|
+
static get viewElements(): Map<string, ViewElementRegistryItem>;
|
|
2654
|
+
static register(config: ViewElementRegistryItem): void;
|
|
2655
|
+
static getFormControlRelatesAttribute(type: string): string | null;
|
|
2656
|
+
static getValuePropertyName(type: string): string | null;
|
|
2657
|
+
static getViewElementInputs(type: string): Record<string, CrtInputRegistrationConfig> | null;
|
|
2658
|
+
static getViewElementOutputs(type: string): Record<string, unknown>;
|
|
2659
|
+
static getViewElementPropertiesDefaultValues(type: string): AttributePropertyConfig[];
|
|
2660
|
+
static getViewElementCompatiblePlatformAPIsOptions<TOptions extends _PlatformAPIOptions>(type: string, platformAPI: _PlatformAPIs): TOptions;
|
|
2661
|
+
static isViewElementAvailableByCompatibleAPIs(type: string, ...availableAPIs: _PlatformAPIs[]): boolean;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* @internal
|
|
2666
|
+
*/
|
|
2667
|
+
declare const viewElementRegistryKey = "ViewElementRegistry";
|
|
2668
|
+
/**
|
|
2669
|
+
* @internal
|
|
2670
|
+
*/
|
|
2671
|
+
declare class ViewElementRegistry extends BaseViewElementRegistry {
|
|
2672
|
+
protected static readonly registryKey: string;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* @internal
|
|
2677
|
+
*/
|
|
2678
|
+
declare const mobileViewElementRegistryKey = "MobileViewElementRegistry";
|
|
2679
|
+
/**
|
|
2680
|
+
* @internal
|
|
2681
|
+
* @hostPublicApi available through window.creatio.registry.MobileViewElementRegistry
|
|
2682
|
+
*/
|
|
2683
|
+
declare class MobileViewElementRegistry extends BaseViewElementRegistry {
|
|
2684
|
+
protected static readonly registryKey: string;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* @internal
|
|
2689
|
+
*/
|
|
2690
|
+
declare const interfaceDesignerItemRegistryKey = "InterfaceDesignerItemRegistry";
|
|
2691
|
+
/**
|
|
2692
|
+
* @internal
|
|
2693
|
+
* @hostPublicApi available through window.creatio.registry.InterfaceDesignerItemRegistry
|
|
2694
|
+
*/
|
|
2695
|
+
declare class BaseInterfaceDesignerItemRegistry extends ɵBaseRegistry {
|
|
2696
|
+
private static get _interfaceDesignerItemRegistrationInfos();
|
|
2697
|
+
static validate(config: InterfaceDesignerRegistryItem): void;
|
|
2698
|
+
static register(typeOrConfig: string | InterfaceDesignerRegistryItem, config?: InterfaceDesignerRegistryItem): void;
|
|
2699
|
+
static get(type: string): InterfaceDesignerRegistryItem;
|
|
2700
|
+
static has(type: string): boolean;
|
|
2701
|
+
static getAll(): Map<string, InterfaceDesignerRegistryItem>;
|
|
2702
|
+
static values(): Array<InterfaceDesignerRegistryItem>;
|
|
2703
|
+
static clear(): void;
|
|
2704
|
+
}
|
|
2705
|
+
/**
|
|
2706
|
+
* @internal
|
|
2707
|
+
*/
|
|
2708
|
+
declare class InterfaceDesignerItemRegistry extends BaseInterfaceDesignerItemRegistry {
|
|
2709
|
+
protected static readonly registryKey = "InterfaceDesignerItemRegistry";
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* @internal
|
|
2714
|
+
*/
|
|
2715
|
+
declare const mobileInterfaceDesignerItemRegistryKey = "MobileInterfaceDesignerItemRegistry";
|
|
2716
|
+
/**
|
|
2717
|
+
* @internal
|
|
2718
|
+
*/
|
|
2719
|
+
declare class MobileInterfaceDesignerItemRegistry extends BaseInterfaceDesignerItemRegistry {
|
|
2720
|
+
protected static readonly registryKey = "MobileInterfaceDesignerItemRegistry";
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* @internal
|
|
2725
|
+
*/
|
|
2726
|
+
interface Subscription {
|
|
2727
|
+
unsubscribe: () => void;
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* @internal
|
|
2731
|
+
*/
|
|
2732
|
+
type Subscriber = (moduleType: _Type) => void;
|
|
2733
|
+
/**
|
|
2734
|
+
* @internal
|
|
2735
|
+
*/
|
|
2736
|
+
declare class BootstrapNotifier {
|
|
2737
|
+
private readonly _subscribers;
|
|
2738
|
+
static get instance(): BootstrapNotifier;
|
|
2739
|
+
private constructor();
|
|
2740
|
+
notify(moduleType: _Type): void;
|
|
2741
|
+
subscribe(subscriber: Subscriber): Subscription;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* @internal
|
|
2746
|
+
*/
|
|
2747
|
+
declare class HandlerChainServicesRegistry extends ɵBaseRegistry {
|
|
2748
|
+
protected static readonly registryKey = "HandlerChainServicesRegistry";
|
|
2749
|
+
private static validate;
|
|
2750
|
+
private static checkUniqueRequestType;
|
|
2751
|
+
static register(config: HandlerChainServiceRegistryItem): void;
|
|
2752
|
+
static get services(): Map<string, HandlerChainServiceRegistryItem>;
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* @internal
|
|
2757
|
+
*/
|
|
2758
|
+
declare const designTimeViewElementRegistryKey = "DesignTimeViewElementRegistry";
|
|
2759
|
+
/**
|
|
2760
|
+
* @internal
|
|
2761
|
+
* @hostPublicApi available through window.creatio.registry.DesignTimeViewElementRegistry
|
|
2762
|
+
*/
|
|
2763
|
+
declare class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
2764
|
+
protected static readonly registryKey = "DesignTimeViewElementRegistry";
|
|
2765
|
+
static get infos(): Map<string, InternalDesignTimeViewElementRegistryItem>;
|
|
2766
|
+
static validate(config: InternalDesignTimeViewElementRegistryItem): void;
|
|
2767
|
+
static register(config: InternalDesignTimeViewElementRegistryItem): void;
|
|
2768
|
+
static getByOverriddenType(type: string): InternalDesignTimeViewElementRegistryItem | null;
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* @internal
|
|
2773
|
+
*/
|
|
2774
|
+
declare class ValidatorMapValue {
|
|
2775
|
+
instanceType: _Type;
|
|
2776
|
+
instanceConfig: ValidatorConfig;
|
|
2777
|
+
}
|
|
2778
|
+
/**
|
|
2779
|
+
* @internal
|
|
2780
|
+
*/
|
|
2781
|
+
declare const validatorRegistryKey = "ValidatorRegistry";
|
|
2782
|
+
/**
|
|
2783
|
+
* @internal
|
|
2784
|
+
* @hostPublicApi available through window.creatio.registry.ValidatorRegistry
|
|
2785
|
+
*/
|
|
2786
|
+
declare class ValidatorRegistry extends ɵBaseRegistry {
|
|
2787
|
+
protected static readonly registryKey = "ValidatorRegistry";
|
|
2788
|
+
private static _hasWithAnotherTypeRef;
|
|
2789
|
+
static validate(config: ValidatorRegistryItem): void;
|
|
2790
|
+
static get items(): Map<string, ValidatorRegistryItem>;
|
|
2791
|
+
static register(config: ValidatorRegistryItem): void;
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* @internal
|
|
2796
|
+
*/
|
|
2797
|
+
declare class PkgTopology extends ɵBaseRegistry {
|
|
2798
|
+
protected static readonly registryKey = "pkgTopology";
|
|
2799
|
+
static get items(): Map<string, number>;
|
|
2800
|
+
static get(pkgName: string): number;
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
/**
|
|
2804
|
+
* @internal
|
|
2805
|
+
* @dontChange
|
|
2806
|
+
*/
|
|
2807
|
+
declare class RemoteEntriesRegistry extends ɵBaseRegistry {
|
|
2808
|
+
/**
|
|
2809
|
+
* @dontChange
|
|
2810
|
+
*/
|
|
2811
|
+
protected static registryKey: string;
|
|
2812
|
+
/**
|
|
2813
|
+
* @dontChange
|
|
2814
|
+
*/
|
|
2815
|
+
static get items(): Map<string, RemoteBuildInfo>;
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* @internal
|
|
2820
|
+
*/
|
|
2821
|
+
declare class LazyLoadRefsManager {
|
|
2822
|
+
#private;
|
|
2823
|
+
lazyLoadingDisabled: boolean;
|
|
2824
|
+
static get instance(): LazyLoadRefsManager;
|
|
2825
|
+
add(ref: ɵLazyLoadRef): void;
|
|
2826
|
+
size(): number;
|
|
2827
|
+
loadAll(): Promise<_Type[]>;
|
|
2828
|
+
clear(): void;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* @internal
|
|
2833
|
+
*/
|
|
2834
|
+
declare const registryKey = "ChatMessageTypeRegistry";
|
|
2835
|
+
/**
|
|
2836
|
+
* @internal
|
|
2837
|
+
* @hostPublicApi available through window.creatio.registry.ChatMessageTypeRegistry
|
|
2838
|
+
*/
|
|
2839
|
+
declare class ChatMessageTypeRegistry extends ɵBaseRegistry {
|
|
2840
|
+
protected static readonly registryKey = "ChatMessageTypeRegistry";
|
|
2841
|
+
static get messageTypes(): Map<string, string>;
|
|
2842
|
+
static register(messageType: string, selector: string): void;
|
|
2843
|
+
static getSelector(messageType: string): Record<string, string> | null;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* @internal
|
|
2848
|
+
*/
|
|
2849
|
+
declare abstract class BaseRequestsResolver {
|
|
2850
|
+
abstract get(name: string): _RequestRegistrationConfig | undefined;
|
|
2851
|
+
abstract getAll(): ReadonlyMap<string, _RequestRegistrationConfig>;
|
|
2852
|
+
abstract has(name: string): boolean;
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* @internal
|
|
2857
|
+
*/
|
|
2858
|
+
declare class RequestsResolver extends BaseRequestsResolver {
|
|
2859
|
+
get(name: string): _RequestRegistrationConfig | undefined;
|
|
2860
|
+
getAll(): ReadonlyMap<string, _RequestRegistrationConfig>;
|
|
2861
|
+
has(name: string): boolean;
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
/**
|
|
2865
|
+
* @internal
|
|
2866
|
+
* @description Instance-based contract for DI usage. The implementation still uses shared static store internally.
|
|
2867
|
+
*/
|
|
2868
|
+
interface IBaseItemRendererRegistry {
|
|
2869
|
+
registerItem(type: string, config: BaseItemRendererConfig): void;
|
|
2870
|
+
getItem<TItem = unknown>(type: string): BaseItemRendererConfig<TItem> | null;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* @internal
|
|
2875
|
+
* @description DI-friendly instance wrapper over the shared static registry store from base registry.
|
|
2876
|
+
*/
|
|
2877
|
+
declare class BaseItemRendererRegistry extends ɵBaseRegistry implements IBaseItemRendererRegistry {
|
|
2878
|
+
protected static readonly registryKey: string;
|
|
2879
|
+
/** Base registry store uses the generic `typeInfos` key for historical reasons. */
|
|
2880
|
+
protected get _rendererConfigs(): Map<string, BaseItemRendererConfig>;
|
|
2881
|
+
/**
|
|
2882
|
+
* @internal
|
|
2883
|
+
* @description Registers renderer config by item type in the registry store.
|
|
2884
|
+
* @param type - Item type key.
|
|
2885
|
+
* @param config - Renderer config for the specified type.
|
|
2886
|
+
*/
|
|
2887
|
+
registerItem(type: string, config: BaseItemRendererConfig): void;
|
|
2888
|
+
/**
|
|
2889
|
+
* @internal
|
|
2890
|
+
* @description Returns renderer config by item type or null when no registration exists.
|
|
2891
|
+
* @param type - Item type key.
|
|
2892
|
+
* @returns Renderer config for the type or `null`.
|
|
2893
|
+
*/
|
|
2894
|
+
getItem<TItem = unknown>(type: string): BaseItemRendererConfig<TItem> | null;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* Represents a set of localizable values.
|
|
2899
|
+
* @internal
|
|
2900
|
+
*/
|
|
2901
|
+
type LocalizableValues<T> = Record<string, T>;
|
|
2902
|
+
/**
|
|
2903
|
+
* Represents a set of localizable strings.
|
|
2904
|
+
* @internal
|
|
2905
|
+
*/
|
|
2906
|
+
type LocalizableStringValues = LocalizableValues<string>;
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* @internal
|
|
2910
|
+
* @description Function that takes a injection token
|
|
2911
|
+
* with context to resolve dependency, and returns dependency instance.
|
|
2912
|
+
*/
|
|
2913
|
+
type InternalResolveDependencyFn = (token: unknown, context?: {
|
|
2914
|
+
id?: string;
|
|
2915
|
+
}) => unknown;
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* @internal
|
|
2919
|
+
*/
|
|
2920
|
+
declare function objectDeepKeys(obj: object): Array<Array<string>>;
|
|
2921
|
+
|
|
2922
|
+
/**
|
|
2923
|
+
* @internal
|
|
2924
|
+
*/
|
|
2925
|
+
declare class HandlersOrderComparer {
|
|
2926
|
+
private readonly _request;
|
|
2927
|
+
private readonly _scopesOrder;
|
|
2928
|
+
constructor(_request: _BaseRequest);
|
|
2929
|
+
private _getOrderByScopes;
|
|
2930
|
+
private _getOrderByPkgTopology;
|
|
2931
|
+
compare(a: HandlerConfig, b: HandlerConfig): number;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* @internal
|
|
2936
|
+
*/
|
|
2937
|
+
declare function instantiate<T = unknown>(type: _Type<T>, resolveDependency: _ResolveDependencyFn | undefined): T;
|
|
2938
|
+
/**
|
|
2939
|
+
* @public
|
|
2940
|
+
* @description For internal use only.
|
|
2941
|
+
*/
|
|
2942
|
+
declare function ɵinstantiate<T = unknown>(type: _Type<T>, resolveDependency: _ResolveDependencyFn | undefined): T;
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* @internal
|
|
2946
|
+
*/
|
|
2947
|
+
declare function applyLocalizeMetadataFn<T extends object>(obj: object, localizeMetadata: _LocalizeFn | undefined): T;
|
|
2948
|
+
|
|
2949
|
+
/**
|
|
2950
|
+
* @internal
|
|
2951
|
+
*/
|
|
2952
|
+
type ViewElementMetadata = ViewElementRegistrationConfig | AngularViewElementRegistrationConfig;
|
|
2953
|
+
/**
|
|
2954
|
+
* @internal
|
|
2955
|
+
*/
|
|
2956
|
+
type InterfaceDesignerItemMetadata = InterfaceDesignerItemDefinition | InternalInterfaceDesignerItemRegistrationConfig;
|
|
2957
|
+
/**
|
|
2958
|
+
* @internal
|
|
2959
|
+
*/
|
|
2960
|
+
type ValidatorMetadata = ValidatorConfig & {
|
|
2961
|
+
typeRef: _Type<BaseValidator>;
|
|
2962
|
+
};
|
|
2963
|
+
/**
|
|
2964
|
+
* @internal
|
|
2965
|
+
*/
|
|
2966
|
+
interface ConverterMetadata {
|
|
2967
|
+
type: string;
|
|
2968
|
+
typeRef: _Type<Converter>;
|
|
2969
|
+
}
|
|
2970
|
+
/**
|
|
2971
|
+
* @internal
|
|
2972
|
+
*/
|
|
2973
|
+
declare function setModuleMetadata(metadata: ModuleDefinition | InternalModuleDefinition, type: _Type): void;
|
|
2974
|
+
/**
|
|
2975
|
+
* @internal
|
|
2976
|
+
*/
|
|
2977
|
+
declare function getModuleMetadata(type: _Type): ModuleDefinition | InternalModuleDefinition;
|
|
2978
|
+
/**
|
|
2979
|
+
* @internal
|
|
2980
|
+
*/
|
|
2981
|
+
declare function setViewElementMetadata(metadata: ViewElementMetadata, type: _Type): void;
|
|
2982
|
+
/**
|
|
2983
|
+
* @internal
|
|
2984
|
+
*/
|
|
2985
|
+
declare function setMobileViewElementMetadata(metadata: ViewElementMetadata, type: _Type): void;
|
|
2986
|
+
/**
|
|
2987
|
+
* @internal
|
|
2988
|
+
*/
|
|
2989
|
+
declare function getViewElementMetadata(type: _Type): ViewElementMetadata;
|
|
2990
|
+
/**
|
|
2991
|
+
* @internal
|
|
2992
|
+
*/
|
|
2993
|
+
declare function getMobileViewElementMetadata(type: _Type): ViewElementMetadata;
|
|
2994
|
+
/**
|
|
2995
|
+
* @internal
|
|
2996
|
+
*/
|
|
2997
|
+
declare function setValidatorMetadata(metadata: ValidatorMetadata, type: _Type): void;
|
|
2998
|
+
/**
|
|
2999
|
+
* @internal
|
|
3000
|
+
*/
|
|
3001
|
+
declare function getValidatorMetadata(type: _Type): ValidatorMetadata;
|
|
3002
|
+
/**
|
|
3003
|
+
* @internal
|
|
3004
|
+
*/
|
|
3005
|
+
declare function setConverterMetadata(metadata: ConverterMetadata, type: _Type): void;
|
|
3006
|
+
/**
|
|
3007
|
+
* @internal
|
|
3008
|
+
*/
|
|
3009
|
+
declare function getConverterMetadata(type: _Type): ConverterMetadata;
|
|
3010
|
+
/**
|
|
3011
|
+
* @internal
|
|
3012
|
+
*/
|
|
3013
|
+
declare function setInterfaceDesignerItemMetadata(metadata: InterfaceDesignerItemMetadata, type: _Type): void;
|
|
3014
|
+
/**
|
|
3015
|
+
* @internal
|
|
3016
|
+
*/
|
|
3017
|
+
declare function setMobileInterfaceDesignerItemMetadata(metadata: InterfaceDesignerItemMetadata, type: _Type): void;
|
|
3018
|
+
/**
|
|
3019
|
+
* @internal
|
|
3020
|
+
*/
|
|
3021
|
+
declare function getInterfaceDesignerItemMetadata(type: _Type): InterfaceDesignerItemMetadata;
|
|
3022
|
+
/**
|
|
3023
|
+
* @internal
|
|
3024
|
+
*/
|
|
3025
|
+
declare function getMobileInterfaceDesignerItemMetadata(type: _Type): InterfaceDesignerItemMetadata;
|
|
3026
|
+
/**
|
|
3027
|
+
* @internal
|
|
3028
|
+
*/
|
|
3029
|
+
declare function setDesignTimeViewElementMetadata(metadata: InternalDesignTimeViewElementRegistryItem, type: _Type): void;
|
|
3030
|
+
/**
|
|
3031
|
+
* @internal
|
|
3032
|
+
*/
|
|
3033
|
+
declare function getDesignTimeViewElementMetadata(type: _Type): InternalDesignTimeViewElementRegistryItem;
|
|
3034
|
+
/**
|
|
3035
|
+
* @internal
|
|
3036
|
+
*/
|
|
3037
|
+
declare function hasInterfaceDesignerItemMetadata(type: _Type): boolean;
|
|
3038
|
+
/**
|
|
3039
|
+
* @internal
|
|
3040
|
+
*/
|
|
3041
|
+
declare function hasMobileInterfaceDesignerItemMetadata(type: _Type): boolean;
|
|
3042
|
+
/**
|
|
3043
|
+
* @internal
|
|
3044
|
+
*/
|
|
3045
|
+
declare function setRequestHandlerMetadata(metadata: RequestHandlerDefinition, type: _Type): void;
|
|
3046
|
+
/**
|
|
3047
|
+
* @internal
|
|
3048
|
+
*/
|
|
3049
|
+
declare function getRequestHandlerMetadata(type: _Type): RequestHandlerDefinition;
|
|
3050
|
+
/**
|
|
3051
|
+
* @internal
|
|
3052
|
+
*/
|
|
3053
|
+
declare function getHandlerChainServiceMetadata(typeRef: _Type): HandlerChainServiceRegistryItem;
|
|
3054
|
+
/**
|
|
3055
|
+
* @internal
|
|
3056
|
+
*/
|
|
3057
|
+
declare function getCrtInputsMetadata(type: _Type): Record<string, CrtInputRegistrationConfig>;
|
|
3058
|
+
/**
|
|
3059
|
+
* @internal
|
|
3060
|
+
*/
|
|
3061
|
+
declare function getCrtOutputsMetadata(type: _Type): Record<string, unknown>;
|
|
3062
|
+
/**
|
|
3063
|
+
* @internal
|
|
3064
|
+
*/
|
|
3065
|
+
declare function getCrtValidationInputsMetadata(type: _Type): Record<string, unknown>;
|
|
3066
|
+
/**
|
|
3067
|
+
* @internal
|
|
3068
|
+
*/
|
|
3069
|
+
declare function getTypeDependencies(type: _Type): unknown[];
|
|
3070
|
+
|
|
3071
|
+
/**
|
|
3072
|
+
* @internal
|
|
3073
|
+
*/
|
|
3074
|
+
declare function matchScopes(handlerScopes?: string[], requestScopes?: string[]): boolean;
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* @internal
|
|
3078
|
+
* Retrieves the deep module dependencies for the given types.
|
|
3079
|
+
*
|
|
3080
|
+
* @param types An array of types.
|
|
3081
|
+
* @returns An array of unique module dependencies.
|
|
3082
|
+
*/
|
|
3083
|
+
declare function getDeepModuleDependencies(types: _Type[]): _Type[];
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* @public
|
|
3087
|
+
* @description Creatio platform interacts with input's of user-defined component through CrtInput decorator.
|
|
3088
|
+
* @param config {@link CrtInputRegistrationConfig}
|
|
3089
|
+
*
|
|
3090
|
+
* @example
|
|
3091
|
+
* export class AppComponent {
|
|
3092
|
+
* @CrtInput()
|
|
3093
|
+
* public value!: string;
|
|
3094
|
+
* }
|
|
3095
|
+
*/
|
|
3096
|
+
declare function CrtInput(config?: CrtInputRegistrationConfig): (target: any, propertyKey: string) => void;
|
|
3097
|
+
|
|
3098
|
+
/**
|
|
3099
|
+
* @public
|
|
3100
|
+
* @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.
|
|
3101
|
+
* @example
|
|
3102
|
+
* export class AppComponent {
|
|
3103
|
+
* @Input()
|
|
3104
|
+
* @CrtOutput()
|
|
3105
|
+
* public valueChange;
|
|
3106
|
+
* }
|
|
3107
|
+
*/
|
|
3108
|
+
declare function CrtOutput(): (target: any, propertyKey: string) => void;
|
|
3109
|
+
|
|
3110
|
+
/**
|
|
3111
|
+
* @public
|
|
3112
|
+
* @description User-defined components receive validationInfo changes through CrtValidationInput decorator.
|
|
3113
|
+
* Make sure you have defined input for every validationInfo input.
|
|
3114
|
+
* To properly declare validationInfo field:
|
|
3115
|
+
* 1. Declare input field inside inputs section. For example `value`
|
|
3116
|
+
* 2. In validationInputs section declare same field which ends with ValidationInfo.
|
|
3117
|
+
* For previous example `valueValidationInfo`
|
|
3118
|
+
*
|
|
3119
|
+
* @example
|
|
3120
|
+
* export class AppComponent {
|
|
3121
|
+
* @CrtInput()
|
|
3122
|
+
public value;
|
|
3123
|
+
*
|
|
3124
|
+
* @CrtValidationInput()
|
|
3125
|
+
* public valueValidationInfo;
|
|
3126
|
+
* }
|
|
3127
|
+
*/
|
|
3128
|
+
declare function CrtValidationInput(): (target: any, propertyKey: string) => void;
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* @public
|
|
3132
|
+
* @description CrtMobileViewElement decorator allows user to declare mobile components in a Creatio platform.
|
|
3133
|
+
* Make sure the component is specified in the viewElements section of CrtModule.
|
|
3134
|
+
* @param config - registration config. {@link ViewElementRegistrationConfig}.
|
|
3135
|
+
*
|
|
3136
|
+
* @example
|
|
3137
|
+
* @CrtMobileViewElement({
|
|
3138
|
+
* type: 'usr.Example',
|
|
3139
|
+
* selector: 'usr-example',
|
|
3140
|
+
* })
|
|
3141
|
+
* export class AppComponent {
|
|
3142
|
+
* @Input()
|
|
3143
|
+
* @CrtInput()
|
|
3144
|
+
* public value!: string;
|
|
3145
|
+
* }
|
|
3146
|
+
*/
|
|
3147
|
+
declare function CrtMobileViewElement(config: ViewElementRegistrationConfig): (type: _Type) => void;
|
|
3148
|
+
/**
|
|
3149
|
+
* @internal
|
|
3150
|
+
*/
|
|
3151
|
+
declare function CrtMobileViewElement(config: CrtAngularViewElementConfig): (type: _Type) => void;
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* @public
|
|
3155
|
+
* @description CrtViewElement decorator allows user to declare components in a Creatio platform.
|
|
3156
|
+
* Make sure the component is specified in the viewElements section of CrtModule.
|
|
3157
|
+
* @param config - registration config. {@link ViewElementRegistrationConfig}.
|
|
3158
|
+
*
|
|
3159
|
+
* @example
|
|
3160
|
+
* @CrtViewElement({
|
|
3161
|
+
* type: 'usr.Example',
|
|
3162
|
+
* selector: 'usr-example',
|
|
3163
|
+
* })
|
|
3164
|
+
* export class AppComponent {
|
|
3165
|
+
* @Input()
|
|
3166
|
+
* @CrtInput()
|
|
3167
|
+
* public value!: string;
|
|
3168
|
+
* }
|
|
3169
|
+
*/
|
|
3170
|
+
declare function CrtViewElement(config: ViewElementRegistrationConfig): (type: _Type) => void;
|
|
3171
|
+
/**
|
|
3172
|
+
* @internal
|
|
3173
|
+
*/
|
|
3174
|
+
declare function CrtViewElement(config: CrtAngularViewElementConfig): (type: _Type) => void;
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* @internal
|
|
3178
|
+
*/
|
|
3179
|
+
type Platform = 'web' | 'mobile';
|
|
3180
|
+
/**
|
|
3181
|
+
* @internal
|
|
3182
|
+
*/
|
|
3183
|
+
declare function viewElementRegister(config: CrtAngularViewElementConfig | ViewElementRegistrationConfig, platform: Platform): (type: _Type) => void;
|
|
3184
|
+
|
|
3185
|
+
/**
|
|
3186
|
+
* @public
|
|
3187
|
+
* @description CrtModule decorator is a 'container' where user actually setup elements.
|
|
3188
|
+
* In could contain viewElements, definitions of other CrtModules.
|
|
3189
|
+
* @param moduleDefinition - {@link ModuleDefinition}
|
|
3190
|
+
*
|
|
3191
|
+
* @example
|
|
3192
|
+
* @CrtModule({
|
|
3193
|
+
* viewElements: [AppComponent],
|
|
3194
|
+
* requestHandlers: [SomeRequestHandler],
|
|
3195
|
+
* validators: [SomeValidator],
|
|
3196
|
+
* })
|
|
3197
|
+
* @NgModule({
|
|
3198
|
+
* declarations: [AppComponent],
|
|
3199
|
+
* imports: [BrowserModule],
|
|
3200
|
+
* providers: [],
|
|
3201
|
+
* })
|
|
3202
|
+
* export class AppModule {}
|
|
3203
|
+
*/
|
|
3204
|
+
declare function CrtModule(moduleDefinition: ModuleDefinition): (type: _Type) => void;
|
|
3205
|
+
/**
|
|
3206
|
+
* @internal
|
|
3207
|
+
*/
|
|
3208
|
+
declare function CrtModule(moduleDefinition: InternalModuleDefinition): (type: _Type) => void;
|
|
3209
|
+
/**
|
|
3210
|
+
* @internal
|
|
3211
|
+
*/
|
|
3212
|
+
declare function CrtModule(moduleDefinition: ModuleDefinition | InternalModuleDefinition): (type: _Type) => void;
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* @public
|
|
3216
|
+
* @description (Deprecated) Decorator to declare design time configuration for a view element that is
|
|
3217
|
+
* registered eagerly during module bootstrap.
|
|
3218
|
+
*
|
|
3219
|
+
* @deprecated For new remote integrations, publish interface-designer metadata through
|
|
3220
|
+
* {@link RemoteFeatureDefinition.loadDesignerDefinitions} instead of using this decorator.
|
|
3221
|
+
* Existing remotes may keep using this decorator for backward compatibility, but should migrate
|
|
3222
|
+
* to {@link RemoteEntryDefinition} and {@link RemoteFeatureDefinition} when updated.
|
|
3223
|
+
*
|
|
3224
|
+
* @param config - registration config {@link InterfaceDesignerItemDefinition}.
|
|
3225
|
+
*
|
|
3226
|
+
* @example
|
|
3227
|
+
* @CrtViewElement({
|
|
3228
|
+
* type: "usr.Example',
|
|
3229
|
+
* selector: 'usr-example',
|
|
3230
|
+
* })
|
|
3231
|
+
* @CrtInterfaceDesignerItem({
|
|
3232
|
+
* toolbarConfig: {
|
|
3233
|
+
* caption: 'usrExampleCaption',
|
|
3234
|
+
* icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
|
|
3235
|
+
* hint: 'usrExampleHint',
|
|
3236
|
+
* defaultPropertyValues: {
|
|
3237
|
+
* value: 'This is default value',
|
|
3238
|
+
* },
|
|
3239
|
+
* },
|
|
3240
|
+
* })
|
|
3241
|
+
* @Component({
|
|
3242
|
+
* selector: 'usr-example',
|
|
3243
|
+
* templateUrl: './app.component.html',
|
|
3244
|
+
* styleUrls: ['./app.component.scss'],
|
|
3245
|
+
* encapsulation: ViewEncapsulation.ShadowDom,
|
|
3246
|
+
* })
|
|
3247
|
+
* export class AppComponent {
|
|
3248
|
+
* @Input()
|
|
3249
|
+
* @CrtInput()
|
|
3250
|
+
* public value!: string;
|
|
3251
|
+
* }
|
|
3252
|
+
*/
|
|
3253
|
+
declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: _Type) => void;
|
|
3254
|
+
|
|
3255
|
+
/**
|
|
3256
|
+
* @internal
|
|
3257
|
+
*/
|
|
3258
|
+
declare function interfaceDesignerItemRegister(config: InterfaceDesignerItemDefinition | InternalInterfaceDesignerItemRegistrationConfig, platform: Platform): (type: _Type) => void;
|
|
3259
|
+
|
|
3260
|
+
/**
|
|
3261
|
+
* @public
|
|
3262
|
+
* @description (Deprecated) Decorator to declare design time configuration for a mobile view element that is
|
|
3263
|
+
* registered eagerly during module bootstrap.
|
|
3264
|
+
*
|
|
3265
|
+
* @deprecated For new remote integrations, publish interface-designer metadata through
|
|
3266
|
+
* {@link RemoteFeatureDefinition.loadDesignerDefinitions} instead of using this decorator.
|
|
3267
|
+
* Existing remotes may keep using this decorator for backward compatibility, but should migrate
|
|
3268
|
+
* to {@link RemoteEntryDefinition} and {@link RemoteFeatureDefinition} when updated.
|
|
3269
|
+
*
|
|
3270
|
+
* @param config - registration config {@link InterfaceDesignerItemDefinition}.
|
|
3271
|
+
*
|
|
3272
|
+
* @example
|
|
3273
|
+
* @CrtMobileViewElement({
|
|
3274
|
+
* type: "usr.Example',
|
|
3275
|
+
* selector: 'usr-example',
|
|
3276
|
+
* })
|
|
3277
|
+
* @CrtMobileInterfaceDesignerItem({
|
|
3278
|
+
* toolbarConfig: {
|
|
3279
|
+
* caption: 'usrExampleCaption',
|
|
3280
|
+
* icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
|
|
3281
|
+
* hint: 'usrExampleHint',
|
|
3282
|
+
* defaultPropertyValues: {
|
|
3283
|
+
* value: 'This is default value',
|
|
3284
|
+
* },
|
|
3285
|
+
* },
|
|
3286
|
+
* })
|
|
3287
|
+
* @Component({
|
|
3288
|
+
* selector: 'usr-example',
|
|
3289
|
+
* templateUrl: './app.component.html',
|
|
3290
|
+
* styleUrls: ['./app.component.scss'],
|
|
3291
|
+
* encapsulation: ViewEncapsulation.ShadowDom,
|
|
3292
|
+
* })
|
|
3293
|
+
* export class AppComponent {
|
|
3294
|
+
* @Input()
|
|
3295
|
+
* @CrtInput()
|
|
3296
|
+
* public value!: string;
|
|
3297
|
+
* }
|
|
3298
|
+
*/
|
|
3299
|
+
declare function CrtMobileInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: _Type) => void;
|
|
3300
|
+
|
|
3301
|
+
/**
|
|
3302
|
+
* @public
|
|
3303
|
+
* @description
|
|
3304
|
+
* Constructor parameter decorator.
|
|
3305
|
+
* Mark parameter as dependency that should be obtained by token.
|
|
3306
|
+
* @param token - token by which the dependency instance will be obtained
|
|
3307
|
+
* @example
|
|
3308
|
+
* class MyHandler {
|
|
3309
|
+
* constructor(@CrtInject(USER_NAME_TOKEN) userName: string) {}
|
|
3310
|
+
* }
|
|
3311
|
+
*/
|
|
3312
|
+
declare function CrtInject(token: unknown): any;
|
|
3313
|
+
|
|
3314
|
+
/**
|
|
3315
|
+
* @public
|
|
3316
|
+
* @description Decorator to declare validator
|
|
3317
|
+
* @param config - validator config {@link ValidatorConfig}.
|
|
3318
|
+
* If no config is passed, the validator cannot be declared, but can be used as a base class for another validator.
|
|
3319
|
+
*
|
|
3320
|
+
* @example
|
|
3321
|
+
* @CrtValidator({
|
|
3322
|
+
* type: 'crt.Required',
|
|
3323
|
+
* })
|
|
3324
|
+
* export class RequiredValidator extends BaseValidator {
|
|
3325
|
+
* protected override async = false;
|
|
3326
|
+
* public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {
|
|
3327
|
+
* Implementation here...
|
|
3328
|
+
* }
|
|
3329
|
+
* }
|
|
3330
|
+
*/
|
|
3331
|
+
declare function CrtValidator(config: ValidatorConfig): (type: _Type) => void;
|
|
3332
|
+
declare function CrtValidator(): (type: _Type | _AbstractType) => void;
|
|
3333
|
+
|
|
3334
|
+
/**
|
|
3335
|
+
* @public
|
|
3336
|
+
* @description Decorator to declare request handler
|
|
3337
|
+
* @param config - request handler config {@link RequestHandlerRegistrationConfig}.
|
|
3338
|
+
* If no config is passed, the handler cannot be declared, but can be used as a base class for another handler.
|
|
3339
|
+
*
|
|
3340
|
+
* @example
|
|
3341
|
+
* *@CrtRequestHandler({
|
|
3342
|
+
* requestType: 'crt.SomeRequest',
|
|
3343
|
+
* type: 'crt.SomeRequestHandler',
|
|
3344
|
+
* })
|
|
3345
|
+
* export class SectionInitHandler extends BaseRequestHandler<SomeRequest> {
|
|
3346
|
+
* public async handle(request: SomeRequest): Promise<unknown> {
|
|
3347
|
+
* // Some business logic
|
|
3348
|
+
* return this.next?.handle(request);
|
|
3349
|
+
* }
|
|
3350
|
+
* }
|
|
3351
|
+
*/
|
|
3352
|
+
declare function CrtRequestHandler<T extends _RequestHandler>(config: RequestHandlerDefinition): (type: _Type<T>) => void;
|
|
3353
|
+
declare function CrtRequestHandler(): (type: _Type | _AbstractType) => void;
|
|
3354
|
+
|
|
3355
|
+
/**
|
|
3356
|
+
* @public
|
|
3357
|
+
* @description Decorator to declare converter
|
|
3358
|
+
* @param config - converter config {@link ConverterConfig}.
|
|
3359
|
+
* if config is not passed, converter won't be declared,
|
|
3360
|
+
* but still can be used as base class for another converter
|
|
3361
|
+
*
|
|
3362
|
+
* @example
|
|
3363
|
+
* @CrtConverter({
|
|
3364
|
+
* type: 'usr.ToBoolean',
|
|
3365
|
+
* })
|
|
3366
|
+
* export class ToBooleanConverter implements Converter<unknown, boolean> {
|
|
3367
|
+
* public convert(value: unknown): boolean {
|
|
3368
|
+
* return Boolean(value);
|
|
3369
|
+
* }
|
|
3370
|
+
* }
|
|
3371
|
+
*/
|
|
3372
|
+
declare function CrtConverter(config: ConverterConfig): (type: _Type) => void;
|
|
3373
|
+
declare function CrtConverter(): (type: _Type | _AbstractType) => void;
|
|
3374
|
+
|
|
3375
|
+
/**
|
|
3376
|
+
* @public
|
|
3377
|
+
* @description Config used to register component as a message type in chat.
|
|
3378
|
+
*/
|
|
3379
|
+
interface ChatMessageTypeRegistrationConfig {
|
|
3380
|
+
/**
|
|
3381
|
+
* @description component tag selector; Element appears in DOM with this selector.
|
|
3382
|
+
*/
|
|
3383
|
+
selector: string;
|
|
3384
|
+
/**
|
|
3385
|
+
* @description type of message.
|
|
3386
|
+
*/
|
|
3387
|
+
messageType: string;
|
|
3388
|
+
}
|
|
3389
|
+
/**
|
|
3390
|
+
* @public
|
|
3391
|
+
* @description CrtChatMessageType decorator allows user to register components as a message type in chat.
|
|
3392
|
+
* @param config - registration config. {@link ChatMessageTypeRegistrationConfig}.
|
|
3393
|
+
*
|
|
3394
|
+
* @example
|
|
3395
|
+
* @CrtChatMessageType({
|
|
3396
|
+
* selector: 'usr-video-message',
|
|
3397
|
+
* messageType: 'video',
|
|
3398
|
+
* })
|
|
3399
|
+
* export class AppComponent { }
|
|
3400
|
+
*/
|
|
3401
|
+
declare function CrtChatMessageType(config: ChatMessageTypeRegistrationConfig): (type: _Type) => void;
|
|
3402
|
+
|
|
3403
|
+
/**
|
|
3404
|
+
* @public
|
|
3405
|
+
* @description Function allows to register user-defined component as view element in Creatio platform.
|
|
3406
|
+
* @param config - registration config. {@link ViewElementRegistrationConfig}
|
|
3407
|
+
* @example
|
|
3408
|
+
* sdk.registerViewElement({
|
|
3409
|
+
* type: 'usr.Timeline',
|
|
3410
|
+
* selector: 'usr-timeline',
|
|
3411
|
+
* inputs: {
|
|
3412
|
+
* primaryColumnValue: {},
|
|
3413
|
+
* cardSchemaName: {},
|
|
3414
|
+
* entitySchemaName: {}
|
|
3415
|
+
* }
|
|
3416
|
+
* });
|
|
3417
|
+
*/
|
|
3418
|
+
declare function registerViewElement(config: ViewElementRegistrationConfig): void;
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* @internal
|
|
3422
|
+
* @description Function allows to register angular component as view element in Creatio platform.
|
|
3423
|
+
*/
|
|
3424
|
+
declare function registerAngularViewElement(config: BaseViewElementRegistrationConfig, typeRef: _Type): void;
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
* @public
|
|
3428
|
+
* @description Module bootstrap options
|
|
3429
|
+
*/
|
|
3430
|
+
interface BootstrapOptions {
|
|
3431
|
+
/**
|
|
3432
|
+
* Function to be used to translate localizable values of class metadata
|
|
3433
|
+
*/
|
|
3434
|
+
localizeMetadata?: _LocalizeFn;
|
|
3435
|
+
/**
|
|
3436
|
+
* Function to be used to resolve class dependencies
|
|
3437
|
+
*/
|
|
3438
|
+
resolveDependency?: _ResolveDependencyFn;
|
|
3439
|
+
/**
|
|
3440
|
+
* @internal
|
|
3441
|
+
*/
|
|
3442
|
+
moduleType?: 'host' | 'remote';
|
|
3443
|
+
/**
|
|
3444
|
+
* @internal
|
|
3445
|
+
*/
|
|
3446
|
+
featureValues?: {
|
|
3447
|
+
[key: string]: boolean;
|
|
3448
|
+
};
|
|
3449
|
+
/**
|
|
3450
|
+
* @internal
|
|
3451
|
+
* @experimental
|
|
3452
|
+
*/
|
|
3453
|
+
onContextCreate?: (context: InjectionContext) => void;
|
|
3454
|
+
/**
|
|
3455
|
+
* @internal
|
|
3456
|
+
* @experimental
|
|
3457
|
+
*/
|
|
3458
|
+
onContextUpdate?: (context: InjectionContext) => void;
|
|
3459
|
+
/**
|
|
3460
|
+
* @internal
|
|
3461
|
+
* @experimental
|
|
3462
|
+
*/
|
|
3463
|
+
onContextDestroy?: (context: InjectionContext) => void;
|
|
3464
|
+
}
|
|
3465
|
+
/**
|
|
3466
|
+
* @internal
|
|
3467
|
+
*/
|
|
3468
|
+
declare function bootstrapCrtModule(type: _Type, options: BootstrapOptions & {
|
|
3469
|
+
moduleType: 'host';
|
|
3470
|
+
}): void;
|
|
3471
|
+
/**
|
|
3472
|
+
* @public
|
|
3473
|
+
* @description Function required to bootstrapping elements defined in CrtModules.
|
|
3474
|
+
* Call this function as soon as possible during bootstrapping your application.
|
|
3475
|
+
* @param type - module type
|
|
3476
|
+
* @param options - {@link BootstrapOptions}
|
|
3477
|
+
*
|
|
3478
|
+
* @example
|
|
3479
|
+
* bootstrapCrtModule(AppModule)
|
|
3480
|
+
*/
|
|
3481
|
+
declare function bootstrapCrtModule(remoteName: string, type: _Type, options?: BootstrapOptions): void;
|
|
3482
|
+
/**
|
|
3483
|
+
* @public
|
|
3484
|
+
* @deprecated
|
|
3485
|
+
*/
|
|
3486
|
+
declare function bootstrapCrtModule(type: _Type, options?: BootstrapOptions): void;
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* @public
|
|
3490
|
+
* @description Use this function in decorators to indicate that a value should be localized.
|
|
3491
|
+
* Note that the "localizeMetadata" bootstrap option should be provided,
|
|
3492
|
+
* otherwise the value cannot be localized.
|
|
3493
|
+
*
|
|
3494
|
+
* @example
|
|
3495
|
+
*
|
|
3496
|
+
* ### Using 'localize' in decorator
|
|
3497
|
+
* ```ts
|
|
3498
|
+
* @CrtInterfaceDesignerItem({
|
|
3499
|
+
* toolbarConfig: {
|
|
3500
|
+
* caption: localize('MyElement.Caption')
|
|
3501
|
+
* }
|
|
3502
|
+
* })
|
|
3503
|
+
* class MyElement {}
|
|
3504
|
+
* ```
|
|
3505
|
+
* ### Passing 'localizeMetadata' bootstrap option
|
|
3506
|
+
* ```ts
|
|
3507
|
+
* bootstrapCrtModule(MyModule, {
|
|
3508
|
+
* localizeMetadata: (key: string) => thirdPartyTranslateService.translate(key)
|
|
3509
|
+
* });
|
|
3510
|
+
* ```
|
|
3511
|
+
*/
|
|
3512
|
+
declare function localize(key: string): LocalizableValue;
|
|
3513
|
+
|
|
3514
|
+
/**
|
|
3515
|
+
* @internal
|
|
3516
|
+
*/
|
|
3517
|
+
declare function bootstrapCrtModuleHandlerChainServices(type: _Type): void;
|
|
3518
|
+
|
|
3519
|
+
/**
|
|
3520
|
+
* @internal
|
|
3521
|
+
* Clears global registries, resets state of global services.
|
|
3522
|
+
* Can be used in unit tests to clear global registries after bootstrapping module.
|
|
3523
|
+
* @example
|
|
3524
|
+
* beforeEach(() => {
|
|
3525
|
+
* bootstrapCrtModule('test', TestModule);
|
|
3526
|
+
* });
|
|
3527
|
+
*
|
|
3528
|
+
* afterEach(() => {
|
|
3529
|
+
* resetGlobals();
|
|
3530
|
+
* });
|
|
3531
|
+
*/
|
|
3532
|
+
declare function resetGlobals(): void;
|
|
3533
|
+
|
|
3534
|
+
/**
|
|
3535
|
+
* @internal
|
|
3536
|
+
*/
|
|
3537
|
+
type BootstrappedCrtModules = Map<_Type, {
|
|
3538
|
+
root: boolean;
|
|
3539
|
+
options: BootstrapOptions;
|
|
3540
|
+
source: string;
|
|
3541
|
+
}>;
|
|
3542
|
+
/**
|
|
3543
|
+
* @internal
|
|
3544
|
+
*/
|
|
3545
|
+
declare const bootstrappedCrtModules: BootstrappedCrtModules;
|
|
3546
|
+
|
|
3547
|
+
/**
|
|
3548
|
+
* @internal
|
|
3549
|
+
*/
|
|
3550
|
+
declare function callOnContextCreateHooks(context: InjectionContext): void;
|
|
3551
|
+
/**
|
|
3552
|
+
* @internal
|
|
3553
|
+
*/
|
|
3554
|
+
declare function callOnContextUpdateHooks(context: InjectionContext): void;
|
|
3555
|
+
/**
|
|
3556
|
+
* @internal
|
|
3557
|
+
*/
|
|
3558
|
+
declare function callOnContextDestroyHooks(context: InjectionContext): void;
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* @internal
|
|
3562
|
+
* @description Defines render configuration for view element.
|
|
3563
|
+
*/
|
|
3564
|
+
declare function defineRenderConfig(config: OnViewportRenderConfig | DefaultRenderConfig): void;
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* Service for managing AI context parts and providing a unified context.
|
|
3568
|
+
* This service allows adding, retrieving, and removing context parts, which can be
|
|
3569
|
+
* either static values, promises, or dynamically provided through a function.
|
|
3570
|
+
*/
|
|
3571
|
+
declare class AiContextService {
|
|
3572
|
+
private _contextParts;
|
|
3573
|
+
/**
|
|
3574
|
+
* Retrieves the singleton instance of the `AiContextService`.
|
|
3575
|
+
* If the instance does not exist, it will be created.
|
|
3576
|
+
*/
|
|
3577
|
+
static get instance(): AiContextService;
|
|
3578
|
+
/**
|
|
3579
|
+
* Generates a unique identifier for a context part.
|
|
3580
|
+
* @returns A string representing a unique identifier.
|
|
3581
|
+
*/
|
|
3582
|
+
private _generateId;
|
|
3583
|
+
/**
|
|
3584
|
+
* @public
|
|
3585
|
+
* Adds a new context part to the service.
|
|
3586
|
+
* The context part can be a static value, a promise, or a function that provides the value.
|
|
3587
|
+
*
|
|
3588
|
+
* @param value - The context part to add. It can be one of the following:
|
|
3589
|
+
* - `ContextProvider` (a function that provides the context part)
|
|
3590
|
+
* @param id - (Optional) A unique identifier for the context part. If not provided, a new ID will be generated.
|
|
3591
|
+
* @returns The unique identifier of the added context part.
|
|
3592
|
+
*/
|
|
3593
|
+
setContextPart(value: ContextProvider, id?: string): string;
|
|
3594
|
+
/**
|
|
3595
|
+
* @public
|
|
3596
|
+
* Retrieves all context parts as an array of resolved values.
|
|
3597
|
+
* If the context parts include promises or functions, they will be resolved.
|
|
3598
|
+
*
|
|
3599
|
+
* @returns A promise that resolves to an array of context parts, which can be
|
|
3600
|
+
* either `CreatioPageContextPart` or `ConstantValuesContextPart`.
|
|
3601
|
+
*/
|
|
3602
|
+
getContext(): Promise<(CreatioPageContextPart | ConstantValuesContextPart)[]>;
|
|
3603
|
+
/**
|
|
3604
|
+
* @public
|
|
3605
|
+
* Removes a specific context part by its unique identifier.
|
|
3606
|
+
*
|
|
3607
|
+
* @param id - The unique identifier of the context part to remove.
|
|
3608
|
+
*/
|
|
3609
|
+
removeContextPart(id: string): void;
|
|
3610
|
+
/**
|
|
3611
|
+
* @public
|
|
3612
|
+
* Removes all context parts from the service.
|
|
3613
|
+
*/
|
|
3614
|
+
removeContext(): void;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* @public
|
|
3619
|
+
* @classdesc Service to handling a way of tasks execution in Creatio plaform
|
|
3620
|
+
* @extends {BaseHandlerChainService}
|
|
3621
|
+
*/
|
|
3622
|
+
declare class CrtZoneService extends BaseHandlerChainService {
|
|
3623
|
+
/**
|
|
3624
|
+
* @internal
|
|
3625
|
+
*/
|
|
3626
|
+
readonly requestType = "crt.ZoneService";
|
|
3627
|
+
/**
|
|
3628
|
+
* @description Method designed to run task outside of Creatio zone
|
|
3629
|
+
* @param {Function} callback - task which should be executed outside of tracking CrtZone
|
|
3630
|
+
* @returns `unknown`
|
|
3631
|
+
*/
|
|
3632
|
+
runOutside: (callback: () => unknown) => unknown;
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
/**
|
|
3636
|
+
* @public
|
|
3637
|
+
* @classdesc Service to working with dialog using handler chain.
|
|
3638
|
+
* @extends {BaseHandlerChainService}
|
|
3639
|
+
*/
|
|
3640
|
+
declare class DialogService extends BaseHandlerChainService implements _BaseDialogService {
|
|
3641
|
+
/**
|
|
3642
|
+
* @internal
|
|
3643
|
+
*/
|
|
3644
|
+
readonly requestType = "crt.DialogService";
|
|
3645
|
+
/**
|
|
3646
|
+
* @description Opens dialog window.
|
|
3647
|
+
* @param {BaseDialogConfig<BaseDialogButtonConfig>} config - The configuration of dialog window.
|
|
3648
|
+
* @returns `Promise<string>`.
|
|
3649
|
+
* The result of a user's choice.
|
|
3650
|
+
*/
|
|
3651
|
+
open: (config: _BaseDialogConfig<_BaseDialogButtonConfig>) => Promise<string>;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* @public
|
|
3656
|
+
* @classdesc Service to working with Creatio platform features using handler chain
|
|
3657
|
+
* @extends {BaseHandlerChainService}
|
|
3658
|
+
*/
|
|
3659
|
+
declare class FeatureService extends BaseHandlerChainService {
|
|
3660
|
+
/**
|
|
3661
|
+
* @internal
|
|
3662
|
+
*/
|
|
3663
|
+
readonly requestType = "crt.FeatureService";
|
|
3664
|
+
/**
|
|
3665
|
+
* @description Method designed to get state for single feature
|
|
3666
|
+
* @param {string} code - feature code
|
|
3667
|
+
* @returns `Promise<boolean>`
|
|
3668
|
+
*/
|
|
3669
|
+
getFeatureState: (code: string) => Promise<boolean>;
|
|
3670
|
+
/**
|
|
3671
|
+
* @description Method designed to get feature states
|
|
3672
|
+
* @param {string[]} codes - feature codes
|
|
3673
|
+
* @returns `Promise<boolean[]>`
|
|
3674
|
+
*/
|
|
3675
|
+
getFeaturesState: (codes: string[]) => Promise<boolean[]>;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
/**
|
|
3679
|
+
* @public
|
|
3680
|
+
* @description Key-value shape for HttpHeaders
|
|
3681
|
+
*/
|
|
3682
|
+
interface HttpHeaders {
|
|
3683
|
+
[header: string]: string;
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
/**
|
|
3687
|
+
* @public
|
|
3688
|
+
* @description Http response
|
|
3689
|
+
* @template T
|
|
3690
|
+
* @property {HttpHeaders} headers - response headers {@link HttpHeaders}
|
|
3691
|
+
* @property {number} status - response status
|
|
3692
|
+
* @property {string} statusText - text of response
|
|
3693
|
+
* @property {string | null} url - response url
|
|
3694
|
+
* @property {boolean} ok - ok status
|
|
3695
|
+
* @property {T | null} body - response body
|
|
3696
|
+
*/
|
|
3697
|
+
interface HttpResponse<T = unknown> {
|
|
3698
|
+
/**
|
|
3699
|
+
* @description response headers {@link HttpHeaders}
|
|
3700
|
+
*/
|
|
3701
|
+
headers: HttpHeaders;
|
|
3702
|
+
/**
|
|
3703
|
+
* @description response status
|
|
3704
|
+
*/
|
|
3705
|
+
status: number;
|
|
3706
|
+
/**
|
|
3707
|
+
* @description text of response
|
|
3708
|
+
*/
|
|
3709
|
+
statusText: string;
|
|
3710
|
+
/**
|
|
3711
|
+
* @description response url
|
|
3712
|
+
*/
|
|
3713
|
+
url: string | null;
|
|
3714
|
+
/**
|
|
3715
|
+
* @description ok status
|
|
3716
|
+
*/
|
|
3717
|
+
ok: boolean;
|
|
3718
|
+
/**
|
|
3719
|
+
* @description response body
|
|
3720
|
+
*/
|
|
3721
|
+
body: T | null;
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
/**
|
|
3725
|
+
* @public
|
|
3726
|
+
* @classdesc Http service to perform Http requests
|
|
3727
|
+
* @extends {BaseHandlerChainService}
|
|
3728
|
+
*/
|
|
3729
|
+
declare class HttpClientService extends BaseHandlerChainService {
|
|
3730
|
+
/**
|
|
3731
|
+
* @internal
|
|
3732
|
+
*/
|
|
3733
|
+
readonly requestType = "crt.HttpClientService";
|
|
3734
|
+
get(url: string, options: {
|
|
3735
|
+
headers?: HttpHeaders;
|
|
3736
|
+
responseType: 'arraybuffer';
|
|
3737
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
3738
|
+
get(url: string, options: {
|
|
3739
|
+
headers?: HttpHeaders;
|
|
3740
|
+
responseType: 'blob';
|
|
3741
|
+
}): Promise<HttpResponse<Blob>>;
|
|
3742
|
+
get(url: string, options: {
|
|
3743
|
+
headers?: HttpHeaders;
|
|
3744
|
+
responseType: 'text';
|
|
3745
|
+
}): Promise<HttpResponse<string>>;
|
|
3746
|
+
get(url: string, options: {
|
|
3747
|
+
headers?: HttpHeaders;
|
|
3748
|
+
responseType?: 'json';
|
|
3749
|
+
}): Promise<HttpResponse>;
|
|
3750
|
+
get<T>(url: string, options: {
|
|
3751
|
+
headers?: HttpHeaders;
|
|
3752
|
+
responseType?: 'json';
|
|
3753
|
+
}): Promise<HttpResponse<T>>;
|
|
3754
|
+
post(url: string, body: unknown | null, options: {
|
|
3755
|
+
headers?: HttpHeaders;
|
|
3756
|
+
responseType: 'arraybuffer';
|
|
3757
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
3758
|
+
post(url: string, body: unknown | null, options: {
|
|
3759
|
+
headers?: HttpHeaders;
|
|
3760
|
+
responseType: 'blob';
|
|
3761
|
+
}): Promise<HttpResponse<Blob>>;
|
|
3762
|
+
post(url: string, body: unknown | null, options: {
|
|
3763
|
+
headers?: HttpHeaders;
|
|
3764
|
+
responseType: 'text';
|
|
3765
|
+
}): Promise<HttpResponse<string>>;
|
|
3766
|
+
post(url: string, body: unknown | null, options: {
|
|
3767
|
+
headers?: HttpHeaders;
|
|
3768
|
+
responseType?: 'json';
|
|
3769
|
+
}): Promise<HttpResponse>;
|
|
3770
|
+
post<T>(url: string, body: unknown | null, options: {
|
|
3771
|
+
headers?: HttpHeaders;
|
|
3772
|
+
responseType?: 'json';
|
|
3773
|
+
}): Promise<HttpResponse<T>>;
|
|
3774
|
+
delete(url: string, options: {
|
|
3775
|
+
headers?: HttpHeaders;
|
|
3776
|
+
responseType: 'arraybuffer';
|
|
3777
|
+
body?: unknown | null;
|
|
3778
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
3779
|
+
delete(url: string, options: {
|
|
3780
|
+
headers?: HttpHeaders;
|
|
3781
|
+
responseType: 'blob';
|
|
3782
|
+
body?: unknown | null;
|
|
3783
|
+
}): Promise<HttpResponse<Blob>>;
|
|
3784
|
+
delete(url: string, options: {
|
|
3785
|
+
headers?: HttpHeaders;
|
|
3786
|
+
responseType: 'text';
|
|
3787
|
+
body?: unknown | null;
|
|
3788
|
+
}): Promise<HttpResponse<string>>;
|
|
3789
|
+
delete(url: string, options: {
|
|
3790
|
+
headers?: HttpHeaders;
|
|
3791
|
+
responseType?: 'json';
|
|
3792
|
+
body?: unknown | null;
|
|
3793
|
+
}): Promise<HttpResponse>;
|
|
3794
|
+
delete<T>(url: string, options: {
|
|
3795
|
+
headers?: HttpHeaders;
|
|
3796
|
+
responseType?: 'json';
|
|
3797
|
+
body?: unknown | null;
|
|
3798
|
+
}): Promise<HttpResponse<T>>;
|
|
3799
|
+
put(url: string, body: unknown | null, options: {
|
|
3800
|
+
headers?: HttpHeaders;
|
|
3801
|
+
responseType: 'arraybuffer';
|
|
3802
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
3803
|
+
put(url: string, body: unknown | null, options: {
|
|
3804
|
+
headers?: HttpHeaders;
|
|
3805
|
+
responseType: 'blob';
|
|
3806
|
+
}): Promise<HttpResponse<Blob>>;
|
|
3807
|
+
put(url: string, body: unknown | null, options: {
|
|
3808
|
+
headers?: HttpHeaders;
|
|
3809
|
+
responseType: 'text';
|
|
3810
|
+
}): Promise<HttpResponse<string>>;
|
|
3811
|
+
put(url: string, body: unknown | null, options: {
|
|
3812
|
+
headers?: HttpHeaders;
|
|
3813
|
+
responseType?: 'json';
|
|
3814
|
+
}): Promise<HttpResponse>;
|
|
3815
|
+
put<T>(url: string, body: unknown | null, options: {
|
|
3816
|
+
headers?: HttpHeaders;
|
|
3817
|
+
responseType?: 'json';
|
|
3818
|
+
}): Promise<HttpResponse<T>>;
|
|
3819
|
+
patch(url: string, body: unknown | null, options: {
|
|
3820
|
+
headers?: HttpHeaders;
|
|
3821
|
+
responseType: 'arraybuffer';
|
|
3822
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
3823
|
+
patch(url: string, body: unknown | null, options: {
|
|
3824
|
+
headers?: HttpHeaders;
|
|
3825
|
+
responseType: 'blob';
|
|
3826
|
+
}): Promise<HttpResponse<Blob>>;
|
|
3827
|
+
patch(url: string, body: unknown | null, options: {
|
|
3828
|
+
headers?: HttpHeaders;
|
|
3829
|
+
responseType: 'text';
|
|
3830
|
+
}): Promise<HttpResponse<string>>;
|
|
3831
|
+
patch(url: string, body: unknown | null, options: {
|
|
3832
|
+
headers?: HttpHeaders;
|
|
3833
|
+
responseType?: 'json';
|
|
3834
|
+
}): Promise<HttpResponse>;
|
|
3835
|
+
patch<T>(url: string, body: unknown | null, options: {
|
|
3836
|
+
headers?: HttpHeaders;
|
|
3837
|
+
responseType?: 'json';
|
|
3838
|
+
}): Promise<HttpResponse<T>>;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
/**
|
|
3842
|
+
* @public
|
|
3843
|
+
* @classdesc Represents a service to working with license restrictions.
|
|
3844
|
+
* @extends {BaseHandlerChainService}
|
|
3845
|
+
*/
|
|
3846
|
+
declare class LicenseService extends BaseHandlerChainService {
|
|
3847
|
+
/**
|
|
3848
|
+
* @internal
|
|
3849
|
+
*/
|
|
3850
|
+
readonly requestType = "crt.LicenseService";
|
|
3851
|
+
/**
|
|
3852
|
+
* @description Receives status of license operations by post http request.
|
|
3853
|
+
* @param operationCodes - The license operation names.
|
|
3854
|
+
* @returns `Promise<LicenseRestrictionOperationValues[]>`
|
|
3855
|
+
* An object with keys as operations codes and values as operation statuses.
|
|
3856
|
+
*/
|
|
3857
|
+
getLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
|
|
3858
|
+
/**
|
|
3859
|
+
* Receives status of explicit license operations by post http request.
|
|
3860
|
+
* @param operationCodes - The license operation names.
|
|
3861
|
+
* @returns `Promise<LicenseRestrictionOperationValues[]>`
|
|
3862
|
+
* An object with keys as operations codes and values as operation statuses.
|
|
3863
|
+
*/
|
|
3864
|
+
getExplicitLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
|
|
3865
|
+
/**
|
|
3866
|
+
* @deprecated Use `getExplicitLicenseOperationStatuses` instead.
|
|
3867
|
+
* @description Loads status of license operations.
|
|
3868
|
+
* @param {string[]} operationCodes - The license operation names.
|
|
3869
|
+
* @returns `Promise<LicenseRestrictionOperationValues>`
|
|
3870
|
+
* An object with keys as operations codes and values as operation statuses.
|
|
3871
|
+
*/
|
|
3872
|
+
loadLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3875
|
+
/**
|
|
3876
|
+
* @public
|
|
3877
|
+
* @classdesc Service to working with mask using handler chain
|
|
3878
|
+
* @extends {BaseHandlerChainService}
|
|
3879
|
+
*/
|
|
3880
|
+
declare class MaskService extends BaseHandlerChainService {
|
|
3881
|
+
/**
|
|
3882
|
+
* @internal
|
|
3883
|
+
*/
|
|
3884
|
+
readonly requestType = "crt.MaskService";
|
|
3885
|
+
/**
|
|
3886
|
+
* @description Method to show body mask on the page
|
|
3887
|
+
* @param {MaskSettings} settings - mask settings {@link MaskSettings}
|
|
3888
|
+
*/
|
|
3889
|
+
showBodyMask: (settings?: MaskSettings) => Promise<void>;
|
|
3890
|
+
/**
|
|
3891
|
+
* @description Method to hide body mask
|
|
3892
|
+
*/
|
|
3893
|
+
hideBodyMask: () => Promise<void>;
|
|
3894
|
+
/**
|
|
3895
|
+
* @internal
|
|
3896
|
+
* @param taskName
|
|
3897
|
+
* @param context
|
|
3898
|
+
*/
|
|
3899
|
+
showMask(taskName: string, context: _ViewModelContext): Promise<void>;
|
|
3900
|
+
/**
|
|
3901
|
+
* @internal
|
|
3902
|
+
* @param taskName
|
|
3903
|
+
* @param context
|
|
3904
|
+
*/
|
|
3905
|
+
hideMask(taskName: string, context: _ViewModelContext): Promise<void>;
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
/**
|
|
3909
|
+
* @public
|
|
3910
|
+
* @classdesc Service for working with messages sent or received through a server channel.
|
|
3911
|
+
* @extends {BaseHandlerChainService}
|
|
3912
|
+
* @implements {BaseMessageChannelService}
|
|
3913
|
+
*/
|
|
3914
|
+
declare class MessageChannelService extends BaseHandlerChainService implements _BaseMessageChannelService {
|
|
3915
|
+
/**
|
|
3916
|
+
* @internal
|
|
3917
|
+
*/
|
|
3918
|
+
readonly requestType: string;
|
|
3919
|
+
/**
|
|
3920
|
+
* @public
|
|
3921
|
+
* @description Subscribes on messages from a specific sender.
|
|
3922
|
+
* @param sender String identifier of the sender.
|
|
3923
|
+
* @param callback Callback that should be executed on each message.
|
|
3924
|
+
* @returns A promise to be resolved with a {@link ɵSubscription} object that can be used to unsubscribe.
|
|
3925
|
+
*/
|
|
3926
|
+
subscribe: <T>(sender: string, callback: (event: _MessageChannelEvent<T>) => void) => Promise<_Subscription>;
|
|
3927
|
+
/**
|
|
3928
|
+
* @public
|
|
3929
|
+
* @description Sends message to the channel.
|
|
3930
|
+
* @param sender String identifier of the sender, used to distinguish between messages from different senders.
|
|
3931
|
+
* @param body Body of the message that should be sent (payload). Should be JSON-serializable.
|
|
3932
|
+
* @param channelType Type of message channel.
|
|
3933
|
+
*/
|
|
3934
|
+
sendMessage: (sender: string, body: unknown, channelType: _MessageChannelType) => Promise<void>;
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* @internal
|
|
3939
|
+
*/
|
|
3940
|
+
declare const _from: unique symbol;
|
|
3941
|
+
/**
|
|
3942
|
+
* @public
|
|
3943
|
+
*/
|
|
3944
|
+
declare class Model extends BaseHandlerChainService implements _BaseModel<DataSourceLoadOptions> {
|
|
3945
|
+
private static _instance;
|
|
3946
|
+
private readonly _crtModel;
|
|
3947
|
+
/**
|
|
3948
|
+
* @internal
|
|
3949
|
+
*/
|
|
3950
|
+
readonly requestType = "crt.ModelGenerator";
|
|
3951
|
+
private constructor();
|
|
3952
|
+
private static get instance();
|
|
3953
|
+
/**
|
|
3954
|
+
* @internal
|
|
3955
|
+
* Gets the model name.
|
|
3956
|
+
*/
|
|
3957
|
+
get name(): string;
|
|
3958
|
+
private readonly _create;
|
|
3959
|
+
/**
|
|
3960
|
+
* @internal
|
|
3961
|
+
*/
|
|
3962
|
+
static [_from](crtModel?: unknown): Model;
|
|
3963
|
+
static create(dataSchema: string): Promise<Model>;
|
|
3964
|
+
getSchema(): Promise<_DataSchema>;
|
|
3965
|
+
load(config?: {
|
|
3966
|
+
attributes?: string[] | _DataSourceAttribute[];
|
|
3967
|
+
parameters?: _DataSourceParameters;
|
|
3968
|
+
options?: DataSourceLoadOptions;
|
|
3969
|
+
/**
|
|
3970
|
+
* @deprecated Use options instead.
|
|
3971
|
+
*/
|
|
3972
|
+
loadOptions?: DataSourceLoadOptions;
|
|
3973
|
+
}): Promise<_JsonArray>;
|
|
3974
|
+
insert(dto: _JsonObject): Promise<_DataSourceSaveResult>;
|
|
3975
|
+
update(dto: _JsonObject, parameters: _DataSourceParameters): Promise<_DataSourceSaveResult>;
|
|
3976
|
+
copy(primaryColumnValue: string, data?: _JsonObject): Promise<_JsonObject>;
|
|
3977
|
+
create(data?: _JsonObject): Promise<_JsonObject>;
|
|
3978
|
+
delete(parameters: _DataSourceParameters): Promise<_DataSourceSaveResult>;
|
|
3979
|
+
canSave(params: _DataSourceCanExecuteOperationPayload): Promise<_DataSourceCanExecuteOperationResult>;
|
|
3980
|
+
canDelete(params: _DataSourceCanExecuteOperationPayload): Promise<_DataSourceCanExecuteOperationResult>;
|
|
3981
|
+
insertInTransaction(transaction: ITransaction, dto: _JsonObject): ITransactionOperation<_DataSourceSaveResult>;
|
|
3982
|
+
updateInTransaction(transaction: ITransaction, dto: _JsonObject, parameters: _DataSourceParameters): ITransactionOperation<_DataSourceSaveResult>;
|
|
3983
|
+
deleteInTransaction(transaction: ITransaction, parameters: _DataSourceParameters): ITransactionOperation<_DataSourceSaveResult>;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* @public
|
|
3988
|
+
* @class ProcessEngineService
|
|
3989
|
+
* @classdesc Service, used for starting and completing business processes using handler chain
|
|
3990
|
+
* @extends {BaseHandlerChainService}
|
|
3991
|
+
*/
|
|
3992
|
+
declare class ProcessEngineService extends BaseHandlerChainService {
|
|
3993
|
+
/**
|
|
3994
|
+
* @internal
|
|
3995
|
+
*/
|
|
3996
|
+
readonly requestType = "crt.ProcessEngineService";
|
|
3997
|
+
/**
|
|
3998
|
+
* Executes process by name.
|
|
3999
|
+
* @param processName Process name.
|
|
4000
|
+
* @param parameters Process parameters.
|
|
4001
|
+
* @param resultParameterNames Resulting process parameters.
|
|
4002
|
+
*/
|
|
4003
|
+
executeProcessByName: (processName: string, parameters?: Record<string, unknown>, resultParameterNames?: string[]) => Promise<RunProcessResponse>;
|
|
4004
|
+
/**
|
|
4005
|
+
* Completes process element execution.
|
|
4006
|
+
* @param {Guid} processElementUId Process element unique identifier.
|
|
4007
|
+
* @param {Record<string, JsonData>} parameters Process parameters.
|
|
4008
|
+
*/
|
|
4009
|
+
completeExecuting: (processElementUId: _Guid, parameters?: Record<string, _JsonData>) => Promise<BaseResponse>;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
/**
|
|
4013
|
+
* @public
|
|
4014
|
+
* @classdesc Service to working rights using handler chain
|
|
4015
|
+
* @extends {BaseHandlerChainService}
|
|
4016
|
+
*/
|
|
4017
|
+
declare class RightsService extends BaseHandlerChainService {
|
|
4018
|
+
/**
|
|
4019
|
+
* @internal
|
|
4020
|
+
*/
|
|
4021
|
+
readonly requestType = "crt.RightsService";
|
|
4022
|
+
/**
|
|
4023
|
+
* @description Method to recognize whether user can execute operation
|
|
4024
|
+
* @param {string} operationName - operation name
|
|
4025
|
+
* @returns `Promise<boolean>`
|
|
4026
|
+
*/
|
|
4027
|
+
getCanExecuteOperation: (operationName: string) => Promise<boolean>;
|
|
4028
|
+
/**
|
|
4029
|
+
* @description Method to recognize whether user can execute operations
|
|
4030
|
+
* @param {string[]} operationNames - operation names
|
|
4031
|
+
* @returns `Promise<boolean[]>`
|
|
4032
|
+
*/
|
|
4033
|
+
getCanExecuteOperations: (operationNames: string[]) => Promise<boolean[]>;
|
|
4034
|
+
}
|
|
4035
|
+
|
|
4036
|
+
/**
|
|
4037
|
+
* @public
|
|
4038
|
+
* @description Configuration interface for schema modal dialogs.
|
|
4039
|
+
* @property {string} schemaName - Name of the schema to be displayed in the modal.
|
|
4040
|
+
* @property {ɵModelInPageAction} action - Action to be performed on the model (e.g., create, edit).
|
|
4041
|
+
* @property {string} recordId - Identifier of the record to be edited or viewed.
|
|
4042
|
+
* @property {Array<ɵModelDefaultValue>} defaultValues - Default values to initialize the model with.
|
|
4043
|
+
* @property {Record<string, ɵJsonData>} parameters - Additional parameters for the schema.
|
|
4044
|
+
* @property {boolean} preventDefaultCloseCommand - Flag to prevent the default close command.
|
|
4045
|
+
* @property {object} appearanceSettings - Settings for the appearance of the modal.
|
|
4046
|
+
*/
|
|
4047
|
+
interface SchemaModalConfig {
|
|
4048
|
+
/**
|
|
4049
|
+
* @description Name of the schema to be displayed in the modal.
|
|
4050
|
+
*/
|
|
4051
|
+
schemaName: string;
|
|
4052
|
+
/**
|
|
4053
|
+
* @description Action to be performed on the model (e.g., create, edit).
|
|
4054
|
+
*/
|
|
4055
|
+
action?: _ModelInPageAction;
|
|
4056
|
+
/**
|
|
4057
|
+
* @description Identifier of the record to be edited or viewed.
|
|
4058
|
+
*/
|
|
4059
|
+
recordId?: string;
|
|
4060
|
+
/**
|
|
4061
|
+
* @description Default values to initialize the model with.
|
|
4062
|
+
*/
|
|
4063
|
+
defaultValues?: Array<_ModelDefaultValue>;
|
|
4064
|
+
/**
|
|
4065
|
+
* @description Additional parameters for the schema.
|
|
4066
|
+
*/
|
|
4067
|
+
parameters?: Record<string, _JsonData>;
|
|
4068
|
+
/**
|
|
4069
|
+
* @description Flag to prevent the default close command.
|
|
4070
|
+
*/
|
|
4071
|
+
preventDefaultCloseCommand?: boolean;
|
|
4072
|
+
/**
|
|
4073
|
+
* @description Settings for the appearance of the modal.
|
|
4074
|
+
*/
|
|
4075
|
+
appearanceSettings?: {
|
|
4076
|
+
/**
|
|
4077
|
+
* @description CSS classes to be applied to the modal panel.
|
|
4078
|
+
*/
|
|
4079
|
+
panelClass?: string[];
|
|
4080
|
+
/**
|
|
4081
|
+
* @description Maximum height of the modal.
|
|
4082
|
+
*/
|
|
4083
|
+
maxHeight?: number | string;
|
|
4084
|
+
};
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
/**
|
|
4088
|
+
* @public
|
|
4089
|
+
* @class SchemaModalService
|
|
4090
|
+
* @classdesc Service to work with schema modal windows using handler chain.
|
|
4091
|
+
* @extends {BaseHandlerChainService}
|
|
4092
|
+
*/
|
|
4093
|
+
declare class SchemaModalService extends BaseHandlerChainService {
|
|
4094
|
+
/**
|
|
4095
|
+
* @internal
|
|
4096
|
+
*/
|
|
4097
|
+
readonly requestType = "crt.SchemaModalService";
|
|
4098
|
+
/**
|
|
4099
|
+
* @description Method to show schema in the modal window.
|
|
4100
|
+
* @param {SchemaModalConfig} config - Configuration object for the schema modal.
|
|
4101
|
+
* @returns `Promise<void>`
|
|
4102
|
+
*/
|
|
4103
|
+
show: (config: SchemaModalConfig) => Promise<void>;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* @public
|
|
4108
|
+
* @class SysSetting
|
|
4109
|
+
* @classdesc Class contains info related system setting
|
|
4110
|
+
* @property {ɵGuid} id - id of system setting.
|
|
4111
|
+
* @property {string} name - name of system setting.
|
|
4112
|
+
* @property {string} code - code of system setting.
|
|
4113
|
+
* @property {isCacheable} boolean - indicator whether system setting is cacheable
|
|
4114
|
+
* @property {any} value - value of system setting
|
|
4115
|
+
* @property {string} displayValue - display value of system setting
|
|
4116
|
+
* @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}
|
|
4117
|
+
*/
|
|
4118
|
+
declare class SysSetting {
|
|
4119
|
+
/**
|
|
4120
|
+
* @description id of system setting
|
|
4121
|
+
*/
|
|
4122
|
+
id?: _Guid;
|
|
4123
|
+
/**
|
|
4124
|
+
* @description name of system setting
|
|
4125
|
+
*/
|
|
4126
|
+
name?: string;
|
|
4127
|
+
/**
|
|
4128
|
+
* @description code of system setting
|
|
4129
|
+
*/
|
|
4130
|
+
code?: string;
|
|
4131
|
+
/**
|
|
4132
|
+
* @description indicator whether system setting is cacheable
|
|
4133
|
+
*/
|
|
4134
|
+
isCacheable?: boolean;
|
|
4135
|
+
/**
|
|
4136
|
+
* @description value of system setting
|
|
4137
|
+
*/
|
|
4138
|
+
value?: any;
|
|
4139
|
+
/**
|
|
4140
|
+
* @description display value of system setting
|
|
4141
|
+
*/
|
|
4142
|
+
displayValue?: string;
|
|
4143
|
+
/**
|
|
4144
|
+
* @description system setting {@link ɵDataValueType}
|
|
4145
|
+
*/
|
|
4146
|
+
dataValueType?: _DataValueType;
|
|
4147
|
+
}
|
|
4148
|
+
/**
|
|
4149
|
+
* @public
|
|
4150
|
+
* @class SysSettingValue
|
|
4151
|
+
* @classdesc Shape to describe system setting value
|
|
4152
|
+
* @property {string} code - code of system setting
|
|
4153
|
+
* @property {any} value - value of system setting
|
|
4154
|
+
*/
|
|
4155
|
+
declare class SysSettingValue {
|
|
4156
|
+
/**
|
|
4157
|
+
* @description code of system setting.
|
|
4158
|
+
*/
|
|
4159
|
+
code?: string;
|
|
4160
|
+
/**
|
|
4161
|
+
* @description value of system setting
|
|
4162
|
+
*/
|
|
4163
|
+
value?: any;
|
|
4164
|
+
}
|
|
4165
|
+
|
|
4166
|
+
/**
|
|
4167
|
+
* @public
|
|
4168
|
+
* @description Response for querying of system settings
|
|
4169
|
+
* @extends {BaseResponse}
|
|
4170
|
+
* @property {Record<string, SysSetting>} values - system settings values
|
|
4171
|
+
*/
|
|
4172
|
+
interface QuerySysSettingsResponse extends BaseResponse {
|
|
4173
|
+
/**
|
|
4174
|
+
* @type {Record<string, SysSetting>}
|
|
4175
|
+
* @description system settings values. {@link SysSetting}
|
|
4176
|
+
*/
|
|
4177
|
+
values: Record<string, SysSetting>;
|
|
4178
|
+
/**
|
|
4179
|
+
* @type {Array<string>}
|
|
4180
|
+
* @description not found system settings codes.
|
|
4181
|
+
*/
|
|
4182
|
+
notFoundSettings?: Array<string>;
|
|
4183
|
+
}
|
|
4184
|
+
/**
|
|
4185
|
+
* @public
|
|
4186
|
+
* @description Response for saving system settings
|
|
4187
|
+
* @extends {BaseResponse}
|
|
4188
|
+
* @property {Record<string, any>} saveResult - saving result
|
|
4189
|
+
* @property {number} rowsAffected - Count of affected rows
|
|
4190
|
+
*/
|
|
4191
|
+
interface SaveSysSettingsResponse extends BaseResponse {
|
|
4192
|
+
/**
|
|
4193
|
+
* @description saving result
|
|
4194
|
+
*/
|
|
4195
|
+
saveResult: Record<string, any>;
|
|
4196
|
+
/**
|
|
4197
|
+
* @description Count of affected rows
|
|
4198
|
+
*/
|
|
4199
|
+
rowsAffected: number;
|
|
4200
|
+
/**
|
|
4201
|
+
* @internal
|
|
4202
|
+
* @description
|
|
4203
|
+
*/
|
|
4204
|
+
nextPrcElReady: boolean;
|
|
4205
|
+
}
|
|
4206
|
+
/**
|
|
4207
|
+
* @public
|
|
4208
|
+
* @description Response for preload cachable system settings.
|
|
4209
|
+
* @extends {BaseResponse}
|
|
4210
|
+
* @property {Record<string, SysSetting>} values - system settings values
|
|
4211
|
+
*/
|
|
4212
|
+
interface PreloadSysSettingsResponse extends BaseResponse {
|
|
4213
|
+
/**
|
|
4214
|
+
* @type {Record<string, SysSetting>}
|
|
4215
|
+
* @description system settings values. {@link SysSetting}
|
|
4216
|
+
*/
|
|
4217
|
+
values: Record<string, SysSetting>;
|
|
4218
|
+
}
|
|
4219
|
+
/**
|
|
4220
|
+
* @public
|
|
4221
|
+
* @class SysSettingsService
|
|
4222
|
+
* @classdesc Service to working with system settings using handler chain
|
|
4223
|
+
* @extends {BaseHandlerChainService}
|
|
4224
|
+
*/
|
|
4225
|
+
declare class SysSettingsService extends BaseHandlerChainService {
|
|
4226
|
+
/**
|
|
4227
|
+
* @internal
|
|
4228
|
+
*/
|
|
4229
|
+
readonly requestType = "crt.SysSettingsService";
|
|
4230
|
+
/**
|
|
4231
|
+
* @description Method to get system settings by codes
|
|
4232
|
+
* @param {string[]} sysSettingCodes - system settings codes
|
|
4233
|
+
* @returns `Promise<QuerySysSettingsResponse>` {@link QuerySysSettingsResponse}
|
|
4234
|
+
*/
|
|
4235
|
+
getByCodes: (sysSettingCodes: string[]) => Promise<QuerySysSettingsResponse>;
|
|
4236
|
+
/**
|
|
4237
|
+
* @description Method to get system setting by code
|
|
4238
|
+
* @param {string} sysSettingCode - system settings code
|
|
4239
|
+
* @returns `Promise<SysSetting>`
|
|
4240
|
+
*/
|
|
4241
|
+
getByCode: (sysSettingCode: string) => Promise<SysSetting>;
|
|
4242
|
+
/**
|
|
4243
|
+
* @description Method to update system setting
|
|
4244
|
+
* @param {SysSettingValue} sysSettingValue - {@link SysSettingValue}
|
|
4245
|
+
* @param {Boolean} isPersonal - Flag that indicates that sysSetting value is personal.
|
|
4246
|
+
* @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}
|
|
4247
|
+
*/
|
|
4248
|
+
update: (sysSettingValue: SysSettingValue, isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;
|
|
4249
|
+
/**
|
|
4250
|
+
* @description Method to bulk update system settings
|
|
4251
|
+
* @param {SysSettingValue[]} sysSettingValues - system settings values {@link SysSettingValue}
|
|
4252
|
+
* @param {Boolean} isPersonal - Flag that indicates that sysSetting values are personal.
|
|
4253
|
+
* @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}
|
|
4254
|
+
*/
|
|
4255
|
+
updateMany: (sysSettingValues: SysSettingValue[], isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;
|
|
4256
|
+
}
|
|
4257
|
+
|
|
4258
|
+
/**
|
|
4259
|
+
* @public
|
|
4260
|
+
* @description Shape of system values
|
|
4261
|
+
* @property {LookupValue} maintainer - maintainer
|
|
4262
|
+
* @property {number} moneyDisplayPrecision - precision used for displaying money
|
|
4263
|
+
* @property {number} maxEntitySchemaNameLength - max length of entity schema
|
|
4264
|
+
* @property {LookupValue} workspace - workplace info
|
|
4265
|
+
* @property {LookupValue} userAccount - user info
|
|
4266
|
+
* @property {string} userTimezoneCode - code of user's timezone
|
|
4267
|
+
* @property {number} userTimezoneOffset - offset for user timezone
|
|
4268
|
+
* @property {LookupValue} userContact - user contact info
|
|
4269
|
+
* @property {LookupValueWithCode} primaryLanguage - primary language
|
|
4270
|
+
* @property {LookupValue} primaryCulture - primary culture
|
|
4271
|
+
* @property {LookupValue} userCulture - user culture
|
|
4272
|
+
* @property {string} environmentType - type of the environment
|
|
4273
|
+
*/
|
|
4274
|
+
interface SysValues {
|
|
4275
|
+
/**
|
|
4276
|
+
* @description maintainer
|
|
4277
|
+
*/
|
|
4278
|
+
maintainer: _LookupValue;
|
|
4279
|
+
/**
|
|
4280
|
+
* @description precision used for displaying money
|
|
4281
|
+
*/
|
|
4282
|
+
moneyDisplayPrecision: number;
|
|
4283
|
+
/**
|
|
4284
|
+
* @description max length of entity schema
|
|
4285
|
+
*/
|
|
4286
|
+
maxEntitySchemaNameLength: number;
|
|
4287
|
+
/**
|
|
4288
|
+
* @description workplace info
|
|
4289
|
+
*/
|
|
4290
|
+
workspace: _LookupValue;
|
|
4291
|
+
/**
|
|
4292
|
+
* @description user info
|
|
4293
|
+
*/
|
|
4294
|
+
userAccount: _LookupValue;
|
|
4295
|
+
/**
|
|
4296
|
+
* @description code of user's timezone
|
|
4297
|
+
*/
|
|
4298
|
+
userTimezoneCode: string;
|
|
4299
|
+
/**
|
|
4300
|
+
* @description offset for user timezone
|
|
4301
|
+
*/
|
|
4302
|
+
userTimezoneOffset: number;
|
|
4303
|
+
/**
|
|
4304
|
+
* @description user contact info
|
|
4305
|
+
*/
|
|
4306
|
+
userContact: _LookupValue;
|
|
4307
|
+
/**
|
|
4308
|
+
* @description primary language
|
|
4309
|
+
*/
|
|
4310
|
+
primaryLanguage: _LookupValueWithCode;
|
|
4311
|
+
/**
|
|
4312
|
+
* @description primary culture
|
|
4313
|
+
*/
|
|
4314
|
+
primaryCulture: _LookupValue;
|
|
4315
|
+
/**
|
|
4316
|
+
* @description user culture
|
|
4317
|
+
*/
|
|
4318
|
+
userCulture: _LookupValue;
|
|
4319
|
+
/**
|
|
4320
|
+
* @description user
|
|
4321
|
+
*/
|
|
4322
|
+
user: _LookupValue;
|
|
4323
|
+
/**
|
|
4324
|
+
* @description core version
|
|
4325
|
+
*/
|
|
4326
|
+
coreVersion: string;
|
|
4327
|
+
/**
|
|
4328
|
+
* @description Freedom UI new schema version
|
|
4329
|
+
*/
|
|
4330
|
+
freedomUiSchemaVersion: number;
|
|
4331
|
+
/**
|
|
4332
|
+
* @description environment type
|
|
4333
|
+
*/
|
|
4334
|
+
environmentType: string;
|
|
4335
|
+
/**
|
|
4336
|
+
* @description customer
|
|
4337
|
+
*/
|
|
4338
|
+
customer: string;
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
/**
|
|
4342
|
+
* @public
|
|
4343
|
+
* @classdesc
|
|
4344
|
+
* @class SysValuesService Service to working with system values using handler chain
|
|
4345
|
+
* @extends {BaseHandlerChainService}
|
|
4346
|
+
*/
|
|
4347
|
+
declare class SysValuesService extends BaseHandlerChainService {
|
|
4348
|
+
/**
|
|
4349
|
+
* @internal
|
|
4350
|
+
*/
|
|
4351
|
+
readonly requestType = "crt.SysValuesService";
|
|
4352
|
+
/**
|
|
4353
|
+
* @description Method to load system values
|
|
4354
|
+
* @returns `Promise<SysValues>` {@link SysValues}
|
|
4355
|
+
*/
|
|
4356
|
+
loadSysValues: () => Promise<SysValues>;
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
/**
|
|
4360
|
+
* @public
|
|
4361
|
+
* @classdesc Service to retrieve available themes using handler chain.
|
|
4362
|
+
* @extends {BaseHandlerChainService}
|
|
4363
|
+
*/
|
|
4364
|
+
declare class ThemeService extends BaseHandlerChainService {
|
|
4365
|
+
/**
|
|
4366
|
+
* @internal
|
|
4367
|
+
*/
|
|
4368
|
+
readonly requestType = "crt.ThemeService";
|
|
4369
|
+
/**
|
|
4370
|
+
* @description Method designed to get all available themes.
|
|
4371
|
+
* @returns `Promise<ThemeDefinition[]>`
|
|
4372
|
+
*/
|
|
4373
|
+
getAvailableThemes: () => Promise<ThemeDefinition[]>;
|
|
4374
|
+
/**
|
|
4375
|
+
* @description Method designed to apply theme by id.
|
|
4376
|
+
* @param {string} themeId - theme identifier
|
|
4377
|
+
* @returns `Promise<void>`
|
|
4378
|
+
*/
|
|
4379
|
+
applyTheme: (themeId: string) => Promise<void>;
|
|
4380
|
+
/**
|
|
4381
|
+
* @description Checks whether the current user is allowed to customize branding.
|
|
4382
|
+
* @returns `Promise<boolean>`
|
|
4383
|
+
*/
|
|
4384
|
+
canCustomizeBranding: () => Promise<boolean>;
|
|
4385
|
+
/**
|
|
4386
|
+
* @description Checks whether the current user is allowed to change their own theme.
|
|
4387
|
+
* @returns `Promise<boolean>`
|
|
4388
|
+
*/
|
|
4389
|
+
canChangeOwnTheme: () => Promise<boolean>;
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
/**
|
|
4393
|
+
* @public
|
|
4394
|
+
* @class TransactionFactoryService
|
|
4395
|
+
* @classdesc Service to working with transaction factory using a handler chain
|
|
4396
|
+
* @extends {BaseHandlerChainService}
|
|
4397
|
+
*/
|
|
4398
|
+
declare class TransactionFactoryService extends BaseHandlerChainService implements ITransactionFactory {
|
|
4399
|
+
/**
|
|
4400
|
+
* @internal
|
|
4401
|
+
*/
|
|
4402
|
+
private static _instance;
|
|
4403
|
+
/**
|
|
4404
|
+
* @internal
|
|
4405
|
+
*/
|
|
4406
|
+
readonly requestType = "crt.TransactionFactoryService";
|
|
4407
|
+
/**
|
|
4408
|
+
* @description Method create a transaction.
|
|
4409
|
+
* @returns `ITransaction` {@link ITransaction}
|
|
4410
|
+
* @public
|
|
4411
|
+
*/
|
|
4412
|
+
create: () => Promise<ITransaction>;
|
|
4413
|
+
/**
|
|
4414
|
+
* @internal
|
|
4415
|
+
*/
|
|
4416
|
+
private constructor();
|
|
4417
|
+
/**
|
|
4418
|
+
* @internal
|
|
4419
|
+
*/
|
|
4420
|
+
private static get instance();
|
|
4421
|
+
static create(): Promise<ITransaction>;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* @public
|
|
4426
|
+
* @class UserConsentService
|
|
4427
|
+
* @classdesc Service to work with consents of the current user.
|
|
4428
|
+
*/
|
|
4429
|
+
declare class UserConsentService {
|
|
4430
|
+
private static _instance;
|
|
4431
|
+
private readonly _consentSchemaName;
|
|
4432
|
+
private readonly _userConsentHistorySchemaName;
|
|
4433
|
+
private readonly _sysValuesService;
|
|
4434
|
+
private _currentUserContactId?;
|
|
4435
|
+
/**
|
|
4436
|
+
* @description Gets shared service instance.
|
|
4437
|
+
* @returns Shared `UserConsentService` instance.
|
|
4438
|
+
*/
|
|
4439
|
+
static get instance(): UserConsentService;
|
|
4440
|
+
/**
|
|
4441
|
+
* Retrieves the current user's contact ID.
|
|
4442
|
+
* @returns Current user contact id. Cached after first retrieval.
|
|
4443
|
+
*/
|
|
4444
|
+
private _getCurrentUserContactId;
|
|
4445
|
+
/**
|
|
4446
|
+
* Maps a JSON record to a UserConsent object.
|
|
4447
|
+
* @param record - JSON record to map.
|
|
4448
|
+
* @param code - Consent code associated with the user consent.
|
|
4449
|
+
* @returns User consent object.
|
|
4450
|
+
*/
|
|
4451
|
+
private _mapToUserConsent;
|
|
4452
|
+
/**
|
|
4453
|
+
* Creates filter parameters for model loading based on the provided filters.
|
|
4454
|
+
* @param filters - Filter values by column name.
|
|
4455
|
+
* @returns Model filter parameters.
|
|
4456
|
+
*/
|
|
4457
|
+
private _createFilterParameters;
|
|
4458
|
+
/**
|
|
4459
|
+
* Selects a consent record from the provided JSON records.
|
|
4460
|
+
* @param records - Records to select from.
|
|
4461
|
+
* @param code - Consent code associated with the consent.
|
|
4462
|
+
* @returns Consent object or `null` if not found.
|
|
4463
|
+
*/
|
|
4464
|
+
private _selectConsent;
|
|
4465
|
+
/**
|
|
4466
|
+
* Selects a user consent record from the provided JSON records.
|
|
4467
|
+
* @param records - Records to select from.
|
|
4468
|
+
* @param code - Consent code associated with the user consent.
|
|
4469
|
+
* @returns User consent object or `null` if no valid user consent is found.
|
|
4470
|
+
*/
|
|
4471
|
+
private _selectUserConsent;
|
|
4472
|
+
/**
|
|
4473
|
+
* Loads the consent model.
|
|
4474
|
+
* @returns Loaded consent model.
|
|
4475
|
+
*/
|
|
4476
|
+
private _loadConsentModel;
|
|
4477
|
+
/**
|
|
4478
|
+
* Loads the user consent history model.
|
|
4479
|
+
* @returns Loaded user consent history model.
|
|
4480
|
+
*/
|
|
4481
|
+
private _loadUserConsentModel;
|
|
4482
|
+
/**
|
|
4483
|
+
* Creates a new user consent record in the user consent history model.
|
|
4484
|
+
* @param consentId - Identifier of the consent record.
|
|
4485
|
+
* @param expirationDate - Optional expiration date of the user consent.
|
|
4486
|
+
*/
|
|
4487
|
+
private _insertUserConsent;
|
|
4488
|
+
/**
|
|
4489
|
+
* @description Gets consent by code.
|
|
4490
|
+
* @param code - Consent code.
|
|
4491
|
+
* @returns Consent record or `null` if not found.
|
|
4492
|
+
*/
|
|
4493
|
+
getConsent(code: string): Promise<Consent | null>;
|
|
4494
|
+
/**
|
|
4495
|
+
* @description Gets current user consent by code.
|
|
4496
|
+
* @param code - Consent code.
|
|
4497
|
+
* @returns User consent record or `null` if no active or perpetual consent exists.
|
|
4498
|
+
*/
|
|
4499
|
+
getCurrentUserConsent(code: string): Promise<UserConsent | null>;
|
|
4500
|
+
/**
|
|
4501
|
+
* @description Gives current user consent by code.
|
|
4502
|
+
* @param code - Consent code.
|
|
4503
|
+
* @param expirationDate - Optional expiration date for the user consent.
|
|
4504
|
+
*/
|
|
4505
|
+
giveCurrentUserConsent(code: string, expirationDate?: Date): Promise<void>;
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
export { AiContextService, BaseInterfaceDesignerItemRegistry, BaseItemRendererRegistry, BaseRequestHandler, BaseRequestsResolver, BaseValidator, BaseViewElementRegistry, BootstrapNotifier, ChatMessageTypeRegistry, ContextPartRequest, ConverterRegistry, CrtChatMessageType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtMobileInterfaceDesignerItem, CrtMobileViewElement, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, DialogService, FeatureService, FileViewerFactory, FileViewerInstance, HandleViewModelAttributeChangeRequest, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LazyLoadRefsManager, LicenseService, LocalizableValue, MaskService, MessageChannelService, MethodInvokeRequest, MobileInterfaceDesignerItemRegistry, MobileViewElementRegistry, Model, PkgTopology, ProcessEngineService, ProcessStatus, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RequestsResolver, RightsService, RunProcessRequest, SchemaModalService, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, ThemeService, TransactionFactoryService, UserConsentService, VIEW_ELEMENT_DEFAULT_HEIGHT, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementProperty, ViewElementRegistry, ViewElementRenderStrategy, ViewElementReuseStrategy, ViewModelCollectionActionType, _from, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, bootstrappedCrtModules, callOnContextCreateHooks, callOnContextDestroyHooks, callOnContextUpdateHooks, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, defineRenderConfig, designTimeViewElementRegistryKey, getConverterMetadata, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDeepModuleDependencies, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getMobileInterfaceDesignerItemMetadata, getMobileViewElementMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, hasMobileInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegister, interfaceDesignerItemRegistryKey, isClientSideDataSourceHierarchyConfig, isHierarchicalItemExpanded, isServerSideDataSourceHierarchyConfig, localize, matchScopes, mobileInterfaceDesignerItemRegistryKey, mobileViewElementRegistryKey, objectDeepKeys, registerAngularViewElement, registerViewElement, registryKey, resetGlobals, setConverterMetadata, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setMobileInterfaceDesignerItemMetadata, setMobileViewElementMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationEval, toAggregationEvalType, toAggregationFunction, toAggregationType, toDatePart, toDatePartType, toNumericFunctionType, toOrderDirection, toPascalCase, toSortDirection, toStringFunctionType, validatorRegistryKey, viewElementRegister, viewElementRegistryKey, ɵBaseRegistry, ɵCrtInterfaceDesignerItem, ɵCrtMobileInterfaceDesignerItem, ɵFeatureActivationRef, ɵLazyModuleRef, ɵcheckTypeNameFormat, ɵinstantiate, ɵloadLazyRef, ɵloadLazyRefs };
|
|
4509
|
+
export type { AddRequestHandlerListener, AngularViewElementRegistrationConfig, AttributePropertyConfig, AttributeValueConfig, BaseContextPart, BaseInterfaceDesignerItemRegistrationConfig, BaseItemRendererConfig, BaseRequestConfig, BaseRequestCtor, BaseResponse, BaseViewElementRegistrationConfig, BootstrapOptions, ChangeAttributeValueEventPayload, ChatMessageTypeRegistrationConfig, ClientSideDataSourceHierarchyConfig, Consent, ConstantValuesContextPart, ConstantValuesContextPartInput, ContexedHandlerScopeConfig, ContextDataRecord, ContextDataSourcePart, ContextPartAction, ContextProvider, Converter, ConverterConfig, ConverterMetadata, CreatioPageContextPart, CreatioPageContextPartInput, CrtAngularViewElementConfig, CrtControlState, CrtValidationError, CrtValidationErrors, CrtValidationInfo, CrtValidatorFn, DataSourceHierarchyConfig, DataSourceLoadOptions, DataSourceLoadParameters, DefaultRenderConfig, DefaultSizeForGrid, DesignTimeViewElementRegistryItem, Entity, ErrorInfo, ExtraToolbarViewElementConfig, FileValue, FileViewerOptions, GroupedDateValue, HandlerChainServiceRegistryItem, HandlerConfig, HandlerSource, HierarchyState, HierarchyStateCollapsed, HierarchyStateExpanded, HostHandlerSource, HttpHeaders, HttpResponse, IBaseItemRendererRegistry, ITransaction, ITransactionFactory, ITransactionOperation, InjectionContext, InterfaceDesignerItemDefinition, InterfaceDesignerItemMetadata, InterfaceDesignerRegistryItem, InternalDesignTimeViewElementRegistryItem, InternalInterfaceDesignerItemRegistrationConfig, InternalModuleDefinition, InternalResolveDependencyFn, InternalToolbarViewElementCollectionItemConfig, InternalToolbarViewElementConfig, InternalToolbarViewElementConfigCollection, ItemCreationConfig, LazyModuleDefinition, LazyModuleDefinitionWithMetadata, LazyModuleMetadata, LazyRegistryItem, LicenseRestrictionOperationValues, LocalizableStringValues, LocalizableValues, MaskSettings, ModuleDefinition, OnViewportRenderConfig, Platform, PreloadSysSettingsResponse, ProcessParameterValue, QuerySysSettingsResponse, RemoteBuildInfo, RemoteConverterDiscoveryMetadata, RemoteDesignerDefinitionsLoadContext, RemoteEntryDefinition, RemoteFeatureDefinition, RemoteFeatureDesignerDefinitions, RemoteFeatureDiscoveryMetadata, RemoteHandlerSource, RemoteRequestHandlerDiscoveryMetadata, RemoteValidatorDiscoveryMetadata, RemoteViewElementDesignerDefinition, RemoteViewElementDiscoveryMetadata, RemoveRequestHandlerListener, RequestHandlerCtor, RequestHandlerDefinition, RequestHandlerFactory, RequestHandlerMapValue, RequestHandlerRegistrationConfig, RunProcessResponse, SaveSysSettingsResponse, SchemaHandlerSource, SchemaModalConfig, ServerSideDataSourceHierarchyConfig, SysImageValue, SysValues, ThemeDefinition, ToolbarDefaultSize, ToolbarExtraProps, ToolbarViewElementConfig, ToolbarViewElementConfigType, UnsubscribeListener, UserConsent, ValidatorConfig, ValidatorMetadata, ValidatorParameters, ValidatorParametersValues, ValidatorRegistryItem, ValidatorSchemaConfig, ValueResponse, ViewElementMetadata, ViewElementRegistrationConfig, ViewElementRegistryItem, ViewElementSlotDefinition, ViewModelAttributeChangeEventOptionsType, ViewModelCollection, ViewModelCollectionChange, ɵLazyLoadRef };
|