@ethisyscore/core-utils 1.94.0 → 1.95.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 (57) hide show
  1. package/dist/chunk-2F5FENXB.js +84 -0
  2. package/dist/chunk-2F5FENXB.js.map +1 -0
  3. package/dist/chunk-3LIIUXBE.js +14 -0
  4. package/dist/chunk-3LIIUXBE.js.map +1 -0
  5. package/dist/chunk-G2XGZH7P.cjs +16 -0
  6. package/dist/chunk-G2XGZH7P.cjs.map +1 -0
  7. package/dist/chunk-GAZLFZEL.js +105 -0
  8. package/dist/chunk-GAZLFZEL.js.map +1 -0
  9. package/dist/chunk-LT7I4JVK.cjs +121 -0
  10. package/dist/chunk-LT7I4JVK.cjs.map +1 -0
  11. package/dist/chunk-OEDAX6WN.js +121 -0
  12. package/dist/chunk-OEDAX6WN.js.map +1 -0
  13. package/dist/chunk-P5FSVRZO.cjs +127 -0
  14. package/dist/chunk-P5FSVRZO.cjs.map +1 -0
  15. package/dist/chunk-RLPXYKSM.cjs +23 -0
  16. package/dist/chunk-RLPXYKSM.cjs.map +1 -0
  17. package/dist/chunk-TN6DXBVD.js +252 -0
  18. package/dist/chunk-TN6DXBVD.js.map +1 -0
  19. package/dist/chunk-YNBKRMK3.cjs +290 -0
  20. package/dist/chunk-YNBKRMK3.cjs.map +1 -0
  21. package/dist/chunk-ZQCGDT7D.js +19 -0
  22. package/dist/chunk-ZQCGDT7D.js.map +1 -0
  23. package/dist/chunk-ZR7TABGT.cjs +94 -0
  24. package/dist/chunk-ZR7TABGT.cjs.map +1 -0
  25. package/dist/date/index.cjs +210 -397
  26. package/dist/date/index.cjs.map +1 -1
  27. package/dist/date/index.js +2 -349
  28. package/dist/date/index.js.map +1 -1
  29. package/dist/date/org-format.cjs +13 -151
  30. package/dist/date/org-format.cjs.map +1 -1
  31. package/dist/date/org-format.js +3 -141
  32. package/dist/date/org-format.js.map +1 -1
  33. package/dist/index.cjs +286 -600
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +6 -539
  38. package/dist/index.js.map +1 -1
  39. package/dist/list/index.cjs +7 -11
  40. package/dist/list/index.cjs.map +1 -1
  41. package/dist/list/index.js +1 -12
  42. package/dist/list/index.js.map +1 -1
  43. package/dist/money/index.cjs +39 -51
  44. package/dist/money/index.cjs.map +1 -1
  45. package/dist/money/index.d.cts +129 -8
  46. package/dist/money/index.d.ts +129 -8
  47. package/dist/money/index.js +1 -49
  48. package/dist/money/index.js.map +1 -1
  49. package/dist/number/index.cjs +15 -18
  50. package/dist/number/index.cjs.map +1 -1
  51. package/dist/number/index.js +1 -17
  52. package/dist/number/index.js.map +1 -1
  53. package/dist/patch/index.cjs +22 -121
  54. package/dist/patch/index.cjs.map +1 -1
  55. package/dist/patch/index.js +1 -119
  56. package/dist/patch/index.js.map +1 -1
  57. package/package.json +1 -1
@@ -1,404 +1,217 @@
1
1
  'use strict';
2
2
 
3
- var dateFns = require('date-fns');
3
+ var chunkLT7I4JVK_cjs = require('../chunk-LT7I4JVK.cjs');
4
+ var chunkYNBKRMK3_cjs = require('../chunk-YNBKRMK3.cjs');
4
5
 
5
- // src/date/constants.ts
6
- var DATE_FORMAT = "yyyy-MM-dd";
7
- var AUDIT_DATE_FORMAT = "d MMMM yyyy, HH:mm";
8
- var DISPLAY_DATE_FORMAT = "d MMM yyyy";
9
- var DAY_DATE_FORMAT = "EEEE, d MMMM";
10
- var DAY_MONTH_FORMAT = "MMM d";
11
- var DAY_MONTH_YEAR_FORMAT = "MMM d, yyyy";
12
- var TIME_FORMAT = "h:mm a";
13
- var SHORT_DATETIME_FORMAT = "MMM d, h:mm a";
14
- var MS_PER_DAY = 864e5;
15
- var MS_PER_HOUR = 36e5;
16
- var MS_PER_MINUTE = 6e4;
17
- var DISPLAY_DATE_SLASH_FORMAT = "dd/MM/yyyy";
18
- var DISPLAY_DATETIME_SLASH_FORMAT = "dd/MM/yyyy HH:mm";
19
- var DISPLAY_SHORT_DATE_FORMAT = "EEE d MMM";
20
- var isDateOnlyString = (value) => {
21
- return typeof value === "string" && /^\d{4}-\d{2}-\d{2}$/.test(value);
22
- };
23
- var formatDate = (date, dateFormat = DATE_FORMAT) => {
24
- return dateFns.format(date, dateFormat);
25
- };
26
- var getTodayIsoDate = () => {
27
- return formatDate(/* @__PURE__ */ new Date());
28
- };
29
- var toIsoDate = (date) => formatDate(date);
30
- var startOfMonthOffset = (date, months) => {
31
- if (!date || !dateFns.isValid(date)) {
32
- return /* @__PURE__ */ new Date(NaN);
33
- }
34
- return new Date(date.getFullYear(), date.getMonth() + months, 1);
35
- };
36
- var daysBetweenIso = (fromIso, toIso) => {
37
- const from = parseIsoDateLocal(fromIso);
38
- const to = parseIsoDateLocal(toIso);
39
- if (!from || !to) return NaN;
40
- return Math.round((to.getTime() - from.getTime()) / MS_PER_DAY);
41
- };
42
- var getMonthStartIso = (date) => formatDate(new Date(date.getFullYear(), date.getMonth(), 1));
43
- var getMonthEndIso = (date) => formatDate(new Date(date.getFullYear(), date.getMonth() + 1, 0));
44
- var parseIsoDateLocal = (value) => {
45
- if (!value || !isDateOnlyString(value)) return null;
46
- const [year, month, day] = value.split("-").map(Number);
47
- const d = new Date(year, month - 1, day);
48
- return dateFns.isValid(d) ? d : null;
49
- };
50
- var addDaysToIsoDate = (isoDate, days) => {
51
- const base = parseIsoDateLocal(isoDate);
52
- if (!base) return isoDate;
53
- base.setDate(base.getDate() + days);
54
- return formatDate(base);
55
- };
56
- var addYearsToIsoDate = (isoDate, years) => {
57
- const base = parseIsoDateLocal(isoDate);
58
- if (!base) return isoDate;
59
- base.setFullYear(base.getFullYear() + years);
60
- return formatDate(base);
61
- };
62
- var toDateOnlyString = (value) => {
63
- if (!value) return "";
64
- const datepart = value.split("T")[0];
65
- return isDateOnlyString(datepart) ? datepart : "";
66
- };
67
- var EM_DASH = "\u2014";
68
- var formatFixedDateTime = (value, fmt) => {
69
- if (!value) return EM_DASH;
70
- const date = new Date(value);
71
- return Number.isNaN(date.getTime()) ? EM_DASH : dateFns.format(date, fmt);
72
- };
73
- var relativeTimePhrase = (diffMinutes) => {
74
- if (diffMinutes < 1) return "Just now";
75
- if (diffMinutes < 60) return `${diffMinutes}m ago`;
76
- const hours = Math.floor(diffMinutes / 60);
77
- if (hours < 24) return `${hours}h ago`;
78
- const days = Math.floor(hours / 24);
79
- if (days < 7) return `${days}d ago`;
80
- return null;
81
- };
82
- var formatSlashDate = (dateString) => {
83
- const parsed = parseIsoDateLocal(dateString);
84
- return parsed ? dateFns.format(parsed, DISPLAY_DATE_SLASH_FORMAT) : dateString;
85
- };
86
- var formatCompactDateTime = (value) => formatFixedDateTime(value, DISPLAY_DATETIME_SLASH_FORMAT);
87
- var formatShortDate = (value) => formatFixedDateTime(value, DISPLAY_SHORT_DATE_FORMAT);
88
- var formatMonthDay = (value) => formatFixedDateTime(value, DAY_MONTH_FORMAT);
89
- var formatDateSafe = (date, formatStr = DATE_FORMAT, fallback = "\u2014") => {
90
- if (!date) return fallback;
91
- try {
92
- const dateObj = typeof date === "string" ? dateFns.parseISO(date) : date;
93
- if (!dateFns.isValid(dateObj)) return fallback;
94
- return dateFns.format(dateObj, formatStr);
95
- } catch {
96
- return fallback;
97
- }
98
- };
99
- var getOrdinalSuffix = (day) => {
100
- if (day > 3 && day < 21) return "th";
101
- switch (day % 10) {
102
- case 1:
103
- return "st";
104
- case 2:
105
- return "nd";
106
- case 3:
107
- return "rd";
108
- default:
109
- return "th";
110
- }
111
- };
112
- var formatDateWithOrdinal = (date) => {
113
- if (!date) return "Not specified";
114
- let dateObj;
115
- if (typeof date === "string") {
116
- if (isDateOnlyString(date)) {
117
- const [year2, month2, day2] = date.split("-").map(Number);
118
- dateObj = new Date(year2, month2 - 1, day2);
119
- } else {
120
- dateObj = dateFns.parseISO(date);
121
- }
122
- } else {
123
- dateObj = date;
124
- }
125
- if (!dateFns.isValid(dateObj)) return "Invalid date";
126
- const day = dateObj.getDate();
127
- const month = dateFns.format(dateObj, "MMM");
128
- const year = dateObj.getFullYear();
129
- return `${day}${getOrdinalSuffix(day)} ${month} ${year}`;
130
- };
131
- var formatTimeAgo = (date) => {
132
- if (!date) return "";
133
- const dateObj = typeof date === "string" ? dateFns.parseISO(date) : date;
134
- if (!dateFns.isValid(dateObj)) return "";
135
- const diffMinutes = Math.floor(((/* @__PURE__ */ new Date()).getTime() - dateObj.getTime()) / MS_PER_MINUTE);
136
- return relativeTimePhrase(diffMinutes) ?? formatDate(dateObj);
137
- };
138
6
 
139
- // src/date/formatValidation.ts
140
- var SEPARATOR_CHARS = " ,./-:()";
141
- var DAY_TOKENS = /* @__PURE__ */ new Set(["d", "dd", "do"]);
142
- var WEEKDAY_TOKENS = /* @__PURE__ */ new Set(["EEE", "EEEE"]);
143
- var MONTH_TOKENS = /* @__PURE__ */ new Set(["M", "MM", "MMM", "MMMM"]);
144
- var YEAR_TOKENS = /* @__PURE__ */ new Set(["yy", "yyyy"]);
145
- var HOUR12_TOKENS = /* @__PURE__ */ new Set(["h", "hh"]);
146
- var HOUR24_TOKENS = /* @__PURE__ */ new Set(["H", "HH"]);
147
- var MINUTE_TOKENS = /* @__PURE__ */ new Set(["m", "mm"]);
148
- var SECOND_TOKENS = /* @__PURE__ */ new Set(["s", "ss"]);
149
- var MERIDIEM_TOKEN = "a";
150
- var DATE_HINTS = {
151
- D: "d",
152
- DD: "dd",
153
- Y: "yyyy",
154
- YY: "yy",
155
- YYYY: "yyyy",
156
- E: "EEE",
157
- EE: "EEE",
158
- m: "M",
159
- mm: "MM"
160
- };
161
- var TIME_HINTS = {
162
- t: "a",
163
- tt: "a",
164
- A: "a",
165
- M: "m",
166
- MM: "mm"
167
- };
168
- var invalid = (error) => ({ valid: false, error });
169
- var isLetter = (c) => /[a-zA-Z]/.test(c);
170
- function tokenize(value, isKnownToken, hints) {
171
- const tokens = [];
172
- let i = 0;
173
- while (i < value.length) {
174
- const c = value[i];
175
- if (c === "'") {
176
- i++;
177
- let closed = false;
178
- while (i < value.length) {
179
- if (value[i] === "'") {
180
- if (i + 1 < value.length && value[i + 1] === "'") {
181
- i += 2;
182
- continue;
183
- }
184
- closed = true;
185
- i++;
186
- break;
187
- }
188
- i++;
189
- }
190
- if (!closed) return { result: invalid("Unterminated quoted literal."), tokens };
191
- continue;
192
- }
193
- if (isLetter(c)) {
194
- const start = i;
195
- while (i < value.length && value[i] === c) i++;
196
- let run = value.slice(start, i);
197
- if (run === "d" && value[i] === "o") {
198
- run = "do";
199
- i++;
200
- }
201
- if (!isKnownToken(run)) {
202
- const hint = hints[run];
203
- return {
204
- result: invalid(hint ? `Unknown token '${run}' \u2014 use '${hint}' instead.` : `Unknown token '${run}'.`),
205
- tokens
206
- };
207
- }
208
- tokens.push(run);
209
- continue;
210
- }
211
- if (SEPARATOR_CHARS.includes(c)) {
212
- i++;
213
- continue;
214
- }
215
- return { result: invalid(`Unsupported character '${c}'.`), tokens };
216
- }
217
- return { result: { valid: true }, tokens };
218
- }
219
- function validateDateFormat(value) {
220
- if (!value) return { valid: true };
221
- const { result, tokens } = tokenize(
222
- value,
223
- (t) => DAY_TOKENS.has(t) || WEEKDAY_TOKENS.has(t) || MONTH_TOKENS.has(t) || YEAR_TOKENS.has(t),
224
- DATE_HINTS
225
- );
226
- if (!result.valid) return result;
227
- if (!tokens.some((t) => DAY_TOKENS.has(t))) return invalid("Date format must include a day token (d, dd or do).");
228
- if (!tokens.some((t) => MONTH_TOKENS.has(t))) {
229
- return invalid("Date format must include a month token (M, MM, MMM or MMMM).");
230
- }
231
- if (!tokens.some((t) => YEAR_TOKENS.has(t))) return invalid("Date format must include a year token (yy or yyyy).");
232
- return { valid: true };
233
- }
234
- function validateTimeFormat(value) {
235
- if (!value) return { valid: true };
236
- const { result, tokens } = tokenize(
237
- value,
238
- (t) => HOUR12_TOKENS.has(t) || HOUR24_TOKENS.has(t) || MINUTE_TOKENS.has(t) || SECOND_TOKENS.has(t) || t === MERIDIEM_TOKEN,
239
- TIME_HINTS
240
- );
241
- if (!result.valid) return result;
242
- const hasHour12 = tokens.some((t) => HOUR12_TOKENS.has(t));
243
- const hasHour24 = tokens.some((t) => HOUR24_TOKENS.has(t));
244
- if (!hasHour12 && !hasHour24) return invalid("Time format must include an hour token (h, hh, H or HH).");
245
- if (!tokens.some((t) => MINUTE_TOKENS.has(t))) return invalid("Time format must include a minute token (m or mm).");
246
- const hasMeridiem = tokens.includes(MERIDIEM_TOKEN);
247
- if (hasHour12 && !hasMeridiem) return invalid("12-hour time format requires the meridiem token 'a'.");
248
- if (hasMeridiem && !hasHour12) return invalid("Meridiem token 'a' requires a 12-hour hour token (h or hh).");
249
- return { valid: true };
250
- }
251
7
 
252
- // src/date/duration.ts
253
- var timespanToMilliseconds = (timespan) => {
254
- if (!timespan) return 0;
255
- const [h = "0", m = "0", s = "0"] = timespan.split(":");
256
- const hours = parseInt(h || "0", 10);
257
- const minutes = parseInt(m || "0", 10);
258
- const seconds = parseInt(s || "0", 10);
259
- return (isNaN(hours) ? 0 : hours) * 60 * 60 * 1e3 + (isNaN(minutes) ? 0 : minutes) * 60 * 1e3 + (isNaN(seconds) ? 0 : seconds) * 1e3;
260
- };
261
- var millisecondsToHours = (ms) => ms / MS_PER_HOUR;
262
- var hoursToMilliseconds = (hours) => hours * MS_PER_HOUR;
263
- var formatDuration = (ms) => {
264
- if (ms == null || Number.isNaN(ms) || ms < 0) return "\u2014";
265
- if (ms < MS_PER_MINUTE) return "0m";
266
- const days = Math.floor(ms / MS_PER_DAY);
267
- const hours = Math.floor(ms % MS_PER_DAY / MS_PER_HOUR);
268
- const minutes = Math.floor(ms % MS_PER_HOUR / MS_PER_MINUTE);
269
- const parts = [];
270
- if (days) parts.push(`${days}d`);
271
- if (hours) parts.push(`${hours}h`);
272
- if (minutes) parts.push(`${minutes}m`);
273
- return parts.join(" ");
274
- };
275
- function toHHmm(value, fallback) {
276
- if (!value || value.length < 5) return fallback;
277
- return value.slice(0, 5);
278
- }
279
- function toHHmmss(value) {
280
- const trimmed = value.trim();
281
- if (!trimmed) return null;
282
- return trimmed.length === 5 ? `${trimmed}:00` : trimmed;
283
- }
284
- function dateOnlyToIsoUtc(value) {
285
- if (!value) return void 0;
286
- const parsed = value.includes("T") ? new Date(value) : /* @__PURE__ */ new Date(`${value}T00:00:00Z`);
287
- return Number.isNaN(parsed.getTime()) ? void 0 : parsed.toISOString();
288
- }
289
- function nowLocalDateTimeInputValue() {
290
- return dateFns.format(/* @__PURE__ */ new Date(), "yyyy-MM-dd'T'HH:mm");
291
- }
292
- function localDateTimeInputToIsoUtc(value) {
293
- if (!value) return void 0;
294
- const parsed = new Date(value);
295
- if (!dateFns.isValid(parsed)) return void 0;
296
- return parsed.toISOString();
297
- }
298
- function ensureUtcIso(value) {
299
- return /[Zz]|[+-]\d{2}:?\d{2}$/.test(value) ? value : value + "Z";
300
- }
301
- function isoUtcToLocalDateTimeInput(value, fallback = "") {
302
- if (!value) return fallback;
303
- const parsed = new Date(ensureUtcIso(value));
304
- if (!dateFns.isValid(parsed)) return fallback;
305
- return dateFns.format(parsed, "yyyy-MM-dd'T'HH:mm");
306
- }
307
- var getDateRange = (timePeriod, dateFormat = DATE_FORMAT) => {
308
- const today = /* @__PURE__ */ new Date();
309
- switch (timePeriod) {
310
- case "month":
311
- return { startDate: dateFns.format(dateFns.subMonths(today, 1), dateFormat), endDate: dateFns.format(today, dateFormat) };
312
- case "quarter":
313
- return { startDate: dateFns.format(dateFns.subMonths(today, 3), dateFormat), endDate: dateFns.format(today, dateFormat) };
314
- case "year":
315
- return { startDate: dateFns.format(dateFns.subYears(today, 1), dateFormat), endDate: dateFns.format(today, dateFormat) };
316
- case "week":
317
- default:
318
- return { startDate: dateFns.format(dateFns.subDays(today, 7), dateFormat), endDate: dateFns.format(today, dateFormat) };
319
- }
320
- };
321
- function computeDateRange(days) {
322
- const to = (/* @__PURE__ */ new Date()).toISOString();
323
- const from = new Date(Date.now() - days * 864e5).toISOString();
324
- return { from, to };
325
- }
326
- function currentMonthRangeUtc(today = /* @__PURE__ */ new Date()) {
327
- const year = today.getUTCFullYear();
328
- const month = today.getUTCMonth();
329
- return {
330
- fromUtc: new Date(Date.UTC(year, month, 1)).toISOString(),
331
- beforeUtc: new Date(Date.UTC(year, month + 1, 1)).toISOString()
332
- };
333
- }
334
- function getCurrentOffsetMinutes(iana) {
335
- try {
336
- const parts = new Intl.DateTimeFormat("en", {
337
- timeZone: iana,
338
- timeZoneName: "longOffset"
339
- }).formatToParts(/* @__PURE__ */ new Date());
340
- const label = parts.find((p) => p.type === "timeZoneName")?.value ?? "";
341
- if (label === "GMT" || label === "UTC") return 0;
342
- const m = label.match(/GMT([+-])(\d{2}):(\d{2})/);
343
- if (!m) return null;
344
- const sign = m[1] === "+" ? 1 : -1;
345
- return sign * (parseInt(m[2], 10) * 60 + parseInt(m[3], 10));
346
- } catch {
347
- return null;
348
- }
349
- }
350
-
351
- exports.AUDIT_DATE_FORMAT = AUDIT_DATE_FORMAT;
352
- exports.DATE_FORMAT = DATE_FORMAT;
353
- exports.DAY_DATE_FORMAT = DAY_DATE_FORMAT;
354
- exports.DAY_MONTH_FORMAT = DAY_MONTH_FORMAT;
355
- exports.DAY_MONTH_YEAR_FORMAT = DAY_MONTH_YEAR_FORMAT;
356
- exports.DISPLAY_DATETIME_SLASH_FORMAT = DISPLAY_DATETIME_SLASH_FORMAT;
357
- exports.DISPLAY_DATE_FORMAT = DISPLAY_DATE_FORMAT;
358
- exports.DISPLAY_DATE_SLASH_FORMAT = DISPLAY_DATE_SLASH_FORMAT;
359
- exports.DISPLAY_SHORT_DATE_FORMAT = DISPLAY_SHORT_DATE_FORMAT;
360
- exports.EM_DASH = EM_DASH;
361
- exports.MS_PER_DAY = MS_PER_DAY;
362
- exports.MS_PER_HOUR = MS_PER_HOUR;
363
- exports.MS_PER_MINUTE = MS_PER_MINUTE;
364
- exports.SHORT_DATETIME_FORMAT = SHORT_DATETIME_FORMAT;
365
- exports.TIME_FORMAT = TIME_FORMAT;
366
- exports.addDaysToIsoDate = addDaysToIsoDate;
367
- exports.addYearsToIsoDate = addYearsToIsoDate;
368
- exports.computeDateRange = computeDateRange;
369
- exports.currentMonthRangeUtc = currentMonthRangeUtc;
370
- exports.dateOnlyToIsoUtc = dateOnlyToIsoUtc;
371
- exports.daysBetweenIso = daysBetweenIso;
372
- exports.ensureUtcIso = ensureUtcIso;
373
- exports.formatCompactDateTime = formatCompactDateTime;
374
- exports.formatDate = formatDate;
375
- exports.formatDateSafe = formatDateSafe;
376
- exports.formatDateWithOrdinal = formatDateWithOrdinal;
377
- exports.formatDuration = formatDuration;
378
- exports.formatMonthDay = formatMonthDay;
379
- exports.formatShortDate = formatShortDate;
380
- exports.formatSlashDate = formatSlashDate;
381
- exports.formatTimeAgo = formatTimeAgo;
382
- exports.getCurrentOffsetMinutes = getCurrentOffsetMinutes;
383
- exports.getDateRange = getDateRange;
384
- exports.getMonthEndIso = getMonthEndIso;
385
- exports.getMonthStartIso = getMonthStartIso;
386
- exports.getTodayIsoDate = getTodayIsoDate;
387
- exports.hoursToMilliseconds = hoursToMilliseconds;
388
- exports.isDateOnlyString = isDateOnlyString;
389
- exports.isoUtcToLocalDateTimeInput = isoUtcToLocalDateTimeInput;
390
- exports.localDateTimeInputToIsoUtc = localDateTimeInputToIsoUtc;
391
- exports.millisecondsToHours = millisecondsToHours;
392
- exports.nowLocalDateTimeInputValue = nowLocalDateTimeInputValue;
393
- exports.parseIsoDateLocal = parseIsoDateLocal;
394
- exports.relativeTimePhrase = relativeTimePhrase;
395
- exports.startOfMonthOffset = startOfMonthOffset;
396
- exports.timespanToMilliseconds = timespanToMilliseconds;
397
- exports.toDateOnlyString = toDateOnlyString;
398
- exports.toHHmm = toHHmm;
399
- exports.toHHmmss = toHHmmss;
400
- exports.toIsoDate = toIsoDate;
401
- exports.validateDateFormat = validateDateFormat;
402
- exports.validateTimeFormat = validateTimeFormat;
8
+ Object.defineProperty(exports, "computeDateRange", {
9
+ enumerable: true,
10
+ get: function () { return chunkLT7I4JVK_cjs.computeDateRange; }
11
+ });
12
+ Object.defineProperty(exports, "currentMonthRangeUtc", {
13
+ enumerable: true,
14
+ get: function () { return chunkLT7I4JVK_cjs.currentMonthRangeUtc; }
15
+ });
16
+ Object.defineProperty(exports, "dateOnlyToIsoUtc", {
17
+ enumerable: true,
18
+ get: function () { return chunkLT7I4JVK_cjs.dateOnlyToIsoUtc; }
19
+ });
20
+ Object.defineProperty(exports, "ensureUtcIso", {
21
+ enumerable: true,
22
+ get: function () { return chunkLT7I4JVK_cjs.ensureUtcIso; }
23
+ });
24
+ Object.defineProperty(exports, "formatDuration", {
25
+ enumerable: true,
26
+ get: function () { return chunkLT7I4JVK_cjs.formatDuration; }
27
+ });
28
+ Object.defineProperty(exports, "getCurrentOffsetMinutes", {
29
+ enumerable: true,
30
+ get: function () { return chunkLT7I4JVK_cjs.getCurrentOffsetMinutes; }
31
+ });
32
+ Object.defineProperty(exports, "getDateRange", {
33
+ enumerable: true,
34
+ get: function () { return chunkLT7I4JVK_cjs.getDateRange; }
35
+ });
36
+ Object.defineProperty(exports, "hoursToMilliseconds", {
37
+ enumerable: true,
38
+ get: function () { return chunkLT7I4JVK_cjs.hoursToMilliseconds; }
39
+ });
40
+ Object.defineProperty(exports, "isoUtcToLocalDateTimeInput", {
41
+ enumerable: true,
42
+ get: function () { return chunkLT7I4JVK_cjs.isoUtcToLocalDateTimeInput; }
43
+ });
44
+ Object.defineProperty(exports, "localDateTimeInputToIsoUtc", {
45
+ enumerable: true,
46
+ get: function () { return chunkLT7I4JVK_cjs.localDateTimeInputToIsoUtc; }
47
+ });
48
+ Object.defineProperty(exports, "millisecondsToHours", {
49
+ enumerable: true,
50
+ get: function () { return chunkLT7I4JVK_cjs.millisecondsToHours; }
51
+ });
52
+ Object.defineProperty(exports, "nowLocalDateTimeInputValue", {
53
+ enumerable: true,
54
+ get: function () { return chunkLT7I4JVK_cjs.nowLocalDateTimeInputValue; }
55
+ });
56
+ Object.defineProperty(exports, "timespanToMilliseconds", {
57
+ enumerable: true,
58
+ get: function () { return chunkLT7I4JVK_cjs.timespanToMilliseconds; }
59
+ });
60
+ Object.defineProperty(exports, "toHHmm", {
61
+ enumerable: true,
62
+ get: function () { return chunkLT7I4JVK_cjs.toHHmm; }
63
+ });
64
+ Object.defineProperty(exports, "toHHmmss", {
65
+ enumerable: true,
66
+ get: function () { return chunkLT7I4JVK_cjs.toHHmmss; }
67
+ });
68
+ Object.defineProperty(exports, "AUDIT_DATE_FORMAT", {
69
+ enumerable: true,
70
+ get: function () { return chunkYNBKRMK3_cjs.AUDIT_DATE_FORMAT; }
71
+ });
72
+ Object.defineProperty(exports, "DATE_FORMAT", {
73
+ enumerable: true,
74
+ get: function () { return chunkYNBKRMK3_cjs.DATE_FORMAT; }
75
+ });
76
+ Object.defineProperty(exports, "DAY_DATE_FORMAT", {
77
+ enumerable: true,
78
+ get: function () { return chunkYNBKRMK3_cjs.DAY_DATE_FORMAT; }
79
+ });
80
+ Object.defineProperty(exports, "DAY_MONTH_FORMAT", {
81
+ enumerable: true,
82
+ get: function () { return chunkYNBKRMK3_cjs.DAY_MONTH_FORMAT; }
83
+ });
84
+ Object.defineProperty(exports, "DAY_MONTH_YEAR_FORMAT", {
85
+ enumerable: true,
86
+ get: function () { return chunkYNBKRMK3_cjs.DAY_MONTH_YEAR_FORMAT; }
87
+ });
88
+ Object.defineProperty(exports, "DISPLAY_DATETIME_SLASH_FORMAT", {
89
+ enumerable: true,
90
+ get: function () { return chunkYNBKRMK3_cjs.DISPLAY_DATETIME_SLASH_FORMAT; }
91
+ });
92
+ Object.defineProperty(exports, "DISPLAY_DATE_FORMAT", {
93
+ enumerable: true,
94
+ get: function () { return chunkYNBKRMK3_cjs.DISPLAY_DATE_FORMAT; }
95
+ });
96
+ Object.defineProperty(exports, "DISPLAY_DATE_SLASH_FORMAT", {
97
+ enumerable: true,
98
+ get: function () { return chunkYNBKRMK3_cjs.DISPLAY_DATE_SLASH_FORMAT; }
99
+ });
100
+ Object.defineProperty(exports, "DISPLAY_SHORT_DATE_FORMAT", {
101
+ enumerable: true,
102
+ get: function () { return chunkYNBKRMK3_cjs.DISPLAY_SHORT_DATE_FORMAT; }
103
+ });
104
+ Object.defineProperty(exports, "EM_DASH", {
105
+ enumerable: true,
106
+ get: function () { return chunkYNBKRMK3_cjs.EM_DASH; }
107
+ });
108
+ Object.defineProperty(exports, "MS_PER_DAY", {
109
+ enumerable: true,
110
+ get: function () { return chunkYNBKRMK3_cjs.MS_PER_DAY; }
111
+ });
112
+ Object.defineProperty(exports, "MS_PER_HOUR", {
113
+ enumerable: true,
114
+ get: function () { return chunkYNBKRMK3_cjs.MS_PER_HOUR; }
115
+ });
116
+ Object.defineProperty(exports, "MS_PER_MINUTE", {
117
+ enumerable: true,
118
+ get: function () { return chunkYNBKRMK3_cjs.MS_PER_MINUTE; }
119
+ });
120
+ Object.defineProperty(exports, "SHORT_DATETIME_FORMAT", {
121
+ enumerable: true,
122
+ get: function () { return chunkYNBKRMK3_cjs.SHORT_DATETIME_FORMAT; }
123
+ });
124
+ Object.defineProperty(exports, "TIME_FORMAT", {
125
+ enumerable: true,
126
+ get: function () { return chunkYNBKRMK3_cjs.TIME_FORMAT; }
127
+ });
128
+ Object.defineProperty(exports, "addDaysToIsoDate", {
129
+ enumerable: true,
130
+ get: function () { return chunkYNBKRMK3_cjs.addDaysToIsoDate; }
131
+ });
132
+ Object.defineProperty(exports, "addYearsToIsoDate", {
133
+ enumerable: true,
134
+ get: function () { return chunkYNBKRMK3_cjs.addYearsToIsoDate; }
135
+ });
136
+ Object.defineProperty(exports, "daysBetweenIso", {
137
+ enumerable: true,
138
+ get: function () { return chunkYNBKRMK3_cjs.daysBetweenIso; }
139
+ });
140
+ Object.defineProperty(exports, "formatCompactDateTime", {
141
+ enumerable: true,
142
+ get: function () { return chunkYNBKRMK3_cjs.formatCompactDateTime; }
143
+ });
144
+ Object.defineProperty(exports, "formatDate", {
145
+ enumerable: true,
146
+ get: function () { return chunkYNBKRMK3_cjs.formatDate; }
147
+ });
148
+ Object.defineProperty(exports, "formatDateSafe", {
149
+ enumerable: true,
150
+ get: function () { return chunkYNBKRMK3_cjs.formatDateSafe; }
151
+ });
152
+ Object.defineProperty(exports, "formatDateWithOrdinal", {
153
+ enumerable: true,
154
+ get: function () { return chunkYNBKRMK3_cjs.formatDateWithOrdinal; }
155
+ });
156
+ Object.defineProperty(exports, "formatMonthDay", {
157
+ enumerable: true,
158
+ get: function () { return chunkYNBKRMK3_cjs.formatMonthDay; }
159
+ });
160
+ Object.defineProperty(exports, "formatShortDate", {
161
+ enumerable: true,
162
+ get: function () { return chunkYNBKRMK3_cjs.formatShortDate; }
163
+ });
164
+ Object.defineProperty(exports, "formatSlashDate", {
165
+ enumerable: true,
166
+ get: function () { return chunkYNBKRMK3_cjs.formatSlashDate; }
167
+ });
168
+ Object.defineProperty(exports, "formatTimeAgo", {
169
+ enumerable: true,
170
+ get: function () { return chunkYNBKRMK3_cjs.formatTimeAgo; }
171
+ });
172
+ Object.defineProperty(exports, "getMonthEndIso", {
173
+ enumerable: true,
174
+ get: function () { return chunkYNBKRMK3_cjs.getMonthEndIso; }
175
+ });
176
+ Object.defineProperty(exports, "getMonthStartIso", {
177
+ enumerable: true,
178
+ get: function () { return chunkYNBKRMK3_cjs.getMonthStartIso; }
179
+ });
180
+ Object.defineProperty(exports, "getTodayIsoDate", {
181
+ enumerable: true,
182
+ get: function () { return chunkYNBKRMK3_cjs.getTodayIsoDate; }
183
+ });
184
+ Object.defineProperty(exports, "isDateOnlyString", {
185
+ enumerable: true,
186
+ get: function () { return chunkYNBKRMK3_cjs.isDateOnlyString; }
187
+ });
188
+ Object.defineProperty(exports, "parseIsoDateLocal", {
189
+ enumerable: true,
190
+ get: function () { return chunkYNBKRMK3_cjs.parseIsoDateLocal; }
191
+ });
192
+ Object.defineProperty(exports, "relativeTimePhrase", {
193
+ enumerable: true,
194
+ get: function () { return chunkYNBKRMK3_cjs.relativeTimePhrase; }
195
+ });
196
+ Object.defineProperty(exports, "startOfMonthOffset", {
197
+ enumerable: true,
198
+ get: function () { return chunkYNBKRMK3_cjs.startOfMonthOffset; }
199
+ });
200
+ Object.defineProperty(exports, "toDateOnlyString", {
201
+ enumerable: true,
202
+ get: function () { return chunkYNBKRMK3_cjs.toDateOnlyString; }
203
+ });
204
+ Object.defineProperty(exports, "toIsoDate", {
205
+ enumerable: true,
206
+ get: function () { return chunkYNBKRMK3_cjs.toIsoDate; }
207
+ });
208
+ Object.defineProperty(exports, "validateDateFormat", {
209
+ enumerable: true,
210
+ get: function () { return chunkYNBKRMK3_cjs.validateDateFormat; }
211
+ });
212
+ Object.defineProperty(exports, "validateTimeFormat", {
213
+ enumerable: true,
214
+ get: function () { return chunkYNBKRMK3_cjs.validateTimeFormat; }
215
+ });
403
216
  //# sourceMappingURL=index.cjs.map
404
217
  //# sourceMappingURL=index.cjs.map