@snabcentr/client-ui 3.8.4 → 3.8.5
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.
Potentially problematic release.
This version of @snabcentr/client-ui might be problematic. Click here for more details.
package/package.json
CHANGED
|
@@ -11,9 +11,11 @@ export declare class ScFormatePhonePipe implements PipeTransform {
|
|
|
11
11
|
* Преобразует строковое значение номера телефона.
|
|
12
12
|
*
|
|
13
13
|
* @param value Строка, содержащая номер телефона.
|
|
14
|
+
* @param format Формат возвращаемого значения. `normal` - удобочитаемое представление номера телефона, `clean` - очищенное от лишних символов представление номера телефона, `cleanWithPlus` - очищенное от лишних символов представление номера телефона с `+` в начале.
|
|
15
|
+
*
|
|
14
16
|
* @returns Отформатированный номер телефона, если он валиден, или исходное значение, если он невалиден.
|
|
15
17
|
*/
|
|
16
|
-
transform(value: string): string;
|
|
18
|
+
transform(value: string, format?: 'normal' | 'clean' | 'cleanWithPlus'): string;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScFormatePhonePipe, never>;
|
|
18
20
|
static ɵpipe: i0.ɵɵPipeDeclaration<ScFormatePhonePipe, "scFormatePhone", true>;
|
|
19
21
|
}
|
package/release_notes.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## 3.8.
|
|
1
|
+
## 3.8.5 (2024-12-26)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### changed (1 change)
|
|
4
4
|
|
|
5
|
-
- [#
|
|
5
|
+
- [#10899: Доработан pipe для форматирования номера телефона.](web_soft/libs/angular/snabcentr-client-ui-lib@dadaba214f46dd95a015e2435ffa4d6312568932) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!208))
|
|
6
6
|
|