@snabcentr/client-ui 1.13.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { ScCartItem, ScIUrls, ScProduct, ScUnitsHelper } from '@snabcentr/client-core';
2
+ import { ScCartItem, ScProduct, ScUnitsHelper } from '@snabcentr/client-core';
3
3
  import { TuiPreviewDialogService } from '@taiga-ui/addon-preview';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -8,8 +8,6 @@ import * as i0 from "@angular/core";
8
8
  export declare class ScOrderItemMobileComponent {
9
9
  readonly unitsHelper: ScUnitsHelper;
10
10
  private readonly previewDialogService;
11
- private readonly urls;
12
- private readonly pathImageNotFound;
13
11
  /**
14
12
  * Ссылка на представление спецификации.
15
13
  */
@@ -26,15 +24,17 @@ export declare class ScOrderItemMobileComponent {
26
24
  * Событие нажатия на дополнительные действия.
27
25
  */
28
26
  clickActionsEvent: EventEmitter<void>;
27
+ /**
28
+ * Хелпер для работы с изображениями товара.
29
+ */
30
+ private readonly imageHelper;
29
31
  /**
30
32
  * Инициирует экземпляр класса {@link ScOrderItemMobileComponent}.
31
33
  *
32
34
  * @param unitsHelper Объект-хэлпер для работы со значениями единиц измерения товара.
33
35
  * @param previewDialogService Сервис диалогового окна предварительного просмотра.
34
- * @param urls Список ссылок на разделы backend'a.
35
- * @param pathImageNotFound Путь до изображения 'Товар не найден'.
36
36
  */
37
- constructor(unitsHelper: ScUnitsHelper, previewDialogService: TuiPreviewDialogService, urls: ScIUrls, pathImageNotFound: string);
37
+ constructor(unitsHelper: ScUnitsHelper, previewDialogService: TuiPreviewDialogService);
38
38
  /**
39
39
  * Продукт элемента заказа.
40
40
  */
@@ -45,8 +45,10 @@ export declare class ScOrderItemMobileComponent {
45
45
  showSpecification(): void;
46
46
  /**
47
47
  * Возвращает ссылку на изображение карточки товара.
48
+ *
49
+ * @param product Позиция товара/услуги.
48
50
  */
49
- getCardImage(): string;
51
+ getCardImage(product: ScProduct): string;
50
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderItemMobileComponent, never>;
51
53
  static ɵcmp: i0.ɵɵComponentDeclaration<ScOrderItemMobileComponent, "sc-order-item-mobile", never, { "orderItem": "orderItem"; }, { "clickCardEvent": "clickCardEvent"; "clickActionsEvent": "clickActionsEvent"; }, never, never, false>;
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -19,7 +19,7 @@
19
19
  "@ng-web-apis/intersection-observer": ">=3.2.0",
20
20
  "@ng-web-apis/storage": ">=3.0.6",
21
21
  "@ngneat/until-destroy": ">=9.2.3",
22
- "@snabcentr/client-core": ">=0.18.0",
22
+ "@snabcentr/client-core": "^1.11.0",
23
23
  "ng-recaptcha": ">=10.0.0",
24
24
  "angular8-yandex-maps": ">=14.0.4",
25
25
  "angularx-qrcode": ">=14.0.0",
package/release_notes.tmp CHANGED
@@ -1,10 +1,12 @@
1
- ## 1.13.0 (2024-10-09)
1
+ ## 1.14.0 (2024-10-22)
2
2
 
3
- ### added (1 change)
3
+ ### added, fixed, changed, deprecated, removed, security, performance, other (1 change)
4
4
 
5
- - [#10449: Добавлена капча для формы заказа образцов](web_soft/libs/angular/snabcentr-client-ui-lib@0d0c65d26c52569b21d928e2a7960d4de8b0b6f4) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!169))
5
+ - [#9538: Исправлена вёрстка товаров в корзине, файлов и документов.](web_soft/libs/angular/snabcentr-client-ui-lib@c0e93f408c424f59e1d1def2fc6d2b4583cc0003) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!170))
6
6
 
7
- ### fixed (1 change)
7
+ ### changed (3 changes)
8
8
 
9
- - [#10395: Исправлена ошибка прокрутки за баннер](web_soft/libs/angular/snabcentr-client-ui-lib@621b871f35d97947bfdd88cfce8f2f900406dd4e) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!168))
9
+ - [#9538: Доработана палитра и значки](web_soft/libs/angular/snabcentr-client-ui-lib@38639c15c03116640be7f34de5b5c16d28ea87d8) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!162))
10
+ - [#9538: Обновлены зависимости](web_soft/libs/angular/snabcentr-client-ui-lib@e44ffe88aef088cfde6aebcf060a78d58cfffa98) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!159))
11
+ - [#9538: Обновлены библиотеки Angular до 18 и Taiga-UI до 4.5.0](web_soft/libs/angular/snabcentr-client-ui-lib@2946ae34059d89ffc305aabc0cc3ae21382fffa7) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!155))
10
12
 
@@ -107,7 +107,7 @@
107
107
  }
108
108
 
109
109
  /*
110
- ! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com
110
+ ! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com
111
111
  */
112
112
 
113
113
  /*
@@ -550,7 +550,7 @@ video {
550
550
 
551
551
  /* Make elements with the HTML hidden attribute stay hidden by default */
552
552
 
553
- [hidden] {
553
+ [hidden]:where(:not([hidden="until-found"])) {
554
554
  display: none;
555
555
  }
556
556