mapa-library-ui 1.7.2 → 1.8.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 (36) hide show
  1. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +2 -2
  2. package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  3. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +2 -2
  4. package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  5. package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs +179 -10
  6. package/fesm2022/mapa-library-ui-src-lib-components-datepicker-range.mjs.map +1 -1
  7. package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +178 -6
  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 +2 -2
  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 +2 -2
  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 +142 -6
  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 +192 -18
  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 +2 -2
  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 +140 -4
  20. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  21. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +35 -2
  22. package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  23. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +2 -2
  24. package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  25. package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs +34 -1
  26. package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs.map +1 -1
  27. package/fesm2022/mapa-library-ui.mjs +198 -25
  28. package/fesm2022/mapa-library-ui.mjs.map +1 -1
  29. package/index.d.ts +63 -3
  30. package/mapa-library-ui-1.8.0.tgz +0 -0
  31. package/package.json +1 -1
  32. package/src/lib/components/menu/index.d.ts +3 -1
  33. package/src/lib/components/report-item/index.d.ts +3 -1
  34. package/src/lib/components/table/index.d.ts +3 -1
  35. package/src/lib/core/utils/index.d.ts +15 -1
  36. package/mapa-library-ui-1.7.2.tgz +0 -0
package/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { FormControl, NgModel, AbstractControl, FormGroup, ControlValueAccessor } from '@angular/forms';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, InjectionToken, Provider, PipeTransform, OnInit, ChangeDetectorRef, DoCheck, Injector, TemplateRef, ApplicationRef } from '@angular/core';
3
+ import { EventEmitter, OnInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, InjectionToken, Provider, PipeTransform, ChangeDetectorRef, DoCheck, Injector, TemplateRef, ApplicationRef } from '@angular/core';
4
4
  import { ApexAxisChartSeries, ApexChart, ApexTitleSubtitle, ApexXAxis, ApexStroke, ApexFill, ApexMarkers, ApexYAxis, ApexLegend, ApexResponsive } from 'ng-apexcharts';
5
+ import { UrlTree, Params } from '@angular/router';
5
6
  import { MatInput } from '@angular/material/input';
6
7
  import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
7
8
  import * as rxjs from 'rxjs';
@@ -220,7 +221,8 @@ interface DialogData {
220
221
  interface MenuActionItem {
221
222
  image?: string;
222
223
  icon?: string;
223
- route?: string;
224
+ route?: string | unknown[] | UrlTree;
225
+ queryParams?: Params;
224
226
  showText?: boolean;
225
227
  svg?: string;
226
228
  text: string;
@@ -281,6 +283,50 @@ interface TableStatus {
281
283
  finished: boolean;
282
284
  }
283
285
 
286
+ /**
287
+ * Mantém o FormControl em sincronia com `input.value` quando o valor foi escrito
288
+ * por algo que não é o usuário: autofill do navegador, gerenciador de senhas ou
289
+ * extensão (geradores de CPF/CNPJ).
290
+ *
291
+ * A NgxMaskDirective é o ControlValueAccessor de todo input com máscara desta
292
+ * biblioteca e só empurra valor para o modelo a partir do seu host listener de
293
+ * `input`. O handler de `blur` chama `onTouch()` mas nunca `onChange()`, e não
294
+ * existe listener de `change`. Um agente externo que atribui `element.value` sem
295
+ * disparar um evento `input` nativo deixa o controle no valor anterior, mantendo
296
+ * o erro `required` na tela até o usuário redigitar o campo.
297
+ *
298
+ * Esta diretiva detecta a divergência e reenvia o evento `input` que faltou,
299
+ * fazendo a NgxMaskDirective analisar, re-renderizar e emitir exatamente como se
300
+ * o usuário tivesse colado o valor. É no-op enquanto DOM e modelo concordam.
301
+ */
302
+ declare class MapaMaskAutofillSyncDirective implements OnInit {
303
+ /** Permite desligar a reconciliação em um campo específico. */
304
+ mapaMaskAutofillSync: boolean;
305
+ private readonly elementRef;
306
+ private readonly destroyRef;
307
+ private readonly autofillMonitor;
308
+ private readonly maskDirective;
309
+ private readonly maskService;
310
+ private readonly ngControl;
311
+ private reconciling;
312
+ ngOnInit(): void;
313
+ /** Idempotente: não faz nada enquanto DOM e modelo concordam. */
314
+ reconcile(): void;
315
+ private isInSync;
316
+ /**
317
+ * Sem máscara, o texto renderizado e o valor de modelo são a mesma string. Com
318
+ * máscara eles diferem apenas pelos caracteres especiais, então limpar os dois
319
+ * lados com as regras da própria NgxMaskService vale tanto para
320
+ * `dropSpecialCharacters: true` quanto para `false`.
321
+ */
322
+ private toComparable;
323
+ private toModelValue;
324
+ private stringify;
325
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaMaskAutofillSyncDirective, never>;
326
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MapaMaskAutofillSyncDirective, "input[mask], textarea[mask]", ["mapaMaskAutofillSync"], { "mapaMaskAutofillSync": { "alias": "mapaMaskAutofillSync"; "required": false; }; }, {}, never, never, true, never>;
327
+ static ngAcceptInputType_mapaMaskAutofillSync: unknown;
328
+ }
329
+
284
330
  declare class MatInputAutosizeDirective implements AfterViewInit {
285
331
  private childMatInput;
286
332
  private childNgModel;
@@ -476,6 +522,20 @@ declare function getDateInputMask(_locale?: MapaDateLocale): string;
476
522
  declare function formatDateForLocale(date: Date, locale?: MapaDateLocale): string;
477
523
  declare function parseLocaleDateValue(value: string, locale?: MapaDateLocale): Date | null;
478
524
  declare function parseDateValue(value: unknown, locale?: MapaDateLocale): Date | null;
525
+ /**
526
+ * Parse estrito para o texto de um campo de data mascarado.
527
+ *
528
+ * Diferente de `parseDateValue`, não cai em `new Date(string)` para qualquer
529
+ * entrada. O motor de datas do V8 aceita fragmentos numéricos e devolve datas
530
+ * inventadas — `"2"` vira 01/02/2001 e `"251220"` vira o ano 251220 —, o que
531
+ * fazia os datepickers moverem o calendário a cada tecla enquanto o usuário
532
+ * ainda estava digitando.
533
+ *
534
+ * Aceita apenas uma data completa no formato do locale ativo (com validação de
535
+ * faixa de dia/mês) ou uma data ISO-8601, para não quebrar valores vindos de
536
+ * API que o consumidor grave direto no controle.
537
+ */
538
+ declare function parseDateFieldValue(value: unknown, locale?: MapaDateLocale): Date | null;
479
539
  declare function isDateValue(value: unknown): boolean;
480
540
  declare function parseBrazilianDate(value: string): Date | null;
481
541
  declare function normalizeDateInput(value: DateInput$1): Date | null;
@@ -2049,5 +2109,5 @@ declare class MapaScaleParameterizationComponent {
2049
2109
  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>;
2050
2110
  }
2051
2111
 
2052
- 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, LocaleDatePipe, LocaleDateTimePipe, MAPA_DATEPICKER_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, addDays, addMonthsToDateValue, 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, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getMapaDatepickerRangeFormats, getRelativeDateRange, getSpecialProperty, getYearFromDateValue, isAfterDateValue, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, isValidDateByLanguage, isValidDateValue, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateByLanguage, parseDateValue, parseDateValueFns, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, reformatDateStringForLanguage, rg_rj, rg_sp, sanitizeHtmlContent, setTimeOnDateValue, slugify, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso, 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 };
2112
+ 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, LocaleDatePipe, LocaleDateTimePipe, MAPA_DATEPICKER_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, MapaMaskAutofillSyncDirective, 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, addDays, addMonthsToDateValue, 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, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getMapaDatepickerRangeFormats, getRelativeDateRange, getSpecialProperty, getYearFromDateValue, isAfterDateValue, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, isValidDateByLanguage, isValidDateValue, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateByLanguage, parseDateFieldValue, parseDateValue, parseDateValueFns, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, reformatDateStringForLanguage, rg_rj, rg_sp, sanitizeHtmlContent, setTimeOnDateValue, slugify, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso, 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 };
2053
2113
  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, DateFormatPattern, DateInput$1 as DateInput, DateTimeFormatPattern, DatepickerLocale, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LocaleDateStyle, LowReliabilityReport, MapaDateFormat, MapaDateLocale, 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,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.0",
6
6
  "@angular/cdk": "^20.2.0",
@@ -1,3 +1,4 @@
1
+ import { UrlTree, Params } from '@angular/router';
1
2
  import * as i0 from '@angular/core';
2
3
  import { EventEmitter } from '@angular/core';
3
4
  import { MatMenuTrigger } from '@angular/material/menu';
@@ -5,7 +6,8 @@ import { MatMenuTrigger } from '@angular/material/menu';
5
6
  interface MenuActionItem {
6
7
  image?: string;
7
8
  icon?: string;
8
- route?: string;
9
+ route?: string | unknown[] | UrlTree;
10
+ queryParams?: Params;
9
11
  showText?: boolean;
10
12
  svg?: string;
11
13
  text: string;
@@ -1,10 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
3
+ import { UrlTree, Params } from '@angular/router';
3
4
 
4
5
  interface MenuActionItem {
5
6
  image?: string;
6
7
  icon?: string;
7
- route?: string;
8
+ route?: string | unknown[] | UrlTree;
9
+ queryParams?: Params;
8
10
  showText?: boolean;
9
11
  svg?: string;
10
12
  text: string;
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, Renderer2, SimpleChanges, Injector, ChangeDetectorRef } from '@angular/core';
3
3
  import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/paginator';
4
+ import { UrlTree, Params } from '@angular/router';
4
5
  import * as rxjs from 'rxjs';
5
6
  import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
6
7
  import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
@@ -62,7 +63,8 @@ interface TableEmptyState {
62
63
  interface MenuActionItem {
63
64
  image?: string;
64
65
  icon?: string;
65
- route?: string;
66
+ route?: string | unknown[] | UrlTree;
67
+ queryParams?: Params;
66
68
  showText?: boolean;
67
69
  svg?: string;
68
70
  text: string;
@@ -52,6 +52,20 @@ declare function getDateInputMask(_locale?: MapaDateLocale): string;
52
52
  declare function formatDateForLocale(date: Date, locale?: MapaDateLocale): string;
53
53
  declare function parseLocaleDateValue(value: string, locale?: MapaDateLocale): Date | null;
54
54
  declare function parseDateValue(value: unknown, locale?: MapaDateLocale): Date | null;
55
+ /**
56
+ * Parse estrito para o texto de um campo de data mascarado.
57
+ *
58
+ * Diferente de `parseDateValue`, não cai em `new Date(string)` para qualquer
59
+ * entrada. O motor de datas do V8 aceita fragmentos numéricos e devolve datas
60
+ * inventadas — `"2"` vira 01/02/2001 e `"251220"` vira o ano 251220 —, o que
61
+ * fazia os datepickers moverem o calendário a cada tecla enquanto o usuário
62
+ * ainda estava digitando.
63
+ *
64
+ * Aceita apenas uma data completa no formato do locale ativo (com validação de
65
+ * faixa de dia/mês) ou uma data ISO-8601, para não quebrar valores vindos de
66
+ * API que o consumidor grave direto no controle.
67
+ */
68
+ declare function parseDateFieldValue(value: unknown, locale?: MapaDateLocale): Date | null;
55
69
  declare function isDateValue(value: unknown): boolean;
56
70
  declare function parseBrazilianDate(value: string): Date | null;
57
71
  declare function normalizeDateInput(value: DateInput): Date | null;
@@ -75,5 +89,5 @@ declare function toUtcRangeStartIso(value: DateInput): string | undefined;
75
89
  declare function toUtcRangeEndIso(value: DateInput): string | undefined;
76
90
  declare function toUtcDayExclusiveEndIso(value: DateInput): string | undefined;
77
91
 
78
- export { addDays, addMonthsToDateValue, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getRelativeDateRange, getYearFromDateValue, isAfterDateValue, isDateValue, isMonthFirstDateLocale, isValidDateByLanguage, isValidDateValue, normalizeDateInput, normalizeDateLocale, parseBrazilianDate, parseDateByLanguage, parseDateValue, parseDateValueFns, parseLocaleDateValue, reformatDateStringForLanguage, setTimeOnDateValue, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso };
92
+ export { addDays, addMonthsToDateValue, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getRelativeDateRange, getYearFromDateValue, isAfterDateValue, isDateValue, isMonthFirstDateLocale, isValidDateByLanguage, isValidDateValue, normalizeDateInput, normalizeDateLocale, parseBrazilianDate, parseDateByLanguage, parseDateFieldValue, parseDateValue, parseDateValueFns, parseLocaleDateValue, reformatDateStringForLanguage, setTimeOnDateValue, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso };
79
93
  export type { DateFormatPattern, DateInput, DateTimeFormatPattern, DatepickerLocale, LocaleDateStyle, MapaDateFormat, MapaDateLocale };
Binary file