@snabcentr/client-ui 1.12.1 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { ScCartItem, ScIUrls, ScProduct, ScUnitsHelper } from '@snabcentr/client-core';
2
+ import { ScCartItem, ScProduct, ScUnitsHelper } from '@snabcentr/client-core';
3
3
  import { TuiPreviewDialogService } from '@taiga-ui/addon-preview';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -8,8 +8,6 @@ import * as i0 from "@angular/core";
8
8
  export declare class ScOrderItemMobileComponent {
9
9
  readonly unitsHelper: ScUnitsHelper;
10
10
  private readonly previewDialogService;
11
- private readonly urls;
12
- private readonly pathImageNotFound;
13
11
  /**
14
12
  * Ссылка на представление спецификации.
15
13
  */
@@ -26,15 +24,17 @@ export declare class ScOrderItemMobileComponent {
26
24
  * Событие нажатия на дополнительные действия.
27
25
  */
28
26
  clickActionsEvent: EventEmitter<void>;
27
+ /**
28
+ * Хелпер для работы с изображениями товара.
29
+ */
30
+ private readonly imageHelper;
29
31
  /**
30
32
  * Инициирует экземпляр класса {@link ScOrderItemMobileComponent}.
31
33
  *
32
34
  * @param unitsHelper Объект-хэлпер для работы со значениями единиц измерения товара.
33
35
  * @param previewDialogService Сервис диалогового окна предварительного просмотра.
34
- * @param urls Список ссылок на разделы backend'a.
35
- * @param pathImageNotFound Путь до изображения 'Товар не найден'.
36
36
  */
37
- constructor(unitsHelper: ScUnitsHelper, previewDialogService: TuiPreviewDialogService, urls: ScIUrls, pathImageNotFound: string);
37
+ constructor(unitsHelper: ScUnitsHelper, previewDialogService: TuiPreviewDialogService);
38
38
  /**
39
39
  * Продукт элемента заказа.
40
40
  */
@@ -45,8 +45,10 @@ export declare class ScOrderItemMobileComponent {
45
45
  showSpecification(): void;
46
46
  /**
47
47
  * Возвращает ссылку на изображение карточки товара.
48
+ *
49
+ * @param product Позиция товара/услуги.
48
50
  */
49
- getCardImage(): string;
51
+ getCardImage(product: ScProduct): string;
50
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderItemMobileComponent, never>;
51
53
  static ɵcmp: i0.ɵɵComponentDeclaration<ScOrderItemMobileComponent, "sc-order-item-mobile", never, { "orderItem": "orderItem"; }, { "clickCardEvent": "clickCardEvent"; "clickActionsEvent": "clickActionsEvent"; }, never, never, false>;
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "1.12.1",
3
+ "version": "1.14.0",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -19,7 +19,8 @@
19
19
  "@ng-web-apis/intersection-observer": ">=3.2.0",
20
20
  "@ng-web-apis/storage": ">=3.0.6",
21
21
  "@ngneat/until-destroy": ">=9.2.3",
22
- "@snabcentr/client-core": ">=0.18.0",
22
+ "@snabcentr/client-core": "^1.11.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,12 @@
1
- null
1
+ ## 1.14.0 (2024-10-22)
2
+
3
+ ### added, fixed, changed, deprecated, removed, security, performance, other (1 change)
4
+
5
+ - [#9538: Исправлена вёрстка товаров в корзине, файлов и документов.](web_soft/libs/angular/snabcentr-client-ui-lib@c0e93f408c424f59e1d1def2fc6d2b4583cc0003) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!170))
6
+
7
+ ### changed (3 changes)
8
+
9
+ - [#9538: Доработана палитра и значки](web_soft/libs/angular/snabcentr-client-ui-lib@38639c15c03116640be7f34de5b5c16d28ea87d8) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!162))
10
+ - [#9538: Обновлены зависимости](web_soft/libs/angular/snabcentr-client-ui-lib@e44ffe88aef088cfde6aebcf060a78d58cfffa98) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!159))
11
+ - [#9538: Обновлены библиотеки Angular до 18 и Taiga-UI до 4.5.0](web_soft/libs/angular/snabcentr-client-ui-lib@2946ae34059d89ffc305aabc0cc3ae21382fffa7) ([merge request](web_soft/libs/angular/snabcentr-client-ui-lib!155))
12
+
@@ -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
  }
@@ -107,7 +107,7 @@
107
107
  }
108
108
 
109
109
  /*
110
- ! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com
110
+ ! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com
111
111
  */
112
112
 
113
113
  /*
@@ -550,7 +550,7 @@ video {
550
550
 
551
551
  /* Make elements with the HTML hidden attribute stay hidden by default */
552
552
 
553
- [hidden] {
553
+ [hidden]:where(:not([hidden="until-found"])) {
554
554
  display: none;
555
555
  }
556
556
 
@@ -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
  }