@rxap/pipes 12.0.5 → 13.0.0-next.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 (59) hide show
  1. package/esm2020/index.mjs +7 -0
  2. package/esm2020/lib/currency.pipe.mjs +67 -0
  3. package/esm2020/lib/delete-identifier.pipe.mjs +38 -0
  4. package/esm2020/lib/escape-quotation-mark.pipe.mjs +34 -0
  5. package/esm2020/lib/get-from-object.pipe.mjs +29 -0
  6. package/esm2020/lib/replace.pipe.mjs +28 -0
  7. package/esm2020/lib/to-display.pipe.mjs +32 -0
  8. package/esm2020/rxap-pipes.mjs +5 -0
  9. package/esm2020/santization/lib/santization.module.mjs +17 -0
  10. package/esm2020/santization/lib/santization.pipe.mjs +21 -0
  11. package/esm2020/santization/lib/santization.service.mjs +40 -0
  12. package/esm2020/santization/public_api.mjs +4 -0
  13. package/esm2020/santization/rxap-pipes-santization.mjs +5 -0
  14. package/fesm2015/rxap-pipes-santization.mjs +80 -0
  15. package/fesm2015/rxap-pipes-santization.mjs.map +1 -0
  16. package/fesm2015/{rxap-pipes.js → rxap-pipes.mjs} +43 -43
  17. package/fesm2015/rxap-pipes.mjs.map +1 -0
  18. package/{fesm2015/rxap-pipes-santization.js → fesm2020/rxap-pipes-santization.mjs} +15 -12
  19. package/fesm2020/rxap-pipes-santization.mjs.map +1 -0
  20. package/fesm2020/rxap-pipes.mjs +222 -0
  21. package/fesm2020/rxap-pipes.mjs.map +1 -0
  22. package/package.json +35 -16
  23. package/santization/lib/santization.pipe.d.ts +1 -1
  24. package/santization/lib/santization.service.d.ts +1 -1
  25. package/santization/package.json +5 -5
  26. package/src/schematics/ng-add/index.js +1 -1
  27. package/src/schematics/ng-add/index.js.map +1 -1
  28. package/bundles/rxap-pipes-santization.umd.js +0 -114
  29. package/bundles/rxap-pipes-santization.umd.js.map +0 -1
  30. package/bundles/rxap-pipes.umd.js +0 -617
  31. package/bundles/rxap-pipes.umd.js.map +0 -1
  32. package/esm2015/index.js +0 -7
  33. package/esm2015/index.js.map +0 -1
  34. package/esm2015/lib/currency.pipe.js +0 -67
  35. package/esm2015/lib/currency.pipe.js.map +0 -1
  36. package/esm2015/lib/delete-identifier.pipe.js +0 -38
  37. package/esm2015/lib/delete-identifier.pipe.js.map +0 -1
  38. package/esm2015/lib/escape-quotation-mark.pipe.js +0 -34
  39. package/esm2015/lib/escape-quotation-mark.pipe.js.map +0 -1
  40. package/esm2015/lib/get-from-object.pipe.js +0 -29
  41. package/esm2015/lib/get-from-object.pipe.js.map +0 -1
  42. package/esm2015/lib/replace.pipe.js +0 -28
  43. package/esm2015/lib/replace.pipe.js.map +0 -1
  44. package/esm2015/lib/to-display.pipe.js +0 -32
  45. package/esm2015/lib/to-display.pipe.js.map +0 -1
  46. package/esm2015/rxap-pipes.js +0 -5
  47. package/esm2015/rxap-pipes.js.map +0 -1
  48. package/esm2015/santization/lib/santization.module.js +0 -17
  49. package/esm2015/santization/lib/santization.module.js.map +0 -1
  50. package/esm2015/santization/lib/santization.pipe.js +0 -21
  51. package/esm2015/santization/lib/santization.pipe.js.map +0 -1
  52. package/esm2015/santization/lib/santization.service.js +0 -37
  53. package/esm2015/santization/lib/santization.service.js.map +0 -1
  54. package/esm2015/santization/public_api.js +0 -4
  55. package/esm2015/santization/public_api.js.map +0 -1
  56. package/esm2015/santization/rxap-pipes-santization.js +0 -5
  57. package/esm2015/santization/rxap-pipes-santization.js.map +0 -1
  58. package/fesm2015/rxap-pipes-santization.js.map +0 -1
  59. package/fesm2015/rxap-pipes.js.map +0 -1
@@ -12,9 +12,9 @@ class ToDisplayPipe {
12
12
  return toDisplay(value);
13
13
  }
14
14
  }
15
- ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
- ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipe, decorators: [{
15
+ ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
+ ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipe, decorators: [{
18
18
  type: Pipe,
19
19
  args: [{
20
20
  name: 'toDisplay'
@@ -22,10 +22,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
22
22
  }] });
23
23
  class ToDisplayPipeModule {
24
24
  }
25
- ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
- ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
27
- ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
25
+ ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
+ ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
27
+ ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
29
29
  type: NgModule,
30
30
  args: [{
31
31
  declarations: [ToDisplayPipe],
@@ -38,9 +38,9 @@ class ReplacePipe {
38
38
  return value ? value.replace(replace, replaceValue) : '';
39
39
  }
40
40
  }
41
- ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
42
- ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipe, name: "replace" });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipe, decorators: [{
41
+ ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
42
+ ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipe, name: "replace" });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipe, decorators: [{
44
44
  type: Pipe,
45
45
  args: [{
46
46
  name: 'replace',
@@ -48,10 +48,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
48
48
  }] });
49
49
  class ReplacePipeModule {
50
50
  }
51
- ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
- ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
53
- ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule });
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule, decorators: [{
51
+ ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
+ ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
53
+ ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule, decorators: [{
55
55
  type: NgModule,
56
56
  args: [{
57
57
  declarations: [ReplacePipe],
@@ -69,9 +69,9 @@ class EscapeQuotationMarkPipe {
69
69
  }
70
70
  }
71
71
  }
72
- EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
73
- EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
72
+ EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
73
+ EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
75
75
  type: Pipe,
76
76
  args: [{
77
77
  name: 'escapeQuotationMark'
@@ -79,10 +79,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
79
79
  }] });
80
80
  class EscapeQuotationMarkPipeModule {
81
81
  }
82
- EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
- EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
84
- EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule });
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
82
+ EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
+ EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
84
+ EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule });
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
86
86
  type: NgModule,
87
87
  args: [{
88
88
  declarations: [EscapeQuotationMarkPipe],
@@ -131,9 +131,9 @@ class RxapCurrencyPipe {
131
131
  return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
132
132
  }
133
133
  }
134
- RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
135
- RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
134
+ RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
135
+ RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
137
137
  type: Pipe,
138
138
  args: [{
139
139
  name: 'currency'
@@ -141,10 +141,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
141
141
  }], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
142
142
  class CurrencyPipeModule {
143
143
  }
144
- CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
145
- CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
146
- CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, decorators: [{
144
+ CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
145
+ CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
146
+ CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
148
148
  type: NgModule,
149
149
  args: [{
150
150
  exports: [RxapCurrencyPipe],
@@ -167,9 +167,9 @@ class DeleteIdentifierPipe {
167
167
  return copy;
168
168
  }
169
169
  }
170
- DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
171
- DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
170
+ DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
171
+ DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
173
173
  type: Pipe,
174
174
  args: [{
175
175
  name: 'deleteIdentifier',
@@ -177,10 +177,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
177
177
  }] });
178
178
  class DeleteIdentifierPipeModule {
179
179
  }
180
- DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
181
- DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
182
- DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule });
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
180
+ DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
181
+ DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
182
+ DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule });
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
184
184
  type: NgModule,
185
185
  args: [{
186
186
  exports: [DeleteIdentifierPipe],
@@ -193,9 +193,9 @@ class GetFromObjectPipe {
193
193
  return getFromObject(value, path);
194
194
  }
195
195
  }
196
- GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
197
- GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipe, decorators: [{
196
+ GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
197
+ GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipe, decorators: [{
199
199
  type: Pipe,
200
200
  args: [{
201
201
  name: 'getFromObject'
@@ -203,10 +203,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
203
203
  }] });
204
204
  class GetFromObjectPipeModule {
205
205
  }
206
- GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
207
- GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
208
- GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule });
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
206
+ GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
207
+ GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
208
+ GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
210
210
  type: NgModule,
211
211
  args: [{
212
212
  exports: [GetFromObjectPipe],
@@ -219,4 +219,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
219
219
  */
220
220
 
221
221
  export { CurrencyPipeModule, DeleteIdentifierPipe, DeleteIdentifierPipeModule, EscapeQuotationMarkPipe, EscapeQuotationMarkPipeModule, GetFromObjectPipe, GetFromObjectPipeModule, ReplacePipe, ReplacePipeModule, RxapCurrencyPipe, ToDisplayPipe, ToDisplayPipeModule };
222
- //# sourceMappingURL=rxap-pipes.js.map
222
+ //# sourceMappingURL=rxap-pipes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-pipes.mjs","sources":["../../../../libs/pipes/src/lib/to-display.pipe.ts","../../../../libs/pipes/src/lib/replace.pipe.ts","../../../../libs/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../libs/pipes/src/lib/currency.pipe.ts","../../../../libs/pipes/src/lib/delete-identifier.pipe.ts","../../../../libs/pipes/src/lib/get-from-object.pipe.ts","../../../../libs/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay'\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@NgModule({\n declarations: [ ToDisplayPipe ],\n exports: [ ToDisplayPipe ]\n})\nexport class ToDisplayPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\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@NgModule({\n declarations: [ ReplacePipe ],\n exports: [ ReplacePipe ],\n})\nexport class ReplacePipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark'\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse: boolean = 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@NgModule({\n declarations: [ EscapeQuotationMarkPipe ],\n exports: [ EscapeQuotationMarkPipe ]\n})\nexport class EscapeQuotationMarkPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency'\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {}\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 exports: [ RxapCurrencyPipe ],\n declarations: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ]\n})\nexport class CurrencyPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport {\n WithIdentifier,\n hasIdentifierProperty,\n getIdentifierProperties,\n clone\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\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@NgModule({\n exports: [ DeleteIdentifierPipe ],\n declarations: [ DeleteIdentifierPipe ],\n})\nexport class DeleteIdentifierPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject'\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n@NgModule({\n exports: [ GetFromObjectPipe ],\n declarations: [ GetFromObjectPipe ]\n})\nexport class GetFromObjectPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,aAAa;IAH1B;QAKU,aAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;KAMnC;IAJQ,SAAS,CAAC,KAAU,EAAE,YAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS;QACjF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;KACzB;;0GANU,aAAa;wGAAb,aAAa;2FAAb,aAAa;kBAHzB,IAAI;mBAAC;oBACJ,IAAI,EAAE,WAAW;iBAClB;;MAeY,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAdnB,aAAa,aAAb,aAAa;iHAcb,mBAAmB;2FAAnB,mBAAmB;kBAJ/B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,aAAa,CAAE;oBAC/B,OAAO,EAAO,CAAE,aAAa,CAAE;iBAChC;;;MCfY,WAAW;IAEf,SAAS,CAAC,KAAa,EAAE,OAAe,EAAE,YAAoB;QACnE,OAAO,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC;KAC1D;;wGAJU,WAAW;sGAAX,WAAW;2FAAX,WAAW;kBAHvB,IAAI;mBAAC;oBACJ,IAAI,EAAE,SAAS;iBAChB;;MAaY,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAZjB,WAAW,aAAX,WAAW;+GAYX,iBAAiB;2FAAjB,iBAAiB;kBAJ7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,WAAW,CAAE;oBAC7B,OAAO,EAAO,CA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,CAAE,iBAAiB,CAAE;iBACpC;;;ACnBD;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Inject, Pipe, NgModule } from '@angular/core';
2
+ import { SecurityContext, Injectable, Inject, Pipe, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/platform-browser';
4
4
  import { DomSanitizer } from '@angular/platform-browser';
5
5
 
@@ -9,6 +9,9 @@ class SantizationService {
9
9
  this._sanitizer = _sanitizer;
10
10
  }
11
11
  transform(value, type = 'url') {
12
+ if (value === null) {
13
+ return this._sanitizer.sanitize(SecurityContext.NONE, value);
14
+ }
12
15
  switch (type) {
13
16
  case 'html':
14
17
  return this._sanitizer.bypassSecurityTrustHtml(value);
@@ -24,9 +27,9 @@ class SantizationService {
24
27
  throw new Error('type is not set');
25
28
  }
26
29
  }
27
- SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
28
- SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationService, providedIn: 'root' });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationService, decorators: [{
30
+ SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
31
+ SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationService, providedIn: 'root' });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationService, decorators: [{
30
33
  type: Injectable,
31
34
  args: [{
32
35
  providedIn: 'root'
@@ -44,9 +47,9 @@ class SantizationPipe {
44
47
  return this.santizationService.transform(value, type);
45
48
  }
46
49
  }
47
- SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationPipe, deps: [{ token: SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
48
- SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationPipe, name: "santization" });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationPipe, decorators: [{
50
+ SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationPipe, deps: [{ token: SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
51
+ SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationPipe, name: "santization" });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationPipe, decorators: [{
50
53
  type: Pipe,
51
54
  args: [{
52
55
  name: 'santization',
@@ -55,10 +58,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
55
58
 
56
59
  class SantizationModule {
57
60
  }
58
- SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
59
- SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
60
- SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, imports: [[]] });
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, decorators: [{
61
+ SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
62
+ SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
63
+ SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationModule, imports: [[]] });
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SantizationModule, decorators: [{
62
65
  type: NgModule,
63
66
  args: [{
64
67
  declarations: [SantizationPipe],
@@ -72,4 +75,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
72
75
  */
73
76
 
74
77
  export { SantizationModule, SantizationPipe, SantizationService };
75
- //# sourceMappingURL=rxap-pipes-santization.js.map
78
+ //# sourceMappingURL=rxap-pipes-santization.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-pipes-santization.mjs","sources":["../../../../libs/pipes/santization/src/lib/santization.service.ts","../../../../libs/pipes/santization/src/lib/santization.pipe.ts","../../../../libs/pipes/santization/src/lib/santization.module.ts","../../../../libs/pipes/santization/src/rxap-pipes-santization.ts"],"sourcesContent":["import {\n Inject,\n Injectable,\n SecurityContext\n} from '@angular/core';\nimport {\n DomSanitizer,\n SafeValue\n} from '@angular/platform-browser';\n\n// TODO : move to @rxap/services\n@Injectable({\n providedIn: 'root'\n})\nexport class SantizationService {\n constructor(@Inject(DomSanitizer) private _sanitizer: DomSanitizer) {}\n\n transform(\n value: string | null,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url'\n ): SafeValue | null {\n if (value === null) {\n return this._sanitizer.sanitize(SecurityContext.NONE, value);\n }\n switch (type) {\n case 'html':\n return this._sanitizer.bypassSecurityTrustHtml(value);\n\n case 'style':\n return this._sanitizer.bypassSecurityTrustStyle(value);\n\n case 'script':\n return this._sanitizer.bypassSecurityTrustScript(value);\n\n case 'url':\n return this._sanitizer.bypassSecurityTrustUrl(value);\n\n case 'resourceUrl':\n return this._sanitizer.bypassSecurityTrustResourceUrl(value);\n }\n\n throw new Error('type is not set');\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { SafeValue } from '@angular/platform-browser';\nimport { SantizationService } from './santization.service';\n\n@Pipe({\n name: 'santization',\n})\nexport class SantizationPipe implements PipeTransform {\n constructor(private readonly santizationService: SantizationService) {}\n\n transform(\n value: string | null,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url'\n ): SafeValue | null {\n return this.santizationService.transform(value, type);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SantizationPipe } from './santization.pipe';\n\n@NgModule({\n declarations: [ SantizationPipe ],\n imports: [],\n exports: [ SantizationPipe ]\n})\nexport class SantizationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;AAUA;MAIa,kBAAkB;IAC7B,YAA0C,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;KAAI;IAEtE,SAAS,CACP,KAAoB,EACpB,OAA4D,KAAK;QAEjE,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC9D;QACD,QAAQ,IAAI;YACV,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;YAExD,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;YAEzD,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAE1D,KAAK,KAAK;gBACR,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAEvD,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;SAChE;QAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACpC;;+GA5BU,kBAAkB,kBACT,YAAY;mHADrB,kBAAkB,cAFjB,MAAM;2FAEP,kBAAkB;kBAH9B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;0BAEc,MAAM;2BAAC,YAAY;;;MCRrB,eAAe;IAC1B,YAA6B,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;KAAI;IAEvE,SAAS,CACP,KAAoB,EACpB,OAA4D,KAAK;QAEjE,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACvD;;4GARU,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAH3B,IAAI;mBAAC;oBACJ,IAAI,EAAE,aAAa;iBACpB;;;MCEY,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAJZ,eAAe,aAEf,eAAe;+GAEpB,iBAAiB,YAHd,EAAE;2FAGL,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,eAAe,CAAE;oBACjC,OAAO,EAAO,EAAE;oBAChB,OAAO,EAAO,CAAE,eAAe,CAAE;iBAClC;;;ACPD;;;;;;"}
@@ -0,0 +1,222 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { JsonPipe, CurrencyPipe } from '@angular/common';
5
+ import { clone, hasIdentifierProperty, getIdentifierProperties, getFromObject } from '@rxap/utilities';
6
+
7
+ class ToDisplayPipe {
8
+ constructor() {
9
+ this.jsonPipe = new JsonPipe();
10
+ }
11
+ transform(value, toDisplay = this.jsonPipe.transform) {
12
+ return toDisplay(value);
13
+ }
14
+ }
15
+ ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
+ ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipe, decorators: [{
18
+ type: Pipe,
19
+ args: [{
20
+ name: 'toDisplay'
21
+ }]
22
+ }] });
23
+ class ToDisplayPipeModule {
24
+ }
25
+ ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
+ ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
27
+ ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
29
+ type: NgModule,
30
+ args: [{
31
+ declarations: [ToDisplayPipe],
32
+ exports: [ToDisplayPipe]
33
+ }]
34
+ }] });
35
+
36
+ class ReplacePipe {
37
+ transform(value, replace, replaceValue) {
38
+ return value ? value.replace(replace, replaceValue) : '';
39
+ }
40
+ }
41
+ ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
42
+ ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipe, name: "replace" });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipe, decorators: [{
44
+ type: Pipe,
45
+ args: [{
46
+ name: 'replace',
47
+ }]
48
+ }] });
49
+ class ReplacePipeModule {
50
+ }
51
+ ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
+ ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
53
+ ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ReplacePipeModule, decorators: [{
55
+ type: NgModule,
56
+ args: [{
57
+ declarations: [ReplacePipe],
58
+ exports: [ReplacePipe],
59
+ }]
60
+ }] });
61
+
62
+ class EscapeQuotationMarkPipe {
63
+ transform(value, reverse = false) {
64
+ if (reverse) {
65
+ return new ReplacePipe().transform(value, /\\"/g, '"');
66
+ }
67
+ else {
68
+ return new ReplacePipe().transform(value, /"/g, '\"');
69
+ }
70
+ }
71
+ }
72
+ EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
73
+ EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
75
+ type: Pipe,
76
+ args: [{
77
+ name: 'escapeQuotationMark'
78
+ }]
79
+ }] });
80
+ class EscapeQuotationMarkPipeModule {
81
+ }
82
+ EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
+ EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
84
+ EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule });
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
86
+ type: NgModule,
87
+ args: [{
88
+ declarations: [EscapeQuotationMarkPipe],
89
+ exports: [EscapeQuotationMarkPipe]
90
+ }]
91
+ }] });
92
+
93
+ class RxapCurrencyPipe {
94
+ constructor(currency) {
95
+ this.currency = currency;
96
+ }
97
+ /**
98
+ *
99
+ * @param value The number to be formatted as currency.
100
+ * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
101
+ * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
102
+ * configured using the `DEFAULT_CURRENCY_CODE` injection token.
103
+ * @param display The format for the currency indicator. One of the following:
104
+ * - `code`: Show the code (such as `USD`).
105
+ * - `symbol`(default): Show the symbol (such as `$`).
106
+ * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
107
+ * currency.
108
+ * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
109
+ * locale has no narrow symbol, uses the standard symbol for the locale.
110
+ * - String: Use the given string value instead of a code or a symbol.
111
+ * For example, an empty string will suppress the currency & symbol.
112
+ * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
113
+ *
114
+ * @param digitsInfo Decimal representation options, specified by a string
115
+ * in the following format:<br>
116
+ * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
117
+ * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
118
+ * Default is `1`.
119
+ * - `minFractionDigits`: The minimum number of digits after the decimal point.
120
+ * Default is `2`.
121
+ * - `maxFractionDigits`: The maximum number of digits after the decimal point.
122
+ * Default is `2`.
123
+ * If not provided, the number will be formatted with the proper amount of digits,
124
+ * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
125
+ * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
126
+ * @param locale A locale code for the locale format rules to use.
127
+ * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
128
+ * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
129
+ */
130
+ transform(value, currencyCode, display, digitsInfo, locale) {
131
+ return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
132
+ }
133
+ }
134
+ RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
135
+ RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
137
+ type: Pipe,
138
+ args: [{
139
+ name: 'currency'
140
+ }]
141
+ }], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
142
+ class CurrencyPipeModule {
143
+ }
144
+ CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
145
+ CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
146
+ CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
148
+ type: NgModule,
149
+ args: [{
150
+ exports: [RxapCurrencyPipe],
151
+ declarations: [RxapCurrencyPipe],
152
+ providers: [CurrencyPipe]
153
+ }]
154
+ }] });
155
+
156
+ class DeleteIdentifierPipe {
157
+ transform(value) {
158
+ if (!value) {
159
+ return value;
160
+ }
161
+ const copy = clone(value);
162
+ if (hasIdentifierProperty(copy)) {
163
+ for (const pk of getIdentifierProperties(copy)) {
164
+ delete copy[pk];
165
+ }
166
+ }
167
+ return copy;
168
+ }
169
+ }
170
+ DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
171
+ DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
173
+ type: Pipe,
174
+ args: [{
175
+ name: 'deleteIdentifier',
176
+ }]
177
+ }] });
178
+ class DeleteIdentifierPipeModule {
179
+ }
180
+ DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
181
+ DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
182
+ DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule });
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
184
+ type: NgModule,
185
+ args: [{
186
+ exports: [DeleteIdentifierPipe],
187
+ declarations: [DeleteIdentifierPipe],
188
+ }]
189
+ }] });
190
+
191
+ class GetFromObjectPipe {
192
+ transform(value, path) {
193
+ return getFromObject(value, path);
194
+ }
195
+ }
196
+ GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
197
+ GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipe, decorators: [{
199
+ type: Pipe,
200
+ args: [{
201
+ name: 'getFromObject'
202
+ }]
203
+ }] });
204
+ class GetFromObjectPipeModule {
205
+ }
206
+ GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
207
+ GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
208
+ GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
210
+ type: NgModule,
211
+ args: [{
212
+ exports: [GetFromObjectPipe],
213
+ declarations: [GetFromObjectPipe]
214
+ }]
215
+ }] });
216
+
217
+ /**
218
+ * Generated bundle index. Do not edit.
219
+ */
220
+
221
+ export { CurrencyPipeModule, DeleteIdentifierPipe, DeleteIdentifierPipeModule, EscapeQuotationMarkPipe, EscapeQuotationMarkPipeModule, GetFromObjectPipe, GetFromObjectPipeModule, ReplacePipe, ReplacePipeModule, RxapCurrencyPipe, ToDisplayPipe, ToDisplayPipeModule };
222
+ //# sourceMappingURL=rxap-pipes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-pipes.mjs","sources":["../../../../libs/pipes/src/lib/to-display.pipe.ts","../../../../libs/pipes/src/lib/replace.pipe.ts","../../../../libs/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../libs/pipes/src/lib/currency.pipe.ts","../../../../libs/pipes/src/lib/delete-identifier.pipe.ts","../../../../libs/pipes/src/lib/get-from-object.pipe.ts","../../../../libs/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay'\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@NgModule({\n declarations: [ ToDisplayPipe ],\n exports: [ ToDisplayPipe ]\n})\nexport class ToDisplayPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\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@NgModule({\n declarations: [ ReplacePipe ],\n exports: [ ReplacePipe ],\n})\nexport class ReplacePipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark'\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse: boolean = 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@NgModule({\n declarations: [ EscapeQuotationMarkPipe ],\n exports: [ EscapeQuotationMarkPipe ]\n})\nexport class EscapeQuotationMarkPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency'\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {}\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 exports: [ RxapCurrencyPipe ],\n declarations: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ]\n})\nexport class CurrencyPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport {\n WithIdentifier,\n hasIdentifierProperty,\n getIdentifierProperties,\n clone\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\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@NgModule({\n exports: [ DeleteIdentifierPipe ],\n declarations: [ DeleteIdentifierPipe ],\n})\nexport class DeleteIdentifierPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject'\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n@NgModule({\n exports: [ GetFromObjectPipe ],\n declarations: [ GetFromObjectPipe ]\n})\nexport class GetFromObjectPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,aAAa;IAH1B;QAKU,aAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;KAMnC;IAJQ,SAAS,CAAC,KAAU,EAAE,YAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS;QACjF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;KACzB;;0GANU,aAAa;wGAAb,aAAa;2FAAb,aAAa;kBAHzB,IAAI;mBAAC;oBACJ,IAAI,EAAE,WAAW;iBAClB;;MAeY,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAdnB,aAAa,aAAb,aAAa;iHAcb,mBAAmB;2FAAnB,mBAAmB;kBAJ/B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,aAAa,CAAE;oBAC/B,OAAO,EAAO,CAAE,aAAa,CAAE;iBAChC;;;MCfY,WAAW;IAEf,SAAS,CAAC,KAAa,EAAE,OAAe,EAAE,YAAoB;QACnE,OAAO,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC;KAC1D;;wGAJU,WAAW;sGAAX,WAAW;2FAAX,WAAW;kBAHvB,IAAI;mBAAC;oB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,IAAI,EAAE,eAAe;iBACtB;;MAWY,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAVvB,iBAAiB,aAAjB,iBAAiB;qHAUjB,uBAAuB;2FAAvB,uBAAuB;kBAJnC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,iBAAiB,CAAE;oBACnC,YAAY,EAAE,CAAE,iBAAiB,CAAE;iBACpC;;;ACnBD;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/pipes",
3
- "version": "12.0.5",
3
+ "version": "13.0.0-next.1",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/pipes",
@@ -16,14 +16,12 @@
16
16
  },
17
17
  "description": "A collection of utility angular pipes used in RxAP.",
18
18
  "peerDependencies": {
19
- "@angular/common": "^12.0.1",
20
- "@angular/core": "^12.0.1",
21
- "@angular/platform-browser": "^12.0.1",
22
- "@rxap/schematics-utilities": "^12.1.0",
23
- "@rxap/utilities": "^12.1.3",
24
- "@storybook/addon-knobs": "^6.2.9",
25
- "@storybook/angular": "^6.2.9",
26
- "jest-preset-angular": "^8.4.0",
19
+ "@angular-devkit/schematics": "^13.2.4",
20
+ "@angular/common": "^13.2.3",
21
+ "@angular/core": "^13.2.3",
22
+ "@angular/platform-browser": "^13.2.3",
23
+ "@angular/platform-browser-dynamic": "^13.2.3",
24
+ "@rxap/utilities": "^13.0.0-next.0",
27
25
  "reflect-metadata": "^0.1.13",
28
26
  "rxjs": "^6.5.5"
29
27
  },
@@ -32,7 +30,6 @@
32
30
  "migrations": "./migration.json",
33
31
  "packageGroup": [
34
32
  "@rxap/pipes",
35
- "@rxap/schematics-utilities",
36
33
  "@rxap/utilities"
37
34
  ]
38
35
  },
@@ -44,13 +41,35 @@
44
41
  "save": "dependencies"
45
42
  },
46
43
  "dependencies": {
47
- "tslib": "^2.1.0"
44
+ "@rxap/schematics-utilities": "^13.0.0-next.0",
45
+ "tslib": "^2.3.1"
48
46
  },
49
- "main": "bundles/rxap-pipes.umd.js",
50
- "module": "fesm2015/rxap-pipes.js",
51
- "es2015": "fesm2015/rxap-pipes.js",
52
- "esm2015": "esm2015/rxap-pipes.js",
53
- "fesm2015": "fesm2015/rxap-pipes.js",
47
+ "module": "fesm2015/rxap-pipes.mjs",
48
+ "es2020": "fesm2020/rxap-pipes.mjs",
49
+ "esm2020": "esm2020/rxap-pipes.mjs",
50
+ "fesm2020": "fesm2020/rxap-pipes.mjs",
51
+ "fesm2015": "fesm2015/rxap-pipes.mjs",
54
52
  "typings": "rxap-pipes.d.ts",
53
+ "exports": {
54
+ "./package.json": {
55
+ "default": "./package.json"
56
+ },
57
+ ".": {
58
+ "types": "./rxap-pipes.d.ts",
59
+ "esm2020": "./esm2020/rxap-pipes.mjs",
60
+ "es2020": "./fesm2020/rxap-pipes.mjs",
61
+ "es2015": "./fesm2015/rxap-pipes.mjs",
62
+ "node": "./fesm2015/rxap-pipes.mjs",
63
+ "default": "./fesm2020/rxap-pipes.mjs"
64
+ },
65
+ "./santization": {
66
+ "types": "./santization/rxap-pipes-santization.d.ts",
67
+ "esm2020": "./esm2020/santization/rxap-pipes-santization.mjs",
68
+ "es2020": "./fesm2020/rxap-pipes-santization.mjs",
69
+ "es2015": "./fesm2015/rxap-pipes-santization.mjs",
70
+ "node": "./fesm2015/rxap-pipes-santization.mjs",
71
+ "default": "./fesm2020/rxap-pipes-santization.mjs"
72
+ }
73
+ },
55
74
  "sideEffects": false
56
75
  }
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class SantizationPipe implements PipeTransform {
6
6
  private readonly santizationService;
7
7
  constructor(santizationService: SantizationService);
8
- transform(value: string, type?: 'html' | 'style' | 'script' | 'url' | 'resourceUrl'): SafeValue;
8
+ transform(value: string | null, type?: 'html' | 'style' | 'script' | 'url' | 'resourceUrl'): SafeValue | null;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SantizationPipe, never>;
10
10
  static ɵpipe: i0.ɵɵPipeDeclaration<SantizationPipe, "santization">;
11
11
  }