@snabcentr/client-ui 3.27.0 → 3.27.2
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 +1 -1
- 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/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 +131 -36
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/release_notes.tmp +7 -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
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snabcentr/client-ui",
|
3
|
-
"version": "3.27.
|
3
|
+
"version": "3.27.2",
|
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.48.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,10 @@
|
|
1
|
-
## 3.27.
|
1
|
+
## 3.27.2 (2025-05-20)
|
2
2
|
|
3
|
-
###
|
3
|
+
### changed (1 change)
|
4
4
|
|
5
|
-
- [#
|
5
|
+
- [#10994: Доработан компонент "Уведомлений о поступлении товара" ](web_soft/libs/angular/snabcentr-client-ui-lib@60eb722ff1a2dcfb7626332bbc5b057760e52713) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!275))
|
6
|
+
|
7
|
+
### fixed (1 change)
|
8
|
+
|
9
|
+
- [#11579: Исправлена ошибка зависимостей из-за которой не работает новый API обратной связи](web_soft/libs/angular/snabcentr-client-ui-lib@0b862762ab54253beac2f922b49d2fd841a00ab7) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!276))
|
6
10
|
|
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
|
}
|