@rxap/pipes 19.2.0 → 21.0.1-dev.1

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 (74) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/compodoc/changelog.html +10 -0
  3. package/compodoc/dependencies.html +5 -5
  4. package/compodoc/graph/dependencies.svg +4 -46
  5. package/compodoc/js/menu-wc.js +0 -29
  6. package/compodoc/js/menu-wc_es5.js +1 -1
  7. package/compodoc/js/search/search_index.js +2 -2
  8. package/compodoc/modules.html +0 -17
  9. package/compodoc/overview.html +1 -89
  10. package/compodoc/pipes/RxapCurrencyPipe.html +4 -17
  11. package/compodoc/properties.html +1 -1
  12. package/docs/documentation.json +217 -315
  13. package/docs/html/assets/navigation.js +1 -1
  14. package/docs/html/assets/search.js +1 -1
  15. package/docs/html/classes/DeleteIdentifierPipe.html +2 -2
  16. package/docs/html/classes/EscapeQuotationMarkPipe.html +2 -2
  17. package/docs/html/classes/GetFromObjectPipe.html +2 -2
  18. package/docs/html/classes/JoinPipe.html +2 -2
  19. package/docs/html/classes/LimitPipe.html +2 -2
  20. package/docs/html/classes/ReplacePipe.html +2 -2
  21. package/docs/html/classes/RxapCurrencyPipe.html +3 -3
  22. package/docs/html/classes/SlicePipe.html +2 -2
  23. package/docs/html/classes/ToDisplayPipe.html +2 -2
  24. package/docs/html/classes/TruncatePipe.html +2 -2
  25. package/docs/html/index.html +2 -2
  26. package/docs/html/modules.html +1 -1
  27. package/docs/markdown/README.md +1 -1
  28. package/docs/markdown/classes/DeleteIdentifierPipe.md +3 -3
  29. package/docs/markdown/classes/EscapeQuotationMarkPipe.md +3 -3
  30. package/docs/markdown/classes/GetFromObjectPipe.md +3 -3
  31. package/docs/markdown/classes/JoinPipe.md +3 -3
  32. package/docs/markdown/classes/LimitPipe.md +3 -3
  33. package/docs/markdown/classes/ReplacePipe.md +3 -3
  34. package/docs/markdown/classes/RxapCurrencyPipe.md +4 -12
  35. package/docs/markdown/classes/SlicePipe.md +3 -3
  36. package/docs/markdown/classes/ToDisplayPipe.md +3 -3
  37. package/docs/markdown/classes/TruncatePipe.md +3 -3
  38. package/docs/markdown/globals.md +2 -3
  39. package/docs/wiki/Class.DeleteIdentifierPipe.md +2 -2
  40. package/docs/wiki/Class.EscapeQuotationMarkPipe.md +2 -2
  41. package/docs/wiki/Class.GetFromObjectPipe.md +2 -2
  42. package/docs/wiki/Class.JoinPipe.md +2 -2
  43. package/docs/wiki/Class.LimitPipe.md +2 -2
  44. package/docs/wiki/Class.ReplacePipe.md +2 -2
  45. package/docs/wiki/Class.RxapCurrencyPipe.md +3 -11
  46. package/docs/wiki/Class.SlicePipe.md +2 -2
  47. package/docs/wiki/Class.ToDisplayPipe.md +2 -2
  48. package/docs/wiki/Class.TruncatePipe.md +2 -2
  49. package/docs/wiki/_Sidebar.md +0 -1
  50. package/docs/wiki/globals.md +1 -2
  51. package/fesm2022/rxap-pipes-santization.mjs +13 -17
  52. package/fesm2022/rxap-pipes-santization.mjs.map +1 -1
  53. package/fesm2022/rxap-pipes.mjs +34 -48
  54. package/fesm2022/rxap-pipes.mjs.map +1 -1
  55. package/package.json +16 -15
  56. package/types/rxap-pipes-santization.d.ts +19 -0
  57. package/types/rxap-pipes.d.ts +100 -0
  58. package/docs/html/classes/CurrencyPipeModule.html +0 -2
  59. package/docs/markdown/classes/CurrencyPipeModule.md +0 -19
  60. package/docs/wiki/Class.CurrencyPipeModule.md +0 -15
  61. package/index.d.ts +0 -10
  62. package/lib/currency.pipe.d.ts +0 -48
  63. package/lib/delete-identifier.pipe.d.ts +0 -8
  64. package/lib/escape-quotation-mark.pipe.d.ts +0 -7
  65. package/lib/get-from-object.pipe.d.ts +0 -7
  66. package/lib/join.pipe.d.ts +0 -7
  67. package/lib/limit.pipe.d.ts +0 -7
  68. package/lib/replace.pipe.d.ts +0 -7
  69. package/lib/slice.pipe.d.ts +0 -7
  70. package/lib/to-display.pipe.d.ts +0 -9
  71. package/lib/truncate.pipe.d.ts +0 -7
  72. package/santization/index.d.ts +0 -2
  73. package/santization/lib/santization.pipe.d.ts +0 -11
  74. package/santization/lib/santization.service.d.ts +0 -9
@@ -1,12 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Pipe, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/common';
2
+ import { inject, LOCALE_ID, DEFAULT_CURRENCY_CODE, Pipe } from '@angular/core';
4
3
  import { CurrencyPipe, JsonPipe } from '@angular/common';
5
4
  import { clone, hasIdentifierProperty, getIdentifierProperties, getFromObject } from '@rxap/utilities';
6
5
 
7
6
  class RxapCurrencyPipe {
8
- constructor(currency) {
9
- this.currency = currency;
7
+ constructor() {
8
+ this.currency = new CurrencyPipe(inject(LOCALE_ID), inject(DEFAULT_CURRENCY_CODE, { optional: true }) ?? undefined);
10
9
  }
11
10
  /**
12
11
  *
@@ -44,28 +43,15 @@ class RxapCurrencyPipe {
44
43
  transform(value, currencyCode, display, digitsInfo, locale) {
45
44
  return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
46
45
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe }); }
48
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: RxapCurrencyPipe, isStandalone: true, name: "currency" }); }
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
47
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: RxapCurrencyPipe, isStandalone: true, name: "currency" }); }
49
48
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
51
50
  type: Pipe,
52
51
  args: [{
53
52
  name: 'currency',
54
53
  standalone: true,
55
54
  }]
56
- }], ctorParameters: () => [{ type: i1.CurrencyPipe }] });
57
- class CurrencyPipeModule {
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
59
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: CurrencyPipeModule, imports: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] }); }
60
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] }); }
61
- }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CurrencyPipeModule, decorators: [{
63
- type: NgModule,
64
- args: [{
65
- imports: [RxapCurrencyPipe],
66
- exports: [RxapCurrencyPipe],
67
- providers: [CurrencyPipe],
68
- }]
69
55
  }] });
70
56
 
71
57
  class DeleteIdentifierPipe {
@@ -81,10 +67,10 @@ class DeleteIdentifierPipe {
81
67
  }
82
68
  return copy;
83
69
  }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
85
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: DeleteIdentifierPipe, isStandalone: true, name: "deleteIdentifier" }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
71
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: DeleteIdentifierPipe, isStandalone: true, name: "deleteIdentifier" }); }
86
72
  }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
88
74
  type: Pipe,
89
75
  args: [{
90
76
  name: 'deleteIdentifier',
@@ -96,10 +82,10 @@ class ReplacePipe {
96
82
  transform(value, replace, replaceValue) {
97
83
  return value ? value.replace(replace, replaceValue) : '';
98
84
  }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
100
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: ReplacePipe, isStandalone: true, name: "replace" }); }
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
86
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: ReplacePipe, isStandalone: true, name: "replace" }); }
101
87
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ReplacePipe, decorators: [{
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplacePipe, decorators: [{
103
89
  type: Pipe,
104
90
  args: [{
105
91
  name: 'replace',
@@ -116,10 +102,10 @@ class EscapeQuotationMarkPipe {
116
102
  return new ReplacePipe().transform(value, /"/g, '\\"');
117
103
  }
118
104
  }
119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
120
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: EscapeQuotationMarkPipe, isStandalone: true, name: "escapeQuotationMark" }); }
105
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
106
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: EscapeQuotationMarkPipe, isStandalone: true, name: "escapeQuotationMark" }); }
121
107
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
123
109
  type: Pipe,
124
110
  args: [{
125
111
  name: 'escapeQuotationMark',
@@ -131,10 +117,10 @@ class GetFromObjectPipe {
131
117
  transform(value, path) {
132
118
  return getFromObject(value, path);
133
119
  }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
135
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: GetFromObjectPipe, isStandalone: true, name: "getFromObject" }); }
120
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
121
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: GetFromObjectPipe, isStandalone: true, name: "getFromObject" }); }
136
122
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: GetFromObjectPipe, decorators: [{
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetFromObjectPipe, decorators: [{
138
124
  type: Pipe,
139
125
  args: [{
140
126
  name: 'getFromObject',
@@ -146,10 +132,10 @@ class JoinPipe {
146
132
  transform(list, separator) {
147
133
  return list.join(separator);
148
134
  }
149
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
150
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: JoinPipe, isStandalone: true, name: "join" }); }
135
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
136
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: JoinPipe, isStandalone: true, name: "join" }); }
151
137
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JoinPipe, decorators: [{
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: JoinPipe, decorators: [{
153
139
  type: Pipe,
154
140
  args: [{
155
141
  name: 'join',
@@ -162,10 +148,10 @@ class LimitPipe {
162
148
  transform(value, limit) {
163
149
  return value.slice(0, limit);
164
150
  }
165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: LimitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
166
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: LimitPipe, isStandalone: true, name: "limit" }); }
151
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LimitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
152
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: LimitPipe, isStandalone: true, name: "limit" }); }
167
153
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: LimitPipe, decorators: [{
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LimitPipe, decorators: [{
169
155
  type: Pipe,
170
156
  args: [{
171
157
  name: 'limit',
@@ -177,10 +163,10 @@ class SlicePipe {
177
163
  transform(value, start, end) {
178
164
  return value.slice(start, end);
179
165
  }
180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
181
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice" }); }
166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
167
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice" }); }
182
168
  }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: SlicePipe, decorators: [{
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SlicePipe, decorators: [{
184
170
  type: Pipe,
185
171
  args: [{
186
172
  name: 'slice',
@@ -195,10 +181,10 @@ class ToDisplayPipe {
195
181
  transform(value, toDisplay = this.jsonPipe.transform) {
196
182
  return toDisplay(value);
197
183
  }
198
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
199
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: ToDisplayPipe, isStandalone: true, name: "toDisplay" }); }
184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
185
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: ToDisplayPipe, isStandalone: true, name: "toDisplay" }); }
200
186
  }
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ToDisplayPipe, decorators: [{
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToDisplayPipe, decorators: [{
202
188
  type: Pipe,
203
189
  args: [{
204
190
  name: 'toDisplay',
@@ -216,10 +202,10 @@ class TruncatePipe {
216
202
  }
217
203
  return value.substring(0, length) + ellipsis;
218
204
  }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
220
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: TruncatePipe, isStandalone: true, name: "truncate" }); }
205
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
206
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: TruncatePipe, isStandalone: true, name: "truncate" }); }
221
207
  }
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TruncatePipe, decorators: [{
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TruncatePipe, decorators: [{
223
209
  type: Pipe,
224
210
  args: [{
225
211
  name: 'truncate',
@@ -234,5 +220,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
234
220
  * Generated bundle index. Do not edit.
235
221
  */
236
222
 
237
- export { CurrencyPipeModule, DeleteIdentifierPipe, EscapeQuotationMarkPipe, GetFromObjectPipe, JoinPipe, LimitPipe, ReplacePipe, RxapCurrencyPipe, SlicePipe, ToDisplayPipe, TruncatePipe };
223
+ export { DeleteIdentifierPipe, EscapeQuotationMarkPipe, GetFromObjectPipe, JoinPipe, LimitPipe, ReplacePipe, RxapCurrencyPipe, SlicePipe, ToDisplayPipe, TruncatePipe };
238
224
  //# sourceMappingURL=rxap-pipes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-pipes.mjs","sources":["../../../../../packages/angular/pipes/src/lib/currency.pipe.ts","../../../../../packages/angular/pipes/src/lib/delete-identifier.pipe.ts","../../../../../packages/angular/pipes/src/lib/replace.pipe.ts","../../../../../packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../../packages/angular/pipes/src/lib/get-from-object.pipe.ts","../../../../../packages/angular/pipes/src/lib/join.pipe.ts","../../../../../packages/angular/pipes/src/lib/limit.pipe.ts","../../../../../packages/angular/pipes/src/lib/slice.pipe.ts","../../../../../packages/angular/pipes/src/lib/to-display.pipe.ts","../../../../../packages/angular/pipes/src/lib/truncate.pipe.ts","../../../../../packages/angular/pipes/src/index.ts","../../../../../packages/angular/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n NgModule,\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency',\n standalone: true,\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {\n }\n\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).\n */\n public transform(\n value: number,\n currencyCode?: string,\n display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean,\n digitsInfo?: string,\n locale?: string,\n ): string | null {\n return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);\n }\n\n}\n\n@NgModule({\n imports: [ RxapCurrencyPipe ],\n exports: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ],\n})\nexport class CurrencyPipeModule {\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport {\n clone,\n getIdentifierProperties,\n hasIdentifierProperty,\n WithIdentifier,\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n standalone: true,\n})\nexport class DeleteIdentifierPipe implements PipeTransform {\n\n public transform<T>(value: (WithIdentifier & T) | null): T | null {\n if (!value) {\n return value;\n }\n const copy: any = clone(value);\n if (hasIdentifierProperty(copy)) {\n for (const pk of getIdentifierProperties(copy)) {\n delete copy[pk];\n }\n }\n return copy;\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n standalone: true,\n})\nexport class ReplacePipe implements PipeTransform {\n\n public transform(value: string, replace: RegExp, replaceValue: string): string {\n return value ? value.replace(replace, replaceValue) : '';\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark',\n standalone: true,\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse = false): string {\n if (reverse) {\n return new ReplacePipe().transform(value, /\\\\\"/g, '\"');\n } else {\n return new ReplacePipe().transform(value, /\"/g, '\\\\\"');\n }\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject',\n standalone: true,\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'join',\n pure: true,\n standalone: true,\n})\nexport class JoinPipe implements PipeTransform {\n\n transform(list: any[], separator?: string): string {\n return list.join(separator);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'limit',\n standalone: true,\n})\nexport class LimitPipe implements PipeTransform {\n\n transform<T>(value: readonly T[], limit: number): T[] {\n return value.slice(0, limit);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'slice',\n standalone: true,\n})\nexport class SlicePipe implements PipeTransform {\n\n transform<T>(value: readonly T[], start: number, end?: number): T[] {\n return value.slice(start, end);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay',\n standalone: true,\n})\nexport class ToDisplayPipe implements PipeTransform {\n\n private jsonPipe = new JsonPipe();\n\n public transform(value: any, toDisplay: ToDisplayFunction = this.jsonPipe.transform): string {\n return toDisplay(value);\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'truncate',\n standalone: true,\n})\nexport class TruncatePipe implements PipeTransform {\n\n transform(value?: string | null, length = 64, ellipsis = '...'): string {\n if (!value) {\n return '';\n }\n if (value.length <= length) {\n return value;\n }\n return value.substring(0, length) + ellipsis;\n }\n\n}\n","// region \nexport * from './lib/currency.pipe';\nexport * from './lib/delete-identifier.pipe';\nexport * from './lib/escape-quotation-mark.pipe';\nexport * from './lib/get-from-object.pipe';\nexport * from './lib/join.pipe';\nexport * from './lib/limit.pipe';\nexport * from './lib/replace.pipe';\nexport * from './lib/slice.pipe';\nexport * from './lib/to-display.pipe';\nexport * from './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,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACRD;AAWA;;ACXA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-pipes.mjs","sources":["../../../../../packages/angular/pipes/src/lib/currency.pipe.ts","../../../../../packages/angular/pipes/src/lib/delete-identifier.pipe.ts","../../../../../packages/angular/pipes/src/lib/replace.pipe.ts","../../../../../packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../../packages/angular/pipes/src/lib/get-from-object.pipe.ts","../../../../../packages/angular/pipes/src/lib/join.pipe.ts","../../../../../packages/angular/pipes/src/lib/limit.pipe.ts","../../../../../packages/angular/pipes/src/lib/slice.pipe.ts","../../../../../packages/angular/pipes/src/lib/to-display.pipe.ts","../../../../../packages/angular/pipes/src/lib/truncate.pipe.ts","../../../../../packages/angular/pipes/src/index.ts","../../../../../packages/angular/pipes/src/rxap-pipes.ts"],"sourcesContent":["import { DEFAULT_CURRENCY_CODE, LOCALE_ID, Pipe, PipeTransform, inject } from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency',\n standalone: true,\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n private readonly currency = new CurrencyPipe(inject(LOCALE_ID), inject(DEFAULT_CURRENCY_CODE, { optional: true }) ?? undefined);\n\n\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).\n */\n public transform(\n value: number,\n currencyCode?: string,\n display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean,\n digitsInfo?: string,\n locale?: string,\n ): string | null {\n return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport {\n clone,\n getIdentifierProperties,\n hasIdentifierProperty,\n WithIdentifier,\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n standalone: true,\n})\nexport class DeleteIdentifierPipe implements PipeTransform {\n\n public transform<T>(value: (WithIdentifier & T) | null): T | null {\n if (!value) {\n return value;\n }\n const copy: any = clone(value);\n if (hasIdentifierProperty(copy)) {\n for (const pk of getIdentifierProperties(copy)) {\n delete copy[pk];\n }\n }\n return copy;\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n standalone: true,\n})\nexport class ReplacePipe implements PipeTransform {\n\n public transform(value: string, replace: RegExp, replaceValue: string): string {\n return value ? value.replace(replace, replaceValue) : '';\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark',\n standalone: true,\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse = false): string {\n if (reverse) {\n return new ReplacePipe().transform(value, /\\\\\"/g, '\"');\n } else {\n return new ReplacePipe().transform(value, /\"/g, '\\\\\"');\n }\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject',\n standalone: true,\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'join',\n pure: true,\n standalone: true,\n})\nexport class JoinPipe implements PipeTransform {\n\n transform(list: any[], separator?: string): string {\n return list.join(separator);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'limit',\n standalone: true,\n})\nexport class LimitPipe implements PipeTransform {\n\n transform<T>(value: readonly T[], limit: number): T[] {\n return value.slice(0, limit);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'slice',\n standalone: true,\n})\nexport class SlicePipe implements PipeTransform {\n\n transform<T>(value: readonly T[], start: number, end?: number): T[] {\n return value.slice(start, end);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay',\n standalone: true,\n})\nexport class ToDisplayPipe implements PipeTransform {\n\n private jsonPipe = new JsonPipe();\n\n public transform(value: any, toDisplay: ToDisplayFunction = this.jsonPipe.transform): string {\n return toDisplay(value);\n }\n\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'truncate',\n standalone: true,\n})\nexport class TruncatePipe implements PipeTransform {\n\n transform(value?: string | null, length = 64, ellipsis = '...'): string {\n if (!value) {\n return '';\n }\n if (value.length <= length) {\n return value;\n }\n return value.substring(0, length) + ellipsis;\n }\n\n}\n","// region \nexport * from './lib/currency.pipe';\nexport * from './lib/delete-identifier.pipe';\nexport * from './lib/escape-quotation-mark.pipe';\nexport * from './lib/get-from-object.pipe';\nexport * from './lib/join.pipe';\nexport * from './lib/limit.pipe';\nexport * from './lib/replace.pipe';\nexport * from './lib/slice.pipe';\nexport * from './lib/to-display.pipe';\nexport * from './lib/truncate.pipe';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAOa,gBAAgB,CAAA;AAJ7B,IAAA,WAAA,GAAA;QAKmB,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,SAAS,CAAC;AA8ChI,IAAA;AA3CC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;IACI,SAAS,CACd,KAAa,EACb,YAAqB,EACrB,OAAgE,EAChE,UAAmB,EACnB,MAAe,EAAA;AAEf,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,GAAG,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC;IACxF;8GA7CW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAA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AAC1B,YAAA,OAAO,KAAK;QACd;QACA,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,QAAQ;IAC9C;8GAVW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACRD;AAWA;;ACXA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
- "version": "19.2.0",
2
+ "version": "21.0.1-dev.1",
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",
6
6
  "dependencies": {
7
- "@nx/devkit": "20.5.0",
7
+ "@nx/devkit": "22.7.5",
8
8
  "tslib": "2.6.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^19.2.1",
12
- "@angular/core": "^19.2.1",
13
- "@angular/platform-browser": "^19.2.1",
14
- "@rxap/utilities": "^16.5.1"
11
+ "@angular/common": "^21.2.9",
12
+ "@angular/core": "^21.2.9",
13
+ "@angular/platform-browser": "^21.2.9",
14
+ "@rxap/utilities": "^16.5.2-dev.1"
15
15
  },
16
16
  "author": {
17
17
  "name": "Merzough Münker",
@@ -36,23 +36,23 @@
36
36
  "packageGroup": [
37
37
  {
38
38
  "package": "@angular/animations",
39
- "version": "19.2.16"
39
+ "version": "21.2.9"
40
40
  },
41
41
  {
42
42
  "package": "@angular/common",
43
- "version": "19.2.16"
43
+ "version": "21.2.9"
44
44
  },
45
45
  {
46
46
  "package": "@angular/core",
47
- "version": "19.2.16"
47
+ "version": "21.2.9"
48
48
  },
49
49
  {
50
50
  "package": "@angular/platform-browser",
51
- "version": "19.2.16"
51
+ "version": "21.2.9"
52
52
  },
53
53
  {
54
54
  "package": "@rxap/utilities",
55
- "version": "16.5.1"
55
+ "version": "16.5.2-dev.1"
56
56
  }
57
57
  ]
58
58
  },
@@ -68,19 +68,20 @@
68
68
  "schematics": "./generators.json",
69
69
  "sideEffects": false,
70
70
  "module": "fesm2022/rxap-pipes.mjs",
71
- "typings": "index.d.ts",
71
+ "typings": "types/rxap-pipes.d.ts",
72
72
  "exports": {
73
73
  "./package.json": {
74
74
  "default": "./package.json"
75
75
  },
76
76
  ".": {
77
- "types": "./index.d.ts",
77
+ "types": "./types/rxap-pipes.d.ts",
78
78
  "default": "./fesm2022/rxap-pipes.mjs"
79
79
  },
80
80
  "./santization": {
81
- "types": "./santization/index.d.ts",
81
+ "types": "./types/rxap-pipes-santization.d.ts",
82
82
  "default": "./fesm2022/rxap-pipes-santization.mjs"
83
83
  },
84
84
  "./theme": "./theme.css"
85
- }
85
+ },
86
+ "type": "module"
86
87
  }
@@ -0,0 +1,19 @@
1
+ import * as i0 from '@angular/core';
2
+ import { PipeTransform } from '@angular/core';
3
+ import { SafeValue } from '@angular/platform-browser';
4
+
5
+ declare class SantizationPipe implements PipeTransform {
6
+ private readonly santizationService;
7
+ transform(value: string | null, type?: 'html' | 'style' | 'script' | 'url' | 'resourceUrl'): SafeValue | null;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SantizationPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SantizationPipe, "santization", true>;
10
+ }
11
+
12
+ declare class SantizationService {
13
+ private _sanitizer;
14
+ transform(value: string | null, type?: 'html' | 'style' | 'script' | 'url' | 'resourceUrl'): SafeValue | null;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SantizationService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<SantizationService>;
17
+ }
18
+
19
+ export { SantizationPipe, SantizationService };
@@ -0,0 +1,100 @@
1
+ import * as i0 from '@angular/core';
2
+ import { PipeTransform } from '@angular/core';
3
+ import { WithIdentifier, ToDisplayFunction } from '@rxap/utilities';
4
+
5
+ declare class RxapCurrencyPipe implements PipeTransform {
6
+ private readonly currency;
7
+ /**
8
+ *
9
+ * @param value The number to be formatted as currency.
10
+ * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
11
+ * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
12
+ * configured using the `DEFAULT_CURRENCY_CODE` injection token.
13
+ * @param display The format for the currency indicator. One of the following:
14
+ * - `code`: Show the code (such as `USD`).
15
+ * - `symbol`(default): Show the symbol (such as `$`).
16
+ * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
17
+ * currency.
18
+ * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
19
+ * locale has no narrow symbol, uses the standard symbol for the locale.
20
+ * - String: Use the given string value instead of a code or a symbol.
21
+ * For example, an empty string will suppress the currency & symbol.
22
+ * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
23
+ *
24
+ * @param digitsInfo Decimal representation options, specified by a string
25
+ * in the following format:<br>
26
+ * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
27
+ * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
28
+ * Default is `1`.
29
+ * - `minFractionDigits`: The minimum number of digits after the decimal point.
30
+ * Default is `2`.
31
+ * - `maxFractionDigits`: The maximum number of digits after the decimal point.
32
+ * Default is `2`.
33
+ * If not provided, the number will be formatted with the proper amount of digits,
34
+ * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
35
+ * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
36
+ * @param locale A locale code for the locale format rules to use.
37
+ * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
38
+ * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
39
+ */
40
+ transform(value: number, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<RxapCurrencyPipe, never>;
42
+ static ɵpipe: i0.ɵɵPipeDeclaration<RxapCurrencyPipe, "currency", true>;
43
+ }
44
+
45
+ declare class DeleteIdentifierPipe implements PipeTransform {
46
+ transform<T>(value: (WithIdentifier & T) | null): T | null;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeleteIdentifierPipe, never>;
48
+ static ɵpipe: i0.ɵɵPipeDeclaration<DeleteIdentifierPipe, "deleteIdentifier", true>;
49
+ }
50
+
51
+ declare class EscapeQuotationMarkPipe implements PipeTransform {
52
+ transform(value: string, reverse?: boolean): string;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<EscapeQuotationMarkPipe, never>;
54
+ static ɵpipe: i0.ɵɵPipeDeclaration<EscapeQuotationMarkPipe, "escapeQuotationMark", true>;
55
+ }
56
+
57
+ declare class GetFromObjectPipe implements PipeTransform {
58
+ transform(value: any, path: string): any;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetFromObjectPipe, never>;
60
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetFromObjectPipe, "getFromObject", true>;
61
+ }
62
+
63
+ declare class JoinPipe implements PipeTransform {
64
+ transform(list: any[], separator?: string): string;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<JoinPipe, never>;
66
+ static ɵpipe: i0.ɵɵPipeDeclaration<JoinPipe, "join", true>;
67
+ }
68
+
69
+ declare class LimitPipe implements PipeTransform {
70
+ transform<T>(value: readonly T[], limit: number): T[];
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<LimitPipe, never>;
72
+ static ɵpipe: i0.ɵɵPipeDeclaration<LimitPipe, "limit", true>;
73
+ }
74
+
75
+ declare class ReplacePipe implements PipeTransform {
76
+ transform(value: string, replace: RegExp, replaceValue: string): string;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReplacePipe, never>;
78
+ static ɵpipe: i0.ɵɵPipeDeclaration<ReplacePipe, "replace", true>;
79
+ }
80
+
81
+ declare class SlicePipe implements PipeTransform {
82
+ transform<T>(value: readonly T[], start: number, end?: number): T[];
83
+ static ɵfac: i0.ɵɵFactoryDeclaration<SlicePipe, never>;
84
+ static ɵpipe: i0.ɵɵPipeDeclaration<SlicePipe, "slice", true>;
85
+ }
86
+
87
+ declare class ToDisplayPipe implements PipeTransform {
88
+ private jsonPipe;
89
+ transform(value: any, toDisplay?: ToDisplayFunction): string;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToDisplayPipe, never>;
91
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToDisplayPipe, "toDisplay", true>;
92
+ }
93
+
94
+ declare class TruncatePipe implements PipeTransform {
95
+ transform(value?: string | null, length?: number, ellipsis?: string): string;
96
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
97
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
98
+ }
99
+
100
+ export { DeleteIdentifierPipe, EscapeQuotationMarkPipe, GetFromObjectPipe, JoinPipe, LimitPipe, ReplacePipe, RxapCurrencyPipe, SlicePipe, ToDisplayPipe, TruncatePipe };
@@ -1,2 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CurrencyPipeModule | @rxap/pipes - v19.2.0</title><meta name="description" content="Documentation for @rxap/pipes"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@rxap/pipes - v19.2.0</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@rxap/pipes</a></li><li><a href="CurrencyPipeModule.html">CurrencyPipeModule</a></li></ul><h1>Class CurrencyPipeModule</h1></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/3648307d22f6f77230de9b76f6335a68f0ed3849/packages/angular/pipes/src/lib/currency.pipe.ts#L67">currency.pipe.ts:67</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CurrencyPipeModule.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2
- </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="constructorcurrencypipemodule" class="tsd-anchor"></a><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">CurrencyPipeModule</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="CurrencyPipeModule.html" class="tsd-signature-type tsd-kind-class">CurrencyPipeModule</a><a href="#constructorcurrencypipemodule" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="CurrencyPipeModule.html" class="tsd-signature-type tsd-kind-class">CurrencyPipeModule</a></h4></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@rxap/pipes - v19.2.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1,19 +0,0 @@
1
- [**@rxap/pipes v19.2.0**](../README.md)
2
-
3
- ***
4
-
5
- [@rxap/pipes](../globals.md) / CurrencyPipeModule
6
-
7
- # Class: CurrencyPipeModule
8
-
9
- Defined in: [currency.pipe.ts:67](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f77230de9b76f6335a68f0ed3849/packages/angular/pipes/src/lib/currency.pipe.ts#L67)
10
-
11
- ## Constructors
12
-
13
- ### new CurrencyPipeModule()
14
-
15
- > **new CurrencyPipeModule**(): [`CurrencyPipeModule`](CurrencyPipeModule.md)
16
-
17
- #### Returns
18
-
19
- [`CurrencyPipeModule`](CurrencyPipeModule.md)
@@ -1,15 +0,0 @@
1
- [@rxap/pipes](../wiki/globals) / CurrencyPipeModule
2
-
3
- # Class: CurrencyPipeModule
4
-
5
- Defined in: [currency.pipe.ts:67](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f77230de9b76f6335a68f0ed3849/packages/angular/pipes/src/lib/currency.pipe.ts#L67)
6
-
7
- ## Constructors
8
-
9
- ### new CurrencyPipeModule()
10
-
11
- > **new CurrencyPipeModule**(): [`CurrencyPipeModule`](../wiki/Class.CurrencyPipeModule)
12
-
13
- #### Returns
14
-
15
- [`CurrencyPipeModule`](../wiki/Class.CurrencyPipeModule)
package/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export * from './lib/currency.pipe';
2
- export * from './lib/delete-identifier.pipe';
3
- export * from './lib/escape-quotation-mark.pipe';
4
- export * from './lib/get-from-object.pipe';
5
- export * from './lib/join.pipe';
6
- export * from './lib/limit.pipe';
7
- export * from './lib/replace.pipe';
8
- export * from './lib/slice.pipe';
9
- export * from './lib/to-display.pipe';
10
- export * from './lib/truncate.pipe';
@@ -1,48 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { CurrencyPipe } from '@angular/common';
3
- import * as i0 from "@angular/core";
4
- export declare class RxapCurrencyPipe implements PipeTransform {
5
- private readonly currency;
6
- constructor(currency: CurrencyPipe);
7
- /**
8
- *
9
- * @param value The number to be formatted as currency.
10
- * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
11
- * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
12
- * configured using the `DEFAULT_CURRENCY_CODE` injection token.
13
- * @param display The format for the currency indicator. One of the following:
14
- * - `code`: Show the code (such as `USD`).
15
- * - `symbol`(default): Show the symbol (such as `$`).
16
- * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
17
- * currency.
18
- * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
19
- * locale has no narrow symbol, uses the standard symbol for the locale.
20
- * - String: Use the given string value instead of a code or a symbol.
21
- * For example, an empty string will suppress the currency & symbol.
22
- * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
23
- *
24
- * @param digitsInfo Decimal representation options, specified by a string
25
- * in the following format:<br>
26
- * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
27
- * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
28
- * Default is `1`.
29
- * - `minFractionDigits`: The minimum number of digits after the decimal point.
30
- * Default is `2`.
31
- * - `maxFractionDigits`: The maximum number of digits after the decimal point.
32
- * Default is `2`.
33
- * If not provided, the number will be formatted with the proper amount of digits,
34
- * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
35
- * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
36
- * @param locale A locale code for the locale format rules to use.
37
- * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
38
- * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
39
- */
40
- transform(value: number, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<RxapCurrencyPipe, never>;
42
- static ɵpipe: i0.ɵɵPipeDeclaration<RxapCurrencyPipe, "currency", true>;
43
- }
44
- export declare class CurrencyPipeModule {
45
- static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPipeModule, never>;
46
- static ɵmod: i0.ɵɵNgModuleDeclaration<CurrencyPipeModule, never, [typeof RxapCurrencyPipe], [typeof RxapCurrencyPipe]>;
47
- static ɵinj: i0.ɵɵInjectorDeclaration<CurrencyPipeModule>;
48
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { WithIdentifier } from '@rxap/utilities';
3
- import * as i0 from "@angular/core";
4
- export declare class DeleteIdentifierPipe implements PipeTransform {
5
- transform<T>(value: (WithIdentifier & T) | null): T | null;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DeleteIdentifierPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<DeleteIdentifierPipe, "deleteIdentifier", true>;
8
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class EscapeQuotationMarkPipe implements PipeTransform {
4
- transform(value: string, reverse?: boolean): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<EscapeQuotationMarkPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<EscapeQuotationMarkPipe, "escapeQuotationMark", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GetFromObjectPipe implements PipeTransform {
4
- transform(value: any, path: string): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GetFromObjectPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<GetFromObjectPipe, "getFromObject", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class JoinPipe implements PipeTransform {
4
- transform(list: any[], separator?: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<JoinPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<JoinPipe, "join", true>;
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class LimitPipe implements PipeTransform {
4
- transform<T>(value: readonly T[], limit: number): T[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<LimitPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<LimitPipe, "limit", true>;
7
- }