@snabcentr/client-ui 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/esm2022/accordion/sc-accordion-content.directive.mjs +3 -3
  2. package/esm2022/accordion/sc-accordion.component.mjs +3 -3
  3. package/esm2022/accordion/sc-accordion.module.mjs +4 -4
  4. package/esm2022/auth/sc-auth.module.mjs +4 -4
  5. package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +3 -3
  6. package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +3 -3
  7. package/esm2022/auth/sc-sign-in-form/sc-sign-in-form.component.mjs +3 -3
  8. package/esm2022/auth/sign-up-form/sc-sign-up-form.component.mjs +3 -3
  9. package/esm2022/banner/sc-banner.component.mjs +3 -3
  10. package/esm2022/banner/sc-banner.module.mjs +4 -4
  11. package/esm2022/brands-list/sc-brands-list.component.mjs +3 -3
  12. package/esm2022/brands-list/sc-brands-list.module.mjs +4 -4
  13. package/esm2022/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +3 -3
  14. package/esm2022/cart/sc-cart.module.mjs +4 -4
  15. package/esm2022/catalog/categories-list/sc-categories-list.component.mjs +3 -3
  16. package/esm2022/catalog/category-card/sc-category-card.component.mjs +3 -3
  17. package/esm2022/catalog/input-quantity/sc-input-quantity.component.mjs +3 -3
  18. package/esm2022/catalog/price-card/sc-price-card.component.mjs +3 -3
  19. package/esm2022/catalog/price-history/sc-price-history.component.mjs +5 -5
  20. package/esm2022/catalog/price-list-pagination/sc-price-list-pagination.component.mjs +3 -3
  21. package/esm2022/catalog/price-warehouse-stock/sc-price-warehouse-stock.component.mjs +3 -3
  22. package/esm2022/catalog/sc-catalog.module.mjs +4 -4
  23. package/esm2022/catalog/sc-favorite-btn/sc-favorite-btn.component.mjs +3 -3
  24. package/esm2022/contacts/add-contact-dialog/sc-add-contact-dialog.component.mjs +3 -3
  25. package/esm2022/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +3 -3
  26. package/esm2022/contacts/new-contact-form/sc-new-contact-form.component.mjs +3 -3
  27. package/esm2022/contacts/sc-contacts.module.mjs +4 -4
  28. package/esm2022/contragents/add-contragent-bank-account-dialog/sc-add-contragent-bank-account-dialog.component.mjs +3 -3
  29. package/esm2022/contragents/add-contragent-dialog/sc-add-contragent-dialog.component.mjs +3 -3
  30. package/esm2022/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +3 -3
  31. package/esm2022/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +3 -3
  32. package/esm2022/contragents/new-contragent-bank-account-form/sc-new-contragent-bank-account-form.component.mjs +3 -3
  33. package/esm2022/contragents/new-contragent-form/sc-new-contragent-form.component.mjs +3 -3
  34. package/esm2022/contragents/sc-contragents.module.mjs +4 -4
  35. package/esm2022/delivery-address/add-delivery-address-dialog/sc-add-delivery-address-dialog.component.mjs +3 -3
  36. package/esm2022/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +3 -3
  37. package/esm2022/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +3 -3
  38. package/esm2022/delivery-address/sc-delivery-address.module.mjs +4 -4
  39. package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +3 -3
  40. package/esm2022/directives/next-input-focus/sc-next-input-focus.directive.mjs +3 -3
  41. package/esm2022/directives/next-input-focus/sc-next-input-focus.module.mjs +4 -4
  42. package/esm2022/directives/tel-link/sc-tel-link.directive.mjs +3 -3
  43. package/esm2022/directives/tel-link/sc-tel-link.module.mjs +4 -4
  44. package/esm2022/directives/terminal-link/sc-terminal-link.directive.mjs +3 -3
  45. package/esm2022/files/directives/tree-top.directive.mjs +3 -3
  46. package/esm2022/files/directives/tree.directive.mjs +3 -3
  47. package/esm2022/files/file-tree-item/file-tree-item.component.mjs +3 -3
  48. package/esm2022/files/files-and-documents/files-and-documents.component.mjs +3 -3
  49. package/esm2022/files/files-and-documents.module.mjs +4 -4
  50. package/esm2022/files/services/tree-icon.service.mjs +3 -3
  51. package/esm2022/files/services/tree-loader.service.mjs +3 -3
  52. package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +5 -5
  53. package/esm2022/form-fields/form-fields.module.mjs +4 -4
  54. package/esm2022/form-fields/suggestion-field/sc-suggestion-field.component.mjs +3 -3
  55. package/esm2022/helpers/sc-px-converter.mjs +3 -3
  56. package/esm2022/news/news-card/sc-news-card.component.mjs +3 -3
  57. package/esm2022/news/news-card-skeleton/sc-news-card-skeleton.component.mjs +3 -3
  58. package/esm2022/news/sc-news.module.mjs +4 -4
  59. package/esm2022/order/order-item-mobile/sc-order-item-mobile.component.mjs +3 -3
  60. package/esm2022/order/sc-order.module.mjs +4 -4
  61. package/esm2022/order/sc-payment-status/sc-payment-status.component.mjs +3 -3
  62. package/esm2022/pipes/sc-formatted-phone.mjs +3 -3
  63. package/esm2022/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +3 -3
  64. package/esm2022/profile/sc-profile.module.mjs +4 -4
  65. package/esm2022/qrcode/qrcode-dialog/sc-qrcode-dialog.component.mjs +3 -3
  66. package/esm2022/qrcode/sc-qrcode.module.mjs +4 -4
  67. package/esm2022/samples/ask-to-sample-form/sc-ask-to-sample-form.component.mjs +23 -12
  68. package/esm2022/samples/preview-sample/sc-preview-sample.component.mjs +3 -3
  69. package/esm2022/samples/sc-sample.module.mjs +14 -7
  70. package/esm2022/share-button/sc-share-button.component.mjs +3 -3
  71. package/esm2022/share-button/sc-share-button.module.mjs +4 -4
  72. package/esm2022/user/reset-user-password/sc-reset-user-password.component.mjs +3 -3
  73. package/esm2022/user/sc-user.module.mjs +4 -4
  74. package/esm2022/user/update-user-info-dialog/sc-update-user-info-dialog.component.mjs +3 -3
  75. package/esm2022/user/user-managers/sc-user-managers.component.mjs +3 -3
  76. package/esm2022/user/user-phone-approve-dialog/sc-user-phone-approve-dialog.component.mjs +3 -3
  77. package/esm2022/verification/sc-verification.module.mjs +4 -4
  78. package/esm2022/verification/verification-phone-check-form/sc-verification-phone-check-form.component.mjs +3 -3
  79. package/fesm2022/snabcentr-client-ui.mjs +284 -266
  80. package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
  81. package/package.json +2 -1
  82. package/release_notes.tmp +10 -1
  83. package/samples/ask-to-sample-form/sc-ask-to-sample-form.component.d.ts +8 -0
  84. package/samples/sc-sample.module.d.ts +2 -1
  85. package/styles/tailwind/tailwind.scss +16 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -34,6 +34,7 @@
34
34
  "@taiga-ui/legacy": ">=4.5.0",
35
35
  "@taiga-ui/polymorpheus": ">=4.6.4",
36
36
  "@taiga-ui/styles": ">=4.5.0",
37
+ "ng-recaptcha-2": ">=14.0.0",
37
38
  "angular8-yandex-maps": ">=18.2.0",
38
39
  "angularx-qrcode": ">=18.0.1",
39
40
  "dompurify": ">=3.1.6",
package/release_notes.tmp CHANGED
@@ -1 +1,10 @@
1
- null
1
+ ## 2.3.0 (2024-10-09)
2
+
3
+ ### added (1 change)
4
+
5
+ - [#10449: Добавлена капча для формы заказа образцов](web_soft/libs/angular/snabcentr-client-ui-lib@0d0c65d26c52569b21d928e2a7960d4de8b0b6f4) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!169))
6
+
7
+ ### fixed (1 change)
8
+
9
+ - [#10395: Исправлена ошибка прокрутки за баннер](web_soft/libs/angular/snabcentr-client-ui-lib@621b871f35d97947bfdd88cfce8f2f900406dd4e) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!168))
10
+
@@ -15,7 +15,14 @@ export declare class ScAskToSampleFormComponent implements OnInit {
15
15
  * Сервис информации о пользователе.
16
16
  */
17
17
  readonly user$: Observable<import("@snabcentr/client-core").ScUser>;
18
+ /**
19
+ * Контекст диалогового окна, в котором открыт компонент.
20
+ */
18
21
  private readonly context;
22
+ /**
23
+ * Поле ввода для recaptcha.
24
+ */
25
+ readonly recaptchaControl: FormControl<string | null>;
19
26
  /**
20
27
  * Наименование формы, с которой отправляется запрос.
21
28
  */
@@ -28,6 +35,7 @@ export declare class ScAskToSampleFormComponent implements OnInit {
28
35
  phone: FormControl<string | null>;
29
36
  email: FormControl<string | null>;
30
37
  description: FormControl<string | null>;
38
+ recaptcha: FormControl<null>;
31
39
  }>;
32
40
  /**
33
41
  * Перечисление типов подсказок.
@@ -9,11 +9,12 @@ import * as i7 from "../form-fields/form-fields.module";
9
9
  import * as i8 from "@taiga-ui/legacy";
10
10
  import * as i9 from "@taiga-ui/cdk/directives/item";
11
11
  import * as i10 from "@taiga-ui/cdk";
12
+ import * as i11 from "ng-recaptcha-2";
12
13
  /**
13
14
  * Модуль представления образцов товара.
14
15
  */
15
16
  export declare class ScPreviewSampleModule {
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ScPreviewSampleModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<ScPreviewSampleModule, [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TuiError, typeof i6.TuiFieldErrorPipe, typeof i7.ScFormFieldsModule, typeof i8.TuiInputModule, typeof i8.TuiInputPhoneModule, typeof i9.TuiItem, typeof i6.TuiCarouselComponent, typeof i6.TuiCarouselDirective, typeof i6.TuiCarouselAutoscroll, typeof i6.TuiCarouselButtons, typeof i6.TuiCarouselScroll, typeof i6.TuiAvatar, typeof i10.TuiHovered, typeof i10.TuiLet, typeof i5.TuiButton, typeof i6.TuiButtonLoading, typeof i5.TuiLabel], [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ScPreviewSampleModule, [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TuiError, typeof i6.TuiFieldErrorPipe, typeof i7.ScFormFieldsModule, typeof i8.TuiInputModule, typeof i8.TuiInputPhoneModule, typeof i9.TuiItem, typeof i6.TuiCarouselComponent, typeof i6.TuiCarouselDirective, typeof i6.TuiCarouselAutoscroll, typeof i6.TuiCarouselButtons, typeof i6.TuiCarouselScroll, typeof i6.TuiAvatar, typeof i10.TuiHovered, typeof i10.TuiLet, typeof i5.TuiButton, typeof i6.TuiButtonLoading, typeof i5.TuiLabel, typeof i11.RecaptchaFormsModule, typeof i11.RecaptchaModule], [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent]>;
18
19
  static ɵinj: i0.ɵɵInjectorDeclaration<ScPreviewSampleModule>;
19
20
  }
@@ -712,6 +712,10 @@ video {
712
712
  z-index: 10;
713
713
  }
714
714
 
715
+ .\!-m-2 {
716
+ margin: -0.5rem !important;
717
+ }
718
+
715
719
  .m-1 {
716
720
  margin: 0.25rem;
717
721
  }
@@ -903,6 +907,14 @@ video {
903
907
  height: 1px;
904
908
  }
905
909
 
910
+ .\!max-h-0 {
911
+ max-height: 0px !important;
912
+ }
913
+
914
+ .max-h-20 {
915
+ max-height: 5rem;
916
+ }
917
+
906
918
  .max-h-full {
907
919
  max-height: 100%;
908
920
  }
@@ -1286,10 +1298,6 @@ video {
1286
1298
  object-fit: cover;
1287
1299
  }
1288
1300
 
1289
- .p-0 {
1290
- padding: 0px;
1291
- }
1292
-
1293
1301
  .p-1 {
1294
1302
  padding: 0.25rem;
1295
1303
  }
@@ -1483,11 +1491,6 @@ video {
1483
1491
  color: rgb(0 0 0 / var(--tw-text-opacity));
1484
1492
  }
1485
1493
 
1486
- .text-slate-500 {
1487
- --tw-text-opacity: 1;
1488
- color: rgb(100 116 139 / var(--tw-text-opacity));
1489
- }
1490
-
1491
1494
  .text-tui-base-04 {
1492
1495
  color: var(--tui-border-normal);
1493
1496
  }
@@ -1652,6 +1655,10 @@ video {
1652
1655
  transition-duration: 300ms;
1653
1656
  }
1654
1657
 
1658
+ .duration-500 {
1659
+ transition-duration: 500ms;
1660
+ }
1661
+
1655
1662
  .ease-in {
1656
1663
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
1657
1664
  }
@@ -1793,16 +1800,4 @@ video {
1793
1800
  .group:active .hover-none\:group-active\:text-tui-primary {
1794
1801
  color: var(--tui-background-accent-1);
1795
1802
  }
1796
- }
1797
-
1798
- @media (prefers-color-scheme: dark) {
1799
- .dark\:bg-slate-900 {
1800
- --tw-bg-opacity: 1;
1801
- background-color: rgb(15 23 42 / var(--tw-bg-opacity));
1802
- }
1803
-
1804
- .dark\:text-slate-400 {
1805
- --tw-text-opacity: 1;
1806
- color: rgb(148 163 184 / var(--tw-text-opacity));
1807
- }
1808
1803
  }