@snabcentr/client-ui 1.10.0 → 1.12.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/esm2020/cart/cart-item-mobile/sc-cart-item-mobile.component.mjs +3 -3
- package/esm2020/catalog/price-card/sc-price-card.component.mjs +3 -3
- package/esm2020/catalog/price-history/sc-price-history.component.mjs +2 -2
- package/esm2020/samples/ask-to-sample-form/sc-ask-to-sample-form.component.mjs +102 -10
- package/fesm2015/snabcentr-client-ui.mjs +99 -12
- package/fesm2015/snabcentr-client-ui.mjs.map +1 -1
- package/fesm2020/snabcentr-client-ui.mjs +98 -12
- package/fesm2020/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/samples/ask-to-sample-form/sc-ask-to-sample-form.component.d.ts +38 -4
- package/styles/tailwind/tailwind.scss +1 -1
package/package.json
CHANGED
@@ -1,18 +1,52 @@
|
|
1
|
-
import {
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
3
|
import { ScISuggestionType } from '@snabcentr/client-core';
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
3
5
|
import * as i0 from "@angular/core";
|
4
6
|
/**
|
5
7
|
* Компонент формы запроса бесплатного образца.
|
6
8
|
*/
|
7
|
-
export declare class ScAskToSampleFormComponent {
|
9
|
+
export declare class ScAskToSampleFormComponent implements OnInit {
|
10
|
+
/**
|
11
|
+
* Сервис работы с образцами.
|
12
|
+
*/
|
13
|
+
private readonly samplesService;
|
14
|
+
/**
|
15
|
+
* Сервис информации о пользователе.
|
16
|
+
*/
|
17
|
+
readonly user$: Observable<import("@snabcentr/client-core").ScUser>;
|
18
|
+
private readonly context;
|
19
|
+
/**
|
20
|
+
* Наименование формы, с которой отправляется запрос.
|
21
|
+
*/
|
22
|
+
formName?: 'order-sample' | 'buy-products';
|
8
23
|
/**
|
9
24
|
* Группа полей ввода для формы «Пожелания и предложения по улучшению сайта».
|
10
25
|
*/
|
11
|
-
form: FormGroup
|
26
|
+
form: FormGroup<{
|
27
|
+
name: FormControl<string | null>;
|
28
|
+
phone: FormControl<string | null>;
|
29
|
+
email: FormControl<string | null>;
|
30
|
+
description: FormControl<string | null>;
|
31
|
+
}>;
|
12
32
|
/**
|
13
33
|
* Перечисление типов подсказок.
|
14
34
|
*/
|
15
35
|
readonly suggestionType: typeof ScISuggestionType;
|
36
|
+
/**
|
37
|
+
* {@link Subject} события отправки формы.
|
38
|
+
*/
|
39
|
+
readonly onSubmit: Subject<void>;
|
40
|
+
/**
|
41
|
+
* {@link Observable} запроса на отправку данных.
|
42
|
+
*/
|
43
|
+
readonly request$: Observable<undefined | null>;
|
44
|
+
/**
|
45
|
+
* {@link Observable} изменения состояния загрузки данных.
|
46
|
+
*/
|
47
|
+
readonly loading$: Observable<boolean>;
|
48
|
+
/** @inheritdoc */
|
49
|
+
ngOnInit(): void;
|
16
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAskToSampleFormComponent, never>;
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScAskToSampleFormComponent, "sc-ask-to-sample-form", never, {}, {}, never, never, false>;
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAskToSampleFormComponent, "sc-ask-to-sample-form", never, { "formName": "formName"; }, {}, never, never, false>;
|
18
52
|
}
|