mapa-library-ui 1.1.7 → 1.2.0
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/mapa-library-ui-src-lib-components-capability.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +23 -103
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +13 -95
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +80 -7
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +39 -109
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +32 -75
- package/mapa-library-ui-1.2.0.tgz +0 -0
- package/package.json +10 -8
- package/src/lib/components/capability/index.d.ts +11 -65
- package/src/lib/components/datepicker-range/index.d.ts +7 -61
- package/src/lib/components/dropdown/index.d.ts +7 -61
- package/src/lib/components/filters/index.d.ts +8 -62
- package/src/lib/components/scale/index.d.ts +8 -62
- package/src/lib/components/scale-parameterization/index.d.ts +8 -62
- package/src/lib/components/table/index.d.ts +11 -64
- package/src/lib/components/warning/index.d.ts +25 -0
- package/mapa-library-ui-1.1.7.tgz +0 -0
|
@@ -2,6 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
3
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
4
4
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
6
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
5
7
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
6
8
|
import * as rxjs from 'rxjs';
|
|
7
9
|
|
|
@@ -25,65 +27,6 @@ declare class IconComponent {
|
|
|
25
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "mapa-icon", never, { "svg": { "alias": "svg"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
interface ValidationMessageContext {
|
|
29
|
-
actualLength?: number;
|
|
30
|
-
max?: number;
|
|
31
|
-
min?: number;
|
|
32
|
-
requiredLength?: number;
|
|
33
|
-
}
|
|
34
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
35
|
-
interface MapaUiTexts {
|
|
36
|
-
common: {
|
|
37
|
-
selectAll: string;
|
|
38
|
-
};
|
|
39
|
-
filters: {
|
|
40
|
-
clear: string;
|
|
41
|
-
submit: string;
|
|
42
|
-
};
|
|
43
|
-
datepicker: {
|
|
44
|
-
startDatePlaceholder: string;
|
|
45
|
-
endDatePlaceholder: string;
|
|
46
|
-
};
|
|
47
|
-
capability: {
|
|
48
|
-
groupAverageTitle: string;
|
|
49
|
-
individualAverageTitle: string;
|
|
50
|
-
conceptTitle: string;
|
|
51
|
-
resultTitle: string;
|
|
52
|
-
positiveIndicatorsTitle: string;
|
|
53
|
-
negativeIndicatorsTitle: string;
|
|
54
|
-
riskIndicatorsTitle: string;
|
|
55
|
-
precipitationRiskTitle: string;
|
|
56
|
-
negligenceRiskTitle: string;
|
|
57
|
-
negativeDirectionLabel: string;
|
|
58
|
-
positiveDirectionLabel: string;
|
|
59
|
-
};
|
|
60
|
-
paginator: {
|
|
61
|
-
itemsPerPage: string;
|
|
62
|
-
nextPage: string;
|
|
63
|
-
previousPage: string;
|
|
64
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
65
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
66
|
-
};
|
|
67
|
-
table: {
|
|
68
|
-
emptyTitle: string;
|
|
69
|
-
emptySubtitle: string;
|
|
70
|
-
};
|
|
71
|
-
validation: {
|
|
72
|
-
cnpj: ValidationTextResolver;
|
|
73
|
-
cpf: ValidationTextResolver;
|
|
74
|
-
email: ValidationTextResolver;
|
|
75
|
-
max: ValidationTextResolver;
|
|
76
|
-
maxLength: ValidationTextResolver;
|
|
77
|
-
min: ValidationTextResolver;
|
|
78
|
-
minLength: ValidationTextResolver;
|
|
79
|
-
pattern: ValidationTextResolver;
|
|
80
|
-
required: ValidationTextResolver;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
type PartialMapaUiTexts = Partial<{
|
|
84
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
85
|
-
}>;
|
|
86
|
-
|
|
87
30
|
interface ElementTreeNode {
|
|
88
31
|
key: string;
|
|
89
32
|
value: string;
|
|
@@ -200,11 +143,14 @@ declare class ElementBase {
|
|
|
200
143
|
});
|
|
201
144
|
}
|
|
202
145
|
|
|
146
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
147
|
+
type ValidationMessageContext = ValidationContext;
|
|
148
|
+
|
|
203
149
|
declare class MapaI18nService {
|
|
204
150
|
private readonly injector;
|
|
205
151
|
private readonly textsState;
|
|
206
|
-
readonly textsSignal: i0.Signal<
|
|
207
|
-
readonly texts$: rxjs.Observable<
|
|
152
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
153
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
208
154
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
209
155
|
get texts(): MapaUiTexts;
|
|
210
156
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -220,7 +166,7 @@ declare class FiltersComponent {
|
|
|
220
166
|
elements: ElementBase[];
|
|
221
167
|
selectedValues: EventEmitter<Record<string, unknown>>;
|
|
222
168
|
constructor(i18n: MapaI18nService);
|
|
223
|
-
get texts():
|
|
169
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
224
170
|
get clearFiltersLabel(): string;
|
|
225
171
|
get submitFiltersLabel(): string;
|
|
226
172
|
getFormControl(filterKey: string): FormControl<unknown>;
|
|
@@ -1,65 +1,8 @@
|
|
|
1
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
4
|
import * as rxjs from 'rxjs';
|
|
3
5
|
|
|
4
|
-
interface ValidationMessageContext {
|
|
5
|
-
actualLength?: number;
|
|
6
|
-
max?: number;
|
|
7
|
-
min?: number;
|
|
8
|
-
requiredLength?: number;
|
|
9
|
-
}
|
|
10
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
11
|
-
interface MapaUiTexts {
|
|
12
|
-
common: {
|
|
13
|
-
selectAll: string;
|
|
14
|
-
};
|
|
15
|
-
filters: {
|
|
16
|
-
clear: string;
|
|
17
|
-
submit: string;
|
|
18
|
-
};
|
|
19
|
-
datepicker: {
|
|
20
|
-
startDatePlaceholder: string;
|
|
21
|
-
endDatePlaceholder: string;
|
|
22
|
-
};
|
|
23
|
-
capability: {
|
|
24
|
-
groupAverageTitle: string;
|
|
25
|
-
individualAverageTitle: string;
|
|
26
|
-
conceptTitle: string;
|
|
27
|
-
resultTitle: string;
|
|
28
|
-
positiveIndicatorsTitle: string;
|
|
29
|
-
negativeIndicatorsTitle: string;
|
|
30
|
-
riskIndicatorsTitle: string;
|
|
31
|
-
precipitationRiskTitle: string;
|
|
32
|
-
negligenceRiskTitle: string;
|
|
33
|
-
negativeDirectionLabel: string;
|
|
34
|
-
positiveDirectionLabel: string;
|
|
35
|
-
};
|
|
36
|
-
paginator: {
|
|
37
|
-
itemsPerPage: string;
|
|
38
|
-
nextPage: string;
|
|
39
|
-
previousPage: string;
|
|
40
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
41
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
42
|
-
};
|
|
43
|
-
table: {
|
|
44
|
-
emptyTitle: string;
|
|
45
|
-
emptySubtitle: string;
|
|
46
|
-
};
|
|
47
|
-
validation: {
|
|
48
|
-
cnpj: ValidationTextResolver;
|
|
49
|
-
cpf: ValidationTextResolver;
|
|
50
|
-
email: ValidationTextResolver;
|
|
51
|
-
max: ValidationTextResolver;
|
|
52
|
-
maxLength: ValidationTextResolver;
|
|
53
|
-
min: ValidationTextResolver;
|
|
54
|
-
minLength: ValidationTextResolver;
|
|
55
|
-
pattern: ValidationTextResolver;
|
|
56
|
-
required: ValidationTextResolver;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
type PartialMapaUiTexts = Partial<{
|
|
60
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
61
|
-
}>;
|
|
62
|
-
|
|
63
6
|
interface Classification {
|
|
64
7
|
classificationId?: number;
|
|
65
8
|
classificationName?: string;
|
|
@@ -151,11 +94,14 @@ interface Capability extends CapabilityItem {
|
|
|
151
94
|
};
|
|
152
95
|
}
|
|
153
96
|
|
|
97
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
98
|
+
type ValidationMessageContext = ValidationContext;
|
|
99
|
+
|
|
154
100
|
declare class MapaI18nService {
|
|
155
101
|
private readonly injector;
|
|
156
102
|
private readonly textsState;
|
|
157
|
-
readonly textsSignal: i0.Signal<
|
|
158
|
-
readonly texts$: rxjs.Observable<
|
|
103
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
104
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
159
105
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
160
106
|
get texts(): MapaUiTexts;
|
|
161
107
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -170,7 +116,7 @@ declare class MapaScaleComponent {
|
|
|
170
116
|
data: Competence[];
|
|
171
117
|
showProgressbar: boolean;
|
|
172
118
|
constructor(i18n: MapaI18nService);
|
|
173
|
-
get texts():
|
|
119
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
174
120
|
get conceptTitle(): string;
|
|
175
121
|
getProgressbarData(scale: Scale): ProgressBar;
|
|
176
122
|
getIntervalbarData(scale: Scale): Capability;
|
|
@@ -1,66 +1,9 @@
|
|
|
1
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
1
3
|
import { MatAccordion } from '@angular/material/expansion';
|
|
2
4
|
import * as i0 from '@angular/core';
|
|
3
5
|
import * as rxjs from 'rxjs';
|
|
4
6
|
|
|
5
|
-
interface ValidationMessageContext {
|
|
6
|
-
actualLength?: number;
|
|
7
|
-
max?: number;
|
|
8
|
-
min?: number;
|
|
9
|
-
requiredLength?: number;
|
|
10
|
-
}
|
|
11
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
12
|
-
interface MapaUiTexts {
|
|
13
|
-
common: {
|
|
14
|
-
selectAll: string;
|
|
15
|
-
};
|
|
16
|
-
filters: {
|
|
17
|
-
clear: string;
|
|
18
|
-
submit: string;
|
|
19
|
-
};
|
|
20
|
-
datepicker: {
|
|
21
|
-
startDatePlaceholder: string;
|
|
22
|
-
endDatePlaceholder: string;
|
|
23
|
-
};
|
|
24
|
-
capability: {
|
|
25
|
-
groupAverageTitle: string;
|
|
26
|
-
individualAverageTitle: string;
|
|
27
|
-
conceptTitle: string;
|
|
28
|
-
resultTitle: string;
|
|
29
|
-
positiveIndicatorsTitle: string;
|
|
30
|
-
negativeIndicatorsTitle: string;
|
|
31
|
-
riskIndicatorsTitle: string;
|
|
32
|
-
precipitationRiskTitle: string;
|
|
33
|
-
negligenceRiskTitle: string;
|
|
34
|
-
negativeDirectionLabel: string;
|
|
35
|
-
positiveDirectionLabel: string;
|
|
36
|
-
};
|
|
37
|
-
paginator: {
|
|
38
|
-
itemsPerPage: string;
|
|
39
|
-
nextPage: string;
|
|
40
|
-
previousPage: string;
|
|
41
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
42
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
43
|
-
};
|
|
44
|
-
table: {
|
|
45
|
-
emptyTitle: string;
|
|
46
|
-
emptySubtitle: string;
|
|
47
|
-
};
|
|
48
|
-
validation: {
|
|
49
|
-
cnpj: ValidationTextResolver;
|
|
50
|
-
cpf: ValidationTextResolver;
|
|
51
|
-
email: ValidationTextResolver;
|
|
52
|
-
max: ValidationTextResolver;
|
|
53
|
-
maxLength: ValidationTextResolver;
|
|
54
|
-
min: ValidationTextResolver;
|
|
55
|
-
minLength: ValidationTextResolver;
|
|
56
|
-
pattern: ValidationTextResolver;
|
|
57
|
-
required: ValidationTextResolver;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
type PartialMapaUiTexts = Partial<{
|
|
61
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
62
|
-
}>;
|
|
63
|
-
|
|
64
7
|
interface Classification {
|
|
65
8
|
classificationId?: number;
|
|
66
9
|
classificationName?: string;
|
|
@@ -152,11 +95,14 @@ interface Capability extends CapabilityItem {
|
|
|
152
95
|
};
|
|
153
96
|
}
|
|
154
97
|
|
|
98
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
99
|
+
type ValidationMessageContext = ValidationContext;
|
|
100
|
+
|
|
155
101
|
declare class MapaI18nService {
|
|
156
102
|
private readonly injector;
|
|
157
103
|
private readonly textsState;
|
|
158
|
-
readonly textsSignal: i0.Signal<
|
|
159
|
-
readonly texts$: rxjs.Observable<
|
|
104
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
105
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
160
106
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
161
107
|
get texts(): MapaUiTexts;
|
|
162
108
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -175,7 +121,7 @@ declare class MapaScaleParameterizationComponent {
|
|
|
175
121
|
accordion: MatAccordion;
|
|
176
122
|
expanded: Set<number>;
|
|
177
123
|
constructor(i18n: MapaI18nService);
|
|
178
|
-
get texts():
|
|
124
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
179
125
|
get conceptTitle(): string;
|
|
180
126
|
toggleAll(): void;
|
|
181
127
|
getProgressbarData(scale: Scale): ProgressBar$1;
|
|
@@ -2,6 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, Renderer2, SimpleChanges, Injector, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
6
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
5
7
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
8
|
import { FormControl } from '@angular/forms';
|
|
7
9
|
import { Sort, MatSort } from '@angular/material/sort';
|
|
@@ -16,9 +18,9 @@ declare class BubblePaginationDirective implements AfterViewInit, OnChanges, OnD
|
|
|
16
18
|
showFirstButton: boolean;
|
|
17
19
|
showLastButton: boolean;
|
|
18
20
|
renderButtonsNumber: number;
|
|
19
|
-
appCustomLength
|
|
21
|
+
appCustomLength?: number;
|
|
20
22
|
hideDefaultArrows: boolean;
|
|
21
|
-
bubblePageIndex
|
|
23
|
+
bubblePageIndex?: number;
|
|
22
24
|
bubblePageSize?: number;
|
|
23
25
|
private dotsEndRef;
|
|
24
26
|
private dotsStartRef;
|
|
@@ -46,9 +48,10 @@ declare class BubblePaginationDirective implements AfterViewInit, OnChanges, OnD
|
|
|
46
48
|
private getNeededButtons;
|
|
47
49
|
private getActivePageIndex;
|
|
48
50
|
private getPageSize;
|
|
51
|
+
private getLength;
|
|
49
52
|
private clearButtonListeners;
|
|
50
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<BubblePaginationDirective, never>;
|
|
51
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BubblePaginationDirective, "[appBubblePagination]", never, { "showFirstButton": { "alias": "showFirstButton"; "required": false; }; "showLastButton": { "alias": "showLastButton"; "required": false; }; "renderButtonsNumber": { "alias": "renderButtonsNumber"; "required": false; }; "appCustomLength": { "alias": "appCustomLength"; "required": false; }; "hideDefaultArrows": { "alias": "hideDefaultArrows"; "required": false; }; "bubblePageIndex": { "alias": "bubblePageIndex"; "required": false; }; "bubblePageSize": { "alias": "bubblePageSize"; "required": false; }; }, { "pageIndexChangeEmitter": "pageIndexChangeEmitter"; }, never, never, true, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BubblePaginationDirective, "[appBubblePagination], [appStylePaginatorMv]", never, { "showFirstButton": { "alias": "showFirstButton"; "required": false; }; "showLastButton": { "alias": "showLastButton"; "required": false; }; "renderButtonsNumber": { "alias": "renderButtonsNumber"; "required": false; }; "appCustomLength": { "alias": "appCustomLength"; "required": false; }; "hideDefaultArrows": { "alias": "hideDefaultArrows"; "required": false; }; "bubblePageIndex": { "alias": "bubblePageIndex"; "required": false; }; "bubblePageSize": { "alias": "bubblePageSize"; "required": false; }; }, { "pageIndexChangeEmitter": "pageIndexChangeEmitter"; }, never, never, true, never>;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
interface TableEmptyState {
|
|
@@ -96,70 +99,14 @@ interface TableStatus {
|
|
|
96
99
|
finished: boolean;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
max?: number;
|
|
102
|
-
min?: number;
|
|
103
|
-
requiredLength?: number;
|
|
104
|
-
}
|
|
105
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
106
|
-
interface MapaUiTexts {
|
|
107
|
-
common: {
|
|
108
|
-
selectAll: string;
|
|
109
|
-
};
|
|
110
|
-
filters: {
|
|
111
|
-
clear: string;
|
|
112
|
-
submit: string;
|
|
113
|
-
};
|
|
114
|
-
datepicker: {
|
|
115
|
-
startDatePlaceholder: string;
|
|
116
|
-
endDatePlaceholder: string;
|
|
117
|
-
};
|
|
118
|
-
capability: {
|
|
119
|
-
groupAverageTitle: string;
|
|
120
|
-
individualAverageTitle: string;
|
|
121
|
-
conceptTitle: string;
|
|
122
|
-
resultTitle: string;
|
|
123
|
-
positiveIndicatorsTitle: string;
|
|
124
|
-
negativeIndicatorsTitle: string;
|
|
125
|
-
riskIndicatorsTitle: string;
|
|
126
|
-
precipitationRiskTitle: string;
|
|
127
|
-
negligenceRiskTitle: string;
|
|
128
|
-
negativeDirectionLabel: string;
|
|
129
|
-
positiveDirectionLabel: string;
|
|
130
|
-
};
|
|
131
|
-
paginator: {
|
|
132
|
-
itemsPerPage: string;
|
|
133
|
-
nextPage: string;
|
|
134
|
-
previousPage: string;
|
|
135
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
136
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
137
|
-
};
|
|
138
|
-
table: {
|
|
139
|
-
emptyTitle: string;
|
|
140
|
-
emptySubtitle: string;
|
|
141
|
-
};
|
|
142
|
-
validation: {
|
|
143
|
-
cnpj: ValidationTextResolver;
|
|
144
|
-
cpf: ValidationTextResolver;
|
|
145
|
-
email: ValidationTextResolver;
|
|
146
|
-
max: ValidationTextResolver;
|
|
147
|
-
maxLength: ValidationTextResolver;
|
|
148
|
-
min: ValidationTextResolver;
|
|
149
|
-
minLength: ValidationTextResolver;
|
|
150
|
-
pattern: ValidationTextResolver;
|
|
151
|
-
required: ValidationTextResolver;
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
type PartialMapaUiTexts = Partial<{
|
|
155
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
156
|
-
}>;
|
|
102
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
103
|
+
type ValidationMessageContext = ValidationContext;
|
|
157
104
|
|
|
158
105
|
declare class MapaI18nService {
|
|
159
106
|
private readonly injector;
|
|
160
107
|
private readonly textsState;
|
|
161
|
-
readonly textsSignal: i0.Signal<
|
|
162
|
-
readonly texts$: rxjs.Observable<
|
|
108
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
109
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
163
110
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
164
111
|
get texts(): MapaUiTexts;
|
|
165
112
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -237,7 +184,7 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
237
184
|
private readonly destroyRef;
|
|
238
185
|
private filterControlSubscription?;
|
|
239
186
|
constructor(cdr: ChangeDetectorRef, i18n: MapaI18nService);
|
|
240
|
-
get texts():
|
|
187
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
241
188
|
get selectAllLabel(): string;
|
|
242
189
|
get paginatorPageIndex(): number;
|
|
243
190
|
get shouldShowPaginator(): boolean;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
4
|
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
|
|
7
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
8
|
+
type ValidationMessageContext = ValidationContext;
|
|
9
|
+
|
|
10
|
+
declare class MapaI18nService {
|
|
11
|
+
private readonly injector;
|
|
12
|
+
private readonly textsState;
|
|
13
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
14
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
15
|
+
constructor(customTexts: PartialMapaUiTexts | null);
|
|
16
|
+
get texts(): MapaUiTexts;
|
|
17
|
+
setTexts(texts: PartialMapaUiTexts): void;
|
|
18
|
+
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
19
|
+
private resolveText;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
22
|
+
}
|
|
3
23
|
|
|
4
24
|
interface LowReliabilityReport {
|
|
5
25
|
instrument?: string;
|
|
@@ -7,11 +27,16 @@ interface LowReliabilityReport {
|
|
|
7
27
|
isExpirationDate?: boolean;
|
|
8
28
|
}
|
|
9
29
|
declare class MapaWarningComponent implements OnInit, OnChanges {
|
|
30
|
+
private readonly i18n;
|
|
10
31
|
lowReliabilityReports: LowReliabilityReport[];
|
|
11
32
|
showFirstLine: boolean;
|
|
12
33
|
showSecondLine: boolean;
|
|
13
34
|
expirationDateReports: string[];
|
|
14
35
|
nonExpirationDateReports: string[];
|
|
36
|
+
constructor(i18n: MapaI18nService);
|
|
37
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
38
|
+
get lowReliabilityTitle(): string;
|
|
39
|
+
get expirationLimitTitle(): string;
|
|
15
40
|
ngOnInit(): void;
|
|
16
41
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17
42
|
updateVisibilityFlags(): void;
|
|
Binary file
|