@snabcentr/client-ui 3.27.0 → 3.27.4
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/catalog/index.d.ts +1 -1
- package/catalog/notify-when-in-stock-dialog/index.d.ts +2 -0
- package/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.d.ts +12 -2
- package/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.d.ts +22 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +1 -1
- package/esm2022/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.mjs +1 -1
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +3 -3
- package/esm2022/catalog/index.mjs +2 -2
- package/esm2022/catalog/notify-when-in-stock-dialog/index.mjs +3 -0
- package/esm2022/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.mjs +41 -17
- package/esm2022/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.mjs +35 -0
- package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +3 -3
- package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +3 -3
- package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +26 -8
- package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +1 -1
- package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +1 -1
- package/esm2022/validators/index.mjs +2 -1
- package/esm2022/validators/sc-at-least-one-required-validator.mjs +25 -0
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +16 -3
- package/fesm2022/snabcentr-client-ui.mjs +163 -51
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/form-fields/addresses-selection-field/sc-addresses-selection-field.component.d.ts +17 -9
- package/package.json +2 -2
- package/release_notes.tmp +4 -3
- package/styles/tailwind/tailwind.scss +4 -0
- package/validators/index.d.ts +1 -0
- package/validators/sc-at-least-one-required-validator.d.ts +10 -0
- package/verification/verification-phone-check-form/sc-verification-phone-check-form.component.d.ts +13 -1
@@ -9,30 +9,38 @@ import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ScAddressesSelectionFieldComponent implements OnInit {
|
10
10
|
private readonly formGroupDirective;
|
11
11
|
private readonly locationsService;
|
12
|
+
/**
|
13
|
+
* Флаг возможности выбора страны.
|
14
|
+
*/
|
15
|
+
readonly canSelectCountry: import("@angular/core").ModelSignal<boolean>;
|
16
|
+
/**
|
17
|
+
* Идентификатор текущей страны системы.
|
18
|
+
*/
|
19
|
+
private readonly russiaCountryId;
|
12
20
|
/**
|
13
21
|
* FormControl для поля страны.
|
14
22
|
*/
|
15
|
-
countryControl: FormControl<ScICountry | null>;
|
23
|
+
protected readonly countryControl: FormControl<ScICountry | null>;
|
16
24
|
/**
|
17
25
|
* FormControl для поля региона.
|
18
26
|
*/
|
19
|
-
regionControl: FormControl<ScIRegion | null>;
|
27
|
+
protected readonly regionControl: FormControl<ScIRegion | null>;
|
20
28
|
/**
|
21
29
|
* FormControl для поля города.
|
22
30
|
*/
|
23
|
-
cityControl: FormControl<ScICity | null>;
|
31
|
+
protected cityControl: FormControl<ScICity | null>;
|
24
32
|
/**
|
25
33
|
* {@link Observable} изменения списка стран.
|
26
34
|
*/
|
27
|
-
countries$: Observable<ScICountry[] | null>;
|
35
|
+
protected countries$: Observable<ScICountry[] | null>;
|
28
36
|
/**
|
29
37
|
* {@link Observable} изменения списка регионов.
|
30
38
|
*/
|
31
|
-
regions$: Observable<ScIRegion[] | null>;
|
39
|
+
protected regions$: Observable<ScIRegion[] | null>;
|
32
40
|
/**
|
33
41
|
* {@link Observable} изменения списка городов.
|
34
42
|
*/
|
35
|
-
cities$: Observable<ScICity[] | null>;
|
43
|
+
protected cities$: Observable<ScICity[] | null>;
|
36
44
|
/**
|
37
45
|
* Ссылка для автоматического управления уничтожением зависимостей.
|
38
46
|
*/
|
@@ -43,7 +51,7 @@ export declare class ScAddressesSelectionFieldComponent implements OnInit {
|
|
43
51
|
* @param item Выбранный объект выпадающего списка.
|
44
52
|
* @param item.name Название страны/региона/города, которое будет отображено в поле.
|
45
53
|
*/
|
46
|
-
readonly stringify: (item: {
|
54
|
+
protected readonly stringify: (item: {
|
47
55
|
name: string;
|
48
56
|
}) => string;
|
49
57
|
/**
|
@@ -64,7 +72,7 @@ export declare class ScAddressesSelectionFieldComponent implements OnInit {
|
|
64
72
|
*
|
65
73
|
* @param city Идентификатор записи города.
|
66
74
|
*/
|
67
|
-
onSelectedCity(city: ScICity | null): void;
|
75
|
+
protected onSelectedCity(city: ScICity | null): void;
|
68
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAddressesSelectionFieldComponent, [{ skipSelf: true; }, null]>;
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddressesSelectionFieldComponent, "sc-addresses-selection-field", never, {}, {}, never, never, false, never>;
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAddressesSelectionFieldComponent, "sc-addresses-selection-field", never, { "canSelectCountry": { "alias": "canSelectCountry"; "required": false; "isSignal": true; }; }, { "canSelectCountry": "canSelectCountryChange"; }, never, never, false, never>;
|
70
78
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snabcentr/client-ui",
|
3
|
-
"version": "3.27.
|
3
|
+
"version": "3.27.4",
|
4
4
|
"author": "Snabcentr Ltd.",
|
5
5
|
"repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
|
6
6
|
"license": "Commercial",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"@maskito/core": "^3.2.0",
|
16
16
|
"@ng-web-apis/intersection-observer": "^4.11.1",
|
17
17
|
"@ng-web-apis/common": "^4.11.1",
|
18
|
-
"@snabcentr/client-core": "^2.
|
18
|
+
"@snabcentr/client-core": "^2.50.0",
|
19
19
|
"@taiga-ui/addon-charts": "^4.24.0",
|
20
20
|
"@taiga-ui/addon-commerce": "^4.24.0",
|
21
21
|
"@taiga-ui/cdk": "^4.24.0",
|
package/release_notes.tmp
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
## 3.27.
|
1
|
+
## 3.27.4 (2025-05-22)
|
2
2
|
|
3
|
-
###
|
3
|
+
### fixed (2 changes)
|
4
4
|
|
5
|
-
- [#
|
5
|
+
- [#11637: Исправлено некорректное форматирование даты.](web_soft/libs/angular/snabcentr-client-ui-lib@d5a5c67938920d9c5cd80dea7d0b48a099223b45) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!278))
|
6
|
+
- [#11618: Исправлена ошибка при выборе типа клиента "ИП". ](web_soft/libs/angular/snabcentr-client-ui-lib@19510a1996479f103b5ea731cb87da0519c6717d) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!277))
|
6
7
|
|
package/validators/index.d.ts
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
2
|
+
/**
|
3
|
+
* Проверяет, что хотя бы одно поле из списка заполнено.
|
4
|
+
* Поддерживает как отдельные поля, так и группы полей.
|
5
|
+
*
|
6
|
+
* @param fields Массив полей для проверки. Каждый элемент может быть строкой или массивом строк.
|
7
|
+
* @param blockName Имя блока для идентификации ошибки
|
8
|
+
* @returns ValidatorFn
|
9
|
+
*/
|
10
|
+
export declare function scAtLeastOneRequiredValidator(fields: Array<string | string[]>, blockName?: string): ValidatorFn;
|
package/verification/verification-phone-check-form/sc-verification-phone-check-form.component.d.ts
CHANGED
@@ -35,6 +35,18 @@ export declare class ScVerificationPhoneCheckFormComponent implements OnInit {
|
|
35
35
|
* Признак, что поле ввода телефона только для чтения.
|
36
36
|
*/
|
37
37
|
readonly readOnly: InputSignal<boolean>;
|
38
|
+
/**
|
39
|
+
* Признак, что поле ввода телефона псевдо-невалидное.
|
40
|
+
*/
|
41
|
+
readonly pseudoInvalid: InputSignal<boolean>;
|
42
|
+
/**
|
43
|
+
* Признак, что поле ввода телефона и кода подтверждения обязательные.
|
44
|
+
*/
|
45
|
+
readonly required: InputSignal<boolean>;
|
46
|
+
/**
|
47
|
+
* Текст подсказки.
|
48
|
+
*/
|
49
|
+
readonly subtitle: InputSignal<string>;
|
38
50
|
/**
|
39
51
|
* Признак, следует ли телефону быть в системе. От этого признака зависит, в каких случаях выдавать ошибку при проверке занятости телефона.
|
40
52
|
*/
|
@@ -129,5 +141,5 @@ export declare class ScVerificationPhoneCheckFormComponent implements OnInit {
|
|
129
141
|
*/
|
130
142
|
protected closeNotification(): void;
|
131
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScVerificationPhoneCheckFormComponent, never>;
|
132
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScVerificationPhoneCheckFormComponent, "sc-verification-phone-check-form", never, { "showCodeFields": { "alias": "showCodeFields"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "shouldBeBusy": { "alias": "shouldBeBusy"; "required": false; "isSignal": true; }; "shouldBeConfirmed": { "alias": "shouldBeConfirmed"; "required": false; "isSignal": true; }; "haveCode": { "alias": "haveCode"; "required": false; "isSignal": true; }; }, { "haveCode": "haveCodeChange"; "isBusyChange": "isBusyChange"; "isConfirmedChange": "isConfirmedChange"; }, never, never, false, never>;
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScVerificationPhoneCheckFormComponent, "sc-verification-phone-check-form", never, { "showCodeFields": { "alias": "showCodeFields"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "pseudoInvalid": { "alias": "pseudoInvalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "shouldBeBusy": { "alias": "shouldBeBusy"; "required": false; "isSignal": true; }; "shouldBeConfirmed": { "alias": "shouldBeConfirmed"; "required": false; "isSignal": true; }; "haveCode": { "alias": "haveCode"; "required": false; "isSignal": true; }; }, { "haveCode": "haveCodeChange"; "isBusyChange": "isBusyChange"; "isConfirmedChange": "isConfirmedChange"; }, never, never, false, never>;
|
133
145
|
}
|