@creatio-devkit/common 0.830.0 → 0.832.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/esm2022/lib/base-exports.mjs +1 -1
- package/esm2022/lib/external/file-viewer/file-viewer-factory.service.mjs +26 -0
- package/esm2022/lib/external/file-viewer/file-viewer-instance.model.mjs +51 -0
- package/esm2022/lib/external/file-viewer/file-viewer-options.model.mjs +2 -0
- package/esm2022/lib/external/file-viewer/index.mjs +4 -0
- package/esm2022/lib/external/models/file-value.model.mjs +1 -1
- package/esm2022/lib/index.mjs +2 -1
- package/esm2022/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.mjs +3 -2
- package/esm2022/lib/internal/models/transaction/index.mjs +2 -1
- package/esm2022/lib/internal/models/transaction/transaction-factory.mjs +2 -0
- package/esm2022/lib/internal/models/transaction/transaction-operation.mjs +1 -1
- package/esm2022/lib/internal/models/transaction/transaction.mjs +1 -1
- package/esm2022/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +1 -1
- package/esm2022/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +4 -4
- package/esm2022/lib/internal/services/index.mjs +2 -1
- package/esm2022/lib/internal/services/interface-designer-item-registry/index.mjs +2 -1
- package/esm2022/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +35 -10
- package/esm2022/lib/internal/services/interface-designer-item-registry/mobile-interface-designer-item-registry.mjs +12 -0
- package/esm2022/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +1 -1
- package/esm2022/lib/internal/services/request-resolver/base-requests-resolver.mjs +6 -0
- package/esm2022/lib/internal/services/request-resolver/index.mjs +3 -0
- package/esm2022/lib/internal/services/request-resolver/requests-resolver.mjs +17 -0
- package/esm2022/lib/internal/services/view-element-registry/base-view-element-registry.mjs +74 -0
- package/esm2022/lib/internal/services/view-element-registry/index.mjs +3 -1
- package/esm2022/lib/internal/services/view-element-registry/mobile-view-element-registry.mjs +13 -0
- package/esm2022/lib/internal/services/view-element-registry/view-element-registry.mjs +3 -66
- package/esm2022/lib/internal/utils/index.mjs +1 -2
- package/esm2022/lib/internal/utils/metadata-utils.mjs +35 -7
- package/esm2022/lib/internal/utils/module-utils.mjs +1 -1
- package/esm2022/lib/public/decorators/interface-designer-item/index.mjs +3 -1
- package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item-decorator-utils.mjs +29 -0
- package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +4 -19
- package/esm2022/lib/public/decorators/interface-designer-item/mobile-interface-designer-item.decorator.mjs +10 -0
- package/esm2022/lib/public/decorators/view-element/index.mjs +3 -1
- package/esm2022/lib/public/decorators/view-element/mobile-view-element.decorator.mjs +9 -0
- package/esm2022/lib/public/decorators/view-element/view-element-decorator-utils.mjs +33 -0
- package/esm2022/lib/public/decorators/view-element/view-element.decorator.mjs +4 -23
- package/esm2022/lib/public/enums/index.mjs +2 -1
- package/esm2022/lib/public/enums/view-model-collection-action-type.enum.mjs +24 -0
- package/esm2022/lib/public/functions/bootstrap-crt-module.mjs +30 -13
- package/esm2022/lib/public/models/ai-context/ai-context-part.mjs +2 -2
- package/esm2022/lib/public/models/index.mjs +11 -11
- package/esm2022/lib/public/models/module-definition.mjs +1 -1
- package/esm2022/lib/public/models/request/view-model-attribute-change-event-options.mjs +1 -1
- package/esm2022/lib/public/models/view-model-collection/index.mjs +3 -0
- package/esm2022/lib/public/models/view-model-collection/view-model-collection-change.model.mjs +2 -0
- package/esm2022/lib/public/models/view-model-collection/view-model-collection.model.mjs +2 -0
- package/esm2022/lib/public/services/handler-chain/internal-handler-chain.mjs +1 -1
- package/esm2022/lib/public/services/index.mjs +11 -9
- package/esm2022/lib/public/services/model/model.mjs +19 -2
- package/esm2022/lib/public/services/schema-modal/index.mjs +3 -0
- package/esm2022/lib/public/services/schema-modal/schema-modal-config.model.mjs +2 -0
- package/esm2022/lib/public/services/schema-modal/schema-modal.service.mjs +23 -0
- package/esm2022/lib/public/services/sys-values/sys-values.mjs +1 -1
- package/esm2022/lib/public/services/transaction-factory/index.mjs +2 -0
- package/esm2022/lib/public/services/transaction-factory/transaction-factory.service.mjs +40 -0
- package/fesm2022/creatio-devkit-common.mjs +837 -506
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +312 -9
- package/package.json +14 -2
- package/esm2022/lib/internal/utils/component-config-utils.mjs +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ɵAggregationType as _AggregationType, ɵAggregationFunction as _AggregationFunction, ɵAggregationEvalType as _AggregationEvalType, ɵDatePartType as _DatePartType, ɵFunctionType as _FunctionType, ɵOrderDirection as _OrderDirection,
|
|
1
|
+
import { ɵgenerateGuid as _generateGuid, ɵNextHandlerAlreadySpecifiedException as _NextHandlerAlreadySpecifiedException, ɵAggregationType as _AggregationType, ɵAggregationFunction as _AggregationFunction, ɵAggregationEvalType as _AggregationEvalType, ɵDatePartType as _DatePartType, ɵFunctionType as _FunctionType, ɵOrderDirection as _OrderDirection, ɵBaseRequest as _BaseRequest, ɵSchemaViewMaskRequest as _SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as _SchemaViewMaskRequestAction } from '@creatio/base';
|
|
2
2
|
export { ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵColumnExpression as ColumnExpression, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaType as DataSchemaType, ɵDataSourceScope as DataSourceScope, ɵDataValueType as DataValueType, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartType as DatePartType, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionType as FunctionType, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLogicalOperatorType as LogicalOperatorType, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵMessageChannelType as MessageChannelType, ɵModelInPageAction as ModelInPageAction, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterQueryColumn as ParameterQueryColumn, ɵPlatformAPIs as PlatformAPIs, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵSchemaViewMaskRequest as SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵSubscription as Subscription, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
3
3
|
import { get, set, upperFirst, camelCase, isEqual, cloneDeep, isEmpty } from 'lodash';
|
|
4
4
|
import 'reflect-metadata';
|
|
@@ -9,195 +9,29 @@ import { __decorate, __metadata } from 'tslib';
|
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return _AggregationType.Min;
|
|
22
|
-
case _AggregationFunction.Max:
|
|
23
|
-
return _AggregationType.Max;
|
|
24
|
-
case _AggregationFunction.TopOne:
|
|
25
|
-
return _AggregationType.TopOne;
|
|
26
|
-
default:
|
|
27
|
-
return _AggregationType.None;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
function toAggregationFunction(aggregationType) {
|
|
34
|
-
switch (aggregationType) {
|
|
35
|
-
case _AggregationType.Count:
|
|
36
|
-
return _AggregationFunction.Count;
|
|
37
|
-
case _AggregationType.Sum:
|
|
38
|
-
return _AggregationFunction.Sum;
|
|
39
|
-
case _AggregationType.Avg:
|
|
40
|
-
return _AggregationFunction.Avg;
|
|
41
|
-
case _AggregationType.Min:
|
|
42
|
-
return _AggregationFunction.Min;
|
|
43
|
-
case _AggregationType.Max:
|
|
44
|
-
return _AggregationFunction.Max;
|
|
45
|
-
case _AggregationType.TopOne:
|
|
46
|
-
return _AggregationFunction.TopOne;
|
|
47
|
-
default:
|
|
48
|
-
return _AggregationFunction.None;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
function toAggregationEvalType(aggregationEval) {
|
|
55
|
-
switch (aggregationEval) {
|
|
56
|
-
case 'all':
|
|
57
|
-
return _AggregationEvalType.All;
|
|
58
|
-
case 'distinct':
|
|
59
|
-
return _AggregationEvalType.Distinct;
|
|
60
|
-
default:
|
|
61
|
-
return _AggregationEvalType.None;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
function toAggregationEval(aggregationEvalType) {
|
|
68
|
-
switch (aggregationEvalType) {
|
|
69
|
-
case _AggregationEvalType.All:
|
|
70
|
-
return 'all';
|
|
71
|
-
case _AggregationEvalType.Distinct:
|
|
72
|
-
return 'distinct';
|
|
73
|
-
default:
|
|
74
|
-
return 'none';
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
function toDatePartType(aggregationFunction) {
|
|
82
|
-
switch (aggregationFunction) {
|
|
83
|
-
case 'minute':
|
|
84
|
-
return _DatePartType.HourMinute;
|
|
85
|
-
case 'hour':
|
|
86
|
-
return _DatePartType.Hour;
|
|
87
|
-
case 'day':
|
|
88
|
-
return _DatePartType.Day;
|
|
89
|
-
case 'weekday':
|
|
90
|
-
return _DatePartType.WeekDay;
|
|
91
|
-
case 'week':
|
|
92
|
-
return _DatePartType.Week;
|
|
93
|
-
case 'month':
|
|
94
|
-
return _DatePartType.Month;
|
|
95
|
-
case 'year':
|
|
96
|
-
return _DatePartType.Year;
|
|
97
|
-
default:
|
|
98
|
-
return _DatePartType.None;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
function toDatePart(aggregationType) {
|
|
105
|
-
switch (aggregationType) {
|
|
106
|
-
case _DatePartType.HourMinute:
|
|
107
|
-
return 'minute';
|
|
108
|
-
case _DatePartType.Hour:
|
|
109
|
-
return 'hour';
|
|
110
|
-
case _DatePartType.Day:
|
|
111
|
-
return 'day';
|
|
112
|
-
case _DatePartType.WeekDay:
|
|
113
|
-
return 'weekday';
|
|
114
|
-
case _DatePartType.Week:
|
|
115
|
-
return 'week';
|
|
116
|
-
case _DatePartType.Month:
|
|
117
|
-
return 'month';
|
|
118
|
-
case _DatePartType.Year:
|
|
119
|
-
return 'year';
|
|
120
|
-
default:
|
|
121
|
-
return 'none';
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
function toStringFunctionType(functionType) {
|
|
129
|
-
switch (functionType) {
|
|
130
|
-
case _FunctionType.Aggregation:
|
|
131
|
-
return 'aggregation';
|
|
132
|
-
case _FunctionType.DatePart:
|
|
133
|
-
return 'datePart';
|
|
134
|
-
default:
|
|
135
|
-
return 'none';
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
function toNumericFunctionType(functionType) {
|
|
142
|
-
switch (functionType) {
|
|
143
|
-
case 'aggregation':
|
|
144
|
-
return _FunctionType.Aggregation;
|
|
145
|
-
case 'datePart':
|
|
146
|
-
return _FunctionType.DatePart;
|
|
147
|
-
default:
|
|
148
|
-
return _FunctionType.None;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
*/
|
|
155
|
-
function toOrderDirection(sortDirection) {
|
|
156
|
-
switch (sortDirection) {
|
|
157
|
-
case 'asc':
|
|
158
|
-
return _OrderDirection.Asc;
|
|
159
|
-
case 'desc':
|
|
160
|
-
return _OrderDirection.Desc;
|
|
161
|
-
default:
|
|
162
|
-
return _OrderDirection.None;
|
|
12
|
+
class FileViewerFactory {
|
|
13
|
+
static { this._instances = new Map(); }
|
|
14
|
+
/**
|
|
15
|
+
* Registers a file viewer instance type with a given name.
|
|
16
|
+
* @param name Name.
|
|
17
|
+
* @param instanceType Instance type.
|
|
18
|
+
*/
|
|
19
|
+
static registerFileViewer(name, instanceType) {
|
|
20
|
+
this._instances.set(name, instanceType);
|
|
163
21
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
default:
|
|
175
|
-
return 'none';
|
|
22
|
+
/**
|
|
23
|
+
* Creates a file viewer instance by name.
|
|
24
|
+
* @param name Name.
|
|
25
|
+
*/
|
|
26
|
+
static createFileViewerInstance(name) {
|
|
27
|
+
const instance = this._instances.get(name);
|
|
28
|
+
if (!instance) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
return new instance();
|
|
176
32
|
}
|
|
177
33
|
}
|
|
178
34
|
|
|
179
|
-
/**
|
|
180
|
-
* @internal
|
|
181
|
-
*/
|
|
182
|
-
const crtInputPrefix = 'crtInput:';
|
|
183
|
-
/**
|
|
184
|
-
* @internal
|
|
185
|
-
*/
|
|
186
|
-
const crtOutputPrefix = 'crtOutput:';
|
|
187
|
-
/**
|
|
188
|
-
* @internal
|
|
189
|
-
*/
|
|
190
|
-
const crtValidationInputPrefix = 'crtValidationInput:';
|
|
191
|
-
/**
|
|
192
|
-
* @internal
|
|
193
|
-
*/
|
|
194
|
-
const crtInjectPrefix = 'crtInject:';
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
|
-
const VIEW_ELEMENT_DEFAULT_HEIGHT = '39px';
|
|
200
|
-
|
|
201
35
|
/**
|
|
202
36
|
* @internal
|
|
203
37
|
*/
|
|
@@ -359,9 +193,33 @@ class HandlersOrderComparer {
|
|
|
359
193
|
}
|
|
360
194
|
}
|
|
361
195
|
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
const crtInputPrefix = 'crtInput:';
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
const crtOutputPrefix = 'crtOutput:';
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
const crtValidationInputPrefix = 'crtValidationInput:';
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
const crtInjectPrefix = 'crtInject:';
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
const VIEW_ELEMENT_DEFAULT_HEIGHT = '39px';
|
|
217
|
+
|
|
362
218
|
const moduleMetadataKey = 'module';
|
|
363
219
|
const viewElementMetadataKey = 'viewElement';
|
|
220
|
+
const mobileViewElementMetadataKey = 'mobileViewElement';
|
|
364
221
|
const interfaceDesignerItemMetadataKey = 'interfaceDesignerItem';
|
|
222
|
+
const mobileInterfaceDesignerItemMetadataKey = 'mobileInterfaceDesignerItem';
|
|
365
223
|
const requestHandlerMetadataKey = 'requestHandler';
|
|
366
224
|
const designTimeViewElementMetadataKey = 'designTimeViewElement';
|
|
367
225
|
const validatorMetadataKey = 'validator';
|
|
@@ -388,14 +246,24 @@ function getModuleMetadata(type) {
|
|
|
388
246
|
function setViewElementMetadata(metadata, type) {
|
|
389
247
|
Reflect.defineMetadata(viewElementMetadataKey, metadata, type);
|
|
390
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
252
|
+
function setMobileViewElementMetadata(metadata, type) {
|
|
253
|
+
Reflect.defineMetadata(mobileViewElementMetadataKey, metadata, type);
|
|
254
|
+
}
|
|
391
255
|
/**
|
|
392
256
|
* @internal
|
|
393
257
|
*/
|
|
394
258
|
function getViewElementMetadata(type) {
|
|
395
259
|
const metadata = Reflect.getMetadata(viewElementMetadataKey, type);
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
260
|
+
return metadata;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
265
|
+
function getMobileViewElementMetadata(type) {
|
|
266
|
+
const metadata = Reflect.getMetadata(mobileViewElementMetadataKey, type);
|
|
399
267
|
return metadata;
|
|
400
268
|
}
|
|
401
269
|
/**
|
|
@@ -436,14 +304,24 @@ function getConverterMetadata(type) {
|
|
|
436
304
|
function setInterfaceDesignerItemMetadata(metadata, type) {
|
|
437
305
|
Reflect.defineMetadata(interfaceDesignerItemMetadataKey, metadata, type);
|
|
438
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* @internal
|
|
309
|
+
*/
|
|
310
|
+
function setMobileInterfaceDesignerItemMetadata(metadata, type) {
|
|
311
|
+
Reflect.defineMetadata(mobileInterfaceDesignerItemMetadataKey, metadata, type);
|
|
312
|
+
}
|
|
439
313
|
/**
|
|
440
314
|
* @internal
|
|
441
315
|
*/
|
|
442
316
|
function getInterfaceDesignerItemMetadata(type) {
|
|
443
317
|
const metadata = Reflect.getOwnMetadata(interfaceDesignerItemMetadataKey, type);
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
318
|
+
return metadata;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
function getMobileInterfaceDesignerItemMetadata(type) {
|
|
324
|
+
const metadata = Reflect.getOwnMetadata(mobileInterfaceDesignerItemMetadataKey, type);
|
|
447
325
|
return metadata;
|
|
448
326
|
}
|
|
449
327
|
/**
|
|
@@ -468,6 +346,12 @@ function getDesignTimeViewElementMetadata(type) {
|
|
|
468
346
|
function hasInterfaceDesignerItemMetadata(type) {
|
|
469
347
|
return Reflect.hasOwnMetadata(interfaceDesignerItemMetadataKey, type);
|
|
470
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* @internal
|
|
351
|
+
*/
|
|
352
|
+
function hasMobileInterfaceDesignerItemMetadata(type) {
|
|
353
|
+
return Reflect.hasOwnMetadata(mobileInterfaceDesignerItemMetadataKey, type);
|
|
354
|
+
}
|
|
471
355
|
/**
|
|
472
356
|
* @internal
|
|
473
357
|
*/
|
|
@@ -911,22 +795,243 @@ class HandlerChainService {
|
|
|
911
795
|
/**
|
|
912
796
|
* @internal
|
|
913
797
|
*/
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
798
|
+
class FileViewerInstance {
|
|
799
|
+
constructor() {
|
|
800
|
+
this._handlerChain = HandlerChainService.instance;
|
|
801
|
+
this._optionsChangeListeners = new Set();
|
|
802
|
+
this.options = {};
|
|
803
|
+
/**
|
|
804
|
+
* Subscription that notifies when options change.
|
|
805
|
+
*/
|
|
806
|
+
this.optionsChanged = {
|
|
807
|
+
subscribe: (listener) => {
|
|
808
|
+
this._optionsChangeListeners.add(listener);
|
|
809
|
+
return () => this._optionsChangeListeners.delete(listener);
|
|
810
|
+
},
|
|
924
811
|
};
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Processes a request.
|
|
815
|
+
* @param requestType Request type.
|
|
816
|
+
* @param payload Request payload.
|
|
817
|
+
*/
|
|
818
|
+
processRequest(requestType, payload) {
|
|
819
|
+
const request = {
|
|
820
|
+
type: requestType,
|
|
821
|
+
$context: null,
|
|
822
|
+
scopes: [],
|
|
823
|
+
...payload,
|
|
824
|
+
};
|
|
825
|
+
return this._handlerChain.process(request);
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Sets options for the file viewer instance.
|
|
829
|
+
* @param options Options to set.
|
|
830
|
+
*/
|
|
831
|
+
setOptions(options) {
|
|
832
|
+
this.options = { ...this.options, ...options };
|
|
833
|
+
this._optionsChangeListeners.forEach((listener) => listener(this.options));
|
|
834
|
+
return Promise.resolve();
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Cleans up resources used by the instance.
|
|
838
|
+
*/
|
|
839
|
+
destroy() {
|
|
840
|
+
this._optionsChangeListeners.clear();
|
|
841
|
+
return Promise.resolve();
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* @internal
|
|
847
|
+
*/
|
|
848
|
+
function toAggregationType(aggregationFunction) {
|
|
849
|
+
switch (aggregationFunction) {
|
|
850
|
+
case _AggregationFunction.Count:
|
|
851
|
+
return _AggregationType.Count;
|
|
852
|
+
case _AggregationFunction.Sum:
|
|
853
|
+
return _AggregationType.Sum;
|
|
854
|
+
case _AggregationFunction.Avg:
|
|
855
|
+
return _AggregationType.Avg;
|
|
856
|
+
case _AggregationFunction.Min:
|
|
857
|
+
return _AggregationType.Min;
|
|
858
|
+
case _AggregationFunction.Max:
|
|
859
|
+
return _AggregationType.Max;
|
|
860
|
+
case _AggregationFunction.TopOne:
|
|
861
|
+
return _AggregationType.TopOne;
|
|
862
|
+
default:
|
|
863
|
+
return _AggregationType.None;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* @internal
|
|
868
|
+
*/
|
|
869
|
+
function toAggregationFunction(aggregationType) {
|
|
870
|
+
switch (aggregationType) {
|
|
871
|
+
case _AggregationType.Count:
|
|
872
|
+
return _AggregationFunction.Count;
|
|
873
|
+
case _AggregationType.Sum:
|
|
874
|
+
return _AggregationFunction.Sum;
|
|
875
|
+
case _AggregationType.Avg:
|
|
876
|
+
return _AggregationFunction.Avg;
|
|
877
|
+
case _AggregationType.Min:
|
|
878
|
+
return _AggregationFunction.Min;
|
|
879
|
+
case _AggregationType.Max:
|
|
880
|
+
return _AggregationFunction.Max;
|
|
881
|
+
case _AggregationType.TopOne:
|
|
882
|
+
return _AggregationFunction.TopOne;
|
|
883
|
+
default:
|
|
884
|
+
return _AggregationFunction.None;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* @internal
|
|
889
|
+
*/
|
|
890
|
+
function toAggregationEvalType(aggregationEval) {
|
|
891
|
+
switch (aggregationEval) {
|
|
892
|
+
case 'all':
|
|
893
|
+
return _AggregationEvalType.All;
|
|
894
|
+
case 'distinct':
|
|
895
|
+
return _AggregationEvalType.Distinct;
|
|
896
|
+
default:
|
|
897
|
+
return _AggregationEvalType.None;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* @internal
|
|
902
|
+
*/
|
|
903
|
+
function toAggregationEval(aggregationEvalType) {
|
|
904
|
+
switch (aggregationEvalType) {
|
|
905
|
+
case _AggregationEvalType.All:
|
|
906
|
+
return 'all';
|
|
907
|
+
case _AggregationEvalType.Distinct:
|
|
908
|
+
return 'distinct';
|
|
909
|
+
default:
|
|
910
|
+
return 'none';
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* @internal
|
|
916
|
+
*/
|
|
917
|
+
function toDatePartType(aggregationFunction) {
|
|
918
|
+
switch (aggregationFunction) {
|
|
919
|
+
case 'minute':
|
|
920
|
+
return _DatePartType.HourMinute;
|
|
921
|
+
case 'hour':
|
|
922
|
+
return _DatePartType.Hour;
|
|
923
|
+
case 'day':
|
|
924
|
+
return _DatePartType.Day;
|
|
925
|
+
case 'weekday':
|
|
926
|
+
return _DatePartType.WeekDay;
|
|
927
|
+
case 'week':
|
|
928
|
+
return _DatePartType.Week;
|
|
929
|
+
case 'month':
|
|
930
|
+
return _DatePartType.Month;
|
|
931
|
+
case 'year':
|
|
932
|
+
return _DatePartType.Year;
|
|
933
|
+
default:
|
|
934
|
+
return _DatePartType.None;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* @internal
|
|
939
|
+
*/
|
|
940
|
+
function toDatePart(aggregationType) {
|
|
941
|
+
switch (aggregationType) {
|
|
942
|
+
case _DatePartType.HourMinute:
|
|
943
|
+
return 'minute';
|
|
944
|
+
case _DatePartType.Hour:
|
|
945
|
+
return 'hour';
|
|
946
|
+
case _DatePartType.Day:
|
|
947
|
+
return 'day';
|
|
948
|
+
case _DatePartType.WeekDay:
|
|
949
|
+
return 'weekday';
|
|
950
|
+
case _DatePartType.Week:
|
|
951
|
+
return 'week';
|
|
952
|
+
case _DatePartType.Month:
|
|
953
|
+
return 'month';
|
|
954
|
+
case _DatePartType.Year:
|
|
955
|
+
return 'year';
|
|
956
|
+
default:
|
|
957
|
+
return 'none';
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* @internal
|
|
963
|
+
*/
|
|
964
|
+
function toStringFunctionType(functionType) {
|
|
965
|
+
switch (functionType) {
|
|
966
|
+
case _FunctionType.Aggregation:
|
|
967
|
+
return 'aggregation';
|
|
968
|
+
case _FunctionType.DatePart:
|
|
969
|
+
return 'datePart';
|
|
970
|
+
default:
|
|
971
|
+
return 'none';
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* @internal
|
|
976
|
+
*/
|
|
977
|
+
function toNumericFunctionType(functionType) {
|
|
978
|
+
switch (functionType) {
|
|
979
|
+
case 'aggregation':
|
|
980
|
+
return _FunctionType.Aggregation;
|
|
981
|
+
case 'datePart':
|
|
982
|
+
return _FunctionType.DatePart;
|
|
983
|
+
default:
|
|
984
|
+
return _FunctionType.None;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* @internal
|
|
990
|
+
*/
|
|
991
|
+
function toOrderDirection(sortDirection) {
|
|
992
|
+
switch (sortDirection) {
|
|
993
|
+
case 'asc':
|
|
994
|
+
return _OrderDirection.Asc;
|
|
995
|
+
case 'desc':
|
|
996
|
+
return _OrderDirection.Desc;
|
|
997
|
+
default:
|
|
998
|
+
return _OrderDirection.None;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* @internal
|
|
1003
|
+
*/
|
|
1004
|
+
function toSortDirection(orderDirection) {
|
|
1005
|
+
switch (orderDirection) {
|
|
1006
|
+
case _OrderDirection.Asc:
|
|
1007
|
+
return 'asc';
|
|
1008
|
+
case _OrderDirection.Desc:
|
|
1009
|
+
return 'desc';
|
|
1010
|
+
default:
|
|
1011
|
+
return 'none';
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* @internal
|
|
1017
|
+
*/
|
|
1018
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1019
|
+
function ImplementUsingHandlerChain(config) {
|
|
1020
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1021
|
+
return function (target, method, descriptor) {
|
|
1022
|
+
const methodImplementation = function (...args) {
|
|
1023
|
+
const result = HandlerChainService.instance.process({
|
|
1024
|
+
type: config?.requestType ? config.requestType : this.requestType,
|
|
1025
|
+
method: config?.methodName ? config.methodName : method,
|
|
1026
|
+
args,
|
|
1027
|
+
});
|
|
1028
|
+
return config?.omitResult ? Promise.resolve(void 0) : result;
|
|
1029
|
+
};
|
|
1030
|
+
if (descriptor) {
|
|
1031
|
+
descriptor.value = methodImplementation;
|
|
1032
|
+
}
|
|
1033
|
+
else {
|
|
1034
|
+
target[method] = methodImplementation;
|
|
930
1035
|
}
|
|
931
1036
|
};
|
|
932
1037
|
}
|
|
@@ -1189,21 +1294,16 @@ class ConverterRegistry extends ɵBaseRegistry {
|
|
|
1189
1294
|
|
|
1190
1295
|
/**
|
|
1191
1296
|
* @internal
|
|
1297
|
+
* @hostPublicApi available through window.creatio.registry.BaseViewElementRegistry
|
|
1192
1298
|
*/
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* @internal
|
|
1196
|
-
* @hostPublicApi available through window.creatio.registry.ValidatorRegistry
|
|
1197
|
-
*/
|
|
1198
|
-
class ViewElementRegistry extends ɵBaseRegistry {
|
|
1199
|
-
static { this.registryKey = viewElementRegistryKey; }
|
|
1299
|
+
class BaseViewElementRegistry extends ɵBaseRegistry {
|
|
1200
1300
|
static validate(config) {
|
|
1201
1301
|
checkTypeNameFormat(config.type, 'ViewElementTypeName');
|
|
1202
|
-
const existingItem =
|
|
1302
|
+
const existingItem = this.viewElements.get(config.type);
|
|
1203
1303
|
if (existingItem?.lazy && !('selector' in existingItem) && !existingItem.typeRef) {
|
|
1204
1304
|
return;
|
|
1205
1305
|
}
|
|
1206
|
-
checkOnlyOneRegistration(config.type, config,
|
|
1306
|
+
checkOnlyOneRegistration(config.type, config, this.viewElements);
|
|
1207
1307
|
}
|
|
1208
1308
|
static get viewElements() {
|
|
1209
1309
|
return this.store.typeInfos;
|
|
@@ -1219,6 +1319,10 @@ class ViewElementRegistry extends ɵBaseRegistry {
|
|
|
1219
1319
|
const config = this.store.typeInfos.get(type);
|
|
1220
1320
|
return (config && 'formControlConfig' in config && config.formControlConfig?.relatesTo) || null;
|
|
1221
1321
|
}
|
|
1322
|
+
static getValuePropertyName(type) {
|
|
1323
|
+
const config = this.store.typeInfos.get(type);
|
|
1324
|
+
return (config && 'valuePropertyName' in config && config.valuePropertyName) || null;
|
|
1325
|
+
}
|
|
1222
1326
|
static getViewElementInputs(type) {
|
|
1223
1327
|
const config = this.store.typeInfos.get(type);
|
|
1224
1328
|
return config?.inputs ?? {};
|
|
@@ -1260,6 +1364,29 @@ class ViewElementRegistry extends ɵBaseRegistry {
|
|
|
1260
1364
|
}
|
|
1261
1365
|
}
|
|
1262
1366
|
|
|
1367
|
+
/**
|
|
1368
|
+
* @internal
|
|
1369
|
+
*/
|
|
1370
|
+
const viewElementRegistryKey = 'ViewElementRegistry';
|
|
1371
|
+
/**
|
|
1372
|
+
* @internal
|
|
1373
|
+
*/
|
|
1374
|
+
class ViewElementRegistry extends BaseViewElementRegistry {
|
|
1375
|
+
static { this.registryKey = viewElementRegistryKey; }
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* @internal
|
|
1380
|
+
*/
|
|
1381
|
+
const mobileViewElementRegistryKey = 'MobileViewElementRegistry';
|
|
1382
|
+
/**
|
|
1383
|
+
* @internal
|
|
1384
|
+
* @hostPublicApi available through window.creatio.registry.MobileViewElementRegistry
|
|
1385
|
+
*/
|
|
1386
|
+
class MobileViewElementRegistry extends BaseViewElementRegistry {
|
|
1387
|
+
static { this.registryKey = mobileViewElementRegistryKey; }
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1263
1390
|
/**
|
|
1264
1391
|
* @internal
|
|
1265
1392
|
*/
|
|
@@ -1268,22 +1395,58 @@ const interfaceDesignerItemRegistryKey = 'InterfaceDesignerItemRegistry';
|
|
|
1268
1395
|
* @internal
|
|
1269
1396
|
* @hostPublicApi available through window.creatio.registry.InterfaceDesignerItemRegistry
|
|
1270
1397
|
*/
|
|
1271
|
-
class
|
|
1272
|
-
static
|
|
1398
|
+
class BaseInterfaceDesignerItemRegistry extends ɵBaseRegistry {
|
|
1399
|
+
static get _interfaceDesignerItemRegistrationInfos() {
|
|
1400
|
+
return this.store.typeInfos;
|
|
1401
|
+
}
|
|
1273
1402
|
static validate(config) {
|
|
1274
1403
|
checkTypeNameFormat(config.type, 'InterfaceDesignerItemTypeName');
|
|
1275
1404
|
checkCrtTypeNamePascalCase(config.type);
|
|
1276
|
-
checkOnlyOneRegistration(config.type, config, this.
|
|
1277
|
-
}
|
|
1278
|
-
static register(config) {
|
|
1279
|
-
this.interfaceDesignerItemRegistrationInfos.set(config.type, config);
|
|
1405
|
+
checkOnlyOneRegistration(config.type, config, this._interfaceDesignerItemRegistrationInfos);
|
|
1280
1406
|
}
|
|
1281
|
-
static
|
|
1282
|
-
|
|
1407
|
+
static register(typeOrConfig, config) {
|
|
1408
|
+
if (typeof typeOrConfig === 'string' && config) {
|
|
1409
|
+
this._interfaceDesignerItemRegistrationInfos.set(typeOrConfig, config);
|
|
1410
|
+
}
|
|
1411
|
+
else if (typeof typeOrConfig !== 'string') {
|
|
1412
|
+
this._interfaceDesignerItemRegistrationInfos.set(typeOrConfig.type, typeOrConfig);
|
|
1413
|
+
}
|
|
1414
|
+
else {
|
|
1415
|
+
throw new Error('Invalid arguments provided to register method.');
|
|
1416
|
+
}
|
|
1283
1417
|
}
|
|
1284
1418
|
static get(type) {
|
|
1285
|
-
return this.
|
|
1419
|
+
return this._interfaceDesignerItemRegistrationInfos.get(type);
|
|
1420
|
+
}
|
|
1421
|
+
static has(type) {
|
|
1422
|
+
return this._interfaceDesignerItemRegistrationInfos.has(type);
|
|
1423
|
+
}
|
|
1424
|
+
static getAll() {
|
|
1425
|
+
return this._interfaceDesignerItemRegistrationInfos;
|
|
1286
1426
|
}
|
|
1427
|
+
static values() {
|
|
1428
|
+
return [...this._interfaceDesignerItemRegistrationInfos.values()];
|
|
1429
|
+
}
|
|
1430
|
+
static clear() {
|
|
1431
|
+
this._interfaceDesignerItemRegistrationInfos.clear();
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* @internal
|
|
1436
|
+
*/
|
|
1437
|
+
class InterfaceDesignerItemRegistry extends BaseInterfaceDesignerItemRegistry {
|
|
1438
|
+
static { this.registryKey = interfaceDesignerItemRegistryKey; }
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* @internal
|
|
1443
|
+
*/
|
|
1444
|
+
const mobileInterfaceDesignerItemRegistryKey = 'MobileInterfaceDesignerItemRegistry';
|
|
1445
|
+
/**
|
|
1446
|
+
* @internal
|
|
1447
|
+
*/
|
|
1448
|
+
class MobileInterfaceDesignerItemRegistry extends BaseInterfaceDesignerItemRegistry {
|
|
1449
|
+
static { this.registryKey = mobileInterfaceDesignerItemRegistryKey; }
|
|
1287
1450
|
}
|
|
1288
1451
|
|
|
1289
1452
|
const global = window;
|
|
@@ -1348,6 +1511,9 @@ const designTimeViewElementRegistryKey = 'DesignTimeViewElementRegistry';
|
|
|
1348
1511
|
*/
|
|
1349
1512
|
class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
1350
1513
|
static { this.registryKey = designTimeViewElementRegistryKey; }
|
|
1514
|
+
static get infos() {
|
|
1515
|
+
return this.store.typeInfos;
|
|
1516
|
+
}
|
|
1351
1517
|
static validate(config) {
|
|
1352
1518
|
checkTypeNameFormat(config.type, 'DesignTimeViewElementRegistryItemTypeName');
|
|
1353
1519
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1363,9 +1529,6 @@ class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
|
1363
1529
|
}
|
|
1364
1530
|
return null;
|
|
1365
1531
|
}
|
|
1366
|
-
static get infos() {
|
|
1367
|
-
return this.store.typeInfos;
|
|
1368
|
-
}
|
|
1369
1532
|
}
|
|
1370
1533
|
|
|
1371
1534
|
/**
|
|
@@ -1449,6 +1612,27 @@ class ChatMessageTypeRegistry extends ɵBaseRegistry {
|
|
|
1449
1612
|
}
|
|
1450
1613
|
}
|
|
1451
1614
|
|
|
1615
|
+
/**
|
|
1616
|
+
* @internal
|
|
1617
|
+
*/
|
|
1618
|
+
class BaseRequestsResolver {
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* @internal
|
|
1623
|
+
*/
|
|
1624
|
+
class RequestsResolver extends BaseRequestsResolver {
|
|
1625
|
+
get(name) {
|
|
1626
|
+
return RequestRegistryService.requestsRegistrationInfos.get(name);
|
|
1627
|
+
}
|
|
1628
|
+
getAll() {
|
|
1629
|
+
return RequestRegistryService.requestsRegistrationInfos;
|
|
1630
|
+
}
|
|
1631
|
+
has(name) {
|
|
1632
|
+
return RequestRegistryService.requestsRegistrationInfos.has(name);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1452
1636
|
/**
|
|
1453
1637
|
* @public
|
|
1454
1638
|
* @description Function allows to register user-defined component as view element in Creatio platform.
|
|
@@ -1520,17 +1704,6 @@ function objectDeepKeys(obj) {
|
|
|
1520
1704
|
.reduce((x, y) => [...x, ...y], Object.keys(obj).map((x) => [x]));
|
|
1521
1705
|
}
|
|
1522
1706
|
|
|
1523
|
-
/**
|
|
1524
|
-
* @internal
|
|
1525
|
-
*/
|
|
1526
|
-
function isComponentPropertyBindable(viewConfigType, componentProperty) {
|
|
1527
|
-
const componentConfig = ViewElementRegistry.viewElements.get(viewConfigType);
|
|
1528
|
-
if (!componentConfig?.inputs) {
|
|
1529
|
-
return false;
|
|
1530
|
-
}
|
|
1531
|
-
return !!componentConfig?.inputs[componentProperty]?.propertyBindable;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
1707
|
/**
|
|
1535
1708
|
* @internal
|
|
1536
1709
|
*/
|
|
@@ -1560,6 +1733,38 @@ function ɵinstantiate(type, resolveDependency) {
|
|
|
1560
1733
|
class CrtInputRegistrationConfig {
|
|
1561
1734
|
}
|
|
1562
1735
|
|
|
1736
|
+
/**
|
|
1737
|
+
* @public
|
|
1738
|
+
*/
|
|
1739
|
+
class LocalizableValue {
|
|
1740
|
+
/**
|
|
1741
|
+
* @internal
|
|
1742
|
+
* @dontChange
|
|
1743
|
+
*/
|
|
1744
|
+
static { this._instanceOfKey = 'devkit_LocalizableValue'; }
|
|
1745
|
+
constructor(key) {
|
|
1746
|
+
this.key = key;
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* @internal
|
|
1750
|
+
*/
|
|
1751
|
+
static [Symbol.hasInstance](instance) {
|
|
1752
|
+
return instance?.constructor?.['_instanceOfKey'] === LocalizableValue._instanceOfKey;
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* @public
|
|
1758
|
+
* @class
|
|
1759
|
+
* @classdesc Class representing a request to run a process.
|
|
1760
|
+
* @property {Guid} schemaUId - The unique identifier of the process schema.
|
|
1761
|
+
* @property {string} schemaName - The name of the process schema.
|
|
1762
|
+
* @property {ProcessParameterValue[]} parameterValues - The values of the process parameters.
|
|
1763
|
+
* @property {string[]} resultParameterNames - The names of the resulting process parameters.
|
|
1764
|
+
*/
|
|
1765
|
+
class RunProcessRequest {
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1563
1768
|
/**
|
|
1564
1769
|
* @public
|
|
1565
1770
|
* @class DataRequest
|
|
@@ -1614,39 +1819,6 @@ HandleViewModelAttributeChangeRequest = __decorate([
|
|
|
1614
1819
|
__metadata("design:paramtypes", [Object])
|
|
1615
1820
|
], HandleViewModelAttributeChangeRequest);
|
|
1616
1821
|
|
|
1617
|
-
/**
|
|
1618
|
-
* @internal
|
|
1619
|
-
*/
|
|
1620
|
-
var ViewElementReuseStrategy;
|
|
1621
|
-
(function (ViewElementReuseStrategy) {
|
|
1622
|
-
/**
|
|
1623
|
-
* Reuse early created view element when it state changed
|
|
1624
|
-
*/
|
|
1625
|
-
ViewElementReuseStrategy[ViewElementReuseStrategy["Reuse"] = 0] = "Reuse";
|
|
1626
|
-
/**
|
|
1627
|
-
* Rerender(recreate) view element when it state changed
|
|
1628
|
-
*/
|
|
1629
|
-
ViewElementReuseStrategy[ViewElementReuseStrategy["Rerender"] = 1] = "Rerender";
|
|
1630
|
-
})(ViewElementReuseStrategy || (ViewElementReuseStrategy = {}));
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1633
|
-
* @public
|
|
1634
|
-
* @description Render strategy for view element.
|
|
1635
|
-
*/
|
|
1636
|
-
var ViewElementRenderStrategy;
|
|
1637
|
-
(function (ViewElementRenderStrategy) {
|
|
1638
|
-
/**
|
|
1639
|
-
* @description Default render strategy.
|
|
1640
|
-
* The element is rendered immediately.
|
|
1641
|
-
*/
|
|
1642
|
-
ViewElementRenderStrategy["Default"] = "default";
|
|
1643
|
-
/**
|
|
1644
|
-
* @description On viewport render strategy.
|
|
1645
|
-
* The element is rendered only when it becomes visible in the viewport.
|
|
1646
|
-
*/
|
|
1647
|
-
ViewElementRenderStrategy["OnViewport"] = "on-viewport";
|
|
1648
|
-
})(ViewElementRenderStrategy || (ViewElementRenderStrategy = {}));
|
|
1649
|
-
|
|
1650
1822
|
/**
|
|
1651
1823
|
* @public
|
|
1652
1824
|
* @description Abstract Base Validator class for designing custom validators.
|
|
@@ -1688,36 +1860,37 @@ class BaseValidator {
|
|
|
1688
1860
|
}
|
|
1689
1861
|
|
|
1690
1862
|
/**
|
|
1691
|
-
* @
|
|
1863
|
+
* @internal
|
|
1692
1864
|
*/
|
|
1693
|
-
|
|
1865
|
+
var ViewElementReuseStrategy;
|
|
1866
|
+
(function (ViewElementReuseStrategy) {
|
|
1694
1867
|
/**
|
|
1695
|
-
*
|
|
1696
|
-
* @dontChange
|
|
1868
|
+
* Reuse early created view element when it state changed
|
|
1697
1869
|
*/
|
|
1698
|
-
|
|
1699
|
-
constructor(key) {
|
|
1700
|
-
this.key = key;
|
|
1701
|
-
}
|
|
1870
|
+
ViewElementReuseStrategy[ViewElementReuseStrategy["Reuse"] = 0] = "Reuse";
|
|
1702
1871
|
/**
|
|
1703
|
-
*
|
|
1872
|
+
* Rerender(recreate) view element when it state changed
|
|
1704
1873
|
*/
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1874
|
+
ViewElementReuseStrategy[ViewElementReuseStrategy["Rerender"] = 1] = "Rerender";
|
|
1875
|
+
})(ViewElementReuseStrategy || (ViewElementReuseStrategy = {}));
|
|
1709
1876
|
|
|
1710
1877
|
/**
|
|
1711
1878
|
* @public
|
|
1712
|
-
* @
|
|
1713
|
-
* @classdesc Class representing a request to run a process.
|
|
1714
|
-
* @property {Guid} schemaUId - The unique identifier of the process schema.
|
|
1715
|
-
* @property {string} schemaName - The name of the process schema.
|
|
1716
|
-
* @property {ProcessParameterValue[]} parameterValues - The values of the process parameters.
|
|
1717
|
-
* @property {string[]} resultParameterNames - The names of the resulting process parameters.
|
|
1879
|
+
* @description Render strategy for view element.
|
|
1718
1880
|
*/
|
|
1719
|
-
|
|
1720
|
-
|
|
1881
|
+
var ViewElementRenderStrategy;
|
|
1882
|
+
(function (ViewElementRenderStrategy) {
|
|
1883
|
+
/**
|
|
1884
|
+
* @description Default render strategy.
|
|
1885
|
+
* The element is rendered immediately.
|
|
1886
|
+
*/
|
|
1887
|
+
ViewElementRenderStrategy["Default"] = "default";
|
|
1888
|
+
/**
|
|
1889
|
+
* @description On viewport render strategy.
|
|
1890
|
+
* The element is rendered only when it becomes visible in the viewport.
|
|
1891
|
+
*/
|
|
1892
|
+
ViewElementRenderStrategy["OnViewport"] = "on-viewport";
|
|
1893
|
+
})(ViewElementRenderStrategy || (ViewElementRenderStrategy = {}));
|
|
1721
1894
|
|
|
1722
1895
|
/**
|
|
1723
1896
|
* @internal
|
|
@@ -1773,8 +1946,18 @@ function resistantForEach(items, callback) {
|
|
|
1773
1946
|
function registerViewElements(types) {
|
|
1774
1947
|
resistantForEach(types, (type) => {
|
|
1775
1948
|
const registrationConfig = getViewElementMetadata(type);
|
|
1776
|
-
|
|
1777
|
-
|
|
1949
|
+
if (registrationConfig) {
|
|
1950
|
+
ViewElementRegistry.validate(registrationConfig);
|
|
1951
|
+
ViewElementRegistry.register(registrationConfig);
|
|
1952
|
+
}
|
|
1953
|
+
const mobileRegistrationConfig = getMobileViewElementMetadata(type);
|
|
1954
|
+
if (mobileRegistrationConfig) {
|
|
1955
|
+
MobileViewElementRegistry.validate(mobileRegistrationConfig);
|
|
1956
|
+
MobileViewElementRegistry.register(mobileRegistrationConfig);
|
|
1957
|
+
}
|
|
1958
|
+
if (!registrationConfig && !mobileRegistrationConfig) {
|
|
1959
|
+
throw new Error(`View element metadata was not found on '${type.name}' class`);
|
|
1960
|
+
}
|
|
1778
1961
|
});
|
|
1779
1962
|
}
|
|
1780
1963
|
/**
|
|
@@ -1792,15 +1975,22 @@ function registerLazyViewElements(configs, lazyModuleRef) {
|
|
|
1792
1975
|
*/
|
|
1793
1976
|
function registerInterfaceDesignerItems(types, localizeFn) {
|
|
1794
1977
|
resistantForEach(types, (type) => {
|
|
1795
|
-
if (
|
|
1796
|
-
|
|
1978
|
+
if (hasInterfaceDesignerItemMetadata(type)) {
|
|
1979
|
+
let config = getInterfaceDesignerItemMetadata(type);
|
|
1980
|
+
config = applyLocalizeMetadataFn(config, localizeFn);
|
|
1981
|
+
const viewElementMetadata = getViewElementMetadata(type);
|
|
1982
|
+
config.type = viewElementMetadata.type;
|
|
1983
|
+
InterfaceDesignerItemRegistry.validate(config);
|
|
1984
|
+
InterfaceDesignerItemRegistry.register(config);
|
|
1985
|
+
}
|
|
1986
|
+
if (hasMobileInterfaceDesignerItemMetadata(type)) {
|
|
1987
|
+
let config = getMobileInterfaceDesignerItemMetadata(type);
|
|
1988
|
+
config = applyLocalizeMetadataFn(config, localizeFn);
|
|
1989
|
+
const viewElementMetadata = getMobileViewElementMetadata(type);
|
|
1990
|
+
config.type = viewElementMetadata.type;
|
|
1991
|
+
MobileInterfaceDesignerItemRegistry.validate(config);
|
|
1992
|
+
MobileInterfaceDesignerItemRegistry.register(config);
|
|
1797
1993
|
}
|
|
1798
|
-
let config = getInterfaceDesignerItemMetadata(type);
|
|
1799
|
-
config = applyLocalizeMetadataFn(config, localizeFn);
|
|
1800
|
-
const viewElementMetadata = getViewElementMetadata(type);
|
|
1801
|
-
config.type = viewElementMetadata.type;
|
|
1802
|
-
InterfaceDesignerItemRegistry.validate(config);
|
|
1803
|
-
InterfaceDesignerItemRegistry.register(config);
|
|
1804
1994
|
});
|
|
1805
1995
|
}
|
|
1806
1996
|
/**
|
|
@@ -2285,8 +2475,7 @@ function CrtValidationInput() {
|
|
|
2285
2475
|
/**
|
|
2286
2476
|
* @internal
|
|
2287
2477
|
*/
|
|
2288
|
-
|
|
2289
|
-
function CrtViewElement(config) {
|
|
2478
|
+
function viewElementRegister(config, platform) {
|
|
2290
2479
|
return function (type) {
|
|
2291
2480
|
checkTypeNamePascalCase(config.type);
|
|
2292
2481
|
const inputs = getCrtInputsMetadata(type);
|
|
@@ -2303,10 +2492,32 @@ function CrtViewElement(config) {
|
|
|
2303
2492
|
: { ...baseRegistrationConfig, typeRef: type };
|
|
2304
2493
|
registrationConfig.reuseStrategy = config?.reuseStrategy ?? ViewElementReuseStrategy.Rerender;
|
|
2305
2494
|
defineRenderConfig(registrationConfig);
|
|
2306
|
-
|
|
2495
|
+
if (platform === 'web') {
|
|
2496
|
+
setViewElementMetadata(registrationConfig, type);
|
|
2497
|
+
}
|
|
2498
|
+
else {
|
|
2499
|
+
setMobileViewElementMetadata(registrationConfig, type);
|
|
2500
|
+
}
|
|
2307
2501
|
};
|
|
2308
2502
|
}
|
|
2309
2503
|
|
|
2504
|
+
/**
|
|
2505
|
+
* @internal
|
|
2506
|
+
*/
|
|
2507
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2508
|
+
function CrtMobileViewElement(config) {
|
|
2509
|
+
return viewElementRegister(config, 'mobile');
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* @internal
|
|
2514
|
+
*/
|
|
2515
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2516
|
+
function CrtViewElement(config) {
|
|
2517
|
+
// Register the view element with the 'web' platform type
|
|
2518
|
+
return viewElementRegister(config, 'web');
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2310
2521
|
/**
|
|
2311
2522
|
* @internal
|
|
2312
2523
|
*/
|
|
@@ -2317,8 +2528,7 @@ function CrtModule(moduleDefinition) {
|
|
|
2317
2528
|
/**
|
|
2318
2529
|
* @internal
|
|
2319
2530
|
*/
|
|
2320
|
-
|
|
2321
|
-
function CrtInterfaceDesignerItem(config) {
|
|
2531
|
+
function interfaceDesignerItemRegister(config, platform) {
|
|
2322
2532
|
function _applyTypeCaption() {
|
|
2323
2533
|
if (!config.typeCaption && config.toolbarConfig) {
|
|
2324
2534
|
const toolbarConfig = Array.isArray(config.toolbarConfig)
|
|
@@ -2332,10 +2542,33 @@ function CrtInterfaceDesignerItem(config) {
|
|
|
2332
2542
|
config.viewElementGroupType ??= ViewElementGroupType.CustomElements;
|
|
2333
2543
|
_applyTypeCaption();
|
|
2334
2544
|
defineRenderConfig(config);
|
|
2335
|
-
|
|
2545
|
+
if (platform === 'mobile') {
|
|
2546
|
+
setMobileInterfaceDesignerItemMetadata(config, type);
|
|
2547
|
+
}
|
|
2548
|
+
else {
|
|
2549
|
+
setInterfaceDesignerItemMetadata(config, type);
|
|
2550
|
+
}
|
|
2336
2551
|
};
|
|
2337
2552
|
}
|
|
2338
2553
|
|
|
2554
|
+
// noinspection ES6PreferShortImport
|
|
2555
|
+
/**
|
|
2556
|
+
* @internal
|
|
2557
|
+
*/
|
|
2558
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2559
|
+
function CrtInterfaceDesignerItem(config) {
|
|
2560
|
+
return interfaceDesignerItemRegister(config, 'web');
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
// noinspection ES6PreferShortImport
|
|
2564
|
+
/**
|
|
2565
|
+
* @internal
|
|
2566
|
+
*/
|
|
2567
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2568
|
+
function CrtMobileInterfaceDesignerItem(config) {
|
|
2569
|
+
return interfaceDesignerItemRegister(config, 'mobile');
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2339
2572
|
/**
|
|
2340
2573
|
* @public
|
|
2341
2574
|
* @description
|
|
@@ -2479,6 +2712,30 @@ var ViewElementProperty;
|
|
|
2479
2712
|
ViewElementProperty["Disabled"] = "DISABLED_PROPERTY";
|
|
2480
2713
|
})(ViewElementProperty || (ViewElementProperty = {}));
|
|
2481
2714
|
|
|
2715
|
+
/**
|
|
2716
|
+
* @public
|
|
2717
|
+
* @description List of actions which can be performed on collection with a public API.
|
|
2718
|
+
*/
|
|
2719
|
+
var ViewModelCollectionActionType;
|
|
2720
|
+
(function (ViewModelCollectionActionType) {
|
|
2721
|
+
/**
|
|
2722
|
+
* @description Create a collection element.
|
|
2723
|
+
*/
|
|
2724
|
+
ViewModelCollectionActionType["Add"] = "add";
|
|
2725
|
+
/**
|
|
2726
|
+
* @description Remove an element from collection.
|
|
2727
|
+
*/
|
|
2728
|
+
ViewModelCollectionActionType["Remove"] = "remove";
|
|
2729
|
+
/**
|
|
2730
|
+
* @description Update an element in collection.
|
|
2731
|
+
*/
|
|
2732
|
+
ViewModelCollectionActionType["Move"] = "move";
|
|
2733
|
+
/**
|
|
2734
|
+
* @description Reload collection with new elements.
|
|
2735
|
+
*/
|
|
2736
|
+
ViewModelCollectionActionType["Reload"] = "reload";
|
|
2737
|
+
})(ViewModelCollectionActionType || (ViewModelCollectionActionType = {}));
|
|
2738
|
+
|
|
2482
2739
|
/**
|
|
2483
2740
|
* @public
|
|
2484
2741
|
* @abstract
|
|
@@ -2514,131 +2771,157 @@ class BaseRequestHandler {
|
|
|
2514
2771
|
}
|
|
2515
2772
|
}
|
|
2516
2773
|
|
|
2517
|
-
class BaseHandlerChainService {
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
/**
|
|
2521
|
-
* @public
|
|
2522
|
-
* @classdesc Service to working with Creatio platform features using handler chain
|
|
2523
|
-
* @extends {BaseHandlerChainService}
|
|
2524
|
-
*/
|
|
2525
|
-
class FeatureService extends BaseHandlerChainService {
|
|
2526
|
-
constructor() {
|
|
2527
|
-
super(...arguments);
|
|
2528
|
-
/**
|
|
2529
|
-
* @internal
|
|
2530
|
-
*/
|
|
2531
|
-
this.requestType = 'crt.FeatureService';
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
__decorate([
|
|
2535
|
-
ImplementUsingHandlerChain(),
|
|
2536
|
-
__metadata("design:type", Function)
|
|
2537
|
-
], FeatureService.prototype, "getFeatureState", void 0);
|
|
2538
|
-
__decorate([
|
|
2539
|
-
ImplementUsingHandlerChain(),
|
|
2540
|
-
__metadata("design:type", Function)
|
|
2541
|
-
], FeatureService.prototype, "getFeaturesState", void 0);
|
|
2542
|
-
|
|
2543
2774
|
/**
|
|
2544
|
-
*
|
|
2545
|
-
*
|
|
2546
|
-
*
|
|
2775
|
+
* Service for managing AI context parts and providing a unified context.
|
|
2776
|
+
* This service allows adding, retrieving, and removing context parts, which can be
|
|
2777
|
+
* either static values, promises, or dynamically provided through a function.
|
|
2547
2778
|
*/
|
|
2548
|
-
class
|
|
2779
|
+
class AiContextService {
|
|
2549
2780
|
constructor() {
|
|
2550
|
-
|
|
2551
|
-
/**
|
|
2552
|
-
* @internal
|
|
2553
|
-
*/
|
|
2554
|
-
this.requestType = 'crt.RightsService';
|
|
2781
|
+
this._contextParts = [];
|
|
2555
2782
|
}
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
ImplementUsingHandlerChain(),
|
|
2563
|
-
__metadata("design:type", Function)
|
|
2564
|
-
], RightsService.prototype, "getCanExecuteOperations", void 0);
|
|
2565
|
-
|
|
2566
|
-
/**
|
|
2567
|
-
* @public
|
|
2568
|
-
* @class SysSettingsService
|
|
2569
|
-
* @classdesc Service to working with system settings using handler chain
|
|
2570
|
-
* @extends {BaseHandlerChainService}
|
|
2571
|
-
*/
|
|
2572
|
-
// TODO RND-45286 (implement BaseSysSettingsService)
|
|
2573
|
-
class SysSettingsService extends BaseHandlerChainService {
|
|
2574
|
-
constructor() {
|
|
2575
|
-
super(...arguments);
|
|
2576
|
-
/**
|
|
2577
|
-
* @internal
|
|
2578
|
-
*/
|
|
2579
|
-
this.requestType = 'crt.SysSettingsService';
|
|
2783
|
+
/**
|
|
2784
|
+
* Retrieves the singleton instance of the `AiContextService`.
|
|
2785
|
+
* If the instance does not exist, it will be created.
|
|
2786
|
+
*/
|
|
2787
|
+
static get instance() {
|
|
2788
|
+
return AiContextService._instance || (AiContextService._instance = new AiContextService());
|
|
2580
2789
|
}
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2790
|
+
/**
|
|
2791
|
+
* Generates a unique identifier for a context part.
|
|
2792
|
+
* @returns A string representing a unique identifier.
|
|
2793
|
+
*/
|
|
2794
|
+
_generateId() {
|
|
2795
|
+
const length = 9;
|
|
2796
|
+
const base = 36;
|
|
2797
|
+
const array = new Uint32Array(length);
|
|
2798
|
+
window.crypto.getRandomValues(array);
|
|
2799
|
+
return Array.from(array, (num) => (num % base).toString(base)).join('');
|
|
2800
|
+
}
|
|
2801
|
+
/**
|
|
2802
|
+
* @public
|
|
2803
|
+
* Adds a new context part to the service.
|
|
2804
|
+
* The context part can be a static value, a promise, or a function that provides the value.
|
|
2805
|
+
*
|
|
2806
|
+
* @param value - The context part to add. It can be one of the following:
|
|
2807
|
+
* - `ContextProvider` (a function that provides the context part)
|
|
2808
|
+
* @param id - (Optional) A unique identifier for the context part. If not provided, a new ID will be generated.
|
|
2809
|
+
* @returns The unique identifier of the added context part.
|
|
2810
|
+
*/
|
|
2811
|
+
setContextPart(value, id = this._generateId()) {
|
|
2812
|
+
const provider = typeof value === 'function' ? value : () => value;
|
|
2813
|
+
this._contextParts.push({ id, provider });
|
|
2814
|
+
return id;
|
|
2815
|
+
}
|
|
2816
|
+
/**
|
|
2817
|
+
* @public
|
|
2818
|
+
* Retrieves all context parts as an array of resolved values.
|
|
2819
|
+
* If the context parts include promises or functions, they will be resolved.
|
|
2820
|
+
*
|
|
2821
|
+
* @returns A promise that resolves to an array of context parts, which can be
|
|
2822
|
+
* either `CreatioPageContextPart` or `ConstantValuesContextPart`.
|
|
2823
|
+
*/
|
|
2824
|
+
async getContext() {
|
|
2825
|
+
if (!this._contextParts || this._contextParts.length === 0) {
|
|
2826
|
+
return [];
|
|
2827
|
+
}
|
|
2828
|
+
const resolved = await Promise.all(this._contextParts.map((c) => c.provider()));
|
|
2829
|
+
return resolved
|
|
2830
|
+
.filter((e) => e !== null)
|
|
2831
|
+
.map((p) => {
|
|
2832
|
+
const type = p.type;
|
|
2833
|
+
if (!type || type === 'CreatioPageContextPart' || type === 'ConstantValuesContextPart') {
|
|
2834
|
+
return {
|
|
2835
|
+
...p,
|
|
2836
|
+
type,
|
|
2837
|
+
};
|
|
2838
|
+
}
|
|
2839
|
+
throw new Error(`Invalid context part type: ${type}`);
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
/**
|
|
2843
|
+
* @public
|
|
2844
|
+
* Removes a specific context part by its unique identifier.
|
|
2845
|
+
*
|
|
2846
|
+
* @param id - The unique identifier of the context part to remove.
|
|
2847
|
+
*/
|
|
2848
|
+
removeContextPart(id) {
|
|
2849
|
+
this._contextParts = this._contextParts.filter((ctx) => ctx.id !== id);
|
|
2850
|
+
}
|
|
2851
|
+
/**
|
|
2852
|
+
* @public
|
|
2853
|
+
* Removes all context parts from the service.
|
|
2854
|
+
*/
|
|
2855
|
+
removeContext() {
|
|
2856
|
+
this._contextParts = [];
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
class BaseHandlerChainService {
|
|
2861
|
+
}
|
|
2598
2862
|
|
|
2599
2863
|
/**
|
|
2600
2864
|
* @public
|
|
2601
|
-
* @
|
|
2602
|
-
* @
|
|
2603
|
-
* @property {ɵGuid} id - id of system setting.
|
|
2604
|
-
* @property {string} name - name of system setting.
|
|
2605
|
-
* @property {string} code - code of system setting.
|
|
2606
|
-
* @property {isCacheable} boolean - indicator whether system setting is cacheable
|
|
2607
|
-
* @property {any} value - value of system setting
|
|
2608
|
-
* @property {string} displayValue - display value of system setting
|
|
2609
|
-
* @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}
|
|
2865
|
+
* @classdesc Service to handling a way of tasks execution in Creatio plaform
|
|
2866
|
+
* @extends {BaseHandlerChainService}
|
|
2610
2867
|
*/
|
|
2611
|
-
class
|
|
2868
|
+
class CrtZoneService extends BaseHandlerChainService {
|
|
2869
|
+
constructor() {
|
|
2870
|
+
super(...arguments);
|
|
2871
|
+
/**
|
|
2872
|
+
* @internal
|
|
2873
|
+
*/
|
|
2874
|
+
this.requestType = 'crt.ZoneService';
|
|
2875
|
+
}
|
|
2612
2876
|
}
|
|
2877
|
+
__decorate([
|
|
2878
|
+
ImplementUsingHandlerChain(),
|
|
2879
|
+
__metadata("design:type", Function)
|
|
2880
|
+
], CrtZoneService.prototype, "runOutside", void 0);
|
|
2881
|
+
|
|
2613
2882
|
/**
|
|
2614
2883
|
* @public
|
|
2615
|
-
* @
|
|
2616
|
-
* @
|
|
2617
|
-
* @property {string} code - code of system setting
|
|
2618
|
-
* @property {any} value - value of system setting
|
|
2884
|
+
* @classdesc Service to working with dialog using handler chain.
|
|
2885
|
+
* @extends {BaseHandlerChainService}
|
|
2619
2886
|
*/
|
|
2620
|
-
class
|
|
2887
|
+
class DialogService extends BaseHandlerChainService {
|
|
2888
|
+
constructor() {
|
|
2889
|
+
super(...arguments);
|
|
2890
|
+
/**
|
|
2891
|
+
* @internal
|
|
2892
|
+
*/
|
|
2893
|
+
this.requestType = 'crt.DialogService';
|
|
2894
|
+
}
|
|
2621
2895
|
}
|
|
2896
|
+
__decorate([
|
|
2897
|
+
ImplementUsingHandlerChain({
|
|
2898
|
+
methodName: 'openDialog',
|
|
2899
|
+
}),
|
|
2900
|
+
__metadata("design:type", Function)
|
|
2901
|
+
], DialogService.prototype, "open", void 0);
|
|
2622
2902
|
|
|
2623
2903
|
/**
|
|
2624
2904
|
* @public
|
|
2625
|
-
* @classdesc
|
|
2626
|
-
* @class SysValuesService Service to working with system values using handler chain
|
|
2905
|
+
* @classdesc Service to working with Creatio platform features using handler chain
|
|
2627
2906
|
* @extends {BaseHandlerChainService}
|
|
2628
2907
|
*/
|
|
2629
|
-
class
|
|
2908
|
+
class FeatureService extends BaseHandlerChainService {
|
|
2630
2909
|
constructor() {
|
|
2631
2910
|
super(...arguments);
|
|
2632
2911
|
/**
|
|
2633
2912
|
* @internal
|
|
2634
2913
|
*/
|
|
2635
|
-
this.requestType = 'crt.
|
|
2914
|
+
this.requestType = 'crt.FeatureService';
|
|
2636
2915
|
}
|
|
2637
2916
|
}
|
|
2638
2917
|
__decorate([
|
|
2639
2918
|
ImplementUsingHandlerChain(),
|
|
2640
2919
|
__metadata("design:type", Function)
|
|
2641
|
-
],
|
|
2920
|
+
], FeatureService.prototype, "getFeatureState", void 0);
|
|
2921
|
+
__decorate([
|
|
2922
|
+
ImplementUsingHandlerChain(),
|
|
2923
|
+
__metadata("design:type", Function)
|
|
2924
|
+
], FeatureService.prototype, "getFeaturesState", void 0);
|
|
2642
2925
|
|
|
2643
2926
|
/**
|
|
2644
2927
|
* @public
|
|
@@ -2788,6 +3071,30 @@ __decorate([
|
|
|
2788
3071
|
__metadata("design:type", Function)
|
|
2789
3072
|
], MaskService.prototype, "hideBodyMask", void 0);
|
|
2790
3073
|
|
|
3074
|
+
/**
|
|
3075
|
+
* @public
|
|
3076
|
+
* @classdesc Service for working with messages sent or received through a server channel.
|
|
3077
|
+
* @extends {BaseHandlerChainService}
|
|
3078
|
+
* @implements {BaseMessageChannelService}
|
|
3079
|
+
*/
|
|
3080
|
+
class MessageChannelService extends BaseHandlerChainService {
|
|
3081
|
+
constructor() {
|
|
3082
|
+
super(...arguments);
|
|
3083
|
+
/**
|
|
3084
|
+
* @internal
|
|
3085
|
+
*/
|
|
3086
|
+
this.requestType = 'crt.MessageChannelService';
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
__decorate([
|
|
3090
|
+
ImplementUsingHandlerChain(),
|
|
3091
|
+
__metadata("design:type", Function)
|
|
3092
|
+
], MessageChannelService.prototype, "subscribe", void 0);
|
|
3093
|
+
__decorate([
|
|
3094
|
+
ImplementUsingHandlerChain(),
|
|
3095
|
+
__metadata("design:type", Function)
|
|
3096
|
+
], MessageChannelService.prototype, "sendMessage", void 0);
|
|
3097
|
+
|
|
2791
3098
|
/**
|
|
2792
3099
|
* @internal
|
|
2793
3100
|
*/
|
|
@@ -2844,7 +3151,15 @@ class Model extends BaseHandlerChainService {
|
|
|
2844
3151
|
insert(dto) {
|
|
2845
3152
|
return this._crtModel._getAsyncResult(this._crtModel.insert(dto));
|
|
2846
3153
|
}
|
|
2847
|
-
update(dto, parameters) {
|
|
3154
|
+
async update(dto, parameters) {
|
|
3155
|
+
const changedAttributes = Object.keys(dto);
|
|
3156
|
+
if (changedAttributes.length) {
|
|
3157
|
+
const schema = await this.getSchema();
|
|
3158
|
+
const primaryAttributeName = schema.primaryAttributeName;
|
|
3159
|
+
changedAttributes
|
|
3160
|
+
.filter((attribute) => attribute !== primaryAttributeName)
|
|
3161
|
+
.forEach((attribute) => this._crtModel.attributeChanged(attribute));
|
|
3162
|
+
}
|
|
2848
3163
|
return this._crtModel._getAsyncResult(this._crtModel.update(dto, parameters));
|
|
2849
3164
|
}
|
|
2850
3165
|
copy(primaryColumnValue, data = {}) {
|
|
@@ -2862,6 +3177,15 @@ class Model extends BaseHandlerChainService {
|
|
|
2862
3177
|
canDelete(params) {
|
|
2863
3178
|
return this._crtModel._getAsyncResult(this._crtModel.canDelete(params));
|
|
2864
3179
|
}
|
|
3180
|
+
insertInTransaction(transaction, dto) {
|
|
3181
|
+
return this._crtModel.insertInTransaction(transaction, dto);
|
|
3182
|
+
}
|
|
3183
|
+
updateInTransaction(transaction, dto, parameters) {
|
|
3184
|
+
return this._crtModel.updateInTransaction(transaction, dto, parameters);
|
|
3185
|
+
}
|
|
3186
|
+
deleteInTransaction(transaction, parameters) {
|
|
3187
|
+
return this._crtModel.deleteInTransaction(transaction, parameters);
|
|
3188
|
+
}
|
|
2865
3189
|
}
|
|
2866
3190
|
__decorate([
|
|
2867
3191
|
ImplementUsingHandlerChain({
|
|
@@ -2872,181 +3196,188 @@ __decorate([
|
|
|
2872
3196
|
|
|
2873
3197
|
/**
|
|
2874
3198
|
* @public
|
|
2875
|
-
* @
|
|
3199
|
+
* @class ProcessEngineService
|
|
3200
|
+
* @classdesc Service, used for starting and completing business processes using handler chain
|
|
2876
3201
|
* @extends {BaseHandlerChainService}
|
|
2877
3202
|
*/
|
|
2878
|
-
class
|
|
3203
|
+
class ProcessEngineService extends BaseHandlerChainService {
|
|
2879
3204
|
constructor() {
|
|
2880
3205
|
super(...arguments);
|
|
2881
3206
|
/**
|
|
2882
3207
|
* @internal
|
|
2883
3208
|
*/
|
|
2884
|
-
this.requestType = 'crt.
|
|
3209
|
+
this.requestType = 'crt.ProcessEngineService';
|
|
2885
3210
|
}
|
|
2886
3211
|
}
|
|
2887
3212
|
__decorate([
|
|
2888
3213
|
ImplementUsingHandlerChain(),
|
|
2889
3214
|
__metadata("design:type", Function)
|
|
2890
|
-
],
|
|
3215
|
+
], ProcessEngineService.prototype, "executeProcessByName", void 0);
|
|
3216
|
+
__decorate([
|
|
3217
|
+
ImplementUsingHandlerChain(),
|
|
3218
|
+
__metadata("design:type", Function)
|
|
3219
|
+
], ProcessEngineService.prototype, "completeExecuting", void 0);
|
|
2891
3220
|
|
|
2892
3221
|
/**
|
|
2893
3222
|
* @public
|
|
2894
|
-
* @classdesc Service to working
|
|
3223
|
+
* @classdesc Service to working rights using handler chain
|
|
2895
3224
|
* @extends {BaseHandlerChainService}
|
|
2896
3225
|
*/
|
|
2897
|
-
class
|
|
3226
|
+
class RightsService extends BaseHandlerChainService {
|
|
2898
3227
|
constructor() {
|
|
2899
3228
|
super(...arguments);
|
|
2900
3229
|
/**
|
|
2901
3230
|
* @internal
|
|
2902
3231
|
*/
|
|
2903
|
-
this.requestType = 'crt.
|
|
3232
|
+
this.requestType = 'crt.RightsService';
|
|
2904
3233
|
}
|
|
2905
3234
|
}
|
|
2906
3235
|
__decorate([
|
|
2907
|
-
ImplementUsingHandlerChain(
|
|
2908
|
-
methodName: 'openDialog',
|
|
2909
|
-
}),
|
|
3236
|
+
ImplementUsingHandlerChain(),
|
|
2910
3237
|
__metadata("design:type", Function)
|
|
2911
|
-
],
|
|
3238
|
+
], RightsService.prototype, "getCanExecuteOperation", void 0);
|
|
3239
|
+
__decorate([
|
|
3240
|
+
ImplementUsingHandlerChain(),
|
|
3241
|
+
__metadata("design:type", Function)
|
|
3242
|
+
], RightsService.prototype, "getCanExecuteOperations", void 0);
|
|
2912
3243
|
|
|
2913
3244
|
/**
|
|
2914
3245
|
* @public
|
|
2915
|
-
* @
|
|
3246
|
+
* @class SchemaModalService
|
|
3247
|
+
* @classdesc Service to work with schema modal windows using handler chain.
|
|
2916
3248
|
* @extends {BaseHandlerChainService}
|
|
2917
|
-
* @implements {BaseMessageChannelService}
|
|
2918
3249
|
*/
|
|
2919
|
-
class
|
|
3250
|
+
class SchemaModalService extends BaseHandlerChainService {
|
|
2920
3251
|
constructor() {
|
|
2921
3252
|
super(...arguments);
|
|
2922
3253
|
/**
|
|
2923
3254
|
* @internal
|
|
2924
3255
|
*/
|
|
2925
|
-
this.requestType = 'crt.
|
|
3256
|
+
this.requestType = 'crt.SchemaModalService';
|
|
2926
3257
|
}
|
|
2927
3258
|
}
|
|
2928
3259
|
__decorate([
|
|
2929
|
-
ImplementUsingHandlerChain(),
|
|
2930
|
-
__metadata("design:type", Function)
|
|
2931
|
-
], MessageChannelService.prototype, "subscribe", void 0);
|
|
2932
|
-
__decorate([
|
|
2933
|
-
ImplementUsingHandlerChain(),
|
|
3260
|
+
ImplementUsingHandlerChain({ omitResult: true }),
|
|
2934
3261
|
__metadata("design:type", Function)
|
|
2935
|
-
],
|
|
3262
|
+
], SchemaModalService.prototype, "show", void 0);
|
|
2936
3263
|
|
|
2937
3264
|
/**
|
|
2938
3265
|
* @public
|
|
2939
|
-
* @class
|
|
2940
|
-
* @classdesc Service
|
|
3266
|
+
* @class SysSettingsService
|
|
3267
|
+
* @classdesc Service to working with system settings using handler chain
|
|
2941
3268
|
* @extends {BaseHandlerChainService}
|
|
2942
3269
|
*/
|
|
2943
|
-
|
|
3270
|
+
// TODO RND-45286 (implement BaseSysSettingsService)
|
|
3271
|
+
class SysSettingsService extends BaseHandlerChainService {
|
|
2944
3272
|
constructor() {
|
|
2945
3273
|
super(...arguments);
|
|
2946
3274
|
/**
|
|
2947
3275
|
* @internal
|
|
2948
3276
|
*/
|
|
2949
|
-
this.requestType = 'crt.
|
|
3277
|
+
this.requestType = 'crt.SysSettingsService';
|
|
2950
3278
|
}
|
|
2951
3279
|
}
|
|
2952
3280
|
__decorate([
|
|
2953
3281
|
ImplementUsingHandlerChain(),
|
|
2954
3282
|
__metadata("design:type", Function)
|
|
2955
|
-
],
|
|
3283
|
+
], SysSettingsService.prototype, "getByCodes", void 0);
|
|
2956
3284
|
__decorate([
|
|
2957
3285
|
ImplementUsingHandlerChain(),
|
|
2958
3286
|
__metadata("design:type", Function)
|
|
2959
|
-
],
|
|
3287
|
+
], SysSettingsService.prototype, "getByCode", void 0);
|
|
3288
|
+
__decorate([
|
|
3289
|
+
ImplementUsingHandlerChain(),
|
|
3290
|
+
__metadata("design:type", Function)
|
|
3291
|
+
], SysSettingsService.prototype, "update", void 0);
|
|
3292
|
+
__decorate([
|
|
3293
|
+
ImplementUsingHandlerChain(),
|
|
3294
|
+
__metadata("design:type", Function)
|
|
3295
|
+
], SysSettingsService.prototype, "updateMany", void 0);
|
|
2960
3296
|
|
|
2961
3297
|
/**
|
|
2962
|
-
*
|
|
2963
|
-
*
|
|
2964
|
-
*
|
|
3298
|
+
* @public
|
|
3299
|
+
* @class SysSetting
|
|
3300
|
+
* @classdesc Class contains info related system setting
|
|
3301
|
+
* @property {ɵGuid} id - id of system setting.
|
|
3302
|
+
* @property {string} name - name of system setting.
|
|
3303
|
+
* @property {string} code - code of system setting.
|
|
3304
|
+
* @property {isCacheable} boolean - indicator whether system setting is cacheable
|
|
3305
|
+
* @property {any} value - value of system setting
|
|
3306
|
+
* @property {string} displayValue - display value of system setting
|
|
3307
|
+
* @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}
|
|
2965
3308
|
*/
|
|
2966
|
-
class
|
|
3309
|
+
class SysSetting {
|
|
3310
|
+
}
|
|
3311
|
+
/**
|
|
3312
|
+
* @public
|
|
3313
|
+
* @class SysSettingValue
|
|
3314
|
+
* @classdesc Shape to describe system setting value
|
|
3315
|
+
* @property {string} code - code of system setting
|
|
3316
|
+
* @property {any} value - value of system setting
|
|
3317
|
+
*/
|
|
3318
|
+
class SysSettingValue {
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
/**
|
|
3322
|
+
* @public
|
|
3323
|
+
* @classdesc
|
|
3324
|
+
* @class SysValuesService Service to working with system values using handler chain
|
|
3325
|
+
* @extends {BaseHandlerChainService}
|
|
3326
|
+
*/
|
|
3327
|
+
class SysValuesService extends BaseHandlerChainService {
|
|
2967
3328
|
constructor() {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
*/
|
|
2974
|
-
static get instance() {
|
|
2975
|
-
return AiContextService._instance || (AiContextService._instance = new AiContextService());
|
|
2976
|
-
}
|
|
2977
|
-
/**
|
|
2978
|
-
* Generates a unique identifier for a context part.
|
|
2979
|
-
* @returns A string representing a unique identifier.
|
|
2980
|
-
*/
|
|
2981
|
-
_generateId() {
|
|
2982
|
-
const length = 9;
|
|
2983
|
-
const base = 36;
|
|
2984
|
-
const array = new Uint32Array(length);
|
|
2985
|
-
window.crypto.getRandomValues(array);
|
|
2986
|
-
return Array.from(array, (num) => (num % base).toString(base)).join('');
|
|
3329
|
+
super(...arguments);
|
|
3330
|
+
/**
|
|
3331
|
+
* @internal
|
|
3332
|
+
*/
|
|
3333
|
+
this.requestType = 'crt.SysValuesService';
|
|
2987
3334
|
}
|
|
3335
|
+
}
|
|
3336
|
+
__decorate([
|
|
3337
|
+
ImplementUsingHandlerChain(),
|
|
3338
|
+
__metadata("design:type", Function)
|
|
3339
|
+
], SysValuesService.prototype, "loadSysValues", void 0);
|
|
3340
|
+
|
|
3341
|
+
/**
|
|
3342
|
+
* @public
|
|
3343
|
+
* @class TransactionFactoryService
|
|
3344
|
+
* @classdesc Service to working with transaction factory using a handler chain
|
|
3345
|
+
* @extends {BaseHandlerChainService}
|
|
3346
|
+
*/
|
|
3347
|
+
class TransactionFactoryService extends BaseHandlerChainService {
|
|
2988
3348
|
/**
|
|
2989
|
-
* @
|
|
2990
|
-
* Adds a new context part to the service.
|
|
2991
|
-
* The context part can be a static value, a promise, or a function that provides the value.
|
|
2992
|
-
*
|
|
2993
|
-
* @param value - The context part to add. It can be one of the following:
|
|
2994
|
-
* - `ContextProvider` (a function that provides the context part)
|
|
2995
|
-
* @param id - (Optional) A unique identifier for the context part. If not provided, a new ID will be generated.
|
|
2996
|
-
* @returns The unique identifier of the added context part.
|
|
3349
|
+
* @internal
|
|
2997
3350
|
*/
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3351
|
+
constructor() {
|
|
3352
|
+
super();
|
|
3353
|
+
/**
|
|
3354
|
+
* @internal
|
|
3355
|
+
*/
|
|
3356
|
+
this.requestType = 'crt.TransactionFactoryService';
|
|
3002
3357
|
}
|
|
3003
3358
|
/**
|
|
3004
|
-
* @
|
|
3005
|
-
* Retrieves all context parts as an array of resolved values.
|
|
3006
|
-
* If the context parts include promises or functions, they will be resolved.
|
|
3007
|
-
*
|
|
3008
|
-
* @returns A promise that resolves to an array of context parts, which can be
|
|
3009
|
-
* either `CreatioPageContextPart` or `ConstantValuesContextPart`.
|
|
3359
|
+
* @internal
|
|
3010
3360
|
*/
|
|
3011
|
-
|
|
3012
|
-
if (!this.
|
|
3013
|
-
|
|
3361
|
+
static get instance() {
|
|
3362
|
+
if (!this._instance) {
|
|
3363
|
+
this._instance = new TransactionFactoryService();
|
|
3014
3364
|
}
|
|
3015
|
-
|
|
3016
|
-
return resolved
|
|
3017
|
-
.filter((e) => e !== null)
|
|
3018
|
-
.map((p) => {
|
|
3019
|
-
const type = p.type;
|
|
3020
|
-
if (!type || type === 'CreatioPageContextPart' || type === 'ConstantValuesContextPart') {
|
|
3021
|
-
return {
|
|
3022
|
-
...p,
|
|
3023
|
-
type,
|
|
3024
|
-
};
|
|
3025
|
-
}
|
|
3026
|
-
throw new Error(`Invalid context part type: ${type}`);
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
/**
|
|
3030
|
-
* @public
|
|
3031
|
-
* Removes a specific context part by its unique identifier.
|
|
3032
|
-
*
|
|
3033
|
-
* @param id - The unique identifier of the context part to remove.
|
|
3034
|
-
*/
|
|
3035
|
-
removeContextPart(id) {
|
|
3036
|
-
this._contextParts = this._contextParts.filter((ctx) => ctx.id !== id);
|
|
3365
|
+
return this._instance;
|
|
3037
3366
|
}
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
* Removes all context parts from the service.
|
|
3041
|
-
*/
|
|
3042
|
-
removeContext() {
|
|
3043
|
-
this._contextParts = [];
|
|
3367
|
+
static create() {
|
|
3368
|
+
return this.instance.create();
|
|
3044
3369
|
}
|
|
3045
3370
|
}
|
|
3371
|
+
__decorate([
|
|
3372
|
+
ImplementUsingHandlerChain({
|
|
3373
|
+
methodName: 'create',
|
|
3374
|
+
}),
|
|
3375
|
+
__metadata("design:type", Function)
|
|
3376
|
+
], TransactionFactoryService.prototype, "create", void 0);
|
|
3046
3377
|
|
|
3047
3378
|
/**
|
|
3048
3379
|
* Generated bundle index. Do not edit.
|
|
3049
3380
|
*/
|
|
3050
3381
|
|
|
3051
|
-
export { AiContextService, BaseRequestHandler, BaseValidator, BootstrapNotifier, ChatMessageTypeRegistry, ConverterRegistry, CrtChatMessageType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, DialogService, FeatureService, HandleViewModelAttributeChangeRequest, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LazyModuleRef, LazyModulesManager, LicenseService, LocalizableValue, MaskService, MessageChannelService, MethodInvokeRequest, Model, PkgTopology, ProcessEngineService, ProcessStatus, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RightsService, RunProcessRequest, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, VIEW_ELEMENT_DEFAULT_HEIGHT, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementProperty, ViewElementRegistry, ViewElementRenderStrategy, ViewElementReuseStrategy, _from, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, bootstrappedCrtModules, callOnContextCreateHooks, callOnContextDestroyHooks, callOnContextUpdateHooks, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, defineRenderConfig, designTimeViewElementRegistryKey, getConverterMetadata, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDeepModuleDependencies, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, instantiate,
|
|
3382
|
+
export { AiContextService, BaseInterfaceDesignerItemRegistry, BaseRequestHandler, BaseRequestsResolver, BaseValidator, BaseViewElementRegistry, BootstrapNotifier, ChatMessageTypeRegistry, 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, LazyModuleRef, LazyModulesManager, LicenseService, LocalizableValue, MaskService, MessageChannelService, MethodInvokeRequest, MobileInterfaceDesignerItemRegistry, MobileViewElementRegistry, Model, PkgTopology, ProcessEngineService, ProcessStatus, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RequestsResolver, RightsService, RunProcessRequest, SchemaModalService, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, TransactionFactoryService, 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, 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, ɵcheckTypeNameFormat, ɵinstantiate };
|
|
3052
3383
|
//# sourceMappingURL=creatio-devkit-common.mjs.map
|