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.
@@ -0,0 +1,297 @@
1
+ import { parseISO, parse, isValid, format, addMonths, set, getYear, getDate, isAfter } from 'date-fns';
2
+ import { getStoredAppLanguage, getIntlLocale } from 'mapa-frontend-i18n';
3
+
4
+ const ISO_DATE_RE = /^\d{4}-\d{2}-\d{2}T/;
5
+ const toDateFnsFormat = (formatPattern) => formatPattern
6
+ .replaceAll('YYYY', 'yyyy')
7
+ .replaceAll('DD', 'dd')
8
+ .replaceAll('A', 'a');
9
+ const parseDateValueFns = (value, inputFormat = 'DD/MM/YYYY') => {
10
+ if (value instanceof Date) {
11
+ return value;
12
+ }
13
+ if (typeof value === 'number') {
14
+ return new Date(value);
15
+ }
16
+ if (typeof value === 'string') {
17
+ if (!value.trim()) {
18
+ return new Date(NaN);
19
+ }
20
+ if (ISO_DATE_RE.test(value)) {
21
+ return parseISO(value);
22
+ }
23
+ const parsed = parse(value, toDateFnsFormat(inputFormat), new Date());
24
+ if (isValid(parsed)) {
25
+ return parsed;
26
+ }
27
+ return new Date(value);
28
+ }
29
+ return new Date(NaN);
30
+ };
31
+ const formatDateValue = (value, outputFormat = 'DD/MM/YYYY', inputFormat = 'DD/MM/YYYY') => {
32
+ const parsed = parseDateValueFns(value, inputFormat);
33
+ if (!isValid(parsed)) {
34
+ return '';
35
+ }
36
+ return format(parsed, toDateFnsFormat(outputFormat));
37
+ };
38
+ const isValidDateValue = (value, inputFormat = 'DD/MM/YYYY') => {
39
+ const parsed = parseDateValueFns(value, inputFormat);
40
+ return isValid(parsed);
41
+ };
42
+ const toIsoDateValue = (value, inputFormat = 'DD/MM/YYYY') => {
43
+ const parsed = parseDateValueFns(value, inputFormat);
44
+ return isValid(parsed) ? parsed.toISOString() : '';
45
+ };
46
+ const addMonthsToDateValue = (value, months, inputFormat = 'DD/MM/YYYY') => addMonths(parseDateValueFns(value, inputFormat), months);
47
+ const setTimeOnDateValue = (value, time, inputFormat = 'DD/MM/YYYY') => set(parseDateValueFns(value, inputFormat), time);
48
+ const toIsoDateValueWithTime = (value, time, inputFormat = 'DD/MM/YYYY') => {
49
+ const parsed = setTimeOnDateValue(value, time, inputFormat);
50
+ return isValid(parsed) ? parsed.toISOString() : '';
51
+ };
52
+ const toIsoDateValueWithUtcTime = (value, time, inputFormat = 'DD/MM/YYYY') => {
53
+ const parsed = parseDateValueFns(value, inputFormat);
54
+ if (!isValid(parsed)) {
55
+ return '';
56
+ }
57
+ const utcDate = new Date(parsed.getTime());
58
+ utcDate.setUTCHours(time.hours ?? utcDate.getUTCHours(), time.minutes ?? utcDate.getUTCMinutes(), time.seconds ?? utcDate.getUTCSeconds(), time.milliseconds ?? utcDate.getUTCMilliseconds());
59
+ return utcDate.toISOString();
60
+ };
61
+ const getYearFromDateValue = (value, inputFormat = 'DD/MM/YYYY') => getYear(parseDateValueFns(value, inputFormat));
62
+ const getDayOfMonthFromDateValue = (value, inputFormat = 'DD/MM/YYYY') => getDate(parseDateValueFns(value, inputFormat));
63
+ const isAfterDateValue = (value, compareValue, inputFormat = 'DD/MM/YYYY') => isAfter(parseDateValueFns(value, inputFormat), parseDateValueFns(compareValue, inputFormat));
64
+
65
+ function toDatepickerLocale(language) {
66
+ return language === 'en' ? 'en' : language === 'es' ? 'es' : 'pt-BR';
67
+ }
68
+ function getDateFormatByLanguage(language) {
69
+ return language === 'en' ? 'MM/DD/YYYY' : 'DD/MM/YYYY';
70
+ }
71
+ function formatDateByLanguage(value, language) {
72
+ return formatDateValue(value, getDateFormatByLanguage(language));
73
+ }
74
+ function isValidDateByLanguage(value, language) {
75
+ if (!value) {
76
+ return false;
77
+ }
78
+ return isValidDateValue(value, getDateFormatByLanguage(language));
79
+ }
80
+ function parseDateByLanguage(value, language) {
81
+ return parseDateValueFns(value, getDateFormatByLanguage(language));
82
+ }
83
+ function toIsoDateByLanguage(value, language) {
84
+ return toIsoDateValue(value, getDateFormatByLanguage(language));
85
+ }
86
+ function toIsoDateByLanguageWithUtcTime(value, language, time) {
87
+ return toIsoDateValueWithUtcTime(value, time, getDateFormatByLanguage(language));
88
+ }
89
+ function reformatDateStringForLanguage(value, fromLanguage, toLanguage) {
90
+ if (!value) {
91
+ return '';
92
+ }
93
+ return formatDateValue(value, getDateFormatByLanguage(toLanguage), getDateFormatByLanguage(fromLanguage));
94
+ }
95
+
96
+ const DAY_MONTH_YEAR_PATTERN = /^(\d{2})\/(\d{2})\/(\d{4})$/;
97
+ const MONTH_DAY_YEAR_PATTERN = /^(\d{2})\/(\d{2})\/(\d{4})$/;
98
+ const DOCS_LANGUAGE_STORAGE_KEY = "mapa-library-ui-docs-language";
99
+ function isValidDate(date) {
100
+ return !Number.isNaN(date.getTime());
101
+ }
102
+ function buildUtcDate(date, dayOffset, hours, minutes, seconds, milliseconds) {
103
+ return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate() + dayOffset, hours, minutes, seconds, milliseconds));
104
+ }
105
+ function formatDateAsDayMonthYear(date) {
106
+ const day = `${date.getDate()}`.padStart(2, "0");
107
+ const month = `${date.getMonth() + 1}`.padStart(2, "0");
108
+ const year = `${date.getFullYear()}`;
109
+ return `${day}/${month}/${year}`;
110
+ }
111
+ function formatDateAsMonthDayYear(date) {
112
+ const day = `${date.getDate()}`.padStart(2, "0");
113
+ const month = `${date.getMonth() + 1}`.padStart(2, "0");
114
+ const year = `${date.getFullYear()}`;
115
+ return `${month}/${day}/${year}`;
116
+ }
117
+ function normalizeDateLocale(value) {
118
+ if (typeof value !== "string") {
119
+ return "pt-BR";
120
+ }
121
+ const normalizedValue = value.trim().toLowerCase();
122
+ if (normalizedValue.startsWith("en")) {
123
+ return "en";
124
+ }
125
+ if (normalizedValue.startsWith("es")) {
126
+ return "es";
127
+ }
128
+ return "pt-BR";
129
+ }
130
+ function getDocsStoredLanguage() {
131
+ if (typeof window === "undefined") {
132
+ return null;
133
+ }
134
+ try {
135
+ return window.localStorage.getItem(DOCS_LANGUAGE_STORAGE_KEY);
136
+ }
137
+ catch {
138
+ return null;
139
+ }
140
+ }
141
+ function getActiveDateLocale() {
142
+ return normalizeDateLocale(getDocsStoredLanguage() ?? getStoredAppLanguage());
143
+ }
144
+ function isMonthFirstDateLocale(locale = getActiveDateLocale()) {
145
+ return normalizeDateLocale(locale) === "en";
146
+ }
147
+ function getActiveDateFormat(locale = getActiveDateLocale()) {
148
+ return isMonthFirstDateLocale(locale) ? "MM/DD/YYYY" : "DD/MM/YYYY";
149
+ }
150
+ function getActiveMaterialDateFormat(locale = getActiveDateLocale()) {
151
+ return isMonthFirstDateLocale(locale) ? "MM/dd/yyyy" : "dd/MM/yyyy";
152
+ }
153
+ function getDateInputMask(_locale = getActiveDateLocale()) {
154
+ return "00/00/0000";
155
+ }
156
+ function formatDateForLocale(date, locale = getActiveDateLocale()) {
157
+ return isMonthFirstDateLocale(locale)
158
+ ? formatDateAsMonthDayYear(date)
159
+ : formatDateAsDayMonthYear(date);
160
+ }
161
+ function parseOrderedDate(value, pattern, order) {
162
+ const match = pattern.exec(value.trim());
163
+ if (!match) {
164
+ return null;
165
+ }
166
+ const [, firstValue, secondValue, yearValue] = match;
167
+ const year = Number(yearValue);
168
+ const month = Number(order === "month-first" ? firstValue : secondValue);
169
+ const day = Number(order === "month-first" ? secondValue : firstValue);
170
+ const parsedDate = new Date(year, month - 1, day);
171
+ if (parsedDate.getFullYear() !== year ||
172
+ parsedDate.getMonth() !== month - 1 ||
173
+ parsedDate.getDate() !== day) {
174
+ return null;
175
+ }
176
+ return parsedDate;
177
+ }
178
+ function parseLocaleDateValue(value, locale = getActiveDateLocale()) {
179
+ const normalizedLocale = normalizeDateLocale(locale);
180
+ const parsers = normalizedLocale === "en"
181
+ ? [
182
+ () => parseOrderedDate(value, MONTH_DAY_YEAR_PATTERN, "month-first"),
183
+ () => parseOrderedDate(value, DAY_MONTH_YEAR_PATTERN, "day-first"),
184
+ ]
185
+ : [
186
+ () => parseOrderedDate(value, DAY_MONTH_YEAR_PATTERN, "day-first"),
187
+ () => parseOrderedDate(value, MONTH_DAY_YEAR_PATTERN, "month-first"),
188
+ ];
189
+ for (const parse of parsers) {
190
+ const parsedDate = parse();
191
+ if (parsedDate) {
192
+ return parsedDate;
193
+ }
194
+ }
195
+ return null;
196
+ }
197
+ function parseDateValue(value, locale = getActiveDateLocale()) {
198
+ if (value instanceof Date) {
199
+ return isValidDate(value) ? new Date(value.getTime()) : null;
200
+ }
201
+ if (typeof value === "number") {
202
+ const parsedDate = new Date(value);
203
+ return isValidDate(parsedDate) ? parsedDate : null;
204
+ }
205
+ if (typeof value !== "string") {
206
+ return null;
207
+ }
208
+ const trimmedValue = value.trim();
209
+ if (!trimmedValue) {
210
+ return null;
211
+ }
212
+ const localeDate = parseLocaleDateValue(trimmedValue, locale);
213
+ if (localeDate) {
214
+ return localeDate;
215
+ }
216
+ if (DAY_MONTH_YEAR_PATTERN.test(trimmedValue) || MONTH_DAY_YEAR_PATTERN.test(trimmedValue)) {
217
+ return null;
218
+ }
219
+ const parsedDate = new Date(trimmedValue);
220
+ return isValidDate(parsedDate) ? parsedDate : null;
221
+ }
222
+ function isDateValue(value) {
223
+ return parseDateValue(value) !== null;
224
+ }
225
+ function parseBrazilianDate(value) {
226
+ return parseOrderedDate(value, DAY_MONTH_YEAR_PATTERN, "day-first");
227
+ }
228
+ function normalizeDateInput(value) {
229
+ return parseDateValue(value);
230
+ }
231
+ function formatBrazilianDate(value) {
232
+ const date = normalizeDateInput(value);
233
+ return date ? formatDateAsDayMonthYear(date) : "";
234
+ }
235
+ function addDays(date, days) {
236
+ const nextDate = new Date(date);
237
+ nextDate.setDate(nextDate.getDate() + days);
238
+ return nextDate;
239
+ }
240
+ function formatLocaleDate(value, dateStyle = "short") {
241
+ const date = normalizeDateInput(value);
242
+ if (!date) {
243
+ return "";
244
+ }
245
+ return new Intl.DateTimeFormat(getIntlLocale(getActiveDateLocale()), {
246
+ dateStyle,
247
+ }).format(date);
248
+ }
249
+ function formatLocaleDateTime(value, options = {}) {
250
+ const date = normalizeDateInput(value);
251
+ if (!date) {
252
+ return "";
253
+ }
254
+ const { dateStyle = "short", timeStyle = "short" } = options;
255
+ return new Intl.DateTimeFormat(getIntlLocale(getActiveDateLocale()), {
256
+ dateStyle,
257
+ timeStyle,
258
+ }).format(date);
259
+ }
260
+ function getDefaultDateRange(days = 60) {
261
+ const today = new Date();
262
+ return {
263
+ startDate: formatBrazilianDate(addDays(today, -days)),
264
+ endDate: formatBrazilianDate(today),
265
+ };
266
+ }
267
+ function getRelativeDateRange(daysBack) {
268
+ const endDate = new Date();
269
+ endDate.setHours(23, 59, 59, 999);
270
+ const startDate = new Date();
271
+ startDate.setHours(0, 0, 0, 0);
272
+ startDate.setDate(startDate.getDate() - daysBack);
273
+ return { startDate, endDate };
274
+ }
275
+ function toUtcRangeStartIso(value) {
276
+ const date = normalizeDateInput(value);
277
+ return date ? buildUtcDate(date, 0, 3, 0, 0, 0).toISOString() : undefined;
278
+ }
279
+ function toUtcRangeEndIso(value) {
280
+ const date = normalizeDateInput(value);
281
+ return date ? buildUtcDate(date, 1, 2, 59, 59, 999).toISOString() : undefined;
282
+ }
283
+ function toUtcDayExclusiveEndIso(value) {
284
+ const date = normalizeDateInput(value);
285
+ return date ? buildUtcDate(date, 1, 3, 0, 0, 0).toISOString() : undefined;
286
+ }
287
+
288
+ /*
289
+ * Public API Surface of mapa-library-ui authorize
290
+ */
291
+
292
+ /**
293
+ * Generated bundle index. Do not edit.
294
+ */
295
+
296
+ 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 };
297
+ //# sourceMappingURL=mapa-library-ui-src-lib-core-utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapa-library-ui-src-lib-core-utils.mjs","sources":["../../../projects/mapa-library-ui/src/lib/core/utils/date-fns.util.ts","../../../projects/mapa-library-ui/src/lib/core/utils/date-locale.util.ts","../../../projects/mapa-library-ui/src/lib/core/utils/date.util.ts","../../../projects/mapa-library-ui/src/lib/core/utils/public-api.ts","../../../projects/mapa-library-ui/src/mapa-library-ui-src-lib-core-utils.ts"],"sourcesContent":["import {\n addMonths,\n format,\n getDate,\n getYear,\n isAfter,\n isValid,\n parse,\n parseISO,\n set,\n} from 'date-fns';\n\ntype DateInput = Date | string | number | null | undefined;\n\ninterface TimeParts {\n hours?: number;\n minutes?: number;\n seconds?: number;\n milliseconds?: number;\n}\n\nconst ISO_DATE_RE = /^\\d{4}-\\d{2}-\\d{2}T/;\n\nconst toDateFnsFormat = (formatPattern: string) =>\n formatPattern\n .replaceAll('YYYY', 'yyyy')\n .replaceAll('DD', 'dd')\n .replaceAll('A', 'a');\n\nexport const parseDateValueFns = (\n value: DateInput,\n inputFormat = 'DD/MM/YYYY',\n): Date => {\n if (value instanceof Date) {\n return value;\n }\n\n if (typeof value === 'number') {\n return new Date(value);\n }\n\n if (typeof value === 'string') {\n if (!value.trim()) {\n return new Date(NaN);\n }\n\n if (ISO_DATE_RE.test(value)) {\n return parseISO(value);\n }\n\n const parsed = parse(value, toDateFnsFormat(inputFormat), new Date());\n if (isValid(parsed)) {\n return parsed;\n }\n\n return new Date(value);\n }\n\n return new Date(NaN);\n};\n\nexport const formatDateValue = (\n value: DateInput,\n outputFormat = 'DD/MM/YYYY',\n inputFormat = 'DD/MM/YYYY',\n): string => {\n const parsed = parseDateValueFns(value, inputFormat);\n if (!isValid(parsed)) {\n return '';\n }\n\n return format(parsed, toDateFnsFormat(outputFormat));\n};\n\nexport const isValidDateValue = (\n value: DateInput,\n inputFormat = 'DD/MM/YYYY',\n): boolean => {\n const parsed = parseDateValueFns(value, inputFormat);\n return isValid(parsed);\n};\n\nexport const toIsoDateValue = (\n value: DateInput,\n inputFormat = 'DD/MM/YYYY',\n): string => {\n const parsed = parseDateValueFns(value, inputFormat);\n return isValid(parsed) ? parsed.toISOString() : '';\n};\n\nexport const addMonthsToDateValue = (\n value: DateInput,\n months: number,\n inputFormat = 'DD/MM/YYYY',\n): Date => addMonths(parseDateValueFns(value, inputFormat), months);\n\nexport const setTimeOnDateValue = (\n value: DateInput,\n time: TimeParts,\n inputFormat = 'DD/MM/YYYY',\n): Date => set(parseDateValueFns(value, inputFormat), time);\n\nexport const toIsoDateValueWithTime = (\n value: DateInput,\n time: TimeParts,\n inputFormat = 'DD/MM/YYYY',\n): string => {\n const parsed = setTimeOnDateValue(value, time, inputFormat);\n return isValid(parsed) ? parsed.toISOString() : '';\n};\n\nexport const toIsoDateValueWithUtcTime = (\n value: DateInput,\n time: TimeParts,\n inputFormat = 'DD/MM/YYYY',\n): string => {\n const parsed = parseDateValueFns(value, inputFormat);\n\n if (!isValid(parsed)) {\n return '';\n }\n\n const utcDate = new Date(parsed.getTime());\n utcDate.setUTCHours(\n time.hours ?? utcDate.getUTCHours(),\n time.minutes ?? utcDate.getUTCMinutes(),\n time.seconds ?? utcDate.getUTCSeconds(),\n time.milliseconds ?? utcDate.getUTCMilliseconds(),\n );\n\n return utcDate.toISOString();\n};\n\nexport const getYearFromDateValue = (\n value: DateInput,\n inputFormat = 'DD/MM/YYYY',\n): number => getYear(parseDateValueFns(value, inputFormat));\n\nexport const getDayOfMonthFromDateValue = (\n value: DateInput,\n inputFormat = 'DD/MM/YYYY',\n): number => getDate(parseDateValueFns(value, inputFormat));\n\nexport const isAfterDateValue = (\n value: DateInput,\n compareValue: DateInput,\n inputFormat = 'DD/MM/YYYY',\n): boolean =>\n isAfter(\n parseDateValueFns(value, inputFormat),\n parseDateValueFns(compareValue, inputFormat),\n );\n","import { AppLanguage } from 'mapa-frontend-i18n';\nimport {\n formatDateValue,\n isValidDateValue,\n parseDateValueFns,\n toIsoDateValue,\n toIsoDateValueWithUtcTime,\n} from './date-fns.util';\n\nexport type DatepickerLocale = 'pt-BR' | 'es' | 'en';\nexport type DateFormatPattern = 'DD/MM/YYYY' | 'MM/DD/YYYY';\n\nexport function toDatepickerLocale(language: AppLanguage): DatepickerLocale {\n return language === 'en' ? 'en' : language === 'es' ? 'es' : 'pt-BR';\n}\n\nexport function getDateFormatByLanguage(\n language: AppLanguage,\n): DateFormatPattern {\n return language === 'en' ? 'MM/DD/YYYY' : 'DD/MM/YYYY';\n}\n\nexport function formatDateByLanguage(\n value: Date | string | number | null | undefined,\n language: AppLanguage,\n): string {\n return formatDateValue(value, getDateFormatByLanguage(language));\n}\n\nexport function isValidDateByLanguage(\n value: string | null | undefined,\n language: AppLanguage,\n): boolean {\n if (!value) {\n return false;\n }\n\n return isValidDateValue(value, getDateFormatByLanguage(language));\n}\n\nexport function parseDateByLanguage(\n value: string | null | undefined,\n language: AppLanguage,\n): Date {\n return parseDateValueFns(value, getDateFormatByLanguage(language));\n}\n\nexport function toIsoDateByLanguage(\n value: string | null | undefined,\n language: AppLanguage,\n): string {\n return toIsoDateValue(value, getDateFormatByLanguage(language));\n}\n\nexport function toIsoDateByLanguageWithUtcTime(\n value: string | null | undefined,\n language: AppLanguage,\n time: {\n hours?: number;\n minutes?: number;\n seconds?: number;\n milliseconds?: number;\n },\n): string {\n return toIsoDateValueWithUtcTime(\n value,\n time,\n getDateFormatByLanguage(language),\n );\n}\n\nexport function reformatDateStringForLanguage(\n value: string | null | undefined,\n fromLanguage: AppLanguage,\n toLanguage: AppLanguage,\n): string {\n if (!value) {\n return '';\n }\n\n return formatDateValue(\n value,\n getDateFormatByLanguage(toLanguage),\n getDateFormatByLanguage(fromLanguage),\n );\n}\n","import { getIntlLocale, getStoredAppLanguage } from \"mapa-frontend-i18n\";\n\nconst DAY_MONTH_YEAR_PATTERN = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/;\nconst MONTH_DAY_YEAR_PATTERN = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/;\nconst DOCS_LANGUAGE_STORAGE_KEY = \"mapa-library-ui-docs-language\";\n\nexport type MapaDateLocale = \"pt-BR\" | \"en\" | \"es\";\nexport type MapaDateFormat = \"DD/MM/YYYY\" | \"MM/DD/YYYY\";\n\nexport type DateInput = Date | string | number | null | undefined;\n\nfunction isValidDate(date: Date): boolean {\n return !Number.isNaN(date.getTime());\n}\n\nfunction buildUtcDate(\n date: Date,\n dayOffset: number,\n hours: number,\n minutes: number,\n seconds: number,\n milliseconds: number,\n): Date {\n return new Date(\n Date.UTC(\n date.getFullYear(),\n date.getMonth(),\n date.getDate() + dayOffset,\n hours,\n minutes,\n seconds,\n milliseconds,\n ),\n );\n}\n\nexport function formatDateAsDayMonthYear(date: Date): string {\n const day = `${date.getDate()}`.padStart(2, \"0\");\n const month = `${date.getMonth() + 1}`.padStart(2, \"0\");\n const year = `${date.getFullYear()}`;\n\n return `${day}/${month}/${year}`;\n}\n\nexport function formatDateAsMonthDayYear(date: Date): string {\n const day = `${date.getDate()}`.padStart(2, \"0\");\n const month = `${date.getMonth() + 1}`.padStart(2, \"0\");\n const year = `${date.getFullYear()}`;\n\n return `${month}/${day}/${year}`;\n}\n\nexport function normalizeDateLocale(value: unknown): MapaDateLocale {\n if (typeof value !== \"string\") {\n return \"pt-BR\";\n }\n\n const normalizedValue = value.trim().toLowerCase();\n\n if (normalizedValue.startsWith(\"en\")) {\n return \"en\";\n }\n\n if (normalizedValue.startsWith(\"es\")) {\n return \"es\";\n }\n\n return \"pt-BR\";\n}\n\nfunction getDocsStoredLanguage(): string | null {\n if (typeof window === \"undefined\") {\n return null;\n }\n\n try {\n return window.localStorage.getItem(DOCS_LANGUAGE_STORAGE_KEY);\n } catch {\n return null;\n }\n}\n\nexport function getActiveDateLocale(): MapaDateLocale {\n return normalizeDateLocale(getDocsStoredLanguage() ?? getStoredAppLanguage());\n}\n\nexport function isMonthFirstDateLocale(locale = getActiveDateLocale()): boolean {\n return normalizeDateLocale(locale) === \"en\";\n}\n\nexport function getActiveDateFormat(locale = getActiveDateLocale()): MapaDateFormat {\n return isMonthFirstDateLocale(locale) ? \"MM/DD/YYYY\" : \"DD/MM/YYYY\";\n}\n\nexport function getActiveMaterialDateFormat(locale = getActiveDateLocale()): string {\n return isMonthFirstDateLocale(locale) ? \"MM/dd/yyyy\" : \"dd/MM/yyyy\";\n}\n\nexport function getDateInputMask(_locale = getActiveDateLocale()): string {\n return \"00/00/0000\";\n}\n\nexport function formatDateForLocale(date: Date, locale = getActiveDateLocale()): string {\n return isMonthFirstDateLocale(locale)\n ? formatDateAsMonthDayYear(date)\n : formatDateAsDayMonthYear(date);\n}\n\nfunction parseOrderedDate(\n value: string,\n pattern: RegExp,\n order: \"day-first\" | \"month-first\"\n): Date | null {\n const match = pattern.exec(value.trim());\n if (!match) {\n return null;\n }\n\n const [, firstValue, secondValue, yearValue] = match;\n const year = Number(yearValue);\n const month = Number(order === \"month-first\" ? firstValue : secondValue);\n const day = Number(order === \"month-first\" ? secondValue : firstValue);\n const parsedDate = new Date(year, month - 1, day);\n\n if (\n parsedDate.getFullYear() !== year ||\n parsedDate.getMonth() !== month - 1 ||\n parsedDate.getDate() !== day\n ) {\n return null;\n }\n\n return parsedDate;\n}\n\nexport function parseLocaleDateValue(\n value: string,\n locale = getActiveDateLocale()\n): Date | null {\n const normalizedLocale = normalizeDateLocale(locale);\n const parsers =\n normalizedLocale === \"en\"\n ? [\n () => parseOrderedDate(value, MONTH_DAY_YEAR_PATTERN, \"month-first\"),\n () => parseOrderedDate(value, DAY_MONTH_YEAR_PATTERN, \"day-first\"),\n ]\n : [\n () => parseOrderedDate(value, DAY_MONTH_YEAR_PATTERN, \"day-first\"),\n () => parseOrderedDate(value, MONTH_DAY_YEAR_PATTERN, \"month-first\"),\n ];\n\n for (const parse of parsers) {\n const parsedDate = parse();\n if (parsedDate) {\n return parsedDate;\n }\n }\n\n return null;\n}\n\nexport function parseDateValue(\n value: unknown,\n locale = getActiveDateLocale()\n): Date | null {\n if (value instanceof Date) {\n return isValidDate(value) ? new Date(value.getTime()) : null;\n }\n\n if (typeof value === \"number\") {\n const parsedDate = new Date(value);\n return isValidDate(parsedDate) ? parsedDate : null;\n }\n\n if (typeof value !== \"string\") {\n return null;\n }\n\n const trimmedValue = value.trim();\n if (!trimmedValue) {\n return null;\n }\n\n const localeDate = parseLocaleDateValue(trimmedValue, locale);\n if (localeDate) {\n return localeDate;\n }\n\n if (DAY_MONTH_YEAR_PATTERN.test(trimmedValue) || MONTH_DAY_YEAR_PATTERN.test(trimmedValue)) {\n return null;\n }\n\n const parsedDate = new Date(trimmedValue);\n return isValidDate(parsedDate) ? parsedDate : null;\n}\n\nexport function isDateValue(value: unknown): boolean {\n return parseDateValue(value) !== null;\n}\n\nexport function parseBrazilianDate(value: string): Date | null {\n return parseOrderedDate(value, DAY_MONTH_YEAR_PATTERN, \"day-first\");\n}\n\nexport function normalizeDateInput(value: DateInput): Date | null {\n return parseDateValue(value);\n}\n\nexport function formatBrazilianDate(value: DateInput): string {\n const date = normalizeDateInput(value);\n return date ? formatDateAsDayMonthYear(date) : \"\";\n}\n\nexport function addDays(date: Date, days: number): Date {\n const nextDate = new Date(date);\n nextDate.setDate(nextDate.getDate() + days);\n return nextDate;\n}\n\nexport type LocaleDateStyle = \"short\" | \"medium\" | \"long\" | \"full\";\n\nexport function formatLocaleDate(\n value: DateInput,\n dateStyle: LocaleDateStyle = \"short\",\n): string {\n const date = normalizeDateInput(value);\n if (!date) {\n return \"\";\n }\n\n return new Intl.DateTimeFormat(getIntlLocale(getActiveDateLocale()), {\n dateStyle,\n }).format(date);\n}\n\nexport function formatLocaleDateTime(\n value: DateInput,\n options: { dateStyle?: LocaleDateStyle; timeStyle?: LocaleDateStyle } = {},\n): string {\n const date = normalizeDateInput(value);\n if (!date) {\n return \"\";\n }\n\n const { dateStyle = \"short\", timeStyle = \"short\" } = options;\n\n return new Intl.DateTimeFormat(getIntlLocale(getActiveDateLocale()), {\n dateStyle,\n timeStyle,\n }).format(date);\n}\n\nexport function getDefaultDateRange(days = 60): {\n startDate: string;\n endDate: string;\n} {\n const today = new Date();\n\n return {\n startDate: formatBrazilianDate(addDays(today, -days)),\n endDate: formatBrazilianDate(today),\n };\n}\n\nexport function getRelativeDateRange(daysBack: number): {\n startDate: Date;\n endDate: Date;\n} {\n const endDate = new Date();\n endDate.setHours(23, 59, 59, 999);\n\n const startDate = new Date();\n startDate.setHours(0, 0, 0, 0);\n startDate.setDate(startDate.getDate() - daysBack);\n\n return { startDate, endDate };\n}\n\nexport function toUtcRangeStartIso(value: DateInput): string | undefined {\n const date = normalizeDateInput(value);\n return date ? buildUtcDate(date, 0, 3, 0, 0, 0).toISOString() : undefined;\n}\n\nexport function toUtcRangeEndIso(value: DateInput): string | undefined {\n const date = normalizeDateInput(value);\n return date ? buildUtcDate(date, 1, 2, 59, 59, 999).toISOString() : undefined;\n}\n\nexport function toUtcDayExclusiveEndIso(value: DateInput): string | undefined {\n const date = normalizeDateInput(value);\n return date ? buildUtcDate(date, 1, 3, 0, 0, 0).toISOString() : undefined;\n}\n","/*\n * Public API Surface of mapa-library-ui authorize\n */\nexport * from './date-fns.util';\nexport * from './date-locale.util';\nexport * from './date.util';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './util';\n"],"names":[],"mappings":";;;AAqBA,MAAM,WAAW,GAAG,qBAAqB;AAEzC,MAAM,eAAe,GAAG,CAAC,aAAqB,KAC5C;AACG,KAAA,UAAU,CAA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IACtC,OAAO,IAAI,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS;AAC3E;;ACnSA;;AAEG;;ACFH;;AAEG;;;;"}
@@ -15,6 +15,7 @@ import * as i3 from '@angular/material/form-field';
15
15
  import { MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
16
16
  import { getMapaUiTexts, getStoredAppLanguage, getIntlLocale } from 'mapa-frontend-i18n';
17
17
  import * as i1$3 from '@angular/platform-browser';
18
+ import { parseISO, parse, isValid, format, addMonths, set, getYear, getDate, isAfter } from 'date-fns';
18
19
  import * as i2$1 from '@angular/router';
19
20
  import { RouterModule } from '@angular/router';
20
21
  import { Md5 } from 'ts-md5';
@@ -4575,6 +4576,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
4575
4576
  }]
4576
4577
  }] });
4577
4578
 
4579
+ const ISO_DATE_RE = /^\d{4}-\d{2}-\d{2}T/;
4580
+ const toDateFnsFormat = (formatPattern) => formatPattern
4581
+ .replaceAll('YYYY', 'yyyy')
4582
+ .replaceAll('DD', 'dd')
4583
+ .replaceAll('A', 'a');
4584
+ const parseDateValueFns = (value, inputFormat = 'DD/MM/YYYY') => {
4585
+ if (value instanceof Date) {
4586
+ return value;
4587
+ }
4588
+ if (typeof value === 'number') {
4589
+ return new Date(value);
4590
+ }
4591
+ if (typeof value === 'string') {
4592
+ if (!value.trim()) {
4593
+ return new Date(NaN);
4594
+ }
4595
+ if (ISO_DATE_RE.test(value)) {
4596
+ return parseISO(value);
4597
+ }
4598
+ const parsed = parse(value, toDateFnsFormat(inputFormat), new Date());
4599
+ if (isValid(parsed)) {
4600
+ return parsed;
4601
+ }
4602
+ return new Date(value);
4603
+ }
4604
+ return new Date(NaN);
4605
+ };
4606
+ const formatDateValue = (value, outputFormat = 'DD/MM/YYYY', inputFormat = 'DD/MM/YYYY') => {
4607
+ const parsed = parseDateValueFns(value, inputFormat);
4608
+ if (!isValid(parsed)) {
4609
+ return '';
4610
+ }
4611
+ return format(parsed, toDateFnsFormat(outputFormat));
4612
+ };
4613
+ const isValidDateValue = (value, inputFormat = 'DD/MM/YYYY') => {
4614
+ const parsed = parseDateValueFns(value, inputFormat);
4615
+ return isValid(parsed);
4616
+ };
4617
+ const toIsoDateValue = (value, inputFormat = 'DD/MM/YYYY') => {
4618
+ const parsed = parseDateValueFns(value, inputFormat);
4619
+ return isValid(parsed) ? parsed.toISOString() : '';
4620
+ };
4621
+ const addMonthsToDateValue = (value, months, inputFormat = 'DD/MM/YYYY') => addMonths(parseDateValueFns(value, inputFormat), months);
4622
+ const setTimeOnDateValue = (value, time, inputFormat = 'DD/MM/YYYY') => set(parseDateValueFns(value, inputFormat), time);
4623
+ const toIsoDateValueWithTime = (value, time, inputFormat = 'DD/MM/YYYY') => {
4624
+ const parsed = setTimeOnDateValue(value, time, inputFormat);
4625
+ return isValid(parsed) ? parsed.toISOString() : '';
4626
+ };
4627
+ const toIsoDateValueWithUtcTime = (value, time, inputFormat = 'DD/MM/YYYY') => {
4628
+ const parsed = parseDateValueFns(value, inputFormat);
4629
+ if (!isValid(parsed)) {
4630
+ return '';
4631
+ }
4632
+ const utcDate = new Date(parsed.getTime());
4633
+ utcDate.setUTCHours(time.hours ?? utcDate.getUTCHours(), time.minutes ?? utcDate.getUTCMinutes(), time.seconds ?? utcDate.getUTCSeconds(), time.milliseconds ?? utcDate.getUTCMilliseconds());
4634
+ return utcDate.toISOString();
4635
+ };
4636
+ const getYearFromDateValue = (value, inputFormat = 'DD/MM/YYYY') => getYear(parseDateValueFns(value, inputFormat));
4637
+ const getDayOfMonthFromDateValue = (value, inputFormat = 'DD/MM/YYYY') => getDate(parseDateValueFns(value, inputFormat));
4638
+ const isAfterDateValue = (value, compareValue, inputFormat = 'DD/MM/YYYY') => isAfter(parseDateValueFns(value, inputFormat), parseDateValueFns(compareValue, inputFormat));
4639
+
4640
+ function toDatepickerLocale(language) {
4641
+ return language === 'en' ? 'en' : language === 'es' ? 'es' : 'pt-BR';
4642
+ }
4643
+ function getDateFormatByLanguage(language) {
4644
+ return language === 'en' ? 'MM/DD/YYYY' : 'DD/MM/YYYY';
4645
+ }
4646
+ function formatDateByLanguage(value, language) {
4647
+ return formatDateValue(value, getDateFormatByLanguage(language));
4648
+ }
4649
+ function isValidDateByLanguage(value, language) {
4650
+ if (!value) {
4651
+ return false;
4652
+ }
4653
+ return isValidDateValue(value, getDateFormatByLanguage(language));
4654
+ }
4655
+ function parseDateByLanguage(value, language) {
4656
+ return parseDateValueFns(value, getDateFormatByLanguage(language));
4657
+ }
4658
+ function toIsoDateByLanguage(value, language) {
4659
+ return toIsoDateValue(value, getDateFormatByLanguage(language));
4660
+ }
4661
+ function toIsoDateByLanguageWithUtcTime(value, language, time) {
4662
+ return toIsoDateValueWithUtcTime(value, time, getDateFormatByLanguage(language));
4663
+ }
4664
+ function reformatDateStringForLanguage(value, fromLanguage, toLanguage) {
4665
+ if (!value) {
4666
+ return '';
4667
+ }
4668
+ return formatDateValue(value, getDateFormatByLanguage(toLanguage), getDateFormatByLanguage(fromLanguage));
4669
+ }
4670
+
4578
4671
  class MapaBenchmarkIndicatorComponent {
4579
4672
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaBenchmarkIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4580
4673
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: MapaBenchmarkIndicatorComponent, isStandalone: true, selector: "mapa-benchmark-indicator", inputs: { item: "item" }, ngImport: i0, template: "<div\n class=\"indicator\"\n [style.backgroundColor]=\"item.classificationColor\"\n>\n <div class=\"indicator__markers\">\n @for (mark of item.marks ?? []; track mark.name + '-' + mark.value) {\n <div\n class=\"indicator__marker--arrow\"\n [ngStyle]=\"{\n left: mark.value + '%',\n borderTopColor: mark.color\n }\"\n [title]=\"mark.name + ' (' + mark.value + '%)'\"\n ></div>\n }\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:flex-end}.indicator{min-height:23px}.indicator__classification{background-color:#fff;border-radius:16px;color:#000;padding:4px 8px;margin-right:4px;font-size:12px!important}.indicator__markers{position:absolute;inset:0;z-index:10}.indicator__marker--arrow{position:absolute;top:10px;width:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:12px solid;transform:translate(-80%)}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#000}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f598a7;color:#000}.classification-7{background-color:#f56580;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:400}.display-S{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:20px;font-style:normal;font-weight:400}.display-L{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:32px;font-style:normal;font-weight:400}.display-XG{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:48px;font-style:normal;font-weight:400}*{transition:opacity .4s ease-out,max-height .4s ease-out}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
@@ -7773,5 +7866,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
7773
7866
  * Generated bundle index. Do not edit.
7774
7867
  */
7775
7868
 
7776
- 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 };
7869
+ 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 };
7777
7870
  //# sourceMappingURL=mapa-library-ui.mjs.map