@snabcentr/client-ui 5.5.0 → 5.6.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snabcentr/client-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
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": "^5.0.0",
|
|
16
16
|
"@ng-web-apis/intersection-observer": "^5.0.0",
|
|
17
17
|
"@ng-web-apis/common": "^5.0.0",
|
|
18
|
-
"@snabcentr/client-core": "^4.
|
|
18
|
+
"@snabcentr/client-core": "^4.11.0",
|
|
19
19
|
"@taiga-ui/addon-charts": "^5.9.0",
|
|
20
20
|
"@taiga-ui/addon-commerce": "^5.9.0",
|
|
21
21
|
"@taiga-ui/cdk": "^5.9.0",
|
package/release_notes.tmp
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
## 5.
|
|
1
|
+
## 5.6.0 (2026-07-24)
|
|
2
2
|
|
|
3
3
|
### added (1 change)
|
|
4
4
|
|
|
5
|
-
- [#13612:
|
|
5
|
+
- [#13612: Добавлены размеры изображений брендов](web_soft/libs/angular/snabcentr-client-ui-lib@8bf748e2a1247358ac106b35ea08dbca7130a061) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!427))
|
|
6
|
+
|
|
7
|
+
### changed (1 change)
|
|
8
|
+
|
|
9
|
+
- [#13182: Обновлена зависимость schema-dts до 2.0.0](web_soft/libs/angular/snabcentr-client-ui-lib@80153a288040d009e5197e180ab6030cd1ac29f0) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!428))
|
|
6
10
|
|
|
@@ -1908,9 +1908,9 @@ declare class ScFavoriteButtonComponent {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
1910
|
/**
|
|
1911
|
-
* Токен для инъекции {@link
|
|
1911
|
+
* Токен для инъекции {@link BehaviorSubject} для хранения фильтров продуктов.
|
|
1912
1912
|
*/
|
|
1913
|
-
declare const SC_CATALOG_PRODUCTS_FILTERS: InjectionToken<
|
|
1913
|
+
declare const SC_CATALOG_PRODUCTS_FILTERS: InjectionToken<BehaviorSubject<ScPropertyFilters>>;
|
|
1914
1914
|
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Токен для инъекции признака необходимости отображать фильтры для вложенных категорий.
|
|
@@ -2031,6 +2031,12 @@ declare class ScCatalogFiltersComponent {
|
|
|
2031
2031
|
* @param filters Массив фильтров для создания контролов.
|
|
2032
2032
|
*/
|
|
2033
2033
|
protected updateFormControls(filters: ScCatalogFilter[]): void;
|
|
2034
|
+
/**
|
|
2035
|
+
* Возвращает текущие применённые фильтры из хранилища фильтров.
|
|
2036
|
+
*
|
|
2037
|
+
* Позволяет восстанавливать выбранные значения при пересоздании компонента (повторное открытие диалога или блока фильтров).
|
|
2038
|
+
*/
|
|
2039
|
+
private getAppliedFilters;
|
|
2034
2040
|
/**
|
|
2035
2041
|
* Преобразует значения формы в объект фильтров свойств.
|
|
2036
2042
|
*
|
|
@@ -2045,14 +2051,16 @@ declare class ScCatalogFiltersComponent {
|
|
|
2045
2051
|
* Различие в API-выводе для одиночного значения (boolean вместо массива) обрабатывается в {@link processCheckboxFilter}.
|
|
2046
2052
|
*
|
|
2047
2053
|
* @param checkboxFilter Фильтр типа checkbox.
|
|
2054
|
+
* @param appliedValue Применённое ранее значение фильтра из хранилища фильтров.
|
|
2048
2055
|
*/
|
|
2049
|
-
protected createCheckboxFormControl(checkboxFilter: ScICheckboxFilter): FormGroup<Record<string, FormControl<boolean>>>;
|
|
2056
|
+
protected createCheckboxFormControl(checkboxFilter: ScICheckboxFilter, appliedValue?: ScPropertyFilters[string]): FormGroup<Record<string, FormControl<boolean>>>;
|
|
2050
2057
|
/**
|
|
2051
2058
|
* Создаёт {@link FormGroup} для range: {@code from}, {@code to}, {@code slider} (кортеж для {@link TuiRange}).
|
|
2052
2059
|
*
|
|
2053
2060
|
* @param rangeFilter Фильтр типа range.
|
|
2061
|
+
* @param appliedValue Применённое ранее значение фильтра из хранилища фильтров.
|
|
2054
2062
|
*/
|
|
2055
|
-
protected createRangeFormControl(rangeFilter: ScRangeFilter): FormGroup<{
|
|
2063
|
+
protected createRangeFormControl(rangeFilter: ScRangeFilter, appliedValue?: ScPropertyFilters[string]): FormGroup<{
|
|
2056
2064
|
from: FormControl<number>;
|
|
2057
2065
|
to: FormControl<number>;
|
|
2058
2066
|
slider: FormControl<[number, number]>;
|
|
@@ -2077,8 +2085,9 @@ declare class ScCatalogFiltersComponent {
|
|
|
2077
2085
|
* Создает FormControl для toggle.
|
|
2078
2086
|
*
|
|
2079
2087
|
* @param toggleFilter Фильтр типа toggle.
|
|
2088
|
+
* @param appliedValue Применённое ранее значение фильтра из хранилища фильтров.
|
|
2080
2089
|
*/
|
|
2081
|
-
protected createToggleFormControl(toggleFilter: ScToggleFilter): FormControl<boolean>;
|
|
2090
|
+
protected createToggleFormControl(toggleFilter: ScToggleFilter, appliedValue?: ScPropertyFilters[string]): FormControl<boolean>;
|
|
2082
2091
|
/**
|
|
2083
2092
|
* Обрабатывает checkbox: FormGroup → string[] выбранных id; для единственного значения — boolean (как toggle).
|
|
2084
2093
|
*
|
|
@@ -2135,6 +2144,8 @@ declare class ScCatalogFiltersComponent {
|
|
|
2135
2144
|
protected onShowResultsClick(): void;
|
|
2136
2145
|
/**
|
|
2137
2146
|
* Сбрасывает все фильтры к исходным значениям.
|
|
2147
|
+
*
|
|
2148
|
+
* @param emitEvent Признак необходимости эмитить события изменения контролов (false — тихий сброс без отправки значений в хранилище фильтров).
|
|
2138
2149
|
*/
|
|
2139
2150
|
private resetAllFilters;
|
|
2140
2151
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCatalogFiltersComponent, never>;
|
|
@@ -3981,6 +3992,28 @@ interface ScILoader {
|
|
|
3981
3992
|
loadingList: Set<string>;
|
|
3982
3993
|
}
|
|
3983
3994
|
|
|
3995
|
+
/**
|
|
3996
|
+
* Элемент списка брендов.
|
|
3997
|
+
*/
|
|
3998
|
+
interface ScBrandListItem {
|
|
3999
|
+
/**
|
|
4000
|
+
* URL изображения бренда.
|
|
4001
|
+
*/
|
|
4002
|
+
src: string;
|
|
4003
|
+
/**
|
|
4004
|
+
* Альтернативный текст изображения.
|
|
4005
|
+
*/
|
|
4006
|
+
alt: string;
|
|
4007
|
+
/**
|
|
4008
|
+
* Ширина изображения в пикселях.
|
|
4009
|
+
*/
|
|
4010
|
+
width: number;
|
|
4011
|
+
/**
|
|
4012
|
+
* Высота изображения в пикселях.
|
|
4013
|
+
*/
|
|
4014
|
+
height: number;
|
|
4015
|
+
}
|
|
4016
|
+
|
|
3984
4017
|
/**
|
|
3985
4018
|
* Компонент списка брэндов.
|
|
3986
4019
|
*/
|
|
@@ -3988,10 +4021,7 @@ declare class ScBrandsListComponent {
|
|
|
3988
4021
|
/**
|
|
3989
4022
|
* Список элементов брендов.
|
|
3990
4023
|
*/
|
|
3991
|
-
items:
|
|
3992
|
-
src: string;
|
|
3993
|
-
alt: string;
|
|
3994
|
-
}>;
|
|
4024
|
+
items: ScBrandListItem[];
|
|
3995
4025
|
/**
|
|
3996
4026
|
* Возвращает массив заданной длины для итерации.
|
|
3997
4027
|
*
|
|
@@ -6042,4 +6072,4 @@ declare class ScProfileAccordionsContentComponent {
|
|
|
6042
6072
|
}
|
|
6043
6073
|
|
|
6044
6074
|
export { AbstractScPriceCard, AuthMethod, CURRENT_COUNTRY_ID, CostWithDiscountComponent, FilesAndDocumentsComponent, FinishDateTimeTransformerDirective, IDLE_ITEM_STATE, IS_DEFAULT_COUNTRY, MAX_FILES_IN_FORM_INPUT, SC_ALLOW_SELECT_TERMINATED, SC_BANNER_DURATION, SC_CATALOG_PRODUCTS_FILTERS, SC_CATALOG_SHOW_PRODUCTS_RECURSIVELY, SC_DATE_FORMATTER, SC_DEBOUNCE_TIME_DEFAULT, SC_DIALOG_SERVICE_TOKEN, SC_ERROR_CHANGE_HANDLER, SC_HELP_NOTIFICATION_CLOSE, SC_HELP_NOTIFICATION_LIMIT, SC_HIDDEN_PRINT_ELEMENTS, SC_MANAGER_QR_HANDLER, SC_NOTIFY_WHEN_IN_STOCK_REQUIRED_FIELDS, SC_ORDER_FORM_CONFIG, SC_ORDER_OPTIONS, SC_PAGE_SIZE_OPTIONS, SC_SHOW_HELP_NOTIFICATION_IN_PHONE_INPUT, SC_USER_CITY_INFO, SC_USER_INFO, SC_USER_PROVIDERS, SC_VERIFICATION_CODE_TIMEOUT, ScAccordionComponent, ScAccordionContentDirective, ScAddContactDialogComponent, ScAddContragentBankAccountsDialogComponent, ScAddContragentDialogComponent, ScAddDeliveryAddressDialogComponent, ScAddOrEditingCartItemDialogComponent, ScAddOrEditingCartItemFormComponent, ScAddressesSelectionFieldComponent, ScBannerComponent, ScBrandsListComponent, ScCartAddProductsFromCsvDialogComponent, ScCatalogFilterCollapsibleComponent, ScCatalogFiltersComponent, ScCategoryCardComponent, ScContactsAccordionComponent, ScContragentsAccordionComponent, ScContragentsAccordionItemComponent, ScDeliveryAddressAccordionComponent, ScDeliveryAddressAccordionItemComponent, ScDownloadPriceListComponent, ScDraftComponent, ScEmailLinkDirective, ScErrorBlockStatusComponent, ScErrorHandlerComponent, ScFavoriteButtonComponent, ScFeedbackFormComponent, ScFocusFirstInvalidFieldDirective, ScFormatDatePipe, ScFrequentlyAskedQuestionsComponent, ScFrequentlyAskedQuestionsGroupSelectorComponent, ScFrequentlyAskedQuestionsWithGroupsComponent, ScGratitudeComponent, ScHelpNotificationService, ScHoverImageCarouselComponent, ScInputQuantityComponent, ScLinks, ScManagerCardComponent, ScManagerCardPushComponent, ScNewContactFormComponent, ScNewContragentBankAccountsFormComponent, ScNewContragentFormComponent, ScNewsCardComponent, ScNewsCardSkeletonComponent, ScNextInputFocusDirective, ScNoindexDirective, ScNoindexWrapperComponent, ScNotifyWhenInStockDialogComponent, ScOrderAccessorDirective, ScOrderDirectionItemsComponent, ScOrderFormComponent, ScOrderItemComponent, ScOrderItemsByDirection, ScOrderItemsListByDirectionsComponent, ScOrderItemsListByStockComponent, ScOrderItemsListComponent, ScPaymentStatusComponent, ScPersonalDataProcessingPolicyComponent, ScPhoneFormatPipe, ScPreviewSampleComponent, ScPreviewSamplesMosquitoComponent, ScPriceCardComponent, ScPriceCardInlineComponent, ScPriceHistoryComponent, ScPriceListPaginationComponent, ScPriceWarehouseStockComponent, ScPrintDirective, ScPrintService, ScPrivacyPolicyComponent, ScProductInAllWarehousesPipe, ScProfileAccordionsContentComponent, ScPublicOfferComponent, ScQRCodeDialogComponent, ScResetUserPasswordComponent, ScResourcePreviewComponent, ScSandwichComponent, ScSandwichM2Component, ScSandwichM2SkeletonComponent, ScSandwichSkeletonComponent, ScSelectOnFocusinDirective, ScSeoTagsComponent, ScShareButtonComponent, ScSignInFormByEmailComponent, ScSignInFormByPhoneComponent, ScSignInFormComponent, ScSignUpFormComponent, ScSimpleSignUpFormComponent, ScSuggestionFieldComponent, ScTelLinkDirective, ScTerminalLinkDirective, ScUpdateUserInfoDialogComponent, ScUserManagersComponent, ScUserPhoneApproveDialogComponent, ScVerificationPhoneCheckFormComponent, TreeDirective, TreeIconService, TreeLoaderService, TreeTopDirective, cleanupRecaptchaArtifacts, phoneValidator, scAtLeastOneRequiredValidator, scBicValidator, scClientUiIconsName, scCorrespondentAccountValidator, scGetCurrentRoute, scPasswordConfirmMatchingValidator, stepValidator, tuiDateValueTransformerDefaultProvider };
|
|
6045
|
-
export type { ApiErrorResponse, IBlockError, INewOrderForm, IScDialogService, IScImage, ScBankAccountFormGroup, ScContactFormGroup, ScFeedbackFormConfig, ScFeedbackFormFieldType, ScIConfiguratorSearchProductSandwich, ScILoader, ScINewCartItemSandwich, ScINewCartItemSandwichM2, ScIOrderFormConfig, ScIPreviewSample, ScISandwichM2Settings, ScISandwichSettings, ScLinkLocation, ScOrderOptions, ScPreviewMosquitoConfig, ScSandwichM2ItemSubmitState, TreeNode };
|
|
6075
|
+
export type { ApiErrorResponse, IBlockError, INewOrderForm, IScDialogService, IScImage, ScBankAccountFormGroup, ScBrandListItem, ScContactFormGroup, ScFeedbackFormConfig, ScFeedbackFormFieldType, ScIConfiguratorSearchProductSandwich, ScILoader, ScINewCartItemSandwich, ScINewCartItemSandwichM2, ScIOrderFormConfig, ScIPreviewSample, ScISandwichM2Settings, ScISandwichSettings, ScLinkLocation, ScOrderOptions, ScPreviewMosquitoConfig, ScSandwichM2ItemSubmitState, TreeNode };
|