@futdevpro/fsm-dynamo 1.10.48 → 1.10.50
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/build/_collections/utils/stack.util.d.ts +1 -1
- package/build/_collections/utils/stack.util.d.ts.map +1 -1
- package/build/_collections/utils/stack.util.js +15 -4
- package/build/_collections/utils/stack.util.js.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.js +1 -1
- package/build/_models/control-models/data-model-params.control-model.js.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.js +6 -6
- package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/build/_models/control-models/service-endpoint-settings-base.control-model.js +1 -1
- package/build/_models/control-models/service-endpoint-settings-base.control-model.js.map +1 -1
- package/build/_modules/pipe/_collections/pip-transforms.const.d.ts +5 -0
- package/build/_modules/pipe/_collections/pip-transforms.const.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/pip-transforms.const.js +5 -0
- package/build/_modules/pipe/_collections/pip-transforms.const.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.d.ts +24 -0
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.js +24 -0
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.d.ts +20 -1
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.js +21 -2
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.d.ts +16 -0
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.js +16 -0
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.d.ts +16 -0
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.js +16 -0
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.d.ts +53 -0
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.js +53 -0
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.d.ts +13 -0
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.js +13 -0
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.d.ts +12 -0
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.js +12 -0
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.d.ts +17 -0
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.js +17 -0
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.d.ts +12 -0
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.js +12 -0
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.d.ts +14 -0
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.js +14 -0
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.js.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.d.ts +9 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.d.ts.map +1 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.js +9 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.js.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js.map +1 -1
- package/futdevpro-fsm-dynamo-01.10.50.tgz +0 -0
- package/package.json +1 -1
- package/src/_collections/utils/stack.util.ts +18 -2
- package/src/_models/control-models/data-model-params.control-model.ts +2 -2
- package/src/_models/control-models/data-property-params.control-model.ts +7 -7
- package/src/_models/control-models/service-endpoint-settings-base.control-model.ts +2 -2
- package/src/_modules/pipe/_collections/pip-transforms.const.ts +5 -1
- package/src/_modules/pipe/_collections/utils/pip-country-pipe.util.ts +24 -1
- package/src/_modules/pipe/_collections/utils/pip-custom-pipe.util.ts +24 -3
- package/src/_modules/pipe/_collections/utils/pip-division-pipe.util.ts +16 -0
- package/src/_modules/pipe/_collections/utils/pip-list-pipe.util.ts +16 -1
- package/src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.ts +53 -0
- package/src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.ts +13 -1
- package/src/_modules/pipe/_collections/utils/pip-range-pipe.util.ts +12 -0
- package/src/_modules/pipe/_collections/utils/pip-region-pipe.util.ts +17 -0
- package/src/_modules/pipe/_collections/utils/pip-replace-pipe.util.ts +12 -0
- package/src/_modules/pipe/_collections/utils/pip-slider-pipe.util.ts +14 -0
- package/src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.ts +9 -1
- package/src/_modules/socket/_models/sck-socket-event.control-model.ts +2 -2
- package/futdevpro-fsm-dynamo-01.10.48.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-obj-key-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pip-obj-key-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAEvE"}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_objKey_pipeTransform = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* This pipe will return the keys of an object
|
|
6
|
+
* (it will return an empty array if the object is empty)
|
|
7
|
+
* (This can be used in multiPipe, all datas from objects)
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```html
|
|
12
|
+
* {{ { a: 1, b: 2, c: 3 } | objKey }}
|
|
13
|
+
* ```
|
|
14
|
+
* will return `['a', 'b', 'c']`
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
4
17
|
function DyFM_objKey_pipeTransform(value) {
|
|
5
18
|
return value ? Object.keys(value) : [];
|
|
6
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-obj-key-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pip-obj-key-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;GAYG;AACH,SAAgB,yBAAyB,CAAQ,KAAY;IAC3D,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC;AAFD,8DAEC"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { DyFM_RangePipe_Setting } from '../../_enums/pip-range-pipe-setting.enum';
|
|
2
2
|
import { DyFM_RangeValue } from '../../../../_models/control-models/range-value.control-model';
|
|
3
3
|
import { DyFM_MultiPipe_Setting } from '../../_models/pip-multi-pipe-settings.type';
|
|
4
|
+
/**
|
|
5
|
+
* This pipe will return the range of a value
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```html
|
|
10
|
+
* {{ { from: 1, to: 10 } | range: 'from-to' }}
|
|
11
|
+
* ```
|
|
12
|
+
* will return `1 - 10`
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
4
16
|
export declare function DyFM_range_pipeTransform(value: DyFM_RangeValue, setting: DyFM_RangePipe_Setting | string, multiPipes?: DyFM_MultiPipe_Setting[]): string | number | DyFM_RangeValue;
|
|
5
17
|
//# sourceMappingURL=pip-range-pipe.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-range-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-range-pipe.util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGpF,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,sBAAsB,GAAG,MAAM,EACxC,UAAU,CAAC,EAAE,sBAAsB,EAAE,GACpC,MAAM,GAAG,MAAM,GAAG,eAAe,CAmCnC"}
|
|
1
|
+
{"version":3,"file":"pip-range-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-range-pipe.util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGpF;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,sBAAsB,GAAG,MAAM,EACxC,UAAU,CAAC,EAAE,sBAAsB,EAAE,GACpC,MAAM,GAAG,MAAM,GAAG,eAAe,CAmCnC"}
|
|
@@ -3,6 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DyFM_range_pipeTransform = void 0;
|
|
4
4
|
const pip_range_pipe_setting_enum_1 = require("../../_enums/pip-range-pipe-setting.enum");
|
|
5
5
|
const pip_multi_pipe_pipe_util_1 = require("./pip-multi-pipe-pipe.util");
|
|
6
|
+
/**
|
|
7
|
+
* This pipe will return the range of a value
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```html
|
|
12
|
+
* {{ { from: 1, to: 10 } | range: 'from-to' }}
|
|
13
|
+
* ```
|
|
14
|
+
* will return `1 - 10`
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
6
18
|
function DyFM_range_pipeTransform(value, setting, multiPipes) {
|
|
7
19
|
if (!checkRangePipeRequirements(value, setting, multiPipes)) {
|
|
8
20
|
return value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-range-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-range-pipe.util.ts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jB,CAAC;AACH,CAAC;AAvCD,4DAuCC;AAED,SAAS,0BAA0B,CACjC,KAAsB,EACtB,OAAwC,EACxC,UAAqC;IAErC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CACV,kBAAkB;YAClB,gDAAgD,EAChD,kDAAkD,EAClD,WAAW,EAAE,KAAK,EAClB,MAAM,EACN,IAAI,KAAK,EAAE,CACZ,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,oDAAsB,CAAC,MAAM,CAAC;IAC1C,CAAC;IAED,IACE,OAAO,KAAK,oDAAsB,CAAC,IAAI;QACvC,OAAO,KAAK,oDAAsB,CAAC,MAAM;QACzC,CAAC,GAAG,UAAU,EAAE,MAAM,EACtB,CAAC;QACD,OAAO,CAAC,IAAI,CACV,kBAAkB;YAClB,8EAA8E,EAC9E,oEAAoE,EACpE,WAAW,EAAE,KAAK,EAClB,aAAa,EAAE,OAAO,EACtB,kBAAkB,EAAE,UAAU,EAC9B,MAAM,EACN,IAAI,KAAK,EAAE,CACZ,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"pip-range-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-range-pipe.util.ts"],"names":[],"mappings":";;;AAOA,0FAAkF;AAGlF,yEAA0E;AAE1E;;;;;;;;;;;GAWG;AACH,SAAgB,wBAAwB,CACtC,KAAsB,EACtB,OAAwC,EACxC,UAAqC;IAErC,IAAI,CAAC,0BAA0B,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC;QAC5D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,oDAAsB,CAAC,GAAG,CAAC;QAChC,KAAK,oDAAsB,CAAC,OAAO;YACjC,OAAO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AAE,CAAC;QACb,OAAO,GAAG,oDAAsB,CAAC,MAAM,CAAC;IAC1C,CAAC;IAED,IACE,OAAO,KAAK,oDAAsB,CAAC,IAAI;QACvC,OAAO,KAAK,oDAAsB,CAAC,MAAM;QACzC,CAAC,GAAG,UAAU,EAAE,MAAM,EACtB,CAAC;QACD,OAAO,CAAC,IAAI,CACV,kBAAkB;YAClB,8EAA8E,EAC9E,oEAAoE,EACpE,WAAW,EAAE,KAAK,EAClB,aAAa,EAAE,OAAO,EACtB,kBAAkB,EAAE,UAAU,EAC9B,MAAM,EACN,IAAI,KAAK,EAAE,CACZ,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This pipe will return the region of a country
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
*
|
|
6
|
+
* ```html
|
|
7
|
+
* {{ 'US' | region }}
|
|
8
|
+
* ```
|
|
9
|
+
* will return `North America`
|
|
10
|
+
*
|
|
11
|
+
* ```html
|
|
12
|
+
* {{ 'DE' | region }}
|
|
13
|
+
* ```
|
|
14
|
+
* will return `Europe`
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
1
18
|
export declare function DyFM_region_pipeTransform(countryISO: string): string;
|
|
2
19
|
//# sourceMappingURL=pip-region-pipe.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-region-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-region-pipe.util.ts"],"names":[],"mappings":"AAWA,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAMpE"}
|
|
1
|
+
{"version":3,"file":"pip-region-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-region-pipe.util.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAMpE"}
|
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_region_pipeTransform = void 0;
|
|
4
4
|
const loc_country_isos_const_1 = require("../../../location/_collections/loc-country-isos.const");
|
|
5
|
+
/**
|
|
6
|
+
* This pipe will return the region of a country
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* ```html
|
|
11
|
+
* {{ 'US' | region }}
|
|
12
|
+
* ```
|
|
13
|
+
* will return `North America`
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* {{ 'DE' | region }}
|
|
17
|
+
* ```
|
|
18
|
+
* will return `Europe`
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
5
22
|
function DyFM_region_pipeTransform(countryISO) {
|
|
6
23
|
const result = loc_country_isos_const_1.DyFM_countryISOs.find((iso) => iso.iso2 === countryISO)?.region;
|
|
7
24
|
return result ?? countryISO;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-region-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-region-pipe.util.ts"],"names":[],"mappings":";;;AAQA,kGAAyF;AAGzF,SAAgB,yBAAyB,CAAC,UAAkB;IAC1D,MAAM,MAAM,GAAG,yCAAgB,CAAC,IAAI,CAClC,CAAC,GAAoB,EAAW,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,UAAU,CAC3D,EAAE,MAAM,CAAC;IAEV,OAAO,MAAM,IAAI,UAAU,CAAC;AAC9B,CAAC;AAND,8DAMC"}
|
|
1
|
+
{"version":3,"file":"pip-region-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-region-pipe.util.ts"],"names":[],"mappings":";;;AAQA,kGAAyF;AAGzF;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,yBAAyB,CAAC,UAAkB;IAC1D,MAAM,MAAM,GAAG,yCAAgB,CAAC,IAAI,CAClC,CAAC,GAAoB,EAAW,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,UAAU,CAC3D,EAAE,MAAM,CAAC;IAEV,OAAO,MAAM,IAAI,UAAU,CAAC;AAC9B,CAAC;AAND,8DAMC"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This pipe will replace all the occurrences of a string with another string
|
|
3
|
+
* (usually used for data injections for localized messages)
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
*
|
|
7
|
+
* ```html
|
|
8
|
+
* {{ 'Hello World' | replace: 'World', 'Universe' }}
|
|
9
|
+
* ```
|
|
10
|
+
* will return `Hello Universe`
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
1
13
|
export declare function DyFM_replace_pipeTransform(value: string, from: string, to: string): string;
|
|
2
14
|
//# sourceMappingURL=pip-replace-pipe.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-replace-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-replace-pipe.util.ts"],"names":[],"mappings":"AAQA,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAE1F"}
|
|
1
|
+
{"version":3,"file":"pip-replace-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-replace-pipe.util.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAE1F"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_replace_pipeTransform = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* This pipe will replace all the occurrences of a string with another string
|
|
6
|
+
* (usually used for data injections for localized messages)
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* ```html
|
|
11
|
+
* {{ 'Hello World' | replace: 'World', 'Universe' }}
|
|
12
|
+
* ```
|
|
13
|
+
* will return `Hello Universe`
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
4
16
|
function DyFM_replace_pipeTransform(value, from, to) {
|
|
5
17
|
return value?.replaceAll(from, to) ?? value;
|
|
6
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-replace-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-replace-pipe.util.ts"],"names":[],"mappings":";;;AAQA,SAAgB,0BAA0B,CAAC,KAAa,EAAE,IAAY,EAAE,EAAU;IAChF,OAAO,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC;AAC9C,CAAC;AAFD,gEAEC"}
|
|
1
|
+
{"version":3,"file":"pip-replace-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-replace-pipe.util.ts"],"names":[],"mappings":";;;AAQA;;;;;;;;;;;GAWG;AACH,SAAgB,0BAA0B,CAAC,KAAa,EAAE,IAAY,EAAE,EAAU;IAChF,OAAO,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC;AAC9C,CAAC;AAFD,gEAEC"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
import { DyFM_RangeValue } from '../../../../_models/control-models/range-value.control-model';
|
|
2
|
+
/**
|
|
3
|
+
* This pipe will return the value as a string
|
|
4
|
+
* The main purpose of this pipe is to be able to rewrite this pipe,
|
|
5
|
+
* so the Dynamo Slider Field will use it as you want
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```html
|
|
10
|
+
* {{ 100 | slider }}
|
|
11
|
+
* ```
|
|
12
|
+
* will return `100`
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
2
16
|
export declare function DyFM_slider_pipeTransform(value: number | DyFM_RangeValue<number> | string): string;
|
|
3
17
|
//# sourceMappingURL=pip-slider-pipe.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-slider-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-slider-pipe.util.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAG/F,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,MAAM,GAC/C,MAAM,CAQR"}
|
|
1
|
+
{"version":3,"file":"pip-slider-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-slider-pipe.util.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAG/F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,MAAM,GAC/C,MAAM,CAQR"}
|
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_slider_pipeTransform = void 0;
|
|
4
4
|
const range_value_control_model_1 = require("../../../../_models/control-models/range-value.control-model");
|
|
5
|
+
/**
|
|
6
|
+
* This pipe will return the value as a string
|
|
7
|
+
* The main purpose of this pipe is to be able to rewrite this pipe,
|
|
8
|
+
* so the Dynamo Slider Field will use it as you want
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* ```html
|
|
13
|
+
* {{ 100 | slider }}
|
|
14
|
+
* ```
|
|
15
|
+
* will return `100`
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
5
19
|
function DyFM_slider_pipeTransform(value) {
|
|
6
20
|
if (value instanceof range_value_control_model_1.DyFM_RangeValue /* (value as DyFM_RangeValue).isRange */) {
|
|
7
21
|
return value.toString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-slider-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-slider-pipe.util.ts"],"names":[],"mappings":";;;AAKA,4GAA+F;AAG/F,SAAgB,yBAAyB,CACvC,KAAgD;IAEhD,IAAI,KAAK,YAAY,2CAAe,CAAC,wCAAwC,EAAE,CAAC;QAC9E,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1B,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO,GAAG,KAAK,EAAE,CAAC;IACpB,CAAC;SAAM,CAAC;QACN,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAVD,8DAUC"}
|
|
1
|
+
{"version":3,"file":"pip-slider-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-slider-pipe.util.ts"],"names":[],"mappings":";;;AAKA,4GAA+F;AAG/F;;;;;;;;;;;;;GAaG;AACH,SAAgB,yBAAyB,CACvC,KAAgD;IAEhD,IAAI,KAAK,YAAY,2CAAe,CAAC,wCAAwC,EAAE,CAAC;QAC9E,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1B,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO,GAAG,KAAK,EAAE,CAAC;IACpB,CAAC;SAAM,CAAC;QACN,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAVD,8DAUC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { DyFM_MultiPipe_Setting } from '../../_models/pip-multi-pipe-settings.type';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* This pipe will replace multiple values using the given keys
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
*
|
|
7
|
+
* ```html
|
|
8
|
+
* {{ 'Hello {name}, {customer} is waiting for you' | smartReplace: { name: 'John', customer: 'Bob' } }}
|
|
9
|
+
* ```
|
|
10
|
+
* will return `Hello John, Bob is waiting for you`
|
|
11
|
+
*
|
|
4
12
|
*/
|
|
5
13
|
export declare function DyFM_smartReplace_pipeTransform(value: string, replacer: object, multiPipes?: DyFM_MultiPipe_Setting[]): string;
|
|
6
14
|
//# sourceMappingURL=pip-smart-replace-pipe.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-smart-replace-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAIpF
|
|
1
|
+
{"version":3,"file":"pip-smart-replace-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAIpF;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,sBAAsB,EAAE,GACrE,MAAM,CAsDR"}
|
|
@@ -3,7 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DyFM_smartReplace_pipeTransform = void 0;
|
|
4
4
|
const pip_multi_pipe_pipe_util_1 = require("./pip-multi-pipe-pipe.util");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* This pipe will replace multiple values using the given keys
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* ```html
|
|
11
|
+
* {{ 'Hello {name}, {customer} is waiting for you' | smartReplace: { name: 'John', customer: 'Bob' } }}
|
|
12
|
+
* ```
|
|
13
|
+
* will return `Hello John, Bob is waiting for you`
|
|
14
|
+
*
|
|
7
15
|
*/
|
|
8
16
|
function DyFM_smartReplace_pipeTransform(value, replacer, multiPipes) {
|
|
9
17
|
if (!replacer) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pip-smart-replace-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.ts"],"names":[],"mappings":";;;AAQA,yEAA0E;AAG1E
|
|
1
|
+
{"version":3,"file":"pip-smart-replace-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.ts"],"names":[],"mappings":";;;AAQA,yEAA0E;AAG1E;;;;;;;;;;GAUG;AACH,SAAgB,+BAA+B,CAC7C,KAAa,EAAE,QAAgB,EAAE,UAAqC;IAGtE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,CAAC,IAAI,CACV,kBAAkB;YAClB,iDAAiD,EACjD,MAAM,EACN,IAAI,KAAK,EAAE,CACZ,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC;gBAC1B,OAAO,CAAC,IAAI,CACV,kBAAkB;oBAClB,gCAAgC,GAAG,GAAG,GAAG,+BAA+B,EACxE,MAAM,EACN,IAAI,KAAK,EAAE,CACZ,CAAC;gBAEF,OAAO;YACT,CAAC;YAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxC,OAAO,CAAC,IAAI,CACV,kBAAkB;oBAClB,gCAAgC,GAAG,GAAG,GAAG,gCAAgC,EACzE,MAAM,EACN,IAAI,KAAK,EAAE,CACZ,CAAC;gBAEF,OAAO;YACT,CAAC;YAED,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAA,uDAA4B,EAC1C,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EACnB,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,CACpB,CAAC;QACJ,CAAC;QAED,IAAI,UAAU,EAAE,MAAM,EAAE,CAAC;YACvB,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAA,uDAA4B,EAC1C,QAAQ,CAAC,GAAG,CAAC,EACb,UAAU,CACX,CAAC;QACJ,CAAC;QAED,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAxDD,0EAwDC"}
|
|
@@ -37,7 +37,7 @@ class DyFM_SocketEvent {
|
|
|
37
37
|
this.serviceName = set.serviceName ?? 'UnknownSocketService';
|
|
38
38
|
this.preProcesses = set.preProcesses ?? [];
|
|
39
39
|
this.tasks = set.tasks ?? [];
|
|
40
|
-
this.stackLocation = (0, stack_util_1.
|
|
40
|
+
this.stackLocation = (0, stack_util_1.DyFM_getConstructionStackLocation)();
|
|
41
41
|
if (set.logEvent !== undefined) {
|
|
42
42
|
this.logEvent = set.logEvent;
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sck-socket-event.control-model.js","sourceRoot":"","sources":["../../../../src/_modules/socket/_models/sck-socket-event.control-model.ts"],"names":[],"mappings":";;;AACA,iGAA6F;AAC7F,uEAAoE;AACpE,mEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"sck-socket-event.control-model.js","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,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC;YAED,MAAM,uBAAU,CAAC,YAAY,CAC3B,IAAI,CAAC,YAAY,EACjB,KAAK,EAAE,UAAoD,EAAE,EAAE;gBAC7D,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC,CACF,CAAC;YAEF,MAAM,uBAAU,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAA6B,EAAE,EAAE;gBAChF,MAAM,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,gCAAU,EAAE,CAAC;gBAChC,KAAK,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC;YACzD,CAAC;iBAAM,CAAC;gBACN,mBAAQ,CAAC,KAAK,CACZ,2CAA2C,IAAI,CAAC,WAAW,SAAS,IAAI,CAAC,QAAQ,GAAG,EACpF,KAAK,EACL,UAAU,EACV,OAAO,CACR,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA5ID,4CA4IC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "01.10.
|
|
3
|
+
"version": "01.10.50",
|
|
4
4
|
"description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
|
|
5
5
|
"DyBu_settings": {
|
|
6
6
|
"packageType": "full-stack-package",
|
|
@@ -5,11 +5,11 @@ import { DyFM_Log } from './log.util';
|
|
|
5
5
|
* use it in the constructor of a class to get the stack location of the constructor call
|
|
6
6
|
* @returns The stack location of the constructor call
|
|
7
7
|
*/
|
|
8
|
-
export function
|
|
8
|
+
export function DyFM_getConstructionStackLocation(level: number = 0): string {
|
|
9
9
|
let stack: string = new Error().stack;
|
|
10
10
|
|
|
11
11
|
// Split the stack into lines and remove the first line (Error:)
|
|
12
|
-
|
|
12
|
+
let stackLines = stack?.split('\n')?.slice(1);
|
|
13
13
|
|
|
14
14
|
// Find the line that contains the constructor call
|
|
15
15
|
// It will be the FIRST line that doesn't contain 'getStackLocation'
|
|
@@ -17,6 +17,22 @@ export function DyFM_getStackLocation(): string {
|
|
|
17
17
|
!line.includes('getStackLocation') &&
|
|
18
18
|
!line.includes('new')
|
|
19
19
|
);
|
|
20
|
+
|
|
21
|
+
if (level) {
|
|
22
|
+
if (isNaN(level)) {
|
|
23
|
+
throw new Error('level must be a number');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
while (level) {
|
|
27
|
+
stackLines = stackLines?.filter(line => line !== constructorLine);
|
|
28
|
+
level--;
|
|
29
|
+
constructorLine = stackLines?.find(line =>
|
|
30
|
+
!line.includes('getStackLocation') &&
|
|
31
|
+
!line.includes('new')
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
if (!constructorLine) {
|
|
21
37
|
let constructorLine: string | undefined = stack?.split(' at ')?.find(line =>
|
|
22
38
|
!line.includes('getStackLocation') &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DyFM_Log } from '../../_collections/utils/log.util';
|
|
2
|
-
import {
|
|
2
|
+
import { DyFM_getConstructionStackLocation } from '../../_collections/utils/stack.util';
|
|
3
3
|
import { DyFM_BasicProperty_Type } from '../../_enums/basic-property-type.enum';
|
|
4
4
|
import { DyFM_DataModel_Type } from '../../_enums/data-model-type.enum';
|
|
5
5
|
import { DyFM_Metadata } from '../data-models/metadata.data-model';
|
|
@@ -49,7 +49,7 @@ export class DyFM_DataModel_Params<T extends DyFM_Metadata> extends DyFM_DataMod
|
|
|
49
49
|
Object.assign(this, set);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
this.stackLocation =
|
|
52
|
+
this.stackLocation = DyFM_getConstructionStackLocation();
|
|
53
53
|
|
|
54
54
|
if (!this.properties || typeof this.properties !== 'object') {
|
|
55
55
|
DyFM_Log.error(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DyFM_Log } from '../../_collections/utils/log.util';
|
|
2
|
-
import {
|
|
2
|
+
import { DyFM_getConstructionStackLocation } from '../../_collections/utils/stack.util';
|
|
3
3
|
import { DyFM_BasicProperty_Type } from '../../_enums/basic-property-type.enum';
|
|
4
4
|
import { DyFM_OpenAIModel } from '../../_modules/open-ai/_enums/open-ai-model.enum';
|
|
5
5
|
|
|
@@ -74,7 +74,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
|
|
|
74
74
|
'DYNAMO ERROR: ',
|
|
75
75
|
'\n type is missing from DynamoBEDataPropertyParams ' +
|
|
76
76
|
`key: "${set.key}"` +
|
|
77
|
-
`\n stackLocation: ${
|
|
77
|
+
`\n stackLocation: ${DyFM_getConstructionStackLocation(1)}`
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -84,7 +84,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
|
|
|
84
84
|
'DYNAMO WARNING: ',
|
|
85
85
|
'\n required is not recommended to be false if dependency is set ' +
|
|
86
86
|
`key: "${set.key}"` +
|
|
87
|
-
`\n stackLocation: ${
|
|
87
|
+
`\n stackLocation: ${DyFM_getConstructionStackLocation(1)}`
|
|
88
88
|
);
|
|
89
89
|
} else if (set.required === undefined) {
|
|
90
90
|
DyFM_Log.warn(
|
|
@@ -92,7 +92,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
|
|
|
92
92
|
'\n required is recommended to be set if dependency is set. ' +
|
|
93
93
|
`It will be set to true by while you are not setting it. ` +
|
|
94
94
|
`key: "${set.key}"` +
|
|
95
|
-
`\n stackLocation: ${
|
|
95
|
+
`\n stackLocation: ${DyFM_getConstructionStackLocation(1)}`
|
|
96
96
|
);
|
|
97
97
|
set.required = true;
|
|
98
98
|
}
|
|
@@ -105,7 +105,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
|
|
|
105
105
|
'\n vectorizedFrom and index are not recommended to be set at the same time. ' +
|
|
106
106
|
`It will be set to false by while you are not setting it. ` +
|
|
107
107
|
`key: "${set.key}"` +
|
|
108
|
-
`\n stackLocation: ${
|
|
108
|
+
`\n stackLocation: ${DyFM_getConstructionStackLocation(1)}`
|
|
109
109
|
);
|
|
110
110
|
set.index = false;
|
|
111
111
|
}
|
|
@@ -114,7 +114,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
|
|
|
114
114
|
throw new Error(
|
|
115
115
|
'vectorizeUseIndex is required if vectorizedFrom is set. ' +
|
|
116
116
|
`"${this.key}" property.` +
|
|
117
|
-
`\n stackLocation: ${
|
|
117
|
+
`\n stackLocation: ${DyFM_getConstructionStackLocation(1)}`
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -125,7 +125,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
|
|
|
125
125
|
'DYNAMO ERROR: ',
|
|
126
126
|
'\nMISSING DynamoBEDataPropertyParams constructor input ' +
|
|
127
127
|
`key: "${this.key}"` +
|
|
128
|
-
`\n stackLocation: ${
|
|
128
|
+
`\n stackLocation: ${DyFM_getConstructionStackLocation(1)}`
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyFM_getConstructionStackLocation } from '../../_collections/utils/stack.util';
|
|
2
2
|
import { DyFM_HttpCallType } from '../../_enums/http/http-call-type.enum';
|
|
3
3
|
|
|
4
4
|
/* class Flow {
|
|
@@ -40,7 +40,7 @@ export class DyFM_Endpoint_SettingsBase<T_Result, I_Inputs, T_Body> {
|
|
|
40
40
|
) {
|
|
41
41
|
if (!set.endpoint) {
|
|
42
42
|
throw new Error(
|
|
43
|
-
`endpoint not setted up for this endpoint (${set.name ??
|
|
43
|
+
`endpoint not setted up for this endpoint (${set.name ?? DyFM_getConstructionStackLocation()})`
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -18,7 +18,11 @@ import { DyFM_PipeTransforms } from '../_models/pip-transforms.interface';
|
|
|
18
18
|
import { DyFM_Pipe } from '../_enums/pip.enum';
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* This is the main object that contains all the pipe transforms
|
|
23
|
+
*
|
|
24
|
+
* @see {@link DyFM_PipeTransforms}
|
|
25
|
+
*/
|
|
22
26
|
export const DyFM_pipeTransforms: DyFM_PipeTransforms = {
|
|
23
27
|
[DyFM_Pipe.country]: DyFM_country_pipeTransform,
|
|
24
28
|
[DyFM_Pipe.custom]: DyFM_custom_pipeTransform,
|
|
@@ -8,7 +8,30 @@
|
|
|
8
8
|
import { DyFM_CountryISO } from '../../../location/_models/loc-country-iso.interface';
|
|
9
9
|
import { DyFM_countryISOs } from '../../../location/_collections/loc-country-isos.const';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param countryISO - country ISO code
|
|
14
|
+
* @returns country name
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
* {{ 'US' | country }}
|
|
20
|
+
* ```
|
|
21
|
+
* will return `United States`
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* ```html
|
|
25
|
+
* {{ 'DE' | country }}
|
|
26
|
+
* ```
|
|
27
|
+
* will return `Germany`
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
* ```html
|
|
31
|
+
* {{ 'ZZ' | country }}
|
|
32
|
+
* ```
|
|
33
|
+
* will return `ZZ`
|
|
34
|
+
*/
|
|
12
35
|
export function DyFM_country_pipeTransform(countryISO: string): string {
|
|
13
36
|
const result = DyFM_countryISOs.find(
|
|
14
37
|
(iso: DyFM_CountryISO): boolean => iso.iso2 === countryISO
|
|
@@ -3,7 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This is a helper function to create custom pipes
|
|
8
|
+
* you can use it to create custom pipes within the same component
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* ```html
|
|
13
|
+
* {{ 'Hello' | custom: (value) => value.toUpperCase() }}
|
|
14
|
+
* ```
|
|
15
|
+
* will return `HELLO`
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
* {{ 'Hello' | custom: (value, ...args) => value.toUpperCase() }}
|
|
20
|
+
* ```
|
|
21
|
+
* will return `HELLO`
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export function DyFM_custom_pipeTransform<T, K>(
|
|
26
|
+
value: T,
|
|
27
|
+
customTransform: (input: T, ...args: any[]
|
|
28
|
+
) => K, ...args: any[]): K {
|
|
29
|
+
return customTransform(value, ...args);
|
|
9
30
|
}
|
|
@@ -11,6 +11,22 @@
|
|
|
11
11
|
import { DyFM_CountryDivision } from '../../../location/_models/loc-country-division.interface';
|
|
12
12
|
import { DyFM_countryDivisions } from '../../../location/_collections/loc-country-divisions.const';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* This pipe will return the division name for a given division code and country ISO
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```html
|
|
20
|
+
* {{ 'US-CA' | division: 'US' }}
|
|
21
|
+
* ```
|
|
22
|
+
* will return `California`
|
|
23
|
+
*
|
|
24
|
+
* ```html
|
|
25
|
+
* {{ 'DE-BE' | division: 'DE' }}
|
|
26
|
+
* ```
|
|
27
|
+
* will return `Berlin`
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
14
30
|
export function DyFM_division_pipeTransform(divisionCode: string, countryISO: string): string {
|
|
15
31
|
const result: string = DyFM_countryDivisions?.find(
|
|
16
32
|
(d: DyFM_CountryDivision): boolean => d?.code === divisionCode && d?.iso === countryISO
|
|
@@ -4,7 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* This pipe will return a string of the array values separated by a comma
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* ```html
|
|
13
|
+
* {{ [1, 2, 3] | list }}
|
|
14
|
+
* ```
|
|
15
|
+
* will return `1, 2, 3`
|
|
16
|
+
*
|
|
17
|
+
* ```html
|
|
18
|
+
* {{ ['a', 'b', 'c'] | list }}
|
|
19
|
+
* ```
|
|
20
|
+
* will return `a, b, c`
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
8
23
|
export function DyFM_list_pipeTransform(value: any[]): string {
|
|
9
24
|
return value.toString().replace(/,/g, ', ');
|
|
10
25
|
}
|