@snabcentr/client-ui 1.6.3 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -0,0 +1 @@
1
+ export * from './sc-formatted-phone';
@@ -0,0 +1,19 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Пайп для форматирования номера телефона.
5
+ *
6
+ * Если переданный номер телефона валиден, он будет отформатирован с использованием метода `formatPhoneNumber` сервиса `ScPhoneService`.
7
+ * Если номер невалиден, возвращается исходное значение.
8
+ */
9
+ export declare class ScFormatePhonePipe implements PipeTransform {
10
+ /**
11
+ * Преобразует строковое значение номера телефона.
12
+ *
13
+ * @param value Строка, содержащая номер телефона.
14
+ * @returns Отформатированный номер телефона, если он валиден, или исходное значение, если он невалиден.
15
+ */
16
+ transform(value: string): string;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScFormatePhonePipe, never>;
18
+ static ɵpipe: i0.ɵɵPipeDeclaration<ScFormatePhonePipe, "scFormatePhone", true>;
19
+ }
@@ -11,11 +11,12 @@ import * as i9 from "@taiga-ui/kit";
11
11
  import * as i10 from "@angular/forms";
12
12
  import * as i11 from "../contacts/sc-contacts.module";
13
13
  import * as i12 from "../directives/terminal-link/sc-terminal-link.directive";
14
+ import * as i13 from "../directives/tel-link/sc-tel-link.module";
14
15
  /**
15
16
  * Модуль профиля пользователя.
16
17
  */
17
18
  export declare class ScProfileModule {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ScProfileModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<ScProfileModule, [typeof i1.ScProfileAccordionsContentComponent], [typeof i2.CommonModule, typeof i3.ScUserModule, typeof i4.ScAccordionModule, typeof i5.ScContragentsModule, typeof i6.ScDeliveryAddressModule, typeof i7.TuiLoaderModule, typeof i8.TuiLetModule, typeof i7.TuiLinkModule, typeof i7.TuiFormatPhonePipeModule, typeof i9.TuiCheckboxLabeledModule, typeof i7.TuiSvgModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i7.TuiLoaderModule, typeof i7.TuiButtonModule, typeof i11.ScContactsModule, typeof i12.ScTerminalLinkDirective], [typeof i1.ScProfileAccordionsContentComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ScProfileModule, [typeof i1.ScProfileAccordionsContentComponent], [typeof i2.CommonModule, typeof i3.ScUserModule, typeof i4.ScAccordionModule, typeof i5.ScContragentsModule, typeof i6.ScDeliveryAddressModule, typeof i7.TuiLoaderModule, typeof i8.TuiLetModule, typeof i7.TuiLinkModule, typeof i9.TuiCheckboxLabeledModule, typeof i7.TuiSvgModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i7.TuiLoaderModule, typeof i7.TuiButtonModule, typeof i11.ScContactsModule, typeof i12.ScTerminalLinkDirective, typeof i13.ScTelLinkModule], [typeof i1.ScProfileAccordionsContentComponent]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<ScProfileModule>;
21
22
  }
package/public-api.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './loader';
14
14
  export * from './brands-list';
15
15
  export * from './news';
16
16
  export * from './order';
17
+ export * from './pipes';
17
18
  export * from './providers';
18
19
  export * from './qrcode';
19
20
  export * from './share-button';
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.4.9 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
3
3
  */
4
4
 
5
5
  /*
@@ -11,11 +11,12 @@ import * as i9 from "@taiga-ui/cdk";
11
11
  import * as i10 from "../verification/sc-verification.module";
12
12
  import * as i11 from "../form-fields/form-fields.module";
13
13
  import * as i12 from "../directives/terminal-link/sc-terminal-link.directive";
14
+ import * as i13 from "../directives/tel-link/sc-tel-link.module";
14
15
  /**
15
16
  * Модуль компонентов пользователя.
16
17
  */
17
18
  export declare class ScUserModule {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ScUserModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<ScUserModule, [typeof i1.ScResetUserPasswordComponent, typeof i2.ScUpdateUserInfoDialogComponent, typeof i3.ScUserPhoneApproveDialogComponent, typeof i4.ScUserManagersComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.TuiFieldErrorPipeModule, typeof i7.TuiInputPasswordModule, typeof i8.TuiButtonModule, typeof i8.TuiErrorModule, typeof i8.TuiLabelModule, typeof i8.TuiTextfieldControllerModule, typeof i9.TuiLetModule, typeof i10.ScVerificationModule, typeof i11.ScFormFieldsModule, typeof i8.TuiLoaderModule, typeof i7.TuiInputModule, typeof i7.TuiInputPhoneModule, typeof i7.TuiCheckboxModule, typeof i7.TuiCheckboxLabeledModule, typeof i8.TuiDataListModule, typeof i7.TuiSelectModule, typeof i8.TuiLinkModule, typeof i8.TuiFormatPhonePipeModule, typeof i12.ScTerminalLinkDirective], [typeof i1.ScResetUserPasswordComponent, typeof i2.ScUpdateUserInfoDialogComponent, typeof i3.ScUserPhoneApproveDialogComponent, typeof i4.ScUserManagersComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ScUserModule, [typeof i1.ScResetUserPasswordComponent, typeof i2.ScUpdateUserInfoDialogComponent, typeof i3.ScUserPhoneApproveDialogComponent, typeof i4.ScUserManagersComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.TuiFieldErrorPipeModule, typeof i7.TuiInputPasswordModule, typeof i8.TuiButtonModule, typeof i8.TuiErrorModule, typeof i8.TuiLabelModule, typeof i8.TuiTextfieldControllerModule, typeof i9.TuiLetModule, typeof i10.ScVerificationModule, typeof i11.ScFormFieldsModule, typeof i8.TuiLoaderModule, typeof i7.TuiInputModule, typeof i7.TuiInputPhoneModule, typeof i7.TuiCheckboxModule, typeof i7.TuiCheckboxLabeledModule, typeof i8.TuiDataListModule, typeof i7.TuiSelectModule, typeof i8.TuiLinkModule, typeof i12.ScTerminalLinkDirective, typeof i13.ScTelLinkModule], [typeof i1.ScResetUserPasswordComponent, typeof i2.ScUpdateUserInfoDialogComponent, typeof i3.ScUserPhoneApproveDialogComponent, typeof i4.ScUserManagersComponent]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<ScUserModule>;
21
22
  }