@snabcentr/client-ui 4.16.5 → 4.16.7
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/contacts/sc-contacts.module.d.ts +5 -4
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +5 -1
- package/contragents/new-contragent-form/sc-new-contragent-form.component.d.ts +6 -0
- package/contragents/sc-contragents.module.d.ts +4 -3
- package/directives/sc-null-on-empty-value-transformer.directive.d.ts +8 -0
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +2 -1
- package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +7 -6
- package/esm2022/contacts/sc-contacts.module.mjs +5 -2
- package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +8 -3
- package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +16 -5
- package/esm2022/contragents/sc-contragents.module.mjs +4 -1
- package/esm2022/directives/sc-null-on-empty-value-transformer.directive.mjs +30 -0
- package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +2 -1
- package/esm2022/masks/index.mjs +2 -1
- package/esm2022/masks/sc-ogrn-mask.mjs +13 -0
- package/esm2022/order/order-items-list/sc-order-items-list.component.mjs +36 -5
- package/esm2022/providers/null-on-empty-value-transformer/index.mjs +2 -0
- package/esm2022/providers/null-on-empty-value-transformer/sc-null-on-empty-value-transformer.mjs +31 -0
- package/fesm2022/snabcentr-client-ui.mjs +127 -9
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/masks/index.d.ts +1 -0
- package/masks/sc-ogrn-mask.d.ts +9 -0
- package/order/order-items-list/sc-order-items-list.component.d.ts +10 -0
- package/package.json +1 -1
- package/providers/null-on-empty-value-transformer/index.d.ts +1 -0
- package/providers/null-on-empty-value-transformer/sc-null-on-empty-value-transformer.d.ts +21 -0
- package/release_notes.tmp +1 -1
package/masks/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -31,6 +31,10 @@ export declare class ScOrderItemsListComponent {
|
|
|
31
31
|
* Идентификаторы выбранных позиций.
|
|
32
32
|
*/
|
|
33
33
|
protected readonly itemsIds: import("@angular/core").Signal<[string, boolean][]>;
|
|
34
|
+
/**
|
|
35
|
+
* Состояние флага «Выбрать все»: `true`, если выбраны все позиции, `false`, если ни одной, и `null`, если только часть.
|
|
36
|
+
*/
|
|
37
|
+
protected readonly allItemsSelected: import("@angular/core").Signal<boolean | null>;
|
|
34
38
|
/**
|
|
35
39
|
* Сигнал идентификаторов выбранных позиций.
|
|
36
40
|
*/
|
|
@@ -73,6 +77,12 @@ export declare class ScOrderItemsListComponent {
|
|
|
73
77
|
* Синхронизирует контролы формы выбора с текущим списком товаров: удаляет контролы для отсутствующих id, добавляет для новых.
|
|
74
78
|
*/
|
|
75
79
|
private syncSelectionControls;
|
|
80
|
+
/**
|
|
81
|
+
* Выбирает все позиции или снимает выбор со всех.
|
|
82
|
+
*
|
|
83
|
+
* @param event Событие изменения флага выбора всех позиций.
|
|
84
|
+
*/
|
|
85
|
+
protected selectAllChangeHandler(event: Event): void;
|
|
76
86
|
/**
|
|
77
87
|
* Удаляет позицию.
|
|
78
88
|
*
|
package/package.json
CHANGED
|
@@ -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