sin-pipes 1.1.0 → 2.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 → esm2022}/lib/pipes/boolean-it.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/bytetoxformat.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/camel-case-to-split.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/currency-it.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/filter.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/form-error.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/number-it.pipe.mjs +4 -4
- package/esm2022/lib/pipes/safe-html.pipe.mjs +21 -0
- package/{esm2020 → esm2022}/lib/pipes/trend-it.pipe.mjs +4 -4
- package/esm2022/lib/sin-pipes.module.mjs +61 -0
- package/{fesm2020 → fesm2022}/sin-pipes.mjs +48 -47
- package/{fesm2015 → fesm2022}/sin-pipes.mjs.map +1 -1
- package/lib/pipes/boolean-it.pipe.d.ts +1 -1
- package/lib/pipes/bytetoxformat.pipe.d.ts +1 -1
- package/lib/pipes/camel-case-to-split.pipe.d.ts +1 -1
- package/lib/pipes/currency-it.pipe.d.ts +1 -1
- package/lib/pipes/filter.pipe.d.ts +1 -1
- package/lib/pipes/form-error.pipe.d.ts +1 -1
- package/lib/pipes/number-it.pipe.d.ts +1 -1
- package/lib/pipes/safe-html.pipe.d.ts +1 -1
- package/lib/pipes/trend-it.pipe.d.ts +1 -1
- package/package.json +9 -15
- package/esm2020/lib/pipes/safe-html.pipe.mjs +0 -20
- package/esm2020/lib/sin-pipes.module.mjs +0 -61
- package/fesm2015/sin-pipes.mjs +0 -307
- package/fesm2020/sin-pipes.mjs.map +0 -1
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sin-pipes.mjs +0 -0
- /package/{sin-pipes.d.ts → index.d.ts} +0 -0
|
@@ -7,13 +7,13 @@ export class BooleanItPipe {
|
|
|
7
7
|
transform(value, ...args) {
|
|
8
8
|
return value === true ? 'Si' : 'No';
|
|
9
9
|
}
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: BooleanItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: BooleanItPipe, name: "booleanIt" });
|
|
10
12
|
}
|
|
11
|
-
|
|
12
|
-
BooleanItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, name: "booleanIt" });
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, decorators: [{
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: BooleanItPipe, decorators: [{
|
|
14
14
|
type: Pipe,
|
|
15
15
|
args: [{
|
|
16
16
|
name: 'booleanIt'
|
|
17
17
|
}]
|
|
18
18
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vbGVhbi1pdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2luLXBpcGVzL3NyYy9saWIvcGlwZXMvYm9vbGVhbi1pdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQUVwRDs7R0FFRztBQUlILE1BQU0sT0FBTyxhQUFhO0lBRXhCLFNBQVMsQ0FBQyxLQUFVLEVBQUUsR0FBRyxJQUFXO1FBQ2xDLE9BQU8sS0FBSyxLQUFLLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDdEMsQ0FBQzt1R0FKVSxhQUFhO3FHQUFiLGFBQWE7OzJGQUFiLGFBQWE7a0JBSHpCLElBQUk7bUJBQUM7b0JBQ0osSUFBSSxFQUFFLFdBQVc7aUJBQ2xCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuLyoqXHJcbiAqIEZpbHRybyBwZXIgbGEgZm9ybWF0dGF6aW9uZSBkaSBib29sZWFuaSBpbiB2aXN1YWxpenphemlvbmVcclxuICovXHJcbkBQaXBlKHtcclxuICBuYW1lOiAnYm9vbGVhbkl0J1xyXG59KVxyXG5leHBvcnQgY2xhc3MgQm9vbGVhbkl0UGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xyXG5cclxuICB0cmFuc2Zvcm0odmFsdWU6IGFueSwgLi4uYXJnczogYW55W10pOiBhbnkge1xyXG4gICAgcmV0dXJuIHZhbHVlID09PSB0cnVlID8gJ1NpJyA6ICdObyc7XHJcbiAgfVxyXG5cclxufVxyXG5cclxuIl19
|
|
@@ -15,11 +15,11 @@ export class ByteToXFormatPipe {
|
|
|
15
15
|
return (value / (1024 ** 3)).toFixed(2);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: ByteToXFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: ByteToXFormatPipe, name: "bytetoxformat" });
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
ByteToXFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, name: "bytetoxformat" });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, decorators: [{
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: ByteToXFormatPipe, decorators: [{
|
|
22
22
|
type: Pipe,
|
|
23
23
|
args: [{ name: 'bytetoxformat' }]
|
|
24
24
|
}] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnl0ZXRveGZvcm1hdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2luLXBpcGVzL3NyYy9saWIvcGlwZXMvYnl0ZXRveGZvcm1hdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQUVwRDs7R0FFRztBQUVILE1BQU0sT0FBTyxpQkFBaUI7SUFDNUIsU0FBUyxDQUFDLEtBQWEsRUFBRSxTQUFpQjtRQUN4QyxJQUFJLFNBQVMsS0FBSyxXQUFXLEVBQUU7WUFDN0IsT0FBTyxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDbEM7UUFDRCxJQUFJLFNBQVMsS0FBSyxXQUFXLEVBQUU7WUFDN0IsT0FBTyxDQUFDLEtBQUssR0FBRyxDQUFDLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FB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AzKSkudG9GaXhlZCgyKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -9,13 +9,13 @@ export class CamelCaseToSplitPipe {
|
|
|
9
9
|
return value.match(/[A-Z][a-z]+|[0-9]+/g).join(' ');
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CamelCaseToSplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: CamelCaseToSplitPipe, name: "camelCaseToSplit" });
|
|
12
14
|
}
|
|
13
|
-
|
|
14
|
-
CamelCaseToSplitPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, name: "camelCaseToSplit" });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CamelCaseToSplitPipe, decorators: [{
|
|
16
16
|
type: Pipe,
|
|
17
17
|
args: [{
|
|
18
18
|
name: 'camelCaseToSplit'
|
|
19
19
|
}]
|
|
20
20
|
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FtZWwtY2FzZS10by1zcGxpdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2luLXBpcGVzL3NyYy9saWIvcGlwZXMvY2FtZWwtY2FzZS10by1zcGxpdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGlu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nKTtcclxuICAgIH1cclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -13,13 +13,13 @@ export class CurrencyItPipe {
|
|
|
13
13
|
moneystr = input.toLocaleString() + dec + " \u20AC";
|
|
14
14
|
return moneystr;
|
|
15
15
|
}
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CurrencyItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: CurrencyItPipe, name: "currency_it" });
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
CurrencyItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, name: "currency_it" });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, decorators: [{
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CurrencyItPipe, decorators: [{
|
|
20
20
|
type: Pipe,
|
|
21
21
|
args: [{
|
|
22
22
|
name: 'currency_it'
|
|
23
23
|
}]
|
|
24
24
|
}] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3ktaXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Npbi1waXBlcy9zcmMvbGliL3BpcGVzL2N1cnJlbmN5LWl0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBRXBEOzt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aW5wdXQgPT09IG51bGwpXHJcbiAgICB7XHJcbiAgICAgIHJldHVybiBcIlwiO1xyXG4gICAgfVxyXG5cclxuICAgIGxldCBtb25leXN0ciA9IFwiXCI7XHJcbiAgICBsZXQgZGVjID0gKGlucHV0IC0gTWF0aC5mbG9vcihpbnB1dCkgPT0gMCkgPyBcIiwwMFwiIDogXCJcIjtcclxuICAgIG1vbmV5c3RyID0gaW5wdXQudG9Mb2NhbGVTdHJpbmcoKSArIGRlYyArIFwiIFxcdTIwQUNcIjtcclxuICAgIHJldHVybiBtb25leXN0cjtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -38,13 +38,13 @@ export class FilterPipe {
|
|
|
38
38
|
}
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
42
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: FilterPipe, name: "filter" });
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, name: "filter" });
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, decorators: [{
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FilterPipe, decorators: [{
|
|
45
45
|
type: Pipe,
|
|
46
46
|
args: [{
|
|
47
47
|
name: 'filter'
|
|
48
48
|
}]
|
|
49
49
|
}] });
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLnBpcGU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cnVlO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gICAgcmV0dXJuIGZhbHNlO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
|
|
@@ -46,13 +46,13 @@ export class FormErrorPipe {
|
|
|
46
46
|
}
|
|
47
47
|
return '';
|
|
48
48
|
}
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FormErrorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
50
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: FormErrorPipe, name: "formError" });
|
|
49
51
|
}
|
|
50
|
-
|
|
51
|
-
FormErrorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, name: "formError" });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, decorators: [{
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FormErrorPipe, decorators: [{
|
|
53
53
|
type: Pipe,
|
|
54
54
|
args: [{
|
|
55
55
|
name: 'formError'
|
|
56
56
|
}]
|
|
57
57
|
}] });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1lcnJvci5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2luLXBpcGVzL3NyYy9saWIvcGlwZXMvZm9ybS1lcnJvci5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQWdCLE1BQU0sZUFBZSxDQUF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0dGVybic6XHJcbiAgICAgICAgICAgIHRleHQgKz0gYCBoYSB1biBmb3JtYXRvIG5vbiB2YWxpZG8gIWA7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgY2FzZSAncmVxdWlyZWRQYXR0ZXJuJzpcclxuICAgICAgICAgICAgdGV4dCArPSBgIG5vbiByaXNwZXR0YSBsYSBmb3JtYXR0YXppb25lIHJpY2hpZXN0YSAhYDtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICBjYXNlICdpbnZhbGlkJzpcclxuICAgICAgICAgICAgdGV4dCArPSBgIGhhIHVuIGZvcm1hdG8gbm9uIHZhbGlkbyAhYDtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICBjYXNlICdlbWFpbCc6XHJcbiAgICAgICAgICAgIHRleHQgKz0gYCBoYSB1biBmb3JtYXRvIG5vbiB2YWxpZG8gIWA7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgY2FzZSAnbWlubGVuZ3RoJzpcclxuICAgICAgICAgICAgdGV4dCArPSBgIGx1bmdoZXp6YSBtaW5pbWEgJHtlcnJvcnNbZXJyb3JdLnJlcXVpcmVkTGVuZ3RofSBjYXJhdHRlcmkgIWA7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgY2FzZSAnbWF4bGVuZ3RoJzpcclxuICAgICAgICAgICAgdGV4dCArPSBgIGx1bmdoZXp6YSBtYXNzaW1hICR7ZXJyb3JzW2Vycm9yXS5yZXF1aXJlZExlbmd0aH0gY2FyYXR0ZXJpICFgO1xyXG4gICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIGNhc2UgJ2FyZUVxdWFsJzpcclxuICAgICAgICAgICAgdGV4dCArPSBgIGRldmUgZXNzZXJlIHVndWFsZSAhYDtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICBjYXNlICduZ2JEYXRlJzpcclxuICAgICAgICAgICAgdGV4dCArPSBgIGhhIHVuIGZvcm1hdG8gbm9uIHZhbGlkbyAhYDtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICBjYXNlICd2YWx1ZSc6XHJcbiAgICAgICAgICAgIHRleHQgKz0gYCBoYSB1biBmb3JtYXRvIG5vbiB2YWxpZG8gIWA7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgY2FzZSAnYWN0dWFsVmFsdWUnOlxyXG4gICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgIHRleHQgKz0gYCR7ZXJyb3J9OiAke2Vycm9yc1tlcnJvcl19YDtcclxuICAgICAgICB9XHJcbiAgICAgIH0pO1xyXG4gICAgICByZXR1cm4gdGV4dDtcclxuICAgIH1cclxuICAgIHJldHVybiAnJztcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -10,13 +10,13 @@ export class NumberItPipe {
|
|
|
10
10
|
}
|
|
11
11
|
return input.toLocaleString();
|
|
12
12
|
}
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: NumberItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: NumberItPipe, name: "number_it" });
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
NumberItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, name: "number_it" });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, decorators: [{
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: NumberItPipe, decorators: [{
|
|
17
17
|
type: Pipe,
|
|
18
18
|
args: [{
|
|
19
19
|
name: 'number_it'
|
|
20
20
|
}]
|
|
21
21
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWl0LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW4tcGlwZXMvc3JjL2xpYi9waXBlcy9udW1iZXItaXQucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFFcEQ7O0dBRUc7QUFJSCxNQUFNLE9BQU8sWUFBWTtJQUV2QixTQUFTLENBQUMsS0FBVTtRQUNsQixJQUFJLEtBQUssS0FBSyxTQUFTLElBQUksS0FBSyxLQUFLLElBQUksRUFBRTtZQUN6QyxPQUFPLEVBQUUsQ0FBQztTQUNYO1FBQ0QsT0FBTyxLQUFLLENBQUMsY0FBYyxFQUFFLENBQUM7SUFDaEMsQ0FBQzt1R0FQVSxZQUFZO3FHQUFaLFlBQVk7OzJGQUFaLFlBQVk7a0JBSHhCLElBQUk7bUJBQUM7b0JBQ0osSUFBSSxFQUFFLFdBQVc7aUJBQ2xCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuLyoqXHJcbiAqIEZpbHRybyBwZXIgbGEgZm9ybWF0dGF6aW9uaSBkaSBudW1lcmlcclxuICovXHJcbkBQaXBlKHtcclxuICBuYW1lOiAnbnVtYmVyX2l0J1xyXG59KVxyXG5leHBvcnQgY2xhc3MgTnVtYmVySXRQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XHJcblxyXG4gIHRyYW5zZm9ybShpbnB1dDogYW55KTogYW55IHtcclxuICAgIGlmIChpbnB1dCA9PT0gdW5kZWZpbmVkIHx8IGlucHV0ID09PSBudWxsKSB7XHJcbiAgICAgIHJldHVybiAnJztcclxuICAgIH1cclxuICAgIHJldHVybiBpbnB1dC50b0xvY2FsZVN0cmluZygpO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/platform-browser";
|
|
4
|
+
export class SafeHtmlPipe {
|
|
5
|
+
sanitizer;
|
|
6
|
+
constructor(sanitizer) {
|
|
7
|
+
this.sanitizer = sanitizer;
|
|
8
|
+
}
|
|
9
|
+
transform(html, args) {
|
|
10
|
+
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
11
|
+
}
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
16
|
+
type: Pipe,
|
|
17
|
+
args: [{
|
|
18
|
+
name: 'safeHtml'
|
|
19
|
+
}]
|
|
20
|
+
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FmZS1odG1sLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW4tc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 export class TrendItPipe {
|
|
|
10
10
|
}
|
|
11
11
|
return input.toLocaleString() + ' %';
|
|
12
12
|
}
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: TrendItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: TrendItPipe, name: "trend_it" });
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
TrendItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, name: "trend_it" });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, decorators: [{
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: TrendItPipe, decorators: [{
|
|
17
17
|
type: Pipe,
|
|
18
18
|
args: [{
|
|
19
19
|
name: 'trend_it'
|
|
20
20
|
}]
|
|
21
21
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlbmQtaXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Npbi1waXBlcy9zcmMvbGliL3BpcGVzL3RyZW5kLWl0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBRXBEOztHQUVHO0FBSUgsTUFBTSxPQUFPLFdBQVc7SUFFdEIsU0FBUyxDQUFDLEtBQVU7UUFDbEIsSUFBSSxLQUFLLEtBQUssU0FBUyxJQUFJLEtBQUssS0FBSyxJQUFJLEVBQUU7WUFDekMsT0FBTyxFQUFFLENBQUM7U0FDWDtRQUNELE9BQU8sS0FBSyxDQUFDLGNBQWMsRUFBRSxHQUFHLElBQUksQ0FBQztJQUN2QyxDQUFDO3VHQVBVLFdBQVc7cUdBQVgsV0FBVzs7MkZBQVgsV0FBVztrQkFIdkIsSUFBSTttQkFBQztvQkFDSixJQUFJLEVBQUUsVUFBVTtpQkFDakIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG4vKipcclxuICogRmlsdHJvIHBlciBsYSBmb3JtYXR0YXppb25lIGRpIHVuIG51bWVybyAlICggY29tZSBpbCB0cmVuZCApXHJcbiAqL1xyXG5AUGlwZSh7XHJcbiAgbmFtZTogJ3RyZW5kX2l0J1xyXG59KVxyXG5leHBvcnQgY2xhc3MgVHJlbmRJdFBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcclxuXHJcbiAgdHJhbnNmb3JtKGlucHV0OiBhbnkpOiBhbnkge1xyXG4gICAgaWYgKGlucHV0ID09PSB1bmRlZmluZWQgfHwgaW5wdXQgPT09IG51bGwpIHtcclxuICAgICAgcmV0dXJuICcnO1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIGlucHV0LnRvTG9jYWxlU3RyaW5nKCkgKyAnICUnO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { FilterPipe } from './pipes/filter.pipe';
|
|
3
|
+
import { NumberItPipe } from './pipes/number-it.pipe';
|
|
4
|
+
import { TrendItPipe } from './pipes/trend-it.pipe';
|
|
5
|
+
import { CurrencyItPipe } from './pipes/currency-it.pipe';
|
|
6
|
+
import { SafeHtmlPipe } from './pipes/safe-html.pipe';
|
|
7
|
+
import { BooleanItPipe } from './pipes/boolean-it.pipe';
|
|
8
|
+
import { ByteToXFormatPipe } from './pipes/bytetoxformat.pipe';
|
|
9
|
+
import { FormErrorPipe } from './pipes/form-error.pipe';
|
|
10
|
+
import { CamelCaseToSplitPipe } from './pipes/camel-case-to-split.pipe';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export class SinPipesModule {
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule, declarations: [FilterPipe,
|
|
15
|
+
NumberItPipe,
|
|
16
|
+
TrendItPipe,
|
|
17
|
+
CurrencyItPipe,
|
|
18
|
+
SafeHtmlPipe,
|
|
19
|
+
BooleanItPipe,
|
|
20
|
+
ByteToXFormatPipe,
|
|
21
|
+
FormErrorPipe,
|
|
22
|
+
CamelCaseToSplitPipe], exports: [FilterPipe,
|
|
23
|
+
NumberItPipe,
|
|
24
|
+
TrendItPipe,
|
|
25
|
+
CurrencyItPipe,
|
|
26
|
+
SafeHtmlPipe,
|
|
27
|
+
BooleanItPipe,
|
|
28
|
+
ByteToXFormatPipe,
|
|
29
|
+
FormErrorPipe,
|
|
30
|
+
CamelCaseToSplitPipe] });
|
|
31
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule, decorators: [{
|
|
34
|
+
type: NgModule,
|
|
35
|
+
args: [{
|
|
36
|
+
declarations: [
|
|
37
|
+
FilterPipe,
|
|
38
|
+
NumberItPipe,
|
|
39
|
+
TrendItPipe,
|
|
40
|
+
CurrencyItPipe,
|
|
41
|
+
SafeHtmlPipe,
|
|
42
|
+
BooleanItPipe,
|
|
43
|
+
ByteToXFormatPipe,
|
|
44
|
+
FormErrorPipe,
|
|
45
|
+
CamelCaseToSplitPipe
|
|
46
|
+
],
|
|
47
|
+
imports: [],
|
|
48
|
+
exports: [
|
|
49
|
+
FilterPipe,
|
|
50
|
+
NumberItPipe,
|
|
51
|
+
TrendItPipe,
|
|
52
|
+
CurrencyItPipe,
|
|
53
|
+
SafeHtmlPipe,
|
|
54
|
+
BooleanItPipe,
|
|
55
|
+
ByteToXFormatPipe,
|
|
56
|
+
FormErrorPipe,
|
|
57
|
+
CamelCaseToSplitPipe
|
|
58
|
+
]
|
|
59
|
+
}]
|
|
60
|
+
}] });
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luLXBpcGVzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3Npbi1waXBlcy9zcmMvbGliL3Npbi1waXBlcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3RELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3RELE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUN0RCxPQUFPLEVBQUMsaUJBQWlCLE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bWJlckl0UGlwZSxcclxuICAgIFRyZW5kSXRQaXBlLFxyXG4gICAgQ3VycmVuY3lJdFBpcGUsXHJcbiAgICBTYWZlSHRtbFBpcGUsXHJcbiAgICBCb29sZWFuSXRQaXBlLFxyXG4gICAgQnl0ZVRvWEZvcm1hdFBpcGUsXHJcbiAgICBGb3JtRXJyb3JQaXBlLFxyXG4gICAgQ2FtZWxDYXNlVG9TcGxpdFBpcGVcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBTaW5QaXBlc01vZHVsZSB7IH1cclxuIl19
|
|
@@ -40,10 +40,10 @@ class FilterPipe {
|
|
|
40
40
|
}
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
44
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: FilterPipe, name: "filter" });
|
|
43
45
|
}
|
|
44
|
-
|
|
45
|
-
FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, name: "filter" });
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, decorators: [{
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FilterPipe, decorators: [{
|
|
47
47
|
type: Pipe,
|
|
48
48
|
args: [{
|
|
49
49
|
name: 'filter'
|
|
@@ -60,10 +60,10 @@ class NumberItPipe {
|
|
|
60
60
|
}
|
|
61
61
|
return input.toLocaleString();
|
|
62
62
|
}
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: NumberItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
64
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: NumberItPipe, name: "number_it" });
|
|
63
65
|
}
|
|
64
|
-
|
|
65
|
-
NumberItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, name: "number_it" });
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, decorators: [{
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: NumberItPipe, decorators: [{
|
|
67
67
|
type: Pipe,
|
|
68
68
|
args: [{
|
|
69
69
|
name: 'number_it'
|
|
@@ -80,10 +80,10 @@ class TrendItPipe {
|
|
|
80
80
|
}
|
|
81
81
|
return input.toLocaleString() + ' %';
|
|
82
82
|
}
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: TrendItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
84
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: TrendItPipe, name: "trend_it" });
|
|
83
85
|
}
|
|
84
|
-
|
|
85
|
-
TrendItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, name: "trend_it" });
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, decorators: [{
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: TrendItPipe, decorators: [{
|
|
87
87
|
type: Pipe,
|
|
88
88
|
args: [{
|
|
89
89
|
name: 'trend_it'
|
|
@@ -103,10 +103,10 @@ class CurrencyItPipe {
|
|
|
103
103
|
moneystr = input.toLocaleString() + dec + " \u20AC";
|
|
104
104
|
return moneystr;
|
|
105
105
|
}
|
|
106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CurrencyItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
107
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: CurrencyItPipe, name: "currency_it" });
|
|
106
108
|
}
|
|
107
|
-
|
|
108
|
-
CurrencyItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, name: "currency_it" });
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, decorators: [{
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CurrencyItPipe, decorators: [{
|
|
110
110
|
type: Pipe,
|
|
111
111
|
args: [{
|
|
112
112
|
name: 'currency_it'
|
|
@@ -114,16 +114,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
|
|
|
114
114
|
}] });
|
|
115
115
|
|
|
116
116
|
class SafeHtmlPipe {
|
|
117
|
+
sanitizer;
|
|
117
118
|
constructor(sanitizer) {
|
|
118
119
|
this.sanitizer = sanitizer;
|
|
119
120
|
}
|
|
120
121
|
transform(html, args) {
|
|
121
122
|
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
122
123
|
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
125
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
|
|
123
126
|
}
|
|
124
|
-
|
|
125
|
-
SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
127
128
|
type: Pipe,
|
|
128
129
|
args: [{
|
|
129
130
|
name: 'safeHtml'
|
|
@@ -137,10 +138,10 @@ class BooleanItPipe {
|
|
|
137
138
|
transform(value, ...args) {
|
|
138
139
|
return value === true ? 'Si' : 'No';
|
|
139
140
|
}
|
|
141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: BooleanItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
142
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: BooleanItPipe, name: "booleanIt" });
|
|
140
143
|
}
|
|
141
|
-
|
|
142
|
-
BooleanItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, name: "booleanIt" });
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, decorators: [{
|
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: BooleanItPipe, decorators: [{
|
|
144
145
|
type: Pipe,
|
|
145
146
|
args: [{
|
|
146
147
|
name: 'booleanIt'
|
|
@@ -162,10 +163,10 @@ class ByteToXFormatPipe {
|
|
|
162
163
|
return (value / (1024 ** 3)).toFixed(2);
|
|
163
164
|
}
|
|
164
165
|
}
|
|
166
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: ByteToXFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
167
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: ByteToXFormatPipe, name: "bytetoxformat" });
|
|
165
168
|
}
|
|
166
|
-
|
|
167
|
-
ByteToXFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, name: "bytetoxformat" });
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, decorators: [{
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: ByteToXFormatPipe, decorators: [{
|
|
169
170
|
type: Pipe,
|
|
170
171
|
args: [{ name: 'bytetoxformat' }]
|
|
171
172
|
}] });
|
|
@@ -216,10 +217,10 @@ class FormErrorPipe {
|
|
|
216
217
|
}
|
|
217
218
|
return '';
|
|
218
219
|
}
|
|
220
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FormErrorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
221
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: FormErrorPipe, name: "formError" });
|
|
219
222
|
}
|
|
220
|
-
|
|
221
|
-
FormErrorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, name: "formError" });
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, decorators: [{
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: FormErrorPipe, decorators: [{
|
|
223
224
|
type: Pipe,
|
|
224
225
|
args: [{
|
|
225
226
|
name: 'formError'
|
|
@@ -235,10 +236,10 @@ class CamelCaseToSplitPipe {
|
|
|
235
236
|
return value.match(/[A-Z][a-z]+|[0-9]+/g).join(' ');
|
|
236
237
|
}
|
|
237
238
|
}
|
|
239
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CamelCaseToSplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
240
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: CamelCaseToSplitPipe, name: "camelCaseToSplit" });
|
|
238
241
|
}
|
|
239
|
-
|
|
240
|
-
CamelCaseToSplitPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, name: "camelCaseToSplit" });
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, decorators: [{
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: CamelCaseToSplitPipe, decorators: [{
|
|
242
243
|
type: Pipe,
|
|
243
244
|
args: [{
|
|
244
245
|
name: 'camelCaseToSplit'
|
|
@@ -246,27 +247,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
|
|
|
246
247
|
}] });
|
|
247
248
|
|
|
248
249
|
class SinPipesModule {
|
|
250
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
251
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule, declarations: [FilterPipe,
|
|
252
|
+
NumberItPipe,
|
|
253
|
+
TrendItPipe,
|
|
254
|
+
CurrencyItPipe,
|
|
255
|
+
SafeHtmlPipe,
|
|
256
|
+
BooleanItPipe,
|
|
257
|
+
ByteToXFormatPipe,
|
|
258
|
+
FormErrorPipe,
|
|
259
|
+
CamelCaseToSplitPipe], exports: [FilterPipe,
|
|
260
|
+
NumberItPipe,
|
|
261
|
+
TrendItPipe,
|
|
262
|
+
CurrencyItPipe,
|
|
263
|
+
SafeHtmlPipe,
|
|
264
|
+
BooleanItPipe,
|
|
265
|
+
ByteToXFormatPipe,
|
|
266
|
+
FormErrorPipe,
|
|
267
|
+
CamelCaseToSplitPipe] });
|
|
268
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule });
|
|
249
269
|
}
|
|
250
|
-
|
|
251
|
-
SinPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, declarations: [FilterPipe,
|
|
252
|
-
NumberItPipe,
|
|
253
|
-
TrendItPipe,
|
|
254
|
-
CurrencyItPipe,
|
|
255
|
-
SafeHtmlPipe,
|
|
256
|
-
BooleanItPipe,
|
|
257
|
-
ByteToXFormatPipe,
|
|
258
|
-
FormErrorPipe,
|
|
259
|
-
CamelCaseToSplitPipe], exports: [FilterPipe,
|
|
260
|
-
NumberItPipe,
|
|
261
|
-
TrendItPipe,
|
|
262
|
-
CurrencyItPipe,
|
|
263
|
-
SafeHtmlPipe,
|
|
264
|
-
BooleanItPipe,
|
|
265
|
-
ByteToXFormatPipe,
|
|
266
|
-
FormErrorPipe,
|
|
267
|
-
CamelCaseToSplitPipe] });
|
|
268
|
-
SinPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, imports: [[]] });
|
|
269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, decorators: [{
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: SinPipesModule, decorators: [{
|
|
270
271
|
type: NgModule,
|
|
271
272
|
args: [{
|
|
272
273
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sin-pipes.mjs","sources":["../../../projects/sin-pipes/src/lib/pipes/filter.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/number-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/trend-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/currency-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/safe-html.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/boolean-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/bytetoxformat.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/form-error.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/camel-case-to-split.pipe.ts","../../../projects/sin-pipes/src/lib/sin-pipes.module.ts","../../../projects/sin-pipes/src/public-api.ts","../../../projects/sin-pipes/src/sin-pipes.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro che replica il \"filter\" di AngularJS (da usare con parsimonia, se una vista necessita un filtro particolare è meglio farne uno specifico)\r\n */\r\n@Pipe({\r\n name: 'filter'\r\n})\r\nexport class FilterPipe implements PipeTransform {\r\n\r\n transform(items: any[], searchText: string): any {\r\n if (searchText === '') searchText = undefined;\r\n\r\n if (searchText !== undefined && items !== undefined && searchText !== null) {\r\n searchText = searchText.toLowerCase();\r\n return items.filter(item => {\r\n return this.applyFilter(item, searchText);\r\n });\r\n } else {\r\n return items;\r\n }\r\n }\r\n\r\n /**\r\n * TODO da migliorare con l'implementazione delle date e/o altri tipi\r\n * Applica il filtro all'oggetto\r\n */\r\n applyFilter(item: any, filter: string): boolean {\r\n for (const field in item) {\r\n if (item[field] === null) continue;\r\n\r\n if (typeof item[field] === 'string') {\r\n if (item[field].toLowerCase().indexOf(filter) !== -1) {\r\n return true;\r\n }\r\n } else if (typeof item[field] === 'number') {\r\n if (item[field] === filter) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazioni di numeri\r\n */\r\n@Pipe({\r\n name: 'number_it'\r\n})\r\nexport class NumberItPipe implements PipeTransform {\r\n\r\n transform(input: any): any {\r\n if (input === undefined || input === null) {\r\n return '';\r\n }\r\n return input.toLocaleString();\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione di un numero % ( come il trend )\r\n */\r\n@Pipe({\r\n name: 'trend_it'\r\n})\r\nexport class TrendItPipe implements PipeTransform {\r\n\r\n transform(input: any): any {\r\n if (input === undefined || input === null) {\r\n return '';\r\n }\r\n return input.toLocaleString() + ' %';\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione degli importi ( per ora fisso in € )\r\n */\r\n@Pipe({\r\n name: 'currency_it'\r\n})\r\nexport class CurrencyItPipe implements PipeTransform {\r\n\r\n transform(input: any): any\r\n {\r\n if (input === undefined || input === null)\r\n {\r\n return \"\";\r\n }\r\n\r\n let moneystr = \"\";\r\n let dec = (input - Math.floor(input) == 0) ? \",00\" : \"\";\r\n moneystr = input.toLocaleString() + dec + \" \\u20AC\";\r\n return moneystr;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {DomSanitizer} from '@angular/platform-browser';\r\n\r\n@Pipe({\r\n name: 'safeHtml'\r\n})\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(html: any, args?: any): any {\r\n return this.sanitizer.bypassSecurityTrustHtml(html);\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione di booleani in visualizzazione\r\n */\r\n@Pipe({\r\n name: 'booleanIt'\r\n})\r\nexport class BooleanItPipe implements PipeTransform {\r\n\r\n transform(value: any, ...args: any[]): any {\r\n return value === true ? 'Si' : 'No';\r\n }\r\n\r\n}\r\n\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione del size dei file\r\n */\r\n@Pipe({ name: 'bytetoxformat' })\r\nexport class ByteToXFormatPipe implements PipeTransform {\r\n transform(value: number, newFormat: string): string {\r\n if (newFormat === 'kilobytes') {\r\n return (value / 1024).toFixed(2);\r\n }\r\n if (newFormat === 'megabytes') {\r\n return (value / (1024 ** 2)).toFixed(2);\r\n }\r\n if (newFormat === 'gigbytes') {\r\n return (value / (1024 ** 3)).toFixed(2);\r\n }\r\n }\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\nimport {ValidationErrors} from '@angular/forms';\r\n\r\n@Pipe({\r\n name: 'formError'\r\n})\r\nexport class FormErrorPipe implements PipeTransform {\r\n\r\n transform(errors: ValidationErrors): any {\r\n if (errors) {\r\n let text: string = '';\r\n Object.keys(errors).forEach(error => {\r\n switch (error) {\r\n case 'required':\r\n text += ` campo obbligatorio !`;\r\n break;\r\n case 'pattern':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'requiredPattern':\r\n text += ` non rispetta la formattazione richiesta !`;\r\n break;\r\n case 'invalid':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'email':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'minlength':\r\n text += ` lunghezza minima ${errors[error].requiredLength} caratteri !`;\r\n break;\r\n case 'maxlength':\r\n text += ` lunghezza massima ${errors[error].requiredLength} caratteri !`;\r\n break;\r\n case 'areEqual':\r\n text += ` deve essere uguale !`;\r\n break;\r\n case 'ngbDate':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'value':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'actualValue':\r\n break;\r\n default:\r\n text += `${error}: ${errors[error]}`;\r\n }\r\n });\r\n return text;\r\n }\r\n return '';\r\n }\r\n\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'camelCaseToSplit'\r\n})\r\nexport class CamelCaseToSplitPipe implements PipeTransform {\r\n\r\n transform(value: string): string {\r\n if (value === value.toUpperCase() || value === value.toLowerCase()) {\r\n return value;\r\n } else {\r\n return value.match(/[A-Z][a-z]+|[0-9]+/g).join(' ');\r\n }\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FilterPipe } from './pipes/filter.pipe';\r\nimport { NumberItPipe } from './pipes/number-it.pipe';\r\nimport { TrendItPipe } from './pipes/trend-it.pipe';\r\nimport { CurrencyItPipe } from './pipes/currency-it.pipe';\r\nimport { SafeHtmlPipe } from './pipes/safe-html.pipe';\r\nimport {BooleanItPipe} from './pipes/boolean-it.pipe';\r\nimport {ByteToXFormatPipe} from './pipes/bytetoxformat.pipe';\r\nimport {FormErrorPipe} from './pipes/form-error.pipe';\r\nimport {CamelCaseToSplitPipe} from './pipes/camel-case-to-split.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n FilterPipe,\r\n NumberItPipe,\r\n TrendItPipe,\r\n CurrencyItPipe,\r\n SafeHtmlPipe,\r\n BooleanItPipe,\r\n ByteToXFormatPipe,\r\n FormErrorPipe,\r\n CamelCaseToSplitPipe\r\n ],\r\n imports: [ ],\r\n exports: [\r\n FilterPipe,\r\n NumberItPipe,\r\n TrendItPipe,\r\n CurrencyItPipe,\r\n SafeHtmlPipe,\r\n BooleanItPipe,\r\n ByteToXFormatPipe,\r\n FormErrorPipe,\r\n CamelCaseToSplitPipe\r\n ]\r\n})\r\nexport class SinPipesModule { }\r\n","/*\r\n * Public API Surface of sin-pipes\r\n */\r\n\r\nexport * from './lib/sin-pipes.module';\r\n\r\nexport * from './lib/pipes/boolean-it.pipe';\r\nexport * from './lib/pipes/bytetoxformat.pipe';\r\nexport * from './lib/pipes/camel-case-to-split.pipe';\r\nexport * from './lib/pipes/filter.pipe';\r\nexport * from './lib/pipes/form-error.pipe';\r\nexport * from './lib/pipes/currency-it.pipe';\r\nexport * from './lib/pipes/number-it.pipe';\r\nexport * from './lib/pipes/safe-html.pipe';\r\nexport * from './lib/pipes/trend-it.pipe';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAEA;;;MAMa,UAAU;IAErB,SAAS,CAAC,KAAY,EAAE,UAAkB;QACxC,IAAI,UAAU,KAAK,EAAE;YAAE,UAAU,GAAG,SAAS,CAAC;QAE9C,IAAI,UAAU,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,IAAI,UAAU,KAAK,IAAI,EAAE;YAC1E,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;YACtC,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI;gBACtB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;aAC3C,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,KAAK,CAAC;SACd;KACF;;;;;IAMD,WAAW,CAAC,IAAS,EAAE,MAAc;QACnC,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE;YACxB,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI;gBAAE,SAAS;YAEnC,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;gBACnC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;oBACpD,OAAO,I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a;QACrB,IAAI,KAAK,KAAK,KAAK,CAAC,WAAW,EAAE,IAAI,KAAK,KAAK,KAAK,CAAC,WAAW,EAAE,EAAE;YAClE,OAAO,KAAK,CAAC;SACd;aAAM;YACL,OAAO,KAAK,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACrD;KACF;;iHARU,oBAAoB;+GAApB,oBAAoB;2FAApB,oBAAoB;kBAHhC,IAAI;mBAAC;oBACJ,IAAI,EAAE,kBAAkB;iBACzB;;;MCgCY,cAAc;;2GAAd,cAAc;4GAAd,cAAc,iBAvBvB,UAAU;QACV,YAAY;QACZ,WAAW;QACX,cAAc;QACd,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,aAAa;QACb,oBAAoB,aAIpB,UAAU;QACV,YAAY;QACZ,WAAW;QACX,cAAc;QACd,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,aAAa;QACb,oBAAoB;4GAGX,cAAc,YAbhB,EAAG;2FAaD,cAAc;kBAzB1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,UAAU;wBACV,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,iBAAiB;wBACjB,aAAa;wBACb,oBAAoB;qBACrB;oBACD,OAAO,EAAE,EAAG;oBACZ,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,iBAAiB;wBACjB,aAAa;wBACb,oBAAoB;qBACrB;iBACF;;;ACnCD;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"sin-pipes.mjs","sources":["../../../projects/sin-pipes/src/lib/pipes/filter.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/number-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/trend-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/currency-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/safe-html.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/boolean-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/bytetoxformat.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/form-error.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/camel-case-to-split.pipe.ts","../../../projects/sin-pipes/src/lib/sin-pipes.module.ts","../../../projects/sin-pipes/src/public-api.ts","../../../projects/sin-pipes/src/sin-pipes.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro che replica il \"filter\" di AngularJS (da usare con parsimonia, se una vista necessita un filtro particolare è meglio farne uno specifico)\r\n */\r\n@Pipe({\r\n name: 'filter'\r\n})\r\nexport class FilterPipe implements PipeTransform {\r\n\r\n transform(items: any[], searchText: string): any {\r\n if (searchText === '') searchText = undefined;\r\n\r\n if (searchText !== undefined && items !== undefined && searchText !== null) {\r\n searchText = searchText.toLowerCase();\r\n return items.filter(item => {\r\n return this.applyFilter(item, searchText);\r\n });\r\n } else {\r\n return items;\r\n }\r\n }\r\n\r\n /**\r\n * TODO da migliorare con l'implementazione delle date e/o altri tipi\r\n * Applica il filtro all'oggetto\r\n */\r\n applyFilter(item: any, filter: string): boolean {\r\n for (const field in item) {\r\n if (item[field] === null) continue;\r\n\r\n if (typeof item[field] === 'string') {\r\n if (item[field].toLowerCase().indexOf(filter) !== -1) {\r\n return true;\r\n }\r\n } else if (typeof item[field] === 'number') {\r\n if (item[field] === filter) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazioni di numeri\r\n */\r\n@Pipe({\r\n name: 'number_it'\r\n})\r\nexport class NumberItPipe implements PipeTransform {\r\n\r\n transform(input: any): any {\r\n if (input === undefined || input === null) {\r\n return '';\r\n }\r\n return input.toLocaleString();\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione di un numero % ( come il trend )\r\n */\r\n@Pipe({\r\n name: 'trend_it'\r\n})\r\nexport class TrendItPipe implements PipeTransform {\r\n\r\n transform(input: any): any {\r\n if (input === undefined || input === null) {\r\n return '';\r\n }\r\n return input.toLocaleString() + ' %';\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione degli importi ( per ora fisso in € )\r\n */\r\n@Pipe({\r\n name: 'currency_it'\r\n})\r\nexport class CurrencyItPipe implements PipeTransform {\r\n\r\n transform(input: any): any\r\n {\r\n if (input === undefined || input === null)\r\n {\r\n return \"\";\r\n }\r\n\r\n let moneystr = \"\";\r\n let dec = (input - Math.floor(input) == 0) ? \",00\" : \"\";\r\n moneystr = input.toLocaleString() + dec + \" \\u20AC\";\r\n return moneystr;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {DomSanitizer} from '@angular/platform-browser';\r\n\r\n@Pipe({\r\n name: 'safeHtml'\r\n})\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(html: any, args?: any): any {\r\n return this.sanitizer.bypassSecurityTrustHtml(html);\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione di booleani in visualizzazione\r\n */\r\n@Pipe({\r\n name: 'booleanIt'\r\n})\r\nexport class BooleanItPipe implements PipeTransform {\r\n\r\n transform(value: any, ...args: any[]): any {\r\n return value === true ? 'Si' : 'No';\r\n }\r\n\r\n}\r\n\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione del size dei file\r\n */\r\n@Pipe({ name: 'bytetoxformat' })\r\nexport class ByteToXFormatPipe implements PipeTransform {\r\n transform(value: number, newFormat: string): string {\r\n if (newFormat === 'kilobytes') {\r\n return (value / 1024).toFixed(2);\r\n }\r\n if (newFormat === 'megabytes') {\r\n return (value / (1024 ** 2)).toFixed(2);\r\n }\r\n if (newFormat === 'gigbytes') {\r\n return (value / (1024 ** 3)).toFixed(2);\r\n }\r\n }\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\nimport {ValidationErrors} from '@angular/forms';\r\n\r\n@Pipe({\r\n name: 'formError'\r\n})\r\nexport class FormErrorPipe implements PipeTransform {\r\n\r\n transform(errors: ValidationErrors): any {\r\n if (errors) {\r\n let text: string = '';\r\n Object.keys(errors).forEach(error => {\r\n switch (error) {\r\n case 'required':\r\n text += ` campo obbligatorio !`;\r\n break;\r\n case 'pattern':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'requiredPattern':\r\n text += ` non rispetta la formattazione richiesta !`;\r\n break;\r\n case 'invalid':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'email':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'minlength':\r\n text += ` lunghezza minima ${errors[error].requiredLength} caratteri !`;\r\n break;\r\n case 'maxlength':\r\n text += ` lunghezza massima ${errors[error].requiredLength} caratteri !`;\r\n break;\r\n case 'areEqual':\r\n text += ` deve essere uguale !`;\r\n break;\r\n case 'ngbDate':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'value':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'actualValue':\r\n break;\r\n default:\r\n text += `${error}: ${errors[error]}`;\r\n }\r\n });\r\n return text;\r\n }\r\n return '';\r\n }\r\n\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'camelCaseToSplit'\r\n})\r\nexport class CamelCaseToSplitPipe implements PipeTransform {\r\n\r\n transform(value: string): string {\r\n if (value === value.toUpperCase() || value === value.toLowerCase()) {\r\n return value;\r\n } else {\r\n return value.match(/[A-Z][a-z]+|[0-9]+/g).join(' ');\r\n }\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FilterPipe } from './pipes/filter.pipe';\r\nimport { NumberItPipe } from './pipes/number-it.pipe';\r\nimport { TrendItPipe } from './pipes/trend-it.pipe';\r\nimport { CurrencyItPipe } from './pipes/currency-it.pipe';\r\nimport { SafeHtmlPipe } from './pipes/safe-html.pipe';\r\nimport {BooleanItPipe} from './pipes/boolean-it.pipe';\r\nimport {ByteToXFormatPipe} from './pipes/bytetoxformat.pipe';\r\nimport {FormErrorPipe} from './pipes/form-error.pipe';\r\nimport {CamelCaseToSplitPipe} from './pipes/camel-case-to-split.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n FilterPipe,\r\n NumberItPipe,\r\n TrendItPipe,\r\n CurrencyItPipe,\r\n SafeHtmlPipe,\r\n BooleanItPipe,\r\n ByteToXFormatPipe,\r\n FormErrorPipe,\r\n CamelCaseToSplitPipe\r\n ],\r\n imports: [ ],\r\n exports: [\r\n FilterPipe,\r\n NumberItPipe,\r\n TrendItPipe,\r\n CurrencyItPipe,\r\n SafeHtmlPipe,\r\n BooleanItPipe,\r\n ByteToXFormatPipe,\r\n FormErrorPipe,\r\n CamelCaseToSplitPipe\r\n ]\r\n})\r\nexport class SinPipesModule { }\r\n","/*\r\n * Public API Surface of sin-pipes\r\n */\r\n\r\nexport * from './lib/sin-pipes.module';\r\n\r\nexport * from './lib/pipes/boolean-it.pipe';\r\nexport * from './lib/pipes/bytetoxformat.pipe';\r\nexport * from './lib/pipes/camel-case-to-split.pipe';\r\nexport * from './lib/pipes/filter.pipe';\r\nexport * from './lib/pipes/form-error.pipe';\r\nexport * from './lib/pipes/currency-it.pipe';\r\nexport * from './lib/pipes/number-it.pipe';\r\nexport * from './lib/pipes/safe-html.pipe';\r\nexport * from './lib/pipes/trend-it.pipe';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAEA;;AAEG;MAIU,UAAU,CAAA;IAErB,SAAS,CAAC,KAAY,EAAE,UAAkB,EAAA;QACxC,IAAI,UAAU,KAAK,EAAE;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AvBvB,UAAU;YACV,YAAY;YACZ,WAAW;YACX,cAAc;YACd,YAAY;YACZ,aAAa;YACb,iBAAiB;YACjB,aAAa;AACb,YAAA,oBAAoB,aAIpB,UAAU;YACV,YAAY;YACZ,WAAW;YACX,cAAc;YACd,YAAY;YACZ,aAAa;YACb,iBAAiB;YACjB,aAAa;YACb,oBAAoB,CAAA,EAAA,CAAA,CAAA;wGAGX,cAAc,EAAA,CAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAzB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,UAAU;wBACV,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,iBAAiB;wBACjB,aAAa;wBACb,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAG;AACZ,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ,aAAa;wBACb,iBAAiB;wBACjB,aAAa;wBACb,oBAAoB;AACrB,qBAAA;AACF,iBAAA,CAAA;;;ACnCD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class BooleanItPipe implements PipeTransform {
|
|
7
7
|
transform(value: any, ...args: any[]): any;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanItPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BooleanItPipe, "booleanIt">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BooleanItPipe, "booleanIt", false>;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class ByteToXFormatPipe implements PipeTransform {
|
|
7
7
|
transform(value: number, newFormat: string): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ByteToXFormatPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ByteToXFormatPipe, "bytetoxformat">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ByteToXFormatPipe, "bytetoxformat", false>;
|
|
10
10
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class CamelCaseToSplitPipe implements PipeTransform {
|
|
4
4
|
transform(value: string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<CamelCaseToSplitPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CamelCaseToSplitPipe, "camelCaseToSplit">;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CamelCaseToSplitPipe, "camelCaseToSplit", false>;
|
|
7
7
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class CurrencyItPipe implements PipeTransform {
|
|
7
7
|
transform(input: any): any;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyItPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyItPipe, "currency_it">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyItPipe, "currency_it", false>;
|
|
10
10
|
}
|
|
@@ -11,5 +11,5 @@ export declare class FilterPipe implements PipeTransform {
|
|
|
11
11
|
*/
|
|
12
12
|
applyFilter(item: any, filter: string): boolean;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
|
|
14
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter">;
|
|
14
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", false>;
|
|
15
15
|
}
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class FormErrorPipe implements PipeTransform {
|
|
5
5
|
transform(errors: ValidationErrors): any;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FormErrorPipe, "formError">;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormErrorPipe, "formError", false>;
|
|
8
8
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class NumberItPipe implements PipeTransform {
|
|
7
7
|
transform(input: any): any;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberItPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NumberItPipe, "number_it">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumberItPipe, "number_it", false>;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ export declare class SafeHtmlPipe implements PipeTransform {
|
|
|
6
6
|
constructor(sanitizer: DomSanitizer);
|
|
7
7
|
transform(html: any, args?: any): any;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class TrendItPipe implements PipeTransform {
|
|
7
7
|
transform(input: any): any;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TrendItPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TrendItPipe, "trend_it">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TrendItPipe, "trend_it", false>;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sin-pipes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": ">=
|
|
6
|
-
"@angular/core": ">=
|
|
5
|
+
"@angular/common": ">=15.0.0 < 17.0.0",
|
|
6
|
+
"@angular/core": ">=15.0.0 < 17.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.0.0"
|
|
10
10
|
},
|
|
11
|
-
"module": "
|
|
12
|
-
"
|
|
13
|
-
"esm2020": "esm2020/sin-pipes.mjs",
|
|
14
|
-
"fesm2020": "fesm2020/sin-pipes.mjs",
|
|
15
|
-
"fesm2015": "fesm2015/sin-pipes.mjs",
|
|
16
|
-
"typings": "sin-pipes.d.ts",
|
|
11
|
+
"module": "fesm2022/sin-pipes.mjs",
|
|
12
|
+
"typings": "index.d.ts",
|
|
17
13
|
"exports": {
|
|
18
14
|
"./package.json": {
|
|
19
15
|
"default": "./package.json"
|
|
20
16
|
},
|
|
21
17
|
".": {
|
|
22
|
-
"types": "./
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"node": "./fesm2015/sin-pipes.mjs",
|
|
27
|
-
"default": "./fesm2020/sin-pipes.mjs"
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"esm2022": "./esm2022/sin-pipes.mjs",
|
|
20
|
+
"esm": "./esm2022/sin-pipes.mjs",
|
|
21
|
+
"default": "./fesm2022/sin-pipes.mjs"
|
|
28
22
|
}
|
|
29
23
|
},
|
|
30
24
|
"sideEffects": false
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/platform-browser";
|
|
4
|
-
export class SafeHtmlPipe {
|
|
5
|
-
constructor(sanitizer) {
|
|
6
|
-
this.sanitizer = sanitizer;
|
|
7
|
-
}
|
|
8
|
-
transform(html, args) {
|
|
9
|
-
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
-
SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
15
|
-
type: Pipe,
|
|
16
|
-
args: [{
|
|
17
|
-
name: 'safeHtml'
|
|
18
|
-
}]
|
|
19
|
-
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FmZS1odG1sLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW4tcGlwZXMvc3JjL2xpYi9waXBlcy9zYWZlLWh0bWwucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7O0FBTXBELE1BQU0sT0FBTyxZQUFZO0lBQ3ZCLFlBQW9CLFNBQXVCO1FBQXZCLGNBQVMsR0FBVCxTQUFTLENBQWM7SUFBSSxDQUFDO0lBRWhELFNBQVMsQ0FBQyxJQUFTLEVBQUUsSUFBVTtRQUM3QixPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsdUJBQXVCLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDdEQsQ0FBQzs7eUdBTFUsWUFBWTt1R0FBWixZQUFZOzJGQUFaLFlBQVk7a0JBSHhCLElBQUk7bUJBQUM7b0JBQ0osSUFBSSxFQUFFLFVBQVU7aUJBQ2pCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQge0RvbVNhbml0aXplcn0gZnJvbSAnQGFuZ3VsYXIvcGxhdGZvcm0tYnJvd3Nlcic7XHJcblxyXG5AUGlwZSh7XHJcbiAgbmFtZTogJ3NhZmVIdG1sJ1xyXG59KVxyXG5leHBvcnQgY2xhc3MgU2FmZUh0bWxQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XHJcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBzYW5pdGl6ZXI6IERvbVNhbml0aXplcikgeyB9XHJcblxyXG4gIHRyYW5zZm9ybShodG1sOiBhbnksIGFyZ3M/OiBhbnkpOiBhbnkge1xyXG4gICAgcmV0dXJuIHRoaXMuc2FuaXRpemVyLmJ5cGFzc1NlY3VyaXR5VHJ1c3RIdG1sKGh0bWwpO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { FilterPipe } from './pipes/filter.pipe';
|
|
3
|
-
import { NumberItPipe } from './pipes/number-it.pipe';
|
|
4
|
-
import { TrendItPipe } from './pipes/trend-it.pipe';
|
|
5
|
-
import { CurrencyItPipe } from './pipes/currency-it.pipe';
|
|
6
|
-
import { SafeHtmlPipe } from './pipes/safe-html.pipe';
|
|
7
|
-
import { BooleanItPipe } from './pipes/boolean-it.pipe';
|
|
8
|
-
import { ByteToXFormatPipe } from './pipes/bytetoxformat.pipe';
|
|
9
|
-
import { FormErrorPipe } from './pipes/form-error.pipe';
|
|
10
|
-
import { CamelCaseToSplitPipe } from './pipes/camel-case-to-split.pipe';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export class SinPipesModule {
|
|
13
|
-
}
|
|
14
|
-
SinPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
15
|
-
SinPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, declarations: [FilterPipe,
|
|
16
|
-
NumberItPipe,
|
|
17
|
-
TrendItPipe,
|
|
18
|
-
CurrencyItPipe,
|
|
19
|
-
SafeHtmlPipe,
|
|
20
|
-
BooleanItPipe,
|
|
21
|
-
ByteToXFormatPipe,
|
|
22
|
-
FormErrorPipe,
|
|
23
|
-
CamelCaseToSplitPipe], exports: [FilterPipe,
|
|
24
|
-
NumberItPipe,
|
|
25
|
-
TrendItPipe,
|
|
26
|
-
CurrencyItPipe,
|
|
27
|
-
SafeHtmlPipe,
|
|
28
|
-
BooleanItPipe,
|
|
29
|
-
ByteToXFormatPipe,
|
|
30
|
-
FormErrorPipe,
|
|
31
|
-
CamelCaseToSplitPipe] });
|
|
32
|
-
SinPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, imports: [[]] });
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, decorators: [{
|
|
34
|
-
type: NgModule,
|
|
35
|
-
args: [{
|
|
36
|
-
declarations: [
|
|
37
|
-
FilterPipe,
|
|
38
|
-
NumberItPipe,
|
|
39
|
-
TrendItPipe,
|
|
40
|
-
CurrencyItPipe,
|
|
41
|
-
SafeHtmlPipe,
|
|
42
|
-
BooleanItPipe,
|
|
43
|
-
ByteToXFormatPipe,
|
|
44
|
-
FormErrorPipe,
|
|
45
|
-
CamelCaseToSplitPipe
|
|
46
|
-
],
|
|
47
|
-
imports: [],
|
|
48
|
-
exports: [
|
|
49
|
-
FilterPipe,
|
|
50
|
-
NumberItPipe,
|
|
51
|
-
TrendItPipe,
|
|
52
|
-
CurrencyItPipe,
|
|
53
|
-
SafeHtmlPipe,
|
|
54
|
-
BooleanItPipe,
|
|
55
|
-
ByteToXFormatPipe,
|
|
56
|
-
FormErrorPipe,
|
|
57
|
-
CamelCaseToSplitPipe
|
|
58
|
-
]
|
|
59
|
-
}]
|
|
60
|
-
}] });
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luLXBpcGVzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3Npbi1waXBlcy9zcmMvbGliL3Npbi1waXBlcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3RELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3RELE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUN0RCxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSw0QkFBNEIsQ0FBQztBQUM3RCxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0seUJBQXlCLENBQUM7QUFDdEQsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sa0NBQWtDLENBQUM7O0FBMkJ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JcbiAgICBCeXRlVG9YRm9ybWF0UGlwZSxcclxuICAgIEZvcm1FcnJvclBpcGUsXHJcbiAgICBDYW1lbENhc2VUb1NwbGl0UGlwZVxyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIFNpblBpcGVzTW9kdWxlIHsgfVxyXG4iXX0=
|
package/fesm2015/sin-pipes.mjs
DELETED
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/platform-browser';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Filtro che replica il "filter" di AngularJS (da usare con parsimonia, se una vista necessita un filtro particolare è meglio farne uno specifico)
|
|
7
|
-
*/
|
|
8
|
-
class FilterPipe {
|
|
9
|
-
transform(items, searchText) {
|
|
10
|
-
if (searchText === '')
|
|
11
|
-
searchText = undefined;
|
|
12
|
-
if (searchText !== undefined && items !== undefined && searchText !== null) {
|
|
13
|
-
searchText = searchText.toLowerCase();
|
|
14
|
-
return items.filter(item => {
|
|
15
|
-
return this.applyFilter(item, searchText);
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return items;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* TODO da migliorare con l'implementazione delle date e/o altri tipi
|
|
24
|
-
* Applica il filtro all'oggetto
|
|
25
|
-
*/
|
|
26
|
-
applyFilter(item, filter) {
|
|
27
|
-
for (const field in item) {
|
|
28
|
-
if (item[field] === null)
|
|
29
|
-
continue;
|
|
30
|
-
if (typeof item[field] === 'string') {
|
|
31
|
-
if (item[field].toLowerCase().indexOf(filter) !== -1) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else if (typeof item[field] === 'number') {
|
|
36
|
-
if (item[field] === filter) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
45
|
-
FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, name: "filter" });
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FilterPipe, decorators: [{
|
|
47
|
-
type: Pipe,
|
|
48
|
-
args: [{
|
|
49
|
-
name: 'filter'
|
|
50
|
-
}]
|
|
51
|
-
}] });
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Filtro per la formattazioni di numeri
|
|
55
|
-
*/
|
|
56
|
-
class NumberItPipe {
|
|
57
|
-
transform(input) {
|
|
58
|
-
if (input === undefined || input === null) {
|
|
59
|
-
return '';
|
|
60
|
-
}
|
|
61
|
-
return input.toLocaleString();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
NumberItPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
65
|
-
NumberItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, name: "number_it" });
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: NumberItPipe, decorators: [{
|
|
67
|
-
type: Pipe,
|
|
68
|
-
args: [{
|
|
69
|
-
name: 'number_it'
|
|
70
|
-
}]
|
|
71
|
-
}] });
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Filtro per la formattazione di un numero % ( come il trend )
|
|
75
|
-
*/
|
|
76
|
-
class TrendItPipe {
|
|
77
|
-
transform(input) {
|
|
78
|
-
if (input === undefined || input === null) {
|
|
79
|
-
return '';
|
|
80
|
-
}
|
|
81
|
-
return input.toLocaleString() + ' %';
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
TrendItPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
85
|
-
TrendItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, name: "trend_it" });
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrendItPipe, decorators: [{
|
|
87
|
-
type: Pipe,
|
|
88
|
-
args: [{
|
|
89
|
-
name: 'trend_it'
|
|
90
|
-
}]
|
|
91
|
-
}] });
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Filtro per la formattazione degli importi ( per ora fisso in € )
|
|
95
|
-
*/
|
|
96
|
-
class CurrencyItPipe {
|
|
97
|
-
transform(input) {
|
|
98
|
-
if (input === undefined || input === null) {
|
|
99
|
-
return "";
|
|
100
|
-
}
|
|
101
|
-
let moneystr = "";
|
|
102
|
-
let dec = (input - Math.floor(input) == 0) ? ",00" : "";
|
|
103
|
-
moneystr = input.toLocaleString() + dec + " \u20AC";
|
|
104
|
-
return moneystr;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
CurrencyItPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
108
|
-
CurrencyItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, name: "currency_it" });
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CurrencyItPipe, decorators: [{
|
|
110
|
-
type: Pipe,
|
|
111
|
-
args: [{
|
|
112
|
-
name: 'currency_it'
|
|
113
|
-
}]
|
|
114
|
-
}] });
|
|
115
|
-
|
|
116
|
-
class SafeHtmlPipe {
|
|
117
|
-
constructor(sanitizer) {
|
|
118
|
-
this.sanitizer = sanitizer;
|
|
119
|
-
}
|
|
120
|
-
transform(html, args) {
|
|
121
|
-
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
125
|
-
SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
127
|
-
type: Pipe,
|
|
128
|
-
args: [{
|
|
129
|
-
name: 'safeHtml'
|
|
130
|
-
}]
|
|
131
|
-
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Filtro per la formattazione di booleani in visualizzazione
|
|
135
|
-
*/
|
|
136
|
-
class BooleanItPipe {
|
|
137
|
-
transform(value, ...args) {
|
|
138
|
-
return value === true ? 'Si' : 'No';
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
BooleanItPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
142
|
-
BooleanItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, name: "booleanIt" });
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: BooleanItPipe, decorators: [{
|
|
144
|
-
type: Pipe,
|
|
145
|
-
args: [{
|
|
146
|
-
name: 'booleanIt'
|
|
147
|
-
}]
|
|
148
|
-
}] });
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Filtro per la formattazione del size dei file
|
|
152
|
-
*/
|
|
153
|
-
class ByteToXFormatPipe {
|
|
154
|
-
transform(value, newFormat) {
|
|
155
|
-
if (newFormat === 'kilobytes') {
|
|
156
|
-
return (value / 1024).toFixed(2);
|
|
157
|
-
}
|
|
158
|
-
if (newFormat === 'megabytes') {
|
|
159
|
-
return (value / (Math.pow(1024, 2))).toFixed(2);
|
|
160
|
-
}
|
|
161
|
-
if (newFormat === 'gigbytes') {
|
|
162
|
-
return (value / (Math.pow(1024, 3))).toFixed(2);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
ByteToXFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
167
|
-
ByteToXFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, name: "bytetoxformat" });
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ByteToXFormatPipe, decorators: [{
|
|
169
|
-
type: Pipe,
|
|
170
|
-
args: [{ name: 'bytetoxformat' }]
|
|
171
|
-
}] });
|
|
172
|
-
|
|
173
|
-
class FormErrorPipe {
|
|
174
|
-
transform(errors) {
|
|
175
|
-
if (errors) {
|
|
176
|
-
let text = '';
|
|
177
|
-
Object.keys(errors).forEach(error => {
|
|
178
|
-
switch (error) {
|
|
179
|
-
case 'required':
|
|
180
|
-
text += ` campo obbligatorio !`;
|
|
181
|
-
break;
|
|
182
|
-
case 'pattern':
|
|
183
|
-
text += ` ha un formato non valido !`;
|
|
184
|
-
break;
|
|
185
|
-
case 'requiredPattern':
|
|
186
|
-
text += ` non rispetta la formattazione richiesta !`;
|
|
187
|
-
break;
|
|
188
|
-
case 'invalid':
|
|
189
|
-
text += ` ha un formato non valido !`;
|
|
190
|
-
break;
|
|
191
|
-
case 'email':
|
|
192
|
-
text += ` ha un formato non valido !`;
|
|
193
|
-
break;
|
|
194
|
-
case 'minlength':
|
|
195
|
-
text += ` lunghezza minima ${errors[error].requiredLength} caratteri !`;
|
|
196
|
-
break;
|
|
197
|
-
case 'maxlength':
|
|
198
|
-
text += ` lunghezza massima ${errors[error].requiredLength} caratteri !`;
|
|
199
|
-
break;
|
|
200
|
-
case 'areEqual':
|
|
201
|
-
text += ` deve essere uguale !`;
|
|
202
|
-
break;
|
|
203
|
-
case 'ngbDate':
|
|
204
|
-
text += ` ha un formato non valido !`;
|
|
205
|
-
break;
|
|
206
|
-
case 'value':
|
|
207
|
-
text += ` ha un formato non valido !`;
|
|
208
|
-
break;
|
|
209
|
-
case 'actualValue':
|
|
210
|
-
break;
|
|
211
|
-
default:
|
|
212
|
-
text += `${error}: ${errors[error]}`;
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
return text;
|
|
216
|
-
}
|
|
217
|
-
return '';
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
FormErrorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
221
|
-
FormErrorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, name: "formError" });
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: FormErrorPipe, decorators: [{
|
|
223
|
-
type: Pipe,
|
|
224
|
-
args: [{
|
|
225
|
-
name: 'formError'
|
|
226
|
-
}]
|
|
227
|
-
}] });
|
|
228
|
-
|
|
229
|
-
class CamelCaseToSplitPipe {
|
|
230
|
-
transform(value) {
|
|
231
|
-
if (value === value.toUpperCase() || value === value.toLowerCase()) {
|
|
232
|
-
return value;
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
return value.match(/[A-Z][a-z]+|[0-9]+/g).join(' ');
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
CamelCaseToSplitPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
240
|
-
CamelCaseToSplitPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, name: "camelCaseToSplit" });
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CamelCaseToSplitPipe, decorators: [{
|
|
242
|
-
type: Pipe,
|
|
243
|
-
args: [{
|
|
244
|
-
name: 'camelCaseToSplit'
|
|
245
|
-
}]
|
|
246
|
-
}] });
|
|
247
|
-
|
|
248
|
-
class SinPipesModule {
|
|
249
|
-
}
|
|
250
|
-
SinPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
251
|
-
SinPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, declarations: [FilterPipe,
|
|
252
|
-
NumberItPipe,
|
|
253
|
-
TrendItPipe,
|
|
254
|
-
CurrencyItPipe,
|
|
255
|
-
SafeHtmlPipe,
|
|
256
|
-
BooleanItPipe,
|
|
257
|
-
ByteToXFormatPipe,
|
|
258
|
-
FormErrorPipe,
|
|
259
|
-
CamelCaseToSplitPipe], exports: [FilterPipe,
|
|
260
|
-
NumberItPipe,
|
|
261
|
-
TrendItPipe,
|
|
262
|
-
CurrencyItPipe,
|
|
263
|
-
SafeHtmlPipe,
|
|
264
|
-
BooleanItPipe,
|
|
265
|
-
ByteToXFormatPipe,
|
|
266
|
-
FormErrorPipe,
|
|
267
|
-
CamelCaseToSplitPipe] });
|
|
268
|
-
SinPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, imports: [[]] });
|
|
269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SinPipesModule, decorators: [{
|
|
270
|
-
type: NgModule,
|
|
271
|
-
args: [{
|
|
272
|
-
declarations: [
|
|
273
|
-
FilterPipe,
|
|
274
|
-
NumberItPipe,
|
|
275
|
-
TrendItPipe,
|
|
276
|
-
CurrencyItPipe,
|
|
277
|
-
SafeHtmlPipe,
|
|
278
|
-
BooleanItPipe,
|
|
279
|
-
ByteToXFormatPipe,
|
|
280
|
-
FormErrorPipe,
|
|
281
|
-
CamelCaseToSplitPipe
|
|
282
|
-
],
|
|
283
|
-
imports: [],
|
|
284
|
-
exports: [
|
|
285
|
-
FilterPipe,
|
|
286
|
-
NumberItPipe,
|
|
287
|
-
TrendItPipe,
|
|
288
|
-
CurrencyItPipe,
|
|
289
|
-
SafeHtmlPipe,
|
|
290
|
-
BooleanItPipe,
|
|
291
|
-
ByteToXFormatPipe,
|
|
292
|
-
FormErrorPipe,
|
|
293
|
-
CamelCaseToSplitPipe
|
|
294
|
-
]
|
|
295
|
-
}]
|
|
296
|
-
}] });
|
|
297
|
-
|
|
298
|
-
/*
|
|
299
|
-
* Public API Surface of sin-pipes
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Generated bundle index. Do not edit.
|
|
304
|
-
*/
|
|
305
|
-
|
|
306
|
-
export { BooleanItPipe, ByteToXFormatPipe, CamelCaseToSplitPipe, CurrencyItPipe, FilterPipe, FormErrorPipe, NumberItPipe, SafeHtmlPipe, SinPipesModule, TrendItPipe };
|
|
307
|
-
//# sourceMappingURL=sin-pipes.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sin-pipes.mjs","sources":["../../../projects/sin-pipes/src/lib/pipes/filter.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/number-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/trend-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/currency-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/safe-html.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/boolean-it.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/bytetoxformat.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/form-error.pipe.ts","../../../projects/sin-pipes/src/lib/pipes/camel-case-to-split.pipe.ts","../../../projects/sin-pipes/src/lib/sin-pipes.module.ts","../../../projects/sin-pipes/src/public-api.ts","../../../projects/sin-pipes/src/sin-pipes.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro che replica il \"filter\" di AngularJS (da usare con parsimonia, se una vista necessita un filtro particolare è meglio farne uno specifico)\r\n */\r\n@Pipe({\r\n name: 'filter'\r\n})\r\nexport class FilterPipe implements PipeTransform {\r\n\r\n transform(items: any[], searchText: string): any {\r\n if (searchText === '') searchText = undefined;\r\n\r\n if (searchText !== undefined && items !== undefined && searchText !== null) {\r\n searchText = searchText.toLowerCase();\r\n return items.filter(item => {\r\n return this.applyFilter(item, searchText);\r\n });\r\n } else {\r\n return items;\r\n }\r\n }\r\n\r\n /**\r\n * TODO da migliorare con l'implementazione delle date e/o altri tipi\r\n * Applica il filtro all'oggetto\r\n */\r\n applyFilter(item: any, filter: string): boolean {\r\n for (const field in item) {\r\n if (item[field] === null) continue;\r\n\r\n if (typeof item[field] === 'string') {\r\n if (item[field].toLowerCase().indexOf(filter) !== -1) {\r\n return true;\r\n }\r\n } else if (typeof item[field] === 'number') {\r\n if (item[field] === filter) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazioni di numeri\r\n */\r\n@Pipe({\r\n name: 'number_it'\r\n})\r\nexport class NumberItPipe implements PipeTransform {\r\n\r\n transform(input: any): any {\r\n if (input === undefined || input === null) {\r\n return '';\r\n }\r\n return input.toLocaleString();\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione di un numero % ( come il trend )\r\n */\r\n@Pipe({\r\n name: 'trend_it'\r\n})\r\nexport class TrendItPipe implements PipeTransform {\r\n\r\n transform(input: any): any {\r\n if (input === undefined || input === null) {\r\n return '';\r\n }\r\n return input.toLocaleString() + ' %';\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione degli importi ( per ora fisso in € )\r\n */\r\n@Pipe({\r\n name: 'currency_it'\r\n})\r\nexport class CurrencyItPipe implements PipeTransform {\r\n\r\n transform(input: any): any\r\n {\r\n if (input === undefined || input === null)\r\n {\r\n return \"\";\r\n }\r\n\r\n let moneystr = \"\";\r\n let dec = (input - Math.floor(input) == 0) ? \",00\" : \"\";\r\n moneystr = input.toLocaleString() + dec + \" \\u20AC\";\r\n return moneystr;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {DomSanitizer} from '@angular/platform-browser';\r\n\r\n@Pipe({\r\n name: 'safeHtml'\r\n})\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(html: any, args?: any): any {\r\n return this.sanitizer.bypassSecurityTrustHtml(html);\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione di booleani in visualizzazione\r\n */\r\n@Pipe({\r\n name: 'booleanIt'\r\n})\r\nexport class BooleanItPipe implements PipeTransform {\r\n\r\n transform(value: any, ...args: any[]): any {\r\n return value === true ? 'Si' : 'No';\r\n }\r\n\r\n}\r\n\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * Filtro per la formattazione del size dei file\r\n */\r\n@Pipe({ name: 'bytetoxformat' })\r\nexport class ByteToXFormatPipe implements PipeTransform {\r\n transform(value: number, newFormat: string): string {\r\n if (newFormat === 'kilobytes') {\r\n return (value / 1024).toFixed(2);\r\n }\r\n if (newFormat === 'megabytes') {\r\n return (value / (1024 ** 2)).toFixed(2);\r\n }\r\n if (newFormat === 'gigbytes') {\r\n return (value / (1024 ** 3)).toFixed(2);\r\n }\r\n }\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\nimport {ValidationErrors} from '@angular/forms';\r\n\r\n@Pipe({\r\n name: 'formError'\r\n})\r\nexport class FormErrorPipe implements PipeTransform {\r\n\r\n transform(errors: ValidationErrors): any {\r\n if (errors) {\r\n let text: string = '';\r\n Object.keys(errors).forEach(error => {\r\n switch (error) {\r\n case 'required':\r\n text += ` campo obbligatorio !`;\r\n break;\r\n case 'pattern':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'requiredPattern':\r\n text += ` non rispetta la formattazione richiesta !`;\r\n break;\r\n case 'invalid':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'email':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'minlength':\r\n text += ` lunghezza minima ${errors[error].requiredLength} caratteri !`;\r\n break;\r\n case 'maxlength':\r\n text += ` lunghezza massima ${errors[error].requiredLength} caratteri !`;\r\n break;\r\n case 'areEqual':\r\n text += ` deve essere uguale !`;\r\n break;\r\n case 'ngbDate':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'value':\r\n text += ` ha un formato non valido !`;\r\n break;\r\n case 'actualValue':\r\n break;\r\n default:\r\n text += `${error}: ${errors[error]}`;\r\n }\r\n });\r\n return text;\r\n }\r\n return '';\r\n }\r\n\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'camelCaseToSplit'\r\n})\r\nexport class CamelCaseToSplitPipe implements PipeTransform {\r\n\r\n transform(value: string): string {\r\n if (value === value.toUpperCase() || value === value.toLowerCase()) {\r\n return value;\r\n } else {\r\n return value.match(/[A-Z][a-z]+|[0-9]+/g).join(' ');\r\n }\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FilterPipe } from './pipes/filter.pipe';\r\nimport { NumberItPipe } from './pipes/number-it.pipe';\r\nimport { TrendItPipe } from './pipes/trend-it.pipe';\r\nimport { CurrencyItPipe } from './pipes/currency-it.pipe';\r\nimport { SafeHtmlPipe } from './pipes/safe-html.pipe';\r\nimport {BooleanItPipe} from './pipes/boolean-it.pipe';\r\nimport {ByteToXFormatPipe} from './pipes/bytetoxformat.pipe';\r\nimport {FormErrorPipe} from './pipes/form-error.pipe';\r\nimport {CamelCaseToSplitPipe} from './pipes/camel-case-to-split.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n FilterPipe,\r\n NumberItPipe,\r\n TrendItPipe,\r\n CurrencyItPipe,\r\n SafeHtmlPipe,\r\n BooleanItPipe,\r\n ByteToXFormatPipe,\r\n FormErrorPipe,\r\n CamelCaseToSplitPipe\r\n ],\r\n imports: [ ],\r\n exports: [\r\n FilterPipe,\r\n NumberItPipe,\r\n TrendItPipe,\r\n CurrencyItPipe,\r\n SafeHtmlPipe,\r\n BooleanItPipe,\r\n ByteToXFormatPipe,\r\n FormErrorPipe,\r\n CamelCaseToSplitPipe\r\n ]\r\n})\r\nexport class SinPipesModule { }\r\n","/*\r\n * Public API Surface of sin-pipes\r\n */\r\n\r\nexport * from './lib/sin-pipes.module';\r\n\r\nexport * from './lib/pipes/boolean-it.pipe';\r\nexport * from './lib/pipes/bytetoxformat.pipe';\r\nexport * from './lib/pipes/camel-case-to-split.pipe';\r\nexport * from './lib/pipes/filter.pipe';\r\nexport * from './lib/pipes/form-error.pipe';\r\nexport * from './lib/pipes/currency-it.pipe';\r\nexport * from './lib/pipes/number-it.pipe';\r\nexport * from './lib/pipes/safe-html.pipe';\r\nexport * from './lib/pipes/trend-it.pipe';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAEA;;;MAMa,UAAU;IAErB,SAAS,CAAC,KAAY,EAAE,UAAkB;QACxC,IAAI,UAAU,KAAK,EAAE;YAAE,UAAU,GAAG,SAAS,CAAC;QAE9C,IAAI,UAAU,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,IAAI,UAAU,KAAK,IAAI,EAAE;YAC1E,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;YACtC,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI;gBACtB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;aAC3C,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,KAAK,CAAC;SACd;KACF;;;;;IAMD,WAAW,CAAC,IAAS,EAAE,MAAc;QACnC,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE;YACxB,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI;gBAAE,SAAS;YAEnC,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;gBACnC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;oBACpD,OAAO,IAAI,CAAC;iBACb;aACF;iBAAM,IAAI,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