@rxap/pipes 22.0.0-dev.1 → 22.0.0-dev.2

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 (58) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +5 -3
  3. package/compodoc/changelog.html +15 -0
  4. package/compodoc/dependencies.html +1 -1
  5. package/compodoc/index.html +4 -3
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/llms.txt +3 -1
  8. package/compodoc/miscellaneous/functions.html +81 -0
  9. package/compodoc/properties.html +1 -1
  10. package/docs/documentation.json +59 -35
  11. package/docs/html/classes/DeleteIdentifierPipe.html +5 -5
  12. package/docs/html/classes/EscapeQuotationMarkPipe.html +5 -5
  13. package/docs/html/classes/GetFromObjectPipe.html +5 -5
  14. package/docs/html/classes/JoinPipe.html +5 -5
  15. package/docs/html/classes/LimitPipe.html +5 -5
  16. package/docs/html/classes/ReplacePipe.html +5 -5
  17. package/docs/html/classes/RxapCurrencyPipe.html +5 -5
  18. package/docs/html/classes/SlicePipe.html +5 -5
  19. package/docs/html/classes/ToDisplayPipe.html +5 -5
  20. package/docs/html/classes/TruncatePipe.html +5 -5
  21. package/docs/html/hierarchy.html +4 -4
  22. package/docs/html/index.html +8 -7
  23. package/docs/html/modules.html +4 -4
  24. package/docs/markdown/README.md +6 -4
  25. package/docs/markdown/classes/DeleteIdentifierPipe.md +3 -3
  26. package/docs/markdown/classes/EscapeQuotationMarkPipe.md +3 -3
  27. package/docs/markdown/classes/GetFromObjectPipe.md +3 -3
  28. package/docs/markdown/classes/JoinPipe.md +3 -3
  29. package/docs/markdown/classes/LimitPipe.md +3 -3
  30. package/docs/markdown/classes/ReplacePipe.md +3 -3
  31. package/docs/markdown/classes/RxapCurrencyPipe.md +3 -3
  32. package/docs/markdown/classes/SlicePipe.md +3 -3
  33. package/docs/markdown/classes/ToDisplayPipe.md +3 -3
  34. package/docs/markdown/classes/TruncatePipe.md +3 -3
  35. package/docs/markdown/globals.md +2 -2
  36. package/docs/wiki/Class.DeleteIdentifierPipe.md +2 -2
  37. package/docs/wiki/Class.EscapeQuotationMarkPipe.md +2 -2
  38. package/docs/wiki/Class.GetFromObjectPipe.md +2 -2
  39. package/docs/wiki/Class.JoinPipe.md +2 -2
  40. package/docs/wiki/Class.LimitPipe.md +2 -2
  41. package/docs/wiki/Class.ReplacePipe.md +2 -2
  42. package/docs/wiki/Class.RxapCurrencyPipe.md +2 -2
  43. package/docs/wiki/Class.SlicePipe.md +2 -2
  44. package/docs/wiki/Class.ToDisplayPipe.md +2 -2
  45. package/docs/wiki/Class.TruncatePipe.md +2 -2
  46. package/docs/wiki/Home.md +5 -3
  47. package/docs/wiki/globals.md +1 -1
  48. package/generators.json +16 -0
  49. package/package.json +6 -8
  50. package/src/generators/init/generator.js +120 -0
  51. package/src/generators/init/index.js +6 -0
  52. package/src/generators/init/schema.json +8 -0
  53. package/src/generators/package.json +3 -0
  54. package/compodoc/js/libs/vis.min.js +0 -47
  55. package/compodoc/js/menu-wc_es5.js +0 -40
  56. package/compodoc/modules/CurrencyPipeModule/dependencies.svg +0 -66
  57. package/compodoc/modules/CurrencyPipeModule.html +0 -390
  58. package/theme.css +0 -1
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: JoinPipe
8
8
 
9
- Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/join.pipe.ts#L11)
9
+ Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/join.pipe.ts#L11)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d8
28
28
 
29
29
  > **transform**(`list`, `separator?`): `string`
30
30
 
31
- Defined in: [join.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/join.pipe.ts#L13)
31
+ Defined in: [join.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/join.pipe.ts#L13)
32
32
 
33
33
  #### Parameters
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: LimitPipe
8
8
 
9
- Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/limit.pipe.ts#L10)
9
+ Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/limit.pipe.ts#L10)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d
28
28
 
29
29
  > **transform**\<`T`\>(`value`, `limit`): `T`[]
30
30
 
31
- Defined in: [limit.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/limit.pipe.ts#L12)
31
+ Defined in: [limit.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/limit.pipe.ts#L12)
32
32
 
33
33
  #### Type Parameters
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ReplacePipe
8
8
 
9
- Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/replace.pipe.ts#L10)
9
+ Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/replace.pipe.ts#L10)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa47
28
28
 
29
29
  > **transform**(`value`, `replace`, `replaceValue`): `string`
30
30
 
31
- Defined in: [replace.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/replace.pipe.ts#L12)
31
+ Defined in: [replace.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/replace.pipe.ts#L12)
32
32
 
33
33
  #### Parameters
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: RxapCurrencyPipe
8
8
 
9
- Defined in: [currency.pipe.ts:8](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/currency.pipe.ts#L8)
9
+ Defined in: [currency.pipe.ts:8](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/currency.pipe.ts#L8)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [currency.pipe.ts:8](https://gitlab.com/rxap/packages/-/blob/947fa47
28
28
 
29
29
  > **transform**(`value`, `currencyCode?`, `display?`, `digitsInfo?`, `locale?`): `string` \| `null`
30
30
 
31
- Defined in: [currency.pipe.ts:45](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/currency.pipe.ts#L45)
31
+ Defined in: [currency.pipe.ts:45](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/currency.pipe.ts#L45)
32
32
 
33
33
  #### Parameters
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SlicePipe
8
8
 
9
- Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
9
+ Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d
28
28
 
29
29
  > **transform**\<`T`\>(`value`, `start`, `end?`): `T`[]
30
30
 
31
- Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
31
+ Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
32
32
 
33
33
  #### Type Parameters
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ToDisplayPipe
8
8
 
9
- Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
9
+ Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947f
28
28
 
29
29
  > **transform**(`value`, `toDisplay?`): `string`
30
30
 
31
- Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
31
+ Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
32
32
 
33
33
  #### Parameters
34
34
 
@@ -1,4 +1,4 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](../README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: TruncatePipe
8
8
 
9
- Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/truncate.pipe.ts#L10)
9
+ Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/truncate.pipe.ts#L10)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa4
28
28
 
29
29
  > **transform**(`value?`, `length?`, `ellipsis?`): `string`
30
30
 
31
- Defined in: [truncate.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/truncate.pipe.ts#L12)
31
+ Defined in: [truncate.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/truncate.pipe.ts#L12)
32
32
 
33
33
  #### Parameters
34
34
 
@@ -1,8 +1,8 @@
1
- [**@rxap/pipes v22.0.0-dev.1**](README.md)
1
+ [**@rxap/pipes v22.0.0-dev.2**](README.md)
2
2
 
3
3
  ***
4
4
 
5
- # @rxap/pipes v22.0.0-dev.1
5
+ # @rxap/pipes v22.0.0-dev.2
6
6
 
7
7
  ## Classes
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: DeleteIdentifierPipe
4
4
 
5
- Defined in: [delete-identifier.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/delete-identifier.pipe.ts#L16)
5
+ Defined in: [delete-identifier.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/delete-identifier.pipe.ts#L16)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [delete-identifier.pipe.ts:16](https://gitlab.com/rxap/packages/-/bl
24
24
 
25
25
  > **transform**\<`T`\>(`value`): `T` \| `null`
26
26
 
27
- Defined in: [delete-identifier.pipe.ts:18](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/delete-identifier.pipe.ts#L18)
27
+ Defined in: [delete-identifier.pipe.ts:18](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/delete-identifier.pipe.ts#L18)
28
28
 
29
29
  #### Type Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: EscapeQuotationMarkPipe
4
4
 
5
- Defined in: [escape-quotation-mark.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts#L11)
5
+ Defined in: [escape-quotation-mark.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts#L11)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [escape-quotation-mark.pipe.ts:11](https://gitlab.com/rxap/packages/
24
24
 
25
25
  > **transform**(`value`, `reverse?`): `string`
26
26
 
27
- Defined in: [escape-quotation-mark.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts#L13)
27
+ Defined in: [escape-quotation-mark.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts#L13)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: GetFromObjectPipe
4
4
 
5
- Defined in: [get-from-object.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/get-from-object.pipe.ts#L11)
5
+ Defined in: [get-from-object.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/get-from-object.pipe.ts#L11)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [get-from-object.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob
24
24
 
25
25
  > **transform**(`value`, `path`): `any`
26
26
 
27
- Defined in: [get-from-object.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/get-from-object.pipe.ts#L12)
27
+ Defined in: [get-from-object.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/get-from-object.pipe.ts#L12)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: JoinPipe
4
4
 
5
- Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/join.pipe.ts#L11)
5
+ Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/join.pipe.ts#L11)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d8
24
24
 
25
25
  > **transform**(`list`, `separator?`): `string`
26
26
 
27
- Defined in: [join.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/join.pipe.ts#L13)
27
+ Defined in: [join.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/join.pipe.ts#L13)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: LimitPipe
4
4
 
5
- Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/limit.pipe.ts#L10)
5
+ Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/limit.pipe.ts#L10)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d
24
24
 
25
25
  > **transform**\<`T`\>(`value`, `limit`): `T`[]
26
26
 
27
- Defined in: [limit.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/limit.pipe.ts#L12)
27
+ Defined in: [limit.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/limit.pipe.ts#L12)
28
28
 
29
29
  #### Type Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: ReplacePipe
4
4
 
5
- Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/replace.pipe.ts#L10)
5
+ Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/replace.pipe.ts#L10)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa47
24
24
 
25
25
  > **transform**(`value`, `replace`, `replaceValue`): `string`
26
26
 
27
- Defined in: [replace.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/replace.pipe.ts#L12)
27
+ Defined in: [replace.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/replace.pipe.ts#L12)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: RxapCurrencyPipe
4
4
 
5
- Defined in: [currency.pipe.ts:8](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/currency.pipe.ts#L8)
5
+ Defined in: [currency.pipe.ts:8](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/currency.pipe.ts#L8)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [currency.pipe.ts:8](https://gitlab.com/rxap/packages/-/blob/947fa47
24
24
 
25
25
  > **transform**(`value`, `currencyCode?`, `display?`, `digitsInfo?`, `locale?`): `string` \| `null`
26
26
 
27
- Defined in: [currency.pipe.ts:45](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/currency.pipe.ts#L45)
27
+ Defined in: [currency.pipe.ts:45](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/currency.pipe.ts#L45)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: SlicePipe
4
4
 
5
- Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
5
+ Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d
24
24
 
25
25
  > **transform**\<`T`\>(`value`, `start`, `end?`): `T`[]
26
26
 
27
- Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
27
+ Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
28
28
 
29
29
  #### Type Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: ToDisplayPipe
4
4
 
5
- Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
5
+ Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947f
24
24
 
25
25
  > **transform**(`value`, `toDisplay?`): `string`
26
26
 
27
- Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
27
+ Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: TruncatePipe
4
4
 
5
- Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/truncate.pipe.ts#L10)
5
+ Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/truncate.pipe.ts#L10)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa4
24
24
 
25
25
  > **transform**(`value?`, `length?`, `ellipsis?`): `string`
26
26
 
27
- Defined in: [truncate.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/truncate.pipe.ts#L12)
27
+ Defined in: [truncate.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/73459044d95e79d1cc84f9d21f658812d63c3185/packages/angular/pipes/src/lib/truncate.pipe.ts#L12)
28
28
 
29
29
  #### Parameters
30
30
 
package/docs/wiki/Home.md CHANGED
@@ -15,15 +15,17 @@ Provides a set of Angular pipes for common data transformations, including curre
15
15
 
16
16
  **Add the package to your workspace:**
17
17
  ```bash
18
- yarn add @rxap/pipes
18
+ npm install @rxap/pipes
19
19
  ```
20
+ With pnpm or yarn use `pnpm add` or `yarn add` instead of `npm install`.
21
+
20
22
  **Install peer dependencies:**
21
23
  ```bash
22
- yarn add @angular/common @angular/core @angular/platform-browser @rxap/utilities
24
+ npm install @angular/common @angular/core @angular/platform-browser @rxap/utilities
23
25
  ```
24
26
  **Execute the init generator:**
25
27
  ```bash
26
- yarn nx g @rxap/pipes:init
28
+ nx g @rxap/pipes:init
27
29
  ```
28
30
  # Generators
29
31
 
@@ -1,4 +1,4 @@
1
- # @rxap/pipes v22.0.0-dev.1
1
+ # @rxap/pipes v22.0.0-dev.2
2
2
 
3
3
  ## Classes
4
4
 
@@ -0,0 +1,16 @@
1
+ {
2
+ "generators": {
3
+ "init": {
4
+ "factory": "./src/generators/init/generator",
5
+ "schema": "./src/generators/init/schema.json",
6
+ "description": "Initialize the package in the workspace"
7
+ }
8
+ },
9
+ "schematics": {
10
+ "init": {
11
+ "factory": "./src/generators/init/index",
12
+ "schema": "./src/generators/init/schema.json",
13
+ "description": "Initialize the package in the workspace"
14
+ }
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "22.0.0-dev.1",
2
+ "version": "22.0.0-dev.2",
3
3
  "name": "@rxap/pipes",
4
4
  "description": "Provides a set of Angular pipes for common data transformations, including currency formatting, string manipulation, and object property access. These pipes offer standalone functionality for easy integration into Angular templates. The package includes pipes for escaping quotation marks, joining arrays, limiting array length, replacing substrings, slicing arrays, truncating strings, and deleting identifier properties from objects.\n",
5
5
  "license": "GPL-3.0-or-later",
@@ -11,7 +11,7 @@
11
11
  "@angular/common": "^22.0.0",
12
12
  "@angular/core": "^22.0.0",
13
13
  "@angular/platform-browser": "^22.0.0",
14
- "@rxap/utilities": "^16.5.3-dev.0"
14
+ "@rxap/utilities": "^16.5.3-dev.1"
15
15
  },
16
16
  "author": {
17
17
  "name": "Merzough Münker",
@@ -52,13 +52,12 @@
52
52
  },
53
53
  {
54
54
  "package": "@rxap/utilities",
55
- "version": "16.5.3-dev.0"
55
+ "version": "16.5.3-dev.1"
56
56
  }
57
57
  ]
58
58
  },
59
59
  "publishConfig": {
60
- "access": "public",
61
- "directory": "../../../dist/packages/angular/pipes"
60
+ "access": "public"
62
61
  },
63
62
  "repository": {
64
63
  "type": "git",
@@ -80,8 +79,7 @@
80
79
  "./santization": {
81
80
  "types": "./types/rxap-pipes-santization.d.ts",
82
81
  "default": "./fesm2022/rxap-pipes-santization.mjs"
83
- },
84
- "./theme": "./theme.css"
82
+ }
85
83
  },
86
84
  "type": "module"
87
- }
85
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initGenerator = initGenerator;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const fs_1 = require("fs");
6
+ const path_1 = require("path");
7
+ /**
8
+ * Resolves the directory of a package installed in the workspace. The lookup starts at the
9
+ * workspace root, not at this package: with an isolated node_modules layout (pnpm) or Yarn PnP
10
+ * the peer is not resolvable from here. The plain node_modules path is the fallback for packages
11
+ * whose `exports` map hides their package.json.
12
+ */
13
+ function resolvePackageDir(root, packageName) {
14
+ try {
15
+ return (0, path_1.dirname)(require.resolve(`${packageName}/package.json`, { paths: [root] }));
16
+ }
17
+ catch {
18
+ return (0, path_1.join)(root, 'node_modules', ...packageName.split('/'));
19
+ }
20
+ }
21
+ async function initGenerator(tree, options) {
22
+ // The package's own package.json lives on disk next to the compiled generator
23
+ // (inside node_modules when installed), which the virtual Tree does not track.
24
+ // Read it directly from the physical filesystem.
25
+ const packageJsonFilePath = (0, path_1.join)(__dirname, '..', '..', '..', 'package.json');
26
+ if (!(0, fs_1.existsSync)(packageJsonFilePath)) {
27
+ console.error('package.json not found in: ' + packageJsonFilePath);
28
+ return;
29
+ }
30
+ const { peerDependencies, name: packageName } = JSON.parse((0, fs_1.readFileSync)(packageJsonFilePath, 'utf-8'));
31
+ console.log(`Coerce peer dependencies for package: ${packageName}`);
32
+ if (!peerDependencies || !Object.keys(peerDependencies).length) {
33
+ console.log('No peer dependencies found');
34
+ return;
35
+ }
36
+ console.log(`Peer dependencies: ${Object.keys(peerDependencies).join(', ')}`);
37
+ const rootPackageJson = JSON.parse(tree.read('package.json', 'utf-8'));
38
+ let isDevDependency = !!rootPackageJson.devDependencies?.[packageName];
39
+ if (isDevDependency &&
40
+ [/^@rxap\/ngx/, /^@rxap\/nest/].some((rx) => rx.test(packageName))) {
41
+ rootPackageJson.dependencies ??= {};
42
+ rootPackageJson.dependencies[packageName] =
43
+ rootPackageJson.devDependencies[packageName];
44
+ delete rootPackageJson.devDependencies[packageName];
45
+ isDevDependency = false;
46
+ tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
47
+ }
48
+ if (!isDevDependency &&
49
+ [
50
+ /^@rxap\/plugin/,
51
+ /^@rxap\/workspace/,
52
+ /@rxap\/schematic/,
53
+ ].some((rx) => rx.test(packageName))) {
54
+ rootPackageJson.devDependencies ??= {};
55
+ rootPackageJson.devDependencies[packageName] =
56
+ rootPackageJson.dependencies[packageName];
57
+ delete rootPackageJson.dependencies[packageName];
58
+ isDevDependency = true;
59
+ tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
60
+ }
61
+ const missingPeerDependencies = Object.entries(peerDependencies)
62
+ .filter(([dep]) => !rootPackageJson.dependencies?.[dep] &&
63
+ !rootPackageJson.devDependencies?.[dep])
64
+ .reduce((acc, [dep, version]) => ({ ...acc, [dep]: version }), {});
65
+ if (!Object.keys(missingPeerDependencies).length) {
66
+ console.log('No missing peer dependencies');
67
+ return;
68
+ }
69
+ if (isDevDependency) {
70
+ (0, devkit_1.addDependenciesToPackageJson)(tree, {}, missingPeerDependencies);
71
+ }
72
+ else {
73
+ (0, devkit_1.addDependenciesToPackageJson)(tree, missingPeerDependencies, {});
74
+ }
75
+ await (0, devkit_1.formatFiles)(tree);
76
+ (0, devkit_1.installPackagesTask)(tree);
77
+ for (const peer of Object.keys(missingPeerDependencies)) {
78
+ console.log(`Peer dependency ${peer} added to package.json`);
79
+ // node_modules is physical and excluded from the virtual Tree, so read the
80
+ // peer files from disk.
81
+ const peerPackageDir = resolvePackageDir(tree.root, peer);
82
+ const peerPackageJsonFilePath = (0, path_1.join)(peerPackageDir, 'package.json');
83
+ if (!(0, fs_1.existsSync)(peerPackageJsonFilePath)) {
84
+ console.log(`Peer dependency ${peer} has no package.json`);
85
+ continue;
86
+ }
87
+ const { generators, schematics } = JSON.parse((0, fs_1.readFileSync)(peerPackageJsonFilePath, 'utf-8'));
88
+ if (!generators && !schematics) {
89
+ console.log(`Peer dependency ${peer} has no generators or schematics`);
90
+ continue;
91
+ }
92
+ const configFile = generators || schematics;
93
+ const configFilePath = (0, path_1.join)(peerPackageDir, configFile);
94
+ if (!(0, fs_1.existsSync)(configFilePath)) {
95
+ console.log(`Peer dependency ${peer} has no generators or schematics file`);
96
+ continue;
97
+ }
98
+ const config = JSON.parse((0, fs_1.readFileSync)(configFilePath, 'utf-8'));
99
+ if (!config.generators?.init) {
100
+ console.log(`Peer dependency ${peer} has no init generator`);
101
+ continue;
102
+ }
103
+ const initGeneratorFilePath = config.generators.init.factory;
104
+ const fullInitGeneratorFilePath = (0, path_1.join)(peerPackageDir, initGeneratorFilePath) + '.js';
105
+ if (!(0, fs_1.existsSync)(fullInitGeneratorFilePath)) {
106
+ console.log(`Peer dependency ${peer} has no init generator file: ` +
107
+ fullInitGeneratorFilePath);
108
+ continue;
109
+ }
110
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
111
+ const initGenerator = require((0, path_1.join)(peerPackageDir, initGeneratorFilePath))?.default;
112
+ if (typeof initGenerator !== 'function') {
113
+ console.log(`Peer dependency ${peer} has no init generator function`);
114
+ continue;
115
+ }
116
+ console.log(`Run init generator for peer dependency ${peer}`);
117
+ await initGenerator(tree, options);
118
+ }
119
+ }
120
+ exports.default = initGenerator;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ const schematic = (0, devkit_1.convertNxGenerator)(generator_1.default);
6
+ exports.default = schematic;
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "Init",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {},
7
+ "required": []
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }