mapa-library-ui 2.13.2 → 2.14.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.
Files changed (51) hide show
  1. package/docs/GUIDE_V5_COMPONENTS.md +76 -0
  2. package/docs/TABLE_EXPORT.md +55 -2
  3. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +67 -0
  4. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  5. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +67 -0
  6. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  7. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +67 -1
  8. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
  9. package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +67 -0
  10. package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
  11. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +67 -0
  12. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  13. package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +67 -0
  14. package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  15. package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +67 -1
  16. package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  17. package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs +67 -1
  18. package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
  19. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +67 -0
  20. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  21. package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +67 -0
  22. package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
  23. package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +67 -0
  24. package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  25. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +67 -1
  26. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  27. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +67 -0
  28. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  29. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +67 -0
  30. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
  31. package/fesm2022/mapa-library-ui-src-lib-core-excel-export.mjs +73 -41
  32. package/fesm2022/mapa-library-ui-src-lib-core-excel-export.mjs.map +1 -1
  33. package/fesm2022/mapa-library-ui-src-lib-core-export.mjs +92 -26
  34. package/fesm2022/mapa-library-ui-src-lib-core-export.mjs.map +1 -1
  35. package/fesm2022/mapa-library-ui.mjs +956 -4
  36. package/fesm2022/mapa-library-ui.mjs.map +1 -1
  37. package/index.d.ts +842 -475
  38. package/mapa-library-ui-2.14.0.tgz +0 -0
  39. package/package.json +38 -2
  40. package/src/lib/components/capability/index.d.ts +61 -8
  41. package/src/lib/components/filters/index.d.ts +61 -8
  42. package/src/lib/components/scale/index.d.ts +61 -8
  43. package/src/lib/components/scale-parameterization/index.d.ts +61 -8
  44. package/src/lib/components/table/index.d.ts +59 -6
  45. package/src/lib/components/warning/index.d.ts +59 -6
  46. package/src/lib/core/excel-export/index.d.ts +23 -2
  47. package/src/lib/core/export/index.d.ts +166 -0
  48. package/worker/excel-export.runtime.d.ts +2 -2
  49. package/worker/excel-export.runtime.js +17 -17
  50. package/worker/excel-export.worker.js +19 -19
  51. package/mapa-library-ui-2.13.2.tgz +0 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "2.13.2",
3
+ "version": "2.14.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.0",
6
6
  "@angular/cdk": "^20.2.0",
@@ -11,7 +11,7 @@
11
11
  "@angular/material": "^20.2.0",
12
12
  "@angular/router": "^20.3.0",
13
13
  "apexcharts": "^5.10.3",
14
- "mapa-frontend-i18n": "^2.8.0",
14
+ "mapa-frontend-i18n": "^2.9.1",
15
15
  "ng-apexcharts": "^2.3.0",
16
16
  "ngx-mask": "^20.0.3",
17
17
  "ngx-mat-select-search": "^8.0.4",
@@ -166,6 +166,42 @@
166
166
  "types": "./index.d.ts",
167
167
  "default": "./fesm2022/mapa-library-ui.mjs"
168
168
  },
169
+ "./catalog-order": {
170
+ "types": "./index.d.ts",
171
+ "default": "./fesm2022/mapa-library-ui.mjs"
172
+ },
173
+ "./deadline-field": {
174
+ "types": "./index.d.ts",
175
+ "default": "./fesm2022/mapa-library-ui.mjs"
176
+ },
177
+ "./file-drop": {
178
+ "types": "./index.d.ts",
179
+ "default": "./fesm2022/mapa-library-ui.mjs"
180
+ },
181
+ "./launch-options": {
182
+ "types": "./index.d.ts",
183
+ "default": "./fesm2022/mapa-library-ui.mjs"
184
+ },
185
+ "./option-cards": {
186
+ "types": "./index.d.ts",
187
+ "default": "./fesm2022/mapa-library-ui.mjs"
188
+ },
189
+ "./palette-picker": {
190
+ "types": "./index.d.ts",
191
+ "default": "./fesm2022/mapa-library-ui.mjs"
192
+ },
193
+ "./summary-meter": {
194
+ "types": "./index.d.ts",
195
+ "default": "./fesm2022/mapa-library-ui.mjs"
196
+ },
197
+ "./welcome-preview": {
198
+ "types": "./index.d.ts",
199
+ "default": "./fesm2022/mapa-library-ui.mjs"
200
+ },
201
+ "./wizard-steps": {
202
+ "types": "./index.d.ts",
203
+ "default": "./fesm2022/mapa-library-ui.mjs"
204
+ },
169
205
  "./scale": {
170
206
  "types": "./src/lib/components/scale/index.d.ts",
171
207
  "default": "./fesm2022/mapa-library-ui-src-lib-components-scale.mjs"
@@ -4,8 +4,7 @@ import { ConnectedPosition } from '@angular/cdk/overlay';
4
4
  import { FormControl, ControlValueAccessor } from '@angular/forms';
5
5
  import { MatIconRegistry } from '@angular/material/icon';
6
6
  import { DomSanitizer } from '@angular/platform-browser';
7
- import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
8
- import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
7
+ import { MapaUiTextGroups, PartialMapaUiTexts as PartialMapaUiTexts$1, ValidationContext } from 'mapa-frontend-i18n';
9
8
  import * as rxjs from 'rxjs';
10
9
  import { MatAccordion } from '@angular/material/expansion';
11
10
 
@@ -382,14 +381,68 @@ declare class MapaCapabilityDotComponent {
382
381
  static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityDotComponent, "mapa-capability-dot", never, { "type": { "alias": "type"; "required": false; }; "item": { "alias": "item"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "capability": { "alias": "capability"; "required": false; }; }, {}, never, never, true, never>;
383
382
  }
384
383
 
385
- type MapaUiTexts = MapaUiTextGroups;
384
+ /**
385
+ * UI texts of the Guia V5 complementary components (21.x). They extend the
386
+ * groups published by `mapa-frontend-i18n` and keep the same shape so they can
387
+ * move there unchanged; until then, a consumer that provides only
388
+ * `getMapaUiTexts(language)` gets these pt-BR defaults.
389
+ */
390
+ interface MapaGuideTextGroups {
391
+ wizardSteps: {
392
+ navigationLabel: string;
393
+ doneStatus: string;
394
+ lockedStatus: string;
395
+ };
396
+ deadlineField: {
397
+ unit: (value: number | null) => string;
398
+ integerError: string;
399
+ };
400
+ welcomePreview: {
401
+ previewLabel: string;
402
+ startLabel: string;
403
+ };
404
+ catalogOrder: {
405
+ addLabel: string;
406
+ addItemLabel: (name: string) => string;
407
+ moveUpLabel: (name: string) => string;
408
+ moveDownLabel: (name: string) => string;
409
+ removeLabel: (name: string) => string;
410
+ catalogEmpty: string;
411
+ orderEmptyTitle: string;
412
+ orderEmptyDescription: string;
413
+ addedAnnouncement: (name: string, position: number, total: number) => string;
414
+ movedAnnouncement: (name: string, position: number, total: number) => string;
415
+ removedAnnouncement: (name: string) => string;
416
+ };
417
+ palettePicker: {
418
+ defaultBadge: string;
419
+ };
420
+ launchOptions: {
421
+ recommendedBadge: string;
422
+ };
423
+ fileDrop: {
424
+ dropTitle: string;
425
+ separator: string;
426
+ selectLabel: string;
427
+ replaceLabel: string;
428
+ acceptedTypes: (types: readonly string[]) => string;
429
+ invalidType: (fileName: string, types: readonly string[]) => string;
430
+ tooLarge: (fileName: string, maxSize: string) => string;
431
+ };
432
+ }
433
+ type PartialMapaGuideTexts = Partial<{
434
+ [K in keyof MapaGuideTextGroups]: Partial<MapaGuideTextGroups[K]>;
435
+ }>;
436
+
437
+ type MapaUiTexts = MapaUiTextGroups & MapaGuideTextGroups;
438
+ type PartialMapaUiTexts = PartialMapaUiTexts$1 & PartialMapaGuideTexts;
386
439
  type ValidationMessageContext = ValidationContext;
387
440
 
388
441
  declare class MapaI18nService {
389
442
  private readonly injector;
390
443
  private readonly textsState;
391
- readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
392
- readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
444
+ readonly textsSignal: i0.Signal<MapaUiTexts>;
445
+ readonly texts$: rxjs.Observable<MapaUiTexts>;
393
446
  constructor(customTexts: PartialMapaUiTexts | null);
394
447
  get texts(): MapaUiTexts;
395
448
  setTexts(texts: PartialMapaUiTexts): void;
@@ -404,7 +457,7 @@ declare class MapaCapabilityExpandComponent {
404
457
  private readonly i18n;
405
458
  data: Capability;
406
459
  constructor(classification: CapabilityClassificationService, i18n: MapaI18nService);
407
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
460
+ get texts(): MapaUiTexts;
408
461
  get conceptTitle(): string;
409
462
  get resultTitle(): string;
410
463
  get negativeDirectionLabel(): string;
@@ -480,7 +533,7 @@ declare class MapaCapabilityComparativeHeaderComponent {
480
533
  private readonly i18n;
481
534
  data: CapabilityComparative;
482
535
  constructor(i18n: MapaI18nService);
483
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
536
+ get texts(): MapaUiTexts;
484
537
  get groupAverageTitle(): string;
485
538
  get individualAverageTitle(): string;
486
539
  getCapabilityData(item: number): Capability;
@@ -524,7 +577,7 @@ declare class MapaCapabilityIndicatorListComponent implements OnInit, OnChanges
524
577
  dataRiskPrecipitation: CapabilityItem[];
525
578
  dataRiskNegligence: CapabilityItem[];
526
579
  constructor(i18n: MapaI18nService);
527
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
580
+ get texts(): MapaUiTexts;
528
581
  get positiveIndicatorsTitle(): string;
529
582
  get negativeIndicatorsTitle(): string;
530
583
  get riskIndicatorsTitle(): string;
@@ -2,8 +2,7 @@ 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
+ import { MapaUiTextGroups, PartialMapaUiTexts as PartialMapaUiTexts$1, ValidationContext } from 'mapa-frontend-i18n';
7
6
  import { FormControl, FormGroup } from '@angular/forms';
8
7
  import * as rxjs from 'rxjs';
9
8
 
@@ -29,6 +28,63 @@ declare class IconComponent {
29
28
  static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "mapa-icon", never, { "svg": { "alias": "svg"; "required": false; }; }, {}, never, ["*"], true, never>;
30
29
  }
31
30
 
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
+
32
88
  interface ElementTreeNode {
33
89
  key: string;
34
90
  value: string;
@@ -145,14 +201,11 @@ declare class ElementBase {
145
201
  });
146
202
  }
147
203
 
148
- type MapaUiTexts = MapaUiTextGroups;
149
- type ValidationMessageContext = ValidationContext;
150
-
151
204
  declare class MapaI18nService {
152
205
  private readonly injector;
153
206
  private readonly textsState;
154
- readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
155
- readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
207
+ readonly textsSignal: i0.Signal<MapaUiTexts>;
208
+ readonly texts$: rxjs.Observable<MapaUiTexts>;
156
209
  constructor(customTexts: PartialMapaUiTexts | null);
157
210
  get texts(): MapaUiTexts;
158
211
  setTexts(texts: PartialMapaUiTexts): void;
@@ -168,7 +221,7 @@ declare class FiltersComponent {
168
221
  elements: ElementBase[];
169
222
  selectedValues: EventEmitter<Record<string, unknown>>;
170
223
  constructor(i18n: MapaI18nService);
171
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
224
+ get texts(): MapaUiTexts;
172
225
  get clearFiltersLabel(): string;
173
226
  get submitFiltersLabel(): string;
174
227
  getFormControl(filterKey: string): FormControl<unknown>;
@@ -1,8 +1,64 @@
1
- import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
2
- import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
1
+ import { MapaUiTextGroups, PartialMapaUiTexts as PartialMapaUiTexts$1, ValidationContext } from 'mapa-frontend-i18n';
3
2
  import * as i0 from '@angular/core';
4
3
  import * as rxjs from 'rxjs';
5
4
 
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
+
6
62
  interface Classification {
7
63
  classificationId?: number;
8
64
  classificationCode?: string;
@@ -95,14 +151,11 @@ interface Capability extends CapabilityItem {
95
151
  };
96
152
  }
97
153
 
98
- type MapaUiTexts = MapaUiTextGroups;
99
- type ValidationMessageContext = ValidationContext;
100
-
101
154
  declare class MapaI18nService {
102
155
  private readonly injector;
103
156
  private readonly textsState;
104
- readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
105
- readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
157
+ readonly textsSignal: i0.Signal<MapaUiTexts>;
158
+ readonly texts$: rxjs.Observable<MapaUiTexts>;
106
159
  constructor(customTexts: PartialMapaUiTexts | null);
107
160
  get texts(): MapaUiTexts;
108
161
  setTexts(texts: PartialMapaUiTexts): void;
@@ -117,7 +170,7 @@ declare class MapaScaleComponent {
117
170
  data: Competence[];
118
171
  showProgressbar: boolean;
119
172
  constructor(i18n: MapaI18nService);
120
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
173
+ get texts(): MapaUiTexts;
121
174
  get conceptTitle(): string;
122
175
  getProgressbarData(scale: Scale): ProgressBar;
123
176
  getIntervalbarData(scale: Scale): Capability;
@@ -1,9 +1,65 @@
1
- import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
2
- import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
1
+ import { MapaUiTextGroups, PartialMapaUiTexts as PartialMapaUiTexts$1, ValidationContext } from 'mapa-frontend-i18n';
3
2
  import { MatAccordion } from '@angular/material/expansion';
4
3
  import * as i0 from '@angular/core';
5
4
  import * as rxjs from 'rxjs';
6
5
 
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
+
7
63
  interface Classification {
8
64
  classificationId?: number;
9
65
  classificationCode?: string;
@@ -12,14 +68,11 @@ interface Classification {
12
68
  classificationBg?: string;
13
69
  }
14
70
 
15
- type MapaUiTexts = MapaUiTextGroups;
16
- type ValidationMessageContext = ValidationContext;
17
-
18
71
  declare class MapaI18nService {
19
72
  private readonly injector;
20
73
  private readonly textsState;
21
- readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
22
- readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
74
+ readonly textsSignal: i0.Signal<MapaUiTexts>;
75
+ readonly texts$: rxjs.Observable<MapaUiTexts>;
23
76
  constructor(customTexts: PartialMapaUiTexts | null);
24
77
  get texts(): MapaUiTexts;
25
78
  setTexts(texts: PartialMapaUiTexts): void;
@@ -122,7 +175,7 @@ declare class MapaScaleParameterizationComponent {
122
175
  accordion: MatAccordion;
123
176
  expanded: Set<number>;
124
177
  constructor(i18n: MapaI18nService);
125
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
178
+ get texts(): MapaUiTexts;
126
179
  get conceptTitle(): string;
127
180
  toggleAll(): void;
128
181
  getProgressbarData(scale: Scale): ProgressBar$1;
@@ -3,8 +3,7 @@ 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 * as mapa_frontend_i18n from 'mapa-frontend-i18n';
7
- import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
6
+ import { MapaUiTextGroups, PartialMapaUiTexts as PartialMapaUiTexts$1, ValidationContext } from 'mapa-frontend-i18n';
8
7
  import { SelectionModel } from '@angular/cdk/collections';
9
8
  import { FormControl } from '@angular/forms';
10
9
  import { SortDirection, Sort } from '@angular/material/sort';
@@ -95,14 +94,68 @@ interface TableStatus {
95
94
  finished: boolean;
96
95
  }
97
96
 
98
- type MapaUiTexts = MapaUiTextGroups;
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;
99
152
  type ValidationMessageContext = ValidationContext;
100
153
 
101
154
  declare class MapaI18nService {
102
155
  private readonly injector;
103
156
  private readonly textsState;
104
- readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
105
- readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
157
+ readonly textsSignal: i0.Signal<MapaUiTexts>;
158
+ readonly texts$: rxjs.Observable<MapaUiTexts>;
106
159
  constructor(customTexts: PartialMapaUiTexts | null);
107
160
  get texts(): MapaUiTexts;
108
161
  setTexts(texts: PartialMapaUiTexts): void;
@@ -255,7 +308,7 @@ declare class MapaTableComponent {
255
308
  private observeOverflow;
256
309
  private measureOverflow;
257
310
  protected headerDirectionLabel(column: TableColumn): string;
258
- protected get texts(): mapa_frontend_i18n.MapaUiTextGroups;
311
+ protected get texts(): MapaUiTexts;
259
312
  protected get visibleData(): readonly unknown[];
260
313
  protected get isSelectable(): boolean;
261
314
  protected get isLoading(): boolean;
@@ -1,17 +1,70 @@
1
- import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
2
- import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
1
+ import { MapaUiTextGroups, PartialMapaUiTexts as PartialMapaUiTexts$1, ValidationContext } from 'mapa-frontend-i18n';
3
2
  import * as i0 from '@angular/core';
4
3
  import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
5
4
  import * as rxjs from 'rxjs';
6
5
 
7
- type MapaUiTexts = MapaUiTextGroups;
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;
8
61
  type ValidationMessageContext = ValidationContext;
9
62
 
10
63
  declare class MapaI18nService {
11
64
  private readonly injector;
12
65
  private readonly textsState;
13
- readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
14
- readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
66
+ readonly textsSignal: i0.Signal<MapaUiTexts>;
67
+ readonly texts$: rxjs.Observable<MapaUiTexts>;
15
68
  constructor(customTexts: PartialMapaUiTexts | null);
16
69
  get texts(): MapaUiTexts;
17
70
  setTexts(texts: PartialMapaUiTexts): void;
@@ -34,7 +87,7 @@ declare class MapaWarningComponent implements OnInit, OnChanges {
34
87
  expirationDateReports: string[];
35
88
  nonExpirationDateReports: string[];
36
89
  constructor(i18n: MapaI18nService);
37
- get texts(): mapa_frontend_i18n.MapaUiTextGroups;
90
+ get texts(): MapaUiTexts;
38
91
  get lowReliabilityTitle(): string;
39
92
  get expirationLimitTitle(): string;
40
93
  ngOnInit(): void;