@snabcentr/client-ui 3.44.4 → 3.44.5
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.
- package/cart/cart-item/sc-cart-item.component.d.ts +1 -1
- package/catalog/price-card/sc-price-card.component.d.ts +2 -2
- package/catalog/sc-catalog.module.d.ts +14 -14
- package/esm2022/cart/cart-item/sc-cart-item.component.mjs +8 -10
- package/esm2022/catalog/cost-with-discount/cost-with-discount.component.mjs +5 -4
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +30 -12
- package/esm2022/catalog/price-card-inline/sc-price-card-inline.component.mjs +8 -11
- package/esm2022/catalog/sc-catalog.module.mjs +7 -4
- package/esm2022/noindex-wrapper/directives/index.mjs +2 -0
- package/esm2022/noindex-wrapper/directives/sc-noindex.directive.mjs +58 -0
- package/esm2022/noindex-wrapper/index.mjs +3 -0
- package/esm2022/noindex-wrapper/sc-noindex-wrapper.component.mjs +16 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/snabcentr-client-ui.mjs +492 -397
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/noindex-wrapper/directives/index.d.ts +1 -0
- package/noindex-wrapper/directives/sc-noindex.directive.d.ts +29 -0
- package/noindex-wrapper/index.d.ts +2 -0
- package/noindex-wrapper/sc-noindex-wrapper.component.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles/tailwind/tailwind.scss +4 -172
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sc-noindex.directive';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Директива для замены элемента на HTML-комментарий `<!-- noindex -->` или `<!-- /noindex -->` в runtime.
|
|
5
|
+
* Применяется к элементам с атрибутом `data-noindex="true"` или `data-noindex="false"`.
|
|
6
|
+
* Выполняется только в браузере, не выполняется на сервере (SSR).
|
|
7
|
+
* Используется для SEO оптимизации (преимущественно в Yandex).
|
|
8
|
+
*/
|
|
9
|
+
export declare class ScNoindexDirective implements OnInit {
|
|
10
|
+
/**
|
|
11
|
+
* Ссылка на HTML элемент.
|
|
12
|
+
*/
|
|
13
|
+
private readonly elementRef;
|
|
14
|
+
/**
|
|
15
|
+
* Renderer для безопасной работы с DOM.
|
|
16
|
+
*/
|
|
17
|
+
private readonly renderer;
|
|
18
|
+
/**
|
|
19
|
+
* Признак, что приложение запущено на сервере.
|
|
20
|
+
*/
|
|
21
|
+
private readonly isServer;
|
|
22
|
+
/**
|
|
23
|
+
* Инициализация директивы - замена элемента на комментарий.
|
|
24
|
+
* Выполняется только в браузере.
|
|
25
|
+
*/
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScNoindexDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScNoindexDirective, "[data-noindex]", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Компонент-обертка для автоматического добавления тегов noindex вокруг контента.
|
|
4
|
+
* Автоматически добавляет открывающий `<!-- noindex -->` и закрывающий `<!-- /noindex -->` комментарии.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScNoindexWrapperComponent {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScNoindexWrapperComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScNoindexWrapperComponent, "sc-noindex-wrapper", never, {}, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -554,72 +554,10 @@ video {
|
|
|
554
554
|
display: none;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
.container {
|
|
558
|
-
width: 100%;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
@media (min-width: 640px) {
|
|
562
|
-
.container {
|
|
563
|
-
max-width: 640px;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
@media (min-width: 768px) {
|
|
568
|
-
.container {
|
|
569
|
-
max-width: 768px;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
@media (min-width: 1024px) {
|
|
574
|
-
.container {
|
|
575
|
-
max-width: 1024px;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
@media (min-width: 1280px) {
|
|
580
|
-
.container {
|
|
581
|
-
max-width: 1280px;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
@media (min-width: 1536px) {
|
|
586
|
-
.container {
|
|
587
|
-
max-width: 1536px;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
.sr-only {
|
|
592
|
-
position: absolute;
|
|
593
|
-
width: 1px;
|
|
594
|
-
height: 1px;
|
|
595
|
-
padding: 0;
|
|
596
|
-
margin: -1px;
|
|
597
|
-
overflow: hidden;
|
|
598
|
-
clip: rect(0, 0, 0, 0);
|
|
599
|
-
white-space: nowrap;
|
|
600
|
-
border-width: 0;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
557
|
.pointer-events-none {
|
|
604
558
|
pointer-events: none;
|
|
605
559
|
}
|
|
606
560
|
|
|
607
|
-
.\!visible {
|
|
608
|
-
visibility: visible !important;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.visible {
|
|
612
|
-
visibility: visible;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.invisible {
|
|
616
|
-
visibility: hidden;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
.collapse {
|
|
620
|
-
visibility: collapse;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
561
|
.static {
|
|
624
562
|
position: static;
|
|
625
563
|
}
|
|
@@ -640,10 +578,6 @@ video {
|
|
|
640
578
|
position: relative;
|
|
641
579
|
}
|
|
642
580
|
|
|
643
|
-
.sticky {
|
|
644
|
-
position: sticky;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
581
|
.-left-1 {
|
|
648
582
|
left: -0.25rem;
|
|
649
583
|
}
|
|
@@ -684,10 +618,6 @@ video {
|
|
|
684
618
|
top: 50%;
|
|
685
619
|
}
|
|
686
620
|
|
|
687
|
-
.isolate {
|
|
688
|
-
isolation: isolate;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
621
|
.-z-10 {
|
|
692
622
|
z-index: -10;
|
|
693
623
|
}
|
|
@@ -802,10 +732,6 @@ video {
|
|
|
802
732
|
display: block;
|
|
803
733
|
}
|
|
804
734
|
|
|
805
|
-
.inline {
|
|
806
|
-
display: inline;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
735
|
.flex {
|
|
810
736
|
display: flex;
|
|
811
737
|
}
|
|
@@ -822,10 +748,6 @@ video {
|
|
|
822
748
|
display: grid;
|
|
823
749
|
}
|
|
824
750
|
|
|
825
|
-
.contents {
|
|
826
|
-
display: contents;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
751
|
.\!hidden {
|
|
830
752
|
display: none !important;
|
|
831
753
|
}
|
|
@@ -1023,10 +945,6 @@ video {
|
|
|
1023
945
|
flex-shrink: 1;
|
|
1024
946
|
}
|
|
1025
947
|
|
|
1026
|
-
.shrink {
|
|
1027
|
-
flex-shrink: 1;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
948
|
.shrink-0 {
|
|
1031
949
|
flex-shrink: 0;
|
|
1032
950
|
}
|
|
@@ -1080,10 +998,6 @@ video {
|
|
|
1080
998
|
user-select: none;
|
|
1081
999
|
}
|
|
1082
1000
|
|
|
1083
|
-
.resize {
|
|
1084
|
-
resize: both;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
1001
|
.list-decimal {
|
|
1088
1002
|
list-style-type: decimal;
|
|
1089
1003
|
}
|
|
@@ -1247,12 +1161,6 @@ video {
|
|
|
1247
1161
|
overflow: hidden;
|
|
1248
1162
|
}
|
|
1249
1163
|
|
|
1250
|
-
.truncate {
|
|
1251
|
-
overflow: hidden;
|
|
1252
|
-
text-overflow: ellipsis;
|
|
1253
|
-
white-space: nowrap;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
1164
|
.\!whitespace-normal {
|
|
1257
1165
|
white-space: normal !important;
|
|
1258
1166
|
}
|
|
@@ -1659,27 +1567,6 @@ video {
|
|
|
1659
1567
|
font-weight: 500;
|
|
1660
1568
|
}
|
|
1661
1569
|
|
|
1662
|
-
.uppercase {
|
|
1663
|
-
text-transform: uppercase;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
.lowercase {
|
|
1667
|
-
text-transform: lowercase;
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
.capitalize {
|
|
1671
|
-
text-transform: capitalize;
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
|
-
.italic {
|
|
1675
|
-
font-style: italic;
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
.ordinal {
|
|
1679
|
-
--tw-ordinal: ordinal;
|
|
1680
|
-
font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
1570
|
.leading-1\.15 {
|
|
1684
1571
|
line-height: 1.15;
|
|
1685
1572
|
}
|
|
@@ -1752,14 +1639,6 @@ video {
|
|
|
1752
1639
|
text-decoration-line: underline !important;
|
|
1753
1640
|
}
|
|
1754
1641
|
|
|
1755
|
-
.underline {
|
|
1756
|
-
text-decoration-line: underline;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
.overline {
|
|
1760
|
-
text-decoration-line: overline;
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
1642
|
.line-through {
|
|
1764
1643
|
text-decoration-line: line-through;
|
|
1765
1644
|
}
|
|
@@ -1772,12 +1651,6 @@ video {
|
|
|
1772
1651
|
opacity: 0.9;
|
|
1773
1652
|
}
|
|
1774
1653
|
|
|
1775
|
-
.shadow {
|
|
1776
|
-
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1777
|
-
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
1778
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
1654
|
.shadow-sc {
|
|
1782
1655
|
--tw-shadow: 2px 7px 20px 1px rgba(0, 0, 0, 0.1);
|
|
1783
1656
|
--tw-shadow-colored: 2px 7px 20px 1px var(--tw-shadow-color);
|
|
@@ -1800,12 +1673,6 @@ video {
|
|
|
1800
1673
|
outline-style: solid;
|
|
1801
1674
|
}
|
|
1802
1675
|
|
|
1803
|
-
.ring {
|
|
1804
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1805
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1806
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
1676
|
.blur {
|
|
1810
1677
|
--tw-blur: blur(8px);
|
|
1811
1678
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -1821,58 +1688,19 @@ video {
|
|
|
1821
1688
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1822
1689
|
}
|
|
1823
1690
|
|
|
1824
|
-
.invert {
|
|
1825
|
-
--tw-invert: invert(100%);
|
|
1826
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
1691
|
.saturate-0 {
|
|
1830
1692
|
--tw-saturate: saturate(0);
|
|
1831
1693
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1832
1694
|
}
|
|
1833
1695
|
|
|
1834
|
-
.sepia {
|
|
1835
|
-
--tw-sepia: sepia(100%);
|
|
1836
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
1696
|
.filter {
|
|
1840
1697
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1841
1698
|
}
|
|
1842
1699
|
|
|
1843
|
-
.backdrop-filter {
|
|
1844
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1845
|
-
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
.transition {
|
|
1849
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1850
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1851
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
1852
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1853
|
-
transition-duration: 150ms;
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
1700
|
.duration-500 {
|
|
1857
1701
|
transition-duration: 500ms;
|
|
1858
1702
|
}
|
|
1859
1703
|
|
|
1860
|
-
.ease-in {
|
|
1861
|
-
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
.ease-in-out {
|
|
1865
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
.ease-out {
|
|
1869
|
-
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
.\[k\:string\] {
|
|
1873
|
-
k: string;
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
1704
|
.hover\:bg-tui-background-neutral-1:hover {
|
|
1877
1705
|
background-color: var(--tui-background-neutral-1);
|
|
1878
1706
|
}
|
|
@@ -1929,6 +1757,10 @@ video {
|
|
|
1929
1757
|
max-width: none;
|
|
1930
1758
|
}
|
|
1931
1759
|
|
|
1760
|
+
.md\:grid-cols-2 {
|
|
1761
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1932
1764
|
.md\:flex-row {
|
|
1933
1765
|
flex-direction: row;
|
|
1934
1766
|
}
|