yukit-web 0.10.6 → 0.10.8

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 (193) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24592 -9669
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/src/lib/theme/components/button.css +14 -0
  129. package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
  130. package/src/lib/theme/tokens/component-colors.css +6 -2
  131. package/types/yukit-web-chart.d.ts +184 -125
  132. package/types/yukit-web-helm-accordion.d.ts +49 -28
  133. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  134. package/types/yukit-web-helm-alert.d.ts +30 -32
  135. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  136. package/types/yukit-web-helm-attachment.d.ts +97 -69
  137. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  138. package/types/yukit-web-helm-avatar.d.ts +44 -39
  139. package/types/yukit-web-helm-badge.d.ts +18 -17
  140. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  141. package/types/yukit-web-helm-bubble.d.ts +54 -40
  142. package/types/yukit-web-helm-button-group.d.ts +29 -22
  143. package/types/yukit-web-helm-button.d.ts +41 -31
  144. package/types/yukit-web-helm-calendar.d.ts +157 -85
  145. package/types/yukit-web-helm-card.d.ts +38 -42
  146. package/types/yukit-web-helm-carousel.d.ts +105 -73
  147. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  148. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  149. package/types/yukit-web-helm-combobox.d.ts +355 -150
  150. package/types/yukit-web-helm-command.d.ts +140 -73
  151. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  152. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  153. package/types/yukit-web-helm-dialog.d.ts +106 -78
  154. package/types/yukit-web-helm-drawer.d.ts +90 -61
  155. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  156. package/types/yukit-web-helm-empty.d.ts +38 -42
  157. package/types/yukit-web-helm-field.d.ts +122 -91
  158. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  159. package/types/yukit-web-helm-input-group.d.ts +63 -41
  160. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  161. package/types/yukit-web-helm-input.d.ts +19 -12
  162. package/types/yukit-web-helm-item.d.ts +90 -82
  163. package/types/yukit-web-helm-kbd.d.ts +10 -15
  164. package/types/yukit-web-helm-label.d.ts +14 -11
  165. package/types/yukit-web-helm-marker.d.ts +26 -27
  166. package/types/yukit-web-helm-menubar.d.ts +61 -32
  167. package/types/yukit-web-helm-message.d.ts +34 -38
  168. package/types/yukit-web-helm-native-select.d.ts +102 -61
  169. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  170. package/types/yukit-web-helm-pagination.d.ts +344 -166
  171. package/types/yukit-web-helm-popover.d.ts +62 -42
  172. package/types/yukit-web-helm-progress.d.ts +27 -20
  173. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  174. package/types/yukit-web-helm-resizable.d.ts +46 -24
  175. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  176. package/types/yukit-web-helm-select.d.ts +231 -114
  177. package/types/yukit-web-helm-separator.d.ts +15 -12
  178. package/types/yukit-web-helm-sheet.d.ts +94 -65
  179. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  180. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  181. package/types/yukit-web-helm-slider.d.ts +33 -13
  182. package/types/yukit-web-helm-sonner.d.ts +112 -51
  183. package/types/yukit-web-helm-spinner.d.ts +24 -17
  184. package/types/yukit-web-helm-switch.d.ts +89 -51
  185. package/types/yukit-web-helm-table.d.ts +38 -42
  186. package/types/yukit-web-helm-tabs.d.ts +116 -60
  187. package/types/yukit-web-helm-textarea.d.ts +19 -12
  188. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  189. package/types/yukit-web-helm-toggle.d.ts +39 -21
  190. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  191. package/types/yukit-web-helm-typography.d.ts +62 -77
  192. package/types/yukit-web-helm-utils.d.ts +8 -11
  193. package/types/yukit-web.d.ts +5125 -2357
@@ -1,43 +1,87 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { input, inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
4
- import { provideIcons, NgIcon } from '@ng-icons/core';
5
- import { lucideChevronRight, lucideChevronLeft } from '@ng-icons/lucide';
6
- import * as i1 from '@spartan-ng/brain/calendar';
7
- import { injectBrnCalendarI18n, BrnCalendar, BrnCalendarImports, BrnCalendarMulti, BrnCalendarRange, BrnMonthYearCalendar } from '@spartan-ng/brain/calendar';
8
- import { injectDateAdapter } from '@spartan-ng/brain/date-time';
9
- import * as i3 from 'yukit-web/helm/button';
10
- import { buttonVariants, HlmButtonImports } from 'yukit-web/helm/button';
11
- import * as i2 from 'yukit-web/helm/select';
12
- import { HlmSelectImports } from 'yukit-web/helm/select';
13
- import { hlm, classes } from 'yukit-web/helm/utils';
14
-
15
- class HlmCalendar {
16
- constructor() {
17
- /** Access the calendar i18n */
18
- this._i18n = injectBrnCalendarI18n();
19
- /** Access the date time adapter */
20
- this._dateAdapter = injectDateAdapter();
21
- /** Show dropdowns to navigate between months or years. */
22
- this.captionLayout = input('label', ...(ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []));
23
- /** Access the calendar directive */
24
- this._calendar = inject(BrnCalendar);
25
- /** Get the heading for the current month and year */
26
- this._heading = computed(() => {
27
- const config = this._i18n.config();
28
- const date = this._calendar.focusedDate();
29
- return {
30
- header: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),
31
- month: config.formatMonth(this._dateAdapter.getMonth(date)),
32
- year: config.formatYear(this._dateAdapter.getYear(date)),
33
- };
34
- }, ...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
35
- this._btnClass = hlm(buttonVariants({ variant: 'ghost', size: 'icon' }), 'data-[today=true]:bg-muted group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:bg-muted/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70', 'data-[outside=true]:opacity-50', "data-[highlighted]:before:content-['']", 'data-[highlighted]:before:absolute', 'data-[highlighted]:before:bottom-1', 'data-[highlighted]:before:start-1/2', 'data-[highlighted]:before:h-1', 'data-[highlighted]:before:w-1', 'data-[highlighted]:before:-translate-x-1/2', 'data-[highlighted]:before:rounded-full', 'data-[highlighted]:before:bg-destructive');
36
- this._selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';
37
- classes(() => 'p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
38
- }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmCalendar, isStandalone: true, selector: "hlm-calendar", inputs: { captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "calendar" } }, hostDirectives: [{ directive: i1.BrnCalendar, inputs: ["min", "min", "max", "max", "disabled", "disabled", "date", "date", "dateDisabled", "dateDisabled", "weekStartsOn", "weekStartsOn", "highlightDays", "highlightDays", "defaultFocusedDate", "defaultFocusedDate"], outputs: ["dateChange", "dateChange"] }], ngImport: i0, template: `
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, computed, inject, input } from "@angular/core";
4
+ import { NgIcon, provideIcons } from "@ng-icons/core";
5
+ import { lucideChevronLeft, lucideChevronRight } from "@ng-icons/lucide";
6
+ import * as i1 from "@spartan-ng/brain/calendar";
7
+ import { BrnCalendar, BrnCalendarImports, BrnCalendarMulti, BrnCalendarRange, BrnMonthYearCalendar, injectBrnCalendarI18n } from "@spartan-ng/brain/calendar";
8
+ import { injectDateAdapter } from "@spartan-ng/brain/date-time";
9
+ import * as i3 from "yukit-web/helm/button";
10
+ import { HlmButtonImports, buttonVariants } from "yukit-web/helm/button";
11
+ import * as i2 from "yukit-web/helm/select";
12
+ import { HlmSelectImports } from "yukit-web/helm/select";
13
+ import { classes, hlm } from "yukit-web/helm/utils";
14
+ var HlmCalendar = class HlmCalendar {
15
+ constructor() {
16
+ this._i18n = injectBrnCalendarI18n();
17
+ this._dateAdapter = injectDateAdapter();
18
+ this.captionLayout = input("label", ...ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []);
19
+ this._calendar = inject(BrnCalendar);
20
+ this._heading = computed(() => {
21
+ const config = this._i18n.config();
22
+ const date = this._calendar.focusedDate();
23
+ return {
24
+ header: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),
25
+ month: config.formatMonth(this._dateAdapter.getMonth(date)),
26
+ year: config.formatYear(this._dateAdapter.getYear(date))
27
+ };
28
+ }, ...ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []);
29
+ this._btnClass = hlm(buttonVariants({
30
+ variant: "ghost",
31
+ size: "icon"
32
+ }), "data-[today=true]:bg-muted group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:bg-muted/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70", "data-[outside=true]:opacity-50", "data-[highlighted]:before:content-['']", "data-[highlighted]:before:absolute", "data-[highlighted]:before:bottom-1", "data-[highlighted]:before:start-1/2", "data-[highlighted]:before:h-1", "data-[highlighted]:before:w-1", "data-[highlighted]:before:-translate-x-1/2", "data-[highlighted]:before:rounded-full", "data-[highlighted]:before:bg-destructive");
33
+ this._selectClass = "gap-0 px-1.5 py-2 [&>ng-icon]:ms-1";
34
+ classes(() => "p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent");
35
+ }
36
+ static {
37
+ this.ɵfac = i0.ɵɵngDeclareFactory({
38
+ minVersion: "12.0.0",
39
+ version: "22.2.4",
40
+ ngImport: i0,
41
+ type: HlmCalendar,
42
+ deps: [],
43
+ target: i0.ɵɵFactoryTarget.Component
44
+ });
45
+ }
46
+ static {
47
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
48
+ minVersion: "17.0.0",
49
+ version: "22.2.4",
50
+ type: HlmCalendar,
51
+ isStandalone: true,
52
+ selector: "hlm-calendar",
53
+ inputs: { captionLayout: {
54
+ classPropertyName: "captionLayout",
55
+ publicName: "captionLayout",
56
+ isSignal: true,
57
+ isRequired: false,
58
+ transformFunction: null
59
+ } },
60
+ host: { attributes: { "data-slot": "calendar" } },
61
+ hostDirectives: [{
62
+ directive: i1.BrnCalendar,
63
+ inputs: [
64
+ "min",
65
+ "min",
66
+ "max",
67
+ "max",
68
+ "disabled",
69
+ "disabled",
70
+ "date",
71
+ "date",
72
+ "dateDisabled",
73
+ "dateDisabled",
74
+ "weekStartsOn",
75
+ "weekStartsOn",
76
+ "highlightDays",
77
+ "highlightDays",
78
+ "defaultFocusedDate",
79
+ "defaultFocusedDate"
80
+ ],
81
+ outputs: ["dateChange", "dateChange"]
82
+ }],
83
+ ngImport: i0,
84
+ template: `
41
85
  <div class="inline-flex flex-col gap-4">
42
86
  <!-- Header -->
43
87
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -138,24 +182,178 @@ class HlmCalendar {
138
182
  </tbody>
139
183
  </table>
140
184
  </div>
141
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.BrnCalendarCellButton, selector: "button[brnCalendarCellButton]", inputs: ["date"] }, { kind: "directive", type: i1.BrnCalendarGrid, selector: "[brnCalendarGrid]" }, { kind: "directive", type: i1.BrnCalendarHeader, selector: "[brnCalendarHeader]", inputs: ["id"] }, { kind: "directive", type: i1.BrnCalendarNextButton, selector: "button[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "button[brnCalendarPreviousButton]" }, { kind: "directive", type: i1.BrnCalendarWeek, selector: "[brnCalendarWeek]" }, { kind: "directive", type: i1.BrnCalendarWeekday, selector: "[brnCalendarWeekday]" }, { kind: "directive", type: i1.BrnCalendarCell, selector: "[brnCalendarCell]" }, { kind: "directive", type: i1.BrnCalendarMonthSelect, selector: "brnSelect[brnCalendarMonthSelect],hlm-select[brnCalendarMonthSelect]" }, { kind: "directive", type: i1.BrnCalendarYearSelect, selector: "brnSelect[brnCalendarYearSelect],hlm-select[brnCalendarYearSelect]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: i2.HlmSelect, selector: "[hlmSelect],hlm-select" }, { kind: "component", type: i2.HlmSelectContent, selector: "hlm-select-content", inputs: ["showScroll"] }, { kind: "directive", type: i2.HlmSelectGroup, selector: "[hlmSelectGroup],hlm-select-group" }, { kind: "component", type: i2.HlmSelectItem, selector: "hlm-select-item" }, { kind: "directive", type: i2.HlmSelectPortal, selector: "[hlmSelectPortal]" }, { kind: "component", type: i2.HlmSelectTrigger, selector: "hlm-select-trigger", inputs: ["class", "buttonId", "size", "forceInvalid"] }, { kind: "directive", type: i2.HlmSelectValue, selector: "[hlmSelectValue],hlm-select-value" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.HlmButton, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
- }
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCalendar, decorators: [{
144
- type: Component,
145
- args: [{
146
- selector: 'hlm-calendar',
147
- imports: [BrnCalendarImports, NgIcon, HlmSelectImports, NgTemplateOutlet, HlmButtonImports],
148
- viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],
149
- changeDetection: ChangeDetectionStrategy.OnPush,
150
- hostDirectives: [
151
- {
152
- directive: BrnCalendar,
153
- inputs: ['min', 'max', 'disabled', 'date', 'dateDisabled', 'weekStartsOn', 'highlightDays', 'defaultFocusedDate'],
154
- outputs: ['dateChange'],
155
- },
156
- ],
157
- host: { 'data-slot': 'calendar' },
158
- template: `
185
+ `,
186
+ isInline: true,
187
+ dependencies: [
188
+ {
189
+ kind: "directive",
190
+ type: i1.BrnCalendarCellButton,
191
+ selector: "button[brnCalendarCellButton]",
192
+ inputs: ["date"]
193
+ },
194
+ {
195
+ kind: "directive",
196
+ type: i1.BrnCalendarGrid,
197
+ selector: "[brnCalendarGrid]"
198
+ },
199
+ {
200
+ kind: "directive",
201
+ type: i1.BrnCalendarHeader,
202
+ selector: "[brnCalendarHeader]",
203
+ inputs: ["id"]
204
+ },
205
+ {
206
+ kind: "directive",
207
+ type: i1.BrnCalendarNextButton,
208
+ selector: "button[brnCalendarNextButton]"
209
+ },
210
+ {
211
+ kind: "directive",
212
+ type: i1.BrnCalendarPreviousButton,
213
+ selector: "button[brnCalendarPreviousButton]"
214
+ },
215
+ {
216
+ kind: "directive",
217
+ type: i1.BrnCalendarWeek,
218
+ selector: "[brnCalendarWeek]"
219
+ },
220
+ {
221
+ kind: "directive",
222
+ type: i1.BrnCalendarWeekday,
223
+ selector: "[brnCalendarWeekday]"
224
+ },
225
+ {
226
+ kind: "directive",
227
+ type: i1.BrnCalendarCell,
228
+ selector: "[brnCalendarCell]"
229
+ },
230
+ {
231
+ kind: "directive",
232
+ type: i1.BrnCalendarMonthSelect,
233
+ selector: "brnSelect[brnCalendarMonthSelect],hlm-select[brnCalendarMonthSelect]"
234
+ },
235
+ {
236
+ kind: "directive",
237
+ type: i1.BrnCalendarYearSelect,
238
+ selector: "brnSelect[brnCalendarYearSelect],hlm-select[brnCalendarYearSelect]"
239
+ },
240
+ {
241
+ kind: "component",
242
+ type: NgIcon,
243
+ selector: "ng-icon",
244
+ inputs: [
245
+ "name",
246
+ "svg",
247
+ "size",
248
+ "strokeWidth",
249
+ "color"
250
+ ]
251
+ },
252
+ {
253
+ kind: "directive",
254
+ type: i2.HlmSelect,
255
+ selector: "[hlmSelect],hlm-select"
256
+ },
257
+ {
258
+ kind: "component",
259
+ type: i2.HlmSelectContent,
260
+ selector: "hlm-select-content",
261
+ inputs: ["showScroll"]
262
+ },
263
+ {
264
+ kind: "directive",
265
+ type: i2.HlmSelectGroup,
266
+ selector: "[hlmSelectGroup],hlm-select-group"
267
+ },
268
+ {
269
+ kind: "component",
270
+ type: i2.HlmSelectItem,
271
+ selector: "hlm-select-item"
272
+ },
273
+ {
274
+ kind: "directive",
275
+ type: i2.HlmSelectPortal,
276
+ selector: "[hlmSelectPortal]"
277
+ },
278
+ {
279
+ kind: "component",
280
+ type: i2.HlmSelectTrigger,
281
+ selector: "hlm-select-trigger",
282
+ inputs: [
283
+ "class",
284
+ "buttonId",
285
+ "size",
286
+ "forceInvalid"
287
+ ]
288
+ },
289
+ {
290
+ kind: "directive",
291
+ type: i2.HlmSelectValue,
292
+ selector: "[hlmSelectValue],hlm-select-value"
293
+ },
294
+ {
295
+ kind: "directive",
296
+ type: NgTemplateOutlet,
297
+ selector: "[ngTemplateOutlet]",
298
+ inputs: [
299
+ "ngTemplateOutletContext",
300
+ "ngTemplateOutlet",
301
+ "ngTemplateOutletInjector"
302
+ ]
303
+ },
304
+ {
305
+ kind: "directive",
306
+ type: i3.HlmButton,
307
+ selector: "button[hlmBtn], a[hlmBtn]",
308
+ inputs: ["variant", "size"],
309
+ exportAs: ["hlmBtn"]
310
+ }
311
+ ],
312
+ viewProviders: [provideIcons({
313
+ lucideChevronLeft,
314
+ lucideChevronRight
315
+ })],
316
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
317
+ });
318
+ }
319
+ };
320
+ i0.ɵɵngDeclareClassMetadata({
321
+ minVersion: "12.0.0",
322
+ version: "22.2.4",
323
+ ngImport: i0,
324
+ type: HlmCalendar,
325
+ decorators: [{
326
+ type: Component,
327
+ args: [{
328
+ selector: "hlm-calendar",
329
+ imports: [
330
+ BrnCalendarImports,
331
+ NgIcon,
332
+ HlmSelectImports,
333
+ NgTemplateOutlet,
334
+ HlmButtonImports
335
+ ],
336
+ viewProviders: [provideIcons({
337
+ lucideChevronLeft,
338
+ lucideChevronRight
339
+ })],
340
+ changeDetection: ChangeDetectionStrategy.OnPush,
341
+ hostDirectives: [{
342
+ directive: BrnCalendar,
343
+ inputs: [
344
+ "min",
345
+ "max",
346
+ "disabled",
347
+ "date",
348
+ "dateDisabled",
349
+ "weekStartsOn",
350
+ "highlightDays",
351
+ "defaultFocusedDate"
352
+ ],
353
+ outputs: ["dateChange"]
354
+ }],
355
+ host: { "data-slot": "calendar" },
356
+ template: `
159
357
  <div class="inline-flex flex-col gap-4">
160
358
  <!-- Header -->
161
359
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -256,36 +454,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
256
454
  </tbody>
257
455
  </table>
258
456
  </div>
259
- `,
260
- }]
261
- }], ctorParameters: () => [], propDecorators: { captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }] } });
262
-
263
- class HlmCalendarMulti {
264
- constructor() {
265
- /** Show dropdowns to navigate between months or years. */
266
- this.captionLayout = input('label', ...(ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []));
267
- /** Access the calendar i18n */
268
- this._i18n = injectBrnCalendarI18n();
269
- /** Access the date time adapter */
270
- this._dateAdapter = injectDateAdapter();
271
- /** Access the calendar directive */
272
- this._calendar = inject(BrnCalendarMulti);
273
- /** Get the heading for the current month and year */
274
- this._heading = computed(() => {
275
- const config = this._i18n.config();
276
- const date = this._calendar.focusedDate();
277
- return {
278
- header: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),
279
- month: config.formatMonth(this._dateAdapter.getMonth(date)),
280
- year: config.formatYear(this._dateAdapter.getYear(date)),
281
- };
282
- }, ...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
283
- this._btnClass = hlm(buttonVariants({ variant: 'ghost', size: 'icon' }), 'data-[today=true]:bg-muted group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:bg-muted/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70', 'data-[outside=true]:opacity-50', "data-[highlighted]:before:content-['']", 'data-[highlighted]:before:absolute', 'data-[highlighted]:before:bottom-1', 'data-[highlighted]:before:start-1/2', 'data-[highlighted]:before:h-1', 'data-[highlighted]:before:w-1', 'data-[highlighted]:before:-translate-x-1/2', 'data-[highlighted]:before:rounded-full', 'data-[highlighted]:before:bg-destructive');
284
- this._selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';
285
- classes(() => 'p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
286
- }
287
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCalendarMulti, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
288
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmCalendarMulti, isStandalone: true, selector: "hlm-calendar-multi", inputs: { captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "calendar" } }, hostDirectives: [{ directive: i1.BrnCalendarMulti, inputs: ["min", "min", "max", "max", "minSelection", "minSelection", "maxSelection", "maxSelection", "disabled", "disabled", "date", "date", "dateDisabled", "dateDisabled", "weekStartsOn", "weekStartsOn", "highlightDays", "highlightDays", "defaultFocusedDate", "defaultFocusedDate"], outputs: ["dateChange", "dateChange"] }], ngImport: i0, template: `
457
+ `
458
+ }]
459
+ }],
460
+ ctorParameters: () => [],
461
+ propDecorators: { captionLayout: [{
462
+ type: i0.Input,
463
+ args: [{
464
+ isSignal: true,
465
+ alias: "captionLayout",
466
+ required: false
467
+ }]
468
+ }] }
469
+ });
470
+ var HlmCalendarMulti = class HlmCalendarMulti {
471
+ constructor() {
472
+ this.captionLayout = input("label", ...ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []);
473
+ this._i18n = injectBrnCalendarI18n();
474
+ this._dateAdapter = injectDateAdapter();
475
+ this._calendar = inject(BrnCalendarMulti);
476
+ this._heading = computed(() => {
477
+ const config = this._i18n.config();
478
+ const date = this._calendar.focusedDate();
479
+ return {
480
+ header: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),
481
+ month: config.formatMonth(this._dateAdapter.getMonth(date)),
482
+ year: config.formatYear(this._dateAdapter.getYear(date))
483
+ };
484
+ }, ...ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []);
485
+ this._btnClass = hlm(buttonVariants({
486
+ variant: "ghost",
487
+ size: "icon"
488
+ }), "data-[today=true]:bg-muted group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:bg-muted/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70", "data-[outside=true]:opacity-50", "data-[highlighted]:before:content-['']", "data-[highlighted]:before:absolute", "data-[highlighted]:before:bottom-1", "data-[highlighted]:before:start-1/2", "data-[highlighted]:before:h-1", "data-[highlighted]:before:w-1", "data-[highlighted]:before:-translate-x-1/2", "data-[highlighted]:before:rounded-full", "data-[highlighted]:before:bg-destructive");
489
+ this._selectClass = "gap-0 px-1.5 py-2 [&>ng-icon]:ms-1";
490
+ classes(() => "p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent");
491
+ }
492
+ static {
493
+ this.ɵfac = i0.ɵɵngDeclareFactory({
494
+ minVersion: "12.0.0",
495
+ version: "22.2.4",
496
+ ngImport: i0,
497
+ type: HlmCalendarMulti,
498
+ deps: [],
499
+ target: i0.ɵɵFactoryTarget.Component
500
+ });
501
+ }
502
+ static {
503
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
504
+ minVersion: "17.0.0",
505
+ version: "22.2.4",
506
+ type: HlmCalendarMulti,
507
+ isStandalone: true,
508
+ selector: "hlm-calendar-multi",
509
+ inputs: { captionLayout: {
510
+ classPropertyName: "captionLayout",
511
+ publicName: "captionLayout",
512
+ isSignal: true,
513
+ isRequired: false,
514
+ transformFunction: null
515
+ } },
516
+ host: { attributes: { "data-slot": "calendar" } },
517
+ hostDirectives: [{
518
+ directive: i1.BrnCalendarMulti,
519
+ inputs: [
520
+ "min",
521
+ "min",
522
+ "max",
523
+ "max",
524
+ "minSelection",
525
+ "minSelection",
526
+ "maxSelection",
527
+ "maxSelection",
528
+ "disabled",
529
+ "disabled",
530
+ "date",
531
+ "date",
532
+ "dateDisabled",
533
+ "dateDisabled",
534
+ "weekStartsOn",
535
+ "weekStartsOn",
536
+ "highlightDays",
537
+ "highlightDays",
538
+ "defaultFocusedDate",
539
+ "defaultFocusedDate"
540
+ ],
541
+ outputs: ["dateChange", "dateChange"]
542
+ }],
543
+ ngImport: i0,
544
+ template: `
289
545
  <div class="inline-flex flex-col space-y-4">
290
546
  <!-- Header -->
291
547
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -386,35 +642,180 @@ class HlmCalendarMulti {
386
642
  </tbody>
387
643
  </table>
388
644
  </div>
389
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.BrnCalendarCellButton, selector: "button[brnCalendarCellButton]", inputs: ["date"] }, { kind: "directive", type: i1.BrnCalendarGrid, selector: "[brnCalendarGrid]" }, { kind: "directive", type: i1.BrnCalendarHeader, selector: "[brnCalendarHeader]", inputs: ["id"] }, { kind: "directive", type: i1.BrnCalendarNextButton, selector: "button[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "button[brnCalendarPreviousButton]" }, { kind: "directive", type: i1.BrnCalendarWeek, selector: "[brnCalendarWeek]" }, { kind: "directive", type: i1.BrnCalendarWeekday, selector: "[brnCalendarWeekday]" }, { kind: "directive", type: i1.BrnCalendarCell, selector: "[brnCalendarCell]" }, { kind: "directive", type: i1.BrnCalendarMonthSelect, selector: "brnSelect[brnCalendarMonthSelect],hlm-select[brnCalendarMonthSelect]" }, { kind: "directive", type: i1.BrnCalendarYearSelect, selector: "brnSelect[brnCalendarYearSelect],hlm-select[brnCalendarYearSelect]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.HlmSelect, selector: "[hlmSelect],hlm-select" }, { kind: "component", type: i2.HlmSelectContent, selector: "hlm-select-content", inputs: ["showScroll"] }, { kind: "directive", type: i2.HlmSelectGroup, selector: "[hlmSelectGroup],hlm-select-group" }, { kind: "component", type: i2.HlmSelectItem, selector: "hlm-select-item" }, { kind: "directive", type: i2.HlmSelectPortal, selector: "[hlmSelectPortal]" }, { kind: "component", type: i2.HlmSelectTrigger, selector: "hlm-select-trigger", inputs: ["class", "buttonId", "size", "forceInvalid"] }, { kind: "directive", type: i2.HlmSelectValue, selector: "[hlmSelectValue],hlm-select-value" }, { kind: "directive", type: i3.HlmButton, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
390
- }
391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCalendarMulti, decorators: [{
392
- type: Component,
393
- args: [{
394
- selector: 'hlm-calendar-multi',
395
- imports: [BrnCalendarImports, NgIcon, NgTemplateOutlet, HlmSelectImports, HlmButtonImports],
396
- viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],
397
- changeDetection: ChangeDetectionStrategy.OnPush,
398
- hostDirectives: [
399
- {
400
- directive: BrnCalendarMulti,
401
- inputs: [
402
- 'min',
403
- 'max',
404
- 'minSelection',
405
- 'maxSelection',
406
- 'disabled',
407
- 'date',
408
- 'dateDisabled',
409
- 'weekStartsOn',
410
- 'highlightDays',
411
- 'defaultFocusedDate',
412
- ],
413
- outputs: ['dateChange'],
414
- },
415
- ],
416
- host: { 'data-slot': 'calendar' },
417
- template: `
645
+ `,
646
+ isInline: true,
647
+ dependencies: [
648
+ {
649
+ kind: "directive",
650
+ type: i1.BrnCalendarCellButton,
651
+ selector: "button[brnCalendarCellButton]",
652
+ inputs: ["date"]
653
+ },
654
+ {
655
+ kind: "directive",
656
+ type: i1.BrnCalendarGrid,
657
+ selector: "[brnCalendarGrid]"
658
+ },
659
+ {
660
+ kind: "directive",
661
+ type: i1.BrnCalendarHeader,
662
+ selector: "[brnCalendarHeader]",
663
+ inputs: ["id"]
664
+ },
665
+ {
666
+ kind: "directive",
667
+ type: i1.BrnCalendarNextButton,
668
+ selector: "button[brnCalendarNextButton]"
669
+ },
670
+ {
671
+ kind: "directive",
672
+ type: i1.BrnCalendarPreviousButton,
673
+ selector: "button[brnCalendarPreviousButton]"
674
+ },
675
+ {
676
+ kind: "directive",
677
+ type: i1.BrnCalendarWeek,
678
+ selector: "[brnCalendarWeek]"
679
+ },
680
+ {
681
+ kind: "directive",
682
+ type: i1.BrnCalendarWeekday,
683
+ selector: "[brnCalendarWeekday]"
684
+ },
685
+ {
686
+ kind: "directive",
687
+ type: i1.BrnCalendarCell,
688
+ selector: "[brnCalendarCell]"
689
+ },
690
+ {
691
+ kind: "directive",
692
+ type: i1.BrnCalendarMonthSelect,
693
+ selector: "brnSelect[brnCalendarMonthSelect],hlm-select[brnCalendarMonthSelect]"
694
+ },
695
+ {
696
+ kind: "directive",
697
+ type: i1.BrnCalendarYearSelect,
698
+ selector: "brnSelect[brnCalendarYearSelect],hlm-select[brnCalendarYearSelect]"
699
+ },
700
+ {
701
+ kind: "component",
702
+ type: NgIcon,
703
+ selector: "ng-icon",
704
+ inputs: [
705
+ "name",
706
+ "svg",
707
+ "size",
708
+ "strokeWidth",
709
+ "color"
710
+ ]
711
+ },
712
+ {
713
+ kind: "directive",
714
+ type: NgTemplateOutlet,
715
+ selector: "[ngTemplateOutlet]",
716
+ inputs: [
717
+ "ngTemplateOutletContext",
718
+ "ngTemplateOutlet",
719
+ "ngTemplateOutletInjector"
720
+ ]
721
+ },
722
+ {
723
+ kind: "directive",
724
+ type: i2.HlmSelect,
725
+ selector: "[hlmSelect],hlm-select"
726
+ },
727
+ {
728
+ kind: "component",
729
+ type: i2.HlmSelectContent,
730
+ selector: "hlm-select-content",
731
+ inputs: ["showScroll"]
732
+ },
733
+ {
734
+ kind: "directive",
735
+ type: i2.HlmSelectGroup,
736
+ selector: "[hlmSelectGroup],hlm-select-group"
737
+ },
738
+ {
739
+ kind: "component",
740
+ type: i2.HlmSelectItem,
741
+ selector: "hlm-select-item"
742
+ },
743
+ {
744
+ kind: "directive",
745
+ type: i2.HlmSelectPortal,
746
+ selector: "[hlmSelectPortal]"
747
+ },
748
+ {
749
+ kind: "component",
750
+ type: i2.HlmSelectTrigger,
751
+ selector: "hlm-select-trigger",
752
+ inputs: [
753
+ "class",
754
+ "buttonId",
755
+ "size",
756
+ "forceInvalid"
757
+ ]
758
+ },
759
+ {
760
+ kind: "directive",
761
+ type: i2.HlmSelectValue,
762
+ selector: "[hlmSelectValue],hlm-select-value"
763
+ },
764
+ {
765
+ kind: "directive",
766
+ type: i3.HlmButton,
767
+ selector: "button[hlmBtn], a[hlmBtn]",
768
+ inputs: ["variant", "size"],
769
+ exportAs: ["hlmBtn"]
770
+ }
771
+ ],
772
+ viewProviders: [provideIcons({
773
+ lucideChevronLeft,
774
+ lucideChevronRight
775
+ })],
776
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
777
+ });
778
+ }
779
+ };
780
+ i0.ɵɵngDeclareClassMetadata({
781
+ minVersion: "12.0.0",
782
+ version: "22.2.4",
783
+ ngImport: i0,
784
+ type: HlmCalendarMulti,
785
+ decorators: [{
786
+ type: Component,
787
+ args: [{
788
+ selector: "hlm-calendar-multi",
789
+ imports: [
790
+ BrnCalendarImports,
791
+ NgIcon,
792
+ NgTemplateOutlet,
793
+ HlmSelectImports,
794
+ HlmButtonImports
795
+ ],
796
+ viewProviders: [provideIcons({
797
+ lucideChevronLeft,
798
+ lucideChevronRight
799
+ })],
800
+ changeDetection: ChangeDetectionStrategy.OnPush,
801
+ hostDirectives: [{
802
+ directive: BrnCalendarMulti,
803
+ inputs: [
804
+ "min",
805
+ "max",
806
+ "minSelection",
807
+ "maxSelection",
808
+ "disabled",
809
+ "date",
810
+ "dateDisabled",
811
+ "weekStartsOn",
812
+ "highlightDays",
813
+ "defaultFocusedDate"
814
+ ],
815
+ outputs: ["dateChange"]
816
+ }],
817
+ host: { "data-slot": "calendar" },
818
+ template: `
418
819
  <div class="inline-flex flex-col space-y-4">
419
820
  <!-- Header -->
420
821
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -515,36 +916,97 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
515
916
  </tbody>
516
917
  </table>
517
918
  </div>
518
- `,
519
- }]
520
- }], ctorParameters: () => [], propDecorators: { captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }] } });
521
-
522
- class HlmCalendarRange {
523
- constructor() {
524
- /** Show dropdowns to navigate between months or years. */
525
- this.captionLayout = input('label', ...(ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []));
526
- /** Access the calendar i18n */
527
- this._i18n = injectBrnCalendarI18n();
528
- /** Access the date time adapter */
529
- this._dateAdapter = injectDateAdapter();
530
- /** Access the calendar directive */
531
- this._calendar = inject(BrnCalendarRange);
532
- /** Get the heading for the current month and year */
533
- this._heading = computed(() => {
534
- const config = this._i18n.config();
535
- const date = this._calendar.focusedDate();
536
- return {
537
- header: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),
538
- month: config.formatMonth(this._dateAdapter.getMonth(date)),
539
- year: config.formatYear(this._dateAdapter.getYear(date)),
540
- };
541
- }, ...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
542
- this._btnClass = hlm(buttonVariants({ variant: 'ghost', size: 'icon' }), 'data-[today=true]:bg-muted group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:bg-muted/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70', 'data-[outside=true]:opacity-50', "data-[highlighted]:before:content-['']", 'data-[highlighted]:before:absolute', 'data-[highlighted]:before:bottom-1', 'data-[highlighted]:before:start-1/2', 'data-[highlighted]:before:h-1', 'data-[highlighted]:before:w-1', 'data-[highlighted]:before:-translate-x-1/2', 'data-[highlighted]:before:rounded-full', 'data-[highlighted]:before:bg-destructive');
543
- this._selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';
544
- classes(() => 'p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
545
- }
546
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCalendarRange, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
547
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmCalendarRange, isStandalone: true, selector: "hlm-calendar-range", inputs: { captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "calendar" } }, hostDirectives: [{ directive: i1.BrnCalendarRange, inputs: ["min", "min", "max", "max", "disabled", "disabled", "startDate", "startDate", "endDate", "endDate", "dateDisabled", "dateDisabled", "weekStartsOn", "weekStartsOn", "highlightDays", "highlightDays", "defaultFocusedDate", "defaultFocusedDate"], outputs: ["endDateChange", "endDateChange", "startDateChange", "startDateChange"] }], ngImport: i0, template: `
919
+ `
920
+ }]
921
+ }],
922
+ ctorParameters: () => [],
923
+ propDecorators: { captionLayout: [{
924
+ type: i0.Input,
925
+ args: [{
926
+ isSignal: true,
927
+ alias: "captionLayout",
928
+ required: false
929
+ }]
930
+ }] }
931
+ });
932
+ var HlmCalendarRange = class HlmCalendarRange {
933
+ constructor() {
934
+ this.captionLayout = input("label", ...ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []);
935
+ this._i18n = injectBrnCalendarI18n();
936
+ this._dateAdapter = injectDateAdapter();
937
+ this._calendar = inject(BrnCalendarRange);
938
+ this._heading = computed(() => {
939
+ const config = this._i18n.config();
940
+ const date = this._calendar.focusedDate();
941
+ return {
942
+ header: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),
943
+ month: config.formatMonth(this._dateAdapter.getMonth(date)),
944
+ year: config.formatYear(this._dateAdapter.getYear(date))
945
+ };
946
+ }, ...ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []);
947
+ this._btnClass = hlm(buttonVariants({
948
+ variant: "ghost",
949
+ size: "icon"
950
+ }), "data-[today=true]:bg-muted group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:bg-muted/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70", "data-[outside=true]:opacity-50", "data-[highlighted]:before:content-['']", "data-[highlighted]:before:absolute", "data-[highlighted]:before:bottom-1", "data-[highlighted]:before:start-1/2", "data-[highlighted]:before:h-1", "data-[highlighted]:before:w-1", "data-[highlighted]:before:-translate-x-1/2", "data-[highlighted]:before:rounded-full", "data-[highlighted]:before:bg-destructive");
951
+ this._selectClass = "gap-0 px-1.5 py-2 [&>ng-icon]:ms-1";
952
+ classes(() => "p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent");
953
+ }
954
+ static {
955
+ this.ɵfac = i0.ɵɵngDeclareFactory({
956
+ minVersion: "12.0.0",
957
+ version: "22.2.4",
958
+ ngImport: i0,
959
+ type: HlmCalendarRange,
960
+ deps: [],
961
+ target: i0.ɵɵFactoryTarget.Component
962
+ });
963
+ }
964
+ static {
965
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
966
+ minVersion: "17.0.0",
967
+ version: "22.2.4",
968
+ type: HlmCalendarRange,
969
+ isStandalone: true,
970
+ selector: "hlm-calendar-range",
971
+ inputs: { captionLayout: {
972
+ classPropertyName: "captionLayout",
973
+ publicName: "captionLayout",
974
+ isSignal: true,
975
+ isRequired: false,
976
+ transformFunction: null
977
+ } },
978
+ host: { attributes: { "data-slot": "calendar" } },
979
+ hostDirectives: [{
980
+ directive: i1.BrnCalendarRange,
981
+ inputs: [
982
+ "min",
983
+ "min",
984
+ "max",
985
+ "max",
986
+ "disabled",
987
+ "disabled",
988
+ "startDate",
989
+ "startDate",
990
+ "endDate",
991
+ "endDate",
992
+ "dateDisabled",
993
+ "dateDisabled",
994
+ "weekStartsOn",
995
+ "weekStartsOn",
996
+ "highlightDays",
997
+ "highlightDays",
998
+ "defaultFocusedDate",
999
+ "defaultFocusedDate"
1000
+ ],
1001
+ outputs: [
1002
+ "endDateChange",
1003
+ "endDateChange",
1004
+ "startDateChange",
1005
+ "startDateChange"
1006
+ ]
1007
+ }],
1008
+ ngImport: i0,
1009
+ template: `
548
1010
  <div class="inline-flex flex-col space-y-4">
549
1011
  <!-- Header -->
550
1012
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -645,34 +1107,179 @@ class HlmCalendarRange {
645
1107
  </tbody>
646
1108
  </table>
647
1109
  </div>
648
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.BrnCalendarCellButton, selector: "button[brnCalendarCellButton]", inputs: ["date"] }, { kind: "directive", type: i1.BrnCalendarGrid, selector: "[brnCalendarGrid]" }, { kind: "directive", type: i1.BrnCalendarHeader, selector: "[brnCalendarHeader]", inputs: ["id"] }, { kind: "directive", type: i1.BrnCalendarNextButton, selector: "button[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "button[brnCalendarPreviousButton]" }, { kind: "directive", type: i1.BrnCalendarWeek, selector: "[brnCalendarWeek]" }, { kind: "directive", type: i1.BrnCalendarWeekday, selector: "[brnCalendarWeekday]" }, { kind: "directive", type: i1.BrnCalendarCell, selector: "[brnCalendarCell]" }, { kind: "directive", type: i1.BrnCalendarMonthSelect, selector: "brnSelect[brnCalendarMonthSelect],hlm-select[brnCalendarMonthSelect]" }, { kind: "directive", type: i1.BrnCalendarYearSelect, selector: "brnSelect[brnCalendarYearSelect],hlm-select[brnCalendarYearSelect]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: i2.HlmSelect, selector: "[hlmSelect],hlm-select" }, { kind: "component", type: i2.HlmSelectContent, selector: "hlm-select-content", inputs: ["showScroll"] }, { kind: "directive", type: i2.HlmSelectGroup, selector: "[hlmSelectGroup],hlm-select-group" }, { kind: "component", type: i2.HlmSelectItem, selector: "hlm-select-item" }, { kind: "directive", type: i2.HlmSelectPortal, selector: "[hlmSelectPortal]" }, { kind: "component", type: i2.HlmSelectTrigger, selector: "hlm-select-trigger", inputs: ["class", "buttonId", "size", "forceInvalid"] }, { kind: "directive", type: i2.HlmSelectValue, selector: "[hlmSelectValue],hlm-select-value" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.HlmButton, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
649
- }
650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCalendarRange, decorators: [{
651
- type: Component,
652
- args: [{
653
- selector: 'hlm-calendar-range',
654
- imports: [BrnCalendarImports, NgIcon, HlmSelectImports, NgTemplateOutlet, HlmButtonImports],
655
- viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],
656
- changeDetection: ChangeDetectionStrategy.OnPush,
657
- hostDirectives: [
658
- {
659
- directive: BrnCalendarRange,
660
- inputs: [
661
- 'min',
662
- 'max',
663
- 'disabled',
664
- 'startDate',
665
- 'endDate',
666
- 'dateDisabled',
667
- 'weekStartsOn',
668
- 'highlightDays',
669
- 'defaultFocusedDate',
670
- ],
671
- outputs: ['endDateChange', 'startDateChange'],
672
- },
673
- ],
674
- host: { 'data-slot': 'calendar' },
675
- template: `
1110
+ `,
1111
+ isInline: true,
1112
+ dependencies: [
1113
+ {
1114
+ kind: "directive",
1115
+ type: i1.BrnCalendarCellButton,
1116
+ selector: "button[brnCalendarCellButton]",
1117
+ inputs: ["date"]
1118
+ },
1119
+ {
1120
+ kind: "directive",
1121
+ type: i1.BrnCalendarGrid,
1122
+ selector: "[brnCalendarGrid]"
1123
+ },
1124
+ {
1125
+ kind: "directive",
1126
+ type: i1.BrnCalendarHeader,
1127
+ selector: "[brnCalendarHeader]",
1128
+ inputs: ["id"]
1129
+ },
1130
+ {
1131
+ kind: "directive",
1132
+ type: i1.BrnCalendarNextButton,
1133
+ selector: "button[brnCalendarNextButton]"
1134
+ },
1135
+ {
1136
+ kind: "directive",
1137
+ type: i1.BrnCalendarPreviousButton,
1138
+ selector: "button[brnCalendarPreviousButton]"
1139
+ },
1140
+ {
1141
+ kind: "directive",
1142
+ type: i1.BrnCalendarWeek,
1143
+ selector: "[brnCalendarWeek]"
1144
+ },
1145
+ {
1146
+ kind: "directive",
1147
+ type: i1.BrnCalendarWeekday,
1148
+ selector: "[brnCalendarWeekday]"
1149
+ },
1150
+ {
1151
+ kind: "directive",
1152
+ type: i1.BrnCalendarCell,
1153
+ selector: "[brnCalendarCell]"
1154
+ },
1155
+ {
1156
+ kind: "directive",
1157
+ type: i1.BrnCalendarMonthSelect,
1158
+ selector: "brnSelect[brnCalendarMonthSelect],hlm-select[brnCalendarMonthSelect]"
1159
+ },
1160
+ {
1161
+ kind: "directive",
1162
+ type: i1.BrnCalendarYearSelect,
1163
+ selector: "brnSelect[brnCalendarYearSelect],hlm-select[brnCalendarYearSelect]"
1164
+ },
1165
+ {
1166
+ kind: "component",
1167
+ type: NgIcon,
1168
+ selector: "ng-icon",
1169
+ inputs: [
1170
+ "name",
1171
+ "svg",
1172
+ "size",
1173
+ "strokeWidth",
1174
+ "color"
1175
+ ]
1176
+ },
1177
+ {
1178
+ kind: "directive",
1179
+ type: i2.HlmSelect,
1180
+ selector: "[hlmSelect],hlm-select"
1181
+ },
1182
+ {
1183
+ kind: "component",
1184
+ type: i2.HlmSelectContent,
1185
+ selector: "hlm-select-content",
1186
+ inputs: ["showScroll"]
1187
+ },
1188
+ {
1189
+ kind: "directive",
1190
+ type: i2.HlmSelectGroup,
1191
+ selector: "[hlmSelectGroup],hlm-select-group"
1192
+ },
1193
+ {
1194
+ kind: "component",
1195
+ type: i2.HlmSelectItem,
1196
+ selector: "hlm-select-item"
1197
+ },
1198
+ {
1199
+ kind: "directive",
1200
+ type: i2.HlmSelectPortal,
1201
+ selector: "[hlmSelectPortal]"
1202
+ },
1203
+ {
1204
+ kind: "component",
1205
+ type: i2.HlmSelectTrigger,
1206
+ selector: "hlm-select-trigger",
1207
+ inputs: [
1208
+ "class",
1209
+ "buttonId",
1210
+ "size",
1211
+ "forceInvalid"
1212
+ ]
1213
+ },
1214
+ {
1215
+ kind: "directive",
1216
+ type: i2.HlmSelectValue,
1217
+ selector: "[hlmSelectValue],hlm-select-value"
1218
+ },
1219
+ {
1220
+ kind: "directive",
1221
+ type: NgTemplateOutlet,
1222
+ selector: "[ngTemplateOutlet]",
1223
+ inputs: [
1224
+ "ngTemplateOutletContext",
1225
+ "ngTemplateOutlet",
1226
+ "ngTemplateOutletInjector"
1227
+ ]
1228
+ },
1229
+ {
1230
+ kind: "directive",
1231
+ type: i3.HlmButton,
1232
+ selector: "button[hlmBtn], a[hlmBtn]",
1233
+ inputs: ["variant", "size"],
1234
+ exportAs: ["hlmBtn"]
1235
+ }
1236
+ ],
1237
+ viewProviders: [provideIcons({
1238
+ lucideChevronLeft,
1239
+ lucideChevronRight
1240
+ })],
1241
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1242
+ });
1243
+ }
1244
+ };
1245
+ i0.ɵɵngDeclareClassMetadata({
1246
+ minVersion: "12.0.0",
1247
+ version: "22.2.4",
1248
+ ngImport: i0,
1249
+ type: HlmCalendarRange,
1250
+ decorators: [{
1251
+ type: Component,
1252
+ args: [{
1253
+ selector: "hlm-calendar-range",
1254
+ imports: [
1255
+ BrnCalendarImports,
1256
+ NgIcon,
1257
+ HlmSelectImports,
1258
+ NgTemplateOutlet,
1259
+ HlmButtonImports
1260
+ ],
1261
+ viewProviders: [provideIcons({
1262
+ lucideChevronLeft,
1263
+ lucideChevronRight
1264
+ })],
1265
+ changeDetection: ChangeDetectionStrategy.OnPush,
1266
+ hostDirectives: [{
1267
+ directive: BrnCalendarRange,
1268
+ inputs: [
1269
+ "min",
1270
+ "max",
1271
+ "disabled",
1272
+ "startDate",
1273
+ "endDate",
1274
+ "dateDisabled",
1275
+ "weekStartsOn",
1276
+ "highlightDays",
1277
+ "defaultFocusedDate"
1278
+ ],
1279
+ outputs: ["endDateChange", "startDateChange"]
1280
+ }],
1281
+ host: { "data-slot": "calendar" },
1282
+ template: `
676
1283
  <div class="inline-flex flex-col space-y-4">
677
1284
  <!-- Header -->
678
1285
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -773,32 +1380,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
773
1380
  </tbody>
774
1381
  </table>
775
1382
  </div>
776
- `,
777
- }]
778
- }], ctorParameters: () => [], propDecorators: { captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }] } });
779
-
780
- class HlmMonthYearCalendar {
781
- constructor() {
782
- /** Access the calendar i18n */
783
- this._i18n = injectBrnCalendarI18n();
784
- /** Access the date adapter */
785
- this._dateAdapter = injectDateAdapter();
786
- /** Access the picker directive */
787
- this._picker = inject((BrnMonthYearCalendar));
788
- /** The heading for the current view. */
789
- this._heading = computed(() => {
790
- const config = this._i18n.config();
791
- if (this._picker.view() === 'month') {
792
- return config.formatYear(this._dateAdapter.getYear(this._picker.focusedDate()));
793
- }
794
- const { start, end } = this._picker.yearRange();
795
- return `${config.formatYear(start)} – ${config.formatYear(end)}`;
796
- }, ...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
797
- this._btnClass = hlm(buttonVariants({ variant: 'ghost' }), 'data-[today=true]:bg-muted', 'data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground data-[selected=true]:hover:bg-primary data-[selected=true]:hover:text-primary-foreground', 'data-[focused=true]:border-ring data-[focused=true]:ring-ring/50 data-[focused=true]:ring-[3px]', 'aria-disabled:pointer-events-none aria-disabled:opacity-50', 'h-(--cell-size)');
798
- classes(() => 'p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
799
- }
800
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmMonthYearCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
801
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmMonthYearCalendar, isStandalone: true, selector: "hlm-month-year-calendar", host: { attributes: { "data-slot": "month-year-calendar" } }, hostDirectives: [{ directive: i1.BrnMonthYearCalendar, inputs: ["min", "min", "max", "max", "disabled", "disabled", "date", "date", "defaultFocusedDate", "defaultFocusedDate", "view", "view"], outputs: ["dateChange", "dateChange"] }], ngImport: i0, template: `
1383
+ `
1384
+ }]
1385
+ }],
1386
+ ctorParameters: () => [],
1387
+ propDecorators: { captionLayout: [{
1388
+ type: i0.Input,
1389
+ args: [{
1390
+ isSignal: true,
1391
+ alias: "captionLayout",
1392
+ required: false
1393
+ }]
1394
+ }] }
1395
+ });
1396
+ var HlmMonthYearCalendar = class HlmMonthYearCalendar {
1397
+ constructor() {
1398
+ this._i18n = injectBrnCalendarI18n();
1399
+ this._dateAdapter = injectDateAdapter();
1400
+ this._picker = inject(BrnMonthYearCalendar);
1401
+ this._heading = computed(() => {
1402
+ const config = this._i18n.config();
1403
+ if (this._picker.view() === "month") return config.formatYear(this._dateAdapter.getYear(this._picker.focusedDate()));
1404
+ const { start, end } = this._picker.yearRange();
1405
+ return `${config.formatYear(start)} – ${config.formatYear(end)}`;
1406
+ }, ...ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []);
1407
+ this._btnClass = hlm(buttonVariants({ variant: "ghost" }), "data-[today=true]:bg-muted", "data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground data-[selected=true]:hover:bg-primary data-[selected=true]:hover:text-primary-foreground", "data-[focused=true]:border-ring data-[focused=true]:ring-ring/50 data-[focused=true]:ring-[3px]", "aria-disabled:pointer-events-none aria-disabled:opacity-50", "h-(--cell-size)");
1408
+ classes(() => "p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent");
1409
+ }
1410
+ static {
1411
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1412
+ minVersion: "12.0.0",
1413
+ version: "22.2.4",
1414
+ ngImport: i0,
1415
+ type: HlmMonthYearCalendar,
1416
+ deps: [],
1417
+ target: i0.ɵɵFactoryTarget.Component
1418
+ });
1419
+ }
1420
+ static {
1421
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1422
+ minVersion: "17.0.0",
1423
+ version: "22.2.4",
1424
+ type: HlmMonthYearCalendar,
1425
+ isStandalone: true,
1426
+ selector: "hlm-month-year-calendar",
1427
+ host: { attributes: { "data-slot": "month-year-calendar" } },
1428
+ hostDirectives: [{
1429
+ directive: i1.BrnMonthYearCalendar,
1430
+ inputs: [
1431
+ "min",
1432
+ "min",
1433
+ "max",
1434
+ "max",
1435
+ "disabled",
1436
+ "disabled",
1437
+ "date",
1438
+ "date",
1439
+ "defaultFocusedDate",
1440
+ "defaultFocusedDate",
1441
+ "view",
1442
+ "view"
1443
+ ],
1444
+ outputs: ["dateChange", "dateChange"]
1445
+ }],
1446
+ ngImport: i0,
1447
+ template: `
802
1448
  <div class="flex flex-col gap-4">
803
1449
  <!-- Header -->
804
1450
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -852,24 +1498,103 @@ class HlmMonthYearCalendar {
852
1498
  }
853
1499
  }
854
1500
  </div>
855
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.BrnMonthYearCalendarGrid, selector: "[brnMonthYearCalendarGrid]" }, { kind: "directive", type: i1.BrnMonthYearCalendarHeader, selector: "button[brnMonthYearCalendarHeader]", inputs: ["id"] }, { kind: "directive", type: i1.BrnMonthYearCalendarMonthButton, selector: "button[brnMonthYearCalendarMonthButton]", inputs: ["date"] }, { kind: "directive", type: i1.BrnMonthYearCalendarNextButton, selector: "button[brnMonthYearCalendarNextButton]" }, { kind: "directive", type: i1.BrnMonthYearCalendarPreviousButton, selector: "button[brnMonthYearCalendarPreviousButton]" }, { kind: "directive", type: i1.BrnMonthYearCalendarYearButton, selector: "button[brnMonthYearCalendarYearButton]", inputs: ["date"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: i3.HlmButton, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
856
- }
857
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmMonthYearCalendar, decorators: [{
858
- type: Component,
859
- args: [{
860
- selector: 'hlm-month-year-calendar',
861
- imports: [BrnCalendarImports, NgIcon, HlmButtonImports],
862
- viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],
863
- changeDetection: ChangeDetectionStrategy.OnPush,
864
- hostDirectives: [
865
- {
866
- directive: BrnMonthYearCalendar,
867
- inputs: ['min', 'max', 'disabled', 'date', 'defaultFocusedDate', 'view'],
868
- outputs: ['dateChange'],
869
- },
870
- ],
871
- host: { 'data-slot': 'month-year-calendar' },
872
- template: `
1501
+ `,
1502
+ isInline: true,
1503
+ dependencies: [
1504
+ {
1505
+ kind: "directive",
1506
+ type: i1.BrnMonthYearCalendarGrid,
1507
+ selector: "[brnMonthYearCalendarGrid]"
1508
+ },
1509
+ {
1510
+ kind: "directive",
1511
+ type: i1.BrnMonthYearCalendarHeader,
1512
+ selector: "button[brnMonthYearCalendarHeader]",
1513
+ inputs: ["id"]
1514
+ },
1515
+ {
1516
+ kind: "directive",
1517
+ type: i1.BrnMonthYearCalendarMonthButton,
1518
+ selector: "button[brnMonthYearCalendarMonthButton]",
1519
+ inputs: ["date"]
1520
+ },
1521
+ {
1522
+ kind: "directive",
1523
+ type: i1.BrnMonthYearCalendarNextButton,
1524
+ selector: "button[brnMonthYearCalendarNextButton]"
1525
+ },
1526
+ {
1527
+ kind: "directive",
1528
+ type: i1.BrnMonthYearCalendarPreviousButton,
1529
+ selector: "button[brnMonthYearCalendarPreviousButton]"
1530
+ },
1531
+ {
1532
+ kind: "directive",
1533
+ type: i1.BrnMonthYearCalendarYearButton,
1534
+ selector: "button[brnMonthYearCalendarYearButton]",
1535
+ inputs: ["date"]
1536
+ },
1537
+ {
1538
+ kind: "component",
1539
+ type: NgIcon,
1540
+ selector: "ng-icon",
1541
+ inputs: [
1542
+ "name",
1543
+ "svg",
1544
+ "size",
1545
+ "strokeWidth",
1546
+ "color"
1547
+ ]
1548
+ },
1549
+ {
1550
+ kind: "directive",
1551
+ type: i3.HlmButton,
1552
+ selector: "button[hlmBtn], a[hlmBtn]",
1553
+ inputs: ["variant", "size"],
1554
+ exportAs: ["hlmBtn"]
1555
+ }
1556
+ ],
1557
+ viewProviders: [provideIcons({
1558
+ lucideChevronLeft,
1559
+ lucideChevronRight
1560
+ })],
1561
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1562
+ });
1563
+ }
1564
+ };
1565
+ i0.ɵɵngDeclareClassMetadata({
1566
+ minVersion: "12.0.0",
1567
+ version: "22.2.4",
1568
+ ngImport: i0,
1569
+ type: HlmMonthYearCalendar,
1570
+ decorators: [{
1571
+ type: Component,
1572
+ args: [{
1573
+ selector: "hlm-month-year-calendar",
1574
+ imports: [
1575
+ BrnCalendarImports,
1576
+ NgIcon,
1577
+ HlmButtonImports
1578
+ ],
1579
+ viewProviders: [provideIcons({
1580
+ lucideChevronLeft,
1581
+ lucideChevronRight
1582
+ })],
1583
+ changeDetection: ChangeDetectionStrategy.OnPush,
1584
+ hostDirectives: [{
1585
+ directive: BrnMonthYearCalendar,
1586
+ inputs: [
1587
+ "min",
1588
+ "max",
1589
+ "disabled",
1590
+ "date",
1591
+ "defaultFocusedDate",
1592
+ "view"
1593
+ ],
1594
+ outputs: ["dateChange"]
1595
+ }],
1596
+ host: { "data-slot": "month-year-calendar" },
1597
+ template: `
873
1598
  <div class="flex flex-col gap-4">
874
1599
  <!-- Header -->
875
1600
  <div class="flex w-full items-center justify-between gap-1.5">
@@ -923,15 +1648,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
923
1648
  }
924
1649
  }
925
1650
  </div>
926
- `,
927
- }]
928
- }], ctorParameters: () => [] });
929
-
930
- const HlmCalendarImports = [HlmCalendar, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar];
931
-
932
- /**
933
- * Generated bundle index. Do not edit.
934
- */
935
-
1651
+ `
1652
+ }]
1653
+ }],
1654
+ ctorParameters: () => []
1655
+ });
1656
+ const HlmCalendarImports = [
1657
+ HlmCalendar,
1658
+ HlmCalendarMulti,
1659
+ HlmCalendarRange,
1660
+ HlmMonthYearCalendar
1661
+ ];
936
1662
  export { HlmCalendar, HlmCalendarImports, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar };
937
- //# sourceMappingURL=yukit-web-helm-calendar.mjs.map
1663
+
1664
+ //# sourceMappingURL=yukit-web-helm-calendar.mjs.map