impact-nova 2.5.13 → 2.5.14

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 (148) hide show
  1. package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +0 -1
  2. package/dist/components/data/data-table/build-column-tree-from-grid.js +50 -55
  3. package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
  4. package/dist/components/data/data-table/data-table-column-apply.js +73 -84
  5. package/dist/components/data/data-table/data-table-column-list.js +64 -94
  6. package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
  7. package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
  8. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
  9. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
  10. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
  11. package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
  12. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  13. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  14. package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
  15. package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
  16. package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
  17. package/dist/components/data/nested-list/components/SortableItem.js +60 -62
  18. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
  19. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
  20. package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
  21. package/dist/components/data/nested-list/nested-list-constants.js +4 -10
  22. package/dist/components/data/nested-list/nested-list.js +336 -322
  23. package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
  24. package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +2 -0
  25. package/dist/components/data-display/calendar/calendar-apply-validation.js +64 -67
  26. package/dist/components/data-display/calendar/calendar-available-view.d.ts +27 -0
  27. package/dist/components/data-display/calendar/calendar-available-view.js +85 -0
  28. package/dist/components/data-display/calendar/calendar-config.js +1 -1
  29. package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +4 -2
  30. package/dist/components/data-display/calendar/calendar-day-picker-components.js +234 -164
  31. package/dist/components/data-display/calendar/calendar-day-picker-view.js +77 -76
  32. package/dist/components/data-display/calendar/calendar-fiscal-day-cell.d.ts +9 -0
  33. package/dist/components/data-display/calendar/calendar-fiscal-day-cell.js +45 -0
  34. package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +6 -0
  35. package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +34 -18
  36. package/dist/components/data-display/calendar/calendar-footer.js +21 -21
  37. package/dist/components/data-display/calendar/calendar-injected-week-row.d.ts +5 -0
  38. package/dist/components/data-display/calendar/calendar-injected-week-row.js +92 -0
  39. package/dist/components/data-display/calendar/calendar-leading-week.utils.d.ts +16 -0
  40. package/dist/components/data-display/calendar/calendar-leading-week.utils.js +51 -0
  41. package/dist/components/data-display/calendar/calendar-month-picker-panel.js +50 -49
  42. package/dist/components/data-display/calendar/calendar-month-utils.d.ts +5 -0
  43. package/dist/components/data-display/calendar/calendar-month-utils.js +85 -64
  44. package/dist/components/data-display/calendar/calendar-orphan-week.d.ts +23 -0
  45. package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +3 -1
  46. package/dist/components/data-display/calendar/calendar-padding-week.utils.js +7 -5
  47. package/dist/components/data-display/calendar/calendar-period-cell.js +45 -46
  48. package/dist/components/data-display/calendar/calendar-quarter-panes.js +33 -31
  49. package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +10 -0
  50. package/dist/components/data-display/calendar/calendar-selection-appearance.js +53 -39
  51. package/dist/components/data-display/calendar/calendar-selection.d.ts +25 -0
  52. package/dist/components/data-display/calendar/calendar-selection.js +52 -23
  53. package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +2 -1
  54. package/dist/components/data-display/calendar/calendar-week-number-cell.js +59 -45
  55. package/dist/components/data-display/calendar/calendar-week-utils.d.ts +15 -4
  56. package/dist/components/data-display/calendar/calendar-week-utils.js +59 -50
  57. package/dist/components/data-display/calendar/calendar-year-panes.d.ts +3 -0
  58. package/dist/components/data-display/calendar/calendar-year-panes.js +53 -49
  59. package/dist/components/data-display/calendar/calendar.js +146 -143
  60. package/dist/components/data-display/calendar/calendar.types.d.ts +5 -0
  61. package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +2 -1
  62. package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +79 -74
  63. package/dist/components/data-display/calendar/use-calendar-state.d.ts +3 -1
  64. package/dist/components/data-display/calendar/use-calendar-state.js +394 -314
  65. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  66. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  67. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  68. package/dist/components/forms/date-picker/date-picker.js +60 -58
  69. package/dist/components/forms/date-picker/date-picker.types.d.ts +5 -0
  70. package/dist/components/forms/date-picker/date-range-picker.js +66 -64
  71. package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
  72. package/dist/components/forms/date-picker/fiscal-pass-through.js +3 -2
  73. package/dist/components/forms/date-picker/fiscal-picker-fixtures.d.ts +17 -0
  74. package/dist/components/forms/date-picker/month-picker.js +61 -59
  75. package/dist/components/forms/date-picker/month-range-picker.js +63 -61
  76. package/dist/components/forms/date-picker/multi-date-picker.js +51 -49
  77. package/dist/components/forms/date-picker/multi-month-picker.js +49 -47
  78. package/dist/components/forms/date-picker/multi-quarter-picker.js +51 -47
  79. package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
  80. package/dist/components/forms/date-picker/multi-year-picker.js +53 -49
  81. package/dist/components/forms/date-picker/quarter-picker.js +51 -47
  82. package/dist/components/forms/date-picker/quarter-range-picker.js +50 -46
  83. package/dist/components/forms/date-picker/week-picker.js +130 -126
  84. package/dist/components/forms/date-picker/week-range-picker.js +159 -155
  85. package/dist/components/forms/date-picker/year-picker.js +52 -48
  86. package/dist/components/forms/date-picker/year-range-picker.js +52 -48
  87. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  88. package/dist/components/forms/select/components/Submenu.js +3 -2
  89. package/dist/form-react/Fields/DateInputField.js +51 -50
  90. package/dist/form-react/Fields/DateRangeField.js +14 -13
  91. package/dist/form-react/Fields/MonthRangeField.js +29 -28
  92. package/dist/form-react/Fields/MultiMonthPickerField.js +13 -12
  93. package/dist/form-react/Fields/MultiWeekPickerField.js +35 -27
  94. package/dist/form-react/Fields/MultiYearPickerField.d.ts +8 -0
  95. package/dist/form-react/Fields/MultiYearPickerField.js +57 -0
  96. package/dist/form-react/Fields/WeekRangePicker.js +33 -32
  97. package/dist/form-react/Fields/YearPickerField.d.ts +8 -0
  98. package/dist/form-react/Fields/YearPickerField.js +57 -0
  99. package/dist/form-react/Fields/YearRangePickerField.d.ts +8 -0
  100. package/dist/form-react/Fields/YearRangePickerField.js +57 -0
  101. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  102. package/dist/form-react/registry/defaultFieldRegistrations.js +16 -13
  103. package/dist/form-react/types/fields.types.d.ts +69 -1
  104. package/dist/form-react/types/fieldsOutput.types.d.ts +8 -2
  105. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  106. package/dist/impact-nova-components.css +13 -6
  107. package/dist/impact-nova.css +1 -1
  108. package/dist/lib/fiscal-calendar/index.d.ts +2 -2
  109. package/dist/lib/fiscal-calendar/index.js +26 -28
  110. package/dist/lib/fiscal-calendar/types.d.ts +0 -7
  111. package/dist/lib/fiscal-calendar/week-selection.d.ts +3 -4
  112. package/dist/lib/fiscal-calendar/week-selection.js +52 -79
  113. package/dist/llms/rules/ag-grid.js +1 -1
  114. package/dist/llms/rules/installation.js +1 -1
  115. package/dist/llms/rules/requirements.js +1 -1
  116. package/package.json +1 -1
  117. package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
  118. package/dist/components/data/data-table/column-picker-authority.js +0 -116
  119. package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
  120. package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
  121. package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
  122. package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
  123. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
  124. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
  125. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
  126. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
  127. package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
  128. package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
  129. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
  130. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
  131. package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
  132. package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
  133. package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
  134. package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
  135. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
  136. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
  137. package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
  138. package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
  139. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
  140. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
  141. package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
  142. package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
  143. package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
  144. package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
  145. package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
  146. package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
  147. package/dist/lib/hash/fnv1a128.d.ts +0 -16
  148. package/dist/lib/hash/fnv1a128.js +0 -21
@@ -1,85 +1,94 @@
1
1
  import { civilFromLocalDate as l } from "../../../lib/fiscal-calendar/civil-date.js";
2
- import { resolveWeekSelection as W } from "../../../lib/fiscal-calendar/week-selection.js";
3
- function v(e, n) {
4
- const o = e.days[0]?.date;
5
- if (o)
6
- return n?.(o)?.fiscalPeriod;
2
+ import { resolveWeekSelection as S } from "../../../lib/fiscal-calendar/week-selection.js";
3
+ import { isCalendarPaddingWeek as y } from "./calendar-padding-week.utils.js";
4
+ function _(e, r) {
5
+ const a = e.days[0]?.date;
6
+ if (a)
7
+ return r?.(a)?.fiscalPeriod;
7
8
  }
8
- function A(e) {
9
+ function T(e) {
9
10
  return e.calendarKind !== "fiscal" || e.weekPeriod == null || e.panePeriod == null ? !1 : e.weekPeriod !== e.panePeriod;
10
11
  }
11
- function m(e, n) {
12
- return e.year === n.year && e.month === n.month && e.weekOfMonth === n.weekOfMonth;
12
+ function k(e) {
13
+ return e.calendarKind !== "fiscal" || e.weekPeriod == null || e.panePeriod == null ? !1 : e.weekPeriod === e.panePeriod;
13
14
  }
14
- function _(e, n) {
15
- const o = e instanceof Date ? e : e.days.find((t) => !t.outside)?.date ?? e.days[0]?.date ?? /* @__PURE__ */ new Date();
16
- return W(o, n);
15
+ function E(e, r) {
16
+ return k(r) ? !1 : y(e) || T(r);
17
17
  }
18
- function E(e, n, o) {
19
- if (o === "single") return e;
20
- if (o === "multiple") {
21
- const a = n || [];
22
- return a.some((f) => m(f, e)) ? a.filter((f) => !m(f, e)) : [...a, e];
18
+ function d(e, r) {
19
+ return e.year === r.year && e.month === r.month && e.weekOfMonth === r.weekOfMonth;
20
+ }
21
+ function F(e, r) {
22
+ const a = e instanceof Date ? e : e.days.find((t) => !t.outside)?.date ?? e.days[0]?.date ?? /* @__PURE__ */ new Date();
23
+ return S(a, r);
24
+ }
25
+ function H(e, r, a) {
26
+ if (a === "single") return e;
27
+ if (a === "multiple") {
28
+ const i = r || [];
29
+ return i.some((f) => d(f, e)) ? i.filter((f) => !d(f, e)) : [...i, e];
23
30
  }
24
- const t = n;
31
+ const t = r;
25
32
  if (!t?.from || t.to) return { from: e };
26
- if (m(e, t.from)) return t;
33
+ if (d(e, t.from)) return t;
27
34
  const s = { from: t.from, to: e };
28
35
  return e.startDate < t.from.startDate && (s.from = e, s.to = t.from), s;
29
36
  }
30
- function x(e) {
37
+ function R(e) {
31
38
  if (!e) return;
32
- const n = [], o = (t) => {
39
+ const r = [], a = (t) => {
33
40
  const s = new Date(t.startDate);
34
41
  s.setHours(0, 0, 0, 0);
35
- const a = new Date(t.endDate);
36
- for (a.setHours(0, 0, 0, 0); s <= a; )
37
- n.push(new Date(s)), s.setDate(s.getDate() + 1);
42
+ const i = new Date(t.endDate);
43
+ for (i.setHours(0, 0, 0, 0); s <= i; )
44
+ r.push(new Date(s)), s.setDate(s.getDate() + 1);
38
45
  };
39
46
  if (Array.isArray(e))
40
- e.forEach(o);
47
+ e.forEach(a);
41
48
  else if ("from" in e) {
42
49
  if (e.from)
43
50
  if (!e.to)
44
- o(e.from);
51
+ a(e.from);
45
52
  else {
46
53
  const t = new Date(e.from.startDate);
47
54
  t.setHours(0, 0, 0, 0);
48
55
  const s = new Date(e.to.endDate);
49
56
  for (s.setHours(0, 0, 0, 0); t <= s; )
50
- n.push(new Date(t)), t.setDate(t.getDate() + 1);
57
+ r.push(new Date(t)), t.setDate(t.getDate() + 1);
51
58
  }
52
59
  } else
53
- o(e);
54
- return n;
60
+ a(e);
61
+ return r;
55
62
  }
56
- function F(e, n, o) {
63
+ function x(e, r, a) {
57
64
  if (!e || e.length === 0)
58
65
  return { range_start: [], range_middle: [], range_end: [] };
59
- const t = [...e].sort((r, i) => r.getTime() - i.getTime()), s = [], a = [], u = [], f = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
60
- n === "multiple" && Array.isArray(o) && o.forEach((r) => {
61
- f.add(l(r.startDate)), d.add(l(r.endDate));
66
+ const t = [...e].sort((n, o) => n.getTime() - o.getTime()), s = [], i = [], u = [], f = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set();
67
+ r === "multiple" && Array.isArray(a) && a.forEach((n) => {
68
+ f.add(l(n.startDate)), m.add(l(n.endDate));
62
69
  });
63
- const D = (r, i) => {
64
- if (i === 0) return !1;
65
- const c = t[i - 1];
66
- return r.getTime() - c.getTime() <= 1440 * 60 * 1e3;
67
- }, p = (r, i) => i === t.length - 1 ? !1 : t[i + 1].getTime() - r.getTime() <= 1440 * 60 * 1e3;
68
- return t.forEach((r, i) => {
69
- const c = l(r), S = f.has(c), y = d.has(c), h = D(r, i), g = p(r, i);
70
- if (n === "multiple") {
71
- S ? s.push(r) : y ? u.push(r) : a.push(r);
70
+ const D = (n, o) => {
71
+ if (o === 0) return !1;
72
+ const c = t[o - 1];
73
+ return n.getTime() - c.getTime() <= 1440 * 60 * 1e3;
74
+ }, p = (n, o) => o === t.length - 1 ? !1 : t[o + 1].getTime() - n.getTime() <= 1440 * 60 * 1e3;
75
+ return t.forEach((n, o) => {
76
+ const c = l(n), W = f.has(c), P = m.has(c), h = D(n, o), g = p(n, o);
77
+ if (r === "multiple") {
78
+ W ? s.push(n) : P ? u.push(n) : i.push(n);
72
79
  return;
73
80
  }
74
- !h && !g ? (s.push(r), u.push(r)) : h ? g ? a.push(r) : u.push(r) : s.push(r);
75
- }), { range_start: s, range_middle: a, range_end: u };
81
+ !h && !g ? (s.push(n), u.push(n)) : h ? g ? i.push(n) : u.push(n) : s.push(n);
82
+ }), { range_start: s, range_middle: i, range_end: u };
76
83
  }
77
84
  export {
78
- _ as calculateWeekSelection,
79
- F as computeWeekRangeModifiers,
80
- v as fiscalPeriodForWeek,
81
- A as isForeignFiscalWeekRow,
82
- m as isSameWeek,
83
- E as nextWeekSelection,
84
- x as weekSelectionsToDates
85
+ F as calculateWeekSelection,
86
+ x as computeWeekRangeModifiers,
87
+ _ as fiscalPeriodForWeek,
88
+ T as isForeignFiscalWeekRow,
89
+ k as isOwnedFiscalWeekRow,
90
+ d as isSameWeek,
91
+ H as nextWeekSelection,
92
+ E as shouldHideCalendarWeekRow,
93
+ R as weekSelectionsToDates
85
94
  };
@@ -1,4 +1,7 @@
1
1
  import { YearRange, YearSelection } from './calendar.types';
2
+ export declare const YEAR_PAGE_SIZE = 12;
3
+ export declare const YEAR_CAPTION_PAGE_SIZE = 6;
4
+ export declare const YEAR_PANE_WIDTH_CLASS = "w-[320px] min-w-[320px] max-w-[320px]";
2
5
  export interface CalendarYearPanesProps {
3
6
  pickerYear: number;
4
7
  resolvedStartYear: number;
@@ -1,63 +1,64 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { ChevronRight as v } from "impact-nova-icons";
3
- import { cn as M } from "../../../lib/utils.js";
4
- import { Button as w } from "../../primitives/button/button.js";
5
- import { CalendarPeriodCell as Y } from "./calendar-period-cell.js";
6
- import { getYearRangeProps as Z, isYearRangeSelection as O } from "./calendar-year-utils.js";
7
- const T = 12, q = 6;
8
- function U({
9
- pickerYear: E,
2
+ import { ChevronRight as A } from "impact-nova-icons";
3
+ import { cn as N } from "../../../lib/utils.js";
4
+ import { Button as S } from "../../primitives/button/button.js";
5
+ import { CalendarPeriodCell as M } from "./calendar-period-cell.js";
6
+ import { PERIOD_RANGE_GRID_CLASSNAME as Y } from "./calendar-selection-appearance.js";
7
+ import { getYearRangeProps as O, isYearRangeSelection as T } from "./calendar-year-utils.js";
8
+ const Z = 12, H = 6, W = "w-[320px] min-w-[320px] max-w-[320px]";
9
+ function V({
10
+ pickerYear: _,
10
11
  resolvedStartYear: d,
11
12
  resolvedEndYear: m,
12
- previousYearLabel: N,
13
- nextYearLabel: S,
14
- yearLabels: a,
13
+ previousYearLabel: R,
14
+ nextYearLabel: u,
15
+ yearLabels: c,
15
16
  yearCaptions: p,
16
- showFooter: R = !0,
17
- pendingYearSelection: b,
18
- selectedYear: A,
19
- isYearSelected: C,
20
- isYearDisabled: _,
21
- onYearPageChange: g,
22
- onYearClick: z
17
+ showFooter: v = !0,
18
+ pendingYearSelection: w,
19
+ selectedYear: C,
20
+ isYearSelected: P,
21
+ isYearDisabled: b,
22
+ onYearPageChange: h,
23
+ onYearClick: I
23
24
  }) {
24
- const o = !!p, t = o ? q : T, i = Math.floor(E / t) * t, h = i + t - 1, s = Array.from({ length: t }, (n, l) => i + l).filter(
25
- (n) => n >= d && n <= m
26
- ), f = s[0] ?? i, x = s[s.length - 1] ?? h, c = R ? b : A, u = O(c) ? c : void 0;
25
+ const i = !!p, n = i ? H : Z, o = Math.floor(_ / n) * n, f = o + n - 1, s = Array.from({ length: n }, (t, l) => o + l).filter(
26
+ (t) => t >= d && t <= m
27
+ ), g = s[0] ?? o, E = s[s.length - 1] ?? f, a = v ? w : C, x = T(a) ? a : void 0;
27
28
  return /* @__PURE__ */ r(
28
29
  "div",
29
30
  {
30
31
  "data-slot": "year-panes",
31
- className: "flex w-[280px] min-w-[280px] max-w-[280px] flex-col gap-4 overflow-hidden p-3",
32
+ className: N("flex flex-col gap-4 overflow-hidden p-3", W),
32
33
  children: [
33
34
  /* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
34
35
  /* @__PURE__ */ e(
35
- w,
36
+ S,
36
37
  {
37
38
  variant: "ghost",
38
39
  size: "icon",
39
40
  className: "h-7 w-7 shrink-0",
40
- "aria-label": N,
41
- disabled: i <= d,
42
- onClick: () => g(i - t),
43
- children: /* @__PURE__ */ e(v, { size: 16, className: "rotate-180" })
41
+ "aria-label": R,
42
+ disabled: o <= d,
43
+ onClick: () => h(o - n),
44
+ children: /* @__PURE__ */ e(A, { size: 16, className: "rotate-180" })
44
45
  }
45
46
  ),
46
47
  /* @__PURE__ */ r("div", { className: "text-sm font-medium text-content", children: [
47
- a?.(f) ?? f,
48
+ c?.(g) ?? g,
48
49
  " – ",
49
- a?.(x) ?? x
50
+ c?.(E) ?? E
50
51
  ] }),
51
52
  /* @__PURE__ */ e(
52
- w,
53
+ S,
53
54
  {
54
55
  variant: "ghost",
55
56
  size: "icon",
56
57
  className: "h-7 w-7",
57
- "aria-label": S,
58
- disabled: h >= m,
59
- onClick: () => g(i + t),
60
- children: /* @__PURE__ */ e(v, { className: "h-4 w-4" })
58
+ "aria-label": u,
59
+ disabled: f >= m,
60
+ onClick: () => h(o + n),
61
+ children: /* @__PURE__ */ e(A, { className: "h-4 w-4" })
61
62
  }
62
63
  )
63
64
  ] }),
@@ -65,26 +66,26 @@ function U({
65
66
  "div",
66
67
  {
67
68
  "data-period-grid": "",
68
- className: M("grid min-w-0 gap-2", o ? "grid-cols-2" : "grid-cols-3"),
69
- children: s.map((n) => {
70
- const l = C(n), P = _(n), k = !!u, { isStart: B, isEnd: j, isMiddle: I } = Z(n, c), G = p?.(n);
69
+ className: N(Y, i ? "grid-cols-2" : "grid-cols-3"),
70
+ children: s.map((t) => {
71
+ const l = P(t), z = b(t), k = !!x, { isStart: B, isEnd: G, isMiddle: j } = O(t, a), D = p?.(t);
71
72
  return /* @__PURE__ */ e(
72
- Y,
73
+ M,
73
74
  {
74
75
  selected: l,
75
- disabled: P,
76
+ disabled: z,
76
77
  isRange: k,
77
78
  isStart: B,
78
- isEnd: j,
79
- isMiddle: I,
80
- hasRangeEnd: !!u?.to,
81
- size: o ? "year-caption" : "year",
82
- columns: o ? 2 : 3,
83
- onClick: () => z(n),
84
- caption: G,
85
- children: a?.(n) ?? String(n)
79
+ isEnd: G,
80
+ isMiddle: j,
81
+ hasRangeEnd: !!x?.to,
82
+ size: i ? "year-caption" : "year",
83
+ columns: i ? 2 : 3,
84
+ onClick: () => I(t),
85
+ caption: D,
86
+ children: c?.(t) ?? String(t)
86
87
  },
87
- n
88
+ t
88
89
  );
89
90
  })
90
91
  }
@@ -94,5 +95,8 @@ function U({
94
95
  );
95
96
  }
96
97
  export {
97
- U as CalendarYearPanes
98
+ V as CalendarYearPanes,
99
+ H as YEAR_CAPTION_PAGE_SIZE,
100
+ Z as YEAR_PAGE_SIZE,
101
+ W as YEAR_PANE_WIDTH_CLASS
98
102
  };