@snabcentr/client-ui 0.11.4 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/auth/sc-sign-in-form/sc-sign-in-form.component.d.ts +8 -4
  2. package/banner/sc-banner.component.d.ts +7 -3
  3. package/cart/cart-item-mobile/sc-cart-item-mobile.component.d.ts +1 -1
  4. package/catalog/categories-list/sc-categories-list.component.d.ts +6 -0
  5. package/contacts/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.d.ts +47 -0
  6. package/contacts/index.d.ts +2 -0
  7. package/contacts/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.d.ts +55 -0
  8. package/contacts/sc-contacts.module.d.ts +11 -5
  9. package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +2 -3
  10. package/contragents/contragents-accordion/sc-contragents-accordion.component.d.ts +1 -1
  11. package/esm2020/accordion/sc-accordion-content.directive.mjs +2 -2
  12. package/esm2020/accordion/sc-accordion.component.mjs +1 -1
  13. package/esm2020/accordion/sc-accordion.module.mjs +2 -2
  14. package/esm2020/auth/constants/phone-approve-code-mask.mjs +2 -2
  15. package/esm2020/auth/sc-auth.module.mjs +3 -3
  16. package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +2 -2
  17. package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +2 -2
  18. package/esm2020/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +14 -5
  19. package/esm2020/banner/sc-banner.component.mjs +17 -8
  20. package/esm2020/banner/sc-banner.module.mjs +2 -2
  21. package/esm2020/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +2 -2
  22. package/esm2020/cart/sc-cart.module.mjs +3 -3
  23. package/esm2020/catalog/categories-list/sc-categories-list.component.mjs +18 -5
  24. package/esm2020/catalog/category-card/sc-category-card.component.mjs +2 -2
  25. package/esm2020/catalog/input-quantity/sc-input-quantity.component.mjs +3 -3
  26. package/esm2020/catalog/price-card/sc-price-card.component.mjs +1 -1
  27. package/esm2020/catalog/price-history/sc-chart-option.mjs +18 -18
  28. package/esm2020/catalog/price-history/sc-lang-RU.mjs +25 -25
  29. package/esm2020/catalog/price-history/sc-price-history.component.mjs +2 -2
  30. package/esm2020/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +1 -1
  31. package/esm2020/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +1 -1
  32. package/esm2020/catalog/sc-catalog.module.mjs +5 -5
  33. package/esm2020/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +1 -1
  34. package/esm2020/contacts/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +72 -0
  35. package/esm2020/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +1 -1
  36. package/esm2020/contacts/index.mjs +3 -1
  37. package/esm2020/contacts/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +61 -0
  38. package/esm2020/contacts/sc-contacts.module.mjs +75 -7
  39. package/esm2020/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +3 -3
  40. package/esm2020/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +3 -3
  41. package/esm2020/contragents/sc-contragents.module.mjs +2 -2
  42. package/esm2020/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +1 -1
  43. package/esm2020/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +1 -1
  44. package/esm2020/delivery-address/sc-delivery-address.module.mjs +2 -2
  45. package/esm2020/files/directives/tree-top.directive.mjs +8 -8
  46. package/esm2020/files/directives/tree.directive.mjs +2 -2
  47. package/esm2020/files/file-tree-item/file-tree-item.component.mjs +2 -2
  48. package/esm2020/files/files-and-documents.component.mjs +6 -6
  49. package/esm2020/files/files-and-documents.module.mjs +2 -2
  50. package/esm2020/files/services/tree-icon.service.mjs +3 -3
  51. package/esm2020/files/services/tree-loader.service.mjs +2 -2
  52. package/esm2020/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +21 -16
  53. package/esm2020/form-fields/form-fields.module.mjs +4 -4
  54. package/esm2020/form-fields/suggestion-field/sc-suggestion-field.component.mjs +5 -5
  55. package/esm2020/helpers/sc-px-converter.mjs +2 -2
  56. package/esm2020/helpers/sc-units-helper.mjs +2 -2
  57. package/esm2020/icons/sc-client-ui-icons-name.mjs +2 -2
  58. package/esm2020/masks/index.mjs +4 -0
  59. package/esm2020/masks/sc-account-number-mask.mjs +7 -0
  60. package/esm2020/masks/sc-bic-mask.mjs +7 -0
  61. package/esm2020/masks/sc-correspondent-account-mask.mjs +7 -0
  62. package/esm2020/news/news-card/sc-news-card.component.mjs +1 -1
  63. package/esm2020/news/news-card-skeleton/sc-news-card-skeleton.component.mjs +1 -1
  64. package/esm2020/news/sc-news.module.mjs +2 -2
  65. package/esm2020/order/index.mjs +2 -1
  66. package/esm2020/order/order-item-mobile/order-item-mobile.component.mjs +1 -1
  67. package/esm2020/order/sc-order.module.mjs +8 -6
  68. package/esm2020/order/sc-payment-status/sc-payment-status.component.mjs +35 -0
  69. package/esm2020/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +9 -3
  70. package/esm2020/profile/sc-profile.module.mjs +3 -3
  71. package/esm2020/providers/productsPagination.mjs +11 -10
  72. package/esm2020/providers/scUserProviders.mjs +3 -3
  73. package/esm2020/share-button/sc-share-button.component.mjs +1 -1
  74. package/esm2020/share-button/sc-share-button.module.mjs +2 -2
  75. package/esm2020/tokens/sc-linear-values-token.mjs +2 -2
  76. package/esm2020/user/reset-user-password/sc-reset-user-password.component.mjs +5 -5
  77. package/esm2020/user/sc-user.module.mjs +3 -3
  78. package/esm2020/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +4 -4
  79. package/esm2020/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +3 -3
  80. package/esm2020/validators/index.mjs +3 -1
  81. package/esm2020/validators/scBicValidator.mjs +7 -0
  82. package/esm2020/validators/scCorrespondentAccountValidator.mjs +7 -0
  83. package/esm2020/validators/scPasswordConfirmMatchingValidator.mjs +8 -9
  84. package/esm2020/verification/sc-verification.module.mjs +3 -3
  85. package/esm2020/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +7 -7
  86. package/fesm2015/snabcentr-client-ui.mjs +888 -607
  87. package/fesm2015/snabcentr-client-ui.mjs.map +1 -1
  88. package/fesm2020/snabcentr-client-ui.mjs +885 -607
  89. package/fesm2020/snabcentr-client-ui.mjs.map +1 -1
  90. package/files/services/tree-icon.service.d.ts +2 -2
  91. package/form-fields/addresses-selection-field/sc-addresses-selection-field.component.d.ts +1 -1
  92. package/masks/index.d.ts +3 -0
  93. package/masks/sc-account-number-mask.d.ts +5 -0
  94. package/masks/sc-bic-mask.d.ts +5 -0
  95. package/masks/sc-correspondent-account-mask.d.ts +5 -0
  96. package/order/index.d.ts +1 -0
  97. package/order/sc-order.module.d.ts +6 -4
  98. package/order/sc-payment-status/sc-payment-status.component.d.ts +25 -0
  99. package/package.json +1 -1
  100. package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +5 -1
  101. package/providers/productsPagination.d.ts +3 -3
  102. package/styles/tailwind/tailwind.scss +55 -8
  103. package/validators/index.d.ts +2 -0
  104. package/validators/scBicValidator.d.ts +5 -0
  105. package/validators/scCorrespondentAccountValidator.d.ts +5 -0
  106. package/validators/scPasswordConfirmMatchingValidator.d.ts +2 -1
@@ -1,4 +1,4 @@
1
- import { ScDocumentInfo } from '@snabcentr/client-core/files/classes/sc-document-info';
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 BankSuggestionFieldsComponent}.
41
+ * Инициализирует экземпляр класса {@link ScAddressesSelectionFieldComponent}.
42
42
  *
43
43
  * @param formGroupDirective Директива c `FormGroup` из DOM.
44
44
  * @param locationsService Сервис для получения списков стран, регионов, городов.
@@ -0,0 +1,3 @@
1
+ export * from './sc-account-number-mask';
2
+ export * from './sc-bic-mask';
3
+ export * from './sc-correspondent-account-mask';
@@ -0,0 +1,5 @@
1
+ import { MaskitoOptions } from '@maskito/core';
2
+ /**
3
+ * Маска поля ввода номера счета.
4
+ */
5
+ export declare const scAccountNumberMask: MaskitoOptions;
@@ -0,0 +1,5 @@
1
+ import { MaskitoOptions } from '@maskito/core';
2
+ /**
3
+ * Маска поля ввода БИК.
4
+ */
5
+ export declare const scBicMask: MaskitoOptions;
@@ -0,0 +1,5 @@
1
+ import { MaskitoOptions } from '@maskito/core';
2
+ /**
3
+ * Маска поля ввода номера корреспондентского счета.
4
+ */
5
+ export declare const scCorrespondentAccount: MaskitoOptions;
package/order/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './order-item-mobile/order-item-mobile.component';
2
+ export * from './sc-payment-status/sc-payment-status.component';
2
3
  export * from './sc-order.module';
@@ -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 "@angular/common";
4
- import * as i3 from "@taiga-ui/core";
5
- import * as i4 from "../catalog/sc-catalog.module";
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 i2.CommonModule, typeof i3.TuiLinkModule, typeof i3.TuiButtonModule, typeof i3.TuiModeModule, typeof i3.TuiSvgModule, typeof i4.ScCatalogModule], [typeof i1.ScOrderItemMobileComponent]>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "0.11.4",
3
+ "version": "0.14.1",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -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\:mt-6 {
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
- .md\:flex-grow {
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
- .md\:flex-row {
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
- .md\:gap-4 {
1579
+ .lg\:gap-4 {
1533
1580
  gap: 1rem;
1534
1581
  }
1535
1582
  }
@@ -1,2 +1,4 @@
1
+ export * from './scBicValidator';
2
+ export * from './scCorrespondentAccountValidator';
1
3
  export * from './scPasswordConfirmMatchingValidator';
2
4
  export * from './stepValidator';
@@ -0,0 +1,5 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ /**
3
+ * Проверяет БИК.
4
+ */
5
+ export declare const scBicValidator: ValidatorFn;
@@ -0,0 +1,5 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ /**
3
+ * Проверяет корреспондентский счет.
4
+ */
5
+ export declare const scCorrespondentAccountValidator: ValidatorFn;
@@ -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;