@snabcentr/client-ui 0.29.1 → 0.30.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.
Potentially problematic release.
This version of @snabcentr/client-ui might be problematic. Click here for more details.
- package/contacts/add-contact-dialog/sc-add-contact-dialog.component.d.ts +8 -3
- package/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.d.ts +9 -4
- package/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.d.ts +8 -3
- package/esm2020/contacts/add-contact-dialog/sc-add-contact-dialog.component.mjs +13 -4
- package/esm2020/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +13 -5
- package/esm2020/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +13 -5
- package/esm2020/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +27 -17
- package/esm2020/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +13 -4
- package/fesm2015/snabcentr-client-ui.mjs +66 -24
- package/fesm2015/snabcentr-client-ui.mjs.map +1 -1
- package/fesm2020/snabcentr-client-ui.mjs +66 -24
- package/fesm2020/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/user/update-user-info-dialog/sc-update-user-info-dialog.component.d.ts +11 -7
- package/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.d.ts +9 -4
package/package.json
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import {
|
3
|
-
import { ScISuggestionType, ScUser, ScUserService } from '@snabcentr/client-core';
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { ScISuggestionType, ScUser, ScUserMetrikaService, ScUserService } from '@snabcentr/client-core';
|
5
4
|
import { TuiDialogContext } from '@taiga-ui/core';
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
8
|
* Диалоговое окно изменения данных пользователя.
|
9
9
|
*/
|
10
|
-
export declare class ScUpdateUserInfoDialogComponent {
|
10
|
+
export declare class ScUpdateUserInfoDialogComponent implements AfterViewInit {
|
11
11
|
readonly user$: Observable<ScUser>;
|
12
12
|
private readonly userService;
|
13
|
+
private readonly userMetrikaService;
|
13
14
|
readonly context?: TuiDialogContext<ScUser, ScUpdateUserInfoDialogComponent> | undefined;
|
14
15
|
/**
|
15
16
|
* Перечисление типов подсказок.
|
@@ -51,9 +52,12 @@ export declare class ScUpdateUserInfoDialogComponent {
|
|
51
52
|
*
|
52
53
|
* @param user$ Поток информации о текущем пользователе.
|
53
54
|
* @param userService Сервис информации о пользователе.
|
55
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
54
56
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
55
57
|
*/
|
56
|
-
constructor(user$: Observable<ScUser>, userService: ScUserService, context?: TuiDialogContext<ScUser, ScUpdateUserInfoDialogComponent> | undefined);
|
57
|
-
|
58
|
+
constructor(user$: Observable<ScUser>, userService: ScUserService, userMetrikaService: ScUserMetrikaService, context?: TuiDialogContext<ScUser, ScUpdateUserInfoDialogComponent> | undefined);
|
59
|
+
/** @inheritdoc */
|
60
|
+
ngAfterViewInit(): void;
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScUpdateUserInfoDialogComponent, [null, null, null, { optional: true; }]>;
|
58
62
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScUpdateUserInfoDialogComponent, "sc-update-user-info-dialog", never, {}, { "cancelButtonClick": "cancelButtonClick"; "successUpdateDate": "successUpdateDate"; }, never, never, false>;
|
59
63
|
}
|
@@ -1,13 +1,15 @@
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
1
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
-
import { ScApprovedData, ScUser, ScUserService, ScVerificationService } from '@snabcentr/client-core';
|
3
|
+
import { ScApprovedData, ScUser, ScUserMetrikaService, ScUserService, ScVerificationService } from '@snabcentr/client-core';
|
3
4
|
import { TuiDialogContext } from '@taiga-ui/core';
|
4
5
|
import { Observable, Subject } from 'rxjs';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
/**
|
7
8
|
* Диалоговое окно подтверждения номера телефона.
|
8
9
|
*/
|
9
|
-
export declare class ScUserPhoneApproveDialogComponent {
|
10
|
+
export declare class ScUserPhoneApproveDialogComponent implements AfterViewInit {
|
10
11
|
private readonly verificationService;
|
12
|
+
private readonly userMetrikaService;
|
11
13
|
readonly user$: Observable<ScUser>;
|
12
14
|
private readonly userService;
|
13
15
|
readonly context?: TuiDialogContext<ScApprovedData, ScUserPhoneApproveDialogComponent> | undefined;
|
@@ -38,11 +40,14 @@ export declare class ScUserPhoneApproveDialogComponent {
|
|
38
40
|
* Инициализирует экземпляр класса {@link ScUserPhoneApproveDialogComponent}.
|
39
41
|
*
|
40
42
|
* @param verificationService Сервис верификации.
|
43
|
+
* @param userMetrikaService Сервис для сбора метрик о действиях пользователей.
|
41
44
|
* @param user$ Поток информации о текущем пользователе.
|
42
45
|
* @param userService Сервис информации о пользователе.
|
43
46
|
* @param context Контекст диалогового окна, в котором открыт компонент.
|
44
47
|
*/
|
45
|
-
constructor(verificationService: ScVerificationService, user$: Observable<ScUser>, userService: ScUserService, context?: TuiDialogContext<ScApprovedData, ScUserPhoneApproveDialogComponent> | undefined);
|
46
|
-
|
48
|
+
constructor(verificationService: ScVerificationService, userMetrikaService: ScUserMetrikaService, user$: Observable<ScUser>, userService: ScUserService, context?: TuiDialogContext<ScApprovedData, ScUserPhoneApproveDialogComponent> | undefined);
|
49
|
+
/** @inheritdoc */
|
50
|
+
ngAfterViewInit(): void;
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScUserPhoneApproveDialogComponent, [null, null, null, null, { optional: true; }]>;
|
47
52
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScUserPhoneApproveDialogComponent, "sc-user-phone-approve-dialog", never, {}, {}, never, never, false>;
|
48
53
|
}
|