@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.
Files changed (24) hide show
  1. package/catalog/index.d.ts +1 -1
  2. package/catalog/notify-when-in-stock-dialog/index.d.ts +2 -0
  3. package/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.d.ts +12 -2
  4. package/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.d.ts +22 -0
  5. package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +1 -1
  6. package/esm2022/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.mjs +1 -1
  7. package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +1 -1
  8. package/esm2022/catalog/index.mjs +2 -2
  9. package/esm2022/catalog/notify-when-in-stock-dialog/index.mjs +3 -0
  10. package/esm2022/catalog/notify-when-in-stock-dialog/sc-notify-when-in-stock-dialog.component.mjs +41 -17
  11. package/esm2022/catalog/notify-when-in-stock-dialog/sc-product-in-all-warehouses.pipe.mjs +35 -0
  12. package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +1 -1
  13. package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +1 -1
  14. package/esm2022/validators/index.mjs +2 -1
  15. package/esm2022/validators/sc-at-least-one-required-validator.mjs +25 -0
  16. package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +16 -3
  17. package/fesm2022/snabcentr-client-ui.mjs +131 -36
  18. package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
  19. package/package.json +2 -2
  20. package/release_notes.tmp +7 -3
  21. package/styles/tailwind/tailwind.scss +4 -0
  22. package/validators/index.d.ts +1 -0
  23. package/validators/sc-at-least-one-required-validator.d.ts +10 -0
  24. 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.0",
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.45.0",
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.0 (2025-05-19)
1
+ ## 3.27.2 (2025-05-20)
2
2
 
3
- ### added (1 change)
3
+ ### changed (1 change)
4
4
 
5
- - [#11524: Добавлен валидатор для номера телефона во все формы.](web_soft/libs/angular/snabcentr-client-ui-lib@9363cc77a05cb5d854cd101d5f65068cb6a79811) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!274))
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
 
@@ -1665,6 +1665,10 @@ video {
1665
1665
  color: var(--tui-text-primary);
1666
1666
  }
1667
1667
 
1668
+ .text-tui-text-tertiary {
1669
+ color: var(--tui-text-tertiary);
1670
+ }
1671
+
1668
1672
  .underline {
1669
1673
  text-decoration-line: underline;
1670
1674
  }
@@ -3,3 +3,4 @@ export * from './sc-correspondent-account-validator';
3
3
  export * from './sc-password-confirm-matching-validator';
4
4
  export * from './sc-phone-validator';
5
5
  export * from './step-validator';
6
+ export * from './sc-at-least-one-required-validator';
@@ -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;
@@ -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
  }