@cbm-common/cbm-types 0.0.236 → 0.0.238
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.
- package/lib/components/add-client/add-client.d.ts +3 -4
- package/lib/components/tree-select/tree-select.d.ts +31 -10
- package/lib/domain/models/client.domain.model.d.ts +12 -0
- package/lib/domain/models/country-code.domain.model.d.ts +4 -0
- package/lib/domain/repositories/country-code.domain.repository.d.ts +1 -1
- package/lib/infrastructure/repositories/country-code.infrastructure.repository.d.ts +1 -1
- package/lib/infrastructure/services/country-code.infrastructure.service.d.ts +1 -1
- package/package.json +2 -2
- package/lib/domain/repositories/person-type-uafe.repository.d.ts +0 -8
|
@@ -10,7 +10,6 @@ import { CbmRateModel } from '../../domain/models/rate.domain.model';
|
|
|
10
10
|
import { CbmSellerModel } from '../../domain/models/seller.domain.model';
|
|
11
11
|
import { CbmSettingsProfessionsModel } from '../../domain/models/settings-professions.domain.model';
|
|
12
12
|
import { CbmBillingDomainRepository } from '../../domain/repositories/billing.domain.repository';
|
|
13
|
-
import { CbmClientCategoryDomainRepository } from '../../domain/repositories/client-category.domain.repository';
|
|
14
13
|
import { CbmClientGroupRepository } from '../../domain/repositories/client-group.domain.repository';
|
|
15
14
|
import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
|
|
16
15
|
import { CbmCountryCodeDomainRepository } from '../../domain/repositories/country-code.domain.repository';
|
|
@@ -38,11 +37,10 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
38
37
|
private clientGroupRepository;
|
|
39
38
|
private clientRepository;
|
|
40
39
|
private rateRepository;
|
|
41
|
-
private clientCategoryRepository;
|
|
42
40
|
private settingsProfessionsRepository;
|
|
43
41
|
private personTypeUAFERepository;
|
|
44
42
|
private readonly accountValidatorsDomainService;
|
|
45
|
-
constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, rateRepository: CbmRateDomainRepository,
|
|
43
|
+
constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, rateRepository: CbmRateDomainRepository, settingsProfessionsRepository: CbmSettingsProfessionsDomainRepository, personTypeUAFERepository: CbmPersonTypeUAFERepository, accountValidatorsDomainService: AccountValidatorsDomainService);
|
|
46
44
|
dropdownMenuRef: import("@angular/core").Signal<ElementRef<HTMLUListElement> | undefined>;
|
|
47
45
|
clientId: import("@angular/core").InputSignal<string | undefined>;
|
|
48
46
|
isFromOrigin: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -77,6 +75,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
77
75
|
isEmailInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
78
76
|
statusOfFetchRate: import("@angular/core").WritableSignal<TStatus>;
|
|
79
77
|
statusOfFetProfession: import("@angular/core").WritableSignal<TStatus>;
|
|
78
|
+
subjectToSearchSubjectClass$: Subject<string>;
|
|
80
79
|
subjectToSearchDocumentType$: Subject<string>;
|
|
81
80
|
subjectToSearchSeller$: Subject<string>;
|
|
82
81
|
subjectToSearchPriceList$: Subject<string>;
|
|
@@ -158,7 +157,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
158
157
|
private clearOptionalControlsValidators;
|
|
159
158
|
fetchClientData(): void;
|
|
160
159
|
fetchDocumentTypes(searchTerm?: string): void;
|
|
161
|
-
private
|
|
160
|
+
private loadDocumentTypesWithValidation;
|
|
162
161
|
getDocumentNumberMaxLength(): number | undefined;
|
|
163
162
|
getDocumentNumberPattern(): string;
|
|
164
163
|
extractClientData(): void;
|
|
@@ -2,11 +2,12 @@ import { DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmTreeSelect } from './types';
|
|
5
|
-
type
|
|
5
|
+
type TreeOptionInput<T> = CbmTreeSelect.Children<T> | CbmTreeSelect.Node<T>;
|
|
6
|
+
type TreeChangeValue<T> = T | T[] | null;
|
|
6
7
|
export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlValueAccessor {
|
|
7
8
|
private readonly destroyRef;
|
|
8
9
|
constructor(destroyRef: DestroyRef);
|
|
9
|
-
options: import("@angular/core").InputSignal<
|
|
10
|
+
options: import("@angular/core").InputSignal<TreeOptionInput<T>>;
|
|
10
11
|
loading: import("@angular/core").InputSignal<boolean>;
|
|
11
12
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
12
13
|
invalid: import("@angular/core").InputSignal<boolean>;
|
|
@@ -14,15 +15,19 @@ export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlV
|
|
|
14
15
|
bindId: import("@angular/core").InputSignal<string>;
|
|
15
16
|
compareWith: import("@angular/core").InputSignal<((o1: T, o2: T) => boolean) | null>;
|
|
16
17
|
typeahead: import("@angular/core").InputSignal<Subject<string> | null>;
|
|
18
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
closeOnSelect: import("@angular/core").InputSignal<boolean | null>;
|
|
17
20
|
isSmall: import("@angular/core").InputSignal<boolean>;
|
|
18
21
|
protected inputPlaceholder: import("@angular/core").Signal<string>;
|
|
19
22
|
protected inputLoading: import("@angular/core").Signal<boolean>;
|
|
20
23
|
protected inputInvalid: import("@angular/core").Signal<boolean>;
|
|
21
24
|
protected inputBindId: import("@angular/core").Signal<string>;
|
|
22
25
|
protected inputBindLabel: import("@angular/core").Signal<string>;
|
|
26
|
+
protected inputMultiple: import("@angular/core").Signal<boolean>;
|
|
27
|
+
protected inputCloseOnSelect: import("@angular/core").Signal<boolean>;
|
|
28
|
+
protected hasSelectedValue: import("@angular/core").Signal<boolean>;
|
|
23
29
|
protected containerRef: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
24
30
|
protected inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
25
|
-
protected optionsRef: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
26
31
|
focused: boolean;
|
|
27
32
|
protected signalFocused: import("@angular/core").WritableSignal<boolean>;
|
|
28
33
|
searchTerm: string | null;
|
|
@@ -30,17 +35,33 @@ export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlV
|
|
|
30
35
|
protected readonly notFound: {
|
|
31
36
|
label: string;
|
|
32
37
|
}[];
|
|
33
|
-
protected inputOptions: import("@angular/core").WritableSignal<CbmTreeSelect.Children<T
|
|
34
|
-
protected selectedNode: import("@angular/core").WritableSignal<
|
|
35
|
-
protected
|
|
36
|
-
|
|
38
|
+
protected inputOptions: import("@angular/core").WritableSignal<CbmTreeSelect.Children<T>>;
|
|
39
|
+
protected selectedNode: import("@angular/core").WritableSignal<CbmTreeSelect.Node<T> | null>;
|
|
40
|
+
protected selectedNodes: import("@angular/core").WritableSignal<CbmTreeSelect.Node<T>[]>;
|
|
41
|
+
protected selectedNodeLabel: import("@angular/core").Signal<string | null>;
|
|
42
|
+
onChange: (value: TreeChangeValue<T>) => void;
|
|
37
43
|
onTouched: () => void;
|
|
38
44
|
ngOnInit(): void;
|
|
39
|
-
registerOnChange(fn:
|
|
40
|
-
registerOnTouched(fn:
|
|
45
|
+
registerOnChange(fn: (value: TreeChangeValue<T>) => void): void;
|
|
46
|
+
registerOnTouched(fn: () => void): void;
|
|
41
47
|
setDisabledState(isDisabled: boolean): void;
|
|
42
|
-
writeValue(obj:
|
|
48
|
+
writeValue(obj: TreeChangeValue<T>): void;
|
|
43
49
|
subOberservers(): void;
|
|
44
50
|
setValue(node: CbmTreeSelect.Node<T> | null): void;
|
|
51
|
+
clearSelection(): void;
|
|
52
|
+
removeSelectedNode(node: CbmTreeSelect.Node<T>): void;
|
|
53
|
+
isSelected(node: CbmTreeSelect.Node<T>): boolean;
|
|
54
|
+
protected filterOptions(optionsInput: TreeOptionInput<T>, searchValue: string | null): CbmTreeSelect.Children<T>;
|
|
55
|
+
protected syncSelectedNodes(multiple: boolean): void;
|
|
56
|
+
protected mapValuesToNodes(values: readonly T[]): CbmTreeSelect.Node<T>[];
|
|
57
|
+
protected toggleNode(node: CbmTreeSelect.Node<T> | null): void;
|
|
58
|
+
protected findNodeByValue(value: T): CbmTreeSelect.Node<T> | null;
|
|
59
|
+
protected findNodeRecursive(children: CbmTreeSelect.Children<T>, value: T): CbmTreeSelect.Node<T> | null;
|
|
60
|
+
protected createNodeFromValue(value: T | null | undefined): CbmTreeSelect.Node<T> | null;
|
|
61
|
+
protected normalizeOptions(options: TreeOptionInput<T>): CbmTreeSelect.Children<T>;
|
|
62
|
+
protected resolveLabel(value: T): string;
|
|
63
|
+
protected compareValue(firstValue: T, secondValue: T): boolean;
|
|
64
|
+
protected resolveBoundId(value: T): unknown | null;
|
|
65
|
+
protected isRecord(value: unknown): value is Record<string, unknown>;
|
|
45
66
|
}
|
|
46
67
|
export {};
|
|
@@ -80,6 +80,9 @@ export declare namespace CbmClientModel {
|
|
|
80
80
|
nationality_name?: string;
|
|
81
81
|
nationality_code_export?: string;
|
|
82
82
|
nationality_code_uafe?: string;
|
|
83
|
+
type_subject?: string;
|
|
84
|
+
subject_id?: string;
|
|
85
|
+
description_subject?: string;
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
interface GetOneResponse {
|
|
@@ -140,6 +143,9 @@ export declare namespace CbmClientModel {
|
|
|
140
143
|
nationality_name?: string;
|
|
141
144
|
nationality_code_export?: string;
|
|
142
145
|
nationality_code_uafe?: string;
|
|
146
|
+
subject_id?: string;
|
|
147
|
+
type_subject?: string;
|
|
148
|
+
description_subject?: string;
|
|
143
149
|
}
|
|
144
150
|
namespace Data {
|
|
145
151
|
interface Branch {
|
|
@@ -345,6 +351,9 @@ export declare namespace CbmClientModel {
|
|
|
345
351
|
seller_cellphone?: string;
|
|
346
352
|
price_list_name?: string;
|
|
347
353
|
price_list_code?: string;
|
|
354
|
+
subject_id: string;
|
|
355
|
+
type_subject: string;
|
|
356
|
+
description_subject: string;
|
|
348
357
|
}
|
|
349
358
|
namespace SaveBody {
|
|
350
359
|
interface PaymentDeadline {
|
|
@@ -377,6 +386,9 @@ export declare namespace CbmClientModel {
|
|
|
377
386
|
professions_name?: string;
|
|
378
387
|
category_client_name?: string;
|
|
379
388
|
request_credit_value?: number;
|
|
389
|
+
subject_id?: string;
|
|
390
|
+
type_subject?: string;
|
|
391
|
+
description_subject?: string;
|
|
380
392
|
}
|
|
381
393
|
namespace UpdateBody {
|
|
382
394
|
interface PaymentDeadline {
|
|
@@ -4,5 +4,5 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
export declare class CbmCountryCodeDomainRepository implements ICbmCountryCodeInfrastructureRepository {
|
|
5
5
|
private readonly service;
|
|
6
6
|
constructor(service: ICbmCountryCodeInfrastructureRepository);
|
|
7
|
-
list(): Observable<CbmCountryCodeModel.ListResponse>;
|
|
7
|
+
list(params: CbmCountryCodeModel.ListParams): Observable<CbmCountryCodeModel.ListResponse>;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { CbmCountryCodeModel } from '../../domain/models/country-code.domain.model';
|
|
3
3
|
export interface ICbmCountryCodeInfrastructureRepository {
|
|
4
|
-
list(): Observable<CbmCountryCodeModel.ListResponse>;
|
|
4
|
+
list(params: CbmCountryCodeModel.ListParams): Observable<CbmCountryCodeModel.ListResponse>;
|
|
5
5
|
}
|
|
@@ -6,5 +6,5 @@ export declare class CountryCodeInfrastructureService implements ICbmCountryCode
|
|
|
6
6
|
private http;
|
|
7
7
|
constructor(http: HttpClient);
|
|
8
8
|
private readonly url;
|
|
9
|
-
list(): Observable<CbmCountryCodeModel.ListResponse>;
|
|
9
|
+
list(params: CbmCountryCodeModel.ListParams): Observable<CbmCountryCodeModel.ListResponse>;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CbmPersonTypeUAFEModel } from "../models/person-type-uafe.domain.model";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { ICbmPersonTypeUAFERepository } from "../../infrastructure/repositories/person-type-uafe.infrastructure.repository copy";
|
|
4
|
-
export declare class CbmPersonTypeUAFERepository implements ICbmPersonTypeUAFERepository {
|
|
5
|
-
private service;
|
|
6
|
-
constructor(service: CbmPersonTypeUAFERepository);
|
|
7
|
-
list(params: CbmPersonTypeUAFEModel.ListParams): Observable<CbmPersonTypeUAFEModel.ListResponse>;
|
|
8
|
-
}
|