@snabcentr/client-ui 0.6.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/accordion/index.d.ts +3 -0
- package/accordion/sc-accordion-content.directive.d.ts +9 -0
- package/accordion/sc-accordion.component.d.ts +43 -0
- package/accordion/sc-accordion.module.d.ts +15 -0
- package/auth/sc-auth.module.d.ts +2 -1
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +4 -42
- package/catalog/categories-list/sc-categories-list.component.d.ts +31 -0
- package/catalog/index.d.ts +1 -0
- package/catalog/sc-catalog.module.d.ts +9 -8
- package/contacts/contacts-accordion/sc-contacts-accordion.component.d.ts +23 -0
- package/contacts/index.d.ts +2 -0
- package/contacts/sc-contacts.module.d.ts +14 -0
- package/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.d.ts +45 -0
- package/contragents/contragents-accordion/sc-contragents-accordion.component.d.ts +38 -0
- package/contragents/index.d.ts +3 -0
- package/contragents/sc-contragents.module.d.ts +16 -0
- package/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.d.ts +32 -0
- package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts +26 -0
- package/delivery-address/index.d.ts +3 -0
- package/delivery-address/sc-delivery-address.module.d.ts +16 -0
- package/esm2020/accordion/index.mjs +4 -0
- package/esm2020/accordion/sc-accordion-content.directive.mjs +17 -0
- package/esm2020/accordion/sc-accordion.component.mjs +78 -0
- package/esm2020/accordion/sc-accordion.module.mjs +25 -0
- package/esm2020/auth/sc-auth.module.mjs +7 -3
- package/esm2020/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +9 -85
- package/esm2020/catalog/categories-list/sc-categories-list.component.mjs +44 -0
- package/esm2020/catalog/index.mjs +2 -1
- package/esm2020/catalog/sc-catalog.module.mjs +8 -3
- package/esm2020/contacts/contacts-accordion/sc-contacts-accordion.component.mjs +35 -0
- package/esm2020/contacts/index.mjs +3 -0
- package/esm2020/contacts/sc-contacts.module.mjs +24 -0
- package/esm2020/contragents/contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component.mjs +54 -0
- package/esm2020/contragents/contragents-accordion/sc-contragents-accordion.component.mjs +57 -0
- package/esm2020/contragents/index.mjs +4 -0
- package/esm2020/contragents/sc-contragents.module.mjs +26 -0
- package/esm2020/delivery-address/delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component.mjs +40 -0
- package/esm2020/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.mjs +39 -0
- package/esm2020/delivery-address/index.mjs +4 -0
- package/esm2020/delivery-address/sc-delivery-address.module.mjs +26 -0
- package/esm2020/profile/index.mjs +3 -0
- package/esm2020/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.mjs +99 -0
- package/esm2020/profile/sc-profile.module.mjs +76 -0
- package/esm2020/providers/index.mjs +2 -1
- package/esm2020/providers/scUserProviders.mjs +30 -0
- package/esm2020/public-api.mjs +8 -1
- package/esm2020/user/index.mjs +3 -0
- package/esm2020/user/reset-user-password/sc-reset-user-password.component.mjs +61 -0
- package/esm2020/user/sc-user.module.mjs +54 -0
- package/esm2020/validators/index.mjs +2 -1
- package/esm2020/validators/scPasswordConfirmMatchingValidator.mjs +18 -0
- package/esm2020/verification/index.mjs +3 -0
- package/esm2020/verification/phone-approve-form/phone-approve-form.component.mjs +154 -0
- package/esm2020/verification/sc-verification.module.mjs +73 -0
- package/fesm2015/snabcentr-client-ui.mjs +922 -115
- package/fesm2015/snabcentr-client-ui.mjs.map +1 -1
- package/fesm2020/snabcentr-client-ui.mjs +901 -103
- package/fesm2020/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/profile/index.d.ts +2 -0
- package/profile/sc-profile-accordions-content/sc-profile-accordions-content.component.d.ts +61 -0
- package/profile/sc-profile.module.d.ts +19 -0
- package/providers/index.d.ts +1 -0
- package/providers/scUserProviders.d.ts +18 -0
- package/public-api.d.ts +7 -0
- package/styles/tailwind/tailwind.scss +75 -0
- package/user/index.d.ts +2 -0
- package/user/reset-user-password/sc-reset-user-password.component.d.ts +38 -0
- package/user/sc-user.module.d.ts +15 -0
- package/validators/index.d.ts +1 -0
- package/validators/scPasswordConfirmMatchingValidator.d.ts +7 -0
- package/verification/index.d.ts +2 -0
- package/verification/phone-approve-form/phone-approve-form.component.d.ts +83 -0
- package/verification/sc-verification.module.d.ts +16 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PolymorpheusTemplate } from '@tinkoff/ng-polymorpheus';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* Директива содержимого компонента, позволяющего отображать и скрывать содержимое в разделах.
|
5
|
+
*/
|
6
|
+
export declare class ScAccordionContentDirective extends PolymorpheusTemplate<Record<string, unknown>> {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionContentDirective, never>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScAccordionContentDirective, "ng-template[scAccordionContent]", never, {}, {}, never, never, false>;
|
9
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ScAccordionContentDirective } from './sc-accordion-content.directive';
|
3
|
+
import { TuiSizeS } from '@taiga-ui/core';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент, позволяющий отображать и скрывать содержимое в разделах.
|
7
|
+
*/
|
8
|
+
export declare class ScAccordionComponent {
|
9
|
+
/**
|
10
|
+
* Состояние отображения кнопки добавления.
|
11
|
+
*/
|
12
|
+
showAddButton: boolean;
|
13
|
+
/**
|
14
|
+
* Состояние отображения кнопки удаления.
|
15
|
+
*/
|
16
|
+
showDeleteButton: boolean;
|
17
|
+
/**
|
18
|
+
* Состояние отображения стрелки.
|
19
|
+
*/
|
20
|
+
showArrow: boolean;
|
21
|
+
/**
|
22
|
+
* Состояние открытия содержимого компонента.
|
23
|
+
*/
|
24
|
+
open: boolean;
|
25
|
+
/**
|
26
|
+
* Размер элементов {@link TuiAccordionItemComponent}.
|
27
|
+
*/
|
28
|
+
size: TuiSizeS;
|
29
|
+
/**
|
30
|
+
* Дочерний элемент контента.
|
31
|
+
*/
|
32
|
+
protected readonly content?: ScAccordionContentDirective;
|
33
|
+
/**
|
34
|
+
* Событие нажатия на кнопку добавления.
|
35
|
+
*/
|
36
|
+
addButtonClick: EventEmitter<void>;
|
37
|
+
/**
|
38
|
+
* Событие нажатия на кнопку удаления.
|
39
|
+
*/
|
40
|
+
deleteButtonClick: EventEmitter<void>;
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionComponent, never>;
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAccordionComponent, "sc-accordion", never, { "showAddButton": "showAddButton"; "showDeleteButton": "showDeleteButton"; "showArrow": "showArrow"; "open": "open"; "size": "size"; }, { "addButtonClick": "addButtonClick"; "deleteButtonClick": "deleteButtonClick"; }, ["content"], ["*"], false>;
|
43
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sc-accordion.component";
|
3
|
+
import * as i2 from "./sc-accordion-content.directive";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "@tinkoff/ng-polymorpheus";
|
6
|
+
import * as i5 from "@taiga-ui/core";
|
7
|
+
import * as i6 from "@taiga-ui/kit";
|
8
|
+
/**
|
9
|
+
* Модуль для отображение контента разделами, с возможностью скрывать и отображать содержимое.
|
10
|
+
*/
|
11
|
+
export declare class ScAccordionModule {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAccordionModule, never>;
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAccordionModule, [typeof i1.ScAccordionComponent, typeof i2.ScAccordionContentDirective], [typeof i3.CommonModule, typeof i4.PolymorpheusModule, typeof i5.TuiButtonModule, typeof i6.TuiAccordionModule, typeof i5.TuiModeModule, typeof i6.TuiElasticContainerModule], [typeof i1.ScAccordionComponent, typeof i2.ScAccordionContentDirective]>;
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScAccordionModule>;
|
15
|
+
}
|
package/auth/sc-auth.module.d.ts
CHANGED
@@ -8,11 +8,12 @@ import * as i6 from "@taiga-ui/kit";
|
|
8
8
|
import * as i7 from "@taiga-ui/core";
|
9
9
|
import * as i8 from "@taiga-ui/cdk";
|
10
10
|
import * as i9 from "@maskito/angular";
|
11
|
+
import * as i10 from "../verification/sc-verification.module";
|
11
12
|
/**
|
12
13
|
* Модуль аутентификации.
|
13
14
|
*/
|
14
15
|
export declare class ScAuthModule {
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAuthModule, never>;
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAuthModule, [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.TuiInputPasswordModule, typeof i6.TuiInputModule, typeof i7.TuiTextfieldControllerModule, typeof i7.TuiLinkModule, typeof i7.TuiButtonModule, typeof i7.TuiLabelModule, typeof i7.TuiModeModule, typeof i6.TuiFieldErrorPipeModule, typeof i7.TuiErrorModule, typeof i8.TuiLetModule, typeof i7.TuiLoaderModule, typeof i6.TuiInputPhoneModule, typeof i9.MaskitoModule], [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent]>;
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScAuthModule, [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.TuiInputPasswordModule, typeof i6.TuiInputModule, typeof i7.TuiTextfieldControllerModule, typeof i7.TuiLinkModule, typeof i7.TuiButtonModule, typeof i7.TuiLabelModule, typeof i7.TuiModeModule, typeof i6.TuiFieldErrorPipeModule, typeof i7.TuiErrorModule, typeof i8.TuiLetModule, typeof i7.TuiLoaderModule, typeof i6.TuiInputPhoneModule, typeof i9.MaskitoModule, typeof i10.ScVerificationModule], [typeof i1.ScSignInFormComponent, typeof i2.ScSignInFormByPhoneComponent, typeof i3.ScSignInFormByEmailComponent]>;
|
17
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScAuthModule>;
|
18
19
|
}
|
package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { FormGroup
|
2
|
-
import {
|
3
|
-
import { ScAuthService, ScVerificationService } from '@snabcentr/client-core';
|
1
|
+
import { FormGroup } from '@angular/forms';
|
2
|
+
import { ScAuthService } from '@snabcentr/client-core';
|
4
3
|
import { Subject, Observable } from 'rxjs';
|
5
4
|
import * as i0 from "@angular/core";
|
6
5
|
/**
|
@@ -8,19 +7,14 @@ import * as i0 from "@angular/core";
|
|
8
7
|
*/
|
9
8
|
export declare class ScSignInFormByPhoneComponent {
|
10
9
|
private readonly authService;
|
11
|
-
private readonly verificationService;
|
12
10
|
/**
|
13
|
-
*
|
11
|
+
* Наличие кода подтверждения у пользователя.
|
14
12
|
*/
|
15
13
|
haveCode: boolean;
|
16
14
|
/**
|
17
15
|
* Группа полей ввода для формы «Вход на сайт».
|
18
16
|
*/
|
19
17
|
readonly formByPhone: FormGroup;
|
20
|
-
/**
|
21
|
-
* Поле ввода 'Номер телефона'.
|
22
|
-
*/
|
23
|
-
get phoneControl(): FormControl<string | null>;
|
24
18
|
/**
|
25
19
|
* {@link Subject} События отправки формы.
|
26
20
|
*/
|
@@ -29,49 +23,17 @@ export declare class ScSignInFormByPhoneComponent {
|
|
29
23
|
* {@link Observable} Запроса данных аутентификации.
|
30
24
|
*/
|
31
25
|
private readonly phoneRequest$;
|
32
|
-
/**
|
33
|
-
* {@link Observable} Запроса данных получения информации о том свободен ли номер телефона.
|
34
|
-
*/
|
35
|
-
isPhoneNotBusy$: Observable<boolean | null>;
|
36
|
-
/**
|
37
|
-
* {@link Subject} События отправки кода подтверждения.
|
38
|
-
*/
|
39
|
-
readonly onSendCode: Subject<void>;
|
40
|
-
/**
|
41
|
-
* {@link Observable} Запроса данных получения кода подтверждения.
|
42
|
-
*/
|
43
|
-
readonly loadingApproveCode$: Observable<boolean>;
|
44
|
-
/**
|
45
|
-
* Маска поля ввода кода для подтверждения.
|
46
|
-
*/
|
47
|
-
readonly approveCodeMask: MaskitoOptions;
|
48
26
|
/**
|
49
27
|
* {@link Observable} Изменения состояния загрузки данных аутентификации по номеру телефона.
|
50
28
|
*/
|
51
29
|
readonly loadingPhoneAuth$: Observable<boolean>;
|
52
|
-
/**
|
53
|
-
* {@link Subject} События запуска/остановки таймера.
|
54
|
-
*/
|
55
|
-
readonly reloadTimer$: Subject<number>;
|
56
|
-
/**
|
57
|
-
* {@link Observable} Таймера.
|
58
|
-
*
|
59
|
-
* TODO: Вынести таймер в отдельную директиву TASK:[#9260].
|
60
|
-
*/
|
61
|
-
readonly timer$: Observable<string | null>;
|
62
30
|
/**
|
63
31
|
* Инициализирует экземпляр класса {@link ScSignInFormByPhoneComponent}.
|
64
32
|
*
|
65
33
|
* @param authService Сервис аутентификации.
|
66
34
|
* @param verificationService Сервис верификации.
|
67
35
|
*/
|
68
|
-
constructor(authService: ScAuthService
|
69
|
-
/**
|
70
|
-
* Устанавливает состояние наличия кода подтверждения у пользователя.
|
71
|
-
*
|
72
|
-
* @param haveCode Признак того есть ли код подтверждения или нет.
|
73
|
-
*/
|
74
|
-
setHaveCode(haveCode: boolean): void;
|
36
|
+
constructor(authService: ScAuthService);
|
75
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScSignInFormByPhoneComponent, never>;
|
76
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScSignInFormByPhoneComponent, "sc-sign-in-form-by-phone", never, {}, {}, never, never, false>;
|
77
39
|
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ScIUrls } from '@snabcentr/client-core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Компонент списка категорий.
|
6
|
+
*/
|
7
|
+
export declare class ScCategoriesListComponent<T> {
|
8
|
+
private readonly urls;
|
9
|
+
/**
|
10
|
+
* Список категорий.
|
11
|
+
*/
|
12
|
+
categories: T[] | undefined | null;
|
13
|
+
/**
|
14
|
+
* Событие нажатия на категорию.
|
15
|
+
*/
|
16
|
+
clickCategoryEvent: EventEmitter<T>;
|
17
|
+
/**
|
18
|
+
* Инициализирует экземпляр класса {@link ScCategoriesListComponent}.
|
19
|
+
*
|
20
|
+
* @param urls объект информации о базовом списке ссылок приложения.
|
21
|
+
*/
|
22
|
+
constructor(urls: ScIUrls);
|
23
|
+
/**
|
24
|
+
* Возвращает путь до изображения на сервере.
|
25
|
+
*
|
26
|
+
* @param imgPath путь, где хранится изображение.
|
27
|
+
*/
|
28
|
+
getCategoryImage(imgPath: string): string;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScCategoriesListComponent<any>, never>;
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCategoriesListComponent<any>, "sc-categories-list", never, { "categories": "categories"; }, { "clickCategoryEvent": "clickCategoryEvent"; }, never, never, false>;
|
31
|
+
}
|
package/catalog/index.d.ts
CHANGED
@@ -6,18 +6,19 @@ import * as i4 from "./input-quantity/sc-input-quantity.component";
|
|
6
6
|
import * as i5 from "./price-card/sc-price-card.component";
|
7
7
|
import * as i6 from "./price-warehouse-stock/sc-price-warehouse-stock.component";
|
8
8
|
import * as i7 from "./price-history/sc-price-history.component";
|
9
|
-
import * as i8 from "
|
10
|
-
import * as i9 from "@angular/
|
11
|
-
import * as i10 from "@
|
12
|
-
import * as i11 from "@taiga-ui/
|
13
|
-
import * as i12 from "@
|
14
|
-
import * as i13 from "
|
15
|
-
import * as i14 from "
|
9
|
+
import * as i8 from "./categories-list/sc-categories-list.component";
|
10
|
+
import * as i9 from "@angular/common";
|
11
|
+
import * as i10 from "@angular/router";
|
12
|
+
import * as i11 from "@taiga-ui/core";
|
13
|
+
import * as i12 from "@taiga-ui/kit";
|
14
|
+
import * as i13 from "@angular/forms";
|
15
|
+
import * as i14 from "ngx-echarts";
|
16
|
+
import * as i15 from "@taiga-ui/cdk";
|
16
17
|
/**
|
17
18
|
* Модуль каталога.
|
18
19
|
*/
|
19
20
|
export declare class ScCatalogModule {
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCatalogModule, never>;
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCatalogModule, [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent], [typeof
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScCatalogModule, [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent], [typeof i9.CommonModule, typeof i10.RouterModule, typeof i11.TuiButtonModule, typeof i11.TuiSvgModule, typeof i12.TuiIslandModule, typeof i12.TuiInputNumberModule, typeof i11.TuiLabelModule, typeof i11.TuiTextfieldControllerModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i11.TuiHintModule, typeof i11.TuiModeModule, typeof i12.TuiFieldErrorPipeModule, typeof i11.TuiLoaderModule, typeof i11.TuiLinkModule, typeof i12.TuiElasticContainerModule, typeof i14.NgxEchartsModule, typeof i15.TuiLetModule], [typeof i1.ScPriceListPaginationComponent, typeof i2.ScCategoryCardComponent, typeof i3.ScFavoriteBtnComponent, typeof i4.ScInputQuantityComponent, typeof i5.ScPriceCardComponent, typeof i6.ScPriceWarehouseStockComponent, typeof i7.ScPriceHistoryComponent, typeof i8.ScCategoriesListComponent]>;
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScCatalogModule>;
|
23
24
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ScIContact } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент контактного лица в списке.
|
7
|
+
*/
|
8
|
+
export declare class ScContactsAccordionComponent {
|
9
|
+
/**
|
10
|
+
* Контактные лица.
|
11
|
+
*/
|
12
|
+
contacts$: Observable<ScIContact[] | null>;
|
13
|
+
/**
|
14
|
+
* Событие нажатия на кнопку добавления контактного лица.
|
15
|
+
*/
|
16
|
+
addContactClick: EventEmitter<void>;
|
17
|
+
/**
|
18
|
+
* Событие нажатия на кнопку редактирование контактного лица.
|
19
|
+
*/
|
20
|
+
editContactClick: EventEmitter<void>;
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScContactsAccordionComponent, never>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScContactsAccordionComponent, "sc-contacts-accordion", never, { "contacts$": "contacts$"; }, { "addContactClick": "addContactClick"; "editContactClick": "editContactClick"; }, never, never, false>;
|
23
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./contacts-accordion/sc-contacts-accordion.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "../accordion/sc-accordion.module";
|
5
|
+
import * as i4 from "@taiga-ui/core";
|
6
|
+
import * as i5 from "@taiga-ui/cdk";
|
7
|
+
/**
|
8
|
+
* Модуль контактных лиц.
|
9
|
+
*/
|
10
|
+
export declare class ScContactsModule {
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScContactsModule, never>;
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScContactsModule, [typeof i1.ScContactsAccordionComponent], [typeof i2.CommonModule, typeof i3.ScAccordionModule, typeof i4.TuiButtonModule, typeof i4.TuiModeModule, typeof i4.TuiLoaderModule, typeof i5.TuiLetModule, typeof i4.TuiNotificationModule, typeof i4.TuiLinkModule, typeof i4.TuiFormatPhonePipeModule], [typeof i1.ScContactsAccordionComponent]>;
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScContactsModule>;
|
14
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { ScContragent, ScContragentService, ScIContact } from '@snabcentr/client-core';
|
3
|
+
import { ScIBankAccount } from '@snabcentr/client-core/contragent/dto/sc-i-bank-account';
|
4
|
+
import { Observable } from 'rxjs';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Компонент контрагента пользователя.
|
8
|
+
*/
|
9
|
+
export declare class ScContragentsAccordionItemComponent implements OnInit {
|
10
|
+
private readonly contragentService;
|
11
|
+
/**
|
12
|
+
* Контрагент пользователя.
|
13
|
+
*/
|
14
|
+
contragent: ScContragent;
|
15
|
+
/**
|
16
|
+
* Событие нажатия на кнопку добавления банковского счёта контрагенту.
|
17
|
+
*/
|
18
|
+
addBankAccountsClick: EventEmitter<void>;
|
19
|
+
/**
|
20
|
+
* Событие нажатия на кнопку редактирования банковского счёта контрагента.
|
21
|
+
*/
|
22
|
+
editBankAccountsContragentClick: EventEmitter<void>;
|
23
|
+
/**
|
24
|
+
* Событие нажатия на кнопку редактирования контрагента.
|
25
|
+
*/
|
26
|
+
editContragentClick: EventEmitter<void>;
|
27
|
+
/**
|
28
|
+
* Список банковских счетов контрагента.
|
29
|
+
*/
|
30
|
+
bankAccounts$?: Observable<ScIBankAccount[] | null>;
|
31
|
+
/**
|
32
|
+
* Список банковских счетов контрагента.
|
33
|
+
*/
|
34
|
+
contacts$?: Observable<ScIContact[] | null>;
|
35
|
+
/**
|
36
|
+
* Инициализирует экземпляр класса {@link ScContragentsAccordionItemComponent}.
|
37
|
+
*
|
38
|
+
* @param contragentService Сервис работы с контрагентами.
|
39
|
+
*/
|
40
|
+
constructor(contragentService: ScContragentService);
|
41
|
+
/** @inheritDoc */
|
42
|
+
ngOnInit(): void;
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScContragentsAccordionItemComponent, never>;
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScContragentsAccordionItemComponent, "sc-contragents-accordion-item", never, { "contragent": "contragent"; }, { "addBankAccountsClick": "addBankAccountsClick"; "editBankAccountsContragentClick": "editBankAccountsContragentClick"; "editContragentClick": "editContragentClick"; }, never, never, false>;
|
45
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ScContragent, ScContragentService } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент контрагента пользователя.
|
7
|
+
*/
|
8
|
+
export declare class ScContragentsAccordionComponent {
|
9
|
+
private readonly contragentService;
|
10
|
+
/**
|
11
|
+
* {@link Observable} данных о контрагентах пользователя.
|
12
|
+
*/
|
13
|
+
contragents$: Observable<ScContragent[] | null>;
|
14
|
+
/**
|
15
|
+
* Событие нажатия на кнопку добавления контрагента.
|
16
|
+
*/
|
17
|
+
addContragentClick: EventEmitter<void>;
|
18
|
+
/**
|
19
|
+
* Событие нажатия на кнопку редактирования банковского счёта контрагента.
|
20
|
+
*/
|
21
|
+
editBankAccountsContragentClick: EventEmitter<void>;
|
22
|
+
/**
|
23
|
+
* Событие нажатия на кнопку добавления банковского счёта контрагенту.
|
24
|
+
*/
|
25
|
+
addBankAccountsClick: EventEmitter<void>;
|
26
|
+
/**
|
27
|
+
* Событие нажатия на кнопку редактирования контрагента.
|
28
|
+
*/
|
29
|
+
editContragentClick: EventEmitter<void>;
|
30
|
+
/**
|
31
|
+
* Инициализирует экземпляр класса {@link ScContragentsAccordionComponent}.
|
32
|
+
*
|
33
|
+
* @param contragentService Сервис работы с контрагентами.
|
34
|
+
*/
|
35
|
+
constructor(contragentService: ScContragentService);
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScContragentsAccordionComponent, never>;
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScContragentsAccordionComponent, "sc-contragents-accordion", never, {}, { "addContragentClick": "addContragentClick"; "editBankAccountsContragentClick": "editBankAccountsContragentClick"; "addBankAccountsClick": "addBankAccountsClick"; "editContragentClick": "editContragentClick"; }, never, never, false>;
|
38
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./contragents-accordion/sc-contragents-accordion.component";
|
3
|
+
import * as i2 from "./contragents-accordion/contragents-accordion-item/sc-contragents-accordion-item.component";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "../accordion/sc-accordion.module";
|
6
|
+
import * as i5 from "@taiga-ui/core";
|
7
|
+
import * as i6 from "@taiga-ui/cdk";
|
8
|
+
import * as i7 from "../contacts/sc-contacts.module";
|
9
|
+
/**
|
10
|
+
* Модуль для отображение контента разделами, с возможностью скрывать и отображать содержимое.
|
11
|
+
*/
|
12
|
+
export declare class ScContragentsModule {
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScContragentsModule, never>;
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScContragentsModule, [typeof i1.ScContragentsAccordionComponent, typeof i2.ScContragentsAccordionItemComponent], [typeof i3.CommonModule, typeof i4.ScAccordionModule, typeof i5.TuiButtonModule, typeof i5.TuiModeModule, typeof i5.TuiLoaderModule, typeof i6.TuiLetModule, typeof i5.TuiNotificationModule, typeof i7.ScContactsModule], [typeof i1.ScContragentsAccordionComponent]>;
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScContragentsModule>;
|
16
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { ScDeliveryAddressService, ScIContact, ScIDeliveryAddress } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент адреса доставки.
|
7
|
+
*/
|
8
|
+
export declare class ScDeliveryAddressAccordionItemComponent implements OnInit {
|
9
|
+
private readonly deliveryAddressService;
|
10
|
+
/**
|
11
|
+
* Адрес доставки.
|
12
|
+
*/
|
13
|
+
deliveryAddress: ScIDeliveryAddress;
|
14
|
+
/**
|
15
|
+
* Событие нажатия на кнопку редактирования контрагента.
|
16
|
+
*/
|
17
|
+
editDeliveryAddressClick: EventEmitter<void>;
|
18
|
+
/**
|
19
|
+
* Список банковских счетов контрагента.
|
20
|
+
*/
|
21
|
+
contacts$?: Observable<ScIContact[] | null>;
|
22
|
+
/**
|
23
|
+
* Инициализирует экземпляр класса {@link ScDeliveryAddressAccordionItemComponent}.
|
24
|
+
*
|
25
|
+
* @param deliveryAddressService Сервис работы с адресами доставки.
|
26
|
+
*/
|
27
|
+
constructor(deliveryAddressService: ScDeliveryAddressService);
|
28
|
+
/** @inheritDoc */
|
29
|
+
ngOnInit(): void;
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressAccordionItemComponent, never>;
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionItemComponent, "sc-delivery-address-accordion-item", never, { "deliveryAddress": "deliveryAddress"; }, { "editDeliveryAddressClick": "editDeliveryAddressClick"; }, never, never, false>;
|
32
|
+
}
|
package/delivery-address/delivery-address-accordion/sc-delivery-address-accordion.component.d.ts
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ScDeliveryAddressService, ScIDeliveryAddress } from '@snabcentr/client-core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Компонент адресов доставки.
|
7
|
+
*/
|
8
|
+
export declare class ScDeliveryAddressAccordionComponent {
|
9
|
+
private readonly deliveryAddressService;
|
10
|
+
/**
|
11
|
+
* {@link Observable} данных адресов доставки.
|
12
|
+
*/
|
13
|
+
deliveryAddress$: Observable<ScIDeliveryAddress[] | null>;
|
14
|
+
/**
|
15
|
+
* Событие нажатия на кнопку добавления адреса доставки клиента.
|
16
|
+
*/
|
17
|
+
addDeliveryAddressClick: EventEmitter<void>;
|
18
|
+
/**
|
19
|
+
* Инициализирует экземпляр класса {@link ScDeliveryAddressAccordionComponent}.
|
20
|
+
*
|
21
|
+
* @param deliveryAddressService Сервис работы с адресами доставки.
|
22
|
+
*/
|
23
|
+
constructor(deliveryAddressService: ScDeliveryAddressService);
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressAccordionComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDeliveryAddressAccordionComponent, "sc-delivery-address-accordion", never, {}, { "addDeliveryAddressClick": "addDeliveryAddressClick"; }, never, never, false>;
|
26
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./delivery-address-accordion/sc-delivery-address-accordion.component";
|
3
|
+
import * as i2 from "./delivery-address-accordion/delivery-address-accordion-item/sc-delivery-address-accordion-item.component";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "../accordion/sc-accordion.module";
|
6
|
+
import * as i5 from "@taiga-ui/core";
|
7
|
+
import * as i6 from "@taiga-ui/cdk";
|
8
|
+
import * as i7 from "../contacts/sc-contacts.module";
|
9
|
+
/**
|
10
|
+
* Модуль для отображение адресов доставки разделами, с возможностью скрывать и отображать содержимое.
|
11
|
+
*/
|
12
|
+
export declare class ScDeliveryAddressModule {
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDeliveryAddressModule, never>;
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScDeliveryAddressModule, [typeof i1.ScDeliveryAddressAccordionComponent, typeof i2.ScDeliveryAddressAccordionItemComponent], [typeof i3.CommonModule, typeof i4.ScAccordionModule, typeof i5.TuiButtonModule, typeof i5.TuiModeModule, typeof i5.TuiLoaderModule, typeof i6.TuiLetModule, typeof i5.TuiNotificationModule, typeof i7.ScContactsModule], [typeof i1.ScDeliveryAddressAccordionComponent]>;
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScDeliveryAddressModule>;
|
16
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export * from './sc-accordion-content.directive';
|
2
|
+
export * from './sc-accordion.component';
|
3
|
+
export * from './sc-accordion.module';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jbGllbnQtdWkvYWNjb3JkaW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zYy1hY2NvcmRpb24tY29udGVudC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9zYy1hY2NvcmRpb24uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vc2MtYWNjb3JkaW9uLm1vZHVsZSc7XG4iXX0=
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Directive } from '@angular/core';
|
2
|
+
import { PolymorpheusTemplate } from '@tinkoff/ng-polymorpheus';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* Директива содержимого компонента, позволяющего отображать и скрывать содержимое в разделах.
|
6
|
+
*/
|
7
|
+
export class ScAccordionContentDirective extends PolymorpheusTemplate {
|
8
|
+
}
|
9
|
+
ScAccordionContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ScAccordionContentDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
10
|
+
ScAccordionContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ScAccordionContentDirective, selector: "ng-template[scAccordionContent]", usesInheritance: true, ngImport: i0 });
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ScAccordionContentDirective, decorators: [{
|
12
|
+
type: Directive,
|
13
|
+
args: [{
|
14
|
+
selector: 'ng-template[scAccordionContent]',
|
15
|
+
}]
|
16
|
+
}] });
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtYWNjb3JkaW9uLWNvbnRlbnQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xpZW50LXVpL2FjY29yZGlvbi9zYy1hY2NvcmRpb24tY29udGVudC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7QUFFaEU7O0dBRUc7QUFJSCxNQUFNLE9BQU8sMkJBQTRCLFNBQVEsb0JBQTZDOzt3SEFBakYsMkJBQTJCOzRHQUEzQiwyQkFBMkI7MkZBQTNCLDJCQUEyQjtrQkFIdkMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsaUNBQWlDO2lCQUM5QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgUG9seW1vcnBoZXVzVGVtcGxhdGUgfSBmcm9tICdAdGlua29mZi9uZy1wb2x5bW9ycGhldXMnO1xuXG4vKipcbiAqINCU0LjRgNC10LrRgtC40LLQsCDRgdC+0LTQtdGA0LbQuNC80L7Qs9C+INC60L7QvNC/0L7QvdC10L3RgtCwLCDQv9C+0LfQstC+0LvRj9GO0YnQtdCz0L4g0L7RgtC+0LHRgNCw0LbQsNGC0Ywg0Lgg0YHQutGA0YvQstCw0YLRjCDRgdC+0LTQtdGA0LbQuNC80L7QtSDQsiDRgNCw0LfQtNC10LvQsNGFLlxuICovXG5ARGlyZWN0aXZlKHtcbiAgICBzZWxlY3RvcjogJ25nLXRlbXBsYXRlW3NjQWNjb3JkaW9uQ29udGVudF0nLFxufSlcbmV4cG9ydCBjbGFzcyBTY0FjY29yZGlvbkNvbnRlbnREaXJlY3RpdmUgZXh0ZW5kcyBQb2x5bW9ycGhldXNUZW1wbGF0ZTxSZWNvcmQ8c3RyaW5nLCB1bmtub3duPj4ge31cbiJdfQ==
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
2
|
+
import { ScAccordionContentDirective } from './sc-accordion-content.directive';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "@tinkoff/ng-polymorpheus";
|
6
|
+
import * as i3 from "@taiga-ui/core";
|
7
|
+
import * as i4 from "@taiga-ui/kit";
|
8
|
+
/**
|
9
|
+
* Компонент, позволяющий отображать и скрывать содержимое в разделах.
|
10
|
+
*/
|
11
|
+
export class ScAccordionComponent {
|
12
|
+
constructor() {
|
13
|
+
/**
|
14
|
+
* Состояние отображения кнопки добавления.
|
15
|
+
*/
|
16
|
+
this.showAddButton = true;
|
17
|
+
/**
|
18
|
+
* Состояние отображения кнопки удаления.
|
19
|
+
*/
|
20
|
+
this.showDeleteButton = false;
|
21
|
+
/**
|
22
|
+
* Состояние отображения стрелки.
|
23
|
+
*/
|
24
|
+
this.showArrow = true;
|
25
|
+
/**
|
26
|
+
* Состояние открытия содержимого компонента.
|
27
|
+
*/
|
28
|
+
this.open = false;
|
29
|
+
/**
|
30
|
+
* Размер элементов {@link TuiAccordionItemComponent}.
|
31
|
+
*/
|
32
|
+
this.size = 's';
|
33
|
+
/**
|
34
|
+
* Событие нажатия на кнопку добавления.
|
35
|
+
*/
|
36
|
+
this.addButtonClick = new EventEmitter();
|
37
|
+
/**
|
38
|
+
* Событие нажатия на кнопку удаления.
|
39
|
+
*/
|
40
|
+
this.deleteButtonClick = new EventEmitter();
|
41
|
+
}
|
42
|
+
}
|
43
|
+
ScAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ScAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
44
|
+
ScAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ScAccordionComponent, selector: "sc-accordion", inputs: { showAddButton: "showAddButton", showDeleteButton: "showDeleteButton", showArrow: "showArrow", open: "open", size: "size" }, outputs: { addButtonClick: "addButtonClick", deleteButtonClick: "deleteButtonClick" }, host: { properties: { "class._has-add-button": "this.showAddButton", "class._has-delete-button": "this.showDeleteButton", "class._has-arrow": "this.showArrow", "attr.data-size": "this.size" } }, queries: [{ propertyName: "content", first: true, predicate: ScAccordionContentDirective, descendants: true }], ngImport: i0, template: "<tui-accordion [rounded]=\"false\">\n <tui-accordion-item [size]=\"size\" [borders]=\"null\" [showArrow]=\"showArrow\" [open]=\"open\">\n <div class=\"flex grow justify-between\">\n <div class=\"font-bold self-center\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"showAddButton || showDeleteButton\" class=\"flex\">\n <ng-container *ngIf=\"showDeleteButton\">\n <button tuiIconButton size=\"m\" type=\"button\" icon=\"tuiIconTrash2Large\" appearance=\"flat\" (click)=\"$event.stopPropagation(); deleteButtonClick.emit()\"></button>\n </ng-container>\n <ng-container *ngIf=\"showAddButton\">\n <button\n tuiIconButton\n size=\"m\"\n type=\"button\"\n icon=\"tuiIconPlusLarge\"\n tuiMode=\"onLight\"\n appearance=\"flat\"\n (click)=\"$event.stopPropagation(); addButtonClick.emit()\"\n ></button>\n </ng-container>\n </div>\n </div>\n <ng-template tuiAccordionItemContent>\n <tui-elastic-container *ngIf=\"content\">\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n </tui-elastic-container>\n </ng-template>\n </tui-accordion-item>\n</tui-accordion>\n", styles: ["::ng-deep tui-accordion-item>.t-wrapper .t-header{border-radius:.75rem;flex-direction:row-reverse;min-height:var(--tui-height-m);font:var(--tui-font-text-m);padding:0 .5rem 0 1rem;gap:.75rem;background:var(--tui-base-02)}:host[data-size=s] ::ng-deep tui-accordion-item>.t-wrapper .t-header{padding:0 .5rem 0 1rem;font:var(--tui-font-text-s)}:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper .t-header{padding-left:.75rem}:host._has-add-button ::ng-deep tui-accordion-item>.t-wrapper .t-header,:host._has-delete-button ::ng-deep tui-accordion-item>.t-wrapper .t-header{padding-right:0}::ng-deep tui-accordion-item>.t-wrapper .t-header_hoverable:hover:not([data-mode]){background:var(--tui-base-03)!important}::ng-deep tui-accordion-item>.t-wrapper .t-header .t-icon{color:#000}:host:hover:not([data-mode]) ::ng-deep tui-accordion-item>.t-wrapper .t-header .t-icon{color:#000}::ng-deep tui-accordion-item>.t-wrapper .t-title{white-space:normal}:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper .t-title{margin-right:0}::ng-deep tui-accordion-item>.t-wrapper tui-expand>.t-wrapper>.t-content{padding-inline:0!important;padding-block:1rem}:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper tui-expand>.t-wrapper>.t-content,:host[data-size=s]:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper tui-expand>.t-wrapper>.t-content{padding-left:1rem!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i3.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "component", type: i4.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { kind: "component", type: i4.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { kind: "directive", type: i4.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }, { kind: "directive", type: i3.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { kind: "component", type: i4.TuiElasticContainerComponent, selector: "tui-elastic-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ScAccordionComponent, decorators: [{
|
46
|
+
type: Component,
|
47
|
+
args: [{ selector: 'sc-accordion', changeDetection: ChangeDetectionStrategy.OnPush, template: "<tui-accordion [rounded]=\"false\">\n <tui-accordion-item [size]=\"size\" [borders]=\"null\" [showArrow]=\"showArrow\" [open]=\"open\">\n <div class=\"flex grow justify-between\">\n <div class=\"font-bold self-center\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"showAddButton || showDeleteButton\" class=\"flex\">\n <ng-container *ngIf=\"showDeleteButton\">\n <button tuiIconButton size=\"m\" type=\"button\" icon=\"tuiIconTrash2Large\" appearance=\"flat\" (click)=\"$event.stopPropagation(); deleteButtonClick.emit()\"></button>\n </ng-container>\n <ng-container *ngIf=\"showAddButton\">\n <button\n tuiIconButton\n size=\"m\"\n type=\"button\"\n icon=\"tuiIconPlusLarge\"\n tuiMode=\"onLight\"\n appearance=\"flat\"\n (click)=\"$event.stopPropagation(); addButtonClick.emit()\"\n ></button>\n </ng-container>\n </div>\n </div>\n <ng-template tuiAccordionItemContent>\n <tui-elastic-container *ngIf=\"content\">\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n </tui-elastic-container>\n </ng-template>\n </tui-accordion-item>\n</tui-accordion>\n", styles: ["::ng-deep tui-accordion-item>.t-wrapper .t-header{border-radius:.75rem;flex-direction:row-reverse;min-height:var(--tui-height-m);font:var(--tui-font-text-m);padding:0 .5rem 0 1rem;gap:.75rem;background:var(--tui-base-02)}:host[data-size=s] ::ng-deep tui-accordion-item>.t-wrapper .t-header{padding:0 .5rem 0 1rem;font:var(--tui-font-text-s)}:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper .t-header{padding-left:.75rem}:host._has-add-button ::ng-deep tui-accordion-item>.t-wrapper .t-header,:host._has-delete-button ::ng-deep tui-accordion-item>.t-wrapper .t-header{padding-right:0}::ng-deep tui-accordion-item>.t-wrapper .t-header_hoverable:hover:not([data-mode]){background:var(--tui-base-03)!important}::ng-deep tui-accordion-item>.t-wrapper .t-header .t-icon{color:#000}:host:hover:not([data-mode]) ::ng-deep tui-accordion-item>.t-wrapper .t-header .t-icon{color:#000}::ng-deep tui-accordion-item>.t-wrapper .t-title{white-space:normal}:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper .t-title{margin-right:0}::ng-deep tui-accordion-item>.t-wrapper tui-expand>.t-wrapper>.t-content{padding-inline:0!important;padding-block:1rem}:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper tui-expand>.t-wrapper>.t-content,:host[data-size=s]:host._has-arrow ::ng-deep tui-accordion-item>.t-wrapper tui-expand>.t-wrapper>.t-content{padding-left:1rem!important}\n"] }]
|
48
|
+
}], propDecorators: { showAddButton: [{
|
49
|
+
type: Input
|
50
|
+
}, {
|
51
|
+
type: HostBinding,
|
52
|
+
args: ['class._has-add-button']
|
53
|
+
}], showDeleteButton: [{
|
54
|
+
type: Input
|
55
|
+
}, {
|
56
|
+
type: HostBinding,
|
57
|
+
args: ['class._has-delete-button']
|
58
|
+
}], showArrow: [{
|
59
|
+
type: Input
|
60
|
+
}, {
|
61
|
+
type: HostBinding,
|
62
|
+
args: ['class._has-arrow']
|
63
|
+
}], open: [{
|
64
|
+
type: Input
|
65
|
+
}], size: [{
|
66
|
+
type: Input
|
67
|
+
}, {
|
68
|
+
type: HostBinding,
|
69
|
+
args: ['attr.data-size']
|
70
|
+
}], content: [{
|
71
|
+
type: ContentChild,
|
72
|
+
args: [ScAccordionContentDirective]
|
73
|
+
}], addButtonClick: [{
|
74
|
+
type: Output
|
75
|
+
}], deleteButtonClick: [{
|
76
|
+
type: Output
|
77
|
+
}] } });
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtYWNjb3JkaW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9hY2NvcmRpb24vc2MtYWNjb3JkaW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9hY2NvcmRpb24vc2MtYWNjb3JkaW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUF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gICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8ZGl2ICpuZ0lmPVwic2hvd0FkZEJ1dHRvbiB8fCBzaG93RGVsZXRlQnV0dG9uXCIgY2xhc3M9XCJmbGV4XCI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cInNob3dEZWxldGVCdXR0b25cIj5cbiAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0dWlJY29uQnV0dG9uIHNpemU9XCJtXCIgdHlwZT1cImJ1dHRvblwiIGljb249XCJ0dWlJY29uVHJhc2gyTGFyZ2VcIiBhcHBlYXJhbmNlPVwiZmxhdFwiIChjbGljayk9XCIkZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7IGRlbGV0ZUJ1dHRvbkNsaWNrLmVtaXQoKVwiPjwvYnV0dG9uPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJzaG93QWRkQnV0dG9uXCI+XG4gICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIHR1aUljb25CdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIHNpemU9XCJtXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgaWNvbj1cInR1aUljb25QbHVzTGFyZ2VcIlxuICAgICAgICAgICAgICAgICAgICAgICAgdHVpTW9kZT1cIm9uTGlnaHRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImZsYXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIiRldmVudC5zdG9wUHJvcGFnYXRpb24oKTsgYWRkQnV0dG9uQ2xpY2suZW1pdCgpXCJcbiAgICAgICAgICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8bmctdGVtcGxhdGUgdHVpQWNjb3JkaW9uSXRlbUNvbnRlbnQ+XG4gICAgICAgICAgICA8dHVpLWVsYXN0aWMtY29udGFpbmVyICpuZ0lmPVwiY29udGVudFwiPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKnBvbHltb3JwaGV1c091dGxldD1cImNvbnRlbnQgYXMgdGV4dFwiPlxuICAgICAgICAgICAgICAgICAgICB7eyB0ZXh0IH19XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8L3R1aS1lbGFzdGljLWNvbnRhaW5lcj5cbiAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICA8L3R1aS1hY2NvcmRpb24taXRlbT5cbjwvdHVpLWFjY29yZGlvbj5cbiJdfQ==
|