yukit-web 0.10.5 → 0.10.7
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.
- package/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24457 -9655
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5092 -2351
|
@@ -1,43 +1,87 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import * as i1 from
|
|
7
|
-
import {
|
|
8
|
-
import { injectDateAdapter } from
|
|
9
|
-
import * as i3 from
|
|
10
|
-
import {
|
|
11
|
-
import * as i2 from
|
|
12
|
-
import { HlmSelectImports } from
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
`,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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
|
-
`,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
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
|
-
`,
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
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
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
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
|
-
`,
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
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
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
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
|
-
|
|
1663
|
+
|
|
1664
|
+
//# sourceMappingURL=yukit-web-helm-calendar.mjs.map
|