@snabcentr/client-ui 2.4.1 → 2.5.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.
Potentially problematic release.
This version of @snabcentr/client-ui might be problematic. Click here for more details.
- package/cart/cart-item-mobile/sc-cart-item-mobile.component.d.ts +9 -5
- package/esm2022/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +15 -17
- package/esm2022/files/file-tree-item/file-tree-item.component.mjs +2 -2
- package/esm2022/files/files-and-documents/files-and-documents.component.mjs +3 -3
- package/esm2022/order/order-item-mobile/sc-order-item-mobile.component.mjs +15 -19
- package/fesm2022/snabcentr-client-ui.mjs +28 -34
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/order/order-item-mobile/sc-order-item-mobile.component.d.ts +9 -7
- package/package.json +7 -9
- package/release_notes.tmp +4 -2
- package/styles/tailwind/tailwind.scss +6 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
|
-
import { ScCartItem,
|
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
|
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.
|
3
|
+
"version": "2.5.0",
|
4
4
|
"author": "Snabcentr Ltd.",
|
5
5
|
"repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
|
6
6
|
"license": "Commercial",
|
@@ -10,12 +10,10 @@
|
|
10
10
|
"@angular/compiler": ">=18.2.0",
|
11
11
|
"@angular/core": ">=18.2.0",
|
12
12
|
"@angular/forms": ">=18.2.0",
|
13
|
-
"@maskito/angular": ">=3.0
|
14
|
-
"@maskito/core": ">=3.0
|
15
|
-
"@ng-web-apis/common": ">=4.2.1",
|
13
|
+
"@maskito/angular": ">=3.1.0",
|
14
|
+
"@maskito/core": ">=3.1.0",
|
16
15
|
"@ng-web-apis/intersection-observer": ">=4.2.1",
|
17
|
-
"@
|
18
|
-
"@snabcentr/client-core": ">=2.5.1",
|
16
|
+
"@snabcentr/client-core": "^2.7.0",
|
19
17
|
"@taiga-ui/addon-charts": ">=4.10.0",
|
20
18
|
"@taiga-ui/addon-commerce": ">=4.10.0",
|
21
19
|
"@taiga-ui/cdk": ">=4.10.0",
|
@@ -30,12 +28,12 @@
|
|
30
28
|
"ng-recaptcha-2": ">=14.0.0",
|
31
29
|
"angular8-yandex-maps": ">=18.2.0",
|
32
30
|
"angularx-qrcode": ">=18.0.1",
|
33
|
-
"rxjs": ">=7.8.
|
31
|
+
"rxjs": ">=7.8.0",
|
34
32
|
"schema-dts": ">=1.1.2",
|
35
|
-
"zone.js": ">=0.14.
|
33
|
+
"zone.js": ">=0.14.10"
|
36
34
|
},
|
37
35
|
"dependencies": {
|
38
|
-
"tslib": ">=2.
|
36
|
+
"tslib": ">=2.3.0"
|
39
37
|
},
|
40
38
|
"sideEffects": false,
|
41
39
|
"module": "fesm2022/snabcentr-client-ui.mjs",
|
package/release_notes.tmp
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
## 2.
|
1
|
+
## 2.5.0 (2024-10-22)
|
2
2
|
|
3
|
-
|
3
|
+
### changed (1 change)
|
4
|
+
|
5
|
+
- [#10510: Доработано отображение изображений товаров](web_soft/libs/angular/snabcentr-client-ui-lib@f577f0ae7c3d13e495ac60484d1d03c466215785) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!171))
|
4
6
|
|
@@ -107,7 +107,7 @@
|
|
107
107
|
}
|
108
108
|
|
109
109
|
/*
|
110
|
-
! tailwindcss v3.4.
|
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
|
|
@@ -1499,6 +1499,10 @@ video {
|
|
1499
1499
|
color: var(--tui-border-hover);
|
1500
1500
|
}
|
1501
1501
|
|
1502
|
+
.text-tui-base-07 {
|
1503
|
+
color: var(--tui-background-accent-opposite-pressed);
|
1504
|
+
}
|
1505
|
+
|
1502
1506
|
.text-tui-error-fill {
|
1503
1507
|
color: var(--tui-status-negative);
|
1504
1508
|
}
|