@snabcentr/client-ui 5.7.4 → 5.9.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.7.4",
3
+ "version": "5.9.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.11.0",
18
+ "@snabcentr/client-core": "^4.16.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,4 +1,10 @@
1
- ## 5.7.4 (2026-08-06)
1
+ ## 5.9.0 (2026-08-21)
2
2
 
3
- No changes.
3
+ ### removed (1 change)
4
+
5
+ - [#13733: Удалены обертки блоков noindex из каталога и карточек товара](web_soft/libs/angular/snabcentr-client-ui-lib@16de171573e5e379fd3544600362f28e73d1fbb6) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!442))
6
+
7
+ ### fixed (1 change)
8
+
9
+ - [#13728: Доступные даты отгрузки выделены в календаре, листание месяцев ограничено ими](web_soft/libs/angular/snabcentr-client-ui-lib@572b1d6a1671942742bcfb4fce249c290700eb14) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!441))
4
10
 
@@ -1098,6 +1098,10 @@ video {
1098
1098
  grid-template-columns: repeat(4, minmax(0, 1fr));
1099
1099
  }
1100
1100
 
1101
+ .grid-cols-\[repeat\(auto-fill\2c minmax\(17rem\2c 1fr\)\)\] {
1102
+ grid-template-columns: repeat(auto-fill,minmax(17rem,1fr));
1103
+ }
1104
+
1101
1105
  .flex-col {
1102
1106
  flex-direction: column;
1103
1107
  }
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
6
6
  import { OnInit, OnDestroy, Signal, OutputRef, OutputEmitterRef, EventEmitter, InputSignal, QueryList, TemplateRef, WritableSignal, PipeTransform, OnChanges, SimpleChanges, InjectionToken, AfterViewInit, ElementRef, ModelSignal, Provider, FactoryProvider } from '@angular/core';
7
7
  import { FormGroup, FormControl, FormArray, ControlValueAccessor, ValidatorFn, NgControl, FormGroupDirective } from '@angular/forms';
8
8
  import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
9
- import { TuiSizeS, TuiCarouselComponent, TuiDialogContext, TuiSizeL, TuiCommonIcons, TuiSizeM } from '@taiga-ui/core';
9
+ import { TuiSizeS, TuiCarouselComponent, TuiDialogContext, TuiSizeL, TuiMarkerHandler, TuiCommonIcons, TuiSizeM } from '@taiga-ui/core';
10
10
  import { TuiAccordionDirective, TuiTreeLoader, TuiTreeService, TuiFileLike } from '@taiga-ui/kit';
11
11
  import { HttpErrorResponse, HttpClient } from '@angular/common/http';
12
12
  import { TuiStringHandler, TuiContext, TuiDayRange, TuiDay, TuiHandler } from '@taiga-ui/cdk';
@@ -4408,10 +4408,28 @@ declare class ScOrderFormComponent implements OnInit {
4408
4408
  * Набор доступных дат в зависимости от типа доставки.
4409
4409
  */
4410
4410
  protected readonly deliveryDates: Signal<string[]>;
4411
+ /**
4412
+ * Набор доступных дат в виде дат календаря, отсортированный по возрастанию.
4413
+ */
4414
+ private readonly deliveryDays;
4415
+ /**
4416
+ * Первая доступная дата.
4417
+ */
4418
+ protected readonly minDeliveryDay: Signal<TuiDay | null>;
4419
+ /**
4420
+ * Последняя доступная дата.
4421
+ */
4422
+ protected readonly maxDeliveryDay: Signal<TuiDay | null>;
4411
4423
  /**
4412
4424
  * Ссылка на элемент с предупреждением о неподтверждённых данных.
4413
4425
  */
4414
4426
  protected readonly unconfirmedDataWarning: Signal<ElementRef<HTMLElement> | undefined>;
4427
+ /**
4428
+ * Возвращает маркер, которым выделяется доступная для выбора дата.
4429
+ *
4430
+ * @param date Дата.
4431
+ */
4432
+ protected readonly deliveryDateMarker: TuiMarkerHandler;
4415
4433
  /**
4416
4434
  * Возвращает признак, что указанная дата недоступна для выбора.
4417
4435
  *
@@ -4851,10 +4869,6 @@ declare class ScPaymentStatusComponent {
4851
4869
  * Наименование query-параметра идентификатора группы часто задаваемых вопросов.
4852
4870
  */
4853
4871
  declare const SC_FAQ_GROUP_QUERY_PARAM = "group";
4854
- /**
4855
- * Наименование query-параметра номера страницы пагинации часто задаваемых вопросов.
4856
- */
4857
- declare const SC_FAQ_PAGE_QUERY_PARAM = "page";
4858
4872
 
4859
4873
  /**
4860
4874
  * Компонент часто задаваемых вопросов.
@@ -4957,10 +4971,6 @@ declare class ScFrequentlyAskedQuestionsWithGroupsComponent {
4957
4971
  * Признак, что приложение запущено на сервере.
4958
4972
  */
4959
4973
  private readonly isServer;
4960
- /**
4961
- * Индекс первой страницы.
4962
- */
4963
- private readonly firstPageIndex;
4964
4974
  /**
4965
4975
  * Количество записей на странице пагинации.
4966
4976
  */
@@ -5015,6 +5025,60 @@ declare class ScFrequentlyAskedQuestionsWithGroupsComponent {
5015
5025
  static ɵcmp: i0.ɵɵComponentDeclaration<ScFrequentlyAskedQuestionsWithGroupsComponent, "sc-frequently-asked-questions-with-groups", never, {}, { "clickSendQuestion": "clickSendQuestion"; }, never, never, true, never>;
5016
5026
  }
5017
5027
 
5028
+ /**
5029
+ * Компонент списка новостей с пагинацией через query-параметр страницы.
5030
+ *
5031
+ * Ссылки пагинации корректно работают при SSR и позволяют поисковым роботам обходить страницы списка.
5032
+ */
5033
+ declare class ScNewsListComponent {
5034
+ /**
5035
+ * Сервис для получения списка новостей.
5036
+ */
5037
+ private readonly newsService;
5038
+ /**
5039
+ * Сервис маршрутизации.
5040
+ */
5041
+ private readonly router;
5042
+ /**
5043
+ * {@link InputSignal} количества записей на странице пагинации.
5044
+ */
5045
+ readonly perPage: InputSignal<number>;
5046
+ /**
5047
+ * {@link Observable} изменения номера страницы пагинации из query-параметров.
5048
+ */
5049
+ protected readonly page$: Observable<number>;
5050
+ /**
5051
+ * {@link Observable} запроса данных списка новостей.
5052
+ */
5053
+ protected readonly request$: Observable<_snabcentr_client_core.ScIPaginate<ScINewsTile> | null>;
5054
+ /**
5055
+ * {@link Observable} изменения количества страниц пагинации.
5056
+ */
5057
+ protected readonly pagesLength$: Observable<number>;
5058
+ /**
5059
+ * {@link Observable} изменения номера страницы пагинации из данных пагинации запроса.
5060
+ */
5061
+ protected readonly currentPage$: Observable<number>;
5062
+ /**
5063
+ * {@link Observable} изменения состояния загрузки данных.
5064
+ */
5065
+ protected readonly loading$: Observable<boolean>;
5066
+ /**
5067
+ * {@link Observable} изменения списка новостей страницы пагинации.
5068
+ */
5069
+ protected readonly data$: Observable<ScINewsTile[] | null>;
5070
+ /**
5071
+ * Событие изменения списка новостей страницы пагинации.
5072
+ */
5073
+ readonly dataChangeEvent: OutputRef<ScINewsTile[]>;
5074
+ /**
5075
+ * Инициализирует экземпляр класса {@link ScNewsListComponent}.
5076
+ */
5077
+ constructor();
5078
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScNewsListComponent, never>;
5079
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScNewsListComponent, "sc-news-list", never, { "perPage": { "alias": "perPage"; "required": false; "isSignal": true; }; }, { "dataChangeEvent": "dataChangeEvent"; }, never, never, true, never>;
5080
+ }
5081
+
5018
5082
  /**
5019
5083
  * Компонент политики обработки персональных данных пользователей сайта.
5020
5084
  */
@@ -6168,5 +6232,5 @@ declare class ScProfileAccordionsContentComponent {
6168
6232
  static ɵcmp: i0.ɵɵComponentDeclaration<ScProfileAccordionsContentComponent, "sc-profile-accordions-content", never, {}, { "editProfileClick": "editProfileClick"; "approvePhoneClick": "approvePhoneClick"; "addContragentClick": "addContragentClick"; "deleteContragentClick": "deleteContragentClick"; "addContragentBankAccountClick": "addContragentBankAccountClick"; "deleteContragentBankAccountClick": "deleteContragentBankAccountClick"; "addContragentContactClick": "addContragentContactClick"; "deleteContragentContactClick": "deleteContragentContactClick"; "addDeliveryAddressClick": "addDeliveryAddressClick"; "deleteDeliveryAddressClick": "deleteDeliveryAddressClick"; "addDeliveryAddressContactClick": "addDeliveryAddressContactClick"; "deleteDeliveryAddressContactClick": "deleteDeliveryAddressContactClick"; "addUserContactClick": "addUserContactClick"; "deleteUserContactClick": "deleteUserContactClick"; }, never, never, true, never>;
6169
6233
  }
6170
6234
 
6171
- 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_FAQ_GROUP_QUERY_PARAM, SC_FAQ_PAGE_QUERY_PARAM, 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, ScPaginationLinksComponent, 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, scGetFaqGroupQueryParams, scPasswordConfirmMatchingValidator, stepValidator, tuiDateValueTransformerDefaultProvider };
6235
+ 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_FAQ_GROUP_QUERY_PARAM, 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, ScNewsListComponent, ScNextInputFocusDirective, ScNoindexDirective, ScNoindexWrapperComponent, ScNotifyWhenInStockDialogComponent, ScOrderAccessorDirective, ScOrderDirectionItemsComponent, ScOrderFormComponent, ScOrderItemComponent, ScOrderItemsByDirection, ScOrderItemsListByDirectionsComponent, ScOrderItemsListByStockComponent, ScOrderItemsListComponent, ScPaginationLinksComponent, 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, scGetFaqGroupQueryParams, scPasswordConfirmMatchingValidator, stepValidator, tuiDateValueTransformerDefaultProvider };
6172
6236
  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 };