@rxap/pipes 13.0.0-next.2 → 14.0.0
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/esm2020/lib/currency.pipe.mjs +7 -7
- package/esm2020/lib/delete-identifier.pipe.mjs +7 -7
- package/esm2020/lib/escape-quotation-mark.pipe.mjs +7 -7
- package/esm2020/lib/get-from-object.pipe.mjs +7 -7
- package/esm2020/lib/replace.pipe.mjs +7 -7
- package/esm2020/lib/to-display.pipe.mjs +7 -7
- package/esm2020/santization/lib/santization.module.mjs +5 -5
- package/esm2020/santization/lib/santization.pipe.mjs +3 -3
- package/esm2020/santization/lib/santization.service.mjs +3 -3
- package/fesm2015/rxap-pipes-santization.mjs +10 -10
- package/fesm2015/rxap-pipes-santization.mjs.map +1 -1
- package/fesm2015/rxap-pipes.mjs +42 -42
- package/fesm2015/rxap-pipes.mjs.map +1 -1
- package/fesm2020/rxap-pipes-santization.mjs +10 -10
- package/fesm2020/rxap-pipes-santization.mjs.map +1 -1
- package/fesm2020/rxap-pipes.mjs +42 -42
- package/fesm2020/rxap-pipes.mjs.map +1 -1
- package/lib/currency.pipe.d.ts +1 -1
- package/lib/delete-identifier.pipe.d.ts +1 -1
- package/lib/escape-quotation-mark.pipe.d.ts +1 -1
- package/lib/get-from-object.pipe.d.ts +1 -1
- package/lib/replace.pipe.d.ts +1 -1
- package/lib/to-display.pipe.d.ts +1 -1
- package/package.json +12 -12
- package/santization/{rxap-pipes-santization.d.ts → index.d.ts} +0 -0
- package/santization/lib/santization.pipe.d.ts +1 -1
- package/rxap-pipes.d.ts +0 -5
- package/santization/package.json +0 -10
|
@@ -43,9 +43,9 @@ export class RxapCurrencyPipe {
|
|
|
43
43
|
return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
47
|
+
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
|
|
49
49
|
type: Pipe,
|
|
50
50
|
args: [{
|
|
51
51
|
name: 'currency'
|
|
@@ -53,10 +53,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
53
53
|
}], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
|
|
54
54
|
export class CurrencyPipeModule {
|
|
55
55
|
}
|
|
56
|
-
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
58
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
57
|
+
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
|
|
58
|
+
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
|
60
60
|
type: NgModule,
|
|
61
61
|
args: [{
|
|
62
62
|
exports: [RxapCurrencyPipe],
|
|
@@ -15,9 +15,9 @@ export class DeleteIdentifierPipe {
|
|
|
15
15
|
return copy;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
+
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
|
|
21
21
|
type: Pipe,
|
|
22
22
|
args: [{
|
|
23
23
|
name: 'deleteIdentifier',
|
|
@@ -25,10 +25,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
25
25
|
}] });
|
|
26
26
|
export class DeleteIdentifierPipeModule {
|
|
27
27
|
}
|
|
28
|
-
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
30
|
-
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
+
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
|
|
30
|
+
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
|
|
32
32
|
type: NgModule,
|
|
33
33
|
args: [{
|
|
34
34
|
exports: [DeleteIdentifierPipe],
|
|
@@ -11,9 +11,9 @@ export class EscapeQuotationMarkPipe {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
15
|
+
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
|
|
17
17
|
type: Pipe,
|
|
18
18
|
args: [{
|
|
19
19
|
name: 'escapeQuotationMark'
|
|
@@ -21,10 +21,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
21
21
|
}] });
|
|
22
22
|
export class EscapeQuotationMarkPipeModule {
|
|
23
23
|
}
|
|
24
|
-
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
26
|
-
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
+
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
|
|
26
|
+
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
|
|
28
28
|
type: NgModule,
|
|
29
29
|
args: [{
|
|
30
30
|
declarations: [EscapeQuotationMarkPipe],
|
|
@@ -6,9 +6,9 @@ export class GetFromObjectPipe {
|
|
|
6
6
|
return getFromObject(value, path);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9
|
+
GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
+
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
14
|
name: 'getFromObject'
|
|
@@ -16,10 +16,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
16
16
|
}] });
|
|
17
17
|
export class GetFromObjectPipeModule {
|
|
18
18
|
}
|
|
19
|
-
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
21
|
-
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
+
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
|
|
21
|
+
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
23
23
|
type: NgModule,
|
|
24
24
|
args: [{
|
|
25
25
|
exports: [GetFromObjectPipe],
|
|
@@ -5,9 +5,9 @@ export class ReplacePipe {
|
|
|
5
5
|
return value ? value.replace(replace, replaceValue) : '';
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8
|
+
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
+
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, name: "replace" });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, decorators: [{
|
|
11
11
|
type: Pipe,
|
|
12
12
|
args: [{
|
|
13
13
|
name: 'replace',
|
|
@@ -15,10 +15,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
15
15
|
}] });
|
|
16
16
|
export class ReplacePipeModule {
|
|
17
17
|
}
|
|
18
|
-
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
20
|
-
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
|
|
20
|
+
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, decorators: [{
|
|
22
22
|
type: NgModule,
|
|
23
23
|
args: [{
|
|
24
24
|
declarations: [ReplacePipe],
|
|
@@ -9,9 +9,9 @@ export class ToDisplayPipe {
|
|
|
9
9
|
return toDisplay(value);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
+
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, decorators: [{
|
|
15
15
|
type: Pipe,
|
|
16
16
|
args: [{
|
|
17
17
|
name: 'toDisplay'
|
|
@@ -19,10 +19,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
19
19
|
}] });
|
|
20
20
|
export class ToDisplayPipeModule {
|
|
21
21
|
}
|
|
22
|
-
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
24
|
-
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
|
|
24
|
+
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
|
|
26
26
|
type: NgModule,
|
|
27
27
|
args: [{
|
|
28
28
|
declarations: [ToDisplayPipe],
|
|
@@ -3,10 +3,10 @@ import { SantizationPipe } from './santization.pipe';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class SantizationModule {
|
|
5
5
|
}
|
|
6
|
-
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
8
|
-
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6
|
+
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
|
|
8
|
+
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
declarations: [SantizationPipe],
|
|
@@ -14,4 +14,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
14
14
|
exports: [SantizationPipe]
|
|
15
15
|
}]
|
|
16
16
|
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FudGl6YXRpb24ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9waXBlcy9zYW50aXphdGlvbi9zcmMvbGliL3NhbnRpemF0aW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFPckQsTUFBTSxPQUFPLGlCQUFpQjs7OEdBQWpCLGlCQUFpQjsrR0FBakIsaUJBQWlCLGlCQUpaLGVBQWUsYUFFZixlQUFlOytHQUVwQixpQkFBaUI7MkZBQWpCLGlCQUFpQjtrQkFMN0IsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBRSxlQUFlLENBQUU7b0JBQ2pDLE9BQU8sRUFBTyxFQUFFO29CQUNoQixPQUFPLEVBQU8sQ0FBRSxlQUFlLENBQUU7aUJBQ2xDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFNhbnRpemF0aW9uUGlwZSB9IGZyb20gJy4vc2FudGl6YXRpb24ucGlwZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWyBTYW50aXphdGlvblBpcGUgXSxcbiAgaW1wb3J0czogICAgICBbXSxcbiAgZXhwb3J0czogICAgICBbIFNhbnRpemF0aW9uUGlwZSBdXG59KVxuZXhwb3J0IGNsYXNzIFNhbnRpemF0aW9uTW9kdWxlIHt9XG4iXX0=
|
|
@@ -10,9 +10,9 @@ export class SantizationPipe {
|
|
|
10
10
|
return this.santizationService.transform(value, type);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, deps: [{ token: i1.SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
+
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, name: "santization" });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, decorators: [{
|
|
16
16
|
type: Pipe,
|
|
17
17
|
args: [{
|
|
18
18
|
name: 'santization',
|
|
@@ -26,9 +26,9 @@ export class SantizationService {
|
|
|
26
26
|
throw new Error('type is not set');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, decorators: [{
|
|
32
32
|
type: Injectable,
|
|
33
33
|
args: [{
|
|
34
34
|
providedIn: 'root'
|
|
@@ -27,9 +27,9 @@ class SantizationService {
|
|
|
27
27
|
throw new Error('type is not set');
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
+
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, providedIn: 'root' });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, decorators: [{
|
|
33
33
|
type: Injectable,
|
|
34
34
|
args: [{
|
|
35
35
|
providedIn: 'root'
|
|
@@ -49,9 +49,9 @@ class SantizationPipe {
|
|
|
49
49
|
return this.santizationService.transform(value, type);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
52
|
+
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, deps: [{ token: SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
53
|
+
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, name: "santization" });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, decorators: [{
|
|
55
55
|
type: Pipe,
|
|
56
56
|
args: [{
|
|
57
57
|
name: 'santization',
|
|
@@ -60,10 +60,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
60
60
|
|
|
61
61
|
class SantizationModule {
|
|
62
62
|
}
|
|
63
|
-
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
64
|
-
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
65
|
-
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
64
|
+
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
|
|
65
|
+
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule });
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, decorators: [{
|
|
67
67
|
type: NgModule,
|
|
68
68
|
args: [{
|
|
69
69
|
declarations: [SantizationPipe],
|
|
@@ -1 +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;
|
|
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":["i1.SantizationService"],"mappings":";;;;;AAUA;MAIa,kBAAkB,CAAA;AAC7B,IAAA,WAAA,CAA0C,UAAwB,EAAA;AAAxB,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAc;KAAI;AAEtE,IAAA,SAAS,CACP,KAAoB,EACpB,IAAA,GAA4D,KAAK,EAAA;QAEjE,IAAI,KAAK,KAAK,IAAI,EAAE;AAClB,YAAA,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,SAAA;AACD,QAAA,QAAQ,IAAI;AACV,YAAA,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;AAExD,YAAA,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEzD,YAAA,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;AAE1D,YAAA,KAAK,KAAK;gBACR,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;AAEvD,YAAA,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;AAChE,SAAA;AAED,QAAA,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACpC;;AA5BU,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,kBACT,YAAY,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UA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,CAAA,CAAA;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAE,eAAe,CAAE;AACjC,oBAAA,OAAO,EAAO,EAAE;oBAChB,OAAO,EAAO,CAAE,eAAe,CAAE;iBAClC,CAAA;;;ACPD;;AAEG;;;;"}
|
package/fesm2015/rxap-pipes.mjs
CHANGED
|
@@ -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: "
|
|
16
|
-
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
16
|
+
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
22
22
|
}] });
|
|
23
23
|
class ToDisplayPipeModule {
|
|
24
24
|
}
|
|
25
|
-
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
27
|
-
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
26
|
+
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
|
|
27
|
+
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
42
|
-
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
42
|
+
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, name: "replace" });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
48
48
|
}] });
|
|
49
49
|
class ReplacePipeModule {
|
|
50
50
|
}
|
|
51
|
-
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
53
|
-
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
|
|
53
|
+
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
73
|
-
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
73
|
+
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
79
79
|
}] });
|
|
80
80
|
class EscapeQuotationMarkPipeModule {
|
|
81
81
|
}
|
|
82
|
-
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
83
|
-
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
84
|
-
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
83
|
+
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
|
|
84
|
+
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
135
|
-
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
135
|
+
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", 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: "
|
|
145
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
146
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
144
|
+
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
145
|
+
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
|
|
146
|
+
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
171
|
-
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
170
|
+
DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
171
|
+
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
177
177
|
}] });
|
|
178
178
|
class DeleteIdentifierPipeModule {
|
|
179
179
|
}
|
|
180
|
-
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
181
|
-
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
182
|
-
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
180
|
+
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
181
|
+
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
|
|
182
|
+
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule });
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
197
|
-
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
196
|
+
GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
197
|
+
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
203
203
|
}] });
|
|
204
204
|
class GetFromObjectPipeModule {
|
|
205
205
|
}
|
|
206
|
-
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
207
|
-
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
208
|
-
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
207
|
+
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
|
|
208
|
+
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule });
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
210
210
|
type: NgModule,
|
|
211
211
|
args: [{
|
|
212
212
|
exports: [GetFromObjectPipe],
|
|
@@ -1 +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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ACtB;;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;;;;;;"}
|
|
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,CAAA;AAH1B,IAAA,WAAA,GAAA;AAKU,QAAA,IAAA,CAAA,QAAQ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IAAA,EAAA,CAAA;oBACR,OAAO,EAAO,CAAE,iBAAiB,CAAE;oBACnC,YAAY,EAAE,CAAE,iBAAiB,CAAE;iBACpC,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -27,9 +27,9 @@ class SantizationService {
|
|
|
27
27
|
throw new Error('type is not set');
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
+
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, providedIn: 'root' });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationService, decorators: [{
|
|
33
33
|
type: Injectable,
|
|
34
34
|
args: [{
|
|
35
35
|
providedIn: 'root'
|
|
@@ -47,9 +47,9 @@ class SantizationPipe {
|
|
|
47
47
|
return this.santizationService.transform(value, type);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
51
|
-
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
50
|
+
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, deps: [{ token: SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
51
|
+
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, name: "santization" });
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationPipe, decorators: [{
|
|
53
53
|
type: Pipe,
|
|
54
54
|
args: [{
|
|
55
55
|
name: 'santization',
|
|
@@ -58,10 +58,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
58
58
|
|
|
59
59
|
class SantizationModule {
|
|
60
60
|
}
|
|
61
|
-
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
63
|
-
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
62
|
+
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
|
|
63
|
+
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SantizationModule, decorators: [{
|
|
65
65
|
type: NgModule,
|
|
66
66
|
args: [{
|
|
67
67
|
declarations: [SantizationPipe],
|
|
@@ -1 +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;
|
|
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":["i1.SantizationService"],"mapp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ACR,YAAY,EAAE,CAAE,eAAe,CAAE;AACjC,oBAAA,OAAO,EAAO,EAAE;oBAChB,OAAO,EAAO,CAAE,eAAe,CAAE;AAClC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
package/fesm2020/rxap-pipes.mjs
CHANGED
|
@@ -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: "
|
|
16
|
-
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
16
|
+
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
22
22
|
}] });
|
|
23
23
|
class ToDisplayPipeModule {
|
|
24
24
|
}
|
|
25
|
-
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
27
|
-
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
26
|
+
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
|
|
27
|
+
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ToDisplayPipeModule });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
42
|
-
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
42
|
+
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipe, name: "replace" });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
48
48
|
}] });
|
|
49
49
|
class ReplacePipeModule {
|
|
50
50
|
}
|
|
51
|
-
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
53
|
-
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
|
|
53
|
+
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ReplacePipeModule });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
73
|
-
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
73
|
+
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
79
79
|
}] });
|
|
80
80
|
class EscapeQuotationMarkPipeModule {
|
|
81
81
|
}
|
|
82
|
-
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
83
|
-
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
84
|
-
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
83
|
+
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
|
|
84
|
+
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EscapeQuotationMarkPipeModule });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
135
|
-
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
135
|
+
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", 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: "
|
|
145
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
146
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
144
|
+
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
145
|
+
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
|
|
146
|
+
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
171
|
-
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
170
|
+
DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
171
|
+
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
177
177
|
}] });
|
|
178
178
|
class DeleteIdentifierPipeModule {
|
|
179
179
|
}
|
|
180
|
-
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
181
|
-
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
182
|
-
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
180
|
+
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
181
|
+
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
|
|
182
|
+
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: DeleteIdentifierPipeModule });
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "
|
|
197
|
-
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
196
|
+
GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
197
|
+
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "13.2.3", ngImpor
|
|
|
203
203
|
}] });
|
|
204
204
|
class GetFromObjectPipeModule {
|
|
205
205
|
}
|
|
206
|
-
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
207
|
-
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
208
|
-
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
207
|
+
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
|
|
208
|
+
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule });
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
210
210
|
type: NgModule,
|
|
211
211
|
args: [{
|
|
212
212
|
exports: [GetFromObjectPipe],
|
|
@@ -1 +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,iBA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uBAAuB;2FAAvB,uBAAuB;kBAJnC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,iBAAiB,CAAE;oBACnC,YAAY,EAAE,CAAE,iBAAiB,CAAE;iBACpC;;;ACnBD;;;;;;"}
|
|
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,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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EAAO,CAAE,iBAAiB,CAAE;oBACnC,YAAY,EAAE,CAAE,iBAAiB,CAAE;AACpC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
package/lib/currency.pipe.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare class RxapCurrencyPipe implements PipeTransform {
|
|
|
39
39
|
*/
|
|
40
40
|
transform(value: number, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<RxapCurrencyPipe, never>;
|
|
42
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RxapCurrencyPipe, "currency">;
|
|
42
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RxapCurrencyPipe, "currency", false>;
|
|
43
43
|
}
|
|
44
44
|
export declare class CurrencyPipeModule {
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPipeModule, never>;
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class DeleteIdentifierPipe implements PipeTransform {
|
|
5
5
|
transform<T>(value: (WithIdentifier & T) | null): T | null;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteIdentifierPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DeleteIdentifierPipe, "deleteIdentifier">;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DeleteIdentifierPipe, "deleteIdentifier", false>;
|
|
8
8
|
}
|
|
9
9
|
export declare class DeleteIdentifierPipeModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteIdentifierPipeModule, never>;
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class EscapeQuotationMarkPipe implements PipeTransform {
|
|
4
4
|
transform(value: string, reverse?: boolean): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<EscapeQuotationMarkPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<EscapeQuotationMarkPipe, "escapeQuotationMark">;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EscapeQuotationMarkPipe, "escapeQuotationMark", false>;
|
|
7
7
|
}
|
|
8
8
|
export declare class EscapeQuotationMarkPipeModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<EscapeQuotationMarkPipeModule, never>;
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class GetFromObjectPipe implements PipeTransform {
|
|
4
4
|
transform(value: any, path: string): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetFromObjectPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetFromObjectPipe, "getFromObject">;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetFromObjectPipe, "getFromObject", false>;
|
|
7
7
|
}
|
|
8
8
|
export declare class GetFromObjectPipeModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetFromObjectPipeModule, never>;
|
package/lib/replace.pipe.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class ReplacePipe implements PipeTransform {
|
|
4
4
|
transform(value: string, replace: RegExp, replaceValue: string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReplacePipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ReplacePipe, "replace">;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ReplacePipe, "replace", false>;
|
|
7
7
|
}
|
|
8
8
|
export declare class ReplacePipeModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReplacePipeModule, never>;
|
package/lib/to-display.pipe.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare class ToDisplayPipe implements PipeTransform {
|
|
|
5
5
|
private jsonPipe;
|
|
6
6
|
transform(value: any, toDisplay?: ToDisplayFunction): string;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToDisplayPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToDisplayPipe, "toDisplay">;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToDisplayPipe, "toDisplay", false>;
|
|
9
9
|
}
|
|
10
10
|
export declare class ToDisplayPipeModule {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToDisplayPipeModule, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/pipes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Merzough Münker",
|
|
6
6
|
"homepage": "https://gitlab.com/rxap/packages/libs/pipes",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
},
|
|
17
17
|
"description": "A collection of utility angular pipes used in RxAP.",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular-devkit/schematics": "^
|
|
20
|
-
"@angular/common": "^
|
|
21
|
-
"@angular/core": "^
|
|
22
|
-
"@angular/platform-browser": "^
|
|
23
|
-
"@angular/platform-browser-dynamic": "^
|
|
24
|
-
"@rxap/utilities": "^13.0.0
|
|
19
|
+
"@angular-devkit/schematics": "^14.2.3",
|
|
20
|
+
"@angular/common": "^14.2.2",
|
|
21
|
+
"@angular/core": "^14.2.2",
|
|
22
|
+
"@angular/platform-browser": "^14.2.2",
|
|
23
|
+
"@angular/platform-browser-dynamic": "^14.2.2",
|
|
24
|
+
"@rxap/utilities": "^13.0.0",
|
|
25
25
|
"reflect-metadata": "^0.1.13",
|
|
26
|
-
"rxjs": "^6.
|
|
26
|
+
"rxjs": "^6.6.0"
|
|
27
27
|
},
|
|
28
28
|
"schematics": "./collection.json",
|
|
29
29
|
"ng-update": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"save": "dependencies"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@rxap/schematics-utilities": "^
|
|
44
|
+
"@rxap/schematics-utilities": "^14.0.0",
|
|
45
45
|
"tslib": "^2.3.1"
|
|
46
46
|
},
|
|
47
47
|
"module": "fesm2015/rxap-pipes.mjs",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"esm2020": "esm2020/rxap-pipes.mjs",
|
|
50
50
|
"fesm2020": "fesm2020/rxap-pipes.mjs",
|
|
51
51
|
"fesm2015": "fesm2015/rxap-pipes.mjs",
|
|
52
|
-
"typings": "
|
|
52
|
+
"typings": "index.d.ts",
|
|
53
53
|
"exports": {
|
|
54
54
|
"./package.json": {
|
|
55
55
|
"default": "./package.json"
|
|
56
56
|
},
|
|
57
57
|
".": {
|
|
58
|
-
"types": "./
|
|
58
|
+
"types": "./index.d.ts",
|
|
59
59
|
"esm2020": "./esm2020/rxap-pipes.mjs",
|
|
60
60
|
"es2020": "./fesm2020/rxap-pipes.mjs",
|
|
61
61
|
"es2015": "./fesm2015/rxap-pipes.mjs",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"default": "./fesm2020/rxap-pipes.mjs"
|
|
64
64
|
},
|
|
65
65
|
"./santization": {
|
|
66
|
-
"types": "./santization/
|
|
66
|
+
"types": "./santization/index.d.ts",
|
|
67
67
|
"esm2020": "./esm2020/santization/rxap-pipes-santization.mjs",
|
|
68
68
|
"es2020": "./fesm2020/rxap-pipes-santization.mjs",
|
|
69
69
|
"es2015": "./fesm2015/rxap-pipes-santization.mjs",
|
|
File without changes
|
|
@@ -7,5 +7,5 @@ export declare class SantizationPipe implements PipeTransform {
|
|
|
7
7
|
constructor(santizationService: SantizationService);
|
|
8
8
|
transform(value: string | null, type?: 'html' | 'style' | 'script' | 'url' | 'resourceUrl'): SafeValue | null;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SantizationPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SantizationPipe, "santization">;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SantizationPipe, "santization", false>;
|
|
11
11
|
}
|
package/rxap-pipes.d.ts
DELETED
package/santization/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/rxap-pipes-santization.mjs",
|
|
3
|
-
"es2020": "../fesm2020/rxap-pipes-santization.mjs",
|
|
4
|
-
"esm2020": "../esm2020/santization/rxap-pipes-santization.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/rxap-pipes-santization.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/rxap-pipes-santization.mjs",
|
|
7
|
-
"typings": "rxap-pipes-santization.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@rxap/pipes/santization"
|
|
10
|
-
}
|