@snabcentr/client-ui 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +17 -2
- package/cart/cart-item-mobile/sc-cart-item-mobile.component.d.ts +0 -2
- package/catalog/category-card/sc-category-card.component.d.ts +20 -26
- package/catalog/sc-catalog.module.d.ts +1 -1
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +25 -4
- package/esm2022/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +3 -5
- package/esm2022/catalog/category-card/sc-category-card.component.mjs +32 -51
- package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +3 -3
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +3 -3
- package/esm2022/catalog/sc-catalog.module.mjs +10 -5
- package/esm2022/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +3 -3
- package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +3 -3
- package/fesm2022/snabcentr-client-ui.mjs +66 -65
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/release_notes.tmp +12 -2
- package/styles/taiga/variables.less +29 -0
- package/styles/tailwind/tailwind.scss +13 -12
- /package/icons/svg-pack/catalog/{door-accessorie.svg → door-accessories.svg} +0 -0
@@ -1,6 +1,7 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
2
|
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
3
3
|
import { ScAuthService, ScConvertersService, ScIReferencesTypes, ScISuggestionType, ScOpfList, ScReferencesService, ScSuggestion, ScUserMetrikaService, ScUserService } from '@snabcentr/client-core';
|
4
|
+
import { TuiDialogContext } from '@taiga-ui/core';
|
4
5
|
import { Observable, Subject } from 'rxjs';
|
5
6
|
import { ScContactFormGroup } from '../interfaces';
|
6
7
|
import * as i0 from "@angular/core";
|
@@ -60,6 +61,16 @@ export declare class ScSignUpFormComponent implements OnInit {
|
|
60
61
|
* Сигнал события аутентификации после успешной регистрации.
|
61
62
|
*/
|
62
63
|
readonly successAuth: Observable<boolean>;
|
64
|
+
/**
|
65
|
+
* Сигнал нажатия на "Договор оферты".
|
66
|
+
*/
|
67
|
+
readonly clickOfferEvent: EventEmitter<void>;
|
68
|
+
/**
|
69
|
+
* Контекст диалогового окна, в котором открыт компонент.
|
70
|
+
*/
|
71
|
+
readonly context: TuiDialogContext<void, {
|
72
|
+
onClickOffer: () => void;
|
73
|
+
}> | null;
|
63
74
|
/**
|
64
75
|
* Список этапов регистрации.
|
65
76
|
*/
|
@@ -148,6 +159,10 @@ export declare class ScSignUpFormComponent implements OnInit {
|
|
148
159
|
* @param index Индекс контактного лица.
|
149
160
|
*/
|
150
161
|
removeContactGroup(index: number): void;
|
162
|
+
/**
|
163
|
+
* Обрабатывает событие нажатия на "Договор оферты".
|
164
|
+
*/
|
165
|
+
onClickOffer(): void;
|
151
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignUpFormComponent, never>;
|
152
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignUpFormComponent, "sc-sign-up-form", never, {}, { "successAuth": "successAuth"; }, never, never, false, never>;
|
167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignUpFormComponent, "sc-sign-up-form", never, {}, { "successAuth": "successAuth"; "clickOfferEvent": "clickOfferEvent"; }, never, never, false, never>;
|
153
168
|
}
|
@@ -55,8 +55,6 @@ export declare class ScCartItemMobileComponent implements OnInit {
|
|
55
55
|
*
|
56
56
|
* @param unitsHelper Экземпляр класса-помощника для работы со значениями единиц измерения товара.
|
57
57
|
* @param previewDialogService Сервис диалогового окна предварительного просмотра.
|
58
|
-
* @param urls Список ссылок на разделы backend'a.
|
59
|
-
* @param pathImageNotFound Путь до изображения 'Товар не найден'.
|
60
58
|
*/
|
61
59
|
constructor(unitsHelper: ScUnitsHelper, previewDialogService: TuiPreviewDialogService);
|
62
60
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter
|
2
|
-
import {
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
2
|
+
import { ScCategory, ScIUrls } from '@snabcentr/client-core';
|
3
3
|
import { TuiSizeS } from '@taiga-ui/core';
|
4
4
|
import { Observable } from 'rxjs';
|
5
5
|
import * as i0 from "@angular/core";
|
@@ -8,26 +8,16 @@ import * as i0 from "@angular/core";
|
|
8
8
|
*/
|
9
9
|
export declare class ScCategoryCardComponent {
|
10
10
|
private readonly urls;
|
11
|
-
private renderer;
|
12
11
|
private readonly pathImageNotFound;
|
13
|
-
private readonly authService;
|
14
12
|
private readonly cdr;
|
15
13
|
/**
|
16
14
|
* Информация о категории.
|
17
15
|
*/
|
18
16
|
category?: ScCategory;
|
19
|
-
/**
|
20
|
-
* Ссылка на {@link HTMLElement} блока названия.
|
21
|
-
*/
|
22
|
-
private name;
|
23
17
|
/**
|
24
18
|
* Размер карточки категории.
|
25
19
|
*/
|
26
20
|
size: TuiSizeS;
|
27
|
-
/**
|
28
|
-
* Признак, что карточка является скелетоном.
|
29
|
-
*/
|
30
|
-
isSkeleton: boolean;
|
31
21
|
/**
|
32
22
|
* Признак, что необходимо отобразить лоадер для кнопки избранных товаров и категорий.
|
33
23
|
*/
|
@@ -37,9 +27,13 @@ export declare class ScCategoryCardComponent {
|
|
37
27
|
*/
|
38
28
|
readonly authStatus$: Observable<boolean>;
|
39
29
|
/**
|
40
|
-
* Признак
|
30
|
+
* Признак наведения на карточку.
|
41
31
|
*/
|
42
|
-
isHovered: boolean;
|
32
|
+
protected isHovered: boolean;
|
33
|
+
/**
|
34
|
+
* Признак того, отображается этот компонент на мобильном устройстве или нет.
|
35
|
+
*/
|
36
|
+
readonly isMobile: boolean;
|
43
37
|
/**
|
44
38
|
* Событие нажатия на карточку категории.
|
45
39
|
*/
|
@@ -52,28 +46,28 @@ export declare class ScCategoryCardComponent {
|
|
52
46
|
* Инициализирует экземпляр класса {@link CategoryCardComponent}.
|
53
47
|
*
|
54
48
|
* @param urls Список ссылок на разделы backend'a.
|
55
|
-
* @param renderer Экземпляр базового класса для реализации пользовательского рендеринга.
|
56
49
|
* @param pathImageNotFound Путь до изображения 'Товар не найден'.
|
50
|
+
* @param cdr Объект для работы с обнаружением изменений.
|
57
51
|
*/
|
58
|
-
constructor(urls: ScIUrls,
|
52
|
+
constructor(urls: ScIUrls, pathImageNotFound: string, cdr: ChangeDetectorRef);
|
59
53
|
/**
|
60
|
-
*
|
54
|
+
* Обработчик события наведения.
|
61
55
|
*
|
62
|
-
* @param
|
63
|
-
*/
|
64
|
-
getCategoryImgURL(category: ScCategory): string;
|
65
|
-
/**
|
66
|
-
* Обработчик события mousemove.
|
56
|
+
* @param isHovered Признак наведения на карточку.
|
67
57
|
*/
|
68
|
-
|
58
|
+
protected onHovered(isHovered: boolean): void;
|
69
59
|
/**
|
70
|
-
*
|
60
|
+
* Возвращает путь к изображению категории. Если путь отсутствует, то вернёт изображение по-умолчанию ("product_not_found").
|
61
|
+
*
|
62
|
+
* @param category Информация о категории.
|
71
63
|
*/
|
72
|
-
|
64
|
+
protected getCategoryImgURL(category: ScCategory): string;
|
73
65
|
/**
|
74
66
|
* Устанавливает компонент в очередь на обновление.
|
67
|
+
*
|
68
|
+
* @deprecated
|
75
69
|
*/
|
76
70
|
markForCheck(): void;
|
77
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCategoryCardComponent, never>;
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoryCardComponent, "sc-category-card", never, { "category": { "alias": "category"; "required": false; }; "size": { "alias": "size"; "required": false; };
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoryCardComponent, "sc-category-card", never, { "category": { "alias": "category"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "clickOnCardEvent": "clickOnCardEvent"; "clickOnFavoriteEvent": "clickOnFavoriteEvent"; }, never, never, false, never>;
|
79
73
|
}
|
@@ -21,6 +21,6 @@ import * as i17 from "./hover-image-carousel/hover-image-carousel.component";
|
|
21
21
|
*/
|
22
22
|
export declare class ScCatalogModule {
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCatalogModule, never>;
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCatalogModule, [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent], [typeof i9.CommonModule, typeof i10.RouterModule, typeof i11.TuiButton, typeof i11.TuiIcon, typeof i12.TuiIslandDirective, typeof i12.TuiInputNumberModule, typeof i11.TuiLabel, typeof i12.TuiTextfieldControllerModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i11.TuiHintComponent, typeof i11.TuiHintDirective, typeof i11.TuiHintOptionsDirective, typeof i11.TuiHintUnstyled, typeof i11.TuiHintDriver, typeof i11.TuiHintPosition, typeof i11.TuiHintHover, typeof i11.TuiHintOverflow, typeof i11.TuiHintDescribe, typeof i11.TuiHintHost, typeof i11.TuiHintManual, typeof i11.TuiHintPointer, typeof i14.TuiFieldErrorPipe, typeof i11.TuiLoader, typeof i11.TuiLink, typeof i14.TuiElasticContainer, typeof i15.TuiLet, typeof i15.TuiRepeatTimes, typeof i14.TuiHighlight, typeof i16.TuiLineDaysChart, typeof i16.TuiLineDaysChartHint, typeof i16.TuiAxes, typeof i14.TuiButtonLoading, typeof i14.TuiAvatar, typeof i14.TuiBadge, typeof i17.HoverImageCarouselComponent], [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent]>;
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCatalogModule, [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent], [typeof i9.CommonModule, typeof i10.RouterModule, typeof i11.TuiButton, typeof i11.TuiIcon, typeof i12.TuiIslandDirective, typeof i12.TuiInputNumberModule, typeof i11.TuiLabel, typeof i12.TuiTextfieldControllerModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i11.TuiHintComponent, typeof i11.TuiHintDirective, typeof i11.TuiHintOptionsDirective, typeof i11.TuiHintUnstyled, typeof i11.TuiHintDriver, typeof i11.TuiHintPosition, typeof i11.TuiHintHover, typeof i11.TuiHintOverflow, typeof i11.TuiHintDescribe, typeof i11.TuiHintHost, typeof i11.TuiHintManual, typeof i11.TuiHintPointer, typeof i14.TuiFieldErrorPipe, typeof i11.TuiLoader, typeof i11.TuiLink, typeof i14.TuiElasticContainer, typeof i15.TuiLet, typeof i15.TuiRepeatTimes, typeof i14.TuiHighlight, typeof i16.TuiLineDaysChart, typeof i16.TuiLineDaysChartHint, typeof i16.TuiAxes, typeof i14.TuiButtonLoading, typeof i14.TuiAvatar, typeof i14.TuiBadge, typeof i17.HoverImageCarouselComponent, typeof i14.TuiLineClamp, typeof i15.TuiHovered], [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent]>;
|
25
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScCatalogModule>;
|
26
26
|
}
|