intelica-library-ui 0.1.187 → 0.1.189
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/fesm2022/intelica-library-ui.mjs +613 -38
- package/fesm2022/intelica-library-ui.mjs.map +1 -1
- package/lib/components/sorting/model/order.constants.d.ts +2 -2
- package/lib/components/titles/model/title-filter.model.d.ts +6 -0
- package/lib/components/titles/model/title-select.model.d.ts +10 -0
- package/lib/components/titles/model/user-context.model.d.ts +12 -0
- package/lib/components/titles/titles.component.d.ts +106 -0
- package/lib/constants/constants.d.ts +3 -0
- package/lib/constants/titles.constants.d.ts +49 -0
- package/lib/services/shared.service.d.ts +14 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GroupRegionCountryBankModel } from "../../../constants/titles.constants";
|
|
2
|
+
export interface IUserContext {
|
|
3
|
+
LangSite: number;
|
|
4
|
+
PerfilInternal: boolean;
|
|
5
|
+
IsIntelicaUser: boolean;
|
|
6
|
+
IsGroupProfile: boolean;
|
|
7
|
+
listGroupAll: GroupRegionCountryBankModel[];
|
|
8
|
+
listRegionAll: GroupRegionCountryBankModel[];
|
|
9
|
+
listCountryAll: GroupRegionCountryBankModel[];
|
|
10
|
+
listBankAll: GroupRegionCountryBankModel[];
|
|
11
|
+
ListGroupRegionCountryBank: GroupRegionCountryBankModel[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy } from "@angular/core";
|
|
2
|
+
import { Subscription } from "rxjs";
|
|
3
|
+
import { GroupRegionCountryBankModel } from "../../constants/titles.constants";
|
|
4
|
+
import { TitleSelectModel } from "./model/title-select.model";
|
|
5
|
+
import { TitleFilterModel } from "./model/title-filter.model";
|
|
6
|
+
import { IUserContext } from "./model/user-context.model";
|
|
7
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
8
|
+
import { GlobalTermService } from "../../services/globalTerm.service";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class TitlesComponent implements ControlValueAccessor, OnChanges, OnDestroy {
|
|
11
|
+
readonly globalTerms: GlobalTermService;
|
|
12
|
+
private readonly SharedService;
|
|
13
|
+
/** Modelo de selección de filtro. */
|
|
14
|
+
setFilter: TitleSelectModel | undefined;
|
|
15
|
+
/** Título y subtítulo */
|
|
16
|
+
title: string;
|
|
17
|
+
subTitle: string;
|
|
18
|
+
/** Mostrar filtros en cabecera */
|
|
19
|
+
showFilterHead: boolean;
|
|
20
|
+
/** Agregar opción Global (-1,-1,-1,-1) */
|
|
21
|
+
addGlobal: boolean;
|
|
22
|
+
/** ID para helper */
|
|
23
|
+
helperId: string;
|
|
24
|
+
/** Evento de cambio */
|
|
25
|
+
changeCboTitle: EventEmitter<any>;
|
|
26
|
+
/** Dropdown alterno (caja grande) */
|
|
27
|
+
showAlterFilterHead: boolean;
|
|
28
|
+
subShowAlterFilterHead: boolean;
|
|
29
|
+
/** Filtros alternos (categoría / subcategoría) */
|
|
30
|
+
alterFilterValues: any[];
|
|
31
|
+
alterFilterValue: number | null | undefined;
|
|
32
|
+
subAlterFilterValues: any[];
|
|
33
|
+
subAlterFilterValue: number | null | undefined;
|
|
34
|
+
/** Bancos disponibles (para filtrar) */
|
|
35
|
+
bankIdListAvaliable: any[];
|
|
36
|
+
/** Dropdown alterno (caja grande) */
|
|
37
|
+
isInternal: boolean;
|
|
38
|
+
currentUser: IUserContext;
|
|
39
|
+
applyFilterClick: EventEmitter<TitleSelectModel | undefined>;
|
|
40
|
+
clearFilterClick: EventEmitter<void>;
|
|
41
|
+
/** Estado interno */
|
|
42
|
+
titlePage: string;
|
|
43
|
+
selectIndex: number;
|
|
44
|
+
filterHead: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
subscription: Subscription;
|
|
47
|
+
userBanks: TitleFilterModel[];
|
|
48
|
+
existEurope: boolean;
|
|
49
|
+
isDropdownOpen: boolean;
|
|
50
|
+
groupValues: any[];
|
|
51
|
+
dropdownOptions: any[];
|
|
52
|
+
groupIds: number[];
|
|
53
|
+
countryIds: number[];
|
|
54
|
+
regionIds: number[];
|
|
55
|
+
isFilterAvaliable: boolean;
|
|
56
|
+
dropdownMenuId: string;
|
|
57
|
+
tempCategoryId: number;
|
|
58
|
+
tempSubcategoryId: number;
|
|
59
|
+
tempGroupId: number;
|
|
60
|
+
filterSubCategories: any[];
|
|
61
|
+
langId: number;
|
|
62
|
+
IsTitleDropdownOpen: boolean;
|
|
63
|
+
demoRadioButtonRegion: any[];
|
|
64
|
+
selectedRadioButtonRegion: any;
|
|
65
|
+
demoRadioButtonCountry: any[];
|
|
66
|
+
selectedRadioButtonCountry: any;
|
|
67
|
+
demoRadioButtonClient: any[];
|
|
68
|
+
selectedRadioButtonClient: any;
|
|
69
|
+
demoRadioButtonCategory: any[];
|
|
70
|
+
selectedRadioButtonCategory: any;
|
|
71
|
+
demoRadioButtonSubCategory: any[];
|
|
72
|
+
selectedRadioButtonSubCategory: any;
|
|
73
|
+
demoRadioButtonMonthly: any[];
|
|
74
|
+
selectedRadioButtonMonthly: any;
|
|
75
|
+
constructor();
|
|
76
|
+
OnTitleDropdownClickOutside(event: Event): void;
|
|
77
|
+
OnTitleDropdownToggle(event: Event): void;
|
|
78
|
+
ApplyFilter(): void;
|
|
79
|
+
ClearFilter(): void;
|
|
80
|
+
private buildTitleSelect;
|
|
81
|
+
writeValue(obj: any): void;
|
|
82
|
+
registerOnChange(fn: any): void;
|
|
83
|
+
registerOnTouched(fn: any): void;
|
|
84
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
85
|
+
loadData(): void;
|
|
86
|
+
ngOnChanges(changes: any): void;
|
|
87
|
+
setGroupRegionCountryBankAll(): void;
|
|
88
|
+
fillGeneralList(listAll: GroupRegionCountryBankModel[], groupBy: string, setSelectIndex?: boolean): void;
|
|
89
|
+
existsMoreThanOneBankOrPerfilInternal(bank: GroupRegionCountryBankModel): boolean;
|
|
90
|
+
hasNotPreviousGroup(listAll: GroupRegionCountryBankModel[]): boolean;
|
|
91
|
+
setNewField(groupBy: string, name: string, id: number): void;
|
|
92
|
+
validateEuropeAll(): boolean;
|
|
93
|
+
setTitleFilter(filter: TitleSelectModel | undefined): void;
|
|
94
|
+
showFilter(): boolean;
|
|
95
|
+
/** PrimeNG emite { originalEvent, value } */
|
|
96
|
+
changeFilter(event: any): void;
|
|
97
|
+
emitSelectFilter(index: number): void;
|
|
98
|
+
getAllBanks(filter: TitleFilterModel): string;
|
|
99
|
+
transformNegative(val: number): string;
|
|
100
|
+
ngOnDestroy(): void;
|
|
101
|
+
filterBankListAvaliable(): void;
|
|
102
|
+
fillGeneralListFilter(listAll: GroupRegionCountryBankModel[], listIds: number[], column: number, isFilterAvaliable?: boolean): GroupRegionCountryBankModel[];
|
|
103
|
+
changeCategories(): void;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitlesComponent, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TitlesComponent, "intelica-titles", never, { "setFilter": { "alias": "setFilter"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "showFilterHead": { "alias": "showFilterHead"; "required": false; }; "addGlobal": { "alias": "addGlobal"; "required": false; }; "helperId": { "alias": "helperId"; "required": false; }; "showAlterFilterHead": { "alias": "showAlterFilterHead"; "required": false; }; "subShowAlterFilterHead": { "alias": "subShowAlterFilterHead"; "required": false; }; "alterFilterValues": { "alias": "alterFilterValues"; "required": false; }; "alterFilterValue": { "alias": "alterFilterValue"; "required": false; }; "subAlterFilterValues": { "alias": "subAlterFilterValues"; "required": false; }; "subAlterFilterValue": { "alias": "subAlterFilterValue"; "required": false; }; "bankIdListAvaliable": { "alias": "bankIdListAvaliable"; "required": false; }; "isInternal": { "alias": "isInternal"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; }, { "changeCboTitle": "changeCboTitle"; "applyFilterClick": "applyFilterClick"; "clearFilterClick": "clearFilterClick"; }, never, ["*"], true, never>;
|
|
106
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare class GroupRegCountryBankConstants {
|
|
2
|
+
static COLUMN_GROUP_ID: string;
|
|
3
|
+
static COLUMN_REGION_ID: string;
|
|
4
|
+
static COLUMN_COUNTRY_ID: string;
|
|
5
|
+
static COLUMN_BANK_ID: string;
|
|
6
|
+
static COLUMN_GROUP_NAME: string;
|
|
7
|
+
static COLUMN_REGION_NAME: string;
|
|
8
|
+
static COLUMN_COUNTRY_NAME: string;
|
|
9
|
+
static COLUMN_BANK_NAME: string;
|
|
10
|
+
static COLUMN_BANK_NAME_COMERCIAL: string;
|
|
11
|
+
static GLOBAL: {
|
|
12
|
+
[key: number]: string;
|
|
13
|
+
};
|
|
14
|
+
static GROUP: {
|
|
15
|
+
[key: number]: string;
|
|
16
|
+
};
|
|
17
|
+
static REGION: {
|
|
18
|
+
[key: number]: string;
|
|
19
|
+
};
|
|
20
|
+
static COUNTRY: {
|
|
21
|
+
[key: number]: string;
|
|
22
|
+
};
|
|
23
|
+
static BANK: {
|
|
24
|
+
[key: number]: string;
|
|
25
|
+
};
|
|
26
|
+
static GROUP_BY: string;
|
|
27
|
+
static GROUP_TEXT: string;
|
|
28
|
+
static GROUP_INDEX: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class GroupRegionCountryBankModel {
|
|
31
|
+
index?: number;
|
|
32
|
+
groupId: number;
|
|
33
|
+
groupName: string;
|
|
34
|
+
regionId: number;
|
|
35
|
+
regionName: string;
|
|
36
|
+
countryId: number;
|
|
37
|
+
countryName: string;
|
|
38
|
+
bankId: number;
|
|
39
|
+
bankName: string;
|
|
40
|
+
nivel?: number;
|
|
41
|
+
bankNameCommercial: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class GlobalConstants {
|
|
44
|
+
static STRING_ALL: string;
|
|
45
|
+
static NUMBER_ALL: number;
|
|
46
|
+
static REGION_EUROPE: number;
|
|
47
|
+
static KEY_ENCRIPT: string;
|
|
48
|
+
static IV_ENCRIPT: string;
|
|
49
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable, Subject } from "rxjs";
|
|
2
2
|
import { Location } from "@angular/common";
|
|
3
|
+
import { GroupRegionCountryBankModel } from "../constants/titles.constants";
|
|
4
|
+
import { TermPipe } from "../pipes/term.pipes";
|
|
5
|
+
import { GlobalTermService } from "./globalTerm.service";
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
4
7
|
export declare class SharedService {
|
|
5
8
|
private location;
|
|
9
|
+
private termsPipe;
|
|
6
10
|
configObservable: Subject<boolean>;
|
|
7
11
|
isLoading: BehaviorSubject<boolean>;
|
|
8
12
|
isLoadingHeader: BehaviorSubject<boolean>;
|
|
@@ -19,7 +23,8 @@ export declare class SharedService {
|
|
|
19
23
|
es: string[];
|
|
20
24
|
};
|
|
21
25
|
subtitleDescriptionNotification$: Observable<string>;
|
|
22
|
-
|
|
26
|
+
readonly GlobalTermService: GlobalTermService;
|
|
27
|
+
constructor(location: Location, termsPipe: TermPipe);
|
|
23
28
|
IsNumberRate(n: any): boolean;
|
|
24
29
|
RemovePercentage(string: string): string;
|
|
25
30
|
GetTotalAmountByCrncy(col: string, listGeneral: any): number;
|
|
@@ -81,6 +86,14 @@ export declare class SharedService {
|
|
|
81
86
|
SortRecursiveNumber(data: any[], column: any, criteria: string): any[];
|
|
82
87
|
IsDateFormat(value: any): boolean;
|
|
83
88
|
SortRecursiveDate(data: any[], column: any, criteria: string): any[];
|
|
89
|
+
setTitles(ListGeneralGroupRegionCountryBank: GroupRegionCountryBankModel[], groupId: number, regId: number, countryId: number, bankId: number, isInternal: boolean): string;
|
|
90
|
+
getCurrentGroup(ListGeneralGroupAll: any[], ListGeneralRegionAll: any[], groupId: number, regId: number): any;
|
|
91
|
+
getCurrentRegion(ListGeneralRegionAll: any[], regId: number, countryId: number): any;
|
|
92
|
+
getTitleByRegionOrCountry(CurrentGroup: any, Current: any, field: string): any;
|
|
93
|
+
getTitleByBank(ListGeneralCountryAll: any[], CurrentBank: any): any;
|
|
94
|
+
getTermTextByCode(code: string, mode?: number): string;
|
|
95
|
+
isEmpty(value: any): boolean;
|
|
96
|
+
groupByColumn(data: any[], columnGroup: string): any[];
|
|
84
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedService, never>;
|
|
85
98
|
static ɵprov: i0.ɵɵInjectableDeclaration<SharedService>;
|
|
86
99
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from "./lib/components/skeleton-chart/skeleton-chart.component";
|
|
|
44
44
|
export * from "./lib/components/skeleton-chart/data.directive";
|
|
45
45
|
export * from "./lib/components/table-fetch/table-fetch.component";
|
|
46
46
|
export * from "./lib/components/table-fetch/model/query.model";
|
|
47
|
+
export * from "./lib/components/titles/titles.component";
|
|
47
48
|
export * from "./lib/directives/filters/checkbox-filter.directive";
|
|
48
49
|
export * from "./lib/directives/filters/date-filter.directive";
|
|
49
50
|
export * from "./lib/directives/filters/select-detail-filter.directive";
|