mapa-library-ui 2.14.0 → 2.15.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/docs/GUIDE_V5_COMPONENTS.md +5 -8
- package/docs/TABLE_EXPORT.md +6 -6
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +16 -65
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-core-export.mjs +11 -2
- package/fesm2022/mapa-library-ui-src-lib-core-export.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +17 -66
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +221 -76
- package/mapa-library-ui-2.15.0.tgz +0 -0
- package/package.json +2 -2
- package/src/lib/components/capability/index.d.ts +8 -61
- package/src/lib/components/filters/index.d.ts +8 -61
- package/src/lib/components/scale/index.d.ts +8 -61
- package/src/lib/components/scale-parameterization/index.d.ts +8 -61
- package/src/lib/components/table/index.d.ts +6 -59
- package/src/lib/components/warning/index.d.ts +6 -59
- package/src/lib/core/export/index.d.ts +1 -0
- package/mapa-library-ui-2.14.0.tgz +0 -0
|
@@ -2,7 +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
|
|
5
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
6
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
6
7
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
7
8
|
import * as rxjs from 'rxjs';
|
|
8
9
|
|
|
@@ -28,63 +29,6 @@ declare class IconComponent {
|
|
|
28
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "mapa-icon", never, { "svg": { "alias": "svg"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
/**
|
|
32
|
-
* UI texts of the Guia V5 complementary components (21.x). They extend the
|
|
33
|
-
* groups published by `mapa-frontend-i18n` and keep the same shape so they can
|
|
34
|
-
* move there unchanged; until then, a consumer that provides only
|
|
35
|
-
* `getMapaUiTexts(language)` gets these pt-BR defaults.
|
|
36
|
-
*/
|
|
37
|
-
interface MapaGuideTextGroups {
|
|
38
|
-
wizardSteps: {
|
|
39
|
-
navigationLabel: string;
|
|
40
|
-
doneStatus: string;
|
|
41
|
-
lockedStatus: string;
|
|
42
|
-
};
|
|
43
|
-
deadlineField: {
|
|
44
|
-
unit: (value: number | null) => string;
|
|
45
|
-
integerError: string;
|
|
46
|
-
};
|
|
47
|
-
welcomePreview: {
|
|
48
|
-
previewLabel: string;
|
|
49
|
-
startLabel: string;
|
|
50
|
-
};
|
|
51
|
-
catalogOrder: {
|
|
52
|
-
addLabel: string;
|
|
53
|
-
addItemLabel: (name: string) => string;
|
|
54
|
-
moveUpLabel: (name: string) => string;
|
|
55
|
-
moveDownLabel: (name: string) => string;
|
|
56
|
-
removeLabel: (name: string) => string;
|
|
57
|
-
catalogEmpty: string;
|
|
58
|
-
orderEmptyTitle: string;
|
|
59
|
-
orderEmptyDescription: string;
|
|
60
|
-
addedAnnouncement: (name: string, position: number, total: number) => string;
|
|
61
|
-
movedAnnouncement: (name: string, position: number, total: number) => string;
|
|
62
|
-
removedAnnouncement: (name: string) => string;
|
|
63
|
-
};
|
|
64
|
-
palettePicker: {
|
|
65
|
-
defaultBadge: string;
|
|
66
|
-
};
|
|
67
|
-
launchOptions: {
|
|
68
|
-
recommendedBadge: string;
|
|
69
|
-
};
|
|
70
|
-
fileDrop: {
|
|
71
|
-
dropTitle: string;
|
|
72
|
-
separator: string;
|
|
73
|
-
selectLabel: string;
|
|
74
|
-
replaceLabel: string;
|
|
75
|
-
acceptedTypes: (types: readonly string[]) => string;
|
|
76
|
-
invalidType: (fileName: string, types: readonly string[]) => string;
|
|
77
|
-
tooLarge: (fileName: string, maxSize: string) => string;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
type PartialMapaGuideTexts = Partial<{
|
|
81
|
-
[K in keyof MapaGuideTextGroups]: Partial<MapaGuideTextGroups[K]>;
|
|
82
|
-
}>;
|
|
83
|
-
|
|
84
|
-
type MapaUiTexts = MapaUiTextGroups & MapaGuideTextGroups;
|
|
85
|
-
type PartialMapaUiTexts = PartialMapaUiTexts$1 & PartialMapaGuideTexts;
|
|
86
|
-
type ValidationMessageContext = ValidationContext;
|
|
87
|
-
|
|
88
32
|
interface ElementTreeNode {
|
|
89
33
|
key: string;
|
|
90
34
|
value: string;
|
|
@@ -201,11 +145,14 @@ declare class ElementBase {
|
|
|
201
145
|
});
|
|
202
146
|
}
|
|
203
147
|
|
|
148
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
149
|
+
type ValidationMessageContext = ValidationContext;
|
|
150
|
+
|
|
204
151
|
declare class MapaI18nService {
|
|
205
152
|
private readonly injector;
|
|
206
153
|
private readonly textsState;
|
|
207
|
-
readonly textsSignal: i0.Signal<
|
|
208
|
-
readonly texts$: rxjs.Observable<
|
|
154
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
155
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
209
156
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
210
157
|
get texts(): MapaUiTexts;
|
|
211
158
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -221,7 +168,7 @@ declare class FiltersComponent {
|
|
|
221
168
|
elements: ElementBase[];
|
|
222
169
|
selectedValues: EventEmitter<Record<string, unknown>>;
|
|
223
170
|
constructor(i18n: MapaI18nService);
|
|
224
|
-
get texts():
|
|
171
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
225
172
|
get clearFiltersLabel(): string;
|
|
226
173
|
get submitFiltersLabel(): string;
|
|
227
174
|
getFormControl(filterKey: string): FormControl<unknown>;
|
|
@@ -1,64 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
4
|
import * as rxjs from 'rxjs';
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* UI texts of the Guia V5 complementary components (21.x). They extend the
|
|
7
|
-
* groups published by `mapa-frontend-i18n` and keep the same shape so they can
|
|
8
|
-
* move there unchanged; until then, a consumer that provides only
|
|
9
|
-
* `getMapaUiTexts(language)` gets these pt-BR defaults.
|
|
10
|
-
*/
|
|
11
|
-
interface MapaGuideTextGroups {
|
|
12
|
-
wizardSteps: {
|
|
13
|
-
navigationLabel: string;
|
|
14
|
-
doneStatus: string;
|
|
15
|
-
lockedStatus: string;
|
|
16
|
-
};
|
|
17
|
-
deadlineField: {
|
|
18
|
-
unit: (value: number | null) => string;
|
|
19
|
-
integerError: string;
|
|
20
|
-
};
|
|
21
|
-
welcomePreview: {
|
|
22
|
-
previewLabel: string;
|
|
23
|
-
startLabel: string;
|
|
24
|
-
};
|
|
25
|
-
catalogOrder: {
|
|
26
|
-
addLabel: string;
|
|
27
|
-
addItemLabel: (name: string) => string;
|
|
28
|
-
moveUpLabel: (name: string) => string;
|
|
29
|
-
moveDownLabel: (name: string) => string;
|
|
30
|
-
removeLabel: (name: string) => string;
|
|
31
|
-
catalogEmpty: string;
|
|
32
|
-
orderEmptyTitle: string;
|
|
33
|
-
orderEmptyDescription: string;
|
|
34
|
-
addedAnnouncement: (name: string, position: number, total: number) => string;
|
|
35
|
-
movedAnnouncement: (name: string, position: number, total: number) => string;
|
|
36
|
-
removedAnnouncement: (name: string) => string;
|
|
37
|
-
};
|
|
38
|
-
palettePicker: {
|
|
39
|
-
defaultBadge: string;
|
|
40
|
-
};
|
|
41
|
-
launchOptions: {
|
|
42
|
-
recommendedBadge: string;
|
|
43
|
-
};
|
|
44
|
-
fileDrop: {
|
|
45
|
-
dropTitle: string;
|
|
46
|
-
separator: string;
|
|
47
|
-
selectLabel: string;
|
|
48
|
-
replaceLabel: string;
|
|
49
|
-
acceptedTypes: (types: readonly string[]) => string;
|
|
50
|
-
invalidType: (fileName: string, types: readonly string[]) => string;
|
|
51
|
-
tooLarge: (fileName: string, maxSize: string) => string;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
type PartialMapaGuideTexts = Partial<{
|
|
55
|
-
[K in keyof MapaGuideTextGroups]: Partial<MapaGuideTextGroups[K]>;
|
|
56
|
-
}>;
|
|
57
|
-
|
|
58
|
-
type MapaUiTexts = MapaUiTextGroups & MapaGuideTextGroups;
|
|
59
|
-
type PartialMapaUiTexts = PartialMapaUiTexts$1 & PartialMapaGuideTexts;
|
|
60
|
-
type ValidationMessageContext = ValidationContext;
|
|
61
|
-
|
|
62
6
|
interface Classification {
|
|
63
7
|
classificationId?: number;
|
|
64
8
|
classificationCode?: string;
|
|
@@ -151,11 +95,14 @@ interface Capability extends CapabilityItem {
|
|
|
151
95
|
};
|
|
152
96
|
}
|
|
153
97
|
|
|
98
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
99
|
+
type ValidationMessageContext = ValidationContext;
|
|
100
|
+
|
|
154
101
|
declare class MapaI18nService {
|
|
155
102
|
private readonly injector;
|
|
156
103
|
private readonly textsState;
|
|
157
|
-
readonly textsSignal: i0.Signal<
|
|
158
|
-
readonly texts$: rxjs.Observable<
|
|
104
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
105
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
159
106
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
160
107
|
get texts(): MapaUiTexts;
|
|
161
108
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -170,7 +117,7 @@ declare class MapaScaleComponent {
|
|
|
170
117
|
data: Competence[];
|
|
171
118
|
showProgressbar: boolean;
|
|
172
119
|
constructor(i18n: MapaI18nService);
|
|
173
|
-
get texts():
|
|
120
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
174
121
|
get conceptTitle(): string;
|
|
175
122
|
getProgressbarData(scale: Scale): ProgressBar;
|
|
176
123
|
getIntervalbarData(scale: Scale): Capability;
|
|
@@ -1,65 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
2
3
|
import { MatAccordion } from '@angular/material/expansion';
|
|
3
4
|
import * as i0 from '@angular/core';
|
|
4
5
|
import * as rxjs from 'rxjs';
|
|
5
6
|
|
|
6
|
-
/**
|
|
7
|
-
* UI texts of the Guia V5 complementary components (21.x). They extend the
|
|
8
|
-
* groups published by `mapa-frontend-i18n` and keep the same shape so they can
|
|
9
|
-
* move there unchanged; until then, a consumer that provides only
|
|
10
|
-
* `getMapaUiTexts(language)` gets these pt-BR defaults.
|
|
11
|
-
*/
|
|
12
|
-
interface MapaGuideTextGroups {
|
|
13
|
-
wizardSteps: {
|
|
14
|
-
navigationLabel: string;
|
|
15
|
-
doneStatus: string;
|
|
16
|
-
lockedStatus: string;
|
|
17
|
-
};
|
|
18
|
-
deadlineField: {
|
|
19
|
-
unit: (value: number | null) => string;
|
|
20
|
-
integerError: string;
|
|
21
|
-
};
|
|
22
|
-
welcomePreview: {
|
|
23
|
-
previewLabel: string;
|
|
24
|
-
startLabel: string;
|
|
25
|
-
};
|
|
26
|
-
catalogOrder: {
|
|
27
|
-
addLabel: string;
|
|
28
|
-
addItemLabel: (name: string) => string;
|
|
29
|
-
moveUpLabel: (name: string) => string;
|
|
30
|
-
moveDownLabel: (name: string) => string;
|
|
31
|
-
removeLabel: (name: string) => string;
|
|
32
|
-
catalogEmpty: string;
|
|
33
|
-
orderEmptyTitle: string;
|
|
34
|
-
orderEmptyDescription: string;
|
|
35
|
-
addedAnnouncement: (name: string, position: number, total: number) => string;
|
|
36
|
-
movedAnnouncement: (name: string, position: number, total: number) => string;
|
|
37
|
-
removedAnnouncement: (name: string) => string;
|
|
38
|
-
};
|
|
39
|
-
palettePicker: {
|
|
40
|
-
defaultBadge: string;
|
|
41
|
-
};
|
|
42
|
-
launchOptions: {
|
|
43
|
-
recommendedBadge: string;
|
|
44
|
-
};
|
|
45
|
-
fileDrop: {
|
|
46
|
-
dropTitle: string;
|
|
47
|
-
separator: string;
|
|
48
|
-
selectLabel: string;
|
|
49
|
-
replaceLabel: string;
|
|
50
|
-
acceptedTypes: (types: readonly string[]) => string;
|
|
51
|
-
invalidType: (fileName: string, types: readonly string[]) => string;
|
|
52
|
-
tooLarge: (fileName: string, maxSize: string) => string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
type PartialMapaGuideTexts = Partial<{
|
|
56
|
-
[K in keyof MapaGuideTextGroups]: Partial<MapaGuideTextGroups[K]>;
|
|
57
|
-
}>;
|
|
58
|
-
|
|
59
|
-
type MapaUiTexts = MapaUiTextGroups & MapaGuideTextGroups;
|
|
60
|
-
type PartialMapaUiTexts = PartialMapaUiTexts$1 & PartialMapaGuideTexts;
|
|
61
|
-
type ValidationMessageContext = ValidationContext;
|
|
62
|
-
|
|
63
7
|
interface Classification {
|
|
64
8
|
classificationId?: number;
|
|
65
9
|
classificationCode?: string;
|
|
@@ -68,11 +12,14 @@ interface Classification {
|
|
|
68
12
|
classificationBg?: string;
|
|
69
13
|
}
|
|
70
14
|
|
|
15
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
16
|
+
type ValidationMessageContext = ValidationContext;
|
|
17
|
+
|
|
71
18
|
declare class MapaI18nService {
|
|
72
19
|
private readonly injector;
|
|
73
20
|
private readonly textsState;
|
|
74
|
-
readonly textsSignal: i0.Signal<
|
|
75
|
-
readonly texts$: rxjs.Observable<
|
|
21
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
22
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
76
23
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
77
24
|
get texts(): MapaUiTexts;
|
|
78
25
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -175,7 +122,7 @@ declare class MapaScaleParameterizationComponent {
|
|
|
175
122
|
accordion: MatAccordion;
|
|
176
123
|
expanded: Set<number>;
|
|
177
124
|
constructor(i18n: MapaI18nService);
|
|
178
|
-
get texts():
|
|
125
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
179
126
|
get conceptTitle(): string;
|
|
180
127
|
toggleAll(): void;
|
|
181
128
|
getProgressbarData(scale: Scale): ProgressBar$1;
|
|
@@ -3,7 +3,8 @@ import { AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, Renderer
|
|
|
3
3
|
import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
|
|
4
4
|
import { UrlTree, Params } from '@angular/router';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
|
-
import
|
|
6
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
7
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
7
8
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
8
9
|
import { FormControl } from '@angular/forms';
|
|
9
10
|
import { SortDirection, Sort } from '@angular/material/sort';
|
|
@@ -94,68 +95,14 @@ interface TableStatus {
|
|
|
94
95
|
finished: boolean;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
* UI texts of the Guia V5 complementary components (21.x). They extend the
|
|
99
|
-
* groups published by `mapa-frontend-i18n` and keep the same shape so they can
|
|
100
|
-
* move there unchanged; until then, a consumer that provides only
|
|
101
|
-
* `getMapaUiTexts(language)` gets these pt-BR defaults.
|
|
102
|
-
*/
|
|
103
|
-
interface MapaGuideTextGroups {
|
|
104
|
-
wizardSteps: {
|
|
105
|
-
navigationLabel: string;
|
|
106
|
-
doneStatus: string;
|
|
107
|
-
lockedStatus: string;
|
|
108
|
-
};
|
|
109
|
-
deadlineField: {
|
|
110
|
-
unit: (value: number | null) => string;
|
|
111
|
-
integerError: string;
|
|
112
|
-
};
|
|
113
|
-
welcomePreview: {
|
|
114
|
-
previewLabel: string;
|
|
115
|
-
startLabel: string;
|
|
116
|
-
};
|
|
117
|
-
catalogOrder: {
|
|
118
|
-
addLabel: string;
|
|
119
|
-
addItemLabel: (name: string) => string;
|
|
120
|
-
moveUpLabel: (name: string) => string;
|
|
121
|
-
moveDownLabel: (name: string) => string;
|
|
122
|
-
removeLabel: (name: string) => string;
|
|
123
|
-
catalogEmpty: string;
|
|
124
|
-
orderEmptyTitle: string;
|
|
125
|
-
orderEmptyDescription: string;
|
|
126
|
-
addedAnnouncement: (name: string, position: number, total: number) => string;
|
|
127
|
-
movedAnnouncement: (name: string, position: number, total: number) => string;
|
|
128
|
-
removedAnnouncement: (name: string) => string;
|
|
129
|
-
};
|
|
130
|
-
palettePicker: {
|
|
131
|
-
defaultBadge: string;
|
|
132
|
-
};
|
|
133
|
-
launchOptions: {
|
|
134
|
-
recommendedBadge: string;
|
|
135
|
-
};
|
|
136
|
-
fileDrop: {
|
|
137
|
-
dropTitle: string;
|
|
138
|
-
separator: string;
|
|
139
|
-
selectLabel: string;
|
|
140
|
-
replaceLabel: string;
|
|
141
|
-
acceptedTypes: (types: readonly string[]) => string;
|
|
142
|
-
invalidType: (fileName: string, types: readonly string[]) => string;
|
|
143
|
-
tooLarge: (fileName: string, maxSize: string) => string;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
type PartialMapaGuideTexts = Partial<{
|
|
147
|
-
[K in keyof MapaGuideTextGroups]: Partial<MapaGuideTextGroups[K]>;
|
|
148
|
-
}>;
|
|
149
|
-
|
|
150
|
-
type MapaUiTexts = MapaUiTextGroups & MapaGuideTextGroups;
|
|
151
|
-
type PartialMapaUiTexts = PartialMapaUiTexts$1 & PartialMapaGuideTexts;
|
|
98
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
152
99
|
type ValidationMessageContext = ValidationContext;
|
|
153
100
|
|
|
154
101
|
declare class MapaI18nService {
|
|
155
102
|
private readonly injector;
|
|
156
103
|
private readonly textsState;
|
|
157
|
-
readonly textsSignal: i0.Signal<
|
|
158
|
-
readonly texts$: rxjs.Observable<
|
|
104
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
105
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
159
106
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
160
107
|
get texts(): MapaUiTexts;
|
|
161
108
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -308,7 +255,7 @@ declare class MapaTableComponent {
|
|
|
308
255
|
private observeOverflow;
|
|
309
256
|
private measureOverflow;
|
|
310
257
|
protected headerDirectionLabel(column: TableColumn): string;
|
|
311
|
-
protected get texts():
|
|
258
|
+
protected get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
312
259
|
protected get visibleData(): readonly unknown[];
|
|
313
260
|
protected get isSelectable(): boolean;
|
|
314
261
|
protected get isLoading(): boolean;
|
|
@@ -1,70 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
2
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
4
|
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
5
|
import * as rxjs from 'rxjs';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
* UI texts of the Guia V5 complementary components (21.x). They extend the
|
|
8
|
-
* groups published by `mapa-frontend-i18n` and keep the same shape so they can
|
|
9
|
-
* move there unchanged; until then, a consumer that provides only
|
|
10
|
-
* `getMapaUiTexts(language)` gets these pt-BR defaults.
|
|
11
|
-
*/
|
|
12
|
-
interface MapaGuideTextGroups {
|
|
13
|
-
wizardSteps: {
|
|
14
|
-
navigationLabel: string;
|
|
15
|
-
doneStatus: string;
|
|
16
|
-
lockedStatus: string;
|
|
17
|
-
};
|
|
18
|
-
deadlineField: {
|
|
19
|
-
unit: (value: number | null) => string;
|
|
20
|
-
integerError: string;
|
|
21
|
-
};
|
|
22
|
-
welcomePreview: {
|
|
23
|
-
previewLabel: string;
|
|
24
|
-
startLabel: string;
|
|
25
|
-
};
|
|
26
|
-
catalogOrder: {
|
|
27
|
-
addLabel: string;
|
|
28
|
-
addItemLabel: (name: string) => string;
|
|
29
|
-
moveUpLabel: (name: string) => string;
|
|
30
|
-
moveDownLabel: (name: string) => string;
|
|
31
|
-
removeLabel: (name: string) => string;
|
|
32
|
-
catalogEmpty: string;
|
|
33
|
-
orderEmptyTitle: string;
|
|
34
|
-
orderEmptyDescription: string;
|
|
35
|
-
addedAnnouncement: (name: string, position: number, total: number) => string;
|
|
36
|
-
movedAnnouncement: (name: string, position: number, total: number) => string;
|
|
37
|
-
removedAnnouncement: (name: string) => string;
|
|
38
|
-
};
|
|
39
|
-
palettePicker: {
|
|
40
|
-
defaultBadge: string;
|
|
41
|
-
};
|
|
42
|
-
launchOptions: {
|
|
43
|
-
recommendedBadge: string;
|
|
44
|
-
};
|
|
45
|
-
fileDrop: {
|
|
46
|
-
dropTitle: string;
|
|
47
|
-
separator: string;
|
|
48
|
-
selectLabel: string;
|
|
49
|
-
replaceLabel: string;
|
|
50
|
-
acceptedTypes: (types: readonly string[]) => string;
|
|
51
|
-
invalidType: (fileName: string, types: readonly string[]) => string;
|
|
52
|
-
tooLarge: (fileName: string, maxSize: string) => string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
type PartialMapaGuideTexts = Partial<{
|
|
56
|
-
[K in keyof MapaGuideTextGroups]: Partial<MapaGuideTextGroups[K]>;
|
|
57
|
-
}>;
|
|
58
|
-
|
|
59
|
-
type MapaUiTexts = MapaUiTextGroups & MapaGuideTextGroups;
|
|
60
|
-
type PartialMapaUiTexts = PartialMapaUiTexts$1 & PartialMapaGuideTexts;
|
|
7
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
61
8
|
type ValidationMessageContext = ValidationContext;
|
|
62
9
|
|
|
63
10
|
declare class MapaI18nService {
|
|
64
11
|
private readonly injector;
|
|
65
12
|
private readonly textsState;
|
|
66
|
-
readonly textsSignal: i0.Signal<
|
|
67
|
-
readonly texts$: rxjs.Observable<
|
|
13
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
14
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
68
15
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
69
16
|
get texts(): MapaUiTexts;
|
|
70
17
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -87,7 +34,7 @@ declare class MapaWarningComponent implements OnInit, OnChanges {
|
|
|
87
34
|
expirationDateReports: string[];
|
|
88
35
|
nonExpirationDateReports: string[];
|
|
89
36
|
constructor(i18n: MapaI18nService);
|
|
90
|
-
get texts():
|
|
37
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
91
38
|
get lowReliabilityTitle(): string;
|
|
92
39
|
get expirationLimitTitle(): string;
|
|
93
40
|
ngOnInit(): void;
|
|
Binary file
|