mapa-library-ui 2.1.2 → 2.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.
Files changed (51) hide show
  1. package/README.md +85 -5
  2. package/fesm2022/mapa-library-ui-src-lib-components-breadcrumb.mjs +10 -2
  3. package/fesm2022/mapa-library-ui-src-lib-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/mapa-library-ui-src-lib-components-button.mjs +8 -2
  5. package/fesm2022/mapa-library-ui-src-lib-components-button.mjs.map +1 -1
  6. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +48 -3
  7. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  8. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +48 -3
  9. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  10. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +39 -0
  11. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
  12. package/fesm2022/mapa-library-ui-src-lib-components-dialog.mjs +9 -3
  13. package/fesm2022/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  14. package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +48 -3
  15. package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
  16. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +48 -3
  17. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  18. package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +50 -5
  19. package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  20. package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +49 -4
  21. package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  22. package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs +197 -150
  23. package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
  24. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +48 -3
  25. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  26. package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +39 -0
  27. package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
  28. package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +39 -0
  29. package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  30. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +46 -4
  31. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  32. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +39 -0
  33. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  34. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +39 -0
  35. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
  36. package/fesm2022/mapa-library-ui.mjs +797 -25
  37. package/fesm2022/mapa-library-ui.mjs.map +1 -1
  38. package/index.d.ts +451 -4
  39. package/mapa-library-ui-2.2.0.tgz +0 -0
  40. package/package.json +50 -2
  41. package/src/lib/components/breadcrumb/index.d.ts +3 -1
  42. package/src/lib/components/button/index.d.ts +3 -1
  43. package/src/lib/components/capability/index.d.ts +4 -1
  44. package/src/lib/components/dialog/index.d.ts +3 -1
  45. package/src/lib/components/filters/index.d.ts +3 -1
  46. package/src/lib/components/form/index.d.ts +3 -1
  47. package/src/lib/components/group-report/index.d.ts +2 -0
  48. package/src/lib/components/scale/index.d.ts +1 -0
  49. package/src/lib/components/scale-parameterization/index.d.ts +1 -0
  50. package/src/lib/components/table/index.d.ts +2 -0
  51. package/mapa-library-ui-2.1.2.tgz +0 -0
@@ -441,6 +441,9 @@ function formatPaginatorShowingRange(page, pageSize, length) {
441
441
  const itemLabel = safeLength === 1 ? 'item' : 'itens';
442
442
  return `Mostrando ${startIndex + 1} - ${endIndex} de ${safeLength} ${itemLabel}`;
443
443
  }
444
+ function formatItemCount(count) {
445
+ return `${count} ${count === 1 ? 'item' : 'itens'}`;
446
+ }
444
447
  const DEFAULT_MAPA_UI_TEXTS = {
445
448
  common: {
446
449
  selectAll: 'Selecionar todos',
@@ -467,6 +470,41 @@ const DEFAULT_MAPA_UI_TEXTS = {
467
470
  negativeDirectionLabel: 'Direção Negativa |',
468
471
  positiveDirectionLabel: 'Direção Positiva |',
469
472
  },
473
+ report: {
474
+ summarized: 'Resumida',
475
+ detailed: 'Detalhada',
476
+ list: 'Lista',
477
+ chart: 'Gráfico',
478
+ viewModeLabel: 'Modo de visualização',
479
+ readingInformationTitle: 'Informações de leitura',
480
+ dimensionTitle: 'Dimensão',
481
+ conceptTitle: 'Conceito',
482
+ classificationTitle: 'Classificação',
483
+ resultReadingTitle: 'Leitura do resultado',
484
+ resultTitle: 'Resultado',
485
+ globalAverageTitle: 'Média global',
486
+ factorsTitle: 'Fatores relativos à organização e ao trabalho',
487
+ strongPointsTitle: 'Pontos fortes',
488
+ attentionPointsTitle: 'Pontos de atenção',
489
+ vulnerabilitiesTitle: 'Vulnerabilidades socioemocionais',
490
+ positiveDirectionLabel: 'Direção positiva',
491
+ negativeDirectionLabel: 'Direção negativa',
492
+ lowerIntensityLabel: 'Menos intensamente',
493
+ higherIntensityLabel: 'Mais intensamente',
494
+ noClassification: 'Sem classificação',
495
+ emptyState: 'Não há resultados disponíveis para esta seção.',
496
+ interpretationTitle: 'Interpretação',
497
+ detailedListLabel: 'Lista detalhada',
498
+ groupAverageTitle: 'Média geral do grupo',
499
+ groupDistributionLabel: 'Distribuição do grupo',
500
+ overallPercentageTitle: '% Geral',
501
+ scaleConceptTitle: 'Conceito da escala',
502
+ psychosocialFactorsTitle: 'Fatores psicossociais',
503
+ editConclusionLabel: 'Editar conclusão',
504
+ meterLabel: (name, value) => `${name}: ${value}%`,
505
+ gaugeLabel: (name, value) => `${name}: ${value}%`,
506
+ itemCountLabel: formatItemCount,
507
+ },
470
508
  paginator: {
471
509
  itemsPerPage: 'Itens por página',
472
510
  nextPage: 'Próxima página',
@@ -510,6 +548,7 @@ function mergeMapaUiTexts(customTexts) {
510
548
  filters: { ...defaults.filters, ...(customTexts?.filters ?? {}) },
511
549
  datepicker: { ...defaults.datepicker, ...(customTexts?.datepicker ?? {}) },
512
550
  capability: { ...defaults.capability, ...(customTexts?.capability ?? {}) },
551
+ report: { ...defaults.report, ...(customTexts?.report ?? {}) },
513
552
  paginator: { ...defaults.paginator, ...(customTexts?.paginator ?? {}) },
514
553
  warning: { ...defaults.warning, ...(customTexts?.warning ?? {}) },
515
554
  table: { ...defaults.table, ...(customTexts?.table ?? {}) },