@taiga-ui/core 3.25.0-dev.main-e209b11 → 3.25.0-dev.main-abb7c2c
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/bundles/taiga-ui-core-pipes-format-phone.umd.js +1 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
- package/esm2015/pipes/format-phone/format-phone.pipe.js +2 -2
- package/fesm2015/taiga-ui-core-pipes-format-phone.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
- package/package.json +1 -1
- package/pipes/format-phone/format-phone.pipe.d.ts +1 -1
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
function TuiFormatPhonePipe() {
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Formats phone number string of +7XXXXXXXXXX
|
|
31
|
+
* Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
|
|
32
32
|
* @param value
|
|
33
33
|
* @param countryCode
|
|
34
34
|
* @param phoneMask
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-pipes-format-phone.umd.js","sources":["../../../projects/core/pipes/format-phone/format-phone.pipe.ts","../../../projects/core/pipes/format-phone/format-phone.module.ts","../../../projects/core/pipes/format-phone/taiga-ui-core-pipes-format-phone.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';\nimport {tuiFormatPhone} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: `tuiFormatPhone`})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Formats phone number string of +7XXXXXXXXXX
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-pipes-format-phone.umd.js","sources":["../../../projects/core/pipes/format-phone/format-phone.pipe.ts","../../../projects/core/pipes/format-phone/format-phone.module.ts","../../../projects/core/pipes/format-phone/taiga-ui-core-pipes-format-phone.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';\nimport {tuiFormatPhone} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: `tuiFormatPhone`})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Formats phone number string of +7XXXXXXXXXX format with adding separator symbols\n * @param value\n * @param countryCode\n * @param phoneMask\n * @return formatted phone number string +7(XXX)XXX-XX-XX\n */\n transform(\n value: string,\n countryCode: string = `${CHAR_PLUS}7`,\n phoneMask: string = `(###) ###-##-##`,\n ): string {\n ngDevMode &&\n tuiAssert.assert(\n value !== undefined,\n `Undefined was passed to tuiFormatPhone pipe`,\n );\n\n return tuiFormatPhone(value, countryCode, phoneMask);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatPhonePipe} from './format-phone.pipe';\n\n@NgModule({\n exports: [TuiFormatPhonePipe],\n declarations: [TuiFormatPhonePipe],\n})\nexport class TuiFormatPhonePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["CHAR_PLUS","tuiAssert","tuiFormatPhone","i0","Pipe","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAA,kBAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,kBAAA,GAAA;;IACI;;;;;;IAMG;IACH,IAAA,kBAAA,CAAA,SAAA,CAAA,SAAS,GAAT,UACI,KAAa,EACb,WAAqC,EACrC,SAAqC,EAAA;YADrC,IAAA,WAAA,KAAA,KAAA,CAAA,EAAA,EAAA,WAAyB,GAAAA,aAAS,GAAG,GAAA,CAAA,EAAA;IACrC,QAAA,IAAA,SAAA,KAAA,KAAA,CAAA,EAAA,EAAA,SAAqC,GAAA,iBAAA,CAAA,EAAA;YAErC,SAAS;gBACLC,aAAS,CAAC,MAAM,CACZ,KAAK,KAAK,SAAS,EACnB,6CAA6C,CAChD,CAAC;YAEN,OAAOC,qBAAc,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;SACxD,CAAA;;;0IApBQ,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAC,aAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;wIAAlB,kBAAkB,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;sHAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;sBAD9BC,OAAI;uBAAC,EAAC,IAAI,EAAE,gBAAgB,EAAC,CAAA;;;ACI9B,QAAA,wBAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,wBAAA,GAAA;;;;gJAAa,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAD,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iJAAxB,wBAAwB,EAAA,YAAA,EAAA,CAFlB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CADvB,kBAAkB,CAAA,EAAA,CAAA,CAAA;iJAGnB,wBAAwB,EAAA,CAAA,CAAA;sHAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;sBAJpCE,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,OAAO,EAAE,CAAC,kBAAkB,CAAC;wBAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;qBACrC,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ import { tuiFormatPhone } from '@taiga-ui/core/utils/format';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class TuiFormatPhonePipe {
|
|
6
6
|
/**
|
|
7
|
-
* Formats phone number string of +7XXXXXXXXXX
|
|
7
|
+
* Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
|
|
8
8
|
* @param value
|
|
9
9
|
* @param countryCode
|
|
10
10
|
* @param phoneMask
|
|
@@ -22,4 +22,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
22
22
|
type: Pipe,
|
|
23
23
|
args: [{ name: `tuiFormatPhone` }]
|
|
24
24
|
}] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWF0LXBob25lLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3BpcGVzL2Zvcm1hdC1waG9uZS9mb3JtYXQtcGhvbmUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsSUFBSSxFQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUMsU0FBUyxFQUFFLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sNkJBQTZCLENBQUM7O0FBRzNELE1BQU0sT0FBTyxrQkFBa0I7SUFDM0I7Ozs7OztPQU1HO0lBQ0gsU0FBUyxDQUNMLEtBQWEsRUFDYixjQUFzQixHQUFHLFNBQVMsR0FBRyxFQUNyQyxZQUFvQixpQkFBaUI7UUFFckMsU0FBUztZQUNMLFNBQVMsQ0FBQyxNQUFNLENBQ1osS0FBSyxLQUFLLFNBQVMsRUFDbkIsNkNBQTZDLENBQ2hELENBQUM7UUFFTixPQUFPLGNBQWMsQ0FBQyxLQUFLLEVBQUUsV0FBVyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQ3pELENBQUM7O2dIQXBCUSxrQkFBa0I7OEdBQWxCLGtCQUFrQjs0RkFBbEIsa0JBQWtCO2tCQUQ5QixJQUFJO21CQUFDLEVBQUMsSUFBSSxFQUFFLGdCQUFnQixFQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtQaXBlLCBQaXBlVHJhbnNmb3JtfSBmcm9tICdAYW5ndWxhci9jb3JlJzt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HBob25lTWFzayk7XG4gICAgfVxufVxuIl19
|
|
@@ -5,7 +5,7 @@ import { tuiFormatPhone } from '@taiga-ui/core/utils/format';
|
|
|
5
5
|
|
|
6
6
|
class TuiFormatPhonePipe {
|
|
7
7
|
/**
|
|
8
|
-
* Formats phone number string of +7XXXXXXXXXX
|
|
8
|
+
* Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
|
|
9
9
|
* @param value
|
|
10
10
|
* @param countryCode
|
|
11
11
|
* @param phoneMask
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-pipes-format-phone.js","sources":["../../../projects/core/pipes/format-phone/format-phone.pipe.ts","../../../projects/core/pipes/format-phone/format-phone.module.ts","../../../projects/core/pipes/format-phone/taiga-ui-core-pipes-format-phone.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';\nimport {tuiFormatPhone} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: `tuiFormatPhone`})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Formats phone number string of +7XXXXXXXXXX
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-pipes-format-phone.js","sources":["../../../projects/core/pipes/format-phone/format-phone.pipe.ts","../../../projects/core/pipes/format-phone/format-phone.module.ts","../../../projects/core/pipes/format-phone/taiga-ui-core-pipes-format-phone.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';\nimport {tuiFormatPhone} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: `tuiFormatPhone`})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Formats phone number string of +7XXXXXXXXXX format with adding separator symbols\n * @param value\n * @param countryCode\n * @param phoneMask\n * @return formatted phone number string +7(XXX)XXX-XX-XX\n */\n transform(\n value: string,\n countryCode: string = `${CHAR_PLUS}7`,\n phoneMask: string = `(###) ###-##-##`,\n ): string {\n ngDevMode &&\n tuiAssert.assert(\n value !== undefined,\n `Undefined was passed to tuiFormatPhone pipe`,\n );\n\n return tuiFormatPhone(value, countryCode, phoneMask);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatPhonePipe} from './format-phone.pipe';\n\n@NgModule({\n exports: [TuiFormatPhonePipe],\n declarations: [TuiFormatPhonePipe],\n})\nexport class TuiFormatPhonePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAKa,kBAAkB,CAAA;AAC3B;;;;;;AAMG;IACH,SAAS,CACL,KAAa,EACb,WAAA,GAAsB,GAAG,SAAS,CAAA,CAAA,CAAG,EACrC,SAAA,GAAoB,CAAiB,eAAA,CAAA,EAAA;QAErC,SAAS;YACL,SAAS,CAAC,MAAM,CACZ,KAAK,KAAK,SAAS,EACnB,CAA6C,2CAAA,CAAA,CAChD,CAAC;QAEN,OAAO,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;KACxD;;gHApBQ,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,IAAI;mBAAC,EAAC,IAAI,EAAE,CAAA,cAAA,CAAgB,EAAC,CAAA;;;MCIjB,wBAAwB,CAAA;;sHAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;uHAAxB,wBAAwB,EAAA,YAAA,EAAA,CAFlB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CADvB,kBAAkB,CAAA,EAAA,CAAA,CAAA;uHAGnB,wBAAwB,EAAA,CAAA,CAAA;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;AACrC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TuiFormatPhonePipe implements PipeTransform {
|
|
4
4
|
/**
|
|
5
|
-
* Formats phone number string of +7XXXXXXXXXX
|
|
5
|
+
* Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
|
|
6
6
|
* @param value
|
|
7
7
|
* @param countryCode
|
|
8
8
|
* @param phoneMask
|