mapa-library-ui 1.5.2 → 1.5.3
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-core-utils.mjs +297 -0
- package/fesm2022/mapa-library-ui-src-lib-core-utils.mjs.map +1 -0
- package/fesm2022/mapa-library-ui.mjs +94 -1
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +48 -13
- package/mapa-library-ui-1.5.3.tgz +0 -0
- package/package.json +5 -1
- package/src/lib/core/utils/index.d.ts +76 -0
- package/mapa-library-ui-1.5.2.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { MatPaginator, MatPaginatorIntl, PageEvent } from '@angular/material/pag
|
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
8
8
|
import { ReplaySubject } from 'rxjs';
|
|
9
9
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
10
|
-
import { MapaUiTextGroups, ValidationContext, ValidationTextResolver, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
10
|
+
import { MapaUiTextGroups, ValidationContext, ValidationTextResolver, PartialMapaUiTexts, AppLanguage } from 'mapa-frontend-i18n';
|
|
11
11
|
export { PartialMapaUiTexts, ValidationTextResolver } from 'mapa-frontend-i18n';
|
|
12
12
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
13
13
|
import * as mapa_library_ui from 'mapa-library-ui';
|
|
@@ -466,7 +466,7 @@ declare class CPFPipe implements PipeTransform {
|
|
|
466
466
|
|
|
467
467
|
type MapaDateLocale = "pt-BR" | "en" | "es";
|
|
468
468
|
type MapaDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
|
|
469
|
-
type DateInput = Date | string | number | null | undefined;
|
|
469
|
+
type DateInput$1 = Date | string | number | null | undefined;
|
|
470
470
|
declare function formatDateAsDayMonthYear(date: Date): string;
|
|
471
471
|
declare function formatDateAsMonthDayYear(date: Date): string;
|
|
472
472
|
declare function normalizeDateLocale(value: unknown): MapaDateLocale;
|
|
@@ -480,12 +480,12 @@ declare function parseLocaleDateValue(value: string, locale?: MapaDateLocale): D
|
|
|
480
480
|
declare function parseDateValue(value: unknown, locale?: MapaDateLocale): Date | null;
|
|
481
481
|
declare function isDateValue(value: unknown): boolean;
|
|
482
482
|
declare function parseBrazilianDate(value: string): Date | null;
|
|
483
|
-
declare function normalizeDateInput(value: DateInput): Date | null;
|
|
484
|
-
declare function formatBrazilianDate(value: DateInput): string;
|
|
483
|
+
declare function normalizeDateInput(value: DateInput$1): Date | null;
|
|
484
|
+
declare function formatBrazilianDate(value: DateInput$1): string;
|
|
485
485
|
declare function addDays(date: Date, days: number): Date;
|
|
486
486
|
type LocaleDateStyle = "short" | "medium" | "long" | "full";
|
|
487
|
-
declare function formatLocaleDate(value: DateInput, dateStyle?: LocaleDateStyle): string;
|
|
488
|
-
declare function formatLocaleDateTime(value: DateInput, options?: {
|
|
487
|
+
declare function formatLocaleDate(value: DateInput$1, dateStyle?: LocaleDateStyle): string;
|
|
488
|
+
declare function formatLocaleDateTime(value: DateInput$1, options?: {
|
|
489
489
|
dateStyle?: LocaleDateStyle;
|
|
490
490
|
timeStyle?: LocaleDateStyle;
|
|
491
491
|
}): string;
|
|
@@ -497,21 +497,56 @@ declare function getRelativeDateRange(daysBack: number): {
|
|
|
497
497
|
startDate: Date;
|
|
498
498
|
endDate: Date;
|
|
499
499
|
};
|
|
500
|
-
declare function toUtcRangeStartIso(value: DateInput): string | undefined;
|
|
501
|
-
declare function toUtcRangeEndIso(value: DateInput): string | undefined;
|
|
502
|
-
declare function toUtcDayExclusiveEndIso(value: DateInput): string | undefined;
|
|
500
|
+
declare function toUtcRangeStartIso(value: DateInput$1): string | undefined;
|
|
501
|
+
declare function toUtcRangeEndIso(value: DateInput$1): string | undefined;
|
|
502
|
+
declare function toUtcDayExclusiveEndIso(value: DateInput$1): string | undefined;
|
|
503
503
|
|
|
504
504
|
declare class LocaleDatePipe implements PipeTransform {
|
|
505
|
-
transform(value: DateInput, dateStyle?: LocaleDateStyle): string;
|
|
505
|
+
transform(value: DateInput$1, dateStyle?: LocaleDateStyle): string;
|
|
506
506
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleDatePipe, never>;
|
|
507
507
|
static ɵpipe: i0.ɵɵPipeDeclaration<LocaleDatePipe, "localeDate", true>;
|
|
508
508
|
}
|
|
509
509
|
declare class LocaleDateTimePipe implements PipeTransform {
|
|
510
|
-
transform(value: DateInput, dateStyle?: LocaleDateStyle, timeStyle?: LocaleDateStyle): string;
|
|
510
|
+
transform(value: DateInput$1, dateStyle?: LocaleDateStyle, timeStyle?: LocaleDateStyle): string;
|
|
511
511
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleDateTimePipe, never>;
|
|
512
512
|
static ɵpipe: i0.ɵɵPipeDeclaration<LocaleDateTimePipe, "localeDateTime", true>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
+
type DateInput = Date | string | number | null | undefined;
|
|
516
|
+
interface TimeParts {
|
|
517
|
+
hours?: number;
|
|
518
|
+
minutes?: number;
|
|
519
|
+
seconds?: number;
|
|
520
|
+
milliseconds?: number;
|
|
521
|
+
}
|
|
522
|
+
declare const parseDateValueFns: (value: DateInput, inputFormat?: string) => Date;
|
|
523
|
+
declare const formatDateValue: (value: DateInput, outputFormat?: string, inputFormat?: string) => string;
|
|
524
|
+
declare const isValidDateValue: (value: DateInput, inputFormat?: string) => boolean;
|
|
525
|
+
declare const toIsoDateValue: (value: DateInput, inputFormat?: string) => string;
|
|
526
|
+
declare const addMonthsToDateValue: (value: DateInput, months: number, inputFormat?: string) => Date;
|
|
527
|
+
declare const setTimeOnDateValue: (value: DateInput, time: TimeParts, inputFormat?: string) => Date;
|
|
528
|
+
declare const toIsoDateValueWithTime: (value: DateInput, time: TimeParts, inputFormat?: string) => string;
|
|
529
|
+
declare const toIsoDateValueWithUtcTime: (value: DateInput, time: TimeParts, inputFormat?: string) => string;
|
|
530
|
+
declare const getYearFromDateValue: (value: DateInput, inputFormat?: string) => number;
|
|
531
|
+
declare const getDayOfMonthFromDateValue: (value: DateInput, inputFormat?: string) => number;
|
|
532
|
+
declare const isAfterDateValue: (value: DateInput, compareValue: DateInput, inputFormat?: string) => boolean;
|
|
533
|
+
|
|
534
|
+
type DatepickerLocale = 'pt-BR' | 'es' | 'en';
|
|
535
|
+
type DateFormatPattern = 'DD/MM/YYYY' | 'MM/DD/YYYY';
|
|
536
|
+
declare function toDatepickerLocale(language: AppLanguage): DatepickerLocale;
|
|
537
|
+
declare function getDateFormatByLanguage(language: AppLanguage): DateFormatPattern;
|
|
538
|
+
declare function formatDateByLanguage(value: Date | string | number | null | undefined, language: AppLanguage): string;
|
|
539
|
+
declare function isValidDateByLanguage(value: string | null | undefined, language: AppLanguage): boolean;
|
|
540
|
+
declare function parseDateByLanguage(value: string | null | undefined, language: AppLanguage): Date;
|
|
541
|
+
declare function toIsoDateByLanguage(value: string | null | undefined, language: AppLanguage): string;
|
|
542
|
+
declare function toIsoDateByLanguageWithUtcTime(value: string | null | undefined, language: AppLanguage, time: {
|
|
543
|
+
hours?: number;
|
|
544
|
+
minutes?: number;
|
|
545
|
+
seconds?: number;
|
|
546
|
+
milliseconds?: number;
|
|
547
|
+
}): string;
|
|
548
|
+
declare function reformatDateStringForLanguage(value: string | null | undefined, fromLanguage: AppLanguage, toLanguage: AppLanguage): string;
|
|
549
|
+
|
|
515
550
|
interface BigObject<T> {
|
|
516
551
|
[index: string]: T;
|
|
517
552
|
}
|
|
@@ -1995,5 +2030,5 @@ declare class MapaScaleParameterizationComponent {
|
|
|
1995
2030
|
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>;
|
|
1996
2031
|
}
|
|
1997
2032
|
|
|
1998
|
-
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, 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, formatDateForLocale, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateInputMask, getDefaultDateRange, getMapaDatepickerRangeFormats, getRelativeDateRange, getSpecialProperty, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateValue, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, rg_rj, rg_sp, sanitizeHtmlContent, slugify, 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 };
|
|
1999
|
-
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, DateInput, 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 };
|
|
2033
|
+
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, formatDateValue, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getAllDigits, getAllWords, getDateFormatByLanguage, getDateInputMask, 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 };
|
|
2034
|
+
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, 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.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^20.3.0",
|
|
6
6
|
"@angular/cdk": "^20.2.0",
|
|
@@ -293,6 +293,10 @@
|
|
|
293
293
|
"./src/lib/core/services": {
|
|
294
294
|
"types": "./src/lib/core/services/index.d.ts",
|
|
295
295
|
"default": "./fesm2022/mapa-library-ui-src-lib-core-services.mjs"
|
|
296
|
+
},
|
|
297
|
+
"./src/lib/core/utils": {
|
|
298
|
+
"types": "./src/lib/core/utils/index.d.ts",
|
|
299
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-core-utils.mjs"
|
|
296
300
|
}
|
|
297
301
|
},
|
|
298
302
|
"module": "fesm2022/mapa-library-ui.mjs",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { AppLanguage } from 'mapa-frontend-i18n';
|
|
2
|
+
|
|
3
|
+
type DateInput$1 = Date | string | number | null | undefined;
|
|
4
|
+
interface TimeParts {
|
|
5
|
+
hours?: number;
|
|
6
|
+
minutes?: number;
|
|
7
|
+
seconds?: number;
|
|
8
|
+
milliseconds?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const parseDateValueFns: (value: DateInput$1, inputFormat?: string) => Date;
|
|
11
|
+
declare const formatDateValue: (value: DateInput$1, outputFormat?: string, inputFormat?: string) => string;
|
|
12
|
+
declare const isValidDateValue: (value: DateInput$1, inputFormat?: string) => boolean;
|
|
13
|
+
declare const toIsoDateValue: (value: DateInput$1, inputFormat?: string) => string;
|
|
14
|
+
declare const addMonthsToDateValue: (value: DateInput$1, months: number, inputFormat?: string) => Date;
|
|
15
|
+
declare const setTimeOnDateValue: (value: DateInput$1, time: TimeParts, inputFormat?: string) => Date;
|
|
16
|
+
declare const toIsoDateValueWithTime: (value: DateInput$1, time: TimeParts, inputFormat?: string) => string;
|
|
17
|
+
declare const toIsoDateValueWithUtcTime: (value: DateInput$1, time: TimeParts, inputFormat?: string) => string;
|
|
18
|
+
declare const getYearFromDateValue: (value: DateInput$1, inputFormat?: string) => number;
|
|
19
|
+
declare const getDayOfMonthFromDateValue: (value: DateInput$1, inputFormat?: string) => number;
|
|
20
|
+
declare const isAfterDateValue: (value: DateInput$1, compareValue: DateInput$1, inputFormat?: string) => boolean;
|
|
21
|
+
|
|
22
|
+
type DatepickerLocale = 'pt-BR' | 'es' | 'en';
|
|
23
|
+
type DateFormatPattern = 'DD/MM/YYYY' | 'MM/DD/YYYY';
|
|
24
|
+
declare function toDatepickerLocale(language: AppLanguage): DatepickerLocale;
|
|
25
|
+
declare function getDateFormatByLanguage(language: AppLanguage): DateFormatPattern;
|
|
26
|
+
declare function formatDateByLanguage(value: Date | string | number | null | undefined, language: AppLanguage): string;
|
|
27
|
+
declare function isValidDateByLanguage(value: string | null | undefined, language: AppLanguage): boolean;
|
|
28
|
+
declare function parseDateByLanguage(value: string | null | undefined, language: AppLanguage): Date;
|
|
29
|
+
declare function toIsoDateByLanguage(value: string | null | undefined, language: AppLanguage): string;
|
|
30
|
+
declare function toIsoDateByLanguageWithUtcTime(value: string | null | undefined, language: AppLanguage, time: {
|
|
31
|
+
hours?: number;
|
|
32
|
+
minutes?: number;
|
|
33
|
+
seconds?: number;
|
|
34
|
+
milliseconds?: number;
|
|
35
|
+
}): string;
|
|
36
|
+
declare function reformatDateStringForLanguage(value: string | null | undefined, fromLanguage: AppLanguage, toLanguage: AppLanguage): string;
|
|
37
|
+
|
|
38
|
+
type MapaDateLocale = "pt-BR" | "en" | "es";
|
|
39
|
+
type MapaDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
|
|
40
|
+
type DateInput = Date | string | number | null | undefined;
|
|
41
|
+
declare function formatDateAsDayMonthYear(date: Date): string;
|
|
42
|
+
declare function formatDateAsMonthDayYear(date: Date): string;
|
|
43
|
+
declare function normalizeDateLocale(value: unknown): MapaDateLocale;
|
|
44
|
+
declare function getActiveDateLocale(): MapaDateLocale;
|
|
45
|
+
declare function isMonthFirstDateLocale(locale?: MapaDateLocale): boolean;
|
|
46
|
+
declare function getActiveDateFormat(locale?: MapaDateLocale): MapaDateFormat;
|
|
47
|
+
declare function getActiveMaterialDateFormat(locale?: MapaDateLocale): string;
|
|
48
|
+
declare function getDateInputMask(_locale?: MapaDateLocale): string;
|
|
49
|
+
declare function formatDateForLocale(date: Date, locale?: MapaDateLocale): string;
|
|
50
|
+
declare function parseLocaleDateValue(value: string, locale?: MapaDateLocale): Date | null;
|
|
51
|
+
declare function parseDateValue(value: unknown, locale?: MapaDateLocale): Date | null;
|
|
52
|
+
declare function isDateValue(value: unknown): boolean;
|
|
53
|
+
declare function parseBrazilianDate(value: string): Date | null;
|
|
54
|
+
declare function normalizeDateInput(value: DateInput): Date | null;
|
|
55
|
+
declare function formatBrazilianDate(value: DateInput): string;
|
|
56
|
+
declare function addDays(date: Date, days: number): Date;
|
|
57
|
+
type LocaleDateStyle = "short" | "medium" | "long" | "full";
|
|
58
|
+
declare function formatLocaleDate(value: DateInput, dateStyle?: LocaleDateStyle): string;
|
|
59
|
+
declare function formatLocaleDateTime(value: DateInput, options?: {
|
|
60
|
+
dateStyle?: LocaleDateStyle;
|
|
61
|
+
timeStyle?: LocaleDateStyle;
|
|
62
|
+
}): string;
|
|
63
|
+
declare function getDefaultDateRange(days?: number): {
|
|
64
|
+
startDate: string;
|
|
65
|
+
endDate: string;
|
|
66
|
+
};
|
|
67
|
+
declare function getRelativeDateRange(daysBack: number): {
|
|
68
|
+
startDate: Date;
|
|
69
|
+
endDate: Date;
|
|
70
|
+
};
|
|
71
|
+
declare function toUtcRangeStartIso(value: DateInput): string | undefined;
|
|
72
|
+
declare function toUtcRangeEndIso(value: DateInput): string | undefined;
|
|
73
|
+
declare function toUtcDayExclusiveEndIso(value: DateInput): string | undefined;
|
|
74
|
+
|
|
75
|
+
export { addDays, addMonthsToDateValue, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateValue, formatLocaleDate, formatLocaleDateTime, getActiveDateFormat, getActiveDateLocale, getActiveMaterialDateFormat, getDateFormatByLanguage, getDateInputMask, 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 };
|
|
76
|
+
export type { DateFormatPattern, DateInput, DatepickerLocale, LocaleDateStyle, MapaDateFormat, MapaDateLocale };
|
|
Binary file
|