@snabcentr/client-ui 2.4.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cart/cart-item-mobile/sc-cart-item-mobile.component.d.ts +9 -5
- package/catalog/hover-image-carousel/hover-image-carousel.component.d.ts +24 -0
- package/catalog/price-card/sc-price-card.component.d.ts +1 -5
- package/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.d.ts +3 -3
- package/catalog/sc-catalog.module.d.ts +2 -1
- package/directives/abstract-price-card/abstract-sc-price-card.directive.d.ts +6 -0
- package/esm2022/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +15 -17
- package/esm2022/catalog/hover-image-carousel/hover-image-carousel.component.mjs +45 -0
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +7 -18
- package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +4 -3
- package/esm2022/catalog/sc-catalog.module.mjs +13 -4
- package/esm2022/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +3 -3
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +10 -1
- package/esm2022/order/order-item-mobile/sc-order-item-mobile.component.mjs +15 -19
- package/fesm2022/snabcentr-client-ui.mjs +93 -52
- 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 +2 -2
- package/release_notes.tmp +1 -1
- package/styles/tailwind/tailwind.scss +44 -74
@@ -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": "
|
3
|
+
"version": "3.0.0",
|
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": "
|
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
@@ -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
|
|
@@ -692,10 +692,6 @@ video {
|
|
692
692
|
top: 50%;
|
693
693
|
}
|
694
694
|
|
695
|
-
.top-2 {
|
696
|
-
top: 0.5rem;
|
697
|
-
}
|
698
|
-
|
699
695
|
.isolate {
|
700
696
|
isolation: isolate;
|
701
697
|
}
|
@@ -716,10 +712,6 @@ video {
|
|
716
712
|
margin: -0.5rem !important;
|
717
713
|
}
|
718
714
|
|
719
|
-
.m-1 {
|
720
|
-
margin: 0.25rem;
|
721
|
-
}
|
722
|
-
|
723
715
|
.my-2 {
|
724
716
|
margin-top: 0.5rem;
|
725
717
|
margin-bottom: 0.5rem;
|
@@ -766,8 +758,8 @@ video {
|
|
766
758
|
margin-right: auto;
|
767
759
|
}
|
768
760
|
|
769
|
-
.mt-
|
770
|
-
margin-top: 0.
|
761
|
+
.mt-1 {
|
762
|
+
margin-top: 0.25rem;
|
771
763
|
}
|
772
764
|
|
773
765
|
.line-clamp-3 {
|
@@ -817,11 +809,6 @@ video {
|
|
817
809
|
display: none;
|
818
810
|
}
|
819
811
|
|
820
|
-
.\!size-6 {
|
821
|
-
width: 1.5rem !important;
|
822
|
-
height: 1.5rem !important;
|
823
|
-
}
|
824
|
-
|
825
812
|
.size-20 {
|
826
813
|
width: 5rem;
|
827
814
|
height: 5rem;
|
@@ -851,10 +838,6 @@ video {
|
|
851
838
|
height: 5rem !important;
|
852
839
|
}
|
853
840
|
|
854
|
-
.\!h-3 {
|
855
|
-
height: 0.75rem !important;
|
856
|
-
}
|
857
|
-
|
858
841
|
.\!h-4 {
|
859
842
|
height: 1rem !important;
|
860
843
|
}
|
@@ -879,10 +862,6 @@ video {
|
|
879
862
|
height: 0.75rem;
|
880
863
|
}
|
881
864
|
|
882
|
-
.h-3\/5 {
|
883
|
-
height: 60%;
|
884
|
-
}
|
885
|
-
|
886
865
|
.h-4 {
|
887
866
|
height: 1rem;
|
888
867
|
}
|
@@ -968,10 +947,6 @@ video {
|
|
968
947
|
width: 100%;
|
969
948
|
}
|
970
949
|
|
971
|
-
.min-w-40 {
|
972
|
-
min-width: 10rem;
|
973
|
-
}
|
974
|
-
|
975
950
|
.min-w-72 {
|
976
951
|
min-width: 18rem;
|
977
952
|
}
|
@@ -1182,10 +1157,6 @@ video {
|
|
1182
1157
|
border-radius: 0.25rem;
|
1183
1158
|
}
|
1184
1159
|
|
1185
|
-
.rounded-lg {
|
1186
|
-
border-radius: 0.5rem;
|
1187
|
-
}
|
1188
|
-
|
1189
1160
|
.rounded-tui-radius-m {
|
1190
1161
|
border-radius: var(--tui-radius-m);
|
1191
1162
|
}
|
@@ -1198,16 +1169,6 @@ video {
|
|
1198
1169
|
border-radius: 0.75rem;
|
1199
1170
|
}
|
1200
1171
|
|
1201
|
-
.rounded-b {
|
1202
|
-
border-bottom-right-radius: 0.25rem;
|
1203
|
-
border-bottom-left-radius: 0.25rem;
|
1204
|
-
}
|
1205
|
-
|
1206
|
-
.rounded-t {
|
1207
|
-
border-top-left-radius: 0.25rem;
|
1208
|
-
border-top-right-radius: 0.25rem;
|
1209
|
-
}
|
1210
|
-
|
1211
1172
|
.border {
|
1212
1173
|
border-width: 1px;
|
1213
1174
|
}
|
@@ -1289,8 +1250,9 @@ video {
|
|
1289
1250
|
background-repeat: no-repeat;
|
1290
1251
|
}
|
1291
1252
|
|
1292
|
-
|
1293
|
-
|
1253
|
+
.object-contain {
|
1254
|
+
-o-object-fit: contain;
|
1255
|
+
object-fit: contain;
|
1294
1256
|
}
|
1295
1257
|
|
1296
1258
|
.object-cover {
|
@@ -1385,6 +1347,11 @@ video {
|
|
1385
1347
|
line-height: 1.25rem !important;
|
1386
1348
|
}
|
1387
1349
|
|
1350
|
+
.\!text-xl {
|
1351
|
+
font-size: 1.25rem !important;
|
1352
|
+
line-height: 1.75rem !important;
|
1353
|
+
}
|
1354
|
+
|
1388
1355
|
.\!text-xs {
|
1389
1356
|
font-size: 0.75rem !important;
|
1390
1357
|
line-height: 1rem !important;
|
@@ -1407,6 +1374,30 @@ video {
|
|
1407
1374
|
font-weight: 800;
|
1408
1375
|
}
|
1409
1376
|
|
1377
|
+
.text-body-s {
|
1378
|
+
font-size: 0.8125rem;
|
1379
|
+
line-height: 1.25rem;
|
1380
|
+
font-weight: 500;
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
.text-body-xl {
|
1384
|
+
font-size: 1.1875rem;
|
1385
|
+
line-height: 1.75rem;
|
1386
|
+
font-weight: 500;
|
1387
|
+
}
|
1388
|
+
|
1389
|
+
.text-body-xs {
|
1390
|
+
font-size: 0.6875rem;
|
1391
|
+
line-height: 1rem;
|
1392
|
+
font-weight: 500;
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
.text-body-xs-bold {
|
1396
|
+
font-size: 0.6875rem;
|
1397
|
+
line-height: 1rem;
|
1398
|
+
font-weight: 800;
|
1399
|
+
}
|
1400
|
+
|
1410
1401
|
.text-lg {
|
1411
1402
|
font-size: 1.125rem;
|
1412
1403
|
line-height: 1.75rem;
|
@@ -1426,6 +1417,10 @@ video {
|
|
1426
1417
|
font-weight: 700 !important;
|
1427
1418
|
}
|
1428
1419
|
|
1420
|
+
.\!font-extrabold {
|
1421
|
+
font-weight: 800 !important;
|
1422
|
+
}
|
1423
|
+
|
1429
1424
|
.\!font-medium {
|
1430
1425
|
font-weight: 500 !important;
|
1431
1426
|
}
|
@@ -1503,18 +1498,10 @@ video {
|
|
1503
1498
|
color: var(--tui-background-accent-opposite-pressed);
|
1504
1499
|
}
|
1505
1500
|
|
1506
|
-
.text-tui-error-fill {
|
1507
|
-
color: var(--tui-status-negative);
|
1508
|
-
}
|
1509
|
-
|
1510
1501
|
.text-tui-link {
|
1511
1502
|
color: var(--tui-text-action);
|
1512
1503
|
}
|
1513
1504
|
|
1514
|
-
.text-tui-negative {
|
1515
|
-
color: var(--tui-text-negative);
|
1516
|
-
}
|
1517
|
-
|
1518
1505
|
.text-tui-primary {
|
1519
1506
|
color: var(--tui-background-accent-1);
|
1520
1507
|
}
|
@@ -1535,11 +1522,6 @@ video {
|
|
1535
1522
|
color: var(--tui-text-tertiary);
|
1536
1523
|
}
|
1537
1524
|
|
1538
|
-
.text-white {
|
1539
|
-
--tw-text-opacity: 1;
|
1540
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
1541
|
-
}
|
1542
|
-
|
1543
1525
|
.underline {
|
1544
1526
|
text-decoration-line: underline;
|
1545
1527
|
}
|
@@ -1556,24 +1538,16 @@ video {
|
|
1556
1538
|
opacity: 0.5;
|
1557
1539
|
}
|
1558
1540
|
|
1541
|
+
.opacity-90 {
|
1542
|
+
opacity: 0.9;
|
1543
|
+
}
|
1544
|
+
|
1559
1545
|
.shadow {
|
1560
1546
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
1561
1547
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
1562
1548
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
1563
1549
|
}
|
1564
1550
|
|
1565
|
-
.shadow-md {
|
1566
|
-
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
1567
|
-
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
1568
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
1569
|
-
}
|
1570
|
-
|
1571
|
-
.shadow-sc-1 {
|
1572
|
-
--tw-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.10);
|
1573
|
-
--tw-shadow-colored: 0px 5px 20px 0px var(--tw-shadow-color);
|
1574
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
1575
|
-
}
|
1576
|
-
|
1577
1551
|
.shadow-sc-2 {
|
1578
1552
|
--tw-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.10);
|
1579
1553
|
--tw-shadow-colored: 0px 2px 3px 0px var(--tw-shadow-color);
|
@@ -1679,10 +1653,6 @@ video {
|
|
1679
1653
|
k: string;
|
1680
1654
|
}
|
1681
1655
|
|
1682
|
-
.group:hover .group-hover\:block {
|
1683
|
-
display: block;
|
1684
|
-
}
|
1685
|
-
|
1686
1656
|
@media (min-width: 640px) {
|
1687
1657
|
.sm\:mr-9 {
|
1688
1658
|
margin-right: 2.25rem;
|