@creatio-devkit/common 0.831.0 → 0.832.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/view-element/angular-view-element-registration-config.model.mjs +1 -1
- package/esm2022/lib/internal/services/index.mjs +2 -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 +5 -1
- 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/models/ai-context/ai-context-part.mjs +2 -2
- package/esm2022/lib/public/models/index.mjs +11 -11
- 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 +10 -9
- 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/fesm2022/creatio-devkit-common.mjs +600 -454
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +171 -2
- package/package.json +14 -2
package/index.d.ts
CHANGED
|
@@ -154,7 +154,6 @@ import { ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
|
154
154
|
import { ɵType as Type } from '@creatio/base';
|
|
155
155
|
import { ɵUpdateQuery as UpdateQuery } from '@creatio/base';
|
|
156
156
|
import { ɵValidationUtilities as ValidationUtilities } from '@creatio/base';
|
|
157
|
-
import { ɵViewModelCollection as ViewModelCollection } from '@creatio/base';
|
|
158
157
|
import { ɵViewModelContext as ViewModelContext } from '@creatio/base';
|
|
159
158
|
import { ɵWindowFunctionColumn as WindowFunctionColumn } from '@creatio/base';
|
|
160
159
|
import { ɵWindowFunctionExpression as WindowFunctionExpression } from '@creatio/base';
|
|
@@ -162,6 +161,7 @@ import { ɵWindowFunctionExpressionConfig as WindowFunctionExpressionConfig } fr
|
|
|
162
161
|
import { ɵCompatibleAPIs } from '@creatio/base';
|
|
163
162
|
import { ɵDataSourceLoadOptions } from '@creatio/base';
|
|
164
163
|
import { ɵItemCreationConfig } from '@creatio/base';
|
|
164
|
+
import { ɵViewModelCollection } from '@creatio/base';
|
|
165
165
|
|
|
166
166
|
export { AbstractType }
|
|
167
167
|
|
|
@@ -346,6 +346,8 @@ export declare abstract class BaseRequestHandler<TRequest = BaseRequest, TResult
|
|
|
346
346
|
setNext(next: RequestHandler): void;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
/* Excluded from this release type: BaseRequestsResolver */
|
|
350
|
+
|
|
349
351
|
/**
|
|
350
352
|
* @public
|
|
351
353
|
* @description Shape of response
|
|
@@ -1266,6 +1268,12 @@ export declare class FeatureService extends BaseHandlerChainService {
|
|
|
1266
1268
|
}
|
|
1267
1269
|
|
|
1268
1270
|
/* Excluded from this release type: FileValue */
|
|
1271
|
+
|
|
1272
|
+
/* Excluded from this release type: FileViewerFactory */
|
|
1273
|
+
|
|
1274
|
+
/* Excluded from this release type: FileViewerInstance */
|
|
1275
|
+
|
|
1276
|
+
/* Excluded from this release type: FileViewerOptions */
|
|
1269
1277
|
export { FilterGroup }
|
|
1270
1278
|
|
|
1271
1279
|
export { FilterMock }
|
|
@@ -1981,6 +1989,11 @@ export declare interface OnViewportRenderConfig {
|
|
|
1981
1989
|
};
|
|
1982
1990
|
}
|
|
1983
1991
|
|
|
1992
|
+
/* Excluded from this release type: OptionChangeSubscribeFn */
|
|
1993
|
+
|
|
1994
|
+
/* Excluded from this release type: OptionChangeSubscription */
|
|
1995
|
+
|
|
1996
|
+
/* Excluded from this release type: OptionsChangeListener */
|
|
1984
1997
|
export { OrderDirection }
|
|
1985
1998
|
|
|
1986
1999
|
export { ParameterExpression }
|
|
@@ -2174,6 +2187,8 @@ export { RequestRegistrationConfig }
|
|
|
2174
2187
|
|
|
2175
2188
|
/* Excluded from this release type: RequestRegistryService */
|
|
2176
2189
|
|
|
2190
|
+
/* Excluded from this release type: RequestsResolver */
|
|
2191
|
+
|
|
2177
2192
|
/* Excluded from this release type: resetGlobals */
|
|
2178
2193
|
export { ResolveDependencyFn }
|
|
2179
2194
|
|
|
@@ -2274,6 +2289,74 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
|
|
|
2274
2289
|
}
|
|
2275
2290
|
|
|
2276
2291
|
/* Excluded from this release type: SchemaHandlerSource */
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* @public
|
|
2295
|
+
* @description Configuration interface for schema modal dialogs.
|
|
2296
|
+
* @property {string} schemaName - Name of the schema to be displayed in the modal.
|
|
2297
|
+
* @property {ɵModelInPageAction} action - Action to be performed on the model (e.g., create, edit).
|
|
2298
|
+
* @property {string} recordId - Identifier of the record to be edited or viewed.
|
|
2299
|
+
* @property {Array<ɵModelDefaultValue>} defaultValues - Default values to initialize the model with.
|
|
2300
|
+
* @property {Record<string, ɵJsonData>} parameters - Additional parameters for the schema.
|
|
2301
|
+
* @property {boolean} preventDefaultCloseCommand - Flag to prevent the default close command.
|
|
2302
|
+
* @property {object} appearanceSettings - Settings for the appearance of the modal.
|
|
2303
|
+
*/
|
|
2304
|
+
export declare interface SchemaModalConfig {
|
|
2305
|
+
/**
|
|
2306
|
+
* @description Name of the schema to be displayed in the modal.
|
|
2307
|
+
*/
|
|
2308
|
+
schemaName: string;
|
|
2309
|
+
/**
|
|
2310
|
+
* @description Action to be performed on the model (e.g., create, edit).
|
|
2311
|
+
*/
|
|
2312
|
+
action?: ModelInPageAction;
|
|
2313
|
+
/**
|
|
2314
|
+
* @description Identifier of the record to be edited or viewed.
|
|
2315
|
+
*/
|
|
2316
|
+
recordId?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* @description Default values to initialize the model with.
|
|
2319
|
+
*/
|
|
2320
|
+
defaultValues?: Array<ModelDefaultValue>;
|
|
2321
|
+
/**
|
|
2322
|
+
* @description Additional parameters for the schema.
|
|
2323
|
+
*/
|
|
2324
|
+
parameters?: Record<string, JsonData>;
|
|
2325
|
+
/**
|
|
2326
|
+
* @description Flag to prevent the default close command.
|
|
2327
|
+
*/
|
|
2328
|
+
preventDefaultCloseCommand?: boolean;
|
|
2329
|
+
/**
|
|
2330
|
+
* @description Settings for the appearance of the modal.
|
|
2331
|
+
*/
|
|
2332
|
+
appearanceSettings?: {
|
|
2333
|
+
/**
|
|
2334
|
+
* @description CSS classes to be applied to the modal panel.
|
|
2335
|
+
*/
|
|
2336
|
+
panelClass?: string[];
|
|
2337
|
+
/**
|
|
2338
|
+
* @description Maximum height of the modal.
|
|
2339
|
+
*/
|
|
2340
|
+
maxHeight?: number | string;
|
|
2341
|
+
};
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* @public
|
|
2346
|
+
* @class SchemaModalService
|
|
2347
|
+
* @classdesc Service to work with schema modal windows using handler chain.
|
|
2348
|
+
* @extends {BaseHandlerChainService}
|
|
2349
|
+
*/
|
|
2350
|
+
export declare class SchemaModalService extends BaseHandlerChainService {
|
|
2351
|
+
/* Excluded from this release type: requestType */
|
|
2352
|
+
/**
|
|
2353
|
+
* @description Method to show schema in the modal window.
|
|
2354
|
+
* @param {SchemaModalConfig} config - Configuration object for the schema modal.
|
|
2355
|
+
* @returns `Promise<void>`
|
|
2356
|
+
*/
|
|
2357
|
+
show: (config: SchemaModalConfig) => Promise<void>;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2277
2360
|
export { SchemaViewMaskRequest }
|
|
2278
2361
|
|
|
2279
2362
|
export { SchemaViewMaskRequestAction }
|
|
@@ -2476,6 +2559,10 @@ export declare interface SysValues {
|
|
|
2476
2559
|
* @description user culture
|
|
2477
2560
|
*/
|
|
2478
2561
|
userCulture: LookupValue;
|
|
2562
|
+
/**
|
|
2563
|
+
* @description user
|
|
2564
|
+
*/
|
|
2565
|
+
user: LookupValue;
|
|
2479
2566
|
/**
|
|
2480
2567
|
* @description core version
|
|
2481
2568
|
*/
|
|
@@ -2488,6 +2575,10 @@ export declare interface SysValues {
|
|
|
2488
2575
|
* @description environment type
|
|
2489
2576
|
*/
|
|
2490
2577
|
environmentType: string;
|
|
2578
|
+
/**
|
|
2579
|
+
* @description customer
|
|
2580
|
+
*/
|
|
2581
|
+
customer: string;
|
|
2491
2582
|
}
|
|
2492
2583
|
|
|
2493
2584
|
/**
|
|
@@ -2560,6 +2651,8 @@ export declare class TransactionFactoryService extends BaseHandlerChainService i
|
|
|
2560
2651
|
|
|
2561
2652
|
export { Type }
|
|
2562
2653
|
|
|
2654
|
+
/* Excluded from this release type: UnsubscribeFn */
|
|
2655
|
+
|
|
2563
2656
|
/* Excluded from this release type: UnsubscribeListener */
|
|
2564
2657
|
export { UpdateQuery }
|
|
2565
2658
|
|
|
@@ -2695,7 +2788,83 @@ export declare interface ViewModelAttributeChangeEventOptionsType {
|
|
|
2695
2788
|
/* Excluded from this release type: isMaskedValue */
|
|
2696
2789
|
}
|
|
2697
2790
|
|
|
2698
|
-
|
|
2791
|
+
/**
|
|
2792
|
+
* @public
|
|
2793
|
+
* @description Interface for a view model collection that extends the base collection with
|
|
2794
|
+
* on collection change callbacks registration capabilities.
|
|
2795
|
+
*
|
|
2796
|
+
* @template T - The type of view model context that extends ViewModel
|
|
2797
|
+
*/
|
|
2798
|
+
export declare interface ViewModelCollection<T extends ViewModelContext> extends ɵViewModelCollection<T> {
|
|
2799
|
+
/**
|
|
2800
|
+
* @description Registers a handler to be called whenever the collection emits a change event.
|
|
2801
|
+
* @param callback Executes when the collection changes and receives change metadata.
|
|
2802
|
+
* @param action Optional action filter; omit to receive all collection change notifications.
|
|
2803
|
+
*/
|
|
2804
|
+
registerOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
|
|
2805
|
+
/**
|
|
2806
|
+
* @description Removes a previously registered collection change handler.
|
|
2807
|
+
* @param callback Previously registered callback to detach.
|
|
2808
|
+
* @param action Optional action filter, if provided, only detaches the callback for that action type.
|
|
2809
|
+
*/
|
|
2810
|
+
unregisterOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
|
|
2811
|
+
/**
|
|
2812
|
+
* @description Registers a handler that fires when attributes of any collection item change.
|
|
2813
|
+
* @param callback Executes with the item whose attributes were updated.
|
|
2814
|
+
*/
|
|
2815
|
+
registerOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
|
|
2816
|
+
/**
|
|
2817
|
+
* @description Removes a previously registered item attribute change handler.
|
|
2818
|
+
* @param callback Callback reference to detach from attribute change notifications.
|
|
2819
|
+
*/
|
|
2820
|
+
unregisterOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* @public
|
|
2825
|
+
* @description List of actions which can be performed on collection with a public API.
|
|
2826
|
+
*/
|
|
2827
|
+
export declare enum ViewModelCollectionActionType {
|
|
2828
|
+
/**
|
|
2829
|
+
* @description Create a collection element.
|
|
2830
|
+
*/
|
|
2831
|
+
Add = "add",
|
|
2832
|
+
/**
|
|
2833
|
+
* @description Remove an element from collection.
|
|
2834
|
+
*/
|
|
2835
|
+
Remove = "remove",
|
|
2836
|
+
/**
|
|
2837
|
+
* @description Update an element in collection.
|
|
2838
|
+
*/
|
|
2839
|
+
Move = "move",
|
|
2840
|
+
/**
|
|
2841
|
+
* @description Reload collection with new elements.
|
|
2842
|
+
*/
|
|
2843
|
+
Reload = "reload"
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* @public
|
|
2848
|
+
* @description Interface describes the model of collection change event.
|
|
2849
|
+
*/
|
|
2850
|
+
export declare interface ViewModelCollectionChange<T extends ViewModelContext> {
|
|
2851
|
+
/**
|
|
2852
|
+
* @description The array of current collection elements.
|
|
2853
|
+
*/
|
|
2854
|
+
collection: T[];
|
|
2855
|
+
/**
|
|
2856
|
+
* @description The array of elements affected by the change.
|
|
2857
|
+
*/
|
|
2858
|
+
affectedElements: T[];
|
|
2859
|
+
/**
|
|
2860
|
+
* @description The type of action that triggered the change.
|
|
2861
|
+
*/
|
|
2862
|
+
action: ViewModelCollectionActionType;
|
|
2863
|
+
/**
|
|
2864
|
+
* @description The index at which the change occurred, if applicable.
|
|
2865
|
+
*/
|
|
2866
|
+
index?: number;
|
|
2867
|
+
}
|
|
2699
2868
|
|
|
2700
2869
|
export { ViewModelContext }
|
|
2701
2870
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatio-devkit/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.832.1",
|
|
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,9 +14,21 @@
|
|
|
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.832.0"
|
|
18
18
|
},
|
|
19
19
|
"sideEffects": false,
|
|
20
|
+
"overrides": [
|
|
21
|
+
{
|
|
22
|
+
"files": [
|
|
23
|
+
"*.ts"
|
|
24
|
+
],
|
|
25
|
+
"parserOptions": {
|
|
26
|
+
"project": [
|
|
27
|
+
"libs/devkit/common/tsconfig.*?.json"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
20
32
|
"module": "fesm2022/creatio-devkit-common.mjs",
|
|
21
33
|
"typings": "index.d.ts",
|
|
22
34
|
"exports": {
|