@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
package/index.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ import { ɵOrderDirection as OrderDirection } from '@creatio/base';
|
|
|
131
131
|
import { ɵParameterExpression as ParameterExpression } from '@creatio/base';
|
|
132
132
|
import { ɵParameterExpressionConfig as ParameterExpressionConfig } from '@creatio/base';
|
|
133
133
|
import { ɵParameterQueryColumn as ParameterQueryColumn } from '@creatio/base';
|
|
134
|
+
import { ɵPlatformAPIOptions as PlatformAPIOptions } from '@creatio/base';
|
|
134
135
|
import { ɵPlatformAPIs as PlatformAPIs } from '@creatio/base';
|
|
135
136
|
import { ɵPrimaryDisplayFilterDataSourceParameter as PrimaryDisplayFilterDataSourceParameter } from '@creatio/base';
|
|
136
137
|
import { ɵQueryMacrosType as QueryMacrosType } from '@creatio/base';
|
|
@@ -153,7 +154,6 @@ import { ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
|
153
154
|
import { ɵType as Type } from '@creatio/base';
|
|
154
155
|
import { ɵUpdateQuery as UpdateQuery } from '@creatio/base';
|
|
155
156
|
import { ɵValidationUtilities as ValidationUtilities } from '@creatio/base';
|
|
156
|
-
import { ɵViewModelCollection as ViewModelCollection } from '@creatio/base';
|
|
157
157
|
import { ɵViewModelContext as ViewModelContext } from '@creatio/base';
|
|
158
158
|
import { ɵWindowFunctionColumn as WindowFunctionColumn } from '@creatio/base';
|
|
159
159
|
import { ɵWindowFunctionExpression as WindowFunctionExpression } from '@creatio/base';
|
|
@@ -161,7 +161,7 @@ import { ɵWindowFunctionExpressionConfig as WindowFunctionExpressionConfig } fr
|
|
|
161
161
|
import { ɵCompatibleAPIs } from '@creatio/base';
|
|
162
162
|
import { ɵDataSourceLoadOptions } from '@creatio/base';
|
|
163
163
|
import { ɵItemCreationConfig } from '@creatio/base';
|
|
164
|
-
import {
|
|
164
|
+
import { ɵViewModelCollection } from '@creatio/base';
|
|
165
165
|
|
|
166
166
|
export { AbstractType }
|
|
167
167
|
|
|
@@ -291,6 +291,8 @@ declare abstract class BaseHandlerChainService {
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
/* Excluded from this release type: BaseInterfaceDesignerItemRegistrationConfig */
|
|
294
|
+
|
|
295
|
+
/* Excluded from this release type: BaseInterfaceDesignerItemRegistry */
|
|
294
296
|
export { BaseMessageChannelService }
|
|
295
297
|
|
|
296
298
|
export { BaseModel }
|
|
@@ -344,6 +346,8 @@ export declare abstract class BaseRequestHandler<TRequest = BaseRequest, TResult
|
|
|
344
346
|
setNext(next: RequestHandler): void;
|
|
345
347
|
}
|
|
346
348
|
|
|
349
|
+
/* Excluded from this release type: BaseRequestsResolver */
|
|
350
|
+
|
|
347
351
|
/**
|
|
348
352
|
* @public
|
|
349
353
|
* @description Shape of response
|
|
@@ -465,6 +469,7 @@ export declare type BaseViewElementRegistrationConfig = {
|
|
|
465
469
|
/* Excluded from this release type: compatibleAPIs */
|
|
466
470
|
} & (OnViewportRenderConfig | DefaultRenderConfig);
|
|
467
471
|
|
|
472
|
+
/* Excluded from this release type: BaseViewElementRegistry */
|
|
468
473
|
export { BetweenFilter }
|
|
469
474
|
|
|
470
475
|
/* Excluded declaration from this release type: bootstrapCrtModule */
|
|
@@ -792,6 +797,63 @@ export declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDe
|
|
|
792
797
|
|
|
793
798
|
/* Excluded declaration from this release type: CrtInterfaceDesignerItem */
|
|
794
799
|
|
|
800
|
+
/**
|
|
801
|
+
* @public
|
|
802
|
+
* @description Decorator to declare design time configuration for view element.
|
|
803
|
+
* @param config - registration config {@link InterfaceDesignerItemDefinition}.
|
|
804
|
+
*
|
|
805
|
+
* @example
|
|
806
|
+
* @CrtMobileViewElement({
|
|
807
|
+
* type: "usr.Example',
|
|
808
|
+
* selector: 'usr-example',
|
|
809
|
+
* })
|
|
810
|
+
* @CrtMobileInterfaceDesignerItem({
|
|
811
|
+
* toolbarConfig: {
|
|
812
|
+
* caption: 'usrExampleCaption',
|
|
813
|
+
* icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
|
|
814
|
+
* hint: 'usrExampleHint',
|
|
815
|
+
* defaultPropertyValues: {
|
|
816
|
+
* value: 'This is default value',
|
|
817
|
+
* },
|
|
818
|
+
* },
|
|
819
|
+
* })
|
|
820
|
+
* @Component({
|
|
821
|
+
* selector: 'usr-example',
|
|
822
|
+
* templateUrl: './app.component.html',
|
|
823
|
+
* styleUrls: ['./app.component.scss'],
|
|
824
|
+
* encapsulation: ViewEncapsulation.ShadowDom,
|
|
825
|
+
* })
|
|
826
|
+
* export class AppComponent {
|
|
827
|
+
* @Input()
|
|
828
|
+
* @CrtInput()
|
|
829
|
+
* public value!: string;
|
|
830
|
+
* }
|
|
831
|
+
*/
|
|
832
|
+
export declare function CrtMobileInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;
|
|
833
|
+
|
|
834
|
+
/* Excluded declaration from this release type: CrtMobileInterfaceDesignerItem */
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* @public
|
|
838
|
+
* @description CrtMobileViewElement decorator allows user to declare mobile components in a Creatio platform.
|
|
839
|
+
* Make sure the component is specified in the viewElements section of CrtModule.
|
|
840
|
+
* @param config - registration config. {@link ViewElementRegistrationConfig}.
|
|
841
|
+
*
|
|
842
|
+
* @example
|
|
843
|
+
* @CrtMobileViewElement({
|
|
844
|
+
* type: 'usr.Example',
|
|
845
|
+
* selector: 'usr-example',
|
|
846
|
+
* })
|
|
847
|
+
* export class AppComponent {
|
|
848
|
+
* @Input()
|
|
849
|
+
* @CrtInput()
|
|
850
|
+
* public value!: string;
|
|
851
|
+
* }
|
|
852
|
+
*/
|
|
853
|
+
export declare function CrtMobileViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;
|
|
854
|
+
|
|
855
|
+
/* Excluded declaration from this release type: CrtMobileViewElement */
|
|
856
|
+
|
|
795
857
|
/**
|
|
796
858
|
* @public
|
|
797
859
|
* @description CrtModule decorator is a 'container' where user actually setup elements.
|
|
@@ -956,8 +1018,8 @@ export declare type CrtValidatorFn = (controlState: CrtControlState, params?: Va
|
|
|
956
1018
|
|
|
957
1019
|
/**
|
|
958
1020
|
* @public
|
|
959
|
-
* @description CrtViewElement decorator allows user to declare components in Creatio platform.
|
|
960
|
-
* Make sure component is specified in viewElements section of CrtModule.
|
|
1021
|
+
* @description CrtViewElement decorator allows user to declare components in a Creatio platform.
|
|
1022
|
+
* Make sure the component is specified in the viewElements section of CrtModule.
|
|
961
1023
|
* @param config - registration config. {@link ViewElementRegistrationConfig}.
|
|
962
1024
|
*
|
|
963
1025
|
* @example
|
|
@@ -1206,6 +1268,12 @@ export declare class FeatureService extends BaseHandlerChainService {
|
|
|
1206
1268
|
}
|
|
1207
1269
|
|
|
1208
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 */
|
|
1209
1277
|
export { FilterGroup }
|
|
1210
1278
|
|
|
1211
1279
|
export { FilterMock }
|
|
@@ -1243,6 +1311,10 @@ export { generateGuid }
|
|
|
1243
1311
|
|
|
1244
1312
|
/* Excluded from this release type: getInterfaceDesignerItemMetadata */
|
|
1245
1313
|
|
|
1314
|
+
/* Excluded from this release type: getMobileInterfaceDesignerItemMetadata */
|
|
1315
|
+
|
|
1316
|
+
/* Excluded from this release type: getMobileViewElementMetadata */
|
|
1317
|
+
|
|
1246
1318
|
/* Excluded from this release type: getModuleMetadata */
|
|
1247
1319
|
|
|
1248
1320
|
/* Excluded from this release type: getRequestHandlerMetadata */
|
|
@@ -1323,6 +1395,8 @@ export declare class HandleViewModelAttributeChangeRequest extends BaseRequest<C
|
|
|
1323
1395
|
|
|
1324
1396
|
/* Excluded from this release type: hasInterfaceDesignerItemMetadata */
|
|
1325
1397
|
|
|
1398
|
+
/* Excluded from this release type: hasMobileInterfaceDesignerItemMetadata */
|
|
1399
|
+
|
|
1326
1400
|
/* Excluded from this release type: HostHandlerSource */
|
|
1327
1401
|
|
|
1328
1402
|
/**
|
|
@@ -1535,6 +1609,8 @@ export declare interface InterfaceDesignerItemDefinition {
|
|
|
1535
1609
|
|
|
1536
1610
|
/* Excluded from this release type: InterfaceDesignerItemMetadata */
|
|
1537
1611
|
|
|
1612
|
+
/* Excluded from this release type: interfaceDesignerItemRegister */
|
|
1613
|
+
|
|
1538
1614
|
/* Excluded from this release type: InterfaceDesignerItemRegistrationConfig */
|
|
1539
1615
|
|
|
1540
1616
|
/* Excluded from this release type: InterfaceDesignerItemRegistry */
|
|
@@ -1560,8 +1636,6 @@ export declare interface InterfaceDesignerItemDefinition {
|
|
|
1560
1636
|
/* Excluded from this release type: InternalToolbarViewElementConfig */
|
|
1561
1637
|
|
|
1562
1638
|
/* Excluded from this release type: InternalToolbarViewElementConfigCollection */
|
|
1563
|
-
|
|
1564
|
-
/* Excluded from this release type: isComponentPropertyBindable */
|
|
1565
1639
|
export { isEmptyGuid }
|
|
1566
1640
|
|
|
1567
1641
|
export { isGuid }
|
|
@@ -1581,9 +1655,31 @@ export declare interface ItemCreationConfig extends ɵItemCreationConfig {
|
|
|
1581
1655
|
|
|
1582
1656
|
export { ItemNotFoundException }
|
|
1583
1657
|
|
|
1584
|
-
|
|
1658
|
+
export declare interface ITransaction {
|
|
1659
|
+
get id(): Guid;
|
|
1660
|
+
createOperation<TResult>(action: (transactionOperation: ITransactionOperation<TResult>) => Promise<TResult>): ITransactionOperation<TResult>;
|
|
1661
|
+
createFailureOperation<TResult>(reason: TResult): ITransactionOperation<TResult>;
|
|
1662
|
+
commit(): Promise<Record<Guid, unknown>>;
|
|
1663
|
+
rollback(): Promise<void>;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
export declare interface ITransactionFactory {
|
|
1667
|
+
/**
|
|
1668
|
+
* @description Method create a transaction.
|
|
1669
|
+
* @returns `Promise<ITransaction>` {@link ITransaction}
|
|
1670
|
+
*/
|
|
1671
|
+
create(): Promise<ITransaction>;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
export declare interface ITransactionOperation<TResult = unknown> {
|
|
1675
|
+
get asyncResult(): Promise<TResult>;
|
|
1676
|
+
/* Excluded from this release type: ready */
|
|
1677
|
+
get transactionId(): Guid;
|
|
1678
|
+
get id(): Guid;
|
|
1679
|
+
get payload(): Record<string, unknown>;
|
|
1680
|
+
/* Excluded from this release type: markAsReady */
|
|
1681
|
+
}
|
|
1585
1682
|
|
|
1586
|
-
/* Excluded from this release type: ITransactionOperation */
|
|
1587
1683
|
export { JsonArray }
|
|
1588
1684
|
|
|
1589
1685
|
export { JsonData }
|
|
@@ -1770,6 +1866,14 @@ export { MetadataProvider }
|
|
|
1770
1866
|
|
|
1771
1867
|
/* Excluded from this release type: MethodInvokeRequest */
|
|
1772
1868
|
|
|
1869
|
+
/* Excluded from this release type: MobileInterfaceDesignerItemRegistry */
|
|
1870
|
+
|
|
1871
|
+
/* Excluded from this release type: mobileInterfaceDesignerItemRegistryKey */
|
|
1872
|
+
|
|
1873
|
+
/* Excluded from this release type: MobileViewElementRegistry */
|
|
1874
|
+
|
|
1875
|
+
/* Excluded from this release type: mobileViewElementRegistryKey */
|
|
1876
|
+
|
|
1773
1877
|
/**
|
|
1774
1878
|
* @public
|
|
1775
1879
|
*/
|
|
@@ -1800,6 +1904,9 @@ export declare class Model extends BaseHandlerChainService implements BaseModel<
|
|
|
1800
1904
|
delete(parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
|
|
1801
1905
|
canSave(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
|
|
1802
1906
|
canDelete(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
|
|
1907
|
+
insertInTransaction(transaction: ITransaction, dto: JsonObject): ITransactionOperation<DataSourceSaveResult>;
|
|
1908
|
+
updateInTransaction(transaction: ITransaction, dto: JsonObject, parameters: DataSourceParameters): ITransactionOperation<DataSourceSaveResult>;
|
|
1909
|
+
deleteInTransaction(transaction: ITransaction, parameters: DataSourceParameters): ITransactionOperation<DataSourceSaveResult>;
|
|
1803
1910
|
}
|
|
1804
1911
|
|
|
1805
1912
|
export { ModelDefaultValue }
|
|
@@ -1882,6 +1989,14 @@ export declare interface OnViewportRenderConfig {
|
|
|
1882
1989
|
};
|
|
1883
1990
|
}
|
|
1884
1991
|
|
|
1992
|
+
declare type OptionChangeSubscribeFn = (listener: OptionsChangeListener) => UnsubscribeFn;
|
|
1993
|
+
|
|
1994
|
+
declare interface OptionChangeSubscription {
|
|
1995
|
+
subscribe: OptionChangeSubscribeFn;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
declare type OptionsChangeListener = (options: FileViewerOptions) => void;
|
|
1999
|
+
|
|
1885
2000
|
export { OrderDirection }
|
|
1886
2001
|
|
|
1887
2002
|
export { ParameterExpression }
|
|
@@ -1891,6 +2006,10 @@ export { ParameterExpressionConfig }
|
|
|
1891
2006
|
export { ParameterQueryColumn }
|
|
1892
2007
|
|
|
1893
2008
|
/* Excluded from this release type: PkgTopology */
|
|
2009
|
+
|
|
2010
|
+
/* Excluded from this release type: Platform */
|
|
2011
|
+
export { PlatformAPIOptions }
|
|
2012
|
+
|
|
1894
2013
|
export { PlatformAPIs }
|
|
1895
2014
|
|
|
1896
2015
|
/**
|
|
@@ -2071,6 +2190,8 @@ export { RequestRegistrationConfig }
|
|
|
2071
2190
|
|
|
2072
2191
|
/* Excluded from this release type: RequestRegistryService */
|
|
2073
2192
|
|
|
2193
|
+
/* Excluded from this release type: RequestsResolver */
|
|
2194
|
+
|
|
2074
2195
|
/* Excluded from this release type: resetGlobals */
|
|
2075
2196
|
export { ResolveDependencyFn }
|
|
2076
2197
|
|
|
@@ -2171,6 +2292,74 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
|
|
|
2171
2292
|
}
|
|
2172
2293
|
|
|
2173
2294
|
/* Excluded from this release type: SchemaHandlerSource */
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* @public
|
|
2298
|
+
* @description Configuration interface for schema modal dialogs.
|
|
2299
|
+
* @property {string} schemaName - Name of the schema to be displayed in the modal.
|
|
2300
|
+
* @property {ɵModelInPageAction} action - Action to be performed on the model (e.g., create, edit).
|
|
2301
|
+
* @property {string} recordId - Identifier of the record to be edited or viewed.
|
|
2302
|
+
* @property {Array<ɵModelDefaultValue>} defaultValues - Default values to initialize the model with.
|
|
2303
|
+
* @property {Record<string, ɵJsonData>} parameters - Additional parameters for the schema.
|
|
2304
|
+
* @property {boolean} preventDefaultCloseCommand - Flag to prevent the default close command.
|
|
2305
|
+
* @property {object} appearanceSettings - Settings for the appearance of the modal.
|
|
2306
|
+
*/
|
|
2307
|
+
export declare interface SchemaModalConfig {
|
|
2308
|
+
/**
|
|
2309
|
+
* @description Name of the schema to be displayed in the modal.
|
|
2310
|
+
*/
|
|
2311
|
+
schemaName: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* @description Action to be performed on the model (e.g., create, edit).
|
|
2314
|
+
*/
|
|
2315
|
+
action?: ModelInPageAction;
|
|
2316
|
+
/**
|
|
2317
|
+
* @description Identifier of the record to be edited or viewed.
|
|
2318
|
+
*/
|
|
2319
|
+
recordId?: string;
|
|
2320
|
+
/**
|
|
2321
|
+
* @description Default values to initialize the model with.
|
|
2322
|
+
*/
|
|
2323
|
+
defaultValues?: Array<ModelDefaultValue>;
|
|
2324
|
+
/**
|
|
2325
|
+
* @description Additional parameters for the schema.
|
|
2326
|
+
*/
|
|
2327
|
+
parameters?: Record<string, JsonData>;
|
|
2328
|
+
/**
|
|
2329
|
+
* @description Flag to prevent the default close command.
|
|
2330
|
+
*/
|
|
2331
|
+
preventDefaultCloseCommand?: boolean;
|
|
2332
|
+
/**
|
|
2333
|
+
* @description Settings for the appearance of the modal.
|
|
2334
|
+
*/
|
|
2335
|
+
appearanceSettings?: {
|
|
2336
|
+
/**
|
|
2337
|
+
* @description CSS classes to be applied to the modal panel.
|
|
2338
|
+
*/
|
|
2339
|
+
panelClass?: string[];
|
|
2340
|
+
/**
|
|
2341
|
+
* @description Maximum height of the modal.
|
|
2342
|
+
*/
|
|
2343
|
+
maxHeight?: number | string;
|
|
2344
|
+
};
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* @public
|
|
2349
|
+
* @class SchemaModalService
|
|
2350
|
+
* @classdesc Service to work with schema modal windows using handler chain.
|
|
2351
|
+
* @extends {BaseHandlerChainService}
|
|
2352
|
+
*/
|
|
2353
|
+
export declare class SchemaModalService extends BaseHandlerChainService {
|
|
2354
|
+
/* Excluded from this release type: requestType */
|
|
2355
|
+
/**
|
|
2356
|
+
* @description Method to show schema in the modal window.
|
|
2357
|
+
* @param {SchemaModalConfig} config - Configuration object for the schema modal.
|
|
2358
|
+
* @returns `Promise<void>`
|
|
2359
|
+
*/
|
|
2360
|
+
show: (config: SchemaModalConfig) => Promise<void>;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2174
2363
|
export { SchemaViewMaskRequest }
|
|
2175
2364
|
|
|
2176
2365
|
export { SchemaViewMaskRequestAction }
|
|
@@ -2183,6 +2372,10 @@ export { SelectLocalizationQuery }
|
|
|
2183
2372
|
|
|
2184
2373
|
/* Excluded from this release type: setInterfaceDesignerItemMetadata */
|
|
2185
2374
|
|
|
2375
|
+
/* Excluded from this release type: setMobileInterfaceDesignerItemMetadata */
|
|
2376
|
+
|
|
2377
|
+
/* Excluded from this release type: setMobileViewElementMetadata */
|
|
2378
|
+
|
|
2186
2379
|
/* Excluded from this release type: setModuleMetadata */
|
|
2187
2380
|
|
|
2188
2381
|
/* Excluded from this release type: setRequestHandlerMetadata */
|
|
@@ -2369,6 +2562,10 @@ export declare interface SysValues {
|
|
|
2369
2562
|
* @description user culture
|
|
2370
2563
|
*/
|
|
2371
2564
|
userCulture: LookupValue;
|
|
2565
|
+
/**
|
|
2566
|
+
* @description user
|
|
2567
|
+
*/
|
|
2568
|
+
user: LookupValue;
|
|
2372
2569
|
/**
|
|
2373
2570
|
* @description core version
|
|
2374
2571
|
*/
|
|
@@ -2381,6 +2578,10 @@ export declare interface SysValues {
|
|
|
2381
2578
|
* @description environment type
|
|
2382
2579
|
*/
|
|
2383
2580
|
environmentType: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* @description customer
|
|
2583
|
+
*/
|
|
2584
|
+
customer: string;
|
|
2384
2585
|
}
|
|
2385
2586
|
|
|
2386
2587
|
/**
|
|
@@ -2430,8 +2631,31 @@ export { toLocalISOString }
|
|
|
2430
2631
|
/* Excluded from this release type: toSortDirection */
|
|
2431
2632
|
|
|
2432
2633
|
/* Excluded from this release type: toStringFunctionType */
|
|
2634
|
+
|
|
2635
|
+
/**
|
|
2636
|
+
* @public
|
|
2637
|
+
* @class TransactionFactoryService
|
|
2638
|
+
* @classdesc Service to working with transaction factory using a handler chain
|
|
2639
|
+
* @extends {BaseHandlerChainService}
|
|
2640
|
+
*/
|
|
2641
|
+
export declare class TransactionFactoryService extends BaseHandlerChainService implements ITransactionFactory {
|
|
2642
|
+
/* Excluded from this release type: _instance */
|
|
2643
|
+
/* Excluded from this release type: requestType */
|
|
2644
|
+
/**
|
|
2645
|
+
* @description Method create a transaction.
|
|
2646
|
+
* @returns `ITransaction` {@link ITransaction}
|
|
2647
|
+
* @public
|
|
2648
|
+
*/
|
|
2649
|
+
create: () => Promise<ITransaction>;
|
|
2650
|
+
/* Excluded from this release type: __constructor */
|
|
2651
|
+
/* Excluded from this release type: instance */
|
|
2652
|
+
static create(): Promise<ITransaction>;
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2433
2655
|
export { Type }
|
|
2434
2656
|
|
|
2657
|
+
declare type UnsubscribeFn = () => void;
|
|
2658
|
+
|
|
2435
2659
|
/* Excluded from this release type: UnsubscribeListener */
|
|
2436
2660
|
export { UpdateQuery }
|
|
2437
2661
|
|
|
@@ -2496,6 +2720,8 @@ export declare interface ValueResponse<T> extends BaseResponse {
|
|
|
2496
2720
|
|
|
2497
2721
|
/* Excluded from this release type: ViewElementProperty */
|
|
2498
2722
|
|
|
2723
|
+
/* Excluded from this release type: viewElementRegister */
|
|
2724
|
+
|
|
2499
2725
|
/**
|
|
2500
2726
|
* @public
|
|
2501
2727
|
* @description Config to specify view element options.
|
|
@@ -2562,9 +2788,86 @@ export declare interface ViewModelAttributeChangeEventOptionsType {
|
|
|
2562
2788
|
preventAttributeChangeRequest?: boolean;
|
|
2563
2789
|
preventStateChange?: boolean;
|
|
2564
2790
|
preventRunBusinessRules?: boolean;
|
|
2791
|
+
/* Excluded from this release type: isMaskedValue */
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* @public
|
|
2796
|
+
* @description Interface for a view model collection that extends the base collection with
|
|
2797
|
+
* on collection change callbacks registration capabilities.
|
|
2798
|
+
*
|
|
2799
|
+
* @template T - The type of view model context that extends ViewModel
|
|
2800
|
+
*/
|
|
2801
|
+
export declare interface ViewModelCollection<T extends ViewModelContext> extends ɵViewModelCollection<T> {
|
|
2802
|
+
/**
|
|
2803
|
+
* @description Registers a handler to be called whenever the collection emits a change event.
|
|
2804
|
+
* @param callback Executes when the collection changes and receives change metadata.
|
|
2805
|
+
* @param action Optional action filter; omit to receive all collection change notifications.
|
|
2806
|
+
*/
|
|
2807
|
+
registerOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
|
|
2808
|
+
/**
|
|
2809
|
+
* @description Removes a previously registered collection change handler.
|
|
2810
|
+
* @param callback Previously registered callback to detach.
|
|
2811
|
+
* @param action Optional action filter, if provided, only detaches the callback for that action type.
|
|
2812
|
+
*/
|
|
2813
|
+
unregisterOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
|
|
2814
|
+
/**
|
|
2815
|
+
* @description Registers a handler that fires when attributes of any collection item change.
|
|
2816
|
+
* @param callback Executes with the item whose attributes were updated.
|
|
2817
|
+
*/
|
|
2818
|
+
registerOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
|
|
2819
|
+
/**
|
|
2820
|
+
* @description Removes a previously registered item attribute change handler.
|
|
2821
|
+
* @param callback Callback reference to detach from attribute change notifications.
|
|
2822
|
+
*/
|
|
2823
|
+
unregisterOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* @public
|
|
2828
|
+
* @description List of actions which can be performed on collection with a public API.
|
|
2829
|
+
*/
|
|
2830
|
+
export declare enum ViewModelCollectionActionType {
|
|
2831
|
+
/**
|
|
2832
|
+
* @description Create a collection element.
|
|
2833
|
+
*/
|
|
2834
|
+
Add = "add",
|
|
2835
|
+
/**
|
|
2836
|
+
* @description Remove an element from collection.
|
|
2837
|
+
*/
|
|
2838
|
+
Remove = "remove",
|
|
2839
|
+
/**
|
|
2840
|
+
* @description Update an element in collection.
|
|
2841
|
+
*/
|
|
2842
|
+
Move = "move",
|
|
2843
|
+
/**
|
|
2844
|
+
* @description Reload collection with new elements.
|
|
2845
|
+
*/
|
|
2846
|
+
Reload = "reload"
|
|
2565
2847
|
}
|
|
2566
2848
|
|
|
2567
|
-
|
|
2849
|
+
/**
|
|
2850
|
+
* @public
|
|
2851
|
+
* @description Interface describes the model of collection change event.
|
|
2852
|
+
*/
|
|
2853
|
+
export declare interface ViewModelCollectionChange<T extends ViewModelContext> {
|
|
2854
|
+
/**
|
|
2855
|
+
* @description The array of current collection elements.
|
|
2856
|
+
*/
|
|
2857
|
+
collection: T[];
|
|
2858
|
+
/**
|
|
2859
|
+
* @description The array of elements affected by the change.
|
|
2860
|
+
*/
|
|
2861
|
+
affectedElements: T[];
|
|
2862
|
+
/**
|
|
2863
|
+
* @description The type of action that triggered the change.
|
|
2864
|
+
*/
|
|
2865
|
+
action: ViewModelCollectionActionType;
|
|
2866
|
+
/**
|
|
2867
|
+
* @description The index at which the change occurred, if applicable.
|
|
2868
|
+
*/
|
|
2869
|
+
index?: number;
|
|
2870
|
+
}
|
|
2568
2871
|
|
|
2569
2872
|
export { ViewModelContext }
|
|
2570
2873
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatio-devkit/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.832.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,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": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ViewElementRegistry } from '../services';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export function isComponentPropertyBindable(viewConfigType, componentProperty) {
|
|
6
|
-
const componentConfig = ViewElementRegistry.viewElements.get(viewConfigType);
|
|
7
|
-
if (!componentConfig?.inputs) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
return !!componentConfig?.inputs[componentProperty]?.propertyBindable;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LWNvbmZpZy11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGV2a2l0L2NvbW1vbi9zcmMvbGliL2ludGVybmFsL3V0aWxzL2NvbXBvbmVudC1jb25maWctdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRWxEOztHQUVHO0FBQ0gsTUFBTSxVQUFVLDJCQUEyQixDQUFDLGNBQXNCLEVBQUUsaUJBQXlCO0lBQzVGLE1BQU0sZUFBZSxHQUFHLG1CQUFtQixDQUFDLFlBQVksQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUE0QixDQUFDO0lBQ3hHLElBQUksQ0FBQyxlQUFlLEVBQUUsTUFBTSxFQUFFLENBQUM7UUFDOUIsT0FBTyxLQUFLLENBQUM7SUFDZCxDQUFDO0lBQ0QsT0FBTyxDQUFDLENBQUMsZUFBZSxFQUFFLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxFQUFFLGdCQUFnQixDQUFDO0FBQ3ZFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBWaWV3RWxlbWVudFJlZ2lzdHJ5SXRlbSB9IGZyb20gJy4uL21vZGVscyc7XG5pbXBvcnQgeyBWaWV3RWxlbWVudFJlZ2lzdHJ5IH0gZnJvbSAnLi4vc2VydmljZXMnO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNDb21wb25lbnRQcm9wZXJ0eUJpbmRhYmxlKHZpZXdDb25maWdUeXBlOiBzdHJpbmcsIGNvbXBvbmVudFByb3BlcnR5OiBzdHJpbmcpOiBib29sZWFuIHtcblx0Y29uc3QgY29tcG9uZW50Q29uZmlnID0gVmlld0VsZW1lbnRSZWdpc3RyeS52aWV3RWxlbWVudHMuZ2V0KHZpZXdDb25maWdUeXBlKSBhcyBWaWV3RWxlbWVudFJlZ2lzdHJ5SXRlbTtcblx0aWYgKCFjb21wb25lbnRDb25maWc/LmlucHV0cykge1xuXHRcdHJldHVybiBmYWxzZTtcblx0fVxuXHRyZXR1cm4gISFjb21wb25lbnRDb25maWc/LmlucHV0c1tjb21wb25lbnRQcm9wZXJ0eV0/LnByb3BlcnR5QmluZGFibGU7XG59XG4iXX0=
|