@snabcentr/client-ui 1.4.2 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/auth/sc-auth.module.d.ts +1 -1
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +10 -4
- package/contacts/sc-contacts.module.d.ts +2 -1
- package/directives/index.d.ts +1 -0
- package/directives/terminal-link/sc-terminal-link.directive.d.ts +34 -0
- package/esm2020/auth/sc-auth.module.mjs +11 -5
- package/esm2020/auth/sign-up-form/sc-sign-up-form.component.mjs +52 -30
- package/esm2020/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +3 -2
- package/esm2020/contacts/sc-contacts.module.mjs +5 -2
- package/esm2020/directives/index.mjs +2 -1
- package/esm2020/directives/terminal-link/sc-terminal-link.directive.mjs +69 -0
- package/esm2020/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +12 -9
- package/esm2020/profile/sc-profile.module.mjs +5 -2
- package/esm2020/providers/scUserProviders.mjs +5 -5
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/qrcode/index.mjs +3 -0
- package/esm2020/qrcode/qrcode-dialog/sc-qrcode-dialog.component.mjs +51 -0
- package/esm2020/qrcode/sc-qrcode.module.mjs +24 -0
- package/esm2020/user/reset-user-password/sc-reset-user-password.component.mjs +8 -6
- package/esm2020/user/sc-user.module.mjs +5 -2
- package/esm2020/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +2 -2
- package/esm2020/user/user-managers/sc-user-managers.component.mjs +4 -3
- package/esm2020/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +2 -2
- package/fesm2015/snabcentr-client-ui.mjs +465 -298
- package/fesm2015/snabcentr-client-ui.mjs.map +1 -1
- package/fesm2020/snabcentr-client-ui.mjs +460 -295
- package/fesm2020/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +2 -1
- package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +2 -2
- package/profile/sc-profile.module.d.ts +2 -1
- package/providers/scUserProviders.d.ts +1 -1
- package/public-api.d.ts +1 -0
- package/qrcode/index.d.ts +2 -0
- package/qrcode/qrcode-dialog/sc-qrcode-dialog.component.d.ts +33 -0
- package/qrcode/sc-qrcode.module.d.ts +14 -0
- package/styles/tailwind/tailwind.scss +9 -1
- package/user/reset-user-password/sc-reset-user-password.component.d.ts +2 -2
- package/user/sc-user.module.d.ts +2 -1
- package/user/update-user-info-dialog/sc-update-user-info-dialog.component.d.ts +1 -1
- package/user/user-managers/sc-user-managers.component.d.ts +1 -1
- package/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.d.ts +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snabcentr/client-ui",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.0",
|
4
4
|
"author": "Snabcentr Ltd.",
|
5
5
|
"repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
|
6
6
|
"license": "Commercial",
|
@@ -21,6 +21,7 @@
|
|
21
21
|
"@ngneat/until-destroy": ">=9.2.3",
|
22
22
|
"@snabcentr/client-core": ">=0.18.0",
|
23
23
|
"angular8-yandex-maps": ">=14.0.4",
|
24
|
+
"angularx-qrcode": "=>14.0.0",
|
24
25
|
"@taiga-ui/addon-charts": ">=3.42.1",
|
25
26
|
"@taiga-ui/addon-commerce": ">=3.42.1",
|
26
27
|
"@taiga-ui/addon-doc": ">=3.42.1",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
2
3
|
import { ScContragent, ScIBankAccount, ScICity, ScIContact, ScIDeliveryAddress, ScLocationsService, ScUser, ScUserService, ScVerificationService } from '@snabcentr/client-core';
|
3
4
|
import { Observable, Subject } from 'rxjs';
|
4
|
-
import { FormControl } from '@angular/forms';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
/**
|
7
7
|
* Компонент контента профиля пользователя в виде раскрывающихся смысловых блоков.
|
@@ -110,7 +110,7 @@ export declare class ScProfileAccordionsContentComponent {
|
|
110
110
|
*
|
111
111
|
* @param user$ Поток информации о текущем пользователе.
|
112
112
|
* @param locationsService Сервис для получения списков стран, регионов, городов.
|
113
|
-
* @param userService Сервис
|
113
|
+
* @param userService Сервис данных о пользователе.
|
114
114
|
* @param verificationService Сервис верификации.
|
115
115
|
*/
|
116
116
|
constructor(user$: Observable<ScUser>, locationsService: ScLocationsService, userService: ScUserService, verificationService: ScVerificationService);
|
@@ -10,11 +10,12 @@ import * as i8 from "@taiga-ui/cdk";
|
|
10
10
|
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
|
+
import * as i12 from "../directives/terminal-link/sc-terminal-link.directive";
|
13
14
|
/**
|
14
15
|
* Модуль профиля пользователя.
|
15
16
|
*/
|
16
17
|
export declare class ScProfileModule {
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScProfileModule, never>;
|
18
|
-
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 i1.ScProfileAccordionsContentComponent]>;
|
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]>;
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScProfileModule>;
|
20
21
|
}
|
@@ -8,7 +8,7 @@ export declare const SC_USER_INFO: InjectionToken<Observable<ScUser | undefined>
|
|
8
8
|
/**
|
9
9
|
* Фабрика создания потока данных о текущем пользователе.
|
10
10
|
*
|
11
|
-
* @param userService Сервис
|
11
|
+
* @param userService Сервис данных о пользователе.
|
12
12
|
* @param destroy$ Сервис завершения {@link Observable} через `takeUntil`.
|
13
13
|
*/
|
14
14
|
export declare function scUserFactory(userService: ScUserService, destroy$: Observable<void>): Observable<ScUser | undefined>;
|
package/public-api.d.ts
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
import { ScITerminalProvider, ScVCardService } from '@snabcentr/client-core';
|
2
|
+
import { TuiDialogContext } from '@taiga-ui/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Компонент QR кода.
|
6
|
+
*/
|
7
|
+
export declare class ScQRCodeDialogComponent {
|
8
|
+
private readonly vCardService;
|
9
|
+
readonly context: TuiDialogContext<void, {
|
10
|
+
qrdata: string;
|
11
|
+
}>;
|
12
|
+
readonly terminal: ScITerminalProvider;
|
13
|
+
/**
|
14
|
+
* Инициализирует экземпляр класса {@link ScQRCodeDialogComponent}.
|
15
|
+
*
|
16
|
+
* @param vCardService Сервис для работы с vCard.
|
17
|
+
* @param context Контекст диалогового окна, в котором открыт компонент.
|
18
|
+
* @param terminal Провайдер данных о терминале.
|
19
|
+
*/
|
20
|
+
constructor(vCardService: ScVCardService, context: TuiDialogContext<void, {
|
21
|
+
qrdata: string;
|
22
|
+
}>, terminal: ScITerminalProvider);
|
23
|
+
/**
|
24
|
+
* Выполняет скачивание генерируемого vCard файла контакта.
|
25
|
+
*/
|
26
|
+
downloadVCard(): void;
|
27
|
+
/**
|
28
|
+
* Проверяет что в диалоговое окно были переданы данные в формате `vCard`.
|
29
|
+
*/
|
30
|
+
isVCardData(): boolean;
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScQRCodeDialogComponent, never>;
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScQRCodeDialogComponent, "sc-qrcode-dialog", never, {}, {}, never, never, false>;
|
33
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./qrcode-dialog/sc-qrcode-dialog.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "angularx-qrcode";
|
5
|
+
import * as i4 from "@taiga-ui/core";
|
6
|
+
import * as i5 from "@taiga-ui/addon-preview";
|
7
|
+
/**
|
8
|
+
* Модуль QR кода.
|
9
|
+
*/
|
10
|
+
export declare class ScQRCodeModule {
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScQRCodeModule, never>;
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScQRCodeModule, [typeof i1.ScQRCodeDialogComponent], [typeof i2.CommonModule, typeof i3.QRCodeModule, typeof i4.TuiButtonModule, typeof i4.TuiModeModule, typeof i4.TuiDialogModule, typeof i5.TuiPreviewModule], [typeof i1.ScQRCodeDialogComponent]>;
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScQRCodeModule>;
|
14
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
! tailwindcss v3.4.
|
2
|
+
! tailwindcss v3.4.8 | MIT License | https://tailwindcss.com
|
3
3
|
*/
|
4
4
|
|
5
5
|
/*
|
@@ -718,6 +718,10 @@ video {
|
|
718
718
|
margin-bottom: 1rem;
|
719
719
|
}
|
720
720
|
|
721
|
+
.-mt-2 {
|
722
|
+
margin-top: -0.5rem;
|
723
|
+
}
|
724
|
+
|
721
725
|
.mb-1 {
|
722
726
|
margin-bottom: 0.25rem;
|
723
727
|
}
|
@@ -726,6 +730,10 @@ video {
|
|
726
730
|
margin-bottom: 0.5rem;
|
727
731
|
}
|
728
732
|
|
733
|
+
.mb-3 {
|
734
|
+
margin-bottom: 0.75rem;
|
735
|
+
}
|
736
|
+
|
729
737
|
.mb-4 {
|
730
738
|
margin-bottom: 1rem;
|
731
739
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FormControl, FormGroup } from '@angular/forms';
|
2
2
|
import { ScUserService } from '@snabcentr/client-core';
|
3
|
-
import {
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
/**
|
6
6
|
* Компонент смены пароля пользователя.
|
@@ -38,7 +38,7 @@ export declare class ScResetUserPasswordComponent {
|
|
38
38
|
/**
|
39
39
|
* Инициализирует экземпляр класса {@link ScResetUserPasswordComponent}.
|
40
40
|
*
|
41
|
-
* @param userService Сервис
|
41
|
+
* @param userService Сервис данных о пользователе.
|
42
42
|
*/
|
43
43
|
constructor(userService: ScUserService);
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScResetUserPasswordComponent, never>;
|
package/user/sc-user.module.d.ts
CHANGED
@@ -10,11 +10,12 @@ import * as i8 from "@taiga-ui/core";
|
|
10
10
|
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
|
+
import * as i12 from "../directives/terminal-link/sc-terminal-link.directive";
|
13
14
|
/**
|
14
15
|
* Модуль компонентов пользователя.
|
15
16
|
*/
|
16
17
|
export declare class ScUserModule {
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScUserModule, never>;
|
18
|
-
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 i1.ScResetUserPasswordComponent, typeof i2.ScUpdateUserInfoDialogComponent, typeof i3.ScUserPhoneApproveDialogComponent, typeof i4.ScUserManagersComponent]>;
|
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]>;
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScUserModule>;
|
20
21
|
}
|
@@ -51,7 +51,7 @@ export declare class ScUpdateUserInfoDialogComponent implements AfterViewInit {
|
|
51
51
|
* Инициализирует экземпляр класса {@link ScUpdateUserInfoDialogComponent}.
|
52
52
|
*
|
53
53
|
* @param user$ Поток информации о текущем пользователе.
|
54
|
-
* @param userService Сервис
|
54
|
+
* @param userService Сервис данных о пользователе.
|
55
55
|
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
56
56
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
57
57
|
*/
|
@@ -18,7 +18,7 @@ export declare class ScUserManagersComponent {
|
|
18
18
|
/**
|
19
19
|
* Инициализирует экземпляр класса {@link ScUserManagersComponent}.
|
20
20
|
*
|
21
|
-
* @param userService Сервис
|
21
|
+
* @param userService Сервис данных о пользователе.
|
22
22
|
*/
|
23
23
|
constructor(userService: ScUserService);
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScUserManagersComponent, never>;
|
@@ -42,7 +42,7 @@ export declare class ScUserPhoneApproveDialogComponent implements AfterViewInit
|
|
42
42
|
* @param verificationService Сервис верификации.
|
43
43
|
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
44
44
|
* @param user$ Поток информации о текущем пользователе.
|
45
|
-
* @param userService Сервис
|
45
|
+
* @param userService Сервис данных о пользователе.
|
46
46
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
47
47
|
*/
|
48
48
|
constructor(verificationService: ScVerificationService, userMetrikaService: ScUserMetrikaService, user$: Observable<ScUser>, userService: ScUserService, context?: TuiDialogContext<ScApprovedData, ScUserPhoneApproveDialogComponent> | undefined);
|