@creatio-devkit/common 0.820.1 → 0.821.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 +5 -1
- package/esm2022/lib/base-exports.mjs +1 -1
- package/esm2022/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +3 -1
- package/esm2022/lib/internal/models/design-time-view-element-registry-item.mjs +1 -1
- package/esm2022/lib/internal/models/index.mjs +2 -1
- package/esm2022/lib/internal/models/internal-interface-designer-item-registration-config.model.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 +1 -1
- package/esm2022/lib/internal/services/view-element-registry/view-element-registry.mjs +1 -1
- package/esm2022/lib/internal/utils/metadata-utils.mjs +1 -1
- package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +3 -1
- package/esm2022/lib/public/decorators/module/module.decorator.mjs +1 -1
- package/esm2022/lib/public/decorators/view-element/view-element.decorator.mjs +3 -5
- package/esm2022/lib/public/functions/define-render-config.mjs +16 -0
- package/esm2022/lib/public/functions/index.mjs +2 -1
- package/esm2022/lib/public/models/view-element/base-view-element-registration-config.mjs +1 -1
- package/esm2022/lib/public/models/view-element/view-element-registration-config.mjs +1 -1
- package/esm2022/lib/public/models/view-element/view-element-render-strategy.mjs +4 -2
- package/fesm2022/creatio-devkit-common.mjs +518 -503
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +56 -7
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -371,7 +371,7 @@ export declare abstract class BaseValidator {
|
|
|
371
371
|
* }
|
|
372
372
|
* }
|
|
373
373
|
*/
|
|
374
|
-
export declare
|
|
374
|
+
export declare type BaseViewElementRegistrationConfig = {
|
|
375
375
|
/**
|
|
376
376
|
* @description type of view element. Used to specify view element in schema.
|
|
377
377
|
*/
|
|
@@ -401,10 +401,8 @@ export declare interface BaseViewElementRegistrationConfig {
|
|
|
401
401
|
*/
|
|
402
402
|
validationInputs?: Record<string, unknown>;
|
|
403
403
|
/* Excluded from this release type: reuseStrategy */
|
|
404
|
-
/* Excluded from this release type: renderStrategy */
|
|
405
|
-
/* Excluded from this release type: placeholderSize */
|
|
406
404
|
/* Excluded from this release type: compatibleAPIs */
|
|
407
|
-
}
|
|
405
|
+
} & (OnViewportRenderConfig | DefaultRenderConfig);
|
|
408
406
|
|
|
409
407
|
export { BetweenFilter }
|
|
410
408
|
|
|
@@ -698,6 +696,8 @@ export declare function CrtModule(moduleDefinition: ModuleDefinition): (type: Ty
|
|
|
698
696
|
|
|
699
697
|
/* Excluded declaration from this release type: CrtModule */
|
|
700
698
|
|
|
699
|
+
/* Excluded declaration from this release type: CrtModule */
|
|
700
|
+
|
|
701
701
|
/**
|
|
702
702
|
* @public
|
|
703
703
|
* @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.
|
|
@@ -938,6 +938,7 @@ export { DataSourceInstanceConfig }
|
|
|
938
938
|
export declare interface DataSourceLoadOptions extends ɵDataSourceLoadOptions {
|
|
939
939
|
/* Excluded from this release type: loadType */
|
|
940
940
|
/* Excluded from this release type: throttled */
|
|
941
|
+
/* Excluded from this release type: isDistinct */
|
|
941
942
|
}
|
|
942
943
|
|
|
943
944
|
/* Excluded from this release type: DataSourceLoadType */
|
|
@@ -967,10 +968,22 @@ export { DatePartFunctionExpressionConfig }
|
|
|
967
968
|
|
|
968
969
|
export { DatePartType }
|
|
969
970
|
|
|
971
|
+
/**
|
|
972
|
+
* @public
|
|
973
|
+
* @description Render config for an element with Default render strategy.
|
|
974
|
+
*/
|
|
975
|
+
export declare interface DefaultRenderConfig {
|
|
976
|
+
/**
|
|
977
|
+
* @description Determines that the element should render immediately.
|
|
978
|
+
*/
|
|
979
|
+
renderStrategy?: ViewElementRenderStrategy.Default;
|
|
980
|
+
}
|
|
981
|
+
|
|
970
982
|
export { DefaultValueSchema }
|
|
971
983
|
|
|
972
984
|
export { DefaultValueSource }
|
|
973
985
|
|
|
986
|
+
/* Excluded from this release type: defineRenderConfig */
|
|
974
987
|
export { DeleteQuery }
|
|
975
988
|
|
|
976
989
|
/* Excluded from this release type: DesignerToolGroupType */
|
|
@@ -1406,6 +1419,8 @@ export declare interface InterfaceDesignerItemDefinition {
|
|
|
1406
1419
|
|
|
1407
1420
|
/* Excluded from this release type: InterfaceDesignerRegistryItem */
|
|
1408
1421
|
|
|
1422
|
+
/* Excluded from this release type: InternalDesignTimeViewElementRegistryItem */
|
|
1423
|
+
|
|
1409
1424
|
/* Excluded from this release type: InternalInterfaceDesignerItemRegistrationConfig */
|
|
1410
1425
|
|
|
1411
1426
|
/* Excluded from this release type: InternalModuleDefinition */
|
|
@@ -1717,6 +1732,25 @@ export declare interface ModuleDefinition {
|
|
|
1717
1732
|
export { NextHandlerAlreadySpecifiedException }
|
|
1718
1733
|
|
|
1719
1734
|
/* Excluded from this release type: objectDeepKeys */
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* @public
|
|
1738
|
+
* @description Render config for an element with OnViewport render strategy.
|
|
1739
|
+
*/
|
|
1740
|
+
export declare interface OnViewportRenderConfig {
|
|
1741
|
+
/**
|
|
1742
|
+
* @description Determines that the element should render on entering the viewport.
|
|
1743
|
+
*/
|
|
1744
|
+
renderStrategy: ViewElementRenderStrategy.OnViewport;
|
|
1745
|
+
/**
|
|
1746
|
+
* @description The size of the placeholder displayed while the element is
|
|
1747
|
+
* being rendered.
|
|
1748
|
+
*/
|
|
1749
|
+
placeholderSize: {
|
|
1750
|
+
height: string;
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1720
1754
|
export { OrderDirection }
|
|
1721
1755
|
|
|
1722
1756
|
export { ParameterExpression }
|
|
@@ -2212,12 +2246,12 @@ export declare interface ValueResponse<T> extends BaseResponse {
|
|
|
2212
2246
|
* })
|
|
2213
2247
|
* ```
|
|
2214
2248
|
*/
|
|
2215
|
-
export declare
|
|
2249
|
+
export declare type ViewElementRegistrationConfig = BaseViewElementRegistrationConfig & {
|
|
2216
2250
|
/**
|
|
2217
2251
|
* @description view element tag selector; View element appears in DOM with this selector.
|
|
2218
2252
|
*/
|
|
2219
2253
|
selector: string;
|
|
2220
|
-
}
|
|
2254
|
+
};
|
|
2221
2255
|
|
|
2222
2256
|
/* Excluded from this release type: ViewElementRegistry */
|
|
2223
2257
|
|
|
@@ -2225,7 +2259,22 @@ export declare interface ViewElementRegistrationConfig extends BaseViewElementRe
|
|
|
2225
2259
|
|
|
2226
2260
|
/* Excluded from this release type: viewElementRegistryKey */
|
|
2227
2261
|
|
|
2228
|
-
|
|
2262
|
+
/**
|
|
2263
|
+
* @public
|
|
2264
|
+
* @description Render strategy for view element.
|
|
2265
|
+
*/
|
|
2266
|
+
export declare enum ViewElementRenderStrategy {
|
|
2267
|
+
/**
|
|
2268
|
+
* @description Default render strategy.
|
|
2269
|
+
* The element is rendered immediately.
|
|
2270
|
+
*/
|
|
2271
|
+
Default = "default",
|
|
2272
|
+
/**
|
|
2273
|
+
* @description On viewport render strategy.
|
|
2274
|
+
* The element is rendered only when it becomes visible in the viewport.
|
|
2275
|
+
*/
|
|
2276
|
+
OnViewport = "on-viewport"
|
|
2277
|
+
}
|
|
2229
2278
|
|
|
2230
2279
|
/* Excluded from this release type: ViewElementReuseStrategy */
|
|
2231
2280
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatio-devkit/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.821.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": [
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"shortid-extend": "0.0.3",
|
|
14
14
|
"class-transformer": "^0.5.1",
|
|
15
15
|
"reflect-metadata": "^0.1.13",
|
|
16
|
-
"lodash": "^4.17.21"
|
|
16
|
+
"lodash": "^4.17.21",
|
|
17
|
+
"@creatio/base": "0.821.0"
|
|
17
18
|
},
|
|
18
19
|
"sideEffects": false,
|
|
19
20
|
"module": "fesm2022/creatio-devkit-common.mjs",
|