@rxap/pipes 15.0.0 → 16.0.0-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.
- package/esm2022/lib/currency.pipe.mjs +69 -0
- package/esm2022/lib/delete-identifier.pipe.mjs +40 -0
- package/esm2022/lib/escape-quotation-mark.pipe.mjs +36 -0
- package/esm2022/lib/get-from-object.pipe.mjs +31 -0
- package/esm2022/lib/replace.pipe.mjs +30 -0
- package/esm2022/lib/to-display.pipe.mjs +34 -0
- package/esm2022/santization/lib/santization.module.mjs +18 -0
- package/esm2022/santization/lib/santization.pipe.mjs +22 -0
- package/esm2022/santization/lib/santization.service.mjs +41 -0
- package/{fesm2020 → fesm2022}/rxap-pipes-santization.mjs +10 -11
- package/fesm2022/rxap-pipes-santization.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/rxap-pipes.mjs +42 -43
- package/fesm2022/rxap-pipes.mjs.map +1 -0
- package/package.json +14 -22
- package/esm2020/lib/currency.pipe.mjs +0 -67
- package/esm2020/lib/delete-identifier.pipe.mjs +0 -38
- package/esm2020/lib/escape-quotation-mark.pipe.mjs +0 -34
- package/esm2020/lib/get-from-object.pipe.mjs +0 -29
- package/esm2020/lib/replace.pipe.mjs +0 -28
- package/esm2020/lib/to-display.pipe.mjs +0 -32
- package/esm2020/santization/lib/santization.module.mjs +0 -17
- package/esm2020/santization/lib/santization.pipe.mjs +0 -21
- package/esm2020/santization/lib/santization.service.mjs +0 -40
- package/fesm2015/rxap-pipes-santization.mjs +0 -81
- package/fesm2015/rxap-pipes-santization.mjs.map +0 -1
- package/fesm2015/rxap-pipes.mjs.map +0 -1
- package/fesm2020/rxap-pipes-santization.mjs.map +0 -1
- package/fesm2020/rxap-pipes.mjs +0 -223
- package/fesm2020/rxap-pipes.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/rxap-pipes.mjs +0 -0
- /package/{esm2020 → esm2022}/santization/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/santization/rxap-pipes-santization.mjs +0 -0
|
@@ -11,21 +11,21 @@ class ToDisplayPipe {
|
|
|
11
11
|
transform(value, toDisplay = this.jsonPipe.transform) {
|
|
12
12
|
return toDisplay(value);
|
|
13
13
|
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
15
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" }); }
|
|
14
16
|
}
|
|
15
|
-
|
|
16
|
-
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipe, decorators: [{
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipe, decorators: [{
|
|
18
18
|
type: Pipe,
|
|
19
19
|
args: [{
|
|
20
20
|
name: 'toDisplay'
|
|
21
21
|
}]
|
|
22
22
|
}] });
|
|
23
23
|
class ToDisplayPipeModule {
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
25
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] }); }
|
|
26
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipeModule }); }
|
|
24
27
|
}
|
|
25
|
-
|
|
26
|
-
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
|
|
27
|
-
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
|
|
29
29
|
type: NgModule,
|
|
30
30
|
args: [{
|
|
31
31
|
declarations: [ToDisplayPipe],
|
|
@@ -37,21 +37,21 @@ class ReplacePipe {
|
|
|
37
37
|
transform(value, replace, replaceValue) {
|
|
38
38
|
return value ? value.replace(replace, replaceValue) : '';
|
|
39
39
|
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
41
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipe, name: "replace" }); }
|
|
40
42
|
}
|
|
41
|
-
|
|
42
|
-
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipe, name: "replace" });
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipe, decorators: [{
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipe, decorators: [{
|
|
44
44
|
type: Pipe,
|
|
45
45
|
args: [{
|
|
46
46
|
name: 'replace',
|
|
47
47
|
}]
|
|
48
48
|
}] });
|
|
49
49
|
class ReplacePipeModule {
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
51
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] }); }
|
|
52
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipeModule }); }
|
|
50
53
|
}
|
|
51
|
-
|
|
52
|
-
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
|
|
53
|
-
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule });
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule, decorators: [{
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ReplacePipeModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
57
|
declarations: [ReplacePipe],
|
|
@@ -68,21 +68,21 @@ class EscapeQuotationMarkPipe {
|
|
|
68
68
|
return new ReplacePipe().transform(value, /"/g, '\"');
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
72
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" }); }
|
|
71
73
|
}
|
|
72
|
-
|
|
73
|
-
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
|
|
75
75
|
type: Pipe,
|
|
76
76
|
args: [{
|
|
77
77
|
name: 'escapeQuotationMark'
|
|
78
78
|
}]
|
|
79
79
|
}] });
|
|
80
80
|
class EscapeQuotationMarkPipeModule {
|
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
82
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] }); }
|
|
83
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipeModule }); }
|
|
81
84
|
}
|
|
82
|
-
|
|
83
|
-
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
|
|
84
|
-
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule });
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
|
|
86
86
|
type: NgModule,
|
|
87
87
|
args: [{
|
|
88
88
|
declarations: [EscapeQuotationMarkPipe],
|
|
@@ -130,21 +130,21 @@ class RxapCurrencyPipe {
|
|
|
130
130
|
transform(value, currencyCode, display, digitsInfo, locale) {
|
|
131
131
|
return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
|
|
132
132
|
}
|
|
133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
134
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: RxapCurrencyPipe, name: "currency" }); }
|
|
133
135
|
}
|
|
134
|
-
|
|
135
|
-
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
|
|
137
137
|
type: Pipe,
|
|
138
138
|
args: [{
|
|
139
139
|
name: 'currency'
|
|
140
140
|
}]
|
|
141
141
|
}], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
|
|
142
142
|
class CurrencyPipeModule {
|
|
143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
144
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] }); }
|
|
145
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] }); }
|
|
143
146
|
}
|
|
144
|
-
|
|
145
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
|
|
146
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
|
148
148
|
type: NgModule,
|
|
149
149
|
args: [{
|
|
150
150
|
exports: [RxapCurrencyPipe],
|
|
@@ -166,21 +166,21 @@ class DeleteIdentifierPipe {
|
|
|
166
166
|
}
|
|
167
167
|
return copy;
|
|
168
168
|
}
|
|
169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
170
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" }); }
|
|
169
171
|
}
|
|
170
|
-
|
|
171
|
-
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
|
|
173
173
|
type: Pipe,
|
|
174
174
|
args: [{
|
|
175
175
|
name: 'deleteIdentifier',
|
|
176
176
|
}]
|
|
177
177
|
}] });
|
|
178
178
|
class DeleteIdentifierPipeModule {
|
|
179
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
180
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] }); }
|
|
181
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipeModule }); }
|
|
179
182
|
}
|
|
180
|
-
|
|
181
|
-
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
|
|
182
|
-
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule });
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
|
|
184
184
|
type: NgModule,
|
|
185
185
|
args: [{
|
|
186
186
|
exports: [DeleteIdentifierPipe],
|
|
@@ -192,21 +192,21 @@ class GetFromObjectPipe {
|
|
|
192
192
|
transform(value, path) {
|
|
193
193
|
return getFromObject(value, path);
|
|
194
194
|
}
|
|
195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
196
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" }); }
|
|
195
197
|
}
|
|
196
|
-
|
|
197
|
-
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipe, decorators: [{
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipe, decorators: [{
|
|
199
199
|
type: Pipe,
|
|
200
200
|
args: [{
|
|
201
201
|
name: 'getFromObject'
|
|
202
202
|
}]
|
|
203
203
|
}] });
|
|
204
204
|
class GetFromObjectPipeModule {
|
|
205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
206
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] }); }
|
|
207
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipeModule }); }
|
|
205
208
|
}
|
|
206
|
-
|
|
207
|
-
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
|
|
208
|
-
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule });
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
210
210
|
type: NgModule,
|
|
211
211
|
args: [{
|
|
212
212
|
exports: [GetFromObjectPipe],
|
|
@@ -220,4 +220,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
220
220
|
|
|
221
221
|
export { CurrencyPipeModule, DeleteIdentifierPipe, DeleteIdentifierPipeModule, EscapeQuotationMarkPipe, EscapeQuotationMarkPipeModule, GetFromObjectPipe, GetFromObjectPipeModule, ReplacePipe, ReplacePipeModule, RxapCurrencyPipe, ToDisplayPipe, ToDisplayPipeModule };
|
|
222
222
|
//# sourceMappingURL=rxap-pipes.mjs.map
|
|
223
|
-
//# 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":";;;;;;AAQA,MAGa,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAKU,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;AAMnC,KAAA;IAJQ,SAAS,CAAC,KAAU,EAAE,SAAA,GAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAA;AACjF,QA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EAAA,OAAA,EAAA,CAAjB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAUjB,uBAAuB,EAAA,CAAA,CAAA,EAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAO,CAAE,iBAAiB,CAAE;oBACnC,YAAY,EAAE,CAAE,iBAAiB,CAAE;AACpC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/pipes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-dev.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Merzough Münker",
|
|
6
6
|
"homepage": "https://gitlab.com/rxap/packages/libs/pipes",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"description": "A collection of utility angular pipes used in RxAP.",
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@angular-devkit/schematics": "^15.0.3",
|
|
20
|
-
"@angular/common": "^
|
|
21
|
-
"@angular/core": "^
|
|
22
|
-
"@angular/platform-browser": "^
|
|
23
|
-
"@angular/platform-browser-dynamic": "^
|
|
24
|
-
"@rxap/utilities": "^
|
|
20
|
+
"@angular/common": "^16.0.2",
|
|
21
|
+
"@angular/core": "^16.0.2",
|
|
22
|
+
"@angular/platform-browser": "^16.0.2",
|
|
23
|
+
"@angular/platform-browser-dynamic": "^16.0.2",
|
|
24
|
+
"@rxap/utilities": "^16.0.0-dev.1",
|
|
25
25
|
"reflect-metadata": "^0.1.13",
|
|
26
26
|
"rxjs": "^6.6.0"
|
|
27
27
|
},
|
|
@@ -41,14 +41,10 @@
|
|
|
41
41
|
"save": "dependencies"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@rxap/schematics-utilities": "^
|
|
44
|
+
"@rxap/schematics-utilities": "^16.0.0-dev.1",
|
|
45
45
|
"tslib": "^2.3.1"
|
|
46
46
|
},
|
|
47
|
-
"module": "
|
|
48
|
-
"es2020": "fesm2020/rxap-pipes.mjs",
|
|
49
|
-
"esm2020": "esm2020/rxap-pipes.mjs",
|
|
50
|
-
"fesm2020": "fesm2020/rxap-pipes.mjs",
|
|
51
|
-
"fesm2015": "fesm2015/rxap-pipes.mjs",
|
|
47
|
+
"module": "fesm2022/rxap-pipes.mjs",
|
|
52
48
|
"typings": "index.d.ts",
|
|
53
49
|
"exports": {
|
|
54
50
|
"./package.json": {
|
|
@@ -56,19 +52,15 @@
|
|
|
56
52
|
},
|
|
57
53
|
".": {
|
|
58
54
|
"types": "./index.d.ts",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"node": "./fesm2015/rxap-pipes.mjs",
|
|
63
|
-
"default": "./fesm2020/rxap-pipes.mjs"
|
|
55
|
+
"esm2022": "./esm2022/rxap-pipes.mjs",
|
|
56
|
+
"esm": "./esm2022/rxap-pipes.mjs",
|
|
57
|
+
"default": "./fesm2022/rxap-pipes.mjs"
|
|
64
58
|
},
|
|
65
59
|
"./santization": {
|
|
66
60
|
"types": "./santization/index.d.ts",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"node": "./fesm2015/rxap-pipes-santization.mjs",
|
|
71
|
-
"default": "./fesm2020/rxap-pipes-santization.mjs"
|
|
61
|
+
"esm2022": "./esm2022/santization/rxap-pipes-santization.mjs",
|
|
62
|
+
"esm": "./esm2022/santization/rxap-pipes-santization.mjs",
|
|
63
|
+
"default": "./fesm2022/rxap-pipes-santization.mjs"
|
|
72
64
|
}
|
|
73
65
|
},
|
|
74
66
|
"sideEffects": false
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { CurrencyPipe } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export class RxapCurrencyPipe {
|
|
6
|
-
constructor(currency) {
|
|
7
|
-
this.currency = currency;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param value The number to be formatted as currency.
|
|
12
|
-
* @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
|
|
13
|
-
* such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
|
|
14
|
-
* configured using the `DEFAULT_CURRENCY_CODE` injection token.
|
|
15
|
-
* @param display The format for the currency indicator. One of the following:
|
|
16
|
-
* - `code`: Show the code (such as `USD`).
|
|
17
|
-
* - `symbol`(default): Show the symbol (such as `$`).
|
|
18
|
-
* - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
|
|
19
|
-
* currency.
|
|
20
|
-
* For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
|
|
21
|
-
* locale has no narrow symbol, uses the standard symbol for the locale.
|
|
22
|
-
* - String: Use the given string value instead of a code or a symbol.
|
|
23
|
-
* For example, an empty string will suppress the currency & symbol.
|
|
24
|
-
* - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
|
|
25
|
-
*
|
|
26
|
-
* @param digitsInfo Decimal representation options, specified by a string
|
|
27
|
-
* in the following format:<br>
|
|
28
|
-
* <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
|
|
29
|
-
* - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
|
|
30
|
-
* Default is `1`.
|
|
31
|
-
* - `minFractionDigits`: The minimum number of digits after the decimal point.
|
|
32
|
-
* Default is `2`.
|
|
33
|
-
* - `maxFractionDigits`: The maximum number of digits after the decimal point.
|
|
34
|
-
* Default is `2`.
|
|
35
|
-
* If not provided, the number will be formatted with the proper amount of digits,
|
|
36
|
-
* depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
|
|
37
|
-
* For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
|
|
38
|
-
* @param locale A locale code for the locale format rules to use.
|
|
39
|
-
* When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
|
|
40
|
-
* See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
|
|
41
|
-
*/
|
|
42
|
-
transform(value, currencyCode, display, digitsInfo, locale) {
|
|
43
|
-
return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
47
|
-
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
|
|
49
|
-
type: Pipe,
|
|
50
|
-
args: [{
|
|
51
|
-
name: 'currency'
|
|
52
|
-
}]
|
|
53
|
-
}], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
|
|
54
|
-
export class CurrencyPipeModule {
|
|
55
|
-
}
|
|
56
|
-
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
57
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
|
|
58
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
|
60
|
-
type: NgModule,
|
|
61
|
-
args: [{
|
|
62
|
-
exports: [RxapCurrencyPipe],
|
|
63
|
-
declarations: [RxapCurrencyPipe],
|
|
64
|
-
providers: [CurrencyPipe]
|
|
65
|
-
}]
|
|
66
|
-
}] });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcGlwZXMvc3JjL2xpYi9jdXJyZW5jeS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxJQUFJLEVBRUosUUFBUSxFQUNULE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7O0FBSy9DLE1BQU0sT0FBTyxnQkFBZ0I7SUFFM0IsWUFBNkIsUUFBc0I7UUFBdEIsYUFBUSxHQUFSLFFBQVEsQ0FBYztJQUFHLENBQUM7SUFFdkQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BZ0NHO0lBQ0ksU0FBUyxDQUNkLEtBQWEsRUFDYixZQUFxQixFQUNyQixPQUFnRSxFQUNoRSxVQUFtQixFQUNuQixNQUFlO1FBRWYsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEdBQUcsR0FBRyxFQUFFLFlBQVksRUFBRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQ3pGLENBQUM7OzZHQTdDVSxnQkFBZ0I7MkdBQWhCLGdCQUFnQ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
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { hasIdentifierProperty, getIdentifierProperties, clone } from '@rxap/utilities';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class DeleteIdentifierPipe {
|
|
5
|
-
transform(value) {
|
|
6
|
-
if (!value) {
|
|
7
|
-
return value;
|
|
8
|
-
}
|
|
9
|
-
const copy = clone(value);
|
|
10
|
-
if (hasIdentifierProperty(copy)) {
|
|
11
|
-
for (const pk of getIdentifierProperties(copy)) {
|
|
12
|
-
delete copy[pk];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return copy;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
-
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
|
|
21
|
-
type: Pipe,
|
|
22
|
-
args: [{
|
|
23
|
-
name: 'deleteIdentifier',
|
|
24
|
-
}]
|
|
25
|
-
}] });
|
|
26
|
-
export class DeleteIdentifierPipeModule {
|
|
27
|
-
}
|
|
28
|
-
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
-
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
|
|
30
|
-
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
|
|
32
|
-
type: NgModule,
|
|
33
|
-
args: [{
|
|
34
|
-
exports: [DeleteIdentifierPipe],
|
|
35
|
-
declarations: [DeleteIdentifierPipe],
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWlkZW50aWZpZXIucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcGlwZXMvc3JjL2xpYi9kZWxldGUtaWRlbnRpZmllci5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxJQUFJLEVBRUosUUFBUSxFQUNULE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFFTCxxQkFBcUIsRUFDckIsdUJBQXVCLEVBQ3ZCLEtBQUssRUFDTixNQUFNLGlCQUFpQixDQUFDOztBQUt6QixNQUFNLE9BQU8sb0JBQW9CO0lBRXhCLFNBQVMsQ0FBSSxLQUFrQztRQUNwRCxJQUFJLENBQUMsS0FBSyxFQUFFO1lBQ1YsT0FBTyxLQUFLLENBQUM7U0FDZDtRQUNELE1BQU0sSUFBSSxHQUFRLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUMvQixJQUFJLHFCQUFxQixDQUFDLElBQUksQ0FBQyxFQUFFO1lBQy9CLEtBQUssTUFBTSxFQUFFLElBQUksdUJBQXVCLENBQUMsSUFBSSxDQUFDLEVBQUU7Z0JBQzlDLE9BQU8sSUFBSS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ogYW55ID0gY2xvbmUodmFsdWUpO1xuICAgIGlmIChoYXNJZGVudGlmaWVyUHJvcGVydHkoY29weSkpIHtcbiAgICAgIGZvciAoY29uc3QgcGsgb2YgZ2V0SWRlbnRpZmllclByb3BlcnRpZXMoY29weSkpIHtcbiAgICAgICAgZGVsZXRlIGNvcHlbIHBrIF07XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBjb3B5O1xuICB9XG5cbn1cblxuQE5nTW9kdWxlKHtcbiAgZXhwb3J0czogICAgICBbIERlbGV0ZUlkZW50aWZpZXJQaXBlIF0sXG4gIGRlY2xhcmF0aW9uczogWyBEZWxldGVJZGVudGlmaWVyUGlwZSBdLFxufSlcbmV4cG9ydCBjbGFzcyBEZWxldGVJZGVudGlmaWVyUGlwZU1vZHVsZSB7XG5cbn1cbiJdfQ==
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { ReplacePipe } from './replace.pipe';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class EscapeQuotationMarkPipe {
|
|
5
|
-
transform(value, reverse = false) {
|
|
6
|
-
if (reverse) {
|
|
7
|
-
return new ReplacePipe().transform(value, /\\"/g, '"');
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return new ReplacePipe().transform(value, /"/g, '\"');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
15
|
-
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
|
|
17
|
-
type: Pipe,
|
|
18
|
-
args: [{
|
|
19
|
-
name: 'escapeQuotationMark'
|
|
20
|
-
}]
|
|
21
|
-
}] });
|
|
22
|
-
export class EscapeQuotationMarkPipeModule {
|
|
23
|
-
}
|
|
24
|
-
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
-
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
|
|
26
|
-
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
|
|
28
|
-
type: NgModule,
|
|
29
|
-
args: [{
|
|
30
|
-
declarations: [EscapeQuotationMarkPipe],
|
|
31
|
-
exports: [EscapeQuotationMarkPipe]
|
|
32
|
-
}]
|
|
33
|
-
}] });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXF1b3RhdGlvbi1tYXJrLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3BpcGVzL3NyYy9saWIvZXNjYXBlLXF1b3RhdGlvbi1tYXJrLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLElBQUksRUFFSixRQUFRLEVBQ1Q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Rpb25NYXJrJ1xufSlcbmV4cG9ydCBjbGFzcyBFc2NhcGVRdW90YXRpb25NYXJrUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuXG4gIHB1YmxpYyB0cmFuc2Zvcm0odmFsdWU6IHN0cmluZywgcmV2ZXJzZTogYm9vbGVhbiA9IGZhbHNlKTogc3RyaW5nIHtcbiAgICBpZiAocmV2ZXJzZSkge1xuICAgICAgcmV0dXJuIG5ldyBSZXBsYWNlUGlwZSgpLnRyYW5zZm9ybSh2YWx1ZSwgL1xcXFxcIi9nLCAnXCInKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG5ldyBSZXBsYWNlUGlwZSgpLnRyYW5zZm9ybSh2YWx1ZSwgL1wiL2csICdcXFwiJyk7XG4gICAgfVxuICB9XG5cbn1cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbIEVzY2FwZVF1b3RhdGlvbk1hcmtQaXBlIF0sXG4gIGV4cG9ydHM6ICAgICAgWyBFc2NhcGVRdW90YXRpb25NYXJrUGlwZSBdXG59KVxuZXhwb3J0IGNsYXNzIEVzY2FwZVF1b3RhdGlvbk1hcmtQaXBlTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { getFromObject } from '@rxap/utilities';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class GetFromObjectPipe {
|
|
5
|
-
transform(value, path) {
|
|
6
|
-
return getFromObject(value, path);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
-
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipe, decorators: [{
|
|
12
|
-
type: Pipe,
|
|
13
|
-
args: [{
|
|
14
|
-
name: 'getFromObject'
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
export class GetFromObjectPipeModule {
|
|
18
|
-
}
|
|
19
|
-
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
-
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
|
|
21
|
-
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
23
|
-
type: NgModule,
|
|
24
|
-
args: [{
|
|
25
|
-
exports: [GetFromObjectPipe],
|
|
26
|
-
declarations: [GetFromObjectPipe]
|
|
27
|
-
}]
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWZyb20tb2JqZWN0LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3BpcGVzL3NyYy9saWIvZ2V0LWZyb20tb2JqZWN0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLElBQUksRUFFSixRQU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BhdGgpO1xuICB9XG59XG5cbkBOZ01vZHVsZSh7XG4gIGV4cG9ydHM6ICAgICAgWyBHZXRGcm9tT2JqZWN0UGlwZSBdLFxuICBkZWNsYXJhdGlvbnM6IFsgR2V0RnJvbU9iamVjdFBpcGUgXVxufSlcbmV4cG9ydCBjbGFzcyBHZXRGcm9tT2JqZWN0UGlwZU1vZHVsZSB7fVxuIl19
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule, } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class ReplacePipe {
|
|
4
|
-
transform(value, replace, replaceValue) {
|
|
5
|
-
return value ? value.replace(replace, replaceValue) : '';
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
-
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipe, name: "replace" });
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipe, decorators: [{
|
|
11
|
-
type: Pipe,
|
|
12
|
-
args: [{
|
|
13
|
-
name: 'replace',
|
|
14
|
-
}]
|
|
15
|
-
}] });
|
|
16
|
-
export class ReplacePipeModule {
|
|
17
|
-
}
|
|
18
|
-
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
-
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
|
|
20
|
-
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ReplacePipeModule, decorators: [{
|
|
22
|
-
type: NgModule,
|
|
23
|
-
args: [{
|
|
24
|
-
declarations: [ReplacePipe],
|
|
25
|
-
exports: [ReplacePipe],
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGFjZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9waXBlcy9zcmMvbGliL3JlcGxhY2UucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsSUFBSSxFQUVKLFFBQVEsR0FDVCxNQUFNLGVBQWUsQ0FBQzs7QUFLdkIsTUFBTSxPQUFPLFdBQVc7SUFFZixTQUFTLENBQUMsS0FBYSxFQUFFLE9BQWUsRUFBRSxZQUFvQjtRQUNuRSxPQUFPLEtBQUssQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQUUsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztJQUMzRCxDQUFDOzt3R0FKVSxXQUFXO3NHQUFYLFdBQVc7MkZBQVgsV0FBVztrQkFIdkIsSUFBSTttQkFBQztvQkFDSixJQUFJLEVBQUUsU0FBUztpQkFDaEI7O0FBYUQsTUFBTSxPQUFPLGlCQUFpQjs7OEdBQWpCLGlCQUFpQjsrR0FBakIsaUJBQWlCLGlCQVpqQixXQUFXLGFBQVgsV0FBVzsrR0FZWCxpQkFBaUI7MkZBQWpCLGlCQUFpQjtrQkFKN0IsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBRSxXQUFXLENBQUU7b0JBQzdCLE9BQU8sRUFBTyxDQUFFLFdBQVcsQ0FBRTtpQkFDOUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBQaXBlLFxuICBQaXBlVHJhbnNmb3JtLFxuICBOZ01vZHVsZSxcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBQaXBlKHtcbiAgbmFtZTogJ3JlcGxhY2UnLFxufSlcbmV4cG9ydCBjbGFzcyBSZXBsYWNlUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuXG4gIHB1YmxpYyB0cmFuc2Zvcm0odmFsdWU6IHN0cmluZywgcmVwbGFjZTogUmVnRXhwLCByZXBsYWNlVmFsdWU6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHZhbHVlID8gdmFsdWUucmVwbGFjZShyZXBsYWNlLCByZXBsYWNlVmFsdWUpIDogJyc7XG4gIH1cblxufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFsgUmVwbGFjZVBpcGUgXSxcbiAgZXhwb3J0czogICAgICBbIFJlcGxhY2VQaXBlIF0sXG59KVxuZXhwb3J0IGNsYXNzIFJlcGxhY2VQaXBlTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { JsonPipe } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class ToDisplayPipe {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.jsonPipe = new JsonPipe();
|
|
7
|
-
}
|
|
8
|
-
transform(value, toDisplay = this.jsonPipe.transform) {
|
|
9
|
-
return toDisplay(value);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
-
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipe, decorators: [{
|
|
15
|
-
type: Pipe,
|
|
16
|
-
args: [{
|
|
17
|
-
name: 'toDisplay'
|
|
18
|
-
}]
|
|
19
|
-
}] });
|
|
20
|
-
export class ToDisplayPipeModule {
|
|
21
|
-
}
|
|
22
|
-
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
-
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
|
|
24
|
-
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
|
|
26
|
-
type: NgModule,
|
|
27
|
-
args: [{
|
|
28
|
-
declarations: [ToDisplayPipe],
|
|
29
|
-
exports: [ToDisplayPipe]
|
|
30
|
-
}]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG8tZGlzcGxheS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9waXBlcy9zcmMvbGliL3RvLWRpc3BsYXkucGlwZS50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bGFzcyBUb0Rpc3BsYXlQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG5cbiAgcHJpdmF0ZSBqc29uUGlwZSA9IG5ldyBKc29uUGlwZSgpO1xuXG4gIHB1YmxpYyB0cmFuc2Zvcm0odmFsdWU6IGFueSwgdG9EaXNwbGF5OiBUb0Rpc3BsYXlGdW5jdGlvbiA9IHRoaXMuanNvblBpcGUudHJhbnNmb3JtKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdG9EaXNwbGF5KHZhbHVlKTtcbiAgfVxuXG59XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWyBUb0Rpc3BsYXlQaXBlIF0sXG4gIGV4cG9ydHM6ICAgICAgWyBUb0Rpc3BsYXlQaXBlIF1cbn0pXG5leHBvcnQgY2xhc3MgVG9EaXNwbGF5UGlwZU1vZHVsZSB7XG5cbn1cbiJdfQ==
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { SantizationPipe } from './santization.pipe';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class SantizationModule {
|
|
5
|
-
}
|
|
6
|
-
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
|
|
8
|
-
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: SantizationModule });
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: SantizationModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [SantizationPipe],
|
|
13
|
-
imports: [],
|
|
14
|
-
exports: [SantizationPipe]
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FudGl6YXRpb24ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9waXBlcy9zYW50aXphdGlvbi9zcmMvbGliL3NhbnRpemF0aW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFPckQsTUFBTSxPQUFPLGlCQUFpQjs7OEdBQWpCLGlCQUFpQjsrR0FBakIsaUJBQWlCLGlCQUpaLGVBQWUsYUFFZixlQUFlOytHQUVwQixpQkFBaUI7MkZBQWpCLGlCQUFpQjtrQkFMN0IsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBRSxlQUFlLENBQUU7b0JBQ2pDLE9BQU8sRUFBTyxFQUFFO29CQUNoQixPQUFPLEVBQU8sQ0FBRSxlQUFlLENBQUU7aUJBQ2xDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFNhbnRpemF0aW9uUGlwZSB9IGZyb20gJy4vc2FudGl6YXRpb24ucGlwZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWyBTYW50aXphdGlvblBpcGUgXSxcbiAgaW1wb3J0czogICAgICBbXSxcbiAgZXhwb3J0czogICAgICBbIFNhbnRpemF0aW9uUGlwZSBdXG59KVxuZXhwb3J0IGNsYXNzIFNhbnRpemF0aW9uTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { SantizationService } from './santization.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./santization.service";
|
|
5
|
-
export class SantizationPipe {
|
|
6
|
-
constructor(santizationService) {
|
|
7
|
-
this.santizationService = santizationService;
|
|
8
|
-
}
|
|
9
|
-
transform(value, type = 'url') {
|
|
10
|
-
return this.santizationService.transform(value, type);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: SantizationPipe, deps: [{ token: i1.SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
-
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: SantizationPipe, name: "santization" });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: SantizationPipe, decorators: [{
|
|
16
|
-
type: Pipe,
|
|
17
|
-
args: [{
|
|
18
|
-
name: 'santization',
|
|
19
|
-
}]
|
|
20
|
-
}], ctorParameters: function () { return [{ type: i1.SantizationService }]; } });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FudGl6YXRpb24ucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGlwZXMvc2FudGl6YXRpb24vc3JjL2xpYi9zYW50aXphdGlvbi5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBRXBELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUF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