@snabcentr/client-ui 1.12.1 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -20,6 +20,7 @@
20
20
  "@ng-web-apis/storage": ">=3.0.6",
21
21
  "@ngneat/until-destroy": ">=9.2.3",
22
22
  "@snabcentr/client-core": ">=0.18.0",
23
+ "ng-recaptcha": ">=10.0.0",
23
24
  "angular8-yandex-maps": ">=14.0.4",
24
25
  "angularx-qrcode": ">=14.0.0",
25
26
  "@taiga-ui/addon-charts": ">=3.42.1",
package/release_notes.tmp CHANGED
@@ -1 +1,10 @@
1
- null
1
+ ## 1.13.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
  * Перечисление типов подсказок.
@@ -7,11 +7,12 @@ import * as i5 from "@taiga-ui/core";
7
7
  import * as i6 from "@taiga-ui/kit";
8
8
  import * as i7 from "../form-fields/form-fields.module";
9
9
  import * as i8 from "@taiga-ui/cdk";
10
+ import * as i9 from "ng-recaptcha";
10
11
  /**
11
12
  * Модуль представления образцов товара.
12
13
  */
13
14
  export declare class ScPreviewSampleModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ScPreviewSampleModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<ScPreviewSampleModule, [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TuiErrorModule, typeof i6.TuiFieldErrorPipeModule, typeof i7.ScFormFieldsModule, typeof i6.TuiInputModule, typeof i6.TuiInputPhoneModule, typeof i6.TuiCarouselModule, typeof i6.TuiAvatarModule, typeof i8.TuiHoveredModule, typeof i8.TuiLetModule, typeof i5.TuiButtonModule, typeof i5.TuiLabelModule], [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ScPreviewSampleModule, [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.TuiErrorModule, typeof i6.TuiFieldErrorPipeModule, typeof i7.ScFormFieldsModule, typeof i6.TuiInputModule, typeof i6.TuiInputPhoneModule, typeof i6.TuiCarouselModule, typeof i6.TuiAvatarModule, typeof i8.TuiHoveredModule, typeof i8.TuiLetModule, typeof i5.TuiButtonModule, typeof i5.TuiLabelModule, typeof i9.RecaptchaModule, typeof i9.RecaptchaFormsModule], [typeof i1.ScPreviewSampleComponent, typeof i2.ScAskToSampleFormComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<ScPreviewSampleModule>;
17
18
  }
@@ -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
  }
@@ -898,6 +902,14 @@ video {
898
902
  height: 1px;
899
903
  }
900
904
 
905
+ .\!max-h-0 {
906
+ max-height: 0px !important;
907
+ }
908
+
909
+ .max-h-20 {
910
+ max-height: 5rem;
911
+ }
912
+
901
913
  .max-h-full {
902
914
  max-height: 100%;
903
915
  }
@@ -1728,6 +1740,10 @@ video {
1728
1740
  transition-duration: 300ms;
1729
1741
  }
1730
1742
 
1743
+ .duration-500 {
1744
+ transition-duration: 500ms;
1745
+ }
1746
+
1731
1747
  .ease-in {
1732
1748
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
1733
1749
  }