@area8975/ui 0.2.2-dev.49 → 0.2.2-dev.50

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 (182) hide show
  1. package/README.md +3 -2
  2. package/fesm2022/area8975-ui-alert.mjs +113 -0
  3. package/fesm2022/area8975-ui-alert.mjs.map +1 -0
  4. package/fesm2022/area8975-ui-avatar.mjs +157 -0
  5. package/fesm2022/area8975-ui-avatar.mjs.map +1 -0
  6. package/fesm2022/area8975-ui-badge.mjs +116 -0
  7. package/fesm2022/area8975-ui-badge.mjs.map +1 -0
  8. package/fesm2022/area8975-ui-button.mjs +314 -0
  9. package/fesm2022/area8975-ui-button.mjs.map +1 -0
  10. package/fesm2022/area8975-ui-calendar.mjs +549 -0
  11. package/fesm2022/area8975-ui-calendar.mjs.map +1 -0
  12. package/fesm2022/area8975-ui-card-header.mjs +96 -0
  13. package/fesm2022/area8975-ui-card-header.mjs.map +1 -0
  14. package/fesm2022/area8975-ui-card.mjs +73 -0
  15. package/fesm2022/area8975-ui-card.mjs.map +1 -0
  16. package/fesm2022/area8975-ui-chart-palette.mjs +225 -0
  17. package/fesm2022/area8975-ui-chart-palette.mjs.map +1 -0
  18. package/fesm2022/area8975-ui-charts.mjs +2813 -0
  19. package/fesm2022/area8975-ui-charts.mjs.map +1 -0
  20. package/fesm2022/area8975-ui-checkbox.mjs +202 -0
  21. package/fesm2022/area8975-ui-checkbox.mjs.map +1 -0
  22. package/fesm2022/area8975-ui-colour.mjs +200 -0
  23. package/fesm2022/area8975-ui-colour.mjs.map +1 -0
  24. package/fesm2022/area8975-ui-container.mjs +40 -0
  25. package/fesm2022/area8975-ui-container.mjs.map +1 -0
  26. package/fesm2022/area8975-ui-counter.mjs +246 -0
  27. package/fesm2022/area8975-ui-counter.mjs.map +1 -0
  28. package/fesm2022/area8975-ui-date-range-picker.mjs +554 -0
  29. package/fesm2022/area8975-ui-date-range-picker.mjs.map +1 -0
  30. package/fesm2022/area8975-ui-datepicker.mjs +547 -0
  31. package/fesm2022/area8975-ui-datepicker.mjs.map +1 -0
  32. package/fesm2022/area8975-ui-disclosure.mjs +279 -0
  33. package/fesm2022/area8975-ui-disclosure.mjs.map +1 -0
  34. package/fesm2022/area8975-ui-drawer.mjs +106 -0
  35. package/fesm2022/area8975-ui-drawer.mjs.map +1 -0
  36. package/fesm2022/area8975-ui-dropdown-button.mjs +141 -0
  37. package/fesm2022/area8975-ui-dropdown-button.mjs.map +1 -0
  38. package/fesm2022/area8975-ui-dropdown-menu.mjs +96 -0
  39. package/fesm2022/area8975-ui-dropdown-menu.mjs.map +1 -0
  40. package/fesm2022/area8975-ui-dropdown.mjs +208 -0
  41. package/fesm2022/area8975-ui-dropdown.mjs.map +1 -0
  42. package/fesm2022/area8975-ui-dropzone.mjs +332 -0
  43. package/fesm2022/area8975-ui-dropzone.mjs.map +1 -0
  44. package/fesm2022/area8975-ui-field.mjs +191 -0
  45. package/fesm2022/area8975-ui-field.mjs.map +1 -0
  46. package/fesm2022/area8975-ui-file-input.mjs +340 -0
  47. package/fesm2022/area8975-ui-file-input.mjs.map +1 -0
  48. package/fesm2022/area8975-ui-file.mjs +47 -0
  49. package/fesm2022/area8975-ui-file.mjs.map +1 -0
  50. package/fesm2022/area8975-ui-format.mjs +70 -0
  51. package/fesm2022/area8975-ui-format.mjs.map +1 -0
  52. package/fesm2022/area8975-ui-input-addon.mjs +42 -0
  53. package/fesm2022/area8975-ui-input-addon.mjs.map +1 -0
  54. package/fesm2022/area8975-ui-input-group.mjs +86 -0
  55. package/fesm2022/area8975-ui-input-group.mjs.map +1 -0
  56. package/fesm2022/area8975-ui-input.mjs +682 -0
  57. package/fesm2022/area8975-ui-input.mjs.map +1 -0
  58. package/fesm2022/area8975-ui-kpi.mjs +167 -0
  59. package/fesm2022/area8975-ui-kpi.mjs.map +1 -0
  60. package/fesm2022/area8975-ui-layout.mjs +63 -0
  61. package/fesm2022/area8975-ui-layout.mjs.map +1 -0
  62. package/fesm2022/area8975-ui-loading.mjs +76 -0
  63. package/fesm2022/area8975-ui-loading.mjs.map +1 -0
  64. package/fesm2022/area8975-ui-modal-close-btn.mjs +89 -0
  65. package/fesm2022/area8975-ui-modal-close-btn.mjs.map +1 -0
  66. package/fesm2022/area8975-ui-modal.mjs +235 -0
  67. package/fesm2022/area8975-ui-modal.mjs.map +1 -0
  68. package/fesm2022/area8975-ui-money.mjs +230 -0
  69. package/fesm2022/area8975-ui-money.mjs.map +1 -0
  70. package/fesm2022/area8975-ui-overlay.mjs +317 -0
  71. package/fesm2022/area8975-ui-overlay.mjs.map +1 -0
  72. package/fesm2022/area8975-ui-pagination.mjs +152 -0
  73. package/fesm2022/area8975-ui-pagination.mjs.map +1 -0
  74. package/fesm2022/area8975-ui-private.mjs +63 -0
  75. package/fesm2022/area8975-ui-private.mjs.map +1 -0
  76. package/fesm2022/area8975-ui-progress.mjs +307 -0
  77. package/fesm2022/area8975-ui-progress.mjs.map +1 -0
  78. package/fesm2022/area8975-ui-radio.mjs +199 -0
  79. package/fesm2022/area8975-ui-radio.mjs.map +1 -0
  80. package/fesm2022/area8975-ui-rich-text-editor.mjs +778 -0
  81. package/fesm2022/area8975-ui-rich-text-editor.mjs.map +1 -0
  82. package/fesm2022/area8975-ui-search.mjs +266 -0
  83. package/fesm2022/area8975-ui-search.mjs.map +1 -0
  84. package/fesm2022/area8975-ui-segmented.mjs +118 -0
  85. package/fesm2022/area8975-ui-segmented.mjs.map +1 -0
  86. package/fesm2022/area8975-ui-select.mjs +926 -0
  87. package/fesm2022/area8975-ui-select.mjs.map +1 -0
  88. package/fesm2022/area8975-ui-sidebar-group.mjs +60 -0
  89. package/fesm2022/area8975-ui-sidebar-group.mjs.map +1 -0
  90. package/fesm2022/area8975-ui-sidebar-item.mjs +107 -0
  91. package/fesm2022/area8975-ui-sidebar-item.mjs.map +1 -0
  92. package/fesm2022/area8975-ui-sidebar.mjs +109 -0
  93. package/fesm2022/area8975-ui-sidebar.mjs.map +1 -0
  94. package/fesm2022/area8975-ui-skeleton.mjs +116 -0
  95. package/fesm2022/area8975-ui-skeleton.mjs.map +1 -0
  96. package/fesm2022/area8975-ui-stat.mjs +55 -0
  97. package/fesm2022/area8975-ui-stat.mjs.map +1 -0
  98. package/fesm2022/area8975-ui-switch.mjs +132 -0
  99. package/fesm2022/area8975-ui-switch.mjs.map +1 -0
  100. package/fesm2022/area8975-ui-tab.mjs +217 -0
  101. package/fesm2022/area8975-ui-tab.mjs.map +1 -0
  102. package/fesm2022/area8975-ui-table-filters.mjs +499 -0
  103. package/fesm2022/area8975-ui-table-filters.mjs.map +1 -0
  104. package/fesm2022/area8975-ui-table.mjs +1237 -0
  105. package/fesm2022/area8975-ui-table.mjs.map +1 -0
  106. package/fesm2022/area8975-ui-textarea.mjs +375 -0
  107. package/fesm2022/area8975-ui-textarea.mjs.map +1 -0
  108. package/fesm2022/area8975-ui-theme.mjs +246 -0
  109. package/fesm2022/area8975-ui-theme.mjs.map +1 -0
  110. package/fesm2022/area8975-ui-time-select.mjs +170 -0
  111. package/fesm2022/area8975-ui-time-select.mjs.map +1 -0
  112. package/fesm2022/area8975-ui-toast.mjs +269 -0
  113. package/fesm2022/area8975-ui-toast.mjs.map +1 -0
  114. package/fesm2022/area8975-ui-toaster.mjs +117 -0
  115. package/fesm2022/area8975-ui-toaster.mjs.map +1 -0
  116. package/fesm2022/area8975-ui-tooltip.mjs +196 -0
  117. package/fesm2022/area8975-ui-tooltip.mjs.map +1 -0
  118. package/fesm2022/area8975-ui-user-menu.mjs +186 -0
  119. package/fesm2022/area8975-ui-user-menu.mjs.map +1 -0
  120. package/fesm2022/area8975-ui.mjs +0 -16520
  121. package/package.json +237 -1
  122. package/types/area8975-ui-alert.d.ts +25 -0
  123. package/types/area8975-ui-avatar.d.ts +40 -0
  124. package/types/area8975-ui-badge.d.ts +31 -0
  125. package/types/area8975-ui-button.d.ts +129 -0
  126. package/types/area8975-ui-calendar.d.ts +177 -0
  127. package/types/area8975-ui-card-header.d.ts +28 -0
  128. package/types/area8975-ui-card.d.ts +18 -0
  129. package/types/area8975-ui-chart-palette.d.ts +176 -0
  130. package/types/area8975-ui-charts.d.ts +747 -0
  131. package/types/area8975-ui-checkbox.d.ts +61 -0
  132. package/types/area8975-ui-colour.d.ts +31 -0
  133. package/types/area8975-ui-container.d.ts +5 -0
  134. package/types/area8975-ui-counter.d.ts +43 -0
  135. package/types/area8975-ui-date-range-picker.d.ts +132 -0
  136. package/types/area8975-ui-datepicker.d.ts +124 -0
  137. package/types/area8975-ui-disclosure.d.ts +79 -0
  138. package/types/area8975-ui-drawer.d.ts +25 -0
  139. package/types/area8975-ui-dropdown-button.d.ts +32 -0
  140. package/types/area8975-ui-dropdown-menu.d.ts +25 -0
  141. package/types/area8975-ui-dropdown.d.ts +56 -0
  142. package/types/area8975-ui-dropzone.d.ts +96 -0
  143. package/types/area8975-ui-field.d.ts +72 -0
  144. package/types/area8975-ui-file-input.d.ts +72 -0
  145. package/types/area8975-ui-file.d.ts +21 -0
  146. package/types/area8975-ui-format.d.ts +37 -0
  147. package/types/area8975-ui-input-addon.d.ts +10 -0
  148. package/types/area8975-ui-input-group.d.ts +18 -0
  149. package/types/area8975-ui-input.d.ts +224 -0
  150. package/types/area8975-ui-kpi.d.ts +36 -0
  151. package/types/area8975-ui-layout.d.ts +7 -0
  152. package/types/area8975-ui-loading.d.ts +16 -0
  153. package/types/area8975-ui-modal-close-btn.d.ts +14 -0
  154. package/types/area8975-ui-modal.d.ts +45 -0
  155. package/types/area8975-ui-money.d.ts +77 -0
  156. package/types/area8975-ui-overlay.d.ts +75 -0
  157. package/types/area8975-ui-pagination.d.ts +27 -0
  158. package/types/area8975-ui-private.d.ts +20 -0
  159. package/types/area8975-ui-progress.d.ts +127 -0
  160. package/types/area8975-ui-radio.d.ts +61 -0
  161. package/types/area8975-ui-rich-text-editor.d.ts +165 -0
  162. package/types/area8975-ui-search.d.ts +56 -0
  163. package/types/area8975-ui-segmented.d.ts +41 -0
  164. package/types/area8975-ui-select.d.ts +293 -0
  165. package/types/area8975-ui-sidebar-group.d.ts +15 -0
  166. package/types/area8975-ui-sidebar-item.d.ts +20 -0
  167. package/types/area8975-ui-sidebar.d.ts +16 -0
  168. package/types/area8975-ui-skeleton.d.ts +35 -0
  169. package/types/area8975-ui-stat.d.ts +13 -0
  170. package/types/area8975-ui-switch.d.ts +32 -0
  171. package/types/area8975-ui-tab.d.ts +45 -0
  172. package/types/area8975-ui-table-filters.d.ts +138 -0
  173. package/types/area8975-ui-table.d.ts +371 -0
  174. package/types/area8975-ui-textarea.d.ts +126 -0
  175. package/types/area8975-ui-theme.d.ts +61 -0
  176. package/types/area8975-ui-time-select.d.ts +35 -0
  177. package/types/area8975-ui-toast.d.ts +78 -0
  178. package/types/area8975-ui-toaster.d.ts +23 -0
  179. package/types/area8975-ui-tooltip.d.ts +47 -0
  180. package/types/area8975-ui-user-menu.d.ts +39 -0
  181. package/types/area8975-ui.d.ts +1 -4546
  182. package/fesm2022/area8975-ui.mjs.map +0 -1
@@ -0,0 +1,549 @@
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, Directive, ElementRef, Injector, TemplateRef, afterNextRender, computed, contentChild, effect, inject, input, linkedSignal, model, output, signal } from "@angular/core";
4
+ import { SelectLocalDataSource, UiSelectComponent } from "@area8975/ui/select";
5
+ import { NgIcon, provideIcons } from "@ng-icons/core";
6
+ import { heroChevronLeft, heroChevronRight } from "@ng-icons/heroicons/outline";
7
+ var UiCalendarDayDirective = class UiCalendarDayDirective {
8
+ template = inject(TemplateRef);
9
+ static ɵfac = i0.ɵɵngDeclareFactory({
10
+ minVersion: "12.0.0",
11
+ version: "22.2.1",
12
+ ngImport: i0,
13
+ type: UiCalendarDayDirective,
14
+ deps: [],
15
+ target: i0.ɵɵFactoryTarget.Directive
16
+ });
17
+ static ɵdir = i0.ɵɵngDeclareDirective({
18
+ minVersion: "14.0.0",
19
+ version: "22.2.1",
20
+ type: UiCalendarDayDirective,
21
+ isStandalone: true,
22
+ selector: "ng-template[uiCalendarDay]",
23
+ ngImport: i0
24
+ });
25
+ };
26
+ i0.ɵɵngDeclareClassMetadata({
27
+ minVersion: "12.0.0",
28
+ version: "22.2.1",
29
+ ngImport: i0,
30
+ type: UiCalendarDayDirective,
31
+ decorators: [{
32
+ type: Directive,
33
+ args: [{ selector: "ng-template[uiCalendarDay]" }]
34
+ }]
35
+ });
36
+ const ISO_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
37
+ const TIME_PATTERN = /^([01]\d|2[0-3]):([0-5]\d)$/;
38
+ function toIsoDate(date) {
39
+ return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
40
+ }
41
+ function parseIsoDate(value) {
42
+ const match = value ? ISO_PATTERN.exec(value) : null;
43
+ if (!match) return null;
44
+ const [, year, month, day] = match.map(Number);
45
+ const date = new Date(year, month - 1, day);
46
+ return date.getMonth() === month - 1 ? date : null;
47
+ }
48
+ function addDays(date, days) {
49
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + days);
50
+ }
51
+ function addMonths(date, months) {
52
+ const target = new Date(date.getFullYear(), date.getMonth() + months, 1);
53
+ const lastDay = daysInMonth(target.getFullYear(), target.getMonth());
54
+ target.setDate(Math.min(date.getDate(), lastDay));
55
+ return target;
56
+ }
57
+ function daysInMonth(year, month) {
58
+ return new Date(year, month + 1, 0).getDate();
59
+ }
60
+ function parseIsoDateTime(value) {
61
+ const date = parseIsoDate(value?.slice(0, 10));
62
+ const time = parseTime(value?.slice(11, 16));
63
+ if (date && time) date.setHours(time.hours, time.minutes);
64
+ return date;
65
+ }
66
+ function parseTime(value) {
67
+ const match = value ? TIME_PATTERN.exec(value) : null;
68
+ return match ? {
69
+ hours: Number(match[1]),
70
+ minutes: Number(match[2])
71
+ } : null;
72
+ }
73
+ function toTime(hours, minutes) {
74
+ return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
75
+ }
76
+ const GRID_DAYS = 42;
77
+ const YEARS_BACK = 100;
78
+ const YEARS_FORWARD = 10;
79
+ var UiCalendarComponent = class UiCalendarComponent {
80
+ host = inject(ElementRef);
81
+ injector = inject(Injector);
82
+ mode = input("single", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
83
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
84
+ range = model({
85
+ start: null,
86
+ end: null
87
+ }, ...ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []);
88
+ min = input(null, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
89
+ max = input(null, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
90
+ isDateDisabled = input(() => false, ...ngDevMode ? [{ debugName: "isDateDisabled" }] : /* istanbul ignore next */ []);
91
+ weekStart = input(1, ...ngDevMode ? [{ debugName: "weekStart" }] : /* istanbul ignore next */ []);
92
+ locale = input("en-GB", ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
93
+ dayClass = input(() => "", ...ngDevMode ? [{ debugName: "dayClass" }] : /* istanbul ignore next */ []);
94
+ hideSelection = input(false, ...ngDevMode ? [{ debugName: "hideSelection" }] : /* istanbul ignore next */ []);
95
+ dayClick = output();
96
+ monthChange = output();
97
+ dayTemplate = contentChild(UiCalendarDayDirective, ...ngDevMode ? [{ debugName: "dayTemplate" }] : /* istanbul ignore next */ []);
98
+ today = toIsoDate(/* @__PURE__ */ new Date());
99
+ anchorDate = computed(() => this.mode() === "range" ? this.range().start : this.value(), ...ngDevMode ? [{ debugName: "anchorDate" }] : /* istanbul ignore next */ []);
100
+ activeDate = linkedSignal(() => parseIsoDate(this.anchorDate()) ?? parseIsoDate(this.today), ...ngDevMode ? [{ debugName: "activeDate" }] : /* istanbul ignore next */ []);
101
+ hoveredDate = signal(null, ...ngDevMode ? [{ debugName: "hoveredDate" }] : /* istanbul ignore next */ []);
102
+ viewMonth = linkedSignal(() => this.activeDate().getMonth(), ...ngDevMode ? [{ debugName: "viewMonth" }] : /* istanbul ignore next */ []);
103
+ viewYear = linkedSignal(() => this.activeDate().getFullYear(), ...ngDevMode ? [{ debugName: "viewYear" }] : /* istanbul ignore next */ []);
104
+ monthNames = computed(() => {
105
+ const format = new Intl.DateTimeFormat(this.locale(), { month: "long" });
106
+ return Array.from({ length: 12 }, (_, month) => format.format(new Date(2026, month, 1)));
107
+ }, ...ngDevMode ? [{ debugName: "monthNames" }] : /* istanbul ignore next */ []);
108
+ weekdays = computed(() => {
109
+ const format = new Intl.DateTimeFormat(this.locale(), { weekday: "short" });
110
+ return Array.from({ length: 7 }, (_, index) => format.format(new Date(2026, 0, 4 + (this.weekStart() + index) % 7)).slice(0, 2));
111
+ }, ...ngDevMode ? [{ debugName: "weekdays" }] : /* istanbul ignore next */ []);
112
+ monthSource = computed(() => new SelectLocalDataSource(Array.from({ length: 12 }, (_, month) => month), () => true), ...ngDevMode ? [{ debugName: "monthSource" }] : /* istanbul ignore next */ []);
113
+ yearSource = computed(() => {
114
+ const current = (/* @__PURE__ */ new Date()).getFullYear();
115
+ const selected = parseIsoDate(this.anchorDate())?.getFullYear() ?? current;
116
+ const first = parseIsoDate(this.min())?.getFullYear() ?? Math.min(current - YEARS_BACK, selected);
117
+ const last = parseIsoDate(this.max())?.getFullYear() ?? Math.max(current + YEARS_FORWARD, selected);
118
+ const years = Array.from({ length: last - first + 1 }, (_, index) => last - index);
119
+ return new SelectLocalDataSource(years, () => true);
120
+ }, ...ngDevMode ? [{ debugName: "yearSource" }] : /* istanbul ignore next */ []);
121
+ displayMonth = (month) => this.monthNames()[month];
122
+ days = computed(() => {
123
+ const year = this.viewYear();
124
+ const month = this.viewMonth();
125
+ const { start, end, previewEnd } = this.rangeBounds();
126
+ const labelFormat = new Intl.DateTimeFormat(this.locale(), { dateStyle: "full" });
127
+ const first = new Date(year, month, 1);
128
+ const gridStart = addDays(first, -((first.getDay() - this.weekStart() + 7) % 7));
129
+ return Array.from({ length: GRID_DAYS }, (_, index) => {
130
+ const date = addDays(gridStart, index);
131
+ const iso = toIsoDate(date);
132
+ return {
133
+ iso,
134
+ day: date.getDate(),
135
+ label: labelFormat.format(date),
136
+ isOutside: date.getMonth() !== month,
137
+ isToday: iso === this.today,
138
+ isSelected: iso === start || iso === end,
139
+ isDisabled: this.isUnavailable(iso),
140
+ isInRange: !!start && !!previewEnd && iso > start && iso < previewEnd,
141
+ isRangeStart: !!previewEnd && iso === start && start !== previewEnd,
142
+ isRangeEnd: !!start && iso === previewEnd && start !== previewEnd,
143
+ className: this.dayClass()(iso)
144
+ };
145
+ });
146
+ }, ...ngDevMode ? [{ debugName: "days" }] : /* istanbul ignore next */ []);
147
+ view = computed(() => {
148
+ const days = this.days();
149
+ return {
150
+ month: toIsoDate(new Date(this.viewYear(), this.viewMonth(), 1)),
151
+ start: days[0].iso,
152
+ end: days[days.length - 1].iso
153
+ };
154
+ }, {
155
+ ...ngDevMode ? { debugName: "view" } : /* istanbul ignore next */ {},
156
+ equal: (a, b) => a.month === b.month && a.start === b.start
157
+ });
158
+ rangeBounds = computed(() => {
159
+ if (this.hideSelection()) return {
160
+ start: null,
161
+ end: null,
162
+ previewEnd: null
163
+ };
164
+ if (this.mode() === "single") return {
165
+ start: this.value(),
166
+ end: null,
167
+ previewEnd: null
168
+ };
169
+ const { start, end } = this.range();
170
+ const hovered = this.hoveredDate();
171
+ return {
172
+ start,
173
+ end,
174
+ previewEnd: end ?? (!end && start && hovered && hovered > start ? hovered : null)
175
+ };
176
+ }, ...ngDevMode ? [{ debugName: "rangeBounds" }] : /* istanbul ignore next */ []);
177
+ tabbableDate = computed(() => {
178
+ const active = this.activeDate();
179
+ return toIsoDate(active.getFullYear() === this.viewYear() && active.getMonth() === this.viewMonth() ? active : new Date(this.viewYear(), this.viewMonth(), 1));
180
+ }, ...ngDevMode ? [{ debugName: "tabbableDate" }] : /* istanbul ignore next */ []);
181
+ canGoBack = computed(() => {
182
+ const min = this.min();
183
+ const lastOfPrevious = new Date(this.viewYear(), this.viewMonth(), 0);
184
+ return !min || toIsoDate(lastOfPrevious) >= min;
185
+ }, ...ngDevMode ? [{ debugName: "canGoBack" }] : /* istanbul ignore next */ []);
186
+ canGoForward = computed(() => {
187
+ const max = this.max();
188
+ const firstOfNext = new Date(this.viewYear(), this.viewMonth() + 1, 1);
189
+ return !max || toIsoDate(firstOfNext) <= max;
190
+ }, ...ngDevMode ? [{ debugName: "canGoForward" }] : /* istanbul ignore next */ []);
191
+ constructor() {
192
+ effect(() => this.monthChange.emit(this.view()));
193
+ }
194
+ focusActiveDate() {
195
+ this.host.nativeElement.querySelector(`[data-date="${this.tabbableDate()}"]`)?.focus();
196
+ }
197
+ showMonth(offset) {
198
+ const target = new Date(this.viewYear(), this.viewMonth() + offset, 1);
199
+ this.viewYear.set(target.getFullYear());
200
+ this.viewMonth.set(target.getMonth());
201
+ }
202
+ select(day) {
203
+ if (day.isDisabled) return;
204
+ this.dayClick.emit(day.iso);
205
+ if (this.mode() === "single") {
206
+ this.value.set(day.iso);
207
+ return;
208
+ }
209
+ const { start, end } = this.range();
210
+ if (!start || end || day.iso < start) this.range.set({
211
+ start: day.iso,
212
+ end: null
213
+ });
214
+ else this.range.set({
215
+ start,
216
+ end: day.iso
217
+ });
218
+ }
219
+ preview(date) {
220
+ if (this.mode() === "range") this.hoveredDate.set(date);
221
+ }
222
+ handleKeydown(event) {
223
+ const current = parseIsoDate(this.tabbableDate());
224
+ const target = this.keyTarget(event, current);
225
+ if (!target) return;
226
+ event.preventDefault();
227
+ this.activeDate.set(target);
228
+ this.viewYear.set(target.getFullYear());
229
+ this.viewMonth.set(target.getMonth());
230
+ afterNextRender(() => this.focusActiveDate(), { injector: this.injector });
231
+ }
232
+ keyTarget(event, current) {
233
+ const dayOfWeek = (current.getDay() - this.weekStart() + 7) % 7;
234
+ switch (event.key) {
235
+ case "ArrowLeft": return addDays(current, -1);
236
+ case "ArrowRight": return addDays(current, 1);
237
+ case "ArrowUp": return addDays(current, -7);
238
+ case "ArrowDown": return addDays(current, 7);
239
+ case "Home": return addDays(current, -dayOfWeek);
240
+ case "End": return addDays(current, 6 - dayOfWeek);
241
+ case "PageUp": return addMonths(current, event.shiftKey ? -12 : -1);
242
+ case "PageDown": return addMonths(current, event.shiftKey ? 12 : 1);
243
+ default: return null;
244
+ }
245
+ }
246
+ isUnavailable(iso) {
247
+ const min = this.min();
248
+ const max = this.max();
249
+ return !!min && iso < min || !!max && iso > max || this.isDateDisabled()(iso);
250
+ }
251
+ static ɵfac = i0.ɵɵngDeclareFactory({
252
+ minVersion: "12.0.0",
253
+ version: "22.2.1",
254
+ ngImport: i0,
255
+ type: UiCalendarComponent,
256
+ deps: [],
257
+ target: i0.ɵɵFactoryTarget.Component
258
+ });
259
+ static ɵcmp = i0.ɵɵngDeclareComponent({
260
+ minVersion: "17.0.0",
261
+ version: "22.2.1",
262
+ type: UiCalendarComponent,
263
+ isStandalone: true,
264
+ selector: "ui-calendar",
265
+ inputs: {
266
+ mode: {
267
+ classPropertyName: "mode",
268
+ publicName: "mode",
269
+ isSignal: true,
270
+ isRequired: false,
271
+ transformFunction: null
272
+ },
273
+ value: {
274
+ classPropertyName: "value",
275
+ publicName: "value",
276
+ isSignal: true,
277
+ isRequired: false,
278
+ transformFunction: null
279
+ },
280
+ range: {
281
+ classPropertyName: "range",
282
+ publicName: "range",
283
+ isSignal: true,
284
+ isRequired: false,
285
+ transformFunction: null
286
+ },
287
+ min: {
288
+ classPropertyName: "min",
289
+ publicName: "min",
290
+ isSignal: true,
291
+ isRequired: false,
292
+ transformFunction: null
293
+ },
294
+ max: {
295
+ classPropertyName: "max",
296
+ publicName: "max",
297
+ isSignal: true,
298
+ isRequired: false,
299
+ transformFunction: null
300
+ },
301
+ isDateDisabled: {
302
+ classPropertyName: "isDateDisabled",
303
+ publicName: "isDateDisabled",
304
+ isSignal: true,
305
+ isRequired: false,
306
+ transformFunction: null
307
+ },
308
+ weekStart: {
309
+ classPropertyName: "weekStart",
310
+ publicName: "weekStart",
311
+ isSignal: true,
312
+ isRequired: false,
313
+ transformFunction: null
314
+ },
315
+ locale: {
316
+ classPropertyName: "locale",
317
+ publicName: "locale",
318
+ isSignal: true,
319
+ isRequired: false,
320
+ transformFunction: null
321
+ },
322
+ dayClass: {
323
+ classPropertyName: "dayClass",
324
+ publicName: "dayClass",
325
+ isSignal: true,
326
+ isRequired: false,
327
+ transformFunction: null
328
+ },
329
+ hideSelection: {
330
+ classPropertyName: "hideSelection",
331
+ publicName: "hideSelection",
332
+ isSignal: true,
333
+ isRequired: false,
334
+ transformFunction: null
335
+ }
336
+ },
337
+ outputs: {
338
+ value: "valueChange",
339
+ range: "rangeChange",
340
+ dayClick: "dayClick",
341
+ monthChange: "monthChange"
342
+ },
343
+ providers: [provideIcons({
344
+ heroChevronLeft,
345
+ heroChevronRight
346
+ })],
347
+ queries: [{
348
+ propertyName: "dayTemplate",
349
+ first: true,
350
+ predicate: UiCalendarDayDirective,
351
+ descendants: true,
352
+ isSignal: true
353
+ }],
354
+ ngImport: i0,
355
+ template: "<div class=\"ui-calendar-header\">\n <button\n type=\"button\"\n class=\"ui-calendar-nav\"\n aria-label=\"Previous month\"\n [disabled]=\"!canGoBack()\"\n (click)=\"showMonth(-1)\"\n >\n <ng-icon name=\"heroChevronLeft\" class=\"shrink-0\" />\n </button>\n\n <div class=\"ui-calendar-selects\">\n <ui-select\n class=\"ui-calendar-month\"\n [dataSource]=\"monthSource()\"\n [displayWith]=\"displayMonth\"\n [pageSize]=\"12\"\n [(selectedItem)]=\"viewMonth\"\n />\n <ui-select\n class=\"ui-calendar-year\"\n [dataSource]=\"yearSource()\"\n [pageSize]=\"500\"\n [(selectedItem)]=\"viewYear\"\n />\n </div>\n\n <button\n type=\"button\"\n class=\"ui-calendar-nav\"\n aria-label=\"Next month\"\n [disabled]=\"!canGoForward()\"\n (click)=\"showMonth(1)\"\n >\n <ng-icon name=\"heroChevronRight\" class=\"shrink-0\" />\n </button>\n</div>\n\n<div class=\"ui-calendar-weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdays(); track $index) {\n <span class=\"ui-calendar-weekday ui-text-caption\">{{ weekday }}</span>\n }\n</div>\n\n<div class=\"ui-calendar-grid\" (mouseleave)=\"preview(null)\">\n @for (day of days(); track day.iso) {\n <button\n type=\"button\"\n class=\"ui-calendar-day ui-text-body-alt\"\n [class]=\"day.className\"\n [attr.data-date]=\"day.iso\"\n [attr.data-outside]=\"day.isOutside ? '' : null\"\n [attr.data-today]=\"day.isToday ? '' : null\"\n [attr.data-in-range]=\"day.isInRange ? '' : null\"\n [attr.data-range-start]=\"day.isRangeStart ? '' : null\"\n [attr.data-range-end]=\"day.isRangeEnd ? '' : null\"\n [attr.aria-current]=\"day.isToday ? 'date' : null\"\n [attr.aria-pressed]=\"hideSelection() ? null : day.isSelected\"\n [attr.aria-label]=\"day.label\"\n [tabindex]=\"day.iso === tabbableDate() ? 0 : -1\"\n [attr.aria-disabled]=\"day.isDisabled || null\"\n (click)=\"select(day)\"\n (keydown)=\"handleKeydown($event)\"\n (mouseenter)=\"preview(day.iso)\"\n (focus)=\"preview(day.iso)\"\n >\n @if (dayTemplate(); as dayTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"dayTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: day.iso, day }\"\n />\n } @else {\n {{ day.day }}\n }\n </button>\n }\n</div>\n",
356
+ styles: ["@layer properties;:host{display:inline-flex;flex-direction:column;row-gap:calc(var(--spacing, .25rem) * 2)}.ui-calendar-header{display:flex;align-items:center;column-gap:var(--spacing, .25rem);padding-bottom:var(--spacing, .25rem)}.ui-calendar-selects{display:flex;min-width:0px;flex:1;column-gap:var(--spacing, .25rem)}.ui-calendar-month{min-width:0px;flex:1}.ui-calendar-year{width:calc(var(--spacing, .25rem) * 24);flex-shrink:0}.ui-calendar-nav{display:inline-flex;width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-full, calc(infinity * 1px));color:var(--foreground)}.ui-calendar-nav:focus{--tw-outline-style: none;outline-style:none}.ui-calendar-nav:focus-visible{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-calendar-nav:focus-visible{--tw-ring-color: color-mix(in srgb, oklch(88.2% .059 254.128) 50%, transparent)}@supports (color: color-mix(in lab,red,red)){.ui-calendar-nav:focus-visible{--tw-ring-color: color-mix(in oklab, var(--color-primary-200, var(--color-blue-200)) 50%, transparent)}}.ui-calendar-nav:disabled{pointer-events:none}.ui-calendar-nav:disabled{opacity:50%}.ui-calendar-nav:hover,.ui-calendar-nav:focus-visible{background-color:var(--surface)}.ui-calendar-weekdays,.ui-calendar-grid{display:grid;grid-template-columns:repeat(7,calc(var(--spacing, .25rem) * 10.5));justify-content:center}.ui-calendar-grid{row-gap:calc(var(--spacing, .25rem) * .5)}.ui-calendar-weekday{width:calc(var(--spacing, .25rem) * 10.5);padding-bottom:var(--spacing, .25rem);text-align:center;color:var(--muted-foreground-1)}.ui-calendar-day{position:relative;display:inline-flex;width:calc(var(--spacing, .25rem) * 10.5);height:calc(var(--spacing, .25rem) * 10.5);flex-direction:column;align-items:center;justify-content:center;border-radius:var(--radius-full, calc(infinity * 1px));border-style:var(--tw-border-style);border-width:1.5px;border-color:transparent;color:var(--foreground);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .15s;transition-duration:.15s}.ui-calendar-day:focus-visible{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-calendar-day:focus-visible{--tw-ring-color: color-mix(in srgb, oklch(88.2% .059 254.128) 50%, transparent)}@supports (color: color-mix(in lab,red,red)){.ui-calendar-day:focus-visible{--tw-ring-color: color-mix(in oklab, var(--color-primary-200, var(--color-blue-200)) 50%, transparent)}}.ui-calendar-day:focus-visible{--tw-outline-style: none;outline-style:none}.ui-calendar-day:hover,.ui-calendar-day:focus-visible{border-color:var(--color-primary-600, var(--color-blue-600))}.ui-calendar-day:hover,.ui-calendar-day:focus-visible{color:var(--color-primary-600, var(--color-blue-600))}.ui-calendar-day[aria-disabled]{cursor:not-allowed;text-decoration-line:line-through;opacity:40%}.ui-calendar-day[aria-disabled]:hover{border-color:transparent}.ui-calendar-day[aria-disabled]:hover{color:inherit}.ui-calendar-day[data-outside]{color:var(--muted-foreground)}.ui-calendar-day[data-today]{--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-primary-600, var(--color-blue-600))}.ui-calendar-day[aria-pressed=true]{border-color:var(--color-primary-600, var(--color-blue-600));background-color:var(--color-primary-600, var(--color-blue-600));color:var(--color-white, #fff)}.ui-calendar-day[aria-pressed=true]:hover,.ui-calendar-day[aria-pressed=true]:focus-visible{border-color:var(--color-primary-700, var(--color-blue-700))}.ui-calendar-day[aria-pressed=true]:hover,.ui-calendar-day[aria-pressed=true]:focus-visible{background-color:var(--color-primary-700, var(--color-blue-700))}.ui-calendar-day[aria-pressed=true]:hover,.ui-calendar-day[aria-pressed=true]:focus-visible{color:var(--color-white, #fff)}.ui-calendar-day[data-in-range]{border-radius:0;background-color:var(--color-primary-100, var(--color-blue-100));color:var(--foreground)}.ui-calendar-day[data-range-start]{border-top-right-radius:0;border-bottom-right-radius:0}.ui-calendar-day[data-range-end]{border-top-left-radius:0;border-bottom-left-radius:0}.ui-calendar-day[data-range-end]:not([aria-pressed=true]){background-color:var(--color-primary-100, var(--color-blue-100))}.ui-calendar-day[data-in-range]:not(:nth-child(7n)),.ui-calendar-day[data-range-start]:not(:nth-child(7n)){--tw-shadow: 1px 0 0 var(--tw-shadow-color, var(--color-primary-100));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-calendar-day[data-in-range]:nth-child(7n+1),.ui-calendar-day[data-range-end]:nth-child(7n+1){border-top-left-radius:var(--radius-full, calc(infinity * 1px));border-bottom-left-radius:var(--radius-full, calc(infinity * 1px))}.ui-calendar-day[data-in-range]:nth-child(7n),.ui-calendar-day[data-range-start]:nth-child(7n){border-top-right-radius:var(--radius-full, calc(infinity * 1px));border-bottom-right-radius:var(--radius-full, calc(infinity * 1px))}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-border-style: solid;--tw-duration: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
357
+ dependencies: [
358
+ {
359
+ kind: "component",
360
+ type: NgIcon,
361
+ selector: "ng-icon",
362
+ inputs: [
363
+ "name",
364
+ "svg",
365
+ "size",
366
+ "strokeWidth",
367
+ "color"
368
+ ]
369
+ },
370
+ {
371
+ kind: "directive",
372
+ type: NgTemplateOutlet,
373
+ selector: "[ngTemplateOutlet]",
374
+ inputs: [
375
+ "ngTemplateOutletContext",
376
+ "ngTemplateOutlet",
377
+ "ngTemplateOutletInjector"
378
+ ]
379
+ },
380
+ {
381
+ kind: "component",
382
+ type: UiSelectComponent,
383
+ selector: "ui-select",
384
+ inputs: [
385
+ "placement",
386
+ "closeBehaviour",
387
+ "dataSource",
388
+ "placeholder",
389
+ "id",
390
+ "describedBy",
391
+ "pageSize",
392
+ "searchMode",
393
+ "disabled",
394
+ "validationState",
395
+ "clearable",
396
+ "clearLabel",
397
+ "creatable",
398
+ "createLabel",
399
+ "groupBy",
400
+ "scrollToSelected",
401
+ "multiple",
402
+ "multipleDisplay",
403
+ "counterAfter",
404
+ "counterLabel",
405
+ "compareWith",
406
+ "displayWith",
407
+ "selectedItem",
408
+ "selectedItems"
409
+ ],
410
+ outputs: [
411
+ "validationStateChange",
412
+ "selectionChange",
413
+ "create",
414
+ "selectedItemChange",
415
+ "selectedItemsChange"
416
+ ]
417
+ }
418
+ ]
419
+ });
420
+ };
421
+ i0.ɵɵngDeclareClassMetadata({
422
+ minVersion: "12.0.0",
423
+ version: "22.2.1",
424
+ ngImport: i0,
425
+ type: UiCalendarComponent,
426
+ decorators: [{
427
+ type: Component,
428
+ args: [{
429
+ selector: "ui-calendar",
430
+ imports: [
431
+ NgIcon,
432
+ NgTemplateOutlet,
433
+ UiSelectComponent
434
+ ],
435
+ providers: [provideIcons({
436
+ heroChevronLeft,
437
+ heroChevronRight
438
+ })],
439
+ template: "<div class=\"ui-calendar-header\">\n <button\n type=\"button\"\n class=\"ui-calendar-nav\"\n aria-label=\"Previous month\"\n [disabled]=\"!canGoBack()\"\n (click)=\"showMonth(-1)\"\n >\n <ng-icon name=\"heroChevronLeft\" class=\"shrink-0\" />\n </button>\n\n <div class=\"ui-calendar-selects\">\n <ui-select\n class=\"ui-calendar-month\"\n [dataSource]=\"monthSource()\"\n [displayWith]=\"displayMonth\"\n [pageSize]=\"12\"\n [(selectedItem)]=\"viewMonth\"\n />\n <ui-select\n class=\"ui-calendar-year\"\n [dataSource]=\"yearSource()\"\n [pageSize]=\"500\"\n [(selectedItem)]=\"viewYear\"\n />\n </div>\n\n <button\n type=\"button\"\n class=\"ui-calendar-nav\"\n aria-label=\"Next month\"\n [disabled]=\"!canGoForward()\"\n (click)=\"showMonth(1)\"\n >\n <ng-icon name=\"heroChevronRight\" class=\"shrink-0\" />\n </button>\n</div>\n\n<div class=\"ui-calendar-weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdays(); track $index) {\n <span class=\"ui-calendar-weekday ui-text-caption\">{{ weekday }}</span>\n }\n</div>\n\n<div class=\"ui-calendar-grid\" (mouseleave)=\"preview(null)\">\n @for (day of days(); track day.iso) {\n <button\n type=\"button\"\n class=\"ui-calendar-day ui-text-body-alt\"\n [class]=\"day.className\"\n [attr.data-date]=\"day.iso\"\n [attr.data-outside]=\"day.isOutside ? '' : null\"\n [attr.data-today]=\"day.isToday ? '' : null\"\n [attr.data-in-range]=\"day.isInRange ? '' : null\"\n [attr.data-range-start]=\"day.isRangeStart ? '' : null\"\n [attr.data-range-end]=\"day.isRangeEnd ? '' : null\"\n [attr.aria-current]=\"day.isToday ? 'date' : null\"\n [attr.aria-pressed]=\"hideSelection() ? null : day.isSelected\"\n [attr.aria-label]=\"day.label\"\n [tabindex]=\"day.iso === tabbableDate() ? 0 : -1\"\n [attr.aria-disabled]=\"day.isDisabled || null\"\n (click)=\"select(day)\"\n (keydown)=\"handleKeydown($event)\"\n (mouseenter)=\"preview(day.iso)\"\n (focus)=\"preview(day.iso)\"\n >\n @if (dayTemplate(); as dayTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"dayTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: day.iso, day }\"\n />\n } @else {\n {{ day.day }}\n }\n </button>\n }\n</div>\n",
440
+ styles: ["@layer properties;:host{display:inline-flex;flex-direction:column;row-gap:calc(var(--spacing, .25rem) * 2)}.ui-calendar-header{display:flex;align-items:center;column-gap:var(--spacing, .25rem);padding-bottom:var(--spacing, .25rem)}.ui-calendar-selects{display:flex;min-width:0px;flex:1;column-gap:var(--spacing, .25rem)}.ui-calendar-month{min-width:0px;flex:1}.ui-calendar-year{width:calc(var(--spacing, .25rem) * 24);flex-shrink:0}.ui-calendar-nav{display:inline-flex;width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-full, calc(infinity * 1px));color:var(--foreground)}.ui-calendar-nav:focus{--tw-outline-style: none;outline-style:none}.ui-calendar-nav:focus-visible{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-calendar-nav:focus-visible{--tw-ring-color: color-mix(in srgb, oklch(88.2% .059 254.128) 50%, transparent)}@supports (color: color-mix(in lab,red,red)){.ui-calendar-nav:focus-visible{--tw-ring-color: color-mix(in oklab, var(--color-primary-200, var(--color-blue-200)) 50%, transparent)}}.ui-calendar-nav:disabled{pointer-events:none}.ui-calendar-nav:disabled{opacity:50%}.ui-calendar-nav:hover,.ui-calendar-nav:focus-visible{background-color:var(--surface)}.ui-calendar-weekdays,.ui-calendar-grid{display:grid;grid-template-columns:repeat(7,calc(var(--spacing, .25rem) * 10.5));justify-content:center}.ui-calendar-grid{row-gap:calc(var(--spacing, .25rem) * .5)}.ui-calendar-weekday{width:calc(var(--spacing, .25rem) * 10.5);padding-bottom:var(--spacing, .25rem);text-align:center;color:var(--muted-foreground-1)}.ui-calendar-day{position:relative;display:inline-flex;width:calc(var(--spacing, .25rem) * 10.5);height:calc(var(--spacing, .25rem) * 10.5);flex-direction:column;align-items:center;justify-content:center;border-radius:var(--radius-full, calc(infinity * 1px));border-style:var(--tw-border-style);border-width:1.5px;border-color:transparent;color:var(--foreground);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .15s;transition-duration:.15s}.ui-calendar-day:focus-visible{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-calendar-day:focus-visible{--tw-ring-color: color-mix(in srgb, oklch(88.2% .059 254.128) 50%, transparent)}@supports (color: color-mix(in lab,red,red)){.ui-calendar-day:focus-visible{--tw-ring-color: color-mix(in oklab, var(--color-primary-200, var(--color-blue-200)) 50%, transparent)}}.ui-calendar-day:focus-visible{--tw-outline-style: none;outline-style:none}.ui-calendar-day:hover,.ui-calendar-day:focus-visible{border-color:var(--color-primary-600, var(--color-blue-600))}.ui-calendar-day:hover,.ui-calendar-day:focus-visible{color:var(--color-primary-600, var(--color-blue-600))}.ui-calendar-day[aria-disabled]{cursor:not-allowed;text-decoration-line:line-through;opacity:40%}.ui-calendar-day[aria-disabled]:hover{border-color:transparent}.ui-calendar-day[aria-disabled]:hover{color:inherit}.ui-calendar-day[data-outside]{color:var(--muted-foreground)}.ui-calendar-day[data-today]{--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-primary-600, var(--color-blue-600))}.ui-calendar-day[aria-pressed=true]{border-color:var(--color-primary-600, var(--color-blue-600));background-color:var(--color-primary-600, var(--color-blue-600));color:var(--color-white, #fff)}.ui-calendar-day[aria-pressed=true]:hover,.ui-calendar-day[aria-pressed=true]:focus-visible{border-color:var(--color-primary-700, var(--color-blue-700))}.ui-calendar-day[aria-pressed=true]:hover,.ui-calendar-day[aria-pressed=true]:focus-visible{background-color:var(--color-primary-700, var(--color-blue-700))}.ui-calendar-day[aria-pressed=true]:hover,.ui-calendar-day[aria-pressed=true]:focus-visible{color:var(--color-white, #fff)}.ui-calendar-day[data-in-range]{border-radius:0;background-color:var(--color-primary-100, var(--color-blue-100));color:var(--foreground)}.ui-calendar-day[data-range-start]{border-top-right-radius:0;border-bottom-right-radius:0}.ui-calendar-day[data-range-end]{border-top-left-radius:0;border-bottom-left-radius:0}.ui-calendar-day[data-range-end]:not([aria-pressed=true]){background-color:var(--color-primary-100, var(--color-blue-100))}.ui-calendar-day[data-in-range]:not(:nth-child(7n)),.ui-calendar-day[data-range-start]:not(:nth-child(7n)){--tw-shadow: 1px 0 0 var(--tw-shadow-color, var(--color-primary-100));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-calendar-day[data-in-range]:nth-child(7n+1),.ui-calendar-day[data-range-end]:nth-child(7n+1){border-top-left-radius:var(--radius-full, calc(infinity * 1px));border-bottom-left-radius:var(--radius-full, calc(infinity * 1px))}.ui-calendar-day[data-in-range]:nth-child(7n),.ui-calendar-day[data-range-start]:nth-child(7n){border-top-right-radius:var(--radius-full, calc(infinity * 1px));border-bottom-right-radius:var(--radius-full, calc(infinity * 1px))}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-border-style: solid;--tw-duration: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
441
+ }]
442
+ }],
443
+ ctorParameters: () => [],
444
+ propDecorators: {
445
+ mode: [{
446
+ type: i0.Input,
447
+ args: [{
448
+ isSignal: true,
449
+ alias: "mode",
450
+ required: false
451
+ }]
452
+ }],
453
+ value: [{
454
+ type: i0.Input,
455
+ args: [{
456
+ isSignal: true,
457
+ alias: "value",
458
+ required: false
459
+ }]
460
+ }, {
461
+ type: i0.Output,
462
+ args: ["valueChange"]
463
+ }],
464
+ range: [{
465
+ type: i0.Input,
466
+ args: [{
467
+ isSignal: true,
468
+ alias: "range",
469
+ required: false
470
+ }]
471
+ }, {
472
+ type: i0.Output,
473
+ args: ["rangeChange"]
474
+ }],
475
+ min: [{
476
+ type: i0.Input,
477
+ args: [{
478
+ isSignal: true,
479
+ alias: "min",
480
+ required: false
481
+ }]
482
+ }],
483
+ max: [{
484
+ type: i0.Input,
485
+ args: [{
486
+ isSignal: true,
487
+ alias: "max",
488
+ required: false
489
+ }]
490
+ }],
491
+ isDateDisabled: [{
492
+ type: i0.Input,
493
+ args: [{
494
+ isSignal: true,
495
+ alias: "isDateDisabled",
496
+ required: false
497
+ }]
498
+ }],
499
+ weekStart: [{
500
+ type: i0.Input,
501
+ args: [{
502
+ isSignal: true,
503
+ alias: "weekStart",
504
+ required: false
505
+ }]
506
+ }],
507
+ locale: [{
508
+ type: i0.Input,
509
+ args: [{
510
+ isSignal: true,
511
+ alias: "locale",
512
+ required: false
513
+ }]
514
+ }],
515
+ dayClass: [{
516
+ type: i0.Input,
517
+ args: [{
518
+ isSignal: true,
519
+ alias: "dayClass",
520
+ required: false
521
+ }]
522
+ }],
523
+ hideSelection: [{
524
+ type: i0.Input,
525
+ args: [{
526
+ isSignal: true,
527
+ alias: "hideSelection",
528
+ required: false
529
+ }]
530
+ }],
531
+ dayClick: [{
532
+ type: i0.Output,
533
+ args: ["dayClick"]
534
+ }],
535
+ monthChange: [{
536
+ type: i0.Output,
537
+ args: ["monthChange"]
538
+ }],
539
+ dayTemplate: [{
540
+ type: i0.ContentChild,
541
+ args: [i0.forwardRef(() => UiCalendarDayDirective), { isSignal: true }]
542
+ }]
543
+ }
544
+ });
545
+ const WeekStarts = [0, 1];
546
+ const CalendarModes = ["single", "range"];
547
+ export { CalendarModes, UiCalendarComponent, UiCalendarDayDirective, WeekStarts, addDays, addMonths, daysInMonth, parseIsoDate, parseIsoDateTime, parseTime, toIsoDate, toTime };
548
+
549
+ //# sourceMappingURL=area8975-ui-calendar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"area8975-ui-calendar.mjs","names":[],"sources":["../../../projects/ui/calendar/calendar.directives.ts","../../../projects/ui/calendar/calendar.utils.ts","../../../projects/ui/calendar/calendar.component.ts","../../../projects/ui/calendar/calendar.component.html","../../../projects/ui/calendar/calendar.types.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CalendarDayContext } from './calendar.types';\n\n\n/**\n * Draws each day's content in place of its number:\n * `<ng-template uiCalendarDay let-date let-day=\"day\">`.\n */\n@Directive({\n selector: 'ng-template[uiCalendarDay]'\n})\nexport class UiCalendarDayDirective {\n readonly template = inject<TemplateRef<CalendarDayContext>>(TemplateRef);\n}\n","import type { IsoDate, IsoDateTime } from './calendar.types';\n\n\nconst ISO_PATTERN = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nconst TIME_PATTERN = /^([01]\\d|2[0-3]):([0-5]\\d)$/;\n\n// dates are built from local parts so a timezone never shifts the day\nexport function toIsoDate(date: Date): IsoDate {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n\n return `${year}-${month}-${day}`;\n}\n\n/** Local midnight for an ISO date, or null when it isn't a real date. */\nexport function parseIsoDate(value: IsoDate | null | undefined): Date | null {\n const match = value ? ISO_PATTERN.exec(value) : null;\n\n if (!match) {\n return null;\n }\n\n const [, year, month, day] = match.map(Number);\n const date = new Date(year, month - 1, day);\n\n // rejects things like 2026-02-31 rolling over into March\n return date.getMonth() === month - 1 ? date : null;\n}\n\nexport function addDays(date: Date, days: number): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate() + days);\n}\n\n/** Moves by whole months, keeping the day where it can (31 Jan + 1 -> 28 Feb). */\nexport function addMonths(date: Date, months: number): Date {\n const target = new Date(date.getFullYear(), date.getMonth() + months, 1);\n const lastDay = daysInMonth(target.getFullYear(), target.getMonth());\n\n target.setDate(Math.min(date.getDate(), lastDay));\n\n return target;\n}\n\nexport function daysInMonth(year: number, month: number): number {\n return new Date(year, month + 1, 0).getDate();\n}\n\n/** Local date and time for \"2026-09-29T14:30\", a date-only string gives midnight. */\nexport function parseIsoDateTime(\n value: IsoDateTime | null | undefined\n): Date | null {\n const date = parseIsoDate(value?.slice(0, 10));\n const time = parseTime(value?.slice(11, 16));\n\n if (date && time) {\n date.setHours(time.hours, time.minutes);\n }\n\n return date;\n}\n\n/** \"14:30\" -> { hours: 14, minutes: 30 }, or null when it isn't a real time. */\nexport function parseTime(\n value: string | null | undefined\n): { hours: number; minutes: number } | null {\n const match = value ? TIME_PATTERN.exec(value) : null;\n\n return match ? { hours: Number(match[1]), minutes: Number(match[2]) } : null;\n}\n\nexport function toTime(hours: number, minutes: number): string {\n return `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}`;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n linkedSignal,\n model,\n output,\n signal\n} from '@angular/core';\n\nimport { UiSelectComponent } from '@area8975/ui/select';\nimport { SelectLocalDataSource } from '@area8975/ui/select';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { heroChevronLeft, heroChevronRight } from '@ng-icons/heroicons/outline';\n\nimport { UiCalendarDayDirective } from './calendar.directives';\nimport type {\n CalendarDay,\n CalendarMode,\n CalendarView,\n DateRange,\n IsoDate,\n WeekStart\n} from './calendar.types';\nimport { addDays, addMonths, parseIsoDate, toIsoDate } from './calendar.utils';\n\n\n// always six rows so the calendar doesn't jump in height between months\nconst GRID_DAYS = 42;\nconst YEARS_BACK = 100;\nconst YEARS_FORWARD = 10;\n\n@Component({\n selector: 'ui-calendar',\n templateUrl: './calendar.component.html',\n styleUrl: './calendar.component.css',\n imports: [NgIcon, NgTemplateOutlet, UiSelectComponent],\n providers: [provideIcons({ heroChevronLeft, heroChevronRight })]\n})\nexport class UiCalendarComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n\n readonly mode = input<CalendarMode>('single');\n\n /** The picked date in single mode. */\n readonly value = model<IsoDate | null>(null);\n\n /** The picked start and end in range mode. */\n readonly range = model<DateRange>({ start: null, end: null });\n\n readonly min = input<IsoDate | null>(null);\n readonly max = input<IsoDate | null>(null);\n readonly isDateDisabled = input<(date: IsoDate) => boolean>(() => false);\n\n readonly weekStart = input<WeekStart>(1);\n readonly locale = input<string>('en-GB');\n\n /** Classes for a day, e.g. a tint. Signals it reads update the grid. */\n readonly dayClass = input<(date: IsoDate) => string>(() => '');\n\n /** Leaves picked days unmarked, for when a click does something other than pick. */\n readonly hideSelection = input(false);\n\n /** Every click on an available day, even one that's already picked. */\n readonly dayClick = output<IsoDate>();\n\n /** The month in view, on first render and whenever it changes. */\n readonly monthChange = output<CalendarView>();\n\n protected readonly dayTemplate = contentChild(UiCalendarDayDirective);\n\n protected readonly today = toIsoDate(new Date());\n\n // a string so picking a range end doesn't count as a change and jump the view\n private readonly anchorDate = computed(() =>\n this.mode() === 'range' ? this.range().start : this.value()\n );\n\n // the date keyboard focus sits on, follows the anchor until the user moves it\n private readonly activeDate = linkedSignal(\n () => parseIsoDate(this.anchorDate()) ?? parseIsoDate(this.today)!\n );\n\n // previews the end of a half picked range\n private readonly hoveredDate = signal<IsoDate | null>(null);\n\n protected readonly viewMonth = linkedSignal(() =>\n this.activeDate().getMonth()\n );\n protected readonly viewYear = linkedSignal(() =>\n this.activeDate().getFullYear()\n );\n\n protected readonly monthNames = computed(() => {\n const format = new Intl.DateTimeFormat(this.locale(), {\n month: 'long'\n });\n\n return Array.from(\n { length: 12 },\n (_, month) => format.format(new Date(2026, month, 1))\n );\n });\n\n protected readonly weekdays = computed(() => {\n const format = new Intl.DateTimeFormat(this.locale(), {\n weekday: 'short'\n });\n\n // 4 Jan 2026 is a Sunday\n return Array.from(\n { length: 7 },\n (_, index) =>\n format.format(\n new Date(2026, 0, 4 + (this.weekStart() + index) % 7)\n )\n .slice(0, 2)\n );\n });\n\n protected readonly monthSource = computed(() =>\n new SelectLocalDataSource(\n Array.from({ length: 12 }, (_, month) => month),\n () => true\n )\n );\n\n protected readonly yearSource = computed(() => {\n const current = new Date().getFullYear();\n const selected = parseIsoDate(this.anchorDate())?.getFullYear() ??\n current;\n const first = parseIsoDate(this.min())?.getFullYear() ??\n Math.min(current - YEARS_BACK, selected);\n const last = parseIsoDate(this.max())?.getFullYear() ??\n Math.max(current + YEARS_FORWARD, selected);\n\n // newest first, recent years are what people usually want\n const years = Array.from(\n { length: last - first + 1 },\n (_, index) => last - index\n );\n\n return new SelectLocalDataSource(years, () => true);\n });\n\n protected readonly displayMonth = (month: number) =>\n this.monthNames()[month];\n\n protected readonly days = computed<CalendarDay[]>(() => {\n const year = this.viewYear();\n const month = this.viewMonth();\n const { start, end, previewEnd } = this.rangeBounds();\n const labelFormat = new Intl.DateTimeFormat(this.locale(), {\n dateStyle: 'full'\n });\n\n const first = new Date(year, month, 1);\n const offset = (first.getDay() - this.weekStart() + 7) % 7;\n const gridStart = addDays(first, -offset);\n\n return Array.from({ length: GRID_DAYS }, (_, index) => {\n const date = addDays(gridStart, index);\n const iso = toIsoDate(date);\n\n return {\n iso,\n day: date.getDate(),\n label: labelFormat.format(date),\n isOutside: date.getMonth() !== month,\n isToday: iso === this.today,\n isSelected: iso === start || iso === end,\n isDisabled: this.isUnavailable(iso),\n isInRange: !!start &&\n !!previewEnd &&\n iso > start &&\n iso < previewEnd,\n isRangeStart: !!previewEnd &&\n iso === start &&\n start !== previewEnd,\n isRangeEnd: !!start &&\n iso === previewEnd &&\n start !== previewEnd,\n className: this.dayClass()(iso)\n };\n });\n });\n\n private readonly view = computed<CalendarView>(\n () => {\n const days = this.days();\n\n return {\n month: toIsoDate(\n new Date(this.viewYear(), this.viewMonth(), 1)\n ),\n start: days[0].iso,\n end: days[days.length - 1].iso\n };\n },\n // days() changes on every hover, only a new grid counts\n { equal: (a, b) => a.month === b.month && a.start === b.start }\n );\n\n private readonly rangeBounds = computed(() => {\n if (this.hideSelection()) {\n return { start: null, end: null, previewEnd: null };\n }\n\n if (this.mode() === 'single') {\n return { start: this.value(), end: null, previewEnd: null };\n }\n\n const { start, end } = this.range();\n const hovered = this.hoveredDate();\n const preview = !end && start && hovered && hovered > start\n ? hovered\n : null;\n\n return { start, end, previewEnd: end ?? preview };\n });\n\n /** Only one day is tabbable, arrow keys move between the rest. */\n protected readonly tabbableDate = computed(() => {\n const active = this.activeDate();\n const inView = active.getFullYear() === this.viewYear() &&\n active.getMonth() === this.viewMonth();\n\n return toIsoDate(\n inView ? active : new Date(this.viewYear(), this.viewMonth(), 1)\n );\n });\n\n protected readonly canGoBack = computed(() => {\n const min = this.min();\n const lastOfPrevious = new Date(this.viewYear(), this.viewMonth(), 0);\n\n return !min || toIsoDate(lastOfPrevious) >= min;\n });\n\n protected readonly canGoForward = computed(() => {\n const max = this.max();\n const firstOfNext = new Date(this.viewYear(), this.viewMonth() + 1, 1);\n\n return !max || toIsoDate(firstOfNext) <= max;\n });\n\n constructor() {\n effect(() => this.monthChange.emit(this.view()));\n }\n\n /** Moves focus onto the active day, e.g. when a datepicker opens. */\n focusActiveDate(): void {\n this.host.nativeElement\n .querySelector<HTMLButtonElement>(\n `[data-date=\"${this.tabbableDate()}\"]`\n )\n ?.focus();\n }\n\n protected showMonth(offset: number): void {\n const target = new Date(this.viewYear(), this.viewMonth() + offset, 1);\n\n this.viewYear.set(target.getFullYear());\n this.viewMonth.set(target.getMonth());\n }\n\n protected select(day: CalendarDay): void {\n if (day.isDisabled) {\n return;\n }\n\n this.dayClick.emit(day.iso);\n\n if (this.mode() === 'single') {\n this.value.set(day.iso);\n return;\n }\n\n const { start, end } = this.range();\n\n // a fresh click starts over, picking before the start moves the start\n if (!start || end || day.iso < start) {\n this.range.set({ start: day.iso, end: null });\n } else {\n this.range.set({ start, end: day.iso });\n }\n }\n\n protected preview(date: IsoDate | null): void {\n if (this.mode() === 'range') {\n this.hoveredDate.set(date);\n }\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n const current = parseIsoDate(this.tabbableDate())!;\n const target = this.keyTarget(event, current);\n\n if (!target) {\n return;\n }\n\n event.preventDefault();\n\n this.activeDate.set(target);\n this.viewYear.set(target.getFullYear());\n this.viewMonth.set(target.getMonth());\n\n afterNextRender(() => this.focusActiveDate(), {\n injector: this.injector\n });\n }\n\n private keyTarget(event: KeyboardEvent, current: Date): Date | null {\n const dayOfWeek = (current.getDay() - this.weekStart() + 7) % 7;\n\n switch (event.key) {\n case 'ArrowLeft':\n return addDays(current, -1);\n case 'ArrowRight':\n return addDays(current, 1);\n case 'ArrowUp':\n return addDays(current, -7);\n case 'ArrowDown':\n return addDays(current, 7);\n case 'Home':\n return addDays(current, -dayOfWeek);\n case 'End':\n return addDays(current, 6 - dayOfWeek);\n case 'PageUp':\n return addMonths(current, event.shiftKey ? -12 : -1);\n case 'PageDown':\n return addMonths(current, event.shiftKey ? 12 : 1);\n default:\n return null;\n }\n }\n\n private isUnavailable(iso: IsoDate): boolean {\n const min = this.min();\n const max = this.max();\n\n // ISO dates sort the same as strings\n return (!!min && iso < min) ||\n (!!max && iso > max) ||\n this.isDateDisabled()(iso);\n }\n}\n","<div class=\"ui-calendar-header\">\n <button\n type=\"button\"\n class=\"ui-calendar-nav\"\n aria-label=\"Previous month\"\n [disabled]=\"!canGoBack()\"\n (click)=\"showMonth(-1)\"\n >\n <ng-icon name=\"heroChevronLeft\" class=\"shrink-0\" />\n </button>\n\n <div class=\"ui-calendar-selects\">\n <ui-select\n class=\"ui-calendar-month\"\n [dataSource]=\"monthSource()\"\n [displayWith]=\"displayMonth\"\n [pageSize]=\"12\"\n [(selectedItem)]=\"viewMonth\"\n />\n <ui-select\n class=\"ui-calendar-year\"\n [dataSource]=\"yearSource()\"\n [pageSize]=\"500\"\n [(selectedItem)]=\"viewYear\"\n />\n </div>\n\n <button\n type=\"button\"\n class=\"ui-calendar-nav\"\n aria-label=\"Next month\"\n [disabled]=\"!canGoForward()\"\n (click)=\"showMonth(1)\"\n >\n <ng-icon name=\"heroChevronRight\" class=\"shrink-0\" />\n </button>\n</div>\n\n<div class=\"ui-calendar-weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdays(); track $index) {\n <span class=\"ui-calendar-weekday ui-text-caption\">{{ weekday }}</span>\n }\n</div>\n\n<div class=\"ui-calendar-grid\" (mouseleave)=\"preview(null)\">\n @for (day of days(); track day.iso) {\n <button\n type=\"button\"\n class=\"ui-calendar-day ui-text-body-alt\"\n [class]=\"day.className\"\n [attr.data-date]=\"day.iso\"\n [attr.data-outside]=\"day.isOutside ? '' : null\"\n [attr.data-today]=\"day.isToday ? '' : null\"\n [attr.data-in-range]=\"day.isInRange ? '' : null\"\n [attr.data-range-start]=\"day.isRangeStart ? '' : null\"\n [attr.data-range-end]=\"day.isRangeEnd ? '' : null\"\n [attr.aria-current]=\"day.isToday ? 'date' : null\"\n [attr.aria-pressed]=\"hideSelection() ? null : day.isSelected\"\n [attr.aria-label]=\"day.label\"\n [tabindex]=\"day.iso === tabbableDate() ? 0 : -1\"\n [attr.aria-disabled]=\"day.isDisabled || null\"\n (click)=\"select(day)\"\n (keydown)=\"handleKeydown($event)\"\n (mouseenter)=\"preview(day.iso)\"\n (focus)=\"preview(day.iso)\"\n >\n @if (dayTemplate(); as dayTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"dayTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: day.iso, day }\"\n />\n } @else {\n {{ day.day }}\n }\n </button>\n }\n</div>\n","/** Which day each calendar row starts on. 0 is Sunday, 1 is Monday. */\nexport const WeekStarts = [0, 1] as const;\n\n/** @see {@link WeekStarts} */\nexport type WeekStart = typeof WeekStarts[number];\n\n/** A date-only ISO string, e.g. \"2026-09-29\". */\nexport type IsoDate = string;\n\nexport interface CalendarDay {\n iso: IsoDate;\n day: number;\n label: string;\n isOutside: boolean;\n isToday: boolean;\n isSelected: boolean;\n isDisabled: boolean;\n isInRange: boolean;\n isRangeStart: boolean;\n isRangeEnd: boolean;\n /** Extra classes from the calendar's `dayClass`. */\n className: string;\n}\n\n/** The month a calendar shows, for loading what its days need. */\nexport interface CalendarView {\n /** First of the month, e.g. \"2026-11-01\". */\n month: IsoDate;\n /** First and last day in the grid, including days from the months either side. */\n start: IsoDate;\n end: IsoDate;\n}\n\nexport interface CalendarDayContext {\n $implicit: IsoDate;\n day: CalendarDay;\n}\n\n/** A local date and time ISO string, e.g. \"2026-09-29T14:30\". */\nexport type IsoDateTime = string;\n\n/** Whether a calendar picks one date or a start and end. */\nexport const CalendarModes = ['single', 'range'] as const;\n\n/** @see {@link CalendarModes} */\nexport type CalendarMode = typeof CalendarModes[number];\n\nexport interface DateRange {\n start: IsoDate | null;\n end: IsoDate | null;\n}\n"],"mappings":";;;;;;AAYA,IAAa,yBAAb,MAAa,uBAAsB;CACtB,WAAW,OAAwC,WA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