@snabcentr/client-ui 0.11.4 → 0.14.1
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/auth/sc-sign-in-form/sc-sign-in-form.component.d.ts +8 -4
- package/banner/sc-banner.component.d.ts +7 -3
- package/cart/cart-item-mobile/sc-cart-item-mobile.component.d.ts +1 -1
- package/catalog/categories-list/sc-categories-list.component.d.ts +6 -0
- package/contacts/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.d.ts +47 -0
- package/contacts/index.d.ts +2 -0
- package/contacts/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.d.ts +55 -0
- package/contacts/sc-contacts.module.d.ts +11 -5
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +2 -3
- package/contragents/contragents-accordion/sc-contragents-accordion.component.d.ts +1 -1
- package/esm2020/accordion/sc-accordion-content.directive.mjs +2 -2
- package/esm2020/accordion/sc-accordion.component.mjs +1 -1
- package/esm2020/accordion/sc-accordion.module.mjs +2 -2
- package/esm2020/auth/constants/phone-approve-code-mask.mjs +2 -2
- package/esm2020/auth/sc-auth.module.mjs +3 -3
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +2 -2
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +2 -2
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +14 -5
- package/esm2020/banner/sc-banner.component.mjs +17 -8
- package/esm2020/banner/sc-banner.module.mjs +2 -2
- package/esm2020/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +2 -2
- package/esm2020/cart/sc-cart.module.mjs +3 -3
- package/esm2020/catalog/categories-list/sc-categories-list.component.mjs +18 -5
- package/esm2020/catalog/category-card/sc-category-card.component.mjs +2 -2
- package/esm2020/catalog/input-quantity/sc-input-quantity.component.mjs +3 -3
- package/esm2020/catalog/price-card/sc-price-card.component.mjs +1 -1
- package/esm2020/catalog/price-history/sc-chart-option.mjs +18 -18
- package/esm2020/catalog/price-history/sc-lang-RU.mjs +25 -25
- package/esm2020/catalog/price-history/sc-price-history.component.mjs +2 -2
- package/esm2020/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +1 -1
- package/esm2020/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +1 -1
- package/esm2020/catalog/sc-catalog.module.mjs +5 -5
- package/esm2020/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +1 -1
- package/esm2020/contacts/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +72 -0
- package/esm2020/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +1 -1
- package/esm2020/contacts/index.mjs +3 -1
- package/esm2020/contacts/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +61 -0
- package/esm2020/contacts/sc-contacts.module.mjs +75 -7
- package/esm2020/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +3 -3
- package/esm2020/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +3 -3
- package/esm2020/contragents/sc-contragents.module.mjs +2 -2
- package/esm2020/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +1 -1
- package/esm2020/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +1 -1
- package/esm2020/delivery-address/sc-delivery-address.module.mjs +2 -2
- package/esm2020/files/directives/tree-top.directive.mjs +8 -8
- package/esm2020/files/directives/tree.directive.mjs +2 -2
- package/esm2020/files/file-tree-item/file-tree-item.component.mjs +2 -2
- package/esm2020/files/files-and-documents.component.mjs +6 -6
- package/esm2020/files/files-and-documents.module.mjs +2 -2
- package/esm2020/files/services/tree-icon.service.mjs +3 -3
- package/esm2020/files/services/tree-loader.service.mjs +2 -2
- package/esm2020/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +21 -16
- package/esm2020/form-fields/form-fields.module.mjs +4 -4
- package/esm2020/form-fields/suggestion-field/sc-suggestion-field.component.mjs +5 -5
- package/esm2020/helpers/sc-px-converter.mjs +2 -2
- package/esm2020/helpers/sc-units-helper.mjs +2 -2
- package/esm2020/icons/sc-client-ui-icons-name.mjs +2 -2
- package/esm2020/masks/index.mjs +4 -0
- package/esm2020/masks/sc-account-number-mask.mjs +7 -0
- package/esm2020/masks/sc-bic-mask.mjs +7 -0
- package/esm2020/masks/sc-correspondent-account-mask.mjs +7 -0
- package/esm2020/news/news-card/sc-news-card.component.mjs +1 -1
- package/esm2020/news/news-card-skeleton/sc-news-card-skeleton.component.mjs +1 -1
- package/esm2020/news/sc-news.module.mjs +2 -2
- package/esm2020/order/index.mjs +2 -1
- package/esm2020/order/order-item-mobile/order-item-mobile.component.mjs +1 -1
- package/esm2020/order/sc-order.module.mjs +8 -6
- package/esm2020/order/sc-payment-status/sc-payment-status.component.mjs +35 -0
- package/esm2020/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +9 -3
- package/esm2020/profile/sc-profile.module.mjs +3 -3
- package/esm2020/providers/productsPagination.mjs +11 -10
- package/esm2020/providers/scUserProviders.mjs +3 -3
- package/esm2020/share-button/sc-share-button.component.mjs +1 -1
- package/esm2020/share-button/sc-share-button.module.mjs +2 -2
- package/esm2020/tokens/sc-linear-values-token.mjs +2 -2
- package/esm2020/user/reset-user-password/sc-reset-user-password.component.mjs +5 -5
- package/esm2020/user/sc-user.module.mjs +3 -3
- package/esm2020/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +4 -4
- package/esm2020/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +3 -3
- package/esm2020/validators/index.mjs +3 -1
- package/esm2020/validators/scBicValidator.mjs +7 -0
- package/esm2020/validators/scCorrespondentAccountValidator.mjs +7 -0
- package/esm2020/validators/scPasswordConfirmMatchingValidator.mjs +8 -9
- package/esm2020/verification/sc-verification.module.mjs +3 -3
- package/esm2020/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +7 -7
- package/fesm2015/snabcentr-client-ui.mjs +888 -607
- package/fesm2015/snabcentr-client-ui.mjs.map +1 -1
- package/fesm2020/snabcentr-client-ui.mjs +885 -607
- package/fesm2020/snabcentr-client-ui.mjs.map +1 -1
- package/files/services/tree-icon.service.d.ts +2 -2
- package/form-fields/addresses-selection-field/sc-addresses-selection-field.component.d.ts +1 -1
- package/masks/index.d.ts +3 -0
- package/masks/sc-account-number-mask.d.ts +5 -0
- package/masks/sc-bic-mask.d.ts +5 -0
- package/masks/sc-correspondent-account-mask.d.ts +5 -0
- package/order/index.d.ts +1 -0
- package/order/sc-order.module.d.ts +6 -4
- package/order/sc-payment-status/sc-payment-status.component.d.ts +25 -0
- package/package.json +1 -1
- package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +5 -1
- package/providers/productsPagination.d.ts +3 -3
- package/styles/tailwind/tailwind.scss +55 -8
- package/validators/index.d.ts +2 -0
- package/validators/scBicValidator.d.ts +5 -0
- package/validators/scCorrespondentAccountValidator.d.ts +5 -0
- package/validators/scPasswordConfirmMatchingValidator.d.ts +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScDocumentInfo } from '@snabcentr/client-core
|
|
1
|
+
import { ScDocumentInfo } from '@snabcentr/client-core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Сервис работающий с значками элементов дерева.
|
|
@@ -15,7 +15,7 @@ export declare class TreeIconService {
|
|
|
15
15
|
* Проверяет на признак наличия дочерних элементов.
|
|
16
16
|
*
|
|
17
17
|
* @param info Объект пришедших данных о файле.
|
|
18
|
-
* @returns Возвращает true при наличии дочерних элементов и false при их
|
|
18
|
+
* @returns Возвращает true при наличии дочерних элементов и false при их отсутствии.
|
|
19
19
|
*/
|
|
20
20
|
hasChildren(info: ScDocumentInfo): boolean;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeIconService, never>;
|
|
@@ -38,7 +38,7 @@ export declare class ScAddressesSelectionFieldComponent implements OnInit {
|
|
|
38
38
|
*/
|
|
39
39
|
get cityIdControl(): FormControl<string | null>;
|
|
40
40
|
/**
|
|
41
|
-
* Инициализирует экземпляр класса {@link
|
|
41
|
+
* Инициализирует экземпляр класса {@link ScAddressesSelectionFieldComponent}.
|
|
42
42
|
*
|
|
43
43
|
* @param formGroupDirective Директива c `FormGroup` из DOM.
|
|
44
44
|
* @param locationsService Сервис для получения списков стран, регионов, городов.
|
package/masks/index.d.ts
ADDED
package/order/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./order-item-mobile/order-item-mobile.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "
|
|
3
|
+
import * as i2 from "./sc-payment-status/sc-payment-status.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@taiga-ui/core";
|
|
6
|
+
import * as i5 from "@taiga-ui/layout";
|
|
7
|
+
import * as i6 from "../catalog/sc-catalog.module";
|
|
6
8
|
/**
|
|
7
9
|
* Модуль заказов.
|
|
8
10
|
*/
|
|
9
11
|
export declare class ScOrderModule {
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScOrderModule, [typeof i1.ScOrderItemMobileComponent], [typeof
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScOrderModule, [typeof i1.ScOrderItemMobileComponent, typeof i2.ScPaymentStatusComponent], [typeof i3.CommonModule, typeof i4.TuiLinkModule, typeof i4.TuiButtonModule, typeof i4.TuiModeModule, typeof i4.TuiSvgModule, typeof i5.TuiBlockStatusModule, typeof i6.ScCatalogModule], [typeof i1.ScOrderItemMobileComponent, typeof i2.ScPaymentStatusComponent]>;
|
|
12
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScOrderModule>;
|
|
13
15
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Компонент статуса оплаты заказа.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScPaymentStatusComponent {
|
|
7
|
+
/**
|
|
8
|
+
* Признак того, успешна ли прошла оплата, или нет.
|
|
9
|
+
*/
|
|
10
|
+
status: 'success' | 'error' | null;
|
|
11
|
+
/**
|
|
12
|
+
* Номер оплаченного заказа.
|
|
13
|
+
*/
|
|
14
|
+
orderId: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Событие нажатия на кнопку "Вернуться к списку заказов".
|
|
17
|
+
*/
|
|
18
|
+
backToOrdersClick: EventEmitter<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Событие нажатия на кнопку "На главную".
|
|
21
|
+
*/
|
|
22
|
+
backToOrderClick: EventEmitter<void>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScPaymentStatusComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPaymentStatusComponent, "sc-payment-status", never, { "status": "status"; "orderId": "orderId"; }, { "backToOrdersClick": "backToOrdersClick"; "backToOrderClick": "backToOrderClick"; }, never, never, false>;
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -51,6 +51,10 @@ export declare class ScProfileAccordionsContentComponent {
|
|
|
51
51
|
* Событие нажатия на кнопку добавления контрагента.
|
|
52
52
|
*/
|
|
53
53
|
addContragentClick: EventEmitter<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Событие нажатия на кнопку добавления банковского счёта контрагенту.
|
|
56
|
+
*/
|
|
57
|
+
addContragentBankAccountsClick: EventEmitter<number>;
|
|
54
58
|
/**
|
|
55
59
|
* Событие нажатия на кнопку добавления адреса доставки клиента.
|
|
56
60
|
*/
|
|
@@ -71,5 +75,5 @@ export declare class ScProfileAccordionsContentComponent {
|
|
|
71
75
|
*/
|
|
72
76
|
getUserCity$(cityId: number): Observable<ScICity>;
|
|
73
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScProfileAccordionsContentComponent, never>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScProfileAccordionsContentComponent, "sc-profile-accordions-content", never, {}, { "editProfileClick": "editProfileClick"; "approvePhoneClick": "approvePhoneClick"; "addContragentClick": "addContragentClick"; "addDeliveryAddressClick": "addDeliveryAddressClick"; }, never, never, false>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScProfileAccordionsContentComponent, "sc-profile-accordions-content", never, {}, { "editProfileClick": "editProfileClick"; "approvePhoneClick": "approvePhoneClick"; "addContragentClick": "addContragentClick"; "addContragentBankAccountsClick": "addContragentBankAccountsClick"; "addDeliveryAddressClick": "addDeliveryAddressClick"; }, never, never, false>;
|
|
75
79
|
}
|
|
@@ -6,15 +6,15 @@ import { Observable, Subject } from 'rxjs';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const SC_PRODUCT_PAGINATION_DEFAULT_OPTIONS: ScICategoryProductPaginationParams;
|
|
8
8
|
/**
|
|
9
|
-
* Токен значений пагинации списка товаров категории по умолчанию.
|
|
9
|
+
* Токен значений пагинации списка товаров в категории по умолчанию.
|
|
10
10
|
*/
|
|
11
11
|
export declare const SC_PRODUCT_PAGINATION_OPTIONS: InjectionToken<ScICategoryProductPaginationParams>;
|
|
12
12
|
/**
|
|
13
|
-
* {@link Subject} параметров пагинации списка товаров категории.
|
|
13
|
+
* {@link Subject} параметров пагинации списка товаров в категории.
|
|
14
14
|
*/
|
|
15
15
|
export declare const paginationParams$: Subject<ScICategoryProductPaginationParams>;
|
|
16
16
|
/**
|
|
17
|
-
* Токен {@link Subject} параметров пагинации списка товаров категории для получения их из вне.
|
|
17
|
+
* Токен {@link Subject} параметров пагинации списка товаров в категории для получения их из вне.
|
|
18
18
|
*/
|
|
19
19
|
export declare const SC_PRODUCT_PAGINATION_PARAMS: InjectionToken<Subject<ScICategoryProductPaginationParams>>;
|
|
20
20
|
/**
|
|
@@ -636,10 +636,6 @@ video {
|
|
|
636
636
|
position: absolute;
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
.\!relative {
|
|
640
|
-
position: relative !important;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
639
|
.relative {
|
|
644
640
|
position: relative;
|
|
645
641
|
}
|
|
@@ -790,6 +786,10 @@ video {
|
|
|
790
786
|
display: none;
|
|
791
787
|
}
|
|
792
788
|
|
|
789
|
+
.\!h-20 {
|
|
790
|
+
height: 5rem !important;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
793
|
.\!h-3 {
|
|
794
794
|
height: 0.75rem !important;
|
|
795
795
|
}
|
|
@@ -974,6 +974,12 @@ video {
|
|
|
974
974
|
border-collapse: collapse;
|
|
975
975
|
}
|
|
976
976
|
|
|
977
|
+
.scale-\[3\] {
|
|
978
|
+
--tw-scale-x: 3;
|
|
979
|
+
--tw-scale-y: 3;
|
|
980
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
981
|
+
}
|
|
982
|
+
|
|
977
983
|
.transform {
|
|
978
984
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
979
985
|
}
|
|
@@ -994,6 +1000,10 @@ video {
|
|
|
994
1000
|
grid-template-columns: repeat(auto-fill,minmax(21rem,1fr));
|
|
995
1001
|
}
|
|
996
1002
|
|
|
1003
|
+
.grid-rows-3 {
|
|
1004
|
+
grid-template-rows: repeat(3, minmax(0, 1fr));
|
|
1005
|
+
}
|
|
1006
|
+
|
|
997
1007
|
.flex-col {
|
|
998
1008
|
flex-direction: column;
|
|
999
1009
|
}
|
|
@@ -1329,10 +1339,25 @@ video {
|
|
|
1329
1339
|
font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
|
|
1330
1340
|
}
|
|
1331
1341
|
|
|
1342
|
+
.\!text-green-500 {
|
|
1343
|
+
--tw-text-opacity: 1 !important;
|
|
1344
|
+
color: rgb(34 197 94 / var(--tw-text-opacity)) !important;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.\!text-red-500 {
|
|
1348
|
+
--tw-text-opacity: 1 !important;
|
|
1349
|
+
color: rgb(239 68 68 / var(--tw-text-opacity)) !important;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1332
1352
|
.\!text-tui-base-08 {
|
|
1333
1353
|
color: var(--tui-base-08) !important;
|
|
1334
1354
|
}
|
|
1335
1355
|
|
|
1356
|
+
.\!text-yellow-500 {
|
|
1357
|
+
--tw-text-opacity: 1 !important;
|
|
1358
|
+
color: rgb(234 179 8 / var(--tw-text-opacity)) !important;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1336
1361
|
.text-black {
|
|
1337
1362
|
--tw-text-opacity: 1;
|
|
1338
1363
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
@@ -1517,19 +1542,41 @@ video {
|
|
|
1517
1542
|
}
|
|
1518
1543
|
|
|
1519
1544
|
@media (min-width: 768px) {
|
|
1520
|
-
.md\:
|
|
1545
|
+
.md\:flex-row {
|
|
1546
|
+
flex-direction: row;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
@media (min-width: 1024px) {
|
|
1551
|
+
.lg\:mt-6 {
|
|
1521
1552
|
margin-top: 1.5rem;
|
|
1522
1553
|
}
|
|
1523
1554
|
|
|
1524
|
-
.
|
|
1555
|
+
.lg\:\!block {
|
|
1556
|
+
display: block !important;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.lg\:\!hidden {
|
|
1560
|
+
display: none !important;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
.lg\:flex-grow {
|
|
1525
1564
|
flex-grow: 1;
|
|
1526
1565
|
}
|
|
1527
1566
|
|
|
1528
|
-
.
|
|
1567
|
+
.lg\:grid-cols-3 {
|
|
1568
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
.lg\:grid-rows-1 {
|
|
1572
|
+
grid-template-rows: repeat(1, minmax(0, 1fr));
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
.lg\:flex-row {
|
|
1529
1576
|
flex-direction: row;
|
|
1530
1577
|
}
|
|
1531
1578
|
|
|
1532
|
-
.
|
|
1579
|
+
.lg\:gap-4 {
|
|
1533
1580
|
gap: 1rem;
|
|
1534
1581
|
}
|
|
1535
1582
|
}
|
package/validators/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ import { ValidatorFn } from '@angular/forms';
|
|
|
3
3
|
* Проверяет повторный ввод пароля на эквивалентность паролю.
|
|
4
4
|
*
|
|
5
5
|
* @param passwordKey Ключ поля ввода пароля.
|
|
6
|
+
* @param passwordKey Ключ поля повторного ввода пароля.
|
|
6
7
|
*/
|
|
7
|
-
export declare function scPasswordConfirmMatchingValidator(passwordKey: string): ValidatorFn;
|
|
8
|
+
export declare function scPasswordConfirmMatchingValidator(passwordKey: string, passwordConfirmKey: string): ValidatorFn | null;
|