@snabcentr/client-ui 4.11.8 → 4.15.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.
- package/auth/sc-auth.module.d.ts +2 -1
- package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts +19 -8
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +6 -7
- package/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.d.ts +9 -2
- package/auth/sign-up-form/sc-sign-up-form.component.d.ts +14 -9
- package/catalog/catalog-filters/index.d.ts +3 -0
- package/catalog/catalog-filters/sc-catalog-filters.component.d.ts +99 -0
- package/catalog/catalog-filters/tokens/sc-catalog-products-filters.d.ts +7 -0
- package/catalog/catalog-filters/tokens/sc-catalog-show-products-recursively.d.ts +5 -0
- package/catalog/index.d.ts +1 -0
- package/catalog/input-quantity/sc-input-quantity.component.d.ts +2 -2
- package/configurators/index.d.ts +2 -0
- package/configurators/models/index.d.ts +2 -0
- package/configurators/models/sandwich/sc-i-configurator-search-product-sandwich.d.ts +22 -0
- package/configurators/models/sandwich/sc-i-sandwich-settings.d.ts +18 -0
- package/configurators/sandwich/index.d.ts +3 -0
- package/configurators/sandwich/sandwich-skeleton/sc-sandwich-skeleton.component.d.ts +8 -0
- package/configurators/sandwich/sc-i-new-cart-item-sandwich.d.ts +14 -0
- package/configurators/sandwich/sc-sandwich.component.d.ts +146 -0
- package/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.d.ts +21 -24
- package/contragents/new-contragent-form/sc-new-contragent-form.component.d.ts +12 -18
- package/directives/select-on-focusin/sc-select-on-focusin.directive.d.ts +1 -1
- package/esm2022/auth/sc-auth.module.mjs +11 -5
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +37 -18
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +20 -18
- package/esm2022/auth/sc-simple-sign-up-form/sc-simple-sign-up-form.component.mjs +20 -5
- package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +37 -36
- package/esm2022/cart/add-or-editing-cart-item-dialog/add-or-editing-cart-item-form/sc-add-or-editing-cart-item-form.component.mjs +4 -4
- package/esm2022/cart/cart-item/sc-cart-item.component.mjs +3 -3
- package/esm2022/catalog/catalog-filters/index.mjs +4 -0
- package/esm2022/catalog/catalog-filters/sc-catalog-filters.component.mjs +202 -0
- package/esm2022/catalog/catalog-filters/tokens/sc-catalog-products-filters.mjs +10 -0
- package/esm2022/catalog/catalog-filters/tokens/sc-catalog-show-products-recursively.mjs +6 -0
- package/esm2022/catalog/category-card/sc-category-card.component.mjs +3 -3
- package/esm2022/catalog/index.mjs +2 -1
- package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +19 -7
- package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +3 -3
- package/esm2022/configurators/index.mjs +3 -0
- package/esm2022/configurators/models/index.mjs +3 -0
- package/esm2022/configurators/models/sandwich/sc-i-configurator-search-product-sandwich.mjs +2 -0
- package/esm2022/configurators/models/sandwich/sc-i-sandwich-settings.mjs +2 -0
- package/esm2022/configurators/sandwich/index.mjs +4 -0
- package/esm2022/configurators/sandwich/sandwich-skeleton/sc-sandwich-skeleton.component.mjs +14 -0
- package/esm2022/configurators/sandwich/sc-i-new-cart-item-sandwich.mjs +2 -0
- package/esm2022/configurators/sandwich/sc-sandwich.component.mjs +322 -0
- package/esm2022/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +38 -50
- package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +28 -46
- package/esm2022/directives/select-on-focusin/sc-select-on-focusin.directive.mjs +3 -3
- package/esm2022/methods/index.mjs +2 -0
- package/esm2022/methods/sc-get-current-route.mjs +14 -0
- package/esm2022/noindex-wrapper/sc-noindex-wrapper.component.mjs +5 -3
- package/esm2022/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.mjs +3 -2
- package/esm2022/providers/index.mjs +3 -1
- package/esm2022/providers/sc-category.providers.mjs +43 -0
- package/esm2022/providers/sc-debounce-time-default.mjs +9 -0
- package/esm2022/public-api.mjs +3 -1
- package/esm2022/samples/preview-sample/sc-preview-sample.component.mjs +3 -3
- package/esm2022/user/user-managers/sc-user-managers.component.mjs +22 -24
- package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +14 -14
- package/fesm2022/snabcentr-client-ui.mjs +976 -386
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/methods/index.d.ts +1 -0
- package/methods/sc-get-current-route.d.ts +8 -0
- package/package.json +19 -19
- package/providers/index.d.ts +2 -0
- package/providers/sc-category.providers.d.ts +11 -0
- package/providers/sc-debounce-time-default.d.ts +5 -0
- package/public-api.d.ts +2 -0
- package/styles/tailwind/tailwind.scss +76 -4
- package/user/user-managers/sc-user-managers.component.d.ts +7 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sc-get-current-route';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
/**
|
|
3
|
+
* Возвращает текущий маршрут.
|
|
4
|
+
* Функция проходит по дереву маршрутов начиная с переданного route и возвращает самый вложенный активный маршрут.
|
|
5
|
+
*
|
|
6
|
+
* @param route Данные маршрута, от которого ищем текущий маршрут в приложении.
|
|
7
|
+
*/
|
|
8
|
+
export declare const scGetCurrentRoute: (route: ActivatedRoute) => ActivatedRoute;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snabcentr/client-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"author": "Snabcentr Ltd.",
|
|
5
5
|
"repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
|
|
6
6
|
"license": "Commercial",
|
|
@@ -11,27 +11,27 @@
|
|
|
11
11
|
"@angular/core": "^18.2.12",
|
|
12
12
|
"@angular/forms": "^18.2.12",
|
|
13
13
|
"@angular/router": "^18.2.12",
|
|
14
|
-
"@maskito/angular": "^3.
|
|
15
|
-
"@maskito/core": "^3.
|
|
16
|
-
"@ng-web-apis/intersection-observer": "^4.
|
|
17
|
-
"@ng-web-apis/common": "^4.
|
|
18
|
-
"@snabcentr/client-core": "^3.
|
|
19
|
-
"@taiga-ui/addon-charts": "^4.
|
|
20
|
-
"@taiga-ui/addon-commerce": "^4.
|
|
21
|
-
"@taiga-ui/cdk": "^4.
|
|
22
|
-
"@taiga-ui/core": "^4.
|
|
23
|
-
"@taiga-ui/event-plugins": "^4.
|
|
24
|
-
"@taiga-ui/icons": "^4.
|
|
25
|
-
"@taiga-ui/kit": "^4.
|
|
26
|
-
"@taiga-ui/layout": "^4.
|
|
27
|
-
"@taiga-ui/legacy": "^4.
|
|
28
|
-
"@taiga-ui/i18n": "^4.
|
|
14
|
+
"@maskito/angular": "^3.11.1",
|
|
15
|
+
"@maskito/core": "^3.11.1",
|
|
16
|
+
"@ng-web-apis/intersection-observer": "^4.14.0",
|
|
17
|
+
"@ng-web-apis/common": "^4.14.0",
|
|
18
|
+
"@snabcentr/client-core": "^3.9.0",
|
|
19
|
+
"@taiga-ui/addon-charts": "^4.66.0",
|
|
20
|
+
"@taiga-ui/addon-commerce": "^4.66.0",
|
|
21
|
+
"@taiga-ui/cdk": "^4.66.0",
|
|
22
|
+
"@taiga-ui/core": "^4.66.0",
|
|
23
|
+
"@taiga-ui/event-plugins": "^4.7.0",
|
|
24
|
+
"@taiga-ui/icons": "^4.66.0",
|
|
25
|
+
"@taiga-ui/kit": "^4.66.0",
|
|
26
|
+
"@taiga-ui/layout": "^4.66.0",
|
|
27
|
+
"@taiga-ui/legacy": "^4.66.0",
|
|
28
|
+
"@taiga-ui/i18n": "^4.66.0",
|
|
29
29
|
"@taiga-ui/polymorpheus": "^4.7.4",
|
|
30
|
-
"@taiga-ui/experimental": "^4.
|
|
31
|
-
"@taiga-ui/styles": "^4.
|
|
30
|
+
"@taiga-ui/experimental": "^4.66.0",
|
|
31
|
+
"@taiga-ui/styles": "^4.66.0",
|
|
32
32
|
"ng-recaptcha-2": "^14.0.0",
|
|
33
33
|
"angular8-yandex-maps": "^18.2.0",
|
|
34
|
-
"libphonenumber-js": "^1.
|
|
34
|
+
"libphonenumber-js": "^1.12.7",
|
|
35
35
|
"angularx-qrcode": "^18.0.2",
|
|
36
36
|
"lodash-es": "^4.17.21",
|
|
37
37
|
"rxjs": "^7.8.1",
|
package/providers/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './sc-verification-code-timeout';
|
|
2
|
+
export * from './sc-category.providers';
|
|
2
3
|
export * from './sc-allow-select-terminated';
|
|
3
4
|
export * from './sc-help-notification-limit';
|
|
4
5
|
export * from './sc-help-notification-close';
|
|
@@ -10,3 +11,4 @@ export * from './sc-date-formatter';
|
|
|
10
11
|
export * from './sc-date-value-transformer';
|
|
11
12
|
export * from './sc-notify-when-in-stock-required-fields';
|
|
12
13
|
export * from './sc-banner-duration';
|
|
14
|
+
export * from './sc-debounce-time-default';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { ScCategory } from '@snabcentr/client-core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
/**
|
|
5
|
+
* Токен потока данных о категории.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SC_CATEGORY_INFO: InjectionToken<Observable<ScCategory | null>>;
|
|
8
|
+
/**
|
|
9
|
+
* Провайдеры потока данных о категории.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SC_CATEGORY_PROVIDERS: Provider[];
|
package/public-api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './accordion';
|
|
|
5
5
|
export * from './banner';
|
|
6
6
|
export * from './cart';
|
|
7
7
|
export * from './catalog';
|
|
8
|
+
export * from './configurators';
|
|
8
9
|
export * from './contragents';
|
|
9
10
|
export * from './contacts';
|
|
10
11
|
export * from './delivery-address';
|
|
@@ -22,6 +23,7 @@ export * from './order';
|
|
|
22
23
|
export * from './pages';
|
|
23
24
|
export * from './pipes';
|
|
24
25
|
export * from './samples';
|
|
26
|
+
export * from './methods';
|
|
25
27
|
export * from './providers';
|
|
26
28
|
export * from './feedback';
|
|
27
29
|
export * from './qrcode';
|
|
@@ -647,11 +647,26 @@ video {
|
|
|
647
647
|
margin-right: 0.5rem;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
+
.my-1 {
|
|
651
|
+
margin-top: 0.25rem;
|
|
652
|
+
margin-bottom: 0.25rem;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.my-1\.5 {
|
|
656
|
+
margin-top: 0.375rem;
|
|
657
|
+
margin-bottom: 0.375rem;
|
|
658
|
+
}
|
|
659
|
+
|
|
650
660
|
.my-2 {
|
|
651
661
|
margin-top: 0.5rem;
|
|
652
662
|
margin-bottom: 0.5rem;
|
|
653
663
|
}
|
|
654
664
|
|
|
665
|
+
.my-2\.5 {
|
|
666
|
+
margin-top: 0.625rem;
|
|
667
|
+
margin-bottom: 0.625rem;
|
|
668
|
+
}
|
|
669
|
+
|
|
655
670
|
.my-4 {
|
|
656
671
|
margin-top: 1rem;
|
|
657
672
|
margin-bottom: 1rem;
|
|
@@ -681,6 +696,10 @@ video {
|
|
|
681
696
|
margin-bottom: 1rem;
|
|
682
697
|
}
|
|
683
698
|
|
|
699
|
+
.mb-5 {
|
|
700
|
+
margin-bottom: 1.25rem;
|
|
701
|
+
}
|
|
702
|
+
|
|
684
703
|
.mb-8 {
|
|
685
704
|
margin-bottom: 2rem;
|
|
686
705
|
}
|
|
@@ -717,6 +736,10 @@ video {
|
|
|
717
736
|
margin-top: 1rem;
|
|
718
737
|
}
|
|
719
738
|
|
|
739
|
+
.mt-6 {
|
|
740
|
+
margin-top: 1.5rem;
|
|
741
|
+
}
|
|
742
|
+
|
|
720
743
|
.mt-8 {
|
|
721
744
|
margin-top: 2rem;
|
|
722
745
|
}
|
|
@@ -748,6 +771,10 @@ video {
|
|
|
748
771
|
display: grid;
|
|
749
772
|
}
|
|
750
773
|
|
|
774
|
+
.contents {
|
|
775
|
+
display: contents;
|
|
776
|
+
}
|
|
777
|
+
|
|
751
778
|
.\!hidden {
|
|
752
779
|
display: none !important;
|
|
753
780
|
}
|
|
@@ -812,6 +839,10 @@ video {
|
|
|
812
839
|
height: 3rem;
|
|
813
840
|
}
|
|
814
841
|
|
|
842
|
+
.h-2 {
|
|
843
|
+
height: 0.5rem;
|
|
844
|
+
}
|
|
845
|
+
|
|
815
846
|
.h-3 {
|
|
816
847
|
height: 0.75rem;
|
|
817
848
|
}
|
|
@@ -820,10 +851,18 @@ video {
|
|
|
820
851
|
height: 1rem;
|
|
821
852
|
}
|
|
822
853
|
|
|
854
|
+
.h-5 {
|
|
855
|
+
height: 1.25rem;
|
|
856
|
+
}
|
|
857
|
+
|
|
823
858
|
.h-56 {
|
|
824
859
|
height: 14rem;
|
|
825
860
|
}
|
|
826
861
|
|
|
862
|
+
.h-6 {
|
|
863
|
+
height: 1.5rem;
|
|
864
|
+
}
|
|
865
|
+
|
|
827
866
|
.h-\[19em\] {
|
|
828
867
|
height: 19em;
|
|
829
868
|
}
|
|
@@ -856,6 +895,14 @@ video {
|
|
|
856
895
|
width: auto !important;
|
|
857
896
|
}
|
|
858
897
|
|
|
898
|
+
.w-1\/2 {
|
|
899
|
+
width: 50%;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.w-1\/3 {
|
|
903
|
+
width: 33.333333%;
|
|
904
|
+
}
|
|
905
|
+
|
|
859
906
|
.w-1\/4 {
|
|
860
907
|
width: 25%;
|
|
861
908
|
}
|
|
@@ -868,6 +915,10 @@ video {
|
|
|
868
915
|
width: 3rem;
|
|
869
916
|
}
|
|
870
917
|
|
|
918
|
+
.w-2\/3 {
|
|
919
|
+
width: 66.666667%;
|
|
920
|
+
}
|
|
921
|
+
|
|
871
922
|
.w-24 {
|
|
872
923
|
width: 6rem;
|
|
873
924
|
}
|
|
@@ -1010,6 +1061,10 @@ video {
|
|
|
1010
1061
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1011
1062
|
}
|
|
1012
1063
|
|
|
1064
|
+
.grid-cols-3 {
|
|
1065
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1013
1068
|
.flex-col {
|
|
1014
1069
|
flex-direction: column;
|
|
1015
1070
|
}
|
|
@@ -1034,6 +1089,10 @@ video {
|
|
|
1034
1089
|
align-items: flex-start;
|
|
1035
1090
|
}
|
|
1036
1091
|
|
|
1092
|
+
.items-end {
|
|
1093
|
+
align-items: flex-end;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1037
1096
|
.\!items-center {
|
|
1038
1097
|
align-items: center !important;
|
|
1039
1098
|
}
|
|
@@ -1169,10 +1228,6 @@ video {
|
|
|
1169
1228
|
white-space: nowrap;
|
|
1170
1229
|
}
|
|
1171
1230
|
|
|
1172
|
-
.break-all {
|
|
1173
|
-
word-break: break-all;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
1231
|
.\!rounded-xl {
|
|
1177
1232
|
border-radius: 0.75rem !important;
|
|
1178
1233
|
}
|
|
@@ -1185,6 +1240,10 @@ video {
|
|
|
1185
1240
|
border-radius: 9999px;
|
|
1186
1241
|
}
|
|
1187
1242
|
|
|
1243
|
+
.rounded-sm {
|
|
1244
|
+
border-radius: 0.125rem;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1188
1247
|
.rounded-tui-radius-m {
|
|
1189
1248
|
border-radius: var(--tui-radius-m);
|
|
1190
1249
|
}
|
|
@@ -1252,6 +1311,10 @@ video {
|
|
|
1252
1311
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
|
|
1253
1312
|
}
|
|
1254
1313
|
|
|
1314
|
+
.bg-tui-base-01 {
|
|
1315
|
+
background-color: var(--tui-background-base);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1255
1318
|
.bg-tui-base-02 {
|
|
1256
1319
|
background-color: var(--tui-background-base-alt);
|
|
1257
1320
|
}
|
|
@@ -1538,6 +1601,11 @@ video {
|
|
|
1538
1601
|
line-height: 1.25rem;
|
|
1539
1602
|
}
|
|
1540
1603
|
|
|
1604
|
+
.text-xl {
|
|
1605
|
+
font-size: 1.25rem;
|
|
1606
|
+
line-height: 1.75rem;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1541
1609
|
.text-xs {
|
|
1542
1610
|
font-size: 0.75rem;
|
|
1543
1611
|
line-height: 1rem;
|
|
@@ -1631,6 +1699,10 @@ video {
|
|
|
1631
1699
|
color: var(--tui-text-primary);
|
|
1632
1700
|
}
|
|
1633
1701
|
|
|
1702
|
+
.text-tui-text-secondary {
|
|
1703
|
+
color: var(--tui-text-secondary);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1634
1706
|
.text-tui-text-tertiary {
|
|
1635
1707
|
color: var(--tui-text-tertiary);
|
|
1636
1708
|
}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ScIManager
|
|
2
|
+
import { ScIManager } from '@snabcentr/client-core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Компонент персональных менеджеров пользователя.
|
|
7
7
|
*/
|
|
8
8
|
export declare class ScUserManagersComponent {
|
|
9
|
-
private readonly userService;
|
|
10
|
-
/**
|
|
11
|
-
* Персональные менеджеры пользователя.
|
|
12
|
-
*/
|
|
13
|
-
readonly managers$: Observable<ScIManager[] | undefined>;
|
|
14
9
|
/**
|
|
15
10
|
* Событие нажатия на кнопку QR кода.
|
|
16
11
|
*/
|
|
17
12
|
readonly qrClickEvent: EventEmitter<ScIManager>;
|
|
18
13
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @param userService Сервис данных о пользователе.
|
|
14
|
+
* Сервис данных о пользователе.
|
|
22
15
|
*/
|
|
23
|
-
|
|
16
|
+
private readonly userService;
|
|
17
|
+
/**
|
|
18
|
+
* Персональные менеджеры пользователя.
|
|
19
|
+
*/
|
|
20
|
+
readonly managers$: Observable<ScIManager[] | undefined>;
|
|
24
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScUserManagersComponent, never>;
|
|
25
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScUserManagersComponent, "sc-user-managers", never, {}, { "qrClickEvent": "qrClickEvent"; }, never, never, false, never>;
|
|
26
23
|
}
|