@futdevpro/fsm-dynamo 1.10.49 → 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.
Files changed (63) hide show
  1. package/build/_modules/pipe/_collections/pip-transforms.const.d.ts +5 -0
  2. package/build/_modules/pipe/_collections/pip-transforms.const.d.ts.map +1 -1
  3. package/build/_modules/pipe/_collections/pip-transforms.const.js +5 -0
  4. package/build/_modules/pipe/_collections/pip-transforms.const.js.map +1 -1
  5. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.d.ts +24 -0
  6. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.d.ts.map +1 -1
  7. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.js +24 -0
  8. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.js.map +1 -1
  9. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.d.ts +20 -1
  10. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.d.ts.map +1 -1
  11. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.js +21 -2
  12. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.js.map +1 -1
  13. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.d.ts +16 -0
  14. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.d.ts.map +1 -1
  15. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.js +16 -0
  16. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.js.map +1 -1
  17. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.d.ts +16 -0
  18. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.d.ts.map +1 -1
  19. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.js +16 -0
  20. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.js.map +1 -1
  21. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.d.ts +53 -0
  22. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.d.ts.map +1 -1
  23. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.js +53 -0
  24. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.js.map +1 -1
  25. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.d.ts +13 -0
  26. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.d.ts.map +1 -1
  27. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.js +13 -0
  28. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.js.map +1 -1
  29. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.d.ts +12 -0
  30. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.d.ts.map +1 -1
  31. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.js +12 -0
  32. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.js.map +1 -1
  33. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.d.ts +17 -0
  34. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.d.ts.map +1 -1
  35. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.js +17 -0
  36. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.js.map +1 -1
  37. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.d.ts +12 -0
  38. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.d.ts.map +1 -1
  39. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.js +12 -0
  40. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.js.map +1 -1
  41. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.d.ts +14 -0
  42. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.d.ts.map +1 -1
  43. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.js +14 -0
  44. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.js.map +1 -1
  45. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.d.ts +9 -1
  46. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.d.ts.map +1 -1
  47. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.js +9 -1
  48. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.js.map +1 -1
  49. package/futdevpro-fsm-dynamo-01.10.50.tgz +0 -0
  50. package/package.json +1 -1
  51. package/src/_modules/pipe/_collections/pip-transforms.const.ts +5 -1
  52. package/src/_modules/pipe/_collections/utils/pip-country-pipe.util.ts +24 -1
  53. package/src/_modules/pipe/_collections/utils/pip-custom-pipe.util.ts +24 -3
  54. package/src/_modules/pipe/_collections/utils/pip-division-pipe.util.ts +16 -0
  55. package/src/_modules/pipe/_collections/utils/pip-list-pipe.util.ts +16 -1
  56. package/src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.ts +53 -0
  57. package/src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.ts +13 -1
  58. package/src/_modules/pipe/_collections/utils/pip-range-pipe.util.ts +12 -0
  59. package/src/_modules/pipe/_collections/utils/pip-region-pipe.util.ts +17 -0
  60. package/src/_modules/pipe/_collections/utils/pip-replace-pipe.util.ts +12 -0
  61. package/src/_modules/pipe/_collections/utils/pip-slider-pipe.util.ts +14 -0
  62. package/src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.ts +9 -1
  63. package/futdevpro-fsm-dynamo-01.10.49.tgz +0 -0
@@ -1,3 +1,8 @@
1
1
  import { DyFM_PipeTransforms } from '../_models/pip-transforms.interface';
2
+ /**
3
+ * This is the main object that contains all the pipe transforms
4
+ *
5
+ * @see {@link DyFM_PipeTransforms}
6
+ */
2
7
  export declare const DyFM_pipeTransforms: DyFM_PipeTransforms;
3
8
  //# sourceMappingURL=pip-transforms.const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-transforms.const.d.ts","sourceRoot":"","sources":["../../../../src/_modules/pipe/_collections/pip-transforms.const.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAK1E,eAAO,MAAM,mBAAmB,EAAE,mBAYjC,CAAC"}
1
+ {"version":3,"file":"pip-transforms.const.d.ts","sourceRoot":"","sources":["../../../../src/_modules/pipe/_collections/pip-transforms.const.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI1E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAYjC,CAAC"}
@@ -13,6 +13,11 @@ const pip_replace_pipe_util_1 = require("./utils/pip-replace-pipe.util");
13
13
  const pip_slider_pipe_util_1 = require("./utils/pip-slider-pipe.util");
14
14
  const pip_smart_replace_pipe_util_1 = require("./utils/pip-smart-replace-pipe.util");
15
15
  const pip_enum_1 = require("../_enums/pip.enum");
16
+ /**
17
+ * This is the main object that contains all the pipe transforms
18
+ *
19
+ * @see {@link DyFM_PipeTransforms}
20
+ */
16
21
  exports.DyFM_pipeTransforms = {
17
22
  [pip_enum_1.DyFM_Pipe.country]: pip_country_pipe_util_1.DyFM_country_pipeTransform,
18
23
  [pip_enum_1.DyFM_Pipe.custom]: pip_custom_pipe_util_1.DyFM_custom_pipeTransform,
@@ -1 +1 @@
1
- {"version":3,"file":"pip-transforms.const.js","sourceRoot":"","sources":["../../../../src/_modules/pipe/_collections/pip-transforms.const.ts"],"names":[],"mappings":";;;AAIA,yEAA2E;AAC3E,uEAAyE;AACzE,2EAA6E;AAC7E,mEAAqE;AACrE,+EAAgF;AAChF,yEAA0E;AAC1E,qEAAuE;AACvE,uEAAyE;AACzE,yEAA2E;AAC3E,uEAAyE;AACzE,qFAAsF;AAGtF,iDAA+C;AAIlC,QAAA,mBAAmB,GAAwB;IACtD,CAAC,oBAAS,CAAC,OAAO,CAAC,EAAE,kDAA0B;IAC/C,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,gDAAyB;IAC7C,CAAC,oBAAS,CAAC,QAAQ,CAAC,EAAE,oDAA2B;IACjD,CAAC,oBAAS,CAAC,IAAI,CAAC,EAAE,4CAAuB;IACzC,CAAC,oBAAS,CAAC,SAAS,CAAC,EAAE,uDAA4B;IACnD,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,iDAAyB;IAC7C,CAAC,oBAAS,CAAC,KAAK,CAAC,EAAE,8CAAwB;IAC3C,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,gDAAyB;IAC7C,CAAC,oBAAS,CAAC,OAAO,CAAC,EAAE,kDAA0B;IAC/C,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,gDAAyB;IAC7C,CAAC,oBAAS,CAAC,YAAY,CAAC,EAAE,6DAA+B;CAC1D,CAAC"}
1
+ {"version":3,"file":"pip-transforms.const.js","sourceRoot":"","sources":["../../../../src/_modules/pipe/_collections/pip-transforms.const.ts"],"names":[],"mappings":";;;AAIA,yEAA2E;AAC3E,uEAAyE;AACzE,2EAA6E;AAC7E,mEAAqE;AACrE,+EAAgF;AAChF,yEAA0E;AAC1E,qEAAuE;AACvE,uEAAyE;AACzE,yEAA2E;AAC3E,uEAAyE;AACzE,qFAAsF;AAGtF,iDAA+C;AAG/C;;;;GAIG;AACU,QAAA,mBAAmB,GAAwB;IACtD,CAAC,oBAAS,CAAC,OAAO,CAAC,EAAE,kDAA0B;IAC/C,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,gDAAyB;IAC7C,CAAC,oBAAS,CAAC,QAAQ,CAAC,EAAE,oDAA2B;IACjD,CAAC,oBAAS,CAAC,IAAI,CAAC,EAAE,4CAAuB;IACzC,CAAC,oBAAS,CAAC,SAAS,CAAC,EAAE,uDAA4B;IACnD,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,iDAAyB;IAC7C,CAAC,oBAAS,CAAC,KAAK,CAAC,EAAE,8CAAwB;IAC3C,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,gDAAyB;IAC7C,CAAC,oBAAS,CAAC,OAAO,CAAC,EAAE,kDAA0B;IAC/C,CAAC,oBAAS,CAAC,MAAM,CAAC,EAAE,gDAAyB;IAC7C,CAAC,oBAAS,CAAC,YAAY,CAAC,EAAE,6DAA+B;CAC1D,CAAC"}
@@ -1,2 +1,26 @@
1
+ /**
2
+ *
3
+ * @param countryISO - country ISO code
4
+ * @returns country name
5
+ *
6
+ * @example
7
+ *
8
+ * ```html
9
+ * {{ 'US' | country }}
10
+ * ```
11
+ * will return `United States`
12
+ *
13
+ *
14
+ * ```html
15
+ * {{ 'DE' | country }}
16
+ * ```
17
+ * will return `Germany`
18
+ *
19
+ *
20
+ * ```html
21
+ * {{ 'ZZ' | country }}
22
+ * ```
23
+ * will return `ZZ`
24
+ */
1
25
  export declare function DyFM_country_pipeTransform(countryISO: string): string;
2
26
  //# sourceMappingURL=pip-country-pipe.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-country-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-country-pipe.util.ts"],"names":[],"mappings":"AAWA,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAMrE"}
1
+ {"version":3,"file":"pip-country-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-country-pipe.util.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAMrE"}
@@ -2,6 +2,30 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DyFM_country_pipeTransform = void 0;
4
4
  const loc_country_isos_const_1 = require("../../../location/_collections/loc-country-isos.const");
5
+ /**
6
+ *
7
+ * @param countryISO - country ISO code
8
+ * @returns country name
9
+ *
10
+ * @example
11
+ *
12
+ * ```html
13
+ * {{ 'US' | country }}
14
+ * ```
15
+ * will return `United States`
16
+ *
17
+ *
18
+ * ```html
19
+ * {{ 'DE' | country }}
20
+ * ```
21
+ * will return `Germany`
22
+ *
23
+ *
24
+ * ```html
25
+ * {{ 'ZZ' | country }}
26
+ * ```
27
+ * will return `ZZ`
28
+ */
5
29
  function DyFM_country_pipeTransform(countryISO) {
6
30
  const result = loc_country_isos_const_1.DyFM_countryISOs.find((iso) => iso.iso2 === countryISO)?.name;
7
31
  return result ?? countryISO;
@@ -1 +1 @@
1
- {"version":3,"file":"pip-country-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-country-pipe.util.ts"],"names":[],"mappings":";;;AAQA,kGAAyF;AAGzF,SAAgB,0BAA0B,CAAC,UAAkB;IAC3D,MAAM,MAAM,GAAG,yCAAgB,CAAC,IAAI,CAClC,CAAC,GAAoB,EAAW,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,UAAU,CAC3D,EAAE,IAAI,CAAC;IAER,OAAO,MAAM,IAAI,UAAU,CAAC;AAC9B,CAAC;AAND,gEAMC"}
1
+ {"version":3,"file":"pip-country-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-country-pipe.util.ts"],"names":[],"mappings":";;;AAQA,kGAAyF;AAEzF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,0BAA0B,CAAC,UAAkB;IAC3D,MAAM,MAAM,GAAG,yCAAgB,CAAC,IAAI,CAClC,CAAC,GAAoB,EAAW,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,UAAU,CAC3D,EAAE,IAAI,CAAC;IAER,OAAO,MAAM,IAAI,UAAU,CAAC;AAC9B,CAAC;AAND,gEAMC"}
@@ -1,2 +1,21 @@
1
- export declare function DyFM_custom_pipeTransform<T, K>(value: T, customTransform: (input: T) => K): K;
1
+ /**
2
+ * This is a helper function to create custom pipes
3
+ * you can use it to create custom pipes within the same component
4
+ *
5
+ * @example
6
+ *
7
+ * ```html
8
+ * {{ 'Hello' | custom: (value) => value.toUpperCase() }}
9
+ * ```
10
+ * will return `HELLO`
11
+ *
12
+ *
13
+ * ```html
14
+ * {{ 'Hello' | custom: (value, ...args) => value.toUpperCase() }}
15
+ * ```
16
+ * will return `HELLO`
17
+ *
18
+ *
19
+ */
20
+ export declare function DyFM_custom_pipeTransform<T, K>(value: T, customTransform: (input: T, ...args: any[]) => K, ...args: any[]): K;
2
21
  //# sourceMappingURL=pip-custom-pipe.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-custom-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-custom-pipe.util.ts"],"names":[],"mappings":"AAMA,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAE7F"}
1
+ {"version":3,"file":"pip-custom-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-custom-pipe.util.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,CAAC,EAC5C,KAAK,EAAE,CAAC,EACR,eAAe,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KACvC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAEzB"}
@@ -1,8 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DyFM_custom_pipeTransform = void 0;
4
- function DyFM_custom_pipeTransform(value, customTransform) {
5
- return customTransform(value);
4
+ /**
5
+ * This is a helper function to create custom pipes
6
+ * you can use it to create custom pipes within the same component
7
+ *
8
+ * @example
9
+ *
10
+ * ```html
11
+ * {{ 'Hello' | custom: (value) => value.toUpperCase() }}
12
+ * ```
13
+ * will return `HELLO`
14
+ *
15
+ *
16
+ * ```html
17
+ * {{ 'Hello' | custom: (value, ...args) => value.toUpperCase() }}
18
+ * ```
19
+ * will return `HELLO`
20
+ *
21
+ *
22
+ */
23
+ function DyFM_custom_pipeTransform(value, customTransform, ...args) {
24
+ return customTransform(value, ...args);
6
25
  }
7
26
  exports.DyFM_custom_pipeTransform = DyFM_custom_pipeTransform;
8
27
  //# sourceMappingURL=pip-custom-pipe.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-custom-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-custom-pipe.util.ts"],"names":[],"mappings":";;;AAMA,SAAgB,yBAAyB,CAAO,KAAQ,EAAE,eAAgC;IACxF,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC;AAFD,8DAEC"}
1
+ {"version":3,"file":"pip-custom-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-custom-pipe.util.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,yBAAyB,CACvC,KAAQ,EACR,eACI,EAAE,GAAG,IAAW;IACpB,OAAO,eAAe,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;AACzC,CAAC;AALD,8DAKC"}
@@ -1,2 +1,18 @@
1
+ /**
2
+ * This pipe will return the division name for a given division code and country ISO
3
+ *
4
+ * @example
5
+ *
6
+ * ```html
7
+ * {{ 'US-CA' | division: 'US' }}
8
+ * ```
9
+ * will return `California`
10
+ *
11
+ * ```html
12
+ * {{ 'DE-BE' | division: 'DE' }}
13
+ * ```
14
+ * will return `Berlin`
15
+ *
16
+ */
1
17
  export declare function DyFM_division_pipeTransform(divisionCode: string, countryISO: string): string;
2
18
  //# sourceMappingURL=pip-division-pipe.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-division-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-division-pipe.util.ts"],"names":[],"mappings":"AAaA,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAM5F"}
1
+ {"version":3,"file":"pip-division-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-division-pipe.util.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAM5F"}
@@ -2,6 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DyFM_division_pipeTransform = void 0;
4
4
  const loc_country_divisions_const_1 = require("../../../location/_collections/loc-country-divisions.const");
5
+ /**
6
+ * This pipe will return the division name for a given division code and country ISO
7
+ *
8
+ * @example
9
+ *
10
+ * ```html
11
+ * {{ 'US-CA' | division: 'US' }}
12
+ * ```
13
+ * will return `California`
14
+ *
15
+ * ```html
16
+ * {{ 'DE-BE' | division: 'DE' }}
17
+ * ```
18
+ * will return `Berlin`
19
+ *
20
+ */
5
21
  function DyFM_division_pipeTransform(divisionCode, countryISO) {
6
22
  const result = loc_country_divisions_const_1.DyFM_countryDivisions?.find((d) => d?.code === divisionCode && d?.iso === countryISO)?.name;
7
23
  return result ?? divisionCode;
@@ -1 +1 @@
1
- {"version":3,"file":"pip-division-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-division-pipe.util.ts"],"names":[],"mappings":";;;AAWA,4GAAmG;AAEnG,SAAgB,2BAA2B,CAAC,YAAoB,EAAE,UAAkB;IAClF,MAAM,MAAM,GAAW,mDAAqB,EAAE,IAAI,CAChD,CAAC,CAAuB,EAAW,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,YAAY,IAAI,CAAC,EAAE,GAAG,KAAK,UAAU,CACxF,EAAE,IAAI,CAAC;IAER,OAAO,MAAM,IAAI,YAAY,CAAC;AAChC,CAAC;AAND,kEAMC"}
1
+ {"version":3,"file":"pip-division-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-division-pipe.util.ts"],"names":[],"mappings":";;;AAWA,4GAAmG;AAEnG;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,2BAA2B,CAAC,YAAoB,EAAE,UAAkB;IAClF,MAAM,MAAM,GAAW,mDAAqB,EAAE,IAAI,CAChD,CAAC,CAAuB,EAAW,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,YAAY,IAAI,CAAC,EAAE,GAAG,KAAK,UAAU,CACxF,EAAE,IAAI,CAAC;IAER,OAAO,MAAM,IAAI,YAAY,CAAC;AAChC,CAAC;AAND,kEAMC"}
@@ -1,2 +1,18 @@
1
+ /**
2
+ * This pipe will return a string of the array values separated by a comma
3
+ *
4
+ * @example
5
+ *
6
+ * ```html
7
+ * {{ [1, 2, 3] | list }}
8
+ * ```
9
+ * will return `1, 2, 3`
10
+ *
11
+ * ```html
12
+ * {{ ['a', 'b', 'c'] | list }}
13
+ * ```
14
+ * will return `a, b, c`
15
+ *
16
+ */
1
17
  export declare function DyFM_list_pipeTransform(value: any[]): string;
2
18
  //# sourceMappingURL=pip-list-pipe.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-list-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-list-pipe.util.ts"],"names":[],"mappings":"AAOA,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,CAE5D"}
1
+ {"version":3,"file":"pip-list-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-list-pipe.util.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,CAE5D"}
@@ -1,6 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DyFM_list_pipeTransform = void 0;
4
+ /**
5
+ * This pipe will return a string of the array values separated by a comma
6
+ *
7
+ * @example
8
+ *
9
+ * ```html
10
+ * {{ [1, 2, 3] | list }}
11
+ * ```
12
+ * will return `1, 2, 3`
13
+ *
14
+ * ```html
15
+ * {{ ['a', 'b', 'c'] | list }}
16
+ * ```
17
+ * will return `a, b, c`
18
+ *
19
+ */
4
20
  function DyFM_list_pipeTransform(value) {
5
21
  return value.toString().replace(/,/g, ', ');
6
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pip-list-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-list-pipe.util.ts"],"names":[],"mappings":";;;AAOA,SAAgB,uBAAuB,CAAC,KAAY;IAClD,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC;AAFD,0DAEC"}
1
+ {"version":3,"file":"pip-list-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-list-pipe.util.ts"],"names":[],"mappings":";;;AAMA;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,uBAAuB,CAAC,KAAY;IAClD,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC;AAFD,0DAEC"}
@@ -5,5 +5,58 @@ export type DyFM_MultiPipeAngularPipes = {
5
5
  [pipeName in DyFM_AngularMultiPipeAvailable]: (value: string, ...args: unknown[]) => string;
6
6
  };
7
7
  export declare const DyFM_multiPipeAngularPipes: DyFM_MultiPipeAngularPipes;
8
+ /**
9
+ * This pipe makes you able to use multiple pipes in one pipe
10
+ *
11
+ * The pipes that are available are:
12
+ * - country
13
+ * - custom
14
+ * - division
15
+ * - list
16
+ * - multiPipe
17
+ * - objKey
18
+ * - range
19
+ * - region
20
+ * - replace
21
+ * - slider
22
+ * - smartReplace
23
+ *
24
+ * The angular pipes that are available are:
25
+ * - currency
26
+ * - date
27
+ * - decimal
28
+ * - number
29
+ * - percent
30
+ *
31
+ * (The custom pipe is basically usable for anything,
32
+ * you you even can create your own, combining multiple pipes)
33
+ *
34
+ * @example
35
+ *
36
+ * ```html
37
+ * {{ 1000.123 | multiPipe: [
38
+ * { currency: [ 'USD' ] },
39
+ * { number: [ '1.0-1' ] },
40
+ * ] }}
41
+ * ```
42
+ * will return `1,000.1`
43
+ *
44
+ * ```html
45
+ * {{ { from: 1.321, to: 10.123 } | multiPipe: [
46
+ * { range: [ 'from-to' ] },
47
+ * { number: [ '1.0-1' ] },
48
+ * ] }}
49
+ * ```
50
+ * will return `1.3 - 10.1`
51
+ *
52
+ * ```html
53
+ * {{ 1000.123 | multiPipe: [
54
+ * { range: [ 'from-to' ] },
55
+ * { currency: [ 'EUR', 'symbol', '1.0-0' ] },
56
+ * { replace: [ ',', ' ' ] },
57
+ * ] }}
58
+ * ```
59
+ * will return `€1 000`
60
+ */
8
61
  export declare function DyFM_multiPipe_pipeTransform(value: unknown, pipes: DyFM_MultiPipe_Setting[]): string | number | DyFM_RangeValue | any;
9
62
  //# sourceMappingURL=pip-multi-pipe-pipe.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pip-multi-pipe-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EAC6C,8BAA8B,EAEjF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAIpF,MAAM,MAAM,0BAA0B,GAAG;KACtC,QAAQ,IAAI,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM;CAC5F,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,0BAMxC,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,GAC9C,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,GAAG,CAwFzC"}
1
+ {"version":3,"file":"pip-multi-pipe-pipe.util.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EAC6C,8BAA8B,EAEjF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAIpF,MAAM,MAAM,0BAA0B,GAAG;KACtC,QAAQ,IAAI,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM;CAC5F,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,0BAMxC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,GAC9C,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,GAAG,CAwFzC"}
@@ -10,6 +10,59 @@ exports.DyFM_multiPipeAngularPipes = {
10
10
  [pip_enum_1.DyFM_AngularMultiPipeAvailable.number]: null,
11
11
  [pip_enum_1.DyFM_AngularMultiPipeAvailable.percent]: null,
12
12
  };
13
+ /**
14
+ * This pipe makes you able to use multiple pipes in one pipe
15
+ *
16
+ * The pipes that are available are:
17
+ * - country
18
+ * - custom
19
+ * - division
20
+ * - list
21
+ * - multiPipe
22
+ * - objKey
23
+ * - range
24
+ * - region
25
+ * - replace
26
+ * - slider
27
+ * - smartReplace
28
+ *
29
+ * The angular pipes that are available are:
30
+ * - currency
31
+ * - date
32
+ * - decimal
33
+ * - number
34
+ * - percent
35
+ *
36
+ * (The custom pipe is basically usable for anything,
37
+ * you you even can create your own, combining multiple pipes)
38
+ *
39
+ * @example
40
+ *
41
+ * ```html
42
+ * {{ 1000.123 | multiPipe: [
43
+ * { currency: [ 'USD' ] },
44
+ * { number: [ '1.0-1' ] },
45
+ * ] }}
46
+ * ```
47
+ * will return `1,000.1`
48
+ *
49
+ * ```html
50
+ * {{ { from: 1.321, to: 10.123 } | multiPipe: [
51
+ * { range: [ 'from-to' ] },
52
+ * { number: [ '1.0-1' ] },
53
+ * ] }}
54
+ * ```
55
+ * will return `1.3 - 10.1`
56
+ *
57
+ * ```html
58
+ * {{ 1000.123 | multiPipe: [
59
+ * { range: [ 'from-to' ] },
60
+ * { currency: [ 'EUR', 'symbol', '1.0-0' ] },
61
+ * { replace: [ ',', ' ' ] },
62
+ * ] }}
63
+ * ```
64
+ * will return `€1 000`
65
+ */
13
66
  function DyFM_multiPipe_pipeTransform(value, pipes) {
14
67
  try {
15
68
  /* console.log(
@@ -1 +1 @@
1
- {"version":3,"file":"pip-multi-pipe-pipe.util.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.ts"],"names":[],"mappings":";;;AAQA,oDAG+B;AAE/B,kEAA8D;AAOjD,QAAA,0BAA0B,GAA+B;IACpE,CAAC,yCAA8B,CAAC,QAAQ,CAAC,EAAE,IAAI;IAC/C,CAAC,yCAA8B,CAAC,IAAI,CAAC,EAAE,IAAI;IAC3C,CAAC,yCAA8B,CAAC,OAAO,CAAC,EAAE,IAAI;IAC9C,CAAC,yCAA8B,CAAC,MAAM,CAAC,EAAE,IAAI;IAC7C,CAAC,yCAA8B,CAAC,OAAO,CAAC,EAAE,IAAI;CAC/C,CAAC;AAEF,SAAgB,4BAA4B,CAC1C,KAAc,EAAE,KAA+B;IAE/C,IAAI,CAAC;QACH;;;;aAIK;QAEL,UAAU,CAAC,KAAK,CAAC,CAAC;QAElB,uDAAuD;QAEvD,KAAK,IAAI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wBACL,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAA8B,GAAG,mBAAmB,CAAC;oBACxE,CAAC;oBACD,MAAM;gBAER;oBACE,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,2 +1,15 @@
1
+ /**
2
+ * This pipe will return the keys of an object
3
+ * (it will return an empty array if the object is empty)
4
+ * (This can be used in multiPipe, all datas from objects)
5
+ *
6
+ * @example
7
+ *
8
+ * ```html
9
+ * {{ { a: 1, b: 2, c: 3 } | objKey }}
10
+ * ```
11
+ * will return `['a', 'b', 'c']`
12
+ *
13
+ */
1
14
  export declare function DyFM_objKey_pipeTransform<Obj_T>(value: Obj_T): string[];
2
15
  //# sourceMappingURL=pip-obj-key-pipe.util.d.ts.map
@@ -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":"AAMA,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAEvE"}
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":";;;AAMA,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
+ {"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"],"names":[],"mappings":";;;AAOA,0FAAkF;AAGlF,yEAA0E;AAE1E,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,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAErC,KAAK,oDAAsB,CAAC,GAAG,CAAC;QAChC,KAAK,oDAAsB,CAAC,IAAI;YAC9B,OAAO,KAAK,CAAC,IAAI,CAAC;QAEpB,KAAK,oDAAsB,CAAC,GAAG,CAAC;QAChC,KAAK,oDAAsB,CAAC,EAAE;YAC5B,OAAO,KAAK,CAAC,EAAE,CAAC;QAElB,KAAK,oDAAsB,CAAC,IAAI,CAAC;QACjC,KAAK,oDAAsB,CAAC,MAAM;YAChC,IAAI,CAAC,GAAG,UAAU,EAAE,MAAM,EAAE,CAAC;gBAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE,EAAE,CAAC;oBAC5B,OAAO,IAAA,uDAA4B,EAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC9D,CAAC;qBAAM,CAAC;oBACN,OAAO,IAAA,uDAA4B,EAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC;wBACzD,KAAK;wBACL,IAAA,uDAA4B,EAAC,KAAK,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;gBACvD,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,GAAG,KAAK,CAAC,IAAI,MAAM,KAAK,CAAC,EAAE,EAAE,CAAC;YACvC,CAAC;QAEH;YACE,OAAO,KAAK,CAAC;IACjB,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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ChD,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,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
- * Replaces the keys from the replacer with the values from the replacer object.
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;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,sBAAsB,EAAE,GACrE,MAAM,CAsDR"}
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
- * Replaces the keys from the replacer with the values from the replacer object.
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;;GAEG;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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/fsm-dynamo",
3
- "version": "01.10.49",
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",
@@ -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
- export function DyFM_custom_pipeTransform<T, K>(value: T, customTransform: (input: T) => K): K {
8
- return customTransform(value);
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
  }
@@ -26,6 +26,59 @@ export const DyFM_multiPipeAngularPipes: DyFM_MultiPipeAngularPipes = {
26
26
  [DyFM_AngularMultiPipeAvailable.percent]: null,
27
27
  };
28
28
 
29
+ /**
30
+ * This pipe makes you able to use multiple pipes in one pipe
31
+ *
32
+ * The pipes that are available are:
33
+ * - country
34
+ * - custom
35
+ * - division
36
+ * - list
37
+ * - multiPipe
38
+ * - objKey
39
+ * - range
40
+ * - region
41
+ * - replace
42
+ * - slider
43
+ * - smartReplace
44
+ *
45
+ * The angular pipes that are available are:
46
+ * - currency
47
+ * - date
48
+ * - decimal
49
+ * - number
50
+ * - percent
51
+ *
52
+ * (The custom pipe is basically usable for anything,
53
+ * you you even can create your own, combining multiple pipes)
54
+ *
55
+ * @example
56
+ *
57
+ * ```html
58
+ * {{ 1000.123 | multiPipe: [
59
+ * { currency: [ 'USD' ] },
60
+ * { number: [ '1.0-1' ] },
61
+ * ] }}
62
+ * ```
63
+ * will return `1,000.1`
64
+ *
65
+ * ```html
66
+ * {{ { from: 1.321, to: 10.123 } | multiPipe: [
67
+ * { range: [ 'from-to' ] },
68
+ * { number: [ '1.0-1' ] },
69
+ * ] }}
70
+ * ```
71
+ * will return `1.3 - 10.1`
72
+ *
73
+ * ```html
74
+ * {{ 1000.123 | multiPipe: [
75
+ * { range: [ 'from-to' ] },
76
+ * { currency: [ 'EUR', 'symbol', '1.0-0' ] },
77
+ * { replace: [ ',', ' ' ] },
78
+ * ] }}
79
+ * ```
80
+ * will return `€1 000`
81
+ */
29
82
  export function DyFM_multiPipe_pipeTransform(
30
83
  value: unknown, pipes: DyFM_MultiPipe_Setting[]
31
84
  ): string | number | DyFM_RangeValue | any {
@@ -3,7 +3,19 @@
3
3
 
4
4
 
5
5
 
6
-
6
+ /**
7
+ * This pipe will return the keys of an object
8
+ * (it will return an empty array if the object is empty)
9
+ * (This can be used in multiPipe, all datas from objects)
10
+ *
11
+ * @example
12
+ *
13
+ * ```html
14
+ * {{ { a: 1, b: 2, c: 3 } | objKey }}
15
+ * ```
16
+ * will return `['a', 'b', 'c']`
17
+ *
18
+ */
7
19
  export function DyFM_objKey_pipeTransform<Obj_T>(value: Obj_T): string[] {
8
20
  return value ? Object.keys(value) : [];
9
21
  }
@@ -10,6 +10,18 @@ import { DyFM_RangeValue } from '../../../../_models/control-models/range-value.
10
10
  import { DyFM_MultiPipe_Setting } from '../../_models/pip-multi-pipe-settings.type';
11
11
  import { DyFM_multiPipe_pipeTransform } from './pip-multi-pipe-pipe.util';
12
12
 
13
+ /**
14
+ * This pipe will return the range of a value
15
+ *
16
+ * @example
17
+ *
18
+ * ```html
19
+ * {{ { from: 1, to: 10 } | range: 'from-to' }}
20
+ * ```
21
+ * will return `1 - 10`
22
+ *
23
+ *
24
+ */
13
25
  export function DyFM_range_pipeTransform(
14
26
  value: DyFM_RangeValue,
15
27
  setting: DyFM_RangePipe_Setting | string,
@@ -9,6 +9,23 @@ import { DyFM_CountryISO } from '../../../location/_models/loc-country-iso.inter
9
9
  import { DyFM_countryISOs } from '../../../location/_collections/loc-country-isos.const';
10
10
 
11
11
 
12
+ /**
13
+ * This pipe will return the region of a country
14
+ *
15
+ * @example
16
+ *
17
+ * ```html
18
+ * {{ 'US' | region }}
19
+ * ```
20
+ * will return `North America`
21
+ *
22
+ * ```html
23
+ * {{ 'DE' | region }}
24
+ * ```
25
+ * will return `Europe`
26
+ *
27
+ *
28
+ */
12
29
  export function DyFM_region_pipeTransform(countryISO: string): string {
13
30
  const result = DyFM_countryISOs.find(
14
31
  (iso: DyFM_CountryISO): boolean => iso.iso2 === countryISO
@@ -6,6 +6,18 @@
6
6
 
7
7
 
8
8
 
9
+ /**
10
+ * This pipe will replace all the occurrences of a string with another string
11
+ * (usually used for data injections for localized messages)
12
+ *
13
+ * @example
14
+ *
15
+ * ```html
16
+ * {{ 'Hello World' | replace: 'World', 'Universe' }}
17
+ * ```
18
+ * will return `Hello Universe`
19
+ *
20
+ */
9
21
  export function DyFM_replace_pipeTransform(value: string, from: string, to: string): string {
10
22
  return value?.replaceAll(from, to) ?? value;
11
23
  }
@@ -6,6 +6,20 @@
6
6
  import { DyFM_RangeValue } from '../../../../_models/control-models/range-value.control-model';
7
7
 
8
8
 
9
+ /**
10
+ * This pipe will return the value as a string
11
+ * The main purpose of this pipe is to be able to rewrite this pipe,
12
+ * so the Dynamo Slider Field will use it as you want
13
+ *
14
+ * @example
15
+ *
16
+ * ```html
17
+ * {{ 100 | slider }}
18
+ * ```
19
+ * will return `100`
20
+ *
21
+ *
22
+ */
9
23
  export function DyFM_slider_pipeTransform(
10
24
  value: number | DyFM_RangeValue<number> | string,
11
25
  ): string {
@@ -10,7 +10,15 @@ import { DyFM_multiPipe_pipeTransform } from './pip-multi-pipe-pipe.util';
10
10
 
11
11
 
12
12
  /**
13
- * Replaces the keys from the replacer with the values from the replacer object.
13
+ * This pipe will replace multiple values using the given keys
14
+ *
15
+ * @example
16
+ *
17
+ * ```html
18
+ * {{ 'Hello {name}, {customer} is waiting for you' | smartReplace: { name: 'John', customer: 'Bob' } }}
19
+ * ```
20
+ * will return `Hello John, Bob is waiting for you`
21
+ *
14
22
  */
15
23
  export function DyFM_smartReplace_pipeTransform(
16
24
  value: string, replacer: object, multiPipes?: DyFM_MultiPipe_Setting[]
Binary file