mapa-library-ui 1.7.3 → 2.0.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/README.md +2 -3
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +648 -125
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +569 -322
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +522 -581
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +42 -35
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs +1 -4
- package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +1272 -1018
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +350 -187
- package/mapa-library-ui-2.0.0.tgz +0 -0
- package/package.json +3 -10
- package/src/lib/components/datepicker/index.d.ts +165 -27
- package/src/lib/components/group-report/index.d.ts +6 -1
- package/src/lib/components/menu/index.d.ts +3 -1
- package/src/lib/components/report-item/index.d.ts +3 -1
- package/src/lib/components/table/index.d.ts +153 -100
- package/src/lib/core/utils/index.d.ts +1 -2
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +0 -733
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +0 -1
- package/mapa-library-ui-1.7.3.tgz +0 -0
- package/src/lib/components/datepicker-range/index.d.ts +0 -207
|
@@ -417,7 +417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
417
417
|
}]
|
|
418
418
|
}], ctorParameters: () => [{ type: HtmlSanitizerService }] });
|
|
419
419
|
|
|
420
|
-
const MAPA_UI_TEXTS = new InjectionToken(
|
|
420
|
+
const MAPA_UI_TEXTS = new InjectionToken('MAPA_UI_TEXTS');
|
|
421
421
|
function formatPaginatorRange(page, pageSize, length) {
|
|
422
422
|
if (length === 0 || pageSize === 0) {
|
|
423
423
|
return `0 de ${length}`;
|
|
@@ -431,66 +431,73 @@ function formatPaginatorRange(page, pageSize, length) {
|
|
|
431
431
|
}
|
|
432
432
|
function formatPaginatorShowingRange(page, pageSize, length) {
|
|
433
433
|
if (length === 0 || pageSize === 0) {
|
|
434
|
-
return
|
|
434
|
+
return 'Mostrando 0 - 0 de 0 item';
|
|
435
435
|
}
|
|
436
436
|
const safeLength = Math.max(length, 0);
|
|
437
437
|
const startIndex = page * pageSize;
|
|
438
438
|
const endIndex = startIndex < safeLength
|
|
439
439
|
? Math.min(startIndex + pageSize, safeLength)
|
|
440
440
|
: startIndex + pageSize;
|
|
441
|
-
const itemLabel = safeLength === 1 ?
|
|
441
|
+
const itemLabel = safeLength === 1 ? 'item' : 'itens';
|
|
442
442
|
return `Mostrando ${startIndex + 1} - ${endIndex} de ${safeLength} ${itemLabel}`;
|
|
443
443
|
}
|
|
444
444
|
const DEFAULT_MAPA_UI_TEXTS = {
|
|
445
445
|
common: {
|
|
446
|
-
selectAll:
|
|
446
|
+
selectAll: 'Selecionar todos',
|
|
447
|
+
retry: 'Tentar novamente',
|
|
447
448
|
},
|
|
448
449
|
filters: {
|
|
449
|
-
clear:
|
|
450
|
-
submit:
|
|
450
|
+
clear: 'Limpar filtros',
|
|
451
|
+
submit: 'Filtrar',
|
|
451
452
|
},
|
|
452
453
|
datepicker: {
|
|
453
|
-
startDatePlaceholder:
|
|
454
|
-
endDatePlaceholder:
|
|
454
|
+
startDatePlaceholder: 'Data inicial',
|
|
455
|
+
endDatePlaceholder: 'Data final',
|
|
455
456
|
},
|
|
456
457
|
capability: {
|
|
457
|
-
groupAverageTitle:
|
|
458
|
-
individualAverageTitle:
|
|
459
|
-
conceptTitle:
|
|
460
|
-
resultTitle:
|
|
461
|
-
positiveIndicatorsTitle:
|
|
462
|
-
negativeIndicatorsTitle:
|
|
463
|
-
riskIndicatorsTitle:
|
|
464
|
-
precipitationRiskTitle:
|
|
465
|
-
negligenceRiskTitle:
|
|
466
|
-
negativeDirectionLabel:
|
|
467
|
-
positiveDirectionLabel:
|
|
458
|
+
groupAverageTitle: 'Média geral do grupo',
|
|
459
|
+
individualAverageTitle: 'Média geral do indivíduo',
|
|
460
|
+
conceptTitle: 'Conceito',
|
|
461
|
+
resultTitle: 'Resultado',
|
|
462
|
+
positiveIndicatorsTitle: 'Indicadores positivos',
|
|
463
|
+
negativeIndicatorsTitle: 'Indicadores negativos',
|
|
464
|
+
riskIndicatorsTitle: 'Indicadores de risco',
|
|
465
|
+
precipitationRiskTitle: 'Risco de acidente por precipitação',
|
|
466
|
+
negligenceRiskTitle: 'Risco de acidente por negligência',
|
|
467
|
+
negativeDirectionLabel: 'Direção Negativa |',
|
|
468
|
+
positiveDirectionLabel: 'Direção Positiva |',
|
|
468
469
|
},
|
|
469
470
|
paginator: {
|
|
470
|
-
itemsPerPage:
|
|
471
|
-
nextPage:
|
|
472
|
-
previousPage:
|
|
471
|
+
itemsPerPage: 'Itens por página',
|
|
472
|
+
nextPage: 'Próxima página',
|
|
473
|
+
previousPage: 'Página anterior',
|
|
473
474
|
rangeLabel: formatPaginatorRange,
|
|
474
475
|
showingRangeLabel: formatPaginatorShowingRange,
|
|
475
476
|
},
|
|
476
477
|
warning: {
|
|
477
|
-
lowReliabilityTitle:
|
|
478
|
-
expirationLimitTitle:
|
|
478
|
+
lowReliabilityTitle: 'Nível baixo de confiabilidade no(s) teste(s):',
|
|
479
|
+
expirationLimitTitle: 'O prazo de validade do(s) teste(s) está no limite:',
|
|
479
480
|
},
|
|
480
481
|
table: {
|
|
481
|
-
emptyTitle:
|
|
482
|
-
emptySubtitle:
|
|
482
|
+
emptyTitle: 'Não foram encontrados resultados',
|
|
483
|
+
emptySubtitle: '',
|
|
484
|
+
loading: 'Carregando resultados',
|
|
485
|
+
errorTitle: 'Não foi possível carregar os resultados.',
|
|
486
|
+
selectAllVisible: 'Selecionar todos os itens desta página',
|
|
487
|
+
selectionColumn: 'Seleção',
|
|
488
|
+
selectRow: 'Selecionar item',
|
|
489
|
+
selectNamedRow: (item) => `Selecionar ${item}`,
|
|
483
490
|
},
|
|
484
491
|
validation: {
|
|
485
|
-
cnpj:
|
|
486
|
-
cpf:
|
|
487
|
-
email:
|
|
488
|
-
max: (context) => `O valor máximo permitido é ${context?.max ??
|
|
489
|
-
maxLength: (context) => `O máximo permitido é ${context?.requiredLength ??
|
|
490
|
-
min: (context) => `O valor mínimo permitido é ${context?.min ??
|
|
491
|
-
minLength: (context) => `O mínimo permitido é ${context?.requiredLength ??
|
|
492
|
-
pattern:
|
|
493
|
-
required:
|
|
492
|
+
cnpj: 'CNPJ inválido',
|
|
493
|
+
cpf: 'CPF inválido',
|
|
494
|
+
email: 'E-mail inválido',
|
|
495
|
+
max: (context) => `O valor máximo permitido é ${context?.max ?? ''}`.trim(),
|
|
496
|
+
maxLength: (context) => `O máximo permitido é ${context?.requiredLength ?? ''} caracteres`.trim(),
|
|
497
|
+
min: (context) => `O valor mínimo permitido é ${context?.min ?? ''}`.trim(),
|
|
498
|
+
minLength: (context) => `O mínimo permitido é ${context?.requiredLength ?? ''} caracteres`.trim(),
|
|
499
|
+
pattern: 'Formato inválido',
|
|
500
|
+
required: 'Campo obrigatório',
|
|
494
501
|
},
|
|
495
502
|
};
|
|
496
503
|
function getDefaultTexts() {
|