@snabcentr/client-ui 2.4.3 → 2.5.2

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/kit';
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": { "alias": "orderItem"; "required": false; }; }, { "clickCardEvent": "clickCardEvent"; "clickActionsEvent": "clickActionsEvent"; }, never, never, false, never>;
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "2.4.3",
3
+ "version": "2.5.2",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -13,7 +13,7 @@
13
13
  "@maskito/angular": ">=3.1.0",
14
14
  "@maskito/core": ">=3.1.0",
15
15
  "@ng-web-apis/intersection-observer": ">=4.2.1",
16
- "@snabcentr/client-core": ">=2.5.1",
16
+ "@snabcentr/client-core": "^2.7.0",
17
17
  "@taiga-ui/addon-charts": ">=4.10.0",
18
18
  "@taiga-ui/addon-commerce": ">=4.10.0",
19
19
  "@taiga-ui/cdk": ">=4.10.0",
package/release_notes.tmp CHANGED
@@ -1,4 +1,7 @@
1
- ## 2.4.3 (2024-10-14)
1
+ ## 2.5.2 (2024-10-28)
2
2
 
3
- No changes.
3
+ ### changed (2 changes)
4
+
5
+ - [#10531: Доработано представление карточки товара в корзине](web_soft/libs/angular/snabcentr-client-ui-lib@7d85caef5743bfafbc17cd1ef04ac828c37c3967) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!174))
6
+ - [#10522: Доработана вёрстка страницы регистрации. Добавлен обработчик нажатия...](web_soft/libs/angular/snabcentr-client-ui-lib@c0ef830f41910041884acb8a0ec5edce1e65c017) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!173))
4
7
 
@@ -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
 
@@ -851,10 +851,6 @@ video {
851
851
  height: 5rem !important;
852
852
  }
853
853
 
854
- .\!h-3 {
855
- height: 0.75rem !important;
856
- }
857
-
858
854
  .\!h-4 {
859
855
  height: 1rem !important;
860
856
  }
@@ -1407,6 +1403,12 @@ video {
1407
1403
  font-weight: 800;
1408
1404
  }
1409
1405
 
1406
+ .text-body-s {
1407
+ font-size: 0.8125rem;
1408
+ line-height: 1.25rem;
1409
+ font-weight: 500;
1410
+ }
1411
+
1410
1412
  .text-lg {
1411
1413
  font-size: 1.125rem;
1412
1414
  line-height: 1.75rem;
@@ -1442,10 +1444,6 @@ video {
1442
1444
  font-weight: 500;
1443
1445
  }
1444
1446
 
1445
- .font-thin {
1446
- font-weight: 100;
1447
- }
1448
-
1449
1447
  .uppercase {
1450
1448
  text-transform: uppercase;
1451
1449
  }
@@ -1491,10 +1489,6 @@ video {
1491
1489
  color: rgb(0 0 0 / var(--tw-text-opacity));
1492
1490
  }
1493
1491
 
1494
- .text-tui-base-04 {
1495
- color: var(--tui-border-normal);
1496
- }
1497
-
1498
1492
  .text-tui-base-05 {
1499
1493
  color: var(--tui-border-hover);
1500
1494
  }
@@ -1503,10 +1497,6 @@ video {
1503
1497
  color: var(--tui-background-accent-opposite-pressed);
1504
1498
  }
1505
1499
 
1506
- .text-tui-error-fill {
1507
- color: var(--tui-status-negative);
1508
- }
1509
-
1510
1500
  .text-tui-link {
1511
1501
  color: var(--tui-text-action);
1512
1502
  }
@@ -1688,6 +1678,10 @@ video {
1688
1678
  margin-right: 2.25rem;
1689
1679
  }
1690
1680
 
1681
+ .sm\:grid-cols-2 {
1682
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1683
+ }
1684
+
1691
1685
  .sm\:flex-row {
1692
1686
  flex-direction: row;
1693
1687
  }