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.
Files changed (44) hide show
  1. package/README.md +2 -3
  2. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +42 -35
  3. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  4. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +42 -35
  5. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  6. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +648 -125
  7. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
  8. package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +42 -35
  9. package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
  10. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +42 -35
  11. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  12. package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +42 -35
  13. package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  14. package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +569 -322
  15. package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  16. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +42 -35
  17. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  18. package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +42 -35
  19. package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
  20. package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +42 -35
  21. package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  22. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +522 -581
  23. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  24. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +42 -35
  25. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  26. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +42 -35
  27. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
  28. package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs +1 -4
  29. package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs.map +1 -1
  30. package/fesm2022/mapa-library-ui.mjs +1272 -1018
  31. package/fesm2022/mapa-library-ui.mjs.map +1 -1
  32. package/index.d.ts +350 -187
  33. package/mapa-library-ui-2.0.0.tgz +0 -0
  34. package/package.json +3 -10
  35. package/src/lib/components/datepicker/index.d.ts +165 -27
  36. package/src/lib/components/group-report/index.d.ts +6 -1
  37. package/src/lib/components/menu/index.d.ts +3 -1
  38. package/src/lib/components/report-item/index.d.ts +3 -1
  39. package/src/lib/components/table/index.d.ts +153 -100
  40. package/src/lib/core/utils/index.d.ts +1 -2
  41. package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +0 -733
  42. package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +0 -1
  43. package/mapa-library-ui-1.7.3.tgz +0 -0
  44. 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("MAPA_UI_TEXTS");
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 "Mostrando 0 - 0 de 0 item";
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 ? "item" : "itens";
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: "Selecionar todos",
446
+ selectAll: 'Selecionar todos',
447
+ retry: 'Tentar novamente',
447
448
  },
448
449
  filters: {
449
- clear: "Limpar filtros",
450
- submit: "Filtrar",
450
+ clear: 'Limpar filtros',
451
+ submit: 'Filtrar',
451
452
  },
452
453
  datepicker: {
453
- startDatePlaceholder: "Data inicial",
454
- endDatePlaceholder: "Data final",
454
+ startDatePlaceholder: 'Data inicial',
455
+ endDatePlaceholder: 'Data final',
455
456
  },
456
457
  capability: {
457
- groupAverageTitle: "Média geral do grupo",
458
- individualAverageTitle: "Média geral do indivíduo",
459
- conceptTitle: "Conceito",
460
- resultTitle: "Resultado",
461
- positiveIndicatorsTitle: "Indicadores positivos",
462
- negativeIndicatorsTitle: "Indicadores negativos",
463
- riskIndicatorsTitle: "Indicadores de risco",
464
- precipitationRiskTitle: "Risco de acidente por precipitação",
465
- negligenceRiskTitle: "Risco de acidente por negligência",
466
- negativeDirectionLabel: "Direção Negativa |",
467
- positiveDirectionLabel: "Direção Positiva |",
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: "Itens por página",
471
- nextPage: "Próxima página",
472
- previousPage: "Página anterior",
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: "Nível baixo de confiabilidade no(s) teste(s):",
478
- expirationLimitTitle: "O prazo de validade do(s) teste(s) está no limite:",
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: "Não foram encontrados resultados",
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: "CNPJ inválido",
486
- cpf: "CPF inválido",
487
- email: "E-mail inválido",
488
- max: (context) => `O valor máximo permitido é ${context?.max ?? ""}`.trim(),
489
- maxLength: (context) => `O máximo permitido é ${context?.requiredLength ?? ""} caracteres`.trim(),
490
- min: (context) => `O valor mínimo permitido é ${context?.min ?? ""}`.trim(),
491
- minLength: (context) => `O mínimo permitido é ${context?.requiredLength ?? ""} caracteres`.trim(),
492
- pattern: "Formato inválido",
493
- required: "Campo obrigatório",
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() {