@snabcentr/client-ui 4.18.0 → 4.19.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.
Files changed (25) hide show
  1. package/contacts/sc-contacts.module.d.ts +5 -4
  2. package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +5 -1
  3. package/contragents/new-contragent-form/sc-new-contragent-form.component.d.ts +6 -0
  4. package/contragents/sc-contragents.module.d.ts +4 -3
  5. package/directives/sc-null-on-empty-value-transformer.directive.d.ts +8 -0
  6. package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +2 -1
  7. package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +7 -6
  8. package/esm2022/contacts/sc-contacts.module.mjs +5 -2
  9. package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +8 -3
  10. package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +16 -5
  11. package/esm2022/contragents/sc-contragents.module.mjs +4 -1
  12. package/esm2022/directives/sc-null-on-empty-value-transformer.directive.mjs +30 -0
  13. package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +2 -1
  14. package/esm2022/masks/index.mjs +2 -1
  15. package/esm2022/masks/sc-ogrn-mask.mjs +13 -0
  16. package/esm2022/providers/null-on-empty-value-transformer/index.mjs +2 -0
  17. package/esm2022/providers/null-on-empty-value-transformer/sc-null-on-empty-value-transformer.mjs +31 -0
  18. package/fesm2022/snabcentr-client-ui.mjs +94 -7
  19. package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
  20. package/masks/index.d.ts +1 -0
  21. package/masks/sc-ogrn-mask.d.ts +9 -0
  22. package/package.json +2 -2
  23. package/providers/null-on-empty-value-transformer/index.d.ts +1 -0
  24. package/providers/null-on-empty-value-transformer/sc-null-on-empty-value-transformer.d.ts +21 -0
  25. package/release_notes.tmp +3 -3
package/masks/index.d.ts CHANGED
@@ -3,5 +3,6 @@ export * from './sc-bic-mask';
3
3
  export * from './sc-correspondent-account-mask';
4
4
  export * from './sc-inn-mask';
5
5
  export * from './sc-kpp-mask';
6
+ export * from './sc-ogrn-mask';
6
7
  export * from './sc-okpo-mask';
7
8
  export * from './sc-phone-verification-code-mask';
@@ -0,0 +1,9 @@
1
+ import { MaskitoOptions } from '@maskito/core';
2
+ /**
3
+ * Маска поля ввода ОГРНИП индивидуального предпринимателя.
4
+ */
5
+ export declare const scEntrepreneurOgrnMask: MaskitoOptions;
6
+ /**
7
+ * Маска поля ввода ОГРН юридического лица.
8
+ */
9
+ export declare const scLegalOgrnMask: MaskitoOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "4.18.0",
3
+ "version": "4.19.0",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -16,7 +16,7 @@
16
16
  "@maskito/core": "^3.11.1",
17
17
  "@ng-web-apis/intersection-observer": "^4.14.0",
18
18
  "@ng-web-apis/common": "^4.14.0",
19
- "@snabcentr/client-core": "^3.23.4",
19
+ "@snabcentr/client-core": "^3.23.5",
20
20
  "@taiga-ui/addon-charts": "^4.66.0",
21
21
  "@taiga-ui/addon-commerce": "^4.66.0",
22
22
  "@taiga-ui/cdk": "^4.66.0",
@@ -0,0 +1 @@
1
+ export * from './sc-null-on-empty-value-transformer';
@@ -0,0 +1,21 @@
1
+ import { TuiValueTransformer } from '@taiga-ui/cdk';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Преобразователь значения текстового поля, в котором очищенное поле даёт в форме null, как нетронутое.
5
+ */
6
+ export declare class NullOnEmptyValueTransformer extends TuiValueTransformer<string, string | null> {
7
+ /**
8
+ * Преобразует значение из формы в значение поля ввода: null становится пустой строкой.
9
+ *
10
+ * @param controlValue Значение из формы поля ввода.
11
+ */
12
+ fromControlValue(controlValue: string | null): string;
13
+ /**
14
+ * Преобразует значение поля ввода в значение формы: пустая строка становится null.
15
+ *
16
+ * @param componentValue Значение из компонента поля ввода.
17
+ */
18
+ toControlValue(componentValue: string): string | null;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<NullOnEmptyValueTransformer, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<NullOnEmptyValueTransformer>;
21
+ }
package/release_notes.tmp CHANGED
@@ -1,6 +1,6 @@
1
- ## 4.18.0 (2026-10-09)
1
+ ## 4.19.0 (2026-10-14)
2
2
 
3
- ### added, (1 change)
3
+ ### added (1 change)
4
4
 
5
- - [#14054: Добавлена проверка полноты адреса в подсказках адресов и организаций](web_soft/libs/angular/snabcentr-client-ui-lib@acc6663f5787a3c5d65877216aef0d5d5a14b914) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!459))
5
+ - [#14052: Добавлено необязательное поле ОГРН в форму создания контрагента](web_soft/libs/angular/snabcentr-client-ui-lib@8d48a15630be00007bee1504e9593c258483e2da) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!461))
6
6