@sprawlify/primitives 0.0.111 → 0.0.113

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 (114) hide show
  1. package/dist/collection.d.cts +2 -2
  2. package/dist/collection.d.mts +2 -2
  3. package/dist/{date-utils-Dz9DZPcZ.cjs → date-utils-B-dqorZV.cjs} +48 -13
  4. package/dist/{date-utils-BqOQP2-U.mjs → date-utils-BdeeOQRI.mjs} +43 -14
  5. package/dist/date-utils.cjs +2 -1
  6. package/dist/date-utils.d.cts +6 -5
  7. package/dist/date-utils.d.mts +2 -2
  8. package/dist/date-utils.mjs +2 -2
  9. package/dist/{focus-visible-GXKbbuiq.mjs → focus-visible-BuLf8M9F.mjs} +10 -9
  10. package/dist/{focus-visible-JdJXqMic.cjs → focus-visible-Co_9bW09.cjs} +14 -7
  11. package/dist/focus-visible.cjs +2 -1
  12. package/dist/focus-visible.d.cts +2 -1
  13. package/dist/focus-visible.d.mts +2 -1
  14. package/dist/focus-visible.mjs +2 -2
  15. package/dist/{index-6cEVkXqi.d.mts → index-BfUngXif.d.mts} +6 -5
  16. package/dist/{list-collection-Cjgbx_9l.d.cts → list-collection-B_8BN0XB.d.cts} +1 -1
  17. package/dist/{list-collection-IF510iNl.d.mts → list-collection-DkRA5LOq.d.mts} +1 -1
  18. package/dist/machines/accordion/index.d.cts +1 -1
  19. package/dist/machines/accordion/index.d.mts +1 -1
  20. package/dist/machines/angle-slider/index.cjs +64 -24
  21. package/dist/machines/angle-slider/index.d.cts +1 -1
  22. package/dist/machines/angle-slider/index.d.mts +1 -1
  23. package/dist/machines/angle-slider/index.mjs +65 -25
  24. package/dist/machines/carousel/index.d.cts +1 -1
  25. package/dist/machines/carousel/index.d.mts +1 -1
  26. package/dist/machines/cascade-select/index.cjs +50 -20
  27. package/dist/machines/cascade-select/index.d.cts +13 -10
  28. package/dist/machines/cascade-select/index.d.mts +13 -10
  29. package/dist/machines/cascade-select/index.mjs +50 -20
  30. package/dist/machines/checkbox/index.cjs +1 -1
  31. package/dist/machines/checkbox/index.mjs +1 -1
  32. package/dist/machines/clipboard/index.d.cts +1 -1
  33. package/dist/machines/clipboard/index.d.mts +1 -1
  34. package/dist/machines/collapsible/index.d.cts +1 -1
  35. package/dist/machines/collapsible/index.d.mts +1 -1
  36. package/dist/machines/color-picker/index.d.cts +1 -1
  37. package/dist/machines/color-picker/index.d.mts +1 -1
  38. package/dist/machines/combobox/index.cjs +21 -13
  39. package/dist/machines/combobox/index.d.cts +2 -2
  40. package/dist/machines/combobox/index.d.mts +2 -2
  41. package/dist/machines/combobox/index.mjs +21 -13
  42. package/dist/machines/date-picker/index.cjs +46 -25
  43. package/dist/machines/date-picker/index.d.cts +3 -2
  44. package/dist/machines/date-picker/index.d.mts +4 -3
  45. package/dist/machines/date-picker/index.mjs +47 -26
  46. package/dist/machines/dialog/index.d.cts +1 -1
  47. package/dist/machines/dialog/index.d.mts +1 -1
  48. package/dist/machines/drawer/index.d.cts +1 -1
  49. package/dist/machines/drawer/index.d.mts +1 -1
  50. package/dist/machines/dropdown-menu/index.cjs +7 -2
  51. package/dist/machines/dropdown-menu/index.d.cts +1 -1
  52. package/dist/machines/dropdown-menu/index.d.mts +1 -1
  53. package/dist/machines/dropdown-menu/index.mjs +7 -2
  54. package/dist/machines/editable/index.d.cts +1 -1
  55. package/dist/machines/editable/index.d.mts +1 -1
  56. package/dist/machines/file-upload/index.d.cts +1 -1
  57. package/dist/machines/file-upload/index.d.mts +1 -1
  58. package/dist/machines/floating-panel/index.d.cts +1 -1
  59. package/dist/machines/floating-panel/index.d.mts +1 -1
  60. package/dist/machines/hover-card/index.d.cts +1 -1
  61. package/dist/machines/hover-card/index.d.mts +1 -1
  62. package/dist/machines/listbox/index.cjs +1 -1
  63. package/dist/machines/listbox/index.d.cts +3 -3
  64. package/dist/machines/listbox/index.d.mts +3 -3
  65. package/dist/machines/listbox/index.mjs +1 -1
  66. package/dist/machines/marquee/index.d.cts +3 -3
  67. package/dist/machines/marquee/index.d.mts +3 -3
  68. package/dist/machines/navigation-menu/index.d.cts +1 -1
  69. package/dist/machines/navigation-menu/index.d.mts +1 -1
  70. package/dist/machines/number-input/index.d.cts +1 -1
  71. package/dist/machines/number-input/index.d.mts +1 -1
  72. package/dist/machines/password-input/index.d.cts +1 -1
  73. package/dist/machines/password-input/index.d.mts +1 -1
  74. package/dist/machines/popover/index.d.cts +1 -1
  75. package/dist/machines/popover/index.d.mts +1 -1
  76. package/dist/machines/progress/index.d.cts +1 -1
  77. package/dist/machines/progress/index.d.mts +1 -1
  78. package/dist/machines/radio-group/index.cjs +1 -1
  79. package/dist/machines/radio-group/index.d.cts +1 -1
  80. package/dist/machines/radio-group/index.d.mts +1 -1
  81. package/dist/machines/radio-group/index.mjs +1 -1
  82. package/dist/machines/scroll-area/index.d.cts +1 -1
  83. package/dist/machines/scroll-area/index.d.mts +1 -1
  84. package/dist/machines/select/index.cjs +7 -2
  85. package/dist/machines/select/index.d.cts +2 -2
  86. package/dist/machines/select/index.d.mts +2 -2
  87. package/dist/machines/select/index.mjs +7 -2
  88. package/dist/machines/slider/index.d.cts +1 -1
  89. package/dist/machines/slider/index.d.mts +1 -1
  90. package/dist/machines/steps/index.d.cts +1 -1
  91. package/dist/machines/steps/index.d.mts +1 -1
  92. package/dist/machines/switch/index.cjs +1 -1
  93. package/dist/machines/switch/index.d.cts +1 -1
  94. package/dist/machines/switch/index.d.mts +1 -1
  95. package/dist/machines/switch/index.mjs +1 -1
  96. package/dist/machines/tabs/index.d.cts +1 -1
  97. package/dist/machines/tabs/index.d.mts +1 -1
  98. package/dist/machines/tags-input/index.d.cts +1 -1
  99. package/dist/machines/tags-input/index.d.mts +1 -1
  100. package/dist/machines/timer/index.d.cts +1 -1
  101. package/dist/machines/timer/index.d.mts +1 -1
  102. package/dist/machines/toast/index.d.cts +3 -3
  103. package/dist/machines/toast/index.d.mts +3 -3
  104. package/dist/machines/tooltip/index.cjs +6 -6
  105. package/dist/machines/tooltip/index.d.cts +1 -1
  106. package/dist/machines/tooltip/index.d.mts +1 -1
  107. package/dist/machines/tooltip/index.mjs +7 -7
  108. package/dist/machines/tour/index.d.cts +1 -1
  109. package/dist/machines/tour/index.d.mts +1 -1
  110. package/dist/machines/tree-view/index.d.cts +1 -1
  111. package/dist/machines/tree-view/index.d.mts +1 -1
  112. package/dist/{selection-BmS2RDMq.d.cts → selection-Bb_ZSVxe.d.cts} +1 -1
  113. package/dist/{selection-6urf-c8j.d.mts → selection-DdNvrKbj.d.mts} +1 -1
  114. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-D-7AMgSE.cjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-Cjgbx_9l.cjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-BmS2RDMq.cjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-B_8BN0XB.cjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-Bb_ZSVxe.cjs";
4
4
  import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-DlqV5kYO.cjs";
5
5
  export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -1,5 +1,5 @@
1
1
  import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-9uw8LHpE.mjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-IF510iNl.mjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-6urf-c8j.mjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-DkRA5LOq.mjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-DdNvrKbj.mjs";
4
4
  import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-Dlf9EUrT.mjs";
5
5
  export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -90,27 +90,32 @@ function getEndDate(startDate, duration) {
90
90
  //#endregion
91
91
  //#region src/shared/date-utils/get-era-format.ts
92
92
  function getEraFormat(date) {
93
- return date?.calendar.identifier === "gregory" && date.era === "BC" ? "short" : void 0;
93
+ if (!date) return void 0;
94
+ const id = date.calendar.identifier;
95
+ if (id === "gregory" || id === "iso8601") return date.era === "BC" ? "short" : void 0;
96
+ return "short";
94
97
  }
95
98
  //#endregion
96
99
  //#region src/shared/date-utils/formatter.ts
97
- function getDayFormatter(locale, timeZone) {
100
+ function getDayFormatter(locale, timeZone, referenceDate) {
101
+ const date = referenceDate ?? (0, _internationalized_date.toCalendarDateTime)((0, _internationalized_date.today)(timeZone));
98
102
  return new _internationalized_date.DateFormatter(locale, {
99
103
  weekday: "long",
100
104
  month: "long",
101
105
  year: "numeric",
102
106
  day: "numeric",
103
- era: getEraFormat((0, _internationalized_date.toCalendarDateTime)((0, _internationalized_date.today)(timeZone))),
107
+ era: getEraFormat(date),
108
+ calendar: date.calendar.identifier,
104
109
  timeZone
105
110
  });
106
111
  }
107
- function getMonthFormatter(locale, timeZone) {
108
- const date = (0, _internationalized_date.today)(timeZone);
112
+ function getMonthFormatter(locale, timeZone, referenceDate) {
113
+ const date = referenceDate ?? (0, _internationalized_date.today)(timeZone);
109
114
  return new _internationalized_date.DateFormatter(locale, {
110
115
  month: "long",
111
116
  year: "numeric",
112
117
  era: getEraFormat(date),
113
- calendar: date?.calendar.identifier,
118
+ calendar: date.calendar.identifier,
114
119
  timeZone
115
120
  });
116
121
  }
@@ -214,12 +219,25 @@ function getWeekDays(date, startOfWeekProp, timeZone, locale) {
214
219
  const format = getWeekdayFormats(locale, timeZone);
215
220
  return weeks.map((index) => format(firstDayOfWeek.add({ days: index })));
216
221
  }
217
- function getMonthNames(locale, format = "long") {
218
- const date = new Date(2021, 0, 1);
222
+ function getMonthNames(locale, format = "long", referenceDate) {
223
+ if (!referenceDate || referenceDate.calendar.identifier === "gregory" || referenceDate.calendar.identifier === "iso8601") {
224
+ const date = new Date(2021, 0, 1);
225
+ const monthNames = [];
226
+ for (let i = 0; i < 12; i++) {
227
+ monthNames.push(date.toLocaleString(locale, { month: format }));
228
+ date.setMonth(date.getMonth() + 1);
229
+ }
230
+ return monthNames;
231
+ }
232
+ const monthCount = referenceDate.calendar.getMonthsInYear(referenceDate);
233
+ const formatter = new _internationalized_date.DateFormatter(locale, {
234
+ month: format,
235
+ calendar: referenceDate.calendar.identifier
236
+ });
219
237
  const monthNames = [];
220
- for (let i = 0; i < 12; i++) {
221
- monthNames.push(date.toLocaleString(locale, { month: format }));
222
- date.setMonth(date.getMonth() + 1);
238
+ for (let month = 1; month <= monthCount; month++) {
239
+ const d = referenceDate.set({ month });
240
+ monthNames.push(formatter.format(d.toDate("UTC")));
223
241
  }
224
242
  return monthNames;
225
243
  }
@@ -248,6 +266,15 @@ function getYearsRange(range) {
248
266
  for (let year = range.from; year <= range.to; year += 1) years.push(year);
249
267
  return years;
250
268
  }
269
+ const DEFAULT_MIN_YEAR = 1900;
270
+ const DEFAULT_MAX_YEAR = 2099;
271
+ function getDefaultYearRange(referenceDate, min, max) {
272
+ const calendar = referenceDate.calendar;
273
+ return {
274
+ from: min?.year ?? (0, _internationalized_date.toCalendar)(new _internationalized_date.CalendarDate(DEFAULT_MIN_YEAR, 1, 1), calendar).year,
275
+ to: max?.year ?? (0, _internationalized_date.toCalendar)(new _internationalized_date.CalendarDate(DEFAULT_MAX_YEAR, 12, 31), calendar).year
276
+ };
277
+ }
251
278
  const FUTURE_YEAR_COERCION = 10;
252
279
  function normalizeYear(year) {
253
280
  if (!year) return;
@@ -271,8 +298,10 @@ function getDecadeRange(year, opts) {
271
298
  }
272
299
  //#endregion
273
300
  //#region src/shared/date-utils/mutation.ts
274
- function getTodayDate(timeZone) {
275
- return (0, _internationalized_date.today)(timeZone ?? (0, _internationalized_date.getLocalTimeZone)());
301
+ function getTodayDate(timeZone, calendar) {
302
+ const tod = (0, _internationalized_date.today)(timeZone ?? (0, _internationalized_date.getLocalTimeZone)());
303
+ if (calendar) return (0, _internationalized_date.toCalendar)(tod, calendar);
304
+ return tod;
276
305
  }
277
306
  function setCalendar(date, calendar) {
278
307
  return (0, _internationalized_date.toCalendar)((0, _internationalized_date.toCalendarDateTime)(date), calendar);
@@ -565,6 +594,12 @@ Object.defineProperty(exports, "getDecadeRange", {
565
594
  return getDecadeRange;
566
595
  }
567
596
  });
597
+ Object.defineProperty(exports, "getDefaultYearRange", {
598
+ enumerable: true,
599
+ get: function() {
600
+ return getDefaultYearRange;
601
+ }
602
+ });
568
603
  Object.defineProperty(exports, "getEndDate", {
569
604
  enumerable: true,
570
605
  get: function() {
@@ -89,27 +89,32 @@ function getEndDate(startDate, duration) {
89
89
  //#endregion
90
90
  //#region src/shared/date-utils/get-era-format.ts
91
91
  function getEraFormat(date) {
92
- return date?.calendar.identifier === "gregory" && date.era === "BC" ? "short" : void 0;
92
+ if (!date) return void 0;
93
+ const id = date.calendar.identifier;
94
+ if (id === "gregory" || id === "iso8601") return date.era === "BC" ? "short" : void 0;
95
+ return "short";
93
96
  }
94
97
  //#endregion
95
98
  //#region src/shared/date-utils/formatter.ts
96
- function getDayFormatter(locale, timeZone) {
99
+ function getDayFormatter(locale, timeZone, referenceDate) {
100
+ const date = referenceDate ?? toCalendarDateTime(today(timeZone));
97
101
  return new DateFormatter(locale, {
98
102
  weekday: "long",
99
103
  month: "long",
100
104
  year: "numeric",
101
105
  day: "numeric",
102
- era: getEraFormat(toCalendarDateTime(today(timeZone))),
106
+ era: getEraFormat(date),
107
+ calendar: date.calendar.identifier,
103
108
  timeZone
104
109
  });
105
110
  }
106
- function getMonthFormatter(locale, timeZone) {
107
- const date = today(timeZone);
111
+ function getMonthFormatter(locale, timeZone, referenceDate) {
112
+ const date = referenceDate ?? today(timeZone);
108
113
  return new DateFormatter(locale, {
109
114
  month: "long",
110
115
  year: "numeric",
111
116
  era: getEraFormat(date),
112
- calendar: date?.calendar.identifier,
117
+ calendar: date.calendar.identifier,
113
118
  timeZone
114
119
  });
115
120
  }
@@ -213,12 +218,25 @@ function getWeekDays(date, startOfWeekProp, timeZone, locale) {
213
218
  const format = getWeekdayFormats(locale, timeZone);
214
219
  return weeks.map((index) => format(firstDayOfWeek.add({ days: index })));
215
220
  }
216
- function getMonthNames(locale, format = "long") {
217
- const date = new Date(2021, 0, 1);
221
+ function getMonthNames(locale, format = "long", referenceDate) {
222
+ if (!referenceDate || referenceDate.calendar.identifier === "gregory" || referenceDate.calendar.identifier === "iso8601") {
223
+ const date = new Date(2021, 0, 1);
224
+ const monthNames = [];
225
+ for (let i = 0; i < 12; i++) {
226
+ monthNames.push(date.toLocaleString(locale, { month: format }));
227
+ date.setMonth(date.getMonth() + 1);
228
+ }
229
+ return monthNames;
230
+ }
231
+ const monthCount = referenceDate.calendar.getMonthsInYear(referenceDate);
232
+ const formatter = new DateFormatter(locale, {
233
+ month: format,
234
+ calendar: referenceDate.calendar.identifier
235
+ });
218
236
  const monthNames = [];
219
- for (let i = 0; i < 12; i++) {
220
- monthNames.push(date.toLocaleString(locale, { month: format }));
221
- date.setMonth(date.getMonth() + 1);
237
+ for (let month = 1; month <= monthCount; month++) {
238
+ const d = referenceDate.set({ month });
239
+ monthNames.push(formatter.format(d.toDate("UTC")));
222
240
  }
223
241
  return monthNames;
224
242
  }
@@ -247,6 +265,15 @@ function getYearsRange(range) {
247
265
  for (let year = range.from; year <= range.to; year += 1) years.push(year);
248
266
  return years;
249
267
  }
268
+ const DEFAULT_MIN_YEAR = 1900;
269
+ const DEFAULT_MAX_YEAR = 2099;
270
+ function getDefaultYearRange(referenceDate, min, max) {
271
+ const calendar = referenceDate.calendar;
272
+ return {
273
+ from: min?.year ?? toCalendar(new CalendarDate(DEFAULT_MIN_YEAR, 1, 1), calendar).year,
274
+ to: max?.year ?? toCalendar(new CalendarDate(DEFAULT_MAX_YEAR, 12, 31), calendar).year
275
+ };
276
+ }
250
277
  const FUTURE_YEAR_COERCION = 10;
251
278
  function normalizeYear(year) {
252
279
  if (!year) return;
@@ -270,8 +297,10 @@ function getDecadeRange(year, opts) {
270
297
  }
271
298
  //#endregion
272
299
  //#region src/shared/date-utils/mutation.ts
273
- function getTodayDate(timeZone) {
274
- return today(timeZone ?? getLocalTimeZone());
300
+ function getTodayDate(timeZone, calendar) {
301
+ const tod = today(timeZone ?? getLocalTimeZone());
302
+ if (calendar) return toCalendar(tod, calendar);
303
+ return tod;
275
304
  }
276
305
  function setCalendar(date, calendar) {
277
306
  return toCalendar(toCalendarDateTime(date), calendar);
@@ -474,4 +503,4 @@ function getDateRangePreset(preset, locale, timeZone) {
474
503
  }
475
504
  }
476
505
  //#endregion
477
- export { getDayFormatter as A, alignStartDate as B, getStartOfWeek as C, formatRange as D, getWeekdayFormats as E, isDateOutsideRange as F, constrainValue as G, alignEnd as H, isDateUnavailable as I, isNextRangeInvalid as L, getEndDate as M, getUnitDuration as N, formatSelectedDate as O, isDateEqual as P, isPreviousRangeInvalid as R, getMonthNames as S, getWeekOfYear as T, alignStart as U, alignCenter as V, constrainStart as W, getYearsRange as _, getNextRow as a, getEndOfWeek as b, getPreviousRow as c, getSectionStart as d, getPreviousAvailableDate as f, getDecadeRange as g, setDate as h, getNextPage as i, getMonthFormatter as j, formatVisibleRange as k, getPreviousSection as l, setCalendar as m, parseDateString as n, getNextSection as o, getTodayDate as p, getAdjustedDateFn as r, getPreviousPage as s, getDateRangePreset as t, getSectionEnd as u, normalizeYear as v, getWeekDays as w, getMonthDays as x, getDaysInWeek as y, alignDate as z };
506
+ export { formatVisibleRange as A, alignDate as B, getMonthNames as C, getWeekdayFormats as D, getWeekOfYear as E, isDateEqual as F, constrainStart as G, alignCenter as H, isDateOutsideRange as I, constrainValue as K, isDateUnavailable as L, getMonthFormatter as M, getEndDate as N, formatRange as O, getUnitDuration as P, isNextRangeInvalid as R, getMonthDays as S, getWeekDays as T, alignEnd as U, alignStartDate as V, alignStart as W, getDefaultYearRange as _, getNextRow as a, getDaysInWeek as b, getPreviousRow as c, getSectionStart as d, getPreviousAvailableDate as f, getDecadeRange as g, setDate as h, getNextPage as i, getDayFormatter as j, formatSelectedDate as k, getPreviousSection as l, setCalendar as m, parseDateString as n, getNextSection as o, getTodayDate as p, getAdjustedDateFn as r, getPreviousPage as s, getDateRangePreset as t, getSectionEnd as u, getYearsRange as v, getStartOfWeek as w, getEndOfWeek as x, normalizeYear as y, isPreviousRangeInvalid as z };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_date_utils = require("./date-utils-Dz9DZPcZ.cjs");
2
+ const require_date_utils = require("./date-utils-B-dqorZV.cjs");
3
3
  exports.alignCenter = require_date_utils.alignCenter;
4
4
  exports.alignDate = require_date_utils.alignDate;
5
5
  exports.alignEnd = require_date_utils.alignEnd;
@@ -15,6 +15,7 @@ exports.getDateRangePreset = require_date_utils.getDateRangePreset;
15
15
  exports.getDayFormatter = require_date_utils.getDayFormatter;
16
16
  exports.getDaysInWeek = require_date_utils.getDaysInWeek;
17
17
  exports.getDecadeRange = require_date_utils.getDecadeRange;
18
+ exports.getDefaultYearRange = require_date_utils.getDefaultYearRange;
18
19
  exports.getEndDate = require_date_utils.getEndDate;
19
20
  exports.getEndOfWeek = require_date_utils.getEndOfWeek;
20
21
  exports.getMonthDays = require_date_utils.getMonthDays;
@@ -35,8 +35,8 @@ declare function formatSelectedDate(startDate: DateValue | null | undefined, end
35
35
  declare function formatVisibleRange(startDate: DateValue, endDate: DateValue | null, locale: string, timeZone: string): string;
36
36
  //#endregion
37
37
  //#region src/shared/date-utils/formatter.d.ts
38
- declare function getDayFormatter(locale: string, timeZone: string): DateFormatter;
39
- declare function getMonthFormatter(locale: string, timeZone: string): DateFormatter;
38
+ declare function getDayFormatter(locale: string, timeZone: string, referenceDate?: DateValue$1): DateFormatter;
39
+ declare function getMonthFormatter(locale: string, timeZone: string, referenceDate?: DateValue$1): DateFormatter;
40
40
  //#endregion
41
41
  //#region src/shared/date-utils/date-month.d.ts
42
42
  declare function getStartOfWeek(date: DateValue$1, locale: string, firstDayOfWeek?: number): DateValue$1;
@@ -55,7 +55,7 @@ declare function getWeekDays(date: DateValue$1, startOfWeekProp: number | undefi
55
55
  long: string;
56
56
  narrow: string;
57
57
  }[];
58
- declare function getMonthNames(locale: string, format?: Intl.DateTimeFormatOptions["month"]): string[];
58
+ declare function getMonthNames(locale: string, format?: Intl.DateTimeFormatOptions["month"], referenceDate?: DateValue$1): string[];
59
59
  declare function getWeekOfYear(date: DateValue$1, locale: string): number;
60
60
  //#endregion
61
61
  //#region src/shared/date-utils/date-year.d.ts
@@ -64,13 +64,14 @@ interface YearsRange {
64
64
  to: number;
65
65
  }
66
66
  declare function getYearsRange(range: YearsRange): number[];
67
+ declare function getDefaultYearRange(referenceDate: DateValue$1, min?: DateValue$1, max?: DateValue$1): YearsRange;
67
68
  declare function normalizeYear(year: string | null | undefined): string | undefined;
68
69
  declare function getDecadeRange(year: number, opts?: {
69
70
  strict?: boolean;
70
71
  }): number[];
71
72
  //#endregion
72
73
  //#region src/shared/date-utils/mutation.d.ts
73
- declare function getTodayDate(timeZone?: string): _internationalized_date0.CalendarDate;
74
+ declare function getTodayDate(timeZone?: string, calendar?: Calendar): _internationalized_date0.CalendarDate;
74
75
  declare function setCalendar(date: DateValue$1, calendar: Calendar): _internationalized_date0.CalendarDateTime;
75
76
  declare function setDate(date: DateValue$1, startDate: DateValue$1, isDateUnavailable: DateAvailableFn, locale: string, minValue: DateValue$1, maxValue: DateValue$1): DateValue$1 | undefined;
76
77
  declare function getPreviousAvailableDate(date: DateValue$1, minValue: DateValue$1, locale: string, isDateUnavailable?: DateAvailableFn): DateValue$1 | undefined;
@@ -99,4 +100,4 @@ declare function parseDateString(date: string, locale: string, timeZone: string)
99
100
  //#region src/shared/date-utils/preset.d.ts
100
101
  declare function getDateRangePreset(preset: DateRangePreset, locale: string, timeZone: string): [DateValue$1, DateValue$1];
101
102
  //#endregion
102
- export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, DateValue, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekOfYear, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
103
+ export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, DateValue, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getDefaultYearRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekOfYear, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
@@ -1,2 +1,2 @@
1
- import { A as getDayFormatter, B as constrainStart, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getEndDate, G as isNextRangeInvalid, H as isDateEqual, I as getUnitDuration, J as alignStartDate, K as isPreviousRangeInvalid, L as alignCenter, M as formatRange, N as formatSelectedDate, O as getWeekOfYear, P as formatVisibleRange, Q as DateValue, R as alignEnd, S as getDaysInWeek, T as getMonthNames, U as isDateOutsideRange, V as constrainValue, W as isDateUnavailable, X as DateGranularity, Y as DateAdjustFn, Z as DateRangePreset, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as getMonthFormatter, k as getWeekdayFormats, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as alignStart } from "./index-6cEVkXqi.mjs";
2
- export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, DateValue, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekOfYear, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
1
+ import { $ as DateValue, A as getWeekdayFormats, B as alignStart, C as getDaysInWeek, D as getStartOfWeek, E as getMonthNames, F as formatVisibleRange, G as isDateUnavailable, H as constrainValue, I as getEndDate, J as alignDate, K as isNextRangeInvalid, L as getUnitDuration, M as getMonthFormatter, N as formatRange, O as getWeekDays, P as formatSelectedDate, Q as DateRangePreset, R as alignCenter, S as normalizeYear, T as getMonthDays, U as isDateEqual, V as constrainStart, W as isDateOutsideRange, X as DateAdjustFn, Y as alignStartDate, Z as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getDefaultYearRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as getDayFormatter, k as getWeekOfYear, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as isPreviousRangeInvalid, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getEndOfWeek, x as getYearsRange, y as getDecadeRange, z as alignEnd } from "./index-BfUngXif.mjs";
2
+ export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, DateValue, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getDefaultYearRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekOfYear, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
@@ -1,2 +1,2 @@
1
- import { A as getDayFormatter, B as alignStartDate, C as getStartOfWeek, D as formatRange, E as getWeekdayFormats, F as isDateOutsideRange, G as constrainValue, H as alignEnd, I as isDateUnavailable, L as isNextRangeInvalid, M as getEndDate, N as getUnitDuration, O as formatSelectedDate, P as isDateEqual, R as isPreviousRangeInvalid, S as getMonthNames, T as getWeekOfYear, U as alignStart, V as alignCenter, W as constrainStart, _ as getYearsRange, a as getNextRow, b as getEndOfWeek, c as getPreviousRow, d as getSectionStart, f as getPreviousAvailableDate, g as getDecadeRange, h as setDate, i as getNextPage, j as getMonthFormatter, k as formatVisibleRange, l as getPreviousSection, m as setCalendar, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, u as getSectionEnd, v as normalizeYear, w as getWeekDays, x as getMonthDays, y as getDaysInWeek, z as alignDate } from "./date-utils-BqOQP2-U.mjs";
2
- export { alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekOfYear, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
1
+ import { A as formatVisibleRange, B as alignDate, C as getMonthNames, D as getWeekdayFormats, E as getWeekOfYear, F as isDateEqual, G as constrainStart, H as alignCenter, I as isDateOutsideRange, K as constrainValue, L as isDateUnavailable, M as getMonthFormatter, N as getEndDate, O as formatRange, P as getUnitDuration, R as isNextRangeInvalid, S as getMonthDays, T as getWeekDays, U as alignEnd, V as alignStartDate, W as alignStart, _ as getDefaultYearRange, a as getNextRow, b as getDaysInWeek, c as getPreviousRow, d as getSectionStart, f as getPreviousAvailableDate, g as getDecadeRange, h as setDate, i as getNextPage, j as getDayFormatter, k as formatSelectedDate, l as getPreviousSection, m as setCalendar, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, u as getSectionEnd, v as getYearsRange, w as getStartOfWeek, x as getEndOfWeek, y as normalizeYear, z as isPreviousRangeInvalid } from "./date-utils-BdeeOQRI.mjs";
2
+ export { alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getDefaultYearRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekOfYear, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
@@ -1,4 +1,4 @@
1
- import { Bt as isMac, Ot as isVirtualClick, ht as getEventTarget, on as getWindow, tn as getDocument } from "./dom-query-BFuRs3l4.mjs";
1
+ import { Bt as isMac, Ot as isVirtualClick, en as getActiveElement, ht as getEventTarget, on as getWindow, tn as getDocument } from "./dom-query-BFuRs3l4.mjs";
2
2
  //#region src/shared/focus-visible/index.ts
3
3
  function isValidKey(e) {
4
4
  return !(e.metaKey || !isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
@@ -15,9 +15,11 @@ const nonTextInputTypes = new Set([
15
15
  "reset"
16
16
  ]);
17
17
  function isKeyboardFocusEvent(isTextInput, modality, e) {
18
- const target = e ? getEventTarget(e) : null;
19
- const win = getWindow(target);
20
- isTextInput = isTextInput || target instanceof win.HTMLInputElement && !nonTextInputTypes.has(target?.type) || target instanceof win.HTMLTextAreaElement || target instanceof win.HTMLElement && target.isContentEditable;
18
+ const eventTarget = e ? getEventTarget(e) : null;
19
+ const doc = getDocument(eventTarget);
20
+ const win = getWindow(eventTarget);
21
+ const activeElement = getActiveElement(doc);
22
+ isTextInput = isTextInput || activeElement instanceof win.HTMLInputElement && !nonTextInputTypes.has(activeElement?.type) || activeElement instanceof win.HTMLTextAreaElement || activeElement instanceof win.HTMLElement && activeElement.isContentEditable;
21
23
  return !(isTextInput && modality === "keyboard" && e instanceof win.KeyboardEvent && !Reflect.has(FOCUS_VISIBLE_INPUT_KEYS, e.key));
22
24
  }
23
25
  let currentModality = null;
@@ -25,6 +27,7 @@ let changeHandlers = /* @__PURE__ */ new Set();
25
27
  let listenerMap = /* @__PURE__ */ new Map();
26
28
  let hasEventBeforeFocus = false;
27
29
  let hasBlurredWindowRecently = false;
30
+ let ignoreFocusEvent = false;
28
31
  const FOCUS_VISIBLE_INPUT_KEYS = {
29
32
  Tab: true,
30
33
  Escape: true
@@ -54,7 +57,7 @@ function handleClickEvent(e) {
54
57
  }
55
58
  function handleFocusEvent(e) {
56
59
  const target = getEventTarget(e);
57
- if (target === getWindow(target) || target === getDocument(target)) return;
60
+ if (target === getWindow(target) || target === getDocument(target) || !e.isTrusted) return;
58
61
  if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {
59
62
  currentModality = "virtual";
60
63
  triggerChangeHandlers("virtual", e);
@@ -72,8 +75,6 @@ function setupGlobalFocusEvents(root) {
72
75
  const doc = getDocument(root);
73
76
  let focus = win.HTMLElement.prototype.focus;
74
77
  function patchedFocus() {
75
- currentModality = "virtual";
76
- triggerChangeHandlers("virtual", null);
77
78
  hasEventBeforeFocus = true;
78
79
  focus.apply(this, arguments);
79
80
  }
@@ -148,7 +149,7 @@ function trackInteractionModality(props) {
148
149
  };
149
150
  }
150
151
  function isFocusVisible() {
151
- return currentModality === "keyboard";
152
+ return currentModality === "keyboard" || currentModality === "virtual";
152
153
  }
153
154
  function trackFocusVisible(props = {}) {
154
155
  const { isTextInput, autoFocus, onChange, root } = props;
@@ -170,4 +171,4 @@ function trackFocusVisible(props = {}) {
170
171
  };
171
172
  }
172
173
  //#endregion
173
- export { trackFocusVisible as a, setInteractionModality as i, isFocusVisible as n, trackInteractionModality as o, listenerMap as r, getInteractionModality as t };
174
+ export { setInteractionModality as a, listenerMap as i, ignoreFocusEvent as n, trackFocusVisible as o, isFocusVisible as r, trackInteractionModality as s, getInteractionModality as t };
@@ -15,9 +15,11 @@ const nonTextInputTypes = new Set([
15
15
  "reset"
16
16
  ]);
17
17
  function isKeyboardFocusEvent(isTextInput, modality, e) {
18
- const target = e ? require_dom_query.getEventTarget(e) : null;
19
- const win = require_dom_query.getWindow(target);
20
- isTextInput = isTextInput || target instanceof win.HTMLInputElement && !nonTextInputTypes.has(target?.type) || target instanceof win.HTMLTextAreaElement || target instanceof win.HTMLElement && target.isContentEditable;
18
+ const eventTarget = e ? require_dom_query.getEventTarget(e) : null;
19
+ const doc = require_dom_query.getDocument(eventTarget);
20
+ const win = require_dom_query.getWindow(eventTarget);
21
+ const activeElement = require_dom_query.getActiveElement(doc);
22
+ isTextInput = isTextInput || activeElement instanceof win.HTMLInputElement && !nonTextInputTypes.has(activeElement?.type) || activeElement instanceof win.HTMLTextAreaElement || activeElement instanceof win.HTMLElement && activeElement.isContentEditable;
21
23
  return !(isTextInput && modality === "keyboard" && e instanceof win.KeyboardEvent && !Reflect.has(FOCUS_VISIBLE_INPUT_KEYS, e.key));
22
24
  }
23
25
  let currentModality = null;
@@ -25,6 +27,7 @@ let changeHandlers = /* @__PURE__ */ new Set();
25
27
  let listenerMap = /* @__PURE__ */ new Map();
26
28
  let hasEventBeforeFocus = false;
27
29
  let hasBlurredWindowRecently = false;
30
+ let ignoreFocusEvent = false;
28
31
  const FOCUS_VISIBLE_INPUT_KEYS = {
29
32
  Tab: true,
30
33
  Escape: true
@@ -54,7 +57,7 @@ function handleClickEvent(e) {
54
57
  }
55
58
  function handleFocusEvent(e) {
56
59
  const target = require_dom_query.getEventTarget(e);
57
- if (target === require_dom_query.getWindow(target) || target === require_dom_query.getDocument(target)) return;
60
+ if (target === require_dom_query.getWindow(target) || target === require_dom_query.getDocument(target) || !e.isTrusted) return;
58
61
  if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {
59
62
  currentModality = "virtual";
60
63
  triggerChangeHandlers("virtual", e);
@@ -72,8 +75,6 @@ function setupGlobalFocusEvents(root) {
72
75
  const doc = require_dom_query.getDocument(root);
73
76
  let focus = win.HTMLElement.prototype.focus;
74
77
  function patchedFocus() {
75
- currentModality = "virtual";
76
- triggerChangeHandlers("virtual", null);
77
78
  hasEventBeforeFocus = true;
78
79
  focus.apply(this, arguments);
79
80
  }
@@ -148,7 +149,7 @@ function trackInteractionModality(props) {
148
149
  };
149
150
  }
150
151
  function isFocusVisible() {
151
- return currentModality === "keyboard";
152
+ return currentModality === "keyboard" || currentModality === "virtual";
152
153
  }
153
154
  function trackFocusVisible(props = {}) {
154
155
  const { isTextInput, autoFocus, onChange, root } = props;
@@ -176,6 +177,12 @@ Object.defineProperty(exports, "getInteractionModality", {
176
177
  return getInteractionModality;
177
178
  }
178
179
  });
180
+ Object.defineProperty(exports, "ignoreFocusEvent", {
181
+ enumerable: true,
182
+ get: function() {
183
+ return ignoreFocusEvent;
184
+ }
185
+ });
179
186
  Object.defineProperty(exports, "isFocusVisible", {
180
187
  enumerable: true,
181
188
  get: function() {
@@ -1,7 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./dom-query-BUO7rGsg.cjs");
3
- const require_focus_visible = require("./focus-visible-JdJXqMic.cjs");
3
+ const require_focus_visible = require("./focus-visible-Co_9bW09.cjs");
4
4
  exports.getInteractionModality = require_focus_visible.getInteractionModality;
5
+ exports.ignoreFocusEvent = require_focus_visible.ignoreFocusEvent;
5
6
  exports.isFocusVisible = require_focus_visible.isFocusVisible;
6
7
  exports.listenerMap = require_focus_visible.listenerMap;
7
8
  exports.setInteractionModality = require_focus_visible.setInteractionModality;
@@ -5,6 +5,7 @@ interface GlobalListenerData {
5
5
  focus: VoidFunction;
6
6
  }
7
7
  declare let listenerMap: Map<Window, GlobalListenerData>;
8
+ declare let ignoreFocusEvent: boolean;
8
9
  declare function getInteractionModality(): Modality | null;
9
10
  declare function setInteractionModality(modality: Modality): void;
10
11
  interface InteractionModalityChangeDetails {
@@ -28,4 +29,4 @@ interface FocusVisibleProps {
28
29
  }
29
30
  declare function trackFocusVisible(props?: FocusVisibleProps): VoidFunction;
30
31
  //#endregion
31
- export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
32
+ export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, ignoreFocusEvent, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
@@ -5,6 +5,7 @@ interface GlobalListenerData {
5
5
  focus: VoidFunction;
6
6
  }
7
7
  declare let listenerMap: Map<Window, GlobalListenerData>;
8
+ declare let ignoreFocusEvent: boolean;
8
9
  declare function getInteractionModality(): Modality | null;
9
10
  declare function setInteractionModality(modality: Modality): void;
10
11
  interface InteractionModalityChangeDetails {
@@ -28,4 +29,4 @@ interface FocusVisibleProps {
28
29
  }
29
30
  declare function trackFocusVisible(props?: FocusVisibleProps): VoidFunction;
30
31
  //#endregion
31
- export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
32
+ export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, ignoreFocusEvent, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
@@ -1,3 +1,3 @@
1
1
  import "./dom-query-BFuRs3l4.mjs";
2
- import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-GXKbbuiq.mjs";
3
- export { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
2
+ import { a as setInteractionModality, i as listenerMap, n as ignoreFocusEvent, o as trackFocusVisible, r as isFocusVisible, s as trackInteractionModality, t as getInteractionModality } from "./focus-visible-BuLf8M9F.mjs";
3
+ export { getInteractionModality, ignoreFocusEvent, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
@@ -49,8 +49,8 @@ declare function formatSelectedDate(startDate: DateValue$1 | null | undefined, e
49
49
  declare function formatVisibleRange(startDate: DateValue$1, endDate: DateValue$1 | null, locale: string, timeZone: string): string;
50
50
  //#endregion
51
51
  //#region src/shared/date-utils/formatter.d.ts
52
- declare function getDayFormatter(locale: string, timeZone: string): DateFormatter;
53
- declare function getMonthFormatter(locale: string, timeZone: string): DateFormatter;
52
+ declare function getDayFormatter(locale: string, timeZone: string, referenceDate?: DateValue): DateFormatter;
53
+ declare function getMonthFormatter(locale: string, timeZone: string, referenceDate?: DateValue): DateFormatter;
54
54
  //#endregion
55
55
  //#region src/shared/date-utils/date-month.d.ts
56
56
  declare function getStartOfWeek(date: DateValue, locale: string, firstDayOfWeek?: number): DateValue;
@@ -69,7 +69,7 @@ declare function getWeekDays(date: DateValue, startOfWeekProp: number | undefine
69
69
  long: string;
70
70
  narrow: string;
71
71
  }[];
72
- declare function getMonthNames(locale: string, format?: Intl.DateTimeFormatOptions["month"]): string[];
72
+ declare function getMonthNames(locale: string, format?: Intl.DateTimeFormatOptions["month"], referenceDate?: DateValue): string[];
73
73
  declare function getWeekOfYear(date: DateValue, locale: string): number;
74
74
  //#endregion
75
75
  //#region src/shared/date-utils/date-year.d.ts
@@ -78,13 +78,14 @@ interface YearsRange {
78
78
  to: number;
79
79
  }
80
80
  declare function getYearsRange(range: YearsRange): number[];
81
+ declare function getDefaultYearRange(referenceDate: DateValue, min?: DateValue, max?: DateValue): YearsRange;
81
82
  declare function normalizeYear(year: string | null | undefined): string | undefined;
82
83
  declare function getDecadeRange(year: number, opts?: {
83
84
  strict?: boolean;
84
85
  }): number[];
85
86
  //#endregion
86
87
  //#region src/shared/date-utils/mutation.d.ts
87
- declare function getTodayDate(timeZone?: string): _internationalized_date0.CalendarDate;
88
+ declare function getTodayDate(timeZone?: string, calendar?: Calendar): _internationalized_date0.CalendarDate;
88
89
  declare function setCalendar(date: DateValue, calendar: Calendar): _internationalized_date0.CalendarDateTime;
89
90
  declare function setDate(date: DateValue, startDate: DateValue, isDateUnavailable: DateAvailableFn, locale: string, minValue: DateValue, maxValue: DateValue): DateValue | undefined;
90
91
  declare function getPreviousAvailableDate(date: DateValue, minValue: DateValue, locale: string, isDateUnavailable?: DateAvailableFn): DateValue | undefined;
@@ -113,4 +114,4 @@ declare function parseDateString(date: string, locale: string, timeZone: string)
113
114
  //#region src/shared/date-utils/preset.d.ts
114
115
  declare function getDateRangePreset(preset: DateRangePreset, locale: string, timeZone: string): [DateValue, DateValue];
115
116
  //#endregion
116
- export { getDayFormatter as A, constrainStart as B, getEndOfWeek as C, getWeekDays as D, getStartOfWeek as E, getEndDate as F, isNextRangeInvalid as G, isDateEqual as H, getUnitDuration as I, alignStartDate as J, isPreviousRangeInvalid as K, alignCenter as L, formatRange as M, formatSelectedDate as N, getWeekOfYear as O, formatVisibleRange as P, DateValue$1 as Q, alignEnd as R, getDaysInWeek as S, getMonthNames as T, isDateOutsideRange as U, constrainValue as V, isDateUnavailable as W, DateGranularity as X, DateAdjustFn as Y, DateRangePreset as Z, setDate as _, getAdjustedDateFn as a, getYearsRange as b, getNextSection as c, getPreviousSection as d, getSectionEnd as f, setCalendar as g, getTodayDate as h, AdjustDateReturn as i, getMonthFormatter as j, getWeekdayFormats as k, getPreviousPage as l, getPreviousAvailableDate as m, parseDateString as n, getNextPage as o, getSectionStart as p, alignDate as q, AdjustDateParams as r, getNextRow as s, getDateRangePreset as t, getPreviousRow as u, YearsRange as v, getMonthDays as w, normalizeYear as x, getDecadeRange as y, alignStart as z };
117
+ export { DateValue$1 as $, getWeekdayFormats as A, alignStart as B, getDaysInWeek as C, getStartOfWeek as D, getMonthNames as E, formatVisibleRange as F, isDateUnavailable as G, constrainValue as H, getEndDate as I, alignDate as J, isNextRangeInvalid as K, getUnitDuration as L, getMonthFormatter as M, formatRange as N, getWeekDays as O, formatSelectedDate as P, DateRangePreset as Q, alignCenter as R, normalizeYear as S, getMonthDays as T, isDateEqual as U, constrainStart as V, isDateOutsideRange as W, DateAdjustFn as X, alignStartDate as Y, DateGranularity as Z, setDate as _, getAdjustedDateFn as a, getDefaultYearRange as b, getNextSection as c, getPreviousSection as d, getSectionEnd as f, setCalendar as g, getTodayDate as h, AdjustDateReturn as i, getDayFormatter as j, getWeekOfYear as k, getPreviousPage as l, getPreviousAvailableDate as m, parseDateString as n, getNextPage as o, getSectionStart as p, isPreviousRangeInvalid as q, AdjustDateParams as r, getNextRow as s, getDateRangePreset as t, getPreviousRow as u, YearsRange as v, getEndOfWeek as w, getYearsRange as x, getDecadeRange as y, alignEnd as z };
@@ -46,7 +46,7 @@ declare class ListCollection<T extends CollectionItem = CollectionItem> {
46
46
  moveBefore: (value: string, ...values: string[]) => ListCollection<T>;
47
47
  moveAfter: (value: string, ...values: string[]) => ListCollection<T>;
48
48
  reorder: (fromIndex: number, toIndex: number) => ListCollection<T>;
49
- compareValue: (a: string, b: string) => 1 | 0 | -1;
49
+ compareValue: (a: string, b: string) => 0 | 1 | -1;
50
50
  private range;
51
51
  getValueRange: (from: string | null, to: string | null) => string[];
52
52
  toString: () => string;
@@ -46,7 +46,7 @@ declare class ListCollection<T extends CollectionItem = CollectionItem> {
46
46
  moveBefore: (value: string, ...values: string[]) => ListCollection<T>;
47
47
  moveAfter: (value: string, ...values: string[]) => ListCollection<T>;
48
48
  reorder: (fromIndex: number, toIndex: number) => ListCollection<T>;
49
- compareValue: (a: string, b: string) => 1 | 0 | -1;
49
+ compareValue: (a: string, b: string) => 0 | 1 | -1;
50
50
  private range;
51
51
  getValueRange: (from: string | null, to: string | null) => string[];
52
52
  toString: () => string;
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/accordion/accordion.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemTrigger" | "itemContent">;
7
7
  //#endregion
8
8
  //#region src/machines/accordion/accordion.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/accordion/accordion.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemTrigger" | "itemContent">;
7
7
  //#endregion
8
8
  //#region src/machines/accordion/accordion.types.d.ts
9
9
  interface ValueChangeDetails {