@snabcentr/client-ui 4.5.4 → 4.6.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.
Files changed (27) hide show
  1. package/catalog/catalog-filters/sc-catalog-filters.component.d.ts +7 -4
  2. package/configurators/index.d.ts +1 -0
  3. package/configurators/models/index.d.ts +1 -0
  4. package/configurators/models/sandwich_m2/sc-i-sandwich-m2-settings.d.ts +18 -0
  5. package/configurators/sandwich/sc-sandwich.component.d.ts +24 -0
  6. package/configurators/sandwich_m2/index.d.ts +4 -0
  7. package/configurators/sandwich_m2/sandwich-m2-skeleton/sc-sandwich-m2-skeleton.component.d.ts +8 -0
  8. package/configurators/sandwich_m2/sc-i-new-cart-item-sandwich-m2.d.ts +23 -0
  9. package/configurators/sandwich_m2/sc-sandwich-m2-item-submit-state.d.ts +13 -0
  10. package/configurators/sandwich_m2/sc-sandwich-m2.component.d.ts +267 -0
  11. package/esm2022/catalog/catalog-filters/sc-catalog-filters.component.mjs +23 -10
  12. package/esm2022/catalog/price-card/sc-price-card.component.mjs +3 -3
  13. package/esm2022/catalog/price-card-inline/sc-price-card-inline.component.mjs +3 -3
  14. package/esm2022/configurators/index.mjs +2 -1
  15. package/esm2022/configurators/models/index.mjs +2 -1
  16. package/esm2022/configurators/models/sandwich_m2/sc-i-sandwich-m2-settings.mjs +2 -0
  17. package/esm2022/configurators/sandwich/sc-sandwich.component.mjs +57 -6
  18. package/esm2022/configurators/sandwich_m2/index.mjs +5 -0
  19. package/esm2022/configurators/sandwich_m2/sandwich-m2-skeleton/sc-sandwich-m2-skeleton.component.mjs +14 -0
  20. package/esm2022/configurators/sandwich_m2/sc-i-new-cart-item-sandwich-m2.mjs +2 -0
  21. package/esm2022/configurators/sandwich_m2/sc-sandwich-m2-item-submit-state.mjs +5 -0
  22. package/esm2022/configurators/sandwich_m2/sc-sandwich-m2.component.mjs +560 -0
  23. package/fesm2022/snabcentr-client-ui.mjs +638 -18
  24. package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
  25. package/package.json +2 -2
  26. package/release_notes.tmp +9 -2
  27. package/styles/tailwind/tailwind.scss +72 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "4.5.4",
3
+ "version": "4.6.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": "^3.11.1",
16
16
  "@ng-web-apis/intersection-observer": "^4.14.0",
17
17
  "@ng-web-apis/common": "^4.14.0",
18
- "@snabcentr/client-core": "^2.66.3 || ^3.5.0",
18
+ "@snabcentr/client-core": "^3.5.4",
19
19
  "@taiga-ui/addon-charts": "^4.66.0",
20
20
  "@taiga-ui/addon-commerce": "^4.66.0",
21
21
  "@taiga-ui/cdk": "^4.66.0",
package/release_notes.tmp CHANGED
@@ -1,6 +1,13 @@
1
- ## 4.5.4 (2026-04-14)
1
+ ## 4.6.0 (2026-05-20)
2
2
 
3
3
  ### added (1 change)
4
4
 
5
- - [#13016: В конфигураторе сэндвич-панелей добавлена кнопка "Расчитать" для...](web_soft/libs/angular/snabcentr-client-ui-lib@fe650a995ae8f762b5f6a845e9e388c1471f5316) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!400))
5
+ - [#13256: Добавлен конфигуратор распила сэндвич-панелей по площади](web_soft/libs/angular/snabcentr-client-ui-lib@a173fec314ec487466dd26d215ff97c7ac3ef70a) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!406))
6
+
7
+ ### fixed (4 changes)
8
+
9
+ - [#13302: Исправлены тесты](web_soft/libs/angular/snabcentr-client-ui-lib@5bc2ee09c92eb786798a53a7507a5320aef0e961) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!405))
10
+ - [#13302: Добавлена обработка ошибок catchError в ScCatalogFiltersComponent](web_soft/libs/angular/snabcentr-client-ui-lib@435a1301300f4498b209f813f647316090494171) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!404))
11
+ - [#12755: Исправлена ошибка инициализации фильтров. Добавлены фильтры radio](web_soft/libs/angular/snabcentr-client-ui-lib@fc6f7db4a75a37d06390eb76a06e5ff5961434da) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!403))
12
+ - [#13254: Исправлен отступ фильтров, подключены правки по провайдеру категории](web_soft/libs/angular/snabcentr-client-ui-lib@3926e91c0e1c529dd0da10284a7a2d7af33357b6) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!402))
6
13
 
@@ -590,6 +590,10 @@ video {
590
590
  right: -0.25rem;
591
591
  }
592
592
 
593
+ .bottom-0 {
594
+ bottom: 0px;
595
+ }
596
+
593
597
  .left-0 {
594
598
  left: 0px;
595
599
  }
@@ -610,6 +614,10 @@ video {
610
614
  right: 0.5rem;
611
615
  }
612
616
 
617
+ .right-3 {
618
+ right: 0.75rem;
619
+ }
620
+
613
621
  .top-0 {
614
622
  top: 0px;
615
623
  }
@@ -680,6 +688,10 @@ video {
680
688
  margin-left: auto !important;
681
689
  }
682
690
 
691
+ .-mt-1 {
692
+ margin-top: -0.25rem;
693
+ }
694
+
683
695
  .-mt-2 {
684
696
  margin-top: -0.5rem;
685
697
  }
@@ -728,10 +740,18 @@ video {
728
740
  margin-left: 1.25rem;
729
741
  }
730
742
 
743
+ .ml-auto {
744
+ margin-left: auto;
745
+ }
746
+
731
747
  .mr-2 {
732
748
  margin-right: 0.5rem;
733
749
  }
734
750
 
751
+ .mt-1 {
752
+ margin-top: 0.25rem;
753
+ }
754
+
735
755
  .mt-2 {
736
756
  margin-top: 0.5rem;
737
757
  }
@@ -1065,6 +1085,10 @@ video {
1065
1085
  grid-template-columns: repeat(3, minmax(0, 1fr));
1066
1086
  }
1067
1087
 
1088
+ .grid-cols-4 {
1089
+ grid-template-columns: repeat(4, minmax(0, 1fr));
1090
+ }
1091
+
1068
1092
  .flex-col {
1069
1093
  flex-direction: column;
1070
1094
  }
@@ -1129,6 +1153,10 @@ video {
1129
1153
  gap: 0.25rem;
1130
1154
  }
1131
1155
 
1156
+ .gap-1\.5 {
1157
+ gap: 0.375rem;
1158
+ }
1159
+
1132
1160
  .gap-12 {
1133
1161
  gap: 3rem;
1134
1162
  }
@@ -1479,6 +1507,10 @@ video {
1479
1507
  text-align: center;
1480
1508
  }
1481
1509
 
1510
+ .text-right {
1511
+ text-align: right;
1512
+ }
1513
+
1482
1514
  .text-start {
1483
1515
  text-align: start;
1484
1516
  }
@@ -1681,6 +1713,10 @@ video {
1681
1713
  color: var(--tui-background-accent-1);
1682
1714
  }
1683
1715
 
1716
+ .text-tui-status-positive {
1717
+ color: var(--tui-status-positive);
1718
+ }
1719
+
1684
1720
  .text-tui-success-fill {
1685
1721
  color: var(--tui-status-positive);
1686
1722
  }
@@ -1729,6 +1765,10 @@ video {
1729
1765
  opacity: 0.6;
1730
1766
  }
1731
1767
 
1768
+ .opacity-70 {
1769
+ opacity: 0.7;
1770
+ }
1771
+
1732
1772
  .opacity-90 {
1733
1773
  opacity: 0.9;
1734
1774
  }
@@ -1858,6 +1898,10 @@ video {
1858
1898
  grid-template-columns: repeat(2, minmax(0, 1fr));
1859
1899
  }
1860
1900
 
1901
+ .sm\:grid-cols-3 {
1902
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1903
+ }
1904
+
1861
1905
  .sm\:flex-row {
1862
1906
  flex-direction: row;
1863
1907
  }
@@ -1956,6 +2000,10 @@ video {
1956
2000
  order: 2;
1957
2001
  }
1958
2002
 
2003
+ .lg\:\!ml-4 {
2004
+ margin-left: 1rem !important;
2005
+ }
2006
+
1959
2007
  .lg\:mt-5 {
1960
2008
  margin-top: 1.25rem;
1961
2009
  }
@@ -1976,10 +2024,22 @@ video {
1976
2024
  height: 28rem;
1977
2025
  }
1978
2026
 
2027
+ .lg\:\!flex-\[2\] {
2028
+ flex: 2 !important;
2029
+ }
2030
+
2031
+ .lg\:\!flex-\[3\] {
2032
+ flex: 3 !important;
2033
+ }
2034
+
1979
2035
  .lg\:grow {
1980
2036
  flex-grow: 1;
1981
2037
  }
1982
2038
 
2039
+ .lg\:\!grid-cols-\[1fr_2fr\] {
2040
+ grid-template-columns: 1fr 2fr !important;
2041
+ }
2042
+
1983
2043
  .lg\:grid-cols-2 {
1984
2044
  grid-template-columns: repeat(2, minmax(0, 1fr));
1985
2045
  }
@@ -1992,10 +2052,22 @@ video {
1992
2052
  grid-template-rows: repeat(1, minmax(0, 1fr));
1993
2053
  }
1994
2054
 
2055
+ .lg\:\!flex-row {
2056
+ flex-direction: row !important;
2057
+ }
2058
+
1995
2059
  .lg\:flex-row {
1996
2060
  flex-direction: row;
1997
2061
  }
1998
2062
 
2063
+ .lg\:\!items-start {
2064
+ align-items: flex-start !important;
2065
+ }
2066
+
2067
+ .lg\:\!gap-6 {
2068
+ gap: 1.5rem !important;
2069
+ }
2070
+
1999
2071
  .lg\:gap-4 {
2000
2072
  gap: 1rem;
2001
2073
  }