@creatio-devkit/common 0.813.0 → 0.814.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 +7 -2
- package/esm2020/lib/base-exports.mjs +2 -2
- package/esm2020/lib/internal/decorators/request/request.decorator.mjs +1 -1
- package/esm2020/lib/internal/models/injection-context/injection-context.mjs +1 -1
- package/esm2020/lib/internal/models/lazy-module-ref.mjs +5 -2
- package/esm2020/lib/internal/services/chat-message-type-registry/chat-message-type-registry.mjs +22 -0
- package/esm2020/lib/internal/services/chat-message-type-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/index.mjs +2 -1
- package/esm2020/lib/internal/services/lazy-modules-manager/lazy-modules-manager.mjs +4 -1
- package/esm2020/lib/public/decorators/chat-message-type/chat-message-type.decorator.mjs +20 -0
- package/esm2020/lib/public/decorators/chat-message-type/index.mjs +2 -0
- package/esm2020/lib/public/decorators/index.mjs +2 -1
- package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +18 -5
- package/esm2020/lib/public/functions/bootstrapped-crt-modules.mjs +9 -0
- package/esm2020/lib/public/functions/crt-module-context-hooks.mjs +30 -0
- package/esm2020/lib/public/functions/index.mjs +3 -1
- package/esm2020/lib/public/functions/reset-globals.mjs +3 -1
- package/esm2020/lib/public/models/index.mjs +2 -1
- package/esm2020/lib/public/models/input/input-registration-config.model.mjs +1 -1
- package/esm2020/lib/public/models/item-creation-config.mjs +2 -0
- package/esm2020/lib/public/models/request/handle-view-model-attribute-change.request.mjs +29 -0
- package/esm2020/lib/public/models/request/index.mjs +4 -1
- package/esm2020/lib/public/models/request/model-event.model.mjs +2 -0
- package/esm2020/lib/public/models/request/view-model-attribute-change-event-options.mjs +2 -0
- package/esm2020/lib/public/services/dialog-service/dialog.service.mjs +24 -0
- package/esm2020/lib/public/services/dialog-service/index.mjs +2 -0
- package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +12 -8
- package/esm2020/lib/public/services/index.mjs +2 -1
- package/esm2020/lib/public/services/license/license.service.mjs +1 -1
- package/fesm2015/creatio-devkit-common.mjs +176 -29
- package/fesm2015/creatio-devkit-common.mjs.map +1 -1
- package/fesm2020/creatio-devkit-common.mjs +175 -29
- package/fesm2020/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +135 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ import { ɵArithmeticExpressionConfig as ArithmeticExpressionConfig } from '@cre
|
|
|
17
17
|
import { ɵArithmeticOperation as ArithmeticOperation } from '@creatio/base';
|
|
18
18
|
import { ɵArithmeticQueryColumn as ArithmeticQueryColumn } from '@creatio/base';
|
|
19
19
|
import { ɵBaseDataSourceParameter as BaseDataSourceParameter } from '@creatio/base';
|
|
20
|
+
import { ɵBaseDialogButtonConfig as BaseDialogButtonConfig } from '@creatio/base';
|
|
21
|
+
import { ɵBaseDialogConfig as BaseDialogConfig } from '@creatio/base';
|
|
22
|
+
import { ɵBaseDialogService as BaseDialogService } from '@creatio/base';
|
|
20
23
|
import { ɵBaseExpression as BaseExpression } from '@creatio/base';
|
|
21
24
|
import { ɵBaseExpressionParser as BaseExpressionParser } from '@creatio/base';
|
|
22
25
|
import { ɵBaseFilter as BaseFilter } from '@creatio/base';
|
|
@@ -102,7 +105,6 @@ import { ɵInsertQuery as InsertQuery } from '@creatio/base';
|
|
|
102
105
|
import { ɵisEmptyGuid as isEmptyGuid } from '@creatio/base';
|
|
103
106
|
import { ɵisGuid as isGuid } from '@creatio/base';
|
|
104
107
|
import { ɵIsNullFilter as IsNullFilter } from '@creatio/base';
|
|
105
|
-
import { ɵItemCreationConfig as ItemCreationConfig } from '@creatio/base';
|
|
106
108
|
import { ɵItemNotFoundException as ItemNotFoundException } from '@creatio/base';
|
|
107
109
|
import { ɵJsonArray as JsonArray } from '@creatio/base';
|
|
108
110
|
import { ɵJsonData as JsonData } from '@creatio/base';
|
|
@@ -129,6 +131,7 @@ import { ɵParameterExpression as ParameterExpression } from '@creatio/base';
|
|
|
129
131
|
import { ɵParameterExpressionConfig as ParameterExpressionConfig } from '@creatio/base';
|
|
130
132
|
import { ɵParameterQueryColumn as ParameterQueryColumn } from '@creatio/base';
|
|
131
133
|
import { ɵparserMock as parserMock } from '@creatio/base';
|
|
134
|
+
import { ɵPlatformAPIs as PlatformAPIs } from '@creatio/base';
|
|
132
135
|
import { ɵPrimaryDisplayFilterDataSourceParameter as PrimaryDisplayFilterDataSourceParameter } from '@creatio/base';
|
|
133
136
|
import { ɵQueryMacrosType as QueryMacrosType } from '@creatio/base';
|
|
134
137
|
import { ɵQueryOperationType as QueryOperationType } from '@creatio/base';
|
|
@@ -155,6 +158,7 @@ import { ɵWindowFunctionExpression as WindowFunctionExpression } from '@creatio
|
|
|
155
158
|
import { ɵWindowFunctionExpressionConfig as WindowFunctionExpressionConfig } from '@creatio/base';
|
|
156
159
|
import { ɵAggregationSubQueryExpressionConfig } from '@creatio/base';
|
|
157
160
|
import { ɵDataSourceLoadOptions } from '@creatio/base';
|
|
161
|
+
import { ɵItemCreationConfig } from '@creatio/base';
|
|
158
162
|
|
|
159
163
|
export { AbstractType }
|
|
160
164
|
|
|
@@ -201,6 +205,12 @@ export { ArithmeticQueryColumn }
|
|
|
201
205
|
/* Excluded from this release type: AttributeValueConfig */
|
|
202
206
|
export { BaseDataSourceParameter }
|
|
203
207
|
|
|
208
|
+
export { BaseDialogButtonConfig }
|
|
209
|
+
|
|
210
|
+
export { BaseDialogConfig }
|
|
211
|
+
|
|
212
|
+
export { BaseDialogService }
|
|
213
|
+
|
|
204
214
|
export { BaseExpression }
|
|
205
215
|
|
|
206
216
|
export { BaseExpressionParser }
|
|
@@ -425,10 +435,52 @@ export declare interface BootstrapOptions {
|
|
|
425
435
|
*/
|
|
426
436
|
resolveDependency?: ResolveDependencyFn;
|
|
427
437
|
/* Excluded from this release type: moduleType */
|
|
438
|
+
/* Excluded from this release type: onContextCreate */
|
|
439
|
+
/* Excluded from this release type: onContextUpdate */
|
|
440
|
+
/* Excluded from this release type: onContextDestroy */
|
|
428
441
|
}
|
|
429
442
|
|
|
443
|
+
/* Excluded from this release type: BootstrappedCrtModules */
|
|
444
|
+
|
|
445
|
+
/* Excluded from this release type: bootstrappedCrtModules */
|
|
430
446
|
export { ButtonColor }
|
|
431
447
|
|
|
448
|
+
/* Excluded from this release type: callOnContextCreateHooks */
|
|
449
|
+
|
|
450
|
+
/* Excluded from this release type: callOnContextDestroyHooks */
|
|
451
|
+
|
|
452
|
+
/* Excluded from this release type: callOnContextUpdateHooks */
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* TODO: RND-55882
|
|
456
|
+
*/
|
|
457
|
+
export declare interface ChangeAttributeValueEventPayload extends ViewModelAttributeChangeEventOptionsType {
|
|
458
|
+
attributeName: string;
|
|
459
|
+
value: any;
|
|
460
|
+
oldValue: any;
|
|
461
|
+
/**
|
|
462
|
+
* @deprecated
|
|
463
|
+
*/
|
|
464
|
+
silent?: boolean;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @public
|
|
469
|
+
* @description Config used to register component as a message type in chat.
|
|
470
|
+
*/
|
|
471
|
+
export declare interface ChatMessageTypeRegistrationConfig {
|
|
472
|
+
/**
|
|
473
|
+
* @description component tag selector; Element appears in DOM with this selector.
|
|
474
|
+
*/
|
|
475
|
+
selector: string;
|
|
476
|
+
/**
|
|
477
|
+
* @description type of message.
|
|
478
|
+
*/
|
|
479
|
+
messageType: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* Excluded from this release type: ChatMessageTypeRegistry */
|
|
483
|
+
|
|
432
484
|
/* Excluded from this release type: checkCrtTypeNamePascalCase */
|
|
433
485
|
|
|
434
486
|
/* Excluded from this release type: checkIfTypeRegistered */
|
|
@@ -487,6 +539,20 @@ export declare interface ConverterConfig {
|
|
|
487
539
|
|
|
488
540
|
/* Excluded from this release type: CrtAngularViewElementConfig */
|
|
489
541
|
|
|
542
|
+
/**
|
|
543
|
+
* @public
|
|
544
|
+
* @description CrtChatMessageType decorator allows user to register components as a message type in chat.
|
|
545
|
+
* @param config - registration config. {@link ChatMessageTypeRegistrationConfig}.
|
|
546
|
+
*
|
|
547
|
+
* @example
|
|
548
|
+
* @CrtChatMessageType({
|
|
549
|
+
* selector: 'usr-video-message',
|
|
550
|
+
* messageType: 'video',
|
|
551
|
+
* })
|
|
552
|
+
* export class AppComponent { }
|
|
553
|
+
*/
|
|
554
|
+
export declare function CrtChatMessageType(config: ChatMessageTypeRegistrationConfig): (type: Type) => void;
|
|
555
|
+
|
|
490
556
|
/**
|
|
491
557
|
* @public
|
|
492
558
|
* @description Control state passed for validators
|
|
@@ -559,6 +625,7 @@ export declare class CrtInputRegistrationConfig {
|
|
|
559
625
|
/* Excluded from this release type: propertyBindable */
|
|
560
626
|
/* Excluded from this release type: defaultValue */
|
|
561
627
|
/* Excluded from this release type: propertyName */
|
|
628
|
+
/* Excluded from this release type: reuseStrategy */
|
|
562
629
|
}
|
|
563
630
|
|
|
564
631
|
/**
|
|
@@ -906,6 +973,23 @@ export { DeleteQuery }
|
|
|
906
973
|
/* Excluded from this release type: DesignTimeViewElementRegistryItem */
|
|
907
974
|
|
|
908
975
|
/* Excluded from this release type: designTimeViewElementRegistryKey */
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* @public
|
|
979
|
+
* @classdesc Service to working with dialog using handler chain.
|
|
980
|
+
* @extends {BaseHandlerChainService}
|
|
981
|
+
*/
|
|
982
|
+
export declare class DialogService extends BaseHandlerChainService implements BaseDialogService {
|
|
983
|
+
/* Excluded from this release type: requestType */
|
|
984
|
+
/**
|
|
985
|
+
* @description Opens dialog window.
|
|
986
|
+
* @param {BaseDialogConfig<BaseDialogButtonConfig>} config - The configuration of dialog window.
|
|
987
|
+
* @returns `Promise<string>`.
|
|
988
|
+
* The result of a user's choice.
|
|
989
|
+
*/
|
|
990
|
+
open: (config: BaseDialogConfig<BaseDialogButtonConfig>) => Promise<string>;
|
|
991
|
+
}
|
|
992
|
+
|
|
909
993
|
export { EMPTY_GUID }
|
|
910
994
|
|
|
911
995
|
export { encodeDate }
|
|
@@ -1066,6 +1150,34 @@ export declare class HandlerChainService {
|
|
|
1066
1150
|
|
|
1067
1151
|
/* Excluded from this release type: HandlerSourceType */
|
|
1068
1152
|
|
|
1153
|
+
/**
|
|
1154
|
+
* @hostPublicApi
|
|
1155
|
+
* TODO: RND-55882
|
|
1156
|
+
*/
|
|
1157
|
+
export declare class HandleViewModelAttributeChangeRequest extends BaseRequest<ChangeAttributeValueEventPayload> {
|
|
1158
|
+
readonly type = "crt.HandleViewModelAttributeChangeRequest";
|
|
1159
|
+
/**
|
|
1160
|
+
* @hostPublicApi
|
|
1161
|
+
*/
|
|
1162
|
+
readonly attributeName: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* @hostPublicApi
|
|
1165
|
+
*/
|
|
1166
|
+
readonly value: unknown;
|
|
1167
|
+
/**
|
|
1168
|
+
* @hostPublicApi
|
|
1169
|
+
*/
|
|
1170
|
+
readonly oldValue: unknown;
|
|
1171
|
+
/**
|
|
1172
|
+
* @deprecated
|
|
1173
|
+
*/
|
|
1174
|
+
readonly silent: boolean;
|
|
1175
|
+
readonly preventAttributeChangeRequest: boolean;
|
|
1176
|
+
readonly preventStateChange: boolean;
|
|
1177
|
+
readonly preventRunBusinessRules: boolean;
|
|
1178
|
+
constructor(payload: ChangeAttributeValueEventPayload);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1069
1181
|
/* Excluded from this release type: hasInterfaceDesignerItemMetadata */
|
|
1070
1182
|
|
|
1071
1183
|
/* Excluded from this release type: HostHandlerSource */
|
|
@@ -1311,7 +1423,13 @@ export { isGuid }
|
|
|
1311
1423
|
|
|
1312
1424
|
export { IsNullFilter }
|
|
1313
1425
|
|
|
1314
|
-
|
|
1426
|
+
/**
|
|
1427
|
+
* @public
|
|
1428
|
+
* @description Config to create item in collection.
|
|
1429
|
+
*/
|
|
1430
|
+
export declare interface ItemCreationConfig extends ɵItemCreationConfig {
|
|
1431
|
+
/* Excluded from this release type: businessRulesActive */
|
|
1432
|
+
}
|
|
1315
1433
|
|
|
1316
1434
|
export { ItemNotFoundException }
|
|
1317
1435
|
|
|
@@ -1353,10 +1471,10 @@ export declare class LicenseService extends BaseHandlerChainService {
|
|
|
1353
1471
|
/**
|
|
1354
1472
|
* @description Loads status of license operations.
|
|
1355
1473
|
* @param {string[]} operationCodes - The license operation names.
|
|
1356
|
-
* @returns `Promise<LicenseRestrictionOperationValues
|
|
1474
|
+
* @returns `Promise<LicenseRestrictionOperationValues>`
|
|
1357
1475
|
* An object with keys as operations codes and values as operation statuses.
|
|
1358
1476
|
*/
|
|
1359
|
-
loadLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues
|
|
1477
|
+
loadLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
|
|
1360
1478
|
}
|
|
1361
1479
|
|
|
1362
1480
|
export { LocalizableString }
|
|
@@ -1555,6 +1673,7 @@ export { ParameterQueryColumn }
|
|
|
1555
1673
|
export { parserMock }
|
|
1556
1674
|
|
|
1557
1675
|
/* Excluded from this release type: PkgTopology */
|
|
1676
|
+
export { PlatformAPIs }
|
|
1558
1677
|
|
|
1559
1678
|
/**
|
|
1560
1679
|
* @public
|
|
@@ -1614,6 +1733,8 @@ export declare interface QuerySysSettingsResponse extends BaseResponse {
|
|
|
1614
1733
|
*/
|
|
1615
1734
|
export declare function registerViewElement(config: ViewElementRegistrationConfig): void;
|
|
1616
1735
|
|
|
1736
|
+
/* Excluded from this release type: registryKey */
|
|
1737
|
+
|
|
1617
1738
|
/* Excluded from this release type: RemoteBuildInfo */
|
|
1618
1739
|
|
|
1619
1740
|
/* Excluded from this release type: RemoteEntriesRegistry */
|
|
@@ -2062,6 +2183,16 @@ export declare interface ViewElementSlotDefinition {
|
|
|
2062
2183
|
}
|
|
2063
2184
|
|
|
2064
2185
|
/* Excluded from this release type: ViewElementVisibilityStrategy */
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* TODO: RND-55882
|
|
2189
|
+
*/
|
|
2190
|
+
export declare interface ViewModelAttributeChangeEventOptionsType {
|
|
2191
|
+
preventAttributeChangeRequest?: boolean;
|
|
2192
|
+
preventStateChange?: boolean;
|
|
2193
|
+
preventRunBusinessRules?: boolean;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2065
2196
|
export { ViewModelCollection }
|
|
2066
2197
|
|
|
2067
2198
|
export { ViewModelContext }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatio-devkit/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.814.0",
|
|
4
4
|
"description": "Allows developers to create customizations and integrate them to Creatio platform.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"keywords": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"class-transformer": "^0.5.1",
|
|
15
15
|
"reflect-metadata": "^0.1.13",
|
|
16
16
|
"lodash": "^4.17.21",
|
|
17
|
-
"@creatio/base": "0.
|
|
17
|
+
"@creatio/base": "0.814.0",
|
|
18
18
|
"terser-webpack-plugin": "5.3.10"
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": false,
|