mapa-library-ui 1.1.8 → 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.8.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { MatInput } from '@angular/material/input';
|
|
|
6
6
|
import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
8
8
|
import { ReplaySubject } from 'rxjs';
|
|
9
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
10
|
+
import { MapaUiTextGroups, ValidationContext, ValidationTextResolver, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
11
|
+
export { PartialMapaUiTexts, ValidationTextResolver } from 'mapa-frontend-i18n';
|
|
9
12
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
10
13
|
import * as mapa_library_ui from 'mapa-library-ui';
|
|
11
14
|
import { MatAccordion } from '@angular/material/expansion';
|
|
@@ -309,9 +312,9 @@ declare class BubblePaginationDirective implements AfterViewInit, OnChanges, OnD
|
|
|
309
312
|
showFirstButton: boolean;
|
|
310
313
|
showLastButton: boolean;
|
|
311
314
|
renderButtonsNumber: number;
|
|
312
|
-
appCustomLength
|
|
315
|
+
appCustomLength?: number;
|
|
313
316
|
hideDefaultArrows: boolean;
|
|
314
|
-
bubblePageIndex
|
|
317
|
+
bubblePageIndex?: number;
|
|
315
318
|
bubblePageSize?: number;
|
|
316
319
|
private dotsEndRef;
|
|
317
320
|
private dotsStartRef;
|
|
@@ -339,69 +342,15 @@ declare class BubblePaginationDirective implements AfterViewInit, OnChanges, OnD
|
|
|
339
342
|
private getNeededButtons;
|
|
340
343
|
private getActivePageIndex;
|
|
341
344
|
private getPageSize;
|
|
345
|
+
private getLength;
|
|
342
346
|
private clearButtonListeners;
|
|
343
347
|
static ɵfac: i0.ɵɵFactoryDeclaration<BubblePaginationDirective, never>;
|
|
344
|
-
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>;
|
|
348
|
+
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>;
|
|
345
349
|
}
|
|
346
350
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
min?: number;
|
|
351
|
-
requiredLength?: number;
|
|
352
|
-
}
|
|
353
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
354
|
-
interface MapaUiTexts {
|
|
355
|
-
common: {
|
|
356
|
-
selectAll: string;
|
|
357
|
-
};
|
|
358
|
-
filters: {
|
|
359
|
-
clear: string;
|
|
360
|
-
submit: string;
|
|
361
|
-
};
|
|
362
|
-
datepicker: {
|
|
363
|
-
startDatePlaceholder: string;
|
|
364
|
-
endDatePlaceholder: string;
|
|
365
|
-
};
|
|
366
|
-
capability: {
|
|
367
|
-
groupAverageTitle: string;
|
|
368
|
-
individualAverageTitle: string;
|
|
369
|
-
conceptTitle: string;
|
|
370
|
-
resultTitle: string;
|
|
371
|
-
positiveIndicatorsTitle: string;
|
|
372
|
-
negativeIndicatorsTitle: string;
|
|
373
|
-
riskIndicatorsTitle: string;
|
|
374
|
-
precipitationRiskTitle: string;
|
|
375
|
-
negligenceRiskTitle: string;
|
|
376
|
-
negativeDirectionLabel: string;
|
|
377
|
-
positiveDirectionLabel: string;
|
|
378
|
-
};
|
|
379
|
-
paginator: {
|
|
380
|
-
itemsPerPage: string;
|
|
381
|
-
nextPage: string;
|
|
382
|
-
previousPage: string;
|
|
383
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
384
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
385
|
-
};
|
|
386
|
-
table: {
|
|
387
|
-
emptyTitle: string;
|
|
388
|
-
emptySubtitle: string;
|
|
389
|
-
};
|
|
390
|
-
validation: {
|
|
391
|
-
cnpj: ValidationTextResolver;
|
|
392
|
-
cpf: ValidationTextResolver;
|
|
393
|
-
email: ValidationTextResolver;
|
|
394
|
-
max: ValidationTextResolver;
|
|
395
|
-
maxLength: ValidationTextResolver;
|
|
396
|
-
min: ValidationTextResolver;
|
|
397
|
-
minLength: ValidationTextResolver;
|
|
398
|
-
pattern: ValidationTextResolver;
|
|
399
|
-
required: ValidationTextResolver;
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
type PartialMapaUiTexts = Partial<{
|
|
403
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
404
|
-
}>;
|
|
351
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
352
|
+
type ValidationMessageContext = ValidationContext;
|
|
353
|
+
|
|
405
354
|
declare const MAPA_UI_TEXTS: InjectionToken<Partial<{
|
|
406
355
|
common: Partial<{
|
|
407
356
|
selectAll: string;
|
|
@@ -434,6 +383,10 @@ declare const MAPA_UI_TEXTS: InjectionToken<Partial<{
|
|
|
434
383
|
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
435
384
|
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
436
385
|
}>;
|
|
386
|
+
warning: Partial<{
|
|
387
|
+
lowReliabilityTitle: string;
|
|
388
|
+
expirationLimitTitle: string;
|
|
389
|
+
}>;
|
|
437
390
|
table: Partial<{
|
|
438
391
|
emptyTitle: string;
|
|
439
392
|
emptySubtitle: string;
|
|
@@ -450,15 +403,14 @@ declare const MAPA_UI_TEXTS: InjectionToken<Partial<{
|
|
|
450
403
|
required: ValidationTextResolver;
|
|
451
404
|
}>;
|
|
452
405
|
}>>;
|
|
453
|
-
declare const MAPA_UI_DEFAULT_TEXTS: MapaUiTexts;
|
|
454
406
|
declare function mergeMapaUiTexts(customTexts?: PartialMapaUiTexts | null): MapaUiTexts;
|
|
455
407
|
declare function provideMapaUiTexts(texts: PartialMapaUiTexts): Provider;
|
|
456
408
|
|
|
457
409
|
declare class MapaI18nService {
|
|
458
410
|
private readonly injector;
|
|
459
411
|
private readonly textsState;
|
|
460
|
-
readonly textsSignal: i0.Signal<
|
|
461
|
-
readonly texts$: rxjs.Observable<
|
|
412
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
413
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
462
414
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
463
415
|
get texts(): MapaUiTexts;
|
|
464
416
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -1109,7 +1061,7 @@ declare class MapaCapabilityExpandComponent {
|
|
|
1109
1061
|
private readonly i18n;
|
|
1110
1062
|
data: Capability;
|
|
1111
1063
|
constructor(classification: CapabilityClassificationService, i18n: MapaI18nService);
|
|
1112
|
-
get texts():
|
|
1064
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1113
1065
|
get conceptTitle(): string;
|
|
1114
1066
|
get resultTitle(): string;
|
|
1115
1067
|
get negativeDirectionLabel(): string;
|
|
@@ -1185,7 +1137,7 @@ declare class MapaCapabilityComparativeHeaderComponent {
|
|
|
1185
1137
|
private readonly i18n;
|
|
1186
1138
|
data: CapabilityComparative;
|
|
1187
1139
|
constructor(i18n: MapaI18nService);
|
|
1188
|
-
get texts():
|
|
1140
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1189
1141
|
get groupAverageTitle(): string;
|
|
1190
1142
|
get individualAverageTitle(): string;
|
|
1191
1143
|
getCapabilityData(item: number): Capability;
|
|
@@ -1229,7 +1181,7 @@ declare class MapaCapabilityIndicatorListComponent implements OnInit, OnChanges
|
|
|
1229
1181
|
dataRiskPrecipitation: CapabilityItem[];
|
|
1230
1182
|
dataRiskNegligence: CapabilityItem[];
|
|
1231
1183
|
constructor(i18n: MapaI18nService);
|
|
1232
|
-
get texts():
|
|
1184
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1233
1185
|
get positiveIndicatorsTitle(): string;
|
|
1234
1186
|
get negativeIndicatorsTitle(): string;
|
|
1235
1187
|
get riskIndicatorsTitle(): string;
|
|
@@ -1345,7 +1297,7 @@ declare class MapaDatepickerRange implements OnInit {
|
|
|
1345
1297
|
readonly formDisplay: MapaDatepickerRangeDisplayFormGroup;
|
|
1346
1298
|
rangeControl: FormControl<MapaDatepickerRangeControlValue | null>;
|
|
1347
1299
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1348
|
-
get texts():
|
|
1300
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1349
1301
|
ngOnInit(): void;
|
|
1350
1302
|
get startDatePlaceholder(): string;
|
|
1351
1303
|
get endDatePlaceholder(): string;
|
|
@@ -1398,7 +1350,7 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
1398
1350
|
isChecked: boolean;
|
|
1399
1351
|
isOptionsGroup: boolean;
|
|
1400
1352
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1401
|
-
get texts():
|
|
1353
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1402
1354
|
get selectAllLabel(): string;
|
|
1403
1355
|
get selectedOptions(): ElementOption[];
|
|
1404
1356
|
ngOnInit(): void;
|
|
@@ -1455,7 +1407,7 @@ declare class FiltersComponent {
|
|
|
1455
1407
|
elements: ElementBase[];
|
|
1456
1408
|
selectedValues: EventEmitter<Record<string, unknown>>;
|
|
1457
1409
|
constructor(i18n: MapaI18nService);
|
|
1458
|
-
get texts():
|
|
1410
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1459
1411
|
get clearFiltersLabel(): string;
|
|
1460
1412
|
get submitFiltersLabel(): string;
|
|
1461
1413
|
getFormControl(filterKey: string): FormControl<unknown>;
|
|
@@ -1665,7 +1617,7 @@ declare class MapaScaleComponent {
|
|
|
1665
1617
|
data: Competence$1[];
|
|
1666
1618
|
showProgressbar: boolean;
|
|
1667
1619
|
constructor(i18n: MapaI18nService);
|
|
1668
|
-
get texts():
|
|
1620
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1669
1621
|
get conceptTitle(): string;
|
|
1670
1622
|
getProgressbarData(scale: Scale$1): ProgressBar$1;
|
|
1671
1623
|
getIntervalbarData(scale: Scale$1): Capability;
|
|
@@ -1754,7 +1706,7 @@ declare class MapaTableComponent implements AfterViewInit, OnChanges {
|
|
|
1754
1706
|
private readonly destroyRef;
|
|
1755
1707
|
private filterControlSubscription?;
|
|
1756
1708
|
constructor(cdr: ChangeDetectorRef, i18n: MapaI18nService);
|
|
1757
|
-
get texts():
|
|
1709
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1758
1710
|
get selectAllLabel(): string;
|
|
1759
1711
|
get paginatorPageIndex(): number;
|
|
1760
1712
|
get shouldShowPaginator(): boolean;
|
|
@@ -1897,11 +1849,16 @@ interface LowReliabilityReport {
|
|
|
1897
1849
|
isExpirationDate?: boolean;
|
|
1898
1850
|
}
|
|
1899
1851
|
declare class MapaWarningComponent implements OnInit, OnChanges {
|
|
1852
|
+
private readonly i18n;
|
|
1900
1853
|
lowReliabilityReports: LowReliabilityReport[];
|
|
1901
1854
|
showFirstLine: boolean;
|
|
1902
1855
|
showSecondLine: boolean;
|
|
1903
1856
|
expirationDateReports: string[];
|
|
1904
1857
|
nonExpirationDateReports: string[];
|
|
1858
|
+
constructor(i18n: MapaI18nService);
|
|
1859
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1860
|
+
get lowReliabilityTitle(): string;
|
|
1861
|
+
get expirationLimitTitle(): string;
|
|
1905
1862
|
ngOnInit(): void;
|
|
1906
1863
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1907
1864
|
updateVisibilityFlags(): void;
|
|
@@ -1950,7 +1907,7 @@ declare class MapaScaleParameterizationComponent {
|
|
|
1950
1907
|
accordion: MatAccordion;
|
|
1951
1908
|
expanded: Set<number>;
|
|
1952
1909
|
constructor(i18n: MapaI18nService);
|
|
1953
|
-
get texts():
|
|
1910
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1954
1911
|
get conceptTitle(): string;
|
|
1955
1912
|
toggleAll(): void;
|
|
1956
1913
|
getProgressbarData(scale: Scale): ProgressBar;
|
|
@@ -1964,5 +1921,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
1964
1921
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaScaleParameterizationComponent, "mapa-scale-parameterization", never, { "data": { "alias": "data"; "required": false; }; "showProgressbar": { "alias": "showProgressbar"; "required": false; }; "showInterval": { "alias": "showInterval"; "required": false; }; "showDots": { "alias": "showDots"; "required": false; }; }, {}, never, never, true, never>;
|
|
1965
1922
|
}
|
|
1966
1923
|
|
|
1967
|
-
export { AIH_ESTADOS, AIH_TIPOS, BubblePaginationDirective, ButtonComponent, ButtonIconComponent, CEPRange, CID_NAME, CID_REGEX, CORES, CPFPipe, CapabilityClassificationService, CheckboxComponent, Datepicker, DatepickerRange, Dropdown, DropdownTree, ESTADOS, ESTADOS_SIGLA, ElementBase, FiltersComponent, HtmlSanitizerService, IPTUCREATE, IPTUMASKS, IPTUVALIDATE, IconComponent, InputText, LOCALIZACAO_BAIRROS, LOCALIZACAO_CIDADES, LOCALIZACAO_COMPLEMENTOS, LOCALIZACAO_ESTADOS, LOCALIZACAO_LOGRADOUROS, LOCALIZACAO_RUAS, MAPA_DATEPICKER_FORMATS, MAPA_DATEPICKER_RANGE_FORMATS,
|
|
1968
|
-
export type { ActionButton, Benchmark, BenchmarkMark, BenchmarkingChart, Classification as BenchmarkingClassification, BigObject, Breadpiece, ButtonIcon, Candidate, Capability, CapabilityClassification, CapabilityComparative, CapabilityItem, ChartOptions, Classification$1 as Classification, Competence$1 as Competence, DataNode, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LowReliabilityReport, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem,
|
|
1924
|
+
export { AIH_ESTADOS, AIH_TIPOS, BubblePaginationDirective, ButtonComponent, ButtonIconComponent, CEPRange, CID_NAME, CID_REGEX, CORES, CPFPipe, CapabilityClassificationService, CheckboxComponent, Datepicker, DatepickerRange, Dropdown, DropdownTree, ESTADOS, ESTADOS_SIGLA, ElementBase, FiltersComponent, HtmlSanitizerService, IPTUCREATE, IPTUMASKS, IPTUVALIDATE, IconComponent, InputText, LOCALIZACAO_BAIRROS, LOCALIZACAO_CIDADES, LOCALIZACAO_COMPLEMENTOS, LOCALIZACAO_ESTADOS, LOCALIZACAO_LOGRADOUROS, LOCALIZACAO_RUAS, MAPA_DATEPICKER_FORMATS, MAPA_DATEPICKER_RANGE_FORMATS, MAPA_UI_TEXTS, MASKSIE, MapaBenchmarkChartComponent, MapaBenchmarkIndicatorComponent, MapaBreadcrumbComponent, MapaCapabilityComparativeChartComponent, MapaCapabilityComparativeComponent, MapaCapabilityComparativeHeaderComponent, MapaCapabilityDetailComponent, MapaCapabilityDotComponent, MapaCapabilityExpandComponent, MapaCapabilityIndicatorChartComponent, MapaCapabilityIndicatorComponent, MapaCapabilityIndicatorListComponent, MapaCapabilityIntervalBarComponent, MapaCapabilityIntervalComponent, MapaChartComponent, MapaDatepicker, MapaDatepickerRange, MapaDetailsComponent, MapaDialogComponent, MapaDropdownComponent, MapaDropdownTreeComponent, MapaEmptyStateComponent, MapaFormComponent, MapaFormErrorsComponent, MapaGroupReportComponent, MapaI18nService, MapaInputComponent, MapaMenuComponent, MapaNavListComponent, MapaProgressbarComponent, MapaScaleComponent, MapaScaleParameterizationComponent, MapaSvgIconComponent, MapaTableComponent, MapaTextareaComponent, MapaTooltipComponent, MapaTooltipDirective, MapaWarningComponent, MatInputAutosizeDirective, PLACAS_INVALID, PLACAS_RANGE, RadioButton, RadioButtonComponent, ReportItemComponent, SafeHtmlPipe, SlideToggle, SlideToggleComponent, TagComponent, Textarea, ValidationMessageResolverService, allNumbersAreSame, buildDetailedIndicatorSections, buildIndicatorCollections, cep_ranges, create_aih, create_cartaocredito, create_certidao, create_cnh, create_cnhespelho, create_cnpj, create_cns, create_cpf, create_ect, create_iptu, create_iptu_ctba, create_iptu_sp, create_pispasep, create_processo, create_renachestadual, create_renachseguranca, create_renavam, create_titulo, create_titulo_atual, creditCardValidator, currencyToNumber, customPaginatorFactory, faker_iptu, fillString, generateInscricaoEstadual, getAllDigits, getAllWords, getSpecialProperty, isArray, isNil, isNumber, isPresent, isString, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeLookup, normalizeText, numberToCurrency, openDialog, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, rg_rj, rg_sp, sanitizeHtmlContent, slugify, utilsBr, validateBr, validate_aih, validate_cartaocredito, validate_celular, validate_cep, validate_certidao, validate_chassi, validate_cnh, validate_cnhespelho, validate_cnpj, validate_cns, validate_cpf, validate_currency, validate_datahora, validate_datetime, validate_ect, validate_inscricaoestadual, validate_iptu, validate_iptu_contagem, validate_iptu_ctba, validate_iptu_sp, validate_number, validate_pispasep, validate_placa, validate_porcentagem, validate_processo, validate_renachestadual, validate_renachseguranca, validate_renavam, validate_rg, validate_sped, validate_telefone, validate_time, validate_titulo };
|
|
1925
|
+
export type { ActionButton, Benchmark, BenchmarkMark, BenchmarkingChart, Classification as BenchmarkingClassification, BigObject, Breadpiece, ButtonIcon, Candidate, Capability, CapabilityClassification, CapabilityComparative, CapabilityItem, ChartOptions, Classification$1 as Classification, Competence$1 as Competence, DataNode, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LowReliabilityReport, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem, ProgressBar$1 as ProgressBar, ReportItem, ReportItemMenuItem, RowClickEvent, Scale$1 as Scale, Competence as ScaleParameterizationCompetence, Dimension as ScaleParameterizationDimension, ProgressBar as ScaleParameterizationProgressBar, Scale as ScaleParameterizationScale, SelectedTableRow, Status, TableCellStyleClass, TableColumn, TableColumnStatus, TableEmptyState, TableRowData, TableStatus, Tag, ValidationMessageContext };
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapa-library-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/animations": "^20.
|
|
6
|
-
"@angular/cdk": "^20.
|
|
7
|
-
"@angular/common": "^20.
|
|
8
|
-
"@angular/core": "^20.
|
|
9
|
-
"@angular/forms": "^20.
|
|
10
|
-
"@angular/
|
|
11
|
-
"@angular/
|
|
5
|
+
"@angular/animations": "^20.3.0",
|
|
6
|
+
"@angular/cdk": "^20.2.0",
|
|
7
|
+
"@angular/common": "^20.3.0",
|
|
8
|
+
"@angular/core": "^20.3.0",
|
|
9
|
+
"@angular/forms": "^20.3.0",
|
|
10
|
+
"@angular/localize": "^20.3.0",
|
|
11
|
+
"@angular/material": "^20.2.0",
|
|
12
|
+
"@angular/router": "^20.3.0",
|
|
12
13
|
"apexcharts": "^5.10.3",
|
|
14
|
+
"mapa-frontend-i18n": "^1.3.0",
|
|
13
15
|
"ng-apexcharts": "^2.3.0",
|
|
14
16
|
"ngx-mask": "^20.0.3",
|
|
15
17
|
"ngx-mat-select-search": "^8.0.4",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges, TemplateRef, ElementRef, ApplicationRef } from '@angular/core';
|
|
3
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
4
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
3
5
|
import { FormControl } from '@angular/forms';
|
|
4
6
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
5
7
|
import { MatSelect } from '@angular/material/select';
|
|
@@ -18,65 +20,6 @@ declare class ButtonComponent {
|
|
|
18
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "mapa-button", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
interface ValidationMessageContext {
|
|
22
|
-
actualLength?: number;
|
|
23
|
-
max?: number;
|
|
24
|
-
min?: number;
|
|
25
|
-
requiredLength?: number;
|
|
26
|
-
}
|
|
27
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
28
|
-
interface MapaUiTexts {
|
|
29
|
-
common: {
|
|
30
|
-
selectAll: string;
|
|
31
|
-
};
|
|
32
|
-
filters: {
|
|
33
|
-
clear: string;
|
|
34
|
-
submit: string;
|
|
35
|
-
};
|
|
36
|
-
datepicker: {
|
|
37
|
-
startDatePlaceholder: string;
|
|
38
|
-
endDatePlaceholder: string;
|
|
39
|
-
};
|
|
40
|
-
capability: {
|
|
41
|
-
groupAverageTitle: string;
|
|
42
|
-
individualAverageTitle: string;
|
|
43
|
-
conceptTitle: string;
|
|
44
|
-
resultTitle: string;
|
|
45
|
-
positiveIndicatorsTitle: string;
|
|
46
|
-
negativeIndicatorsTitle: string;
|
|
47
|
-
riskIndicatorsTitle: string;
|
|
48
|
-
precipitationRiskTitle: string;
|
|
49
|
-
negligenceRiskTitle: string;
|
|
50
|
-
negativeDirectionLabel: string;
|
|
51
|
-
positiveDirectionLabel: string;
|
|
52
|
-
};
|
|
53
|
-
paginator: {
|
|
54
|
-
itemsPerPage: string;
|
|
55
|
-
nextPage: string;
|
|
56
|
-
previousPage: string;
|
|
57
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
58
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
59
|
-
};
|
|
60
|
-
table: {
|
|
61
|
-
emptyTitle: string;
|
|
62
|
-
emptySubtitle: string;
|
|
63
|
-
};
|
|
64
|
-
validation: {
|
|
65
|
-
cnpj: ValidationTextResolver;
|
|
66
|
-
cpf: ValidationTextResolver;
|
|
67
|
-
email: ValidationTextResolver;
|
|
68
|
-
max: ValidationTextResolver;
|
|
69
|
-
maxLength: ValidationTextResolver;
|
|
70
|
-
min: ValidationTextResolver;
|
|
71
|
-
minLength: ValidationTextResolver;
|
|
72
|
-
pattern: ValidationTextResolver;
|
|
73
|
-
required: ValidationTextResolver;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
type PartialMapaUiTexts = Partial<{
|
|
77
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
78
|
-
}>;
|
|
79
|
-
|
|
80
23
|
interface ElementTreeNode {
|
|
81
24
|
key: string;
|
|
82
25
|
value: string;
|
|
@@ -197,11 +140,14 @@ declare class Dropdown extends ElementBase {
|
|
|
197
140
|
controlType: string;
|
|
198
141
|
}
|
|
199
142
|
|
|
143
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
144
|
+
type ValidationMessageContext = ValidationContext;
|
|
145
|
+
|
|
200
146
|
declare class MapaI18nService {
|
|
201
147
|
private readonly injector;
|
|
202
148
|
private readonly textsState;
|
|
203
|
-
readonly textsSignal: i0.Signal<
|
|
204
|
-
readonly texts$: rxjs.Observable<
|
|
149
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
150
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
205
151
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
206
152
|
get texts(): MapaUiTexts;
|
|
207
153
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -229,7 +175,7 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
229
175
|
isChecked: boolean;
|
|
230
176
|
isOptionsGroup: boolean;
|
|
231
177
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
232
|
-
get texts():
|
|
178
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
233
179
|
get selectAllLabel(): string;
|
|
234
180
|
get selectedOptions(): ElementOption[];
|
|
235
181
|
ngOnInit(): void;
|
|
@@ -435,7 +381,7 @@ declare class MapaCapabilityExpandComponent {
|
|
|
435
381
|
private readonly i18n;
|
|
436
382
|
data: Capability;
|
|
437
383
|
constructor(classification: CapabilityClassificationService, i18n: MapaI18nService);
|
|
438
|
-
get texts():
|
|
384
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
439
385
|
get conceptTitle(): string;
|
|
440
386
|
get resultTitle(): string;
|
|
441
387
|
get negativeDirectionLabel(): string;
|
|
@@ -511,7 +457,7 @@ declare class MapaCapabilityComparativeHeaderComponent {
|
|
|
511
457
|
private readonly i18n;
|
|
512
458
|
data: CapabilityComparative;
|
|
513
459
|
constructor(i18n: MapaI18nService);
|
|
514
|
-
get texts():
|
|
460
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
515
461
|
get groupAverageTitle(): string;
|
|
516
462
|
get individualAverageTitle(): string;
|
|
517
463
|
getCapabilityData(item: number): Capability;
|
|
@@ -555,7 +501,7 @@ declare class MapaCapabilityIndicatorListComponent implements OnInit, OnChanges
|
|
|
555
501
|
dataRiskPrecipitation: CapabilityItem[];
|
|
556
502
|
dataRiskNegligence: CapabilityItem[];
|
|
557
503
|
constructor(i18n: MapaI18nService);
|
|
558
|
-
get texts():
|
|
504
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
559
505
|
get positiveIndicatorsTitle(): string;
|
|
560
506
|
get negativeIndicatorsTitle(): string;
|
|
561
507
|
get riskIndicatorsTitle(): string;
|
|
@@ -1,72 +1,18 @@
|
|
|
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 { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
3
5
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
6
|
import * as rxjs from 'rxjs';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
max?: number;
|
|
9
|
-
min?: number;
|
|
10
|
-
requiredLength?: number;
|
|
11
|
-
}
|
|
12
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
13
|
-
interface MapaUiTexts {
|
|
14
|
-
common: {
|
|
15
|
-
selectAll: string;
|
|
16
|
-
};
|
|
17
|
-
filters: {
|
|
18
|
-
clear: string;
|
|
19
|
-
submit: string;
|
|
20
|
-
};
|
|
21
|
-
datepicker: {
|
|
22
|
-
startDatePlaceholder: string;
|
|
23
|
-
endDatePlaceholder: string;
|
|
24
|
-
};
|
|
25
|
-
capability: {
|
|
26
|
-
groupAverageTitle: string;
|
|
27
|
-
individualAverageTitle: string;
|
|
28
|
-
conceptTitle: string;
|
|
29
|
-
resultTitle: string;
|
|
30
|
-
positiveIndicatorsTitle: string;
|
|
31
|
-
negativeIndicatorsTitle: string;
|
|
32
|
-
riskIndicatorsTitle: string;
|
|
33
|
-
precipitationRiskTitle: string;
|
|
34
|
-
negligenceRiskTitle: string;
|
|
35
|
-
negativeDirectionLabel: string;
|
|
36
|
-
positiveDirectionLabel: string;
|
|
37
|
-
};
|
|
38
|
-
paginator: {
|
|
39
|
-
itemsPerPage: string;
|
|
40
|
-
nextPage: string;
|
|
41
|
-
previousPage: string;
|
|
42
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
43
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
44
|
-
};
|
|
45
|
-
table: {
|
|
46
|
-
emptyTitle: string;
|
|
47
|
-
emptySubtitle: string;
|
|
48
|
-
};
|
|
49
|
-
validation: {
|
|
50
|
-
cnpj: ValidationTextResolver;
|
|
51
|
-
cpf: ValidationTextResolver;
|
|
52
|
-
email: ValidationTextResolver;
|
|
53
|
-
max: ValidationTextResolver;
|
|
54
|
-
maxLength: ValidationTextResolver;
|
|
55
|
-
min: ValidationTextResolver;
|
|
56
|
-
minLength: ValidationTextResolver;
|
|
57
|
-
pattern: ValidationTextResolver;
|
|
58
|
-
required: ValidationTextResolver;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
type PartialMapaUiTexts = Partial<{
|
|
62
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
63
|
-
}>;
|
|
8
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
9
|
+
type ValidationMessageContext = ValidationContext;
|
|
64
10
|
|
|
65
11
|
declare class MapaI18nService {
|
|
66
12
|
private readonly injector;
|
|
67
13
|
private readonly textsState;
|
|
68
|
-
readonly textsSignal: i0.Signal<
|
|
69
|
-
readonly texts$: rxjs.Observable<
|
|
14
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
15
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
70
16
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
71
17
|
get texts(): MapaUiTexts;
|
|
72
18
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -236,7 +182,7 @@ declare class MapaDatepickerRange implements OnInit {
|
|
|
236
182
|
readonly formDisplay: MapaDatepickerRangeDisplayFormGroup;
|
|
237
183
|
rangeControl: FormControl<MapaDatepickerRangeControlValue | null>;
|
|
238
184
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
239
|
-
get texts():
|
|
185
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
240
186
|
ngOnInit(): void;
|
|
241
187
|
get startDatePlaceholder(): string;
|
|
242
188
|
get endDatePlaceholder(): string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
4
|
+
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
5
|
+
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
4
6
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
5
7
|
import { MatSelect } from '@angular/material/select';
|
|
6
8
|
import * as rxjs from 'rxjs';
|
|
@@ -126,70 +128,14 @@ declare class Dropdown extends ElementBase {
|
|
|
126
128
|
controlType: string;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
max?: number;
|
|
132
|
-
min?: number;
|
|
133
|
-
requiredLength?: number;
|
|
134
|
-
}
|
|
135
|
-
type ValidationTextResolver = string | ((context?: ValidationMessageContext) => string);
|
|
136
|
-
interface MapaUiTexts {
|
|
137
|
-
common: {
|
|
138
|
-
selectAll: string;
|
|
139
|
-
};
|
|
140
|
-
filters: {
|
|
141
|
-
clear: string;
|
|
142
|
-
submit: string;
|
|
143
|
-
};
|
|
144
|
-
datepicker: {
|
|
145
|
-
startDatePlaceholder: string;
|
|
146
|
-
endDatePlaceholder: string;
|
|
147
|
-
};
|
|
148
|
-
capability: {
|
|
149
|
-
groupAverageTitle: string;
|
|
150
|
-
individualAverageTitle: string;
|
|
151
|
-
conceptTitle: string;
|
|
152
|
-
resultTitle: string;
|
|
153
|
-
positiveIndicatorsTitle: string;
|
|
154
|
-
negativeIndicatorsTitle: string;
|
|
155
|
-
riskIndicatorsTitle: string;
|
|
156
|
-
precipitationRiskTitle: string;
|
|
157
|
-
negligenceRiskTitle: string;
|
|
158
|
-
negativeDirectionLabel: string;
|
|
159
|
-
positiveDirectionLabel: string;
|
|
160
|
-
};
|
|
161
|
-
paginator: {
|
|
162
|
-
itemsPerPage: string;
|
|
163
|
-
nextPage: string;
|
|
164
|
-
previousPage: string;
|
|
165
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
166
|
-
showingRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
167
|
-
};
|
|
168
|
-
table: {
|
|
169
|
-
emptyTitle: string;
|
|
170
|
-
emptySubtitle: string;
|
|
171
|
-
};
|
|
172
|
-
validation: {
|
|
173
|
-
cnpj: ValidationTextResolver;
|
|
174
|
-
cpf: ValidationTextResolver;
|
|
175
|
-
email: ValidationTextResolver;
|
|
176
|
-
max: ValidationTextResolver;
|
|
177
|
-
maxLength: ValidationTextResolver;
|
|
178
|
-
min: ValidationTextResolver;
|
|
179
|
-
minLength: ValidationTextResolver;
|
|
180
|
-
pattern: ValidationTextResolver;
|
|
181
|
-
required: ValidationTextResolver;
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
type PartialMapaUiTexts = Partial<{
|
|
185
|
-
[K in keyof MapaUiTexts]: Partial<MapaUiTexts[K]>;
|
|
186
|
-
}>;
|
|
131
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
132
|
+
type ValidationMessageContext = ValidationContext;
|
|
187
133
|
|
|
188
134
|
declare class MapaI18nService {
|
|
189
135
|
private readonly injector;
|
|
190
136
|
private readonly textsState;
|
|
191
|
-
readonly textsSignal: i0.Signal<
|
|
192
|
-
readonly texts$: rxjs.Observable<
|
|
137
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
138
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
193
139
|
constructor(customTexts: PartialMapaUiTexts | null);
|
|
194
140
|
get texts(): MapaUiTexts;
|
|
195
141
|
setTexts(texts: PartialMapaUiTexts): void;
|
|
@@ -217,7 +163,7 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
217
163
|
isChecked: boolean;
|
|
218
164
|
isOptionsGroup: boolean;
|
|
219
165
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
220
|
-
get texts():
|
|
166
|
+
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
221
167
|
get selectAllLabel(): string;
|
|
222
168
|
get selectedOptions(): ElementOption[];
|
|
223
169
|
ngOnInit(): void;
|