@egose/shadcn-theme-ng-tw 0.0.28 → 0.1.0
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/README.md +130 -13
- package/accordion/README.md +2 -63
- package/accordion/fesm2022/accordion.mjs +20 -20
- package/alert/README.md +2 -63
- package/alert/fesm2022/alert.mjs +18 -18
- package/alert-dialog/fesm2022/alert-dialog.mjs +48 -48
- package/alert-dialog/types/alert-dialog.d.ts +1 -1
- package/aspect-ratio/fesm2022/aspect-ratio.mjs +9 -9
- package/autocomplete/README.md +2 -63
- package/autocomplete/fesm2022/autocomplete.mjs +54 -54
- package/autocomplete/types/autocomplete.d.ts +1 -1
- package/avatar/fesm2022/avatar.mjs +32 -32
- package/badge/README.md +2 -63
- package/badge/fesm2022/badge.mjs +4 -4
- package/basic-alert/README.md +2 -63
- package/basic-alert/fesm2022/basic-alert.mjs +4 -4
- package/basic-alert/types/basic-alert.d.ts +1 -1
- package/breadcrumb/fesm2022/breadcrumb.mjs +34 -34
- package/button/README.md +2 -63
- package/button/fesm2022/button.mjs +11 -11
- package/button/types/button.d.ts +2 -2
- package/button-group/fesm2022/button-group.mjs +20 -20
- package/calendar/README.md +2 -63
- package/calendar/fesm2022/calendar.mjs +154 -154
- package/card/fesm2022/card.mjs +33 -33
- package/carousel/fesm2022/carousel.mjs +44 -44
- package/carousel/types/carousel.d.ts +1 -1
- package/checkbox/README.md +2 -63
- package/checkbox/fesm2022/checkbox.mjs +22 -20
- package/checkbox/types/checkbox.d.ts +5 -4
- package/collapsible/fesm2022/collapsible.mjs +15 -15
- package/combobox/fesm2022/combobox.mjs +92 -92
- package/combobox/types/combobox.d.ts +1 -1
- package/command/fesm2022/command.mjs +56 -56
- package/confirmation-dialog/README.md +2 -63
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +13 -12
- package/confirmation-dialog/types/confirmation-dialog.d.ts +9 -5
- package/context-menu/fesm2022/context-menu.mjs +9 -9
- package/date-picker/README.md +2 -63
- package/date-picker/fesm2022/date-picker.mjs +79 -68
- package/date-picker/types/date-picker.d.ts +8 -4
- package/dialog/README.md +2 -63
- package/dialog/fesm2022/dialog.mjs +48 -48
- package/drawer/fesm2022/drawer.mjs +45 -45
- package/dropdown-menu/fesm2022/dropdown-menu.mjs +85 -73
- package/dropdown-menu/types/dropdown-menu.d.ts +4 -0
- package/empty/fesm2022/empty.mjs +31 -31
- package/field/fesm2022/field.mjs +59 -59
- package/field/types/field.d.ts +1 -1
- package/form-checkbox/README.md +2 -63
- package/form-checkbox/fesm2022/form-checkbox.mjs +37 -19
- package/form-checkbox/types/form-checkbox.d.ts +7 -1
- package/form-date-picker/README.md +2 -63
- package/form-date-picker/fesm2022/form-date-picker.mjs +59 -24
- package/form-date-picker/types/form-date-picker.d.ts +7 -1
- package/form-field/README.md +2 -63
- package/form-field/fesm2022/form-field.mjs +30 -16
- package/form-field/types/form-field.d.ts +28 -20
- package/form-field-simple/README.md +2 -63
- package/form-field-simple/fesm2022/form-field-simple.mjs +4 -4
- package/form-searchable-multiselect/README.md +2 -63
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +41 -21
- package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +8 -2
- package/form-select/README.md +2 -63
- package/form-select/fesm2022/form-select.mjs +62 -29
- package/form-select/types/form-select.d.ts +7 -1
- package/form-text-input/README.md +2 -63
- package/form-text-input/fesm2022/form-text-input.mjs +43 -55
- package/form-text-input/types/form-text-input.d.ts +9 -12
- package/form-textarea/README.md +2 -63
- package/form-textarea/fesm2022/form-textarea.mjs +42 -23
- package/form-textarea/types/form-textarea.d.ts +8 -1
- package/hover-card/fesm2022/hover-card.mjs +19 -19
- package/icon/README.md +2 -63
- package/icon/fesm2022/icon.mjs +8 -8
- package/input/README.md +2 -63
- package/input/fesm2022/input.mjs +17 -12
- package/input/types/input.d.ts +2 -1
- package/input-group/fesm2022/input-group.mjs +37 -37
- package/input-group/types/input-group.d.ts +3 -3
- package/input-otp/fesm2022/input-otp.mjs +27 -27
- package/item/fesm2022/item.mjs +54 -54
- package/kbd/fesm2022/kbd.mjs +13 -13
- package/label/README.md +2 -63
- package/label/fesm2022/label.mjs +9 -9
- package/label/types/label.d.ts +1 -1
- package/layout-simple/README.md +2 -63
- package/layout-simple/fesm2022/layout-simple.mjs +88 -37
- package/layout-simple/types/layout-simple.d.ts +26 -12
- package/menu/README.md +3 -0
- package/menu/fesm2022/menu.mjs +461 -0
- package/menu/package.json +24 -0
- package/menu/types/menu.d.ts +137 -0
- package/menubar/fesm2022/menubar.mjs +13 -13
- package/native-select/fesm2022/native-select.mjs +19 -19
- package/navigation-menu/fesm2022/navigation-menu.mjs +37 -37
- package/package.json +183 -154
- package/pagination/fesm2022/pagination.mjs +63 -63
- package/popover/README.md +2 -63
- package/popover/fesm2022/popover.mjs +30 -30
- package/progress/fesm2022/progress.mjs +13 -13
- package/radio-group/README.md +2 -63
- package/radio-group/fesm2022/radio-group.mjs +22 -19
- package/resizable/fesm2022/resizable.mjs +19 -19
- package/scroll-area/fesm2022/scroll-area.mjs +9 -9
- package/searchable-multiselect/README.md +2 -63
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +63 -16
- package/searchable-multiselect/types/searchable-multiselect.d.ts +8 -2
- package/select/README.md +2 -63
- package/select/fesm2022/select.mjs +80 -72
- package/select/types/select.d.ts +3 -1
- package/separator/README.md +2 -63
- package/separator/fesm2022/separator.mjs +9 -9
- package/separator/types/separator.d.ts +1 -1
- package/sheet/README.md +2 -63
- package/sheet/fesm2022/sheet.mjs +30 -30
- package/sidebar/fesm2022/sidebar.mjs +136 -134
- package/sidebar/types/sidebar.d.ts +3 -3
- package/skeleton/fesm2022/skeleton.mjs +9 -9
- package/slider/fesm2022/slider.mjs +25 -25
- package/sonner/README.md +2 -63
- package/sonner/fesm2022/sonner.mjs +9 -9
- package/spinner/README.md +2 -63
- package/spinner/fesm2022/spinner.mjs +8 -8
- package/switch/README.md +2 -63
- package/switch/fesm2022/switch.mjs +12 -14
- package/table/fesm2022/table.mjs +41 -41
- package/tabs/README.md +2 -63
- package/tabs/fesm2022/tabs.mjs +38 -38
- package/textarea/fesm2022/textarea.mjs +9 -9
- package/toggle/fesm2022/toggle.mjs +14 -14
- package/toggle-group/fesm2022/toggle-group.mjs +13 -13
- package/toggle-group/types/toggle-group.d.ts +13 -7
- package/tooltip/README.md +2 -63
- package/tooltip/fesm2022/tooltip.mjs +14 -14
- package/typography/fesm2022/typography.mjs +53 -53
- package/typography/types/typography.d.ts +12 -12
- package/utils/README.md +2 -63
- package/utils/fesm2022/utils.mjs +68 -44
- package/accordion/fesm2022/accordion.mjs.map +0 -1
- package/alert/fesm2022/alert.mjs.map +0 -1
- package/alert-dialog/fesm2022/alert-dialog.mjs.map +0 -1
- package/aspect-ratio/fesm2022/aspect-ratio.mjs.map +0 -1
- package/autocomplete/fesm2022/autocomplete.mjs.map +0 -1
- package/avatar/fesm2022/avatar.mjs.map +0 -1
- package/badge/fesm2022/badge.mjs.map +0 -1
- package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
- package/breadcrumb/fesm2022/breadcrumb.mjs.map +0 -1
- package/button/fesm2022/button.mjs.map +0 -1
- package/button-group/fesm2022/button-group.mjs.map +0 -1
- package/calendar/fesm2022/calendar.mjs.map +0 -1
- package/card/fesm2022/card.mjs.map +0 -1
- package/carousel/fesm2022/carousel.mjs.map +0 -1
- package/checkbox/fesm2022/checkbox.mjs.map +0 -1
- package/collapsible/fesm2022/collapsible.mjs.map +0 -1
- package/combobox/fesm2022/combobox.mjs.map +0 -1
- package/command/fesm2022/command.mjs.map +0 -1
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +0 -1
- package/context-menu/fesm2022/context-menu.mjs.map +0 -1
- package/date-picker/fesm2022/date-picker.mjs.map +0 -1
- package/dialog/fesm2022/dialog.mjs.map +0 -1
- package/drawer/fesm2022/drawer.mjs.map +0 -1
- package/dropdown-menu/fesm2022/dropdown-menu.mjs.map +0 -1
- package/empty/fesm2022/empty.mjs.map +0 -1
- package/field/fesm2022/field.mjs.map +0 -1
- package/form-checkbox/fesm2022/form-checkbox.mjs.map +0 -1
- package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
- package/form-field/fesm2022/form-field.mjs.map +0 -1
- package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +0 -1
- package/form-select/fesm2022/form-select.mjs.map +0 -1
- package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
- package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
- package/hover-card/fesm2022/hover-card.mjs.map +0 -1
- package/icon/fesm2022/icon.mjs.map +0 -1
- package/input/fesm2022/input.mjs.map +0 -1
- package/input-group/fesm2022/input-group.mjs.map +0 -1
- package/input-otp/fesm2022/input-otp.mjs.map +0 -1
- package/item/fesm2022/item.mjs.map +0 -1
- package/kbd/fesm2022/kbd.mjs.map +0 -1
- package/label/fesm2022/label.mjs.map +0 -1
- package/layout-simple/fesm2022/layout-simple.mjs.map +0 -1
- package/menubar/fesm2022/menubar.mjs.map +0 -1
- package/native-select/fesm2022/native-select.mjs.map +0 -1
- package/navigation-menu/fesm2022/navigation-menu.mjs.map +0 -1
- package/pagination/fesm2022/pagination.mjs.map +0 -1
- package/popover/fesm2022/popover.mjs.map +0 -1
- package/progress/fesm2022/progress.mjs.map +0 -1
- package/radio-group/fesm2022/radio-group.mjs.map +0 -1
- package/resizable/fesm2022/resizable.mjs.map +0 -1
- package/scroll-area/fesm2022/scroll-area.mjs.map +0 -1
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +0 -1
- package/select/fesm2022/select.mjs.map +0 -1
- package/separator/fesm2022/separator.mjs.map +0 -1
- package/sheet/fesm2022/sheet.mjs.map +0 -1
- package/sidebar/fesm2022/sidebar.mjs.map +0 -1
- package/skeleton/fesm2022/skeleton.mjs.map +0 -1
- package/slider/fesm2022/slider.mjs.map +0 -1
- package/sonner/fesm2022/sonner.mjs.map +0 -1
- package/spinner/fesm2022/spinner.mjs.map +0 -1
- package/switch/fesm2022/switch.mjs.map +0 -1
- package/table/fesm2022/table.mjs.map +0 -1
- package/tabs/fesm2022/tabs.mjs.map +0 -1
- package/textarea/fesm2022/textarea.mjs.map +0 -1
- package/toggle/fesm2022/toggle.mjs.map +0 -1
- package/toggle-group/fesm2022/toggle-group.mjs.map +0 -1
- package/tooltip/fesm2022/tooltip.mjs.map +0 -1
- package/typography/fesm2022/typography.mjs.map +0 -1
- package/utils/fesm2022/utils.mjs.map +0 -1
|
@@ -33,22 +33,22 @@ class HlmCalendar {
|
|
|
33
33
|
};
|
|
34
34
|
}, /* @ts-ignore */
|
|
35
35
|
...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
|
|
36
|
-
_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
|
+
_btnClass = hlm(buttonVariants({ variant: 'ghost', size: 'icon' }), 'tw:data-[today=true]:bg-muted tw:group-data-[focused=true]/day:border-ring tw:group-data-[focused=true]/day:ring-ring/50 tw:data-[range-end=true]:bg-primary tw:data-[range-end=true]:text-primary-foreground tw:data-[range-middle=true]:bg-muted tw:data-[range-middle=true]:text-foreground tw:data-[range-start=true]:bg-primary tw:data-[range-start=true]:text-primary-foreground tw:data-[selected-single=true]:bg-primary tw:data-[selected-single=true]:text-primary-foreground tw:dark:hover:bg-muted/50 tw:dark:hover:text-foreground tw:relative tw:isolate tw:z-10 tw:flex tw:aspect-square tw:size-auto tw:w-full tw:min-w-(--cell-size) tw:flex-col tw:gap-1 tw:border-0 tw:leading-none tw:font-normal tw:group-data-[focused=true]/day:relative tw:group-data-[focused=true]/day:z-10 tw:group-data-[focused=true]/day:ring-[3px] tw:data-[range-end=true]:rounded-(--cell-radius) tw:data-[range-end=true]:rounded-e-(--cell-radius) tw:data-[range-middle=true]:rounded-none tw:data-[range-start=true]:rounded-(--cell-radius) tw:data-[range-start=true]:rounded-s-(--cell-radius) tw:[&>span]:text-xs tw:[&>span]:opacity-70', 'tw:data-[outside=true]:opacity-50', "tw:data-[highlighted]:before:content-['']", 'tw:data-[highlighted]:before:absolute', 'tw:data-[highlighted]:before:bottom-1', 'tw:data-[highlighted]:before:start-1/2', 'tw:data-[highlighted]:before:h-1', 'tw:data-[highlighted]:before:w-1', 'tw:data-[highlighted]:before:-translate-x-1/2', 'tw:data-[highlighted]:before:rounded-full', 'tw:data-[highlighted]:before:bg-destructive');
|
|
37
37
|
_selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';
|
|
38
38
|
constructor() {
|
|
39
|
-
classes(() => 'p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
|
|
39
|
+
classes(() => 'tw:p-3 tw:[--cell-radius:var(--radius-md)] tw:[--cell-size:--spacing(8)] tw:group/calendar tw:bg-background tw:block tw:in-data-[slot=card-content]:bg-transparent tw:in-data-[slot=popover-content]:bg-transparent');
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
42
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
43
|
-
<div class="inline-flex flex-col gap-4">
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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: `
|
|
43
|
+
<div class="tw:inline-flex tw:flex-col tw:gap-4">
|
|
44
44
|
<!-- Header -->
|
|
45
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
45
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
46
46
|
<ng-template #month>
|
|
47
|
-
<hlm-select brnCalendarMonthSelect class="order-1">
|
|
47
|
+
<hlm-select brnCalendarMonthSelect class="tw:order-1">
|
|
48
48
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
49
49
|
<hlm-select-value />
|
|
50
50
|
</hlm-select-trigger>
|
|
51
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
51
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
52
52
|
<hlm-select-group>
|
|
53
53
|
@for (month of _i18n.config().months(); track month) {
|
|
54
54
|
<hlm-select-item [value]="month">{{ month }}</hlm-select-item>
|
|
@@ -58,11 +58,11 @@ class HlmCalendar {
|
|
|
58
58
|
</hlm-select>
|
|
59
59
|
</ng-template>
|
|
60
60
|
<ng-template #year>
|
|
61
|
-
<hlm-select brnCalendarYearSelect class="order-3">
|
|
61
|
+
<hlm-select brnCalendarYearSelect class="tw:order-3">
|
|
62
62
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
63
63
|
<hlm-select-value />
|
|
64
64
|
</hlm-select-trigger>
|
|
65
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
65
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
66
66
|
<hlm-select-group>
|
|
67
67
|
@for (year of _i18n.config().years(); track year) {
|
|
68
68
|
<hlm-select-item [value]="year">{{ year }}</hlm-select-item>
|
|
@@ -77,9 +77,9 @@ class HlmCalendar {
|
|
|
77
77
|
brnCalendarPreviousButton
|
|
78
78
|
variant="ghost"
|
|
79
79
|
hlmBtn
|
|
80
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
80
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
81
81
|
>
|
|
82
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
82
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
83
83
|
</button>
|
|
84
84
|
|
|
85
85
|
@switch (captionLayout()) {
|
|
@@ -89,14 +89,14 @@ class HlmCalendar {
|
|
|
89
89
|
}
|
|
90
90
|
@case ('dropdown-months') {
|
|
91
91
|
<ng-container [ngTemplateOutlet]="month" />
|
|
92
|
-
<div brnCalendarHeader class="order-4 text-sm font-medium">{{ heading.year }}</div>
|
|
92
|
+
<div brnCalendarHeader class="tw:order-4 tw:text-sm tw:font-medium">{{ heading.year }}</div>
|
|
93
93
|
}
|
|
94
94
|
@case ('dropdown-years') {
|
|
95
|
-
<div brnCalendarHeader class="order-2 text-sm font-medium">{{ heading.month }}</div>
|
|
95
|
+
<div brnCalendarHeader class="tw:order-2 tw:text-sm tw:font-medium">{{ heading.month }}</div>
|
|
96
96
|
<ng-container [ngTemplateOutlet]="year" />
|
|
97
97
|
}
|
|
98
98
|
@case ('label') {
|
|
99
|
-
<div brnCalendarHeader class="order-5 text-sm font-medium">{{ heading.header }}</div>
|
|
99
|
+
<div brnCalendarHeader class="tw:order-5 tw:text-sm tw:font-medium">{{ heading.header }}</div>
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -104,19 +104,19 @@ class HlmCalendar {
|
|
|
104
104
|
brnCalendarNextButton
|
|
105
105
|
hlmBtn
|
|
106
106
|
variant="ghost"
|
|
107
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
107
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
108
108
|
>
|
|
109
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
109
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
110
110
|
</button>
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
|
-
<table class="w-full border-collapse space-y-1" brnCalendarGrid>
|
|
113
|
+
<table class="tw:w-full tw:border-collapse tw:space-y-1" brnCalendarGrid>
|
|
114
114
|
<thead aria-hidden="true">
|
|
115
|
-
<tr class="flex">
|
|
115
|
+
<tr class="tw:flex">
|
|
116
116
|
<th
|
|
117
117
|
*brnCalendarWeekday="let weekday"
|
|
118
118
|
scope="col"
|
|
119
|
-
class="text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none"
|
|
119
|
+
class="tw:text-muted-foreground tw:flex-1 tw:rounded-(--cell-radius) tw:text-[0.8rem] tw:font-normal tw:select-none"
|
|
120
120
|
[attr.aria-label]="_i18n.config().labelWeekday(weekday)"
|
|
121
121
|
>
|
|
122
122
|
{{ _i18n.config().formatWeekdayName(weekday) }}
|
|
@@ -125,11 +125,11 @@ class HlmCalendar {
|
|
|
125
125
|
</thead>
|
|
126
126
|
|
|
127
127
|
<tbody role="rowgroup">
|
|
128
|
-
<tr *brnCalendarWeek="let week" class="mt-2 flex w-full">
|
|
128
|
+
<tr *brnCalendarWeek="let week" class="tw:mt-2 tw:flex tw:w-full">
|
|
129
129
|
@for (date of week; track _dateAdapter.getTime(date)) {
|
|
130
130
|
<td
|
|
131
131
|
brnCalendarCell
|
|
132
|
-
class="group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
132
|
+
class="tw:group/day tw:relative tw:aspect-square tw:h-full tw:w-full tw:rounded-(--cell-radius) tw:p-0 tw:text-center tw:select-none tw:[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) tw:[&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
133
133
|
>
|
|
134
134
|
<button brnCalendarCellButton [date]="date" [class]="_btnClass">
|
|
135
135
|
{{ _dateAdapter.getDate(date) }}
|
|
@@ -140,9 +140,9 @@ class HlmCalendar {
|
|
|
140
140
|
</tbody>
|
|
141
141
|
</table>
|
|
142
142
|
</div>
|
|
143
|
-
`, 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: "[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "[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.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
143
|
+
`, 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: "[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "[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", "ariaDescribedby", "wrapperDisabled", "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.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
144
144
|
}
|
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendar, decorators: [{
|
|
146
146
|
type: Component,
|
|
147
147
|
args: [{
|
|
148
148
|
selector: 'hlm-calendar',
|
|
@@ -158,15 +158,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
158
158
|
],
|
|
159
159
|
host: { 'data-slot': 'calendar' },
|
|
160
160
|
template: `
|
|
161
|
-
<div class="inline-flex flex-col gap-4">
|
|
161
|
+
<div class="tw:inline-flex tw:flex-col tw:gap-4">
|
|
162
162
|
<!-- Header -->
|
|
163
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
163
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
164
164
|
<ng-template #month>
|
|
165
|
-
<hlm-select brnCalendarMonthSelect class="order-1">
|
|
165
|
+
<hlm-select brnCalendarMonthSelect class="tw:order-1">
|
|
166
166
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
167
167
|
<hlm-select-value />
|
|
168
168
|
</hlm-select-trigger>
|
|
169
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
169
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
170
170
|
<hlm-select-group>
|
|
171
171
|
@for (month of _i18n.config().months(); track month) {
|
|
172
172
|
<hlm-select-item [value]="month">{{ month }}</hlm-select-item>
|
|
@@ -176,11 +176,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
176
176
|
</hlm-select>
|
|
177
177
|
</ng-template>
|
|
178
178
|
<ng-template #year>
|
|
179
|
-
<hlm-select brnCalendarYearSelect class="order-3">
|
|
179
|
+
<hlm-select brnCalendarYearSelect class="tw:order-3">
|
|
180
180
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
181
181
|
<hlm-select-value />
|
|
182
182
|
</hlm-select-trigger>
|
|
183
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
183
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
184
184
|
<hlm-select-group>
|
|
185
185
|
@for (year of _i18n.config().years(); track year) {
|
|
186
186
|
<hlm-select-item [value]="year">{{ year }}</hlm-select-item>
|
|
@@ -195,9 +195,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
195
195
|
brnCalendarPreviousButton
|
|
196
196
|
variant="ghost"
|
|
197
197
|
hlmBtn
|
|
198
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
198
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
199
199
|
>
|
|
200
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
200
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
201
201
|
</button>
|
|
202
202
|
|
|
203
203
|
@switch (captionLayout()) {
|
|
@@ -207,14 +207,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
207
207
|
}
|
|
208
208
|
@case ('dropdown-months') {
|
|
209
209
|
<ng-container [ngTemplateOutlet]="month" />
|
|
210
|
-
<div brnCalendarHeader class="order-4 text-sm font-medium">{{ heading.year }}</div>
|
|
210
|
+
<div brnCalendarHeader class="tw:order-4 tw:text-sm tw:font-medium">{{ heading.year }}</div>
|
|
211
211
|
}
|
|
212
212
|
@case ('dropdown-years') {
|
|
213
|
-
<div brnCalendarHeader class="order-2 text-sm font-medium">{{ heading.month }}</div>
|
|
213
|
+
<div brnCalendarHeader class="tw:order-2 tw:text-sm tw:font-medium">{{ heading.month }}</div>
|
|
214
214
|
<ng-container [ngTemplateOutlet]="year" />
|
|
215
215
|
}
|
|
216
216
|
@case ('label') {
|
|
217
|
-
<div brnCalendarHeader class="order-5 text-sm font-medium">{{ heading.header }}</div>
|
|
217
|
+
<div brnCalendarHeader class="tw:order-5 tw:text-sm tw:font-medium">{{ heading.header }}</div>
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -222,19 +222,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
222
222
|
brnCalendarNextButton
|
|
223
223
|
hlmBtn
|
|
224
224
|
variant="ghost"
|
|
225
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
225
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
226
226
|
>
|
|
227
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
227
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
228
228
|
</button>
|
|
229
229
|
</div>
|
|
230
230
|
|
|
231
|
-
<table class="w-full border-collapse space-y-1" brnCalendarGrid>
|
|
231
|
+
<table class="tw:w-full tw:border-collapse tw:space-y-1" brnCalendarGrid>
|
|
232
232
|
<thead aria-hidden="true">
|
|
233
|
-
<tr class="flex">
|
|
233
|
+
<tr class="tw:flex">
|
|
234
234
|
<th
|
|
235
235
|
*brnCalendarWeekday="let weekday"
|
|
236
236
|
scope="col"
|
|
237
|
-
class="text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none"
|
|
237
|
+
class="tw:text-muted-foreground tw:flex-1 tw:rounded-(--cell-radius) tw:text-[0.8rem] tw:font-normal tw:select-none"
|
|
238
238
|
[attr.aria-label]="_i18n.config().labelWeekday(weekday)"
|
|
239
239
|
>
|
|
240
240
|
{{ _i18n.config().formatWeekdayName(weekday) }}
|
|
@@ -243,11 +243,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
243
243
|
</thead>
|
|
244
244
|
|
|
245
245
|
<tbody role="rowgroup">
|
|
246
|
-
<tr *brnCalendarWeek="let week" class="mt-2 flex w-full">
|
|
246
|
+
<tr *brnCalendarWeek="let week" class="tw:mt-2 tw:flex tw:w-full">
|
|
247
247
|
@for (date of week; track _dateAdapter.getTime(date)) {
|
|
248
248
|
<td
|
|
249
249
|
brnCalendarCell
|
|
250
|
-
class="group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
250
|
+
class="tw:group/day tw:relative tw:aspect-square tw:h-full tw:w-full tw:rounded-(--cell-radius) tw:p-0 tw:text-center tw:select-none tw:[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) tw:[&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
251
251
|
>
|
|
252
252
|
<button brnCalendarCellButton [date]="date" [class]="_btnClass">
|
|
253
253
|
{{ _dateAdapter.getDate(date) }}
|
|
@@ -283,22 +283,22 @@ class HlmCalendarMulti {
|
|
|
283
283
|
};
|
|
284
284
|
}, /* @ts-ignore */
|
|
285
285
|
...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
|
|
286
|
-
_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');
|
|
286
|
+
_btnClass = hlm(buttonVariants({ variant: 'ghost', size: 'icon' }), 'tw:data-[today=true]:bg-muted tw:group-data-[focused=true]/day:border-ring tw:group-data-[focused=true]/day:ring-ring/50 tw:data-[range-end=true]:bg-primary tw:data-[range-end=true]:text-primary-foreground tw:data-[range-middle=true]:bg-muted tw:data-[range-middle=true]:text-foreground tw:data-[range-start=true]:bg-primary tw:data-[range-start=true]:text-primary-foreground tw:data-[selected-single=true]:bg-primary tw:data-[selected-single=true]:text-primary-foreground tw:dark:hover:bg-muted/50 tw:dark:hover:text-foreground tw:relative tw:isolate tw:z-10 tw:flex tw:aspect-square tw:size-auto tw:w-full tw:min-w-(--cell-size) tw:flex-col tw:gap-1 tw:border-0 tw:leading-none tw:font-normal tw:group-data-[focused=true]/day:relative tw:group-data-[focused=true]/day:z-10 tw:group-data-[focused=true]/day:ring-[3px] tw:data-[range-end=true]:rounded-(--cell-radius) tw:data-[range-end=true]:rounded-e-(--cell-radius) tw:data-[range-middle=true]:rounded-none tw:data-[range-start=true]:rounded-(--cell-radius) tw:data-[range-start=true]:rounded-s-(--cell-radius) tw:[&>span]:text-xs tw:[&>span]:opacity-70', 'tw:data-[outside=true]:opacity-50', "tw:data-[highlighted]:before:content-['']", 'tw:data-[highlighted]:before:absolute', 'tw:data-[highlighted]:before:bottom-1', 'tw:data-[highlighted]:before:start-1/2', 'tw:data-[highlighted]:before:h-1', 'tw:data-[highlighted]:before:w-1', 'tw:data-[highlighted]:before:-translate-x-1/2', 'tw:data-[highlighted]:before:rounded-full', 'tw:data-[highlighted]:before:bg-destructive');
|
|
287
287
|
_selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';
|
|
288
288
|
constructor() {
|
|
289
|
-
classes(() => 'p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
|
|
289
|
+
classes(() => 'tw:p-3 tw:[--cell-radius:var(--radius-md)] tw:[--cell-size:--spacing(8)] tw:group/calendar tw:bg-background tw:block tw:in-data-[slot=card-content]:bg-transparent tw:in-data-[slot=popover-content]:bg-transparent');
|
|
290
290
|
}
|
|
291
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
292
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
293
|
-
<div class="inline-flex flex-col space-y-4">
|
|
291
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarMulti, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
292
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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: `
|
|
293
|
+
<div class="tw:inline-flex tw:flex-col tw:space-y-4">
|
|
294
294
|
<!-- Header -->
|
|
295
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
295
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
296
296
|
<ng-template #month>
|
|
297
|
-
<hlm-select brnCalendarMonthSelect class="order-1">
|
|
297
|
+
<hlm-select brnCalendarMonthSelect class="tw:order-1">
|
|
298
298
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
299
299
|
<hlm-select-value />
|
|
300
300
|
</hlm-select-trigger>
|
|
301
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
301
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
302
302
|
<hlm-select-group>
|
|
303
303
|
@for (month of _i18n.config().months(); track month) {
|
|
304
304
|
<hlm-select-item [value]="month">{{ month }}</hlm-select-item>
|
|
@@ -308,11 +308,11 @@ class HlmCalendarMulti {
|
|
|
308
308
|
</hlm-select>
|
|
309
309
|
</ng-template>
|
|
310
310
|
<ng-template #year>
|
|
311
|
-
<hlm-select brnCalendarYearSelect class="order-3">
|
|
311
|
+
<hlm-select brnCalendarYearSelect class="tw:order-3">
|
|
312
312
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
313
313
|
<hlm-select-value />
|
|
314
314
|
</hlm-select-trigger>
|
|
315
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
315
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
316
316
|
<hlm-select-group>
|
|
317
317
|
@for (year of _i18n.config().years(); track year) {
|
|
318
318
|
<hlm-select-item [value]="year">{{ year }}</hlm-select-item>
|
|
@@ -327,9 +327,9 @@ class HlmCalendarMulti {
|
|
|
327
327
|
brnCalendarPreviousButton
|
|
328
328
|
variant="ghost"
|
|
329
329
|
hlmBtn
|
|
330
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
330
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
331
331
|
>
|
|
332
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
332
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
333
333
|
</button>
|
|
334
334
|
|
|
335
335
|
@switch (captionLayout()) {
|
|
@@ -339,14 +339,14 @@ class HlmCalendarMulti {
|
|
|
339
339
|
}
|
|
340
340
|
@case ('dropdown-months') {
|
|
341
341
|
<ng-container [ngTemplateOutlet]="month" />
|
|
342
|
-
<div brnCalendarHeader class="order-4 text-sm font-medium">{{ heading.year }}</div>
|
|
342
|
+
<div brnCalendarHeader class="tw:order-4 tw:text-sm tw:font-medium">{{ heading.year }}</div>
|
|
343
343
|
}
|
|
344
344
|
@case ('dropdown-years') {
|
|
345
|
-
<div brnCalendarHeader class="order-2 text-sm font-medium">{{ heading.month }}</div>
|
|
345
|
+
<div brnCalendarHeader class="tw:order-2 tw:text-sm tw:font-medium">{{ heading.month }}</div>
|
|
346
346
|
<ng-container [ngTemplateOutlet]="year" />
|
|
347
347
|
}
|
|
348
348
|
@case ('label') {
|
|
349
|
-
<div brnCalendarHeader class="order-5 text-sm font-medium">{{ heading.header }}</div>
|
|
349
|
+
<div brnCalendarHeader class="tw:order-5 tw:text-sm tw:font-medium">{{ heading.header }}</div>
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
|
|
@@ -354,19 +354,19 @@ class HlmCalendarMulti {
|
|
|
354
354
|
brnCalendarNextButton
|
|
355
355
|
hlmBtn
|
|
356
356
|
variant="ghost"
|
|
357
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
357
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
358
358
|
>
|
|
359
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
359
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
360
360
|
</button>
|
|
361
361
|
</div>
|
|
362
362
|
|
|
363
|
-
<table class="w-full border-collapse" brnCalendarGrid>
|
|
363
|
+
<table class="tw:w-full tw:border-collapse" brnCalendarGrid>
|
|
364
364
|
<thead aria-hidden="true">
|
|
365
|
-
<tr class="flex">
|
|
365
|
+
<tr class="tw:flex">
|
|
366
366
|
<th
|
|
367
367
|
*brnCalendarWeekday="let weekday"
|
|
368
368
|
scope="col"
|
|
369
|
-
class="text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none"
|
|
369
|
+
class="tw:text-muted-foreground tw:flex-1 tw:rounded-(--cell-radius) tw:text-[0.8rem] tw:font-normal tw:select-none"
|
|
370
370
|
[attr.aria-label]="_i18n.config().labelWeekday(weekday)"
|
|
371
371
|
>
|
|
372
372
|
{{ _i18n.config().formatWeekdayName(weekday) }}
|
|
@@ -375,11 +375,11 @@ class HlmCalendarMulti {
|
|
|
375
375
|
</thead>
|
|
376
376
|
|
|
377
377
|
<tbody role="rowgroup">
|
|
378
|
-
<tr *brnCalendarWeek="let week" class="mt-2 flex w-full">
|
|
378
|
+
<tr *brnCalendarWeek="let week" class="tw:mt-2 tw:flex tw:w-full">
|
|
379
379
|
@for (date of week; track _dateAdapter.getTime(date)) {
|
|
380
380
|
<td
|
|
381
381
|
brnCalendarCell
|
|
382
|
-
class="group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
382
|
+
class="tw:group/day tw:relative tw:aspect-square tw:h-full tw:w-full tw:rounded-(--cell-radius) tw:p-0 tw:text-center tw:select-none tw:[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) tw:[&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
383
383
|
>
|
|
384
384
|
<button brnCalendarCellButton [date]="date" [class]="_btnClass">
|
|
385
385
|
{{ _dateAdapter.getDate(date) }}
|
|
@@ -390,9 +390,9 @@ class HlmCalendarMulti {
|
|
|
390
390
|
</tbody>
|
|
391
391
|
</table>
|
|
392
392
|
</div>
|
|
393
|
-
`, 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: "[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "[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.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
393
|
+
`, 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: "[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "[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", "ariaDescribedby", "wrapperDisabled", "size", "forceInvalid"] }, { kind: "directive", type: i2.HlmSelectValue, selector: "[hlmSelectValue],hlm-select-value" }, { kind: "directive", type: i3.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
394
394
|
}
|
|
395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarMulti, decorators: [{
|
|
396
396
|
type: Component,
|
|
397
397
|
args: [{
|
|
398
398
|
selector: 'hlm-calendar-multi',
|
|
@@ -419,15 +419,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
419
419
|
],
|
|
420
420
|
host: { 'data-slot': 'calendar' },
|
|
421
421
|
template: `
|
|
422
|
-
<div class="inline-flex flex-col space-y-4">
|
|
422
|
+
<div class="tw:inline-flex tw:flex-col tw:space-y-4">
|
|
423
423
|
<!-- Header -->
|
|
424
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
424
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
425
425
|
<ng-template #month>
|
|
426
|
-
<hlm-select brnCalendarMonthSelect class="order-1">
|
|
426
|
+
<hlm-select brnCalendarMonthSelect class="tw:order-1">
|
|
427
427
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
428
428
|
<hlm-select-value />
|
|
429
429
|
</hlm-select-trigger>
|
|
430
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
430
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
431
431
|
<hlm-select-group>
|
|
432
432
|
@for (month of _i18n.config().months(); track month) {
|
|
433
433
|
<hlm-select-item [value]="month">{{ month }}</hlm-select-item>
|
|
@@ -437,11 +437,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
437
437
|
</hlm-select>
|
|
438
438
|
</ng-template>
|
|
439
439
|
<ng-template #year>
|
|
440
|
-
<hlm-select brnCalendarYearSelect class="order-3">
|
|
440
|
+
<hlm-select brnCalendarYearSelect class="tw:order-3">
|
|
441
441
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
442
442
|
<hlm-select-value />
|
|
443
443
|
</hlm-select-trigger>
|
|
444
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
444
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
445
445
|
<hlm-select-group>
|
|
446
446
|
@for (year of _i18n.config().years(); track year) {
|
|
447
447
|
<hlm-select-item [value]="year">{{ year }}</hlm-select-item>
|
|
@@ -456,9 +456,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
456
456
|
brnCalendarPreviousButton
|
|
457
457
|
variant="ghost"
|
|
458
458
|
hlmBtn
|
|
459
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
459
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
460
460
|
>
|
|
461
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
461
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
462
462
|
</button>
|
|
463
463
|
|
|
464
464
|
@switch (captionLayout()) {
|
|
@@ -468,14 +468,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
468
468
|
}
|
|
469
469
|
@case ('dropdown-months') {
|
|
470
470
|
<ng-container [ngTemplateOutlet]="month" />
|
|
471
|
-
<div brnCalendarHeader class="order-4 text-sm font-medium">{{ heading.year }}</div>
|
|
471
|
+
<div brnCalendarHeader class="tw:order-4 tw:text-sm tw:font-medium">{{ heading.year }}</div>
|
|
472
472
|
}
|
|
473
473
|
@case ('dropdown-years') {
|
|
474
|
-
<div brnCalendarHeader class="order-2 text-sm font-medium">{{ heading.month }}</div>
|
|
474
|
+
<div brnCalendarHeader class="tw:order-2 tw:text-sm tw:font-medium">{{ heading.month }}</div>
|
|
475
475
|
<ng-container [ngTemplateOutlet]="year" />
|
|
476
476
|
}
|
|
477
477
|
@case ('label') {
|
|
478
|
-
<div brnCalendarHeader class="order-5 text-sm font-medium">{{ heading.header }}</div>
|
|
478
|
+
<div brnCalendarHeader class="tw:order-5 tw:text-sm tw:font-medium">{{ heading.header }}</div>
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
|
|
@@ -483,19 +483,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
483
483
|
brnCalendarNextButton
|
|
484
484
|
hlmBtn
|
|
485
485
|
variant="ghost"
|
|
486
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
486
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
487
487
|
>
|
|
488
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
488
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
489
489
|
</button>
|
|
490
490
|
</div>
|
|
491
491
|
|
|
492
|
-
<table class="w-full border-collapse" brnCalendarGrid>
|
|
492
|
+
<table class="tw:w-full tw:border-collapse" brnCalendarGrid>
|
|
493
493
|
<thead aria-hidden="true">
|
|
494
|
-
<tr class="flex">
|
|
494
|
+
<tr class="tw:flex">
|
|
495
495
|
<th
|
|
496
496
|
*brnCalendarWeekday="let weekday"
|
|
497
497
|
scope="col"
|
|
498
|
-
class="text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none"
|
|
498
|
+
class="tw:text-muted-foreground tw:flex-1 tw:rounded-(--cell-radius) tw:text-[0.8rem] tw:font-normal tw:select-none"
|
|
499
499
|
[attr.aria-label]="_i18n.config().labelWeekday(weekday)"
|
|
500
500
|
>
|
|
501
501
|
{{ _i18n.config().formatWeekdayName(weekday) }}
|
|
@@ -504,11 +504,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
504
504
|
</thead>
|
|
505
505
|
|
|
506
506
|
<tbody role="rowgroup">
|
|
507
|
-
<tr *brnCalendarWeek="let week" class="mt-2 flex w-full">
|
|
507
|
+
<tr *brnCalendarWeek="let week" class="tw:mt-2 tw:flex tw:w-full">
|
|
508
508
|
@for (date of week; track _dateAdapter.getTime(date)) {
|
|
509
509
|
<td
|
|
510
510
|
brnCalendarCell
|
|
511
|
-
class="group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
511
|
+
class="tw:group/day tw:relative tw:aspect-square tw:h-full tw:w-full tw:rounded-(--cell-radius) tw:p-0 tw:text-center tw:select-none tw:[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) tw:[&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
512
512
|
>
|
|
513
513
|
<button brnCalendarCellButton [date]="date" [class]="_btnClass">
|
|
514
514
|
{{ _dateAdapter.getDate(date) }}
|
|
@@ -544,22 +544,22 @@ class HlmCalendarRange {
|
|
|
544
544
|
};
|
|
545
545
|
}, /* @ts-ignore */
|
|
546
546
|
...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
|
|
547
|
-
_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');
|
|
547
|
+
_btnClass = hlm(buttonVariants({ variant: 'ghost', size: 'icon' }), 'tw:data-[today=true]:bg-muted tw:group-data-[focused=true]/day:border-ring tw:group-data-[focused=true]/day:ring-ring/50 tw:data-[range-end=true]:bg-primary tw:data-[range-end=true]:text-primary-foreground tw:data-[range-middle=true]:bg-muted tw:data-[range-middle=true]:text-foreground tw:data-[range-start=true]:bg-primary tw:data-[range-start=true]:text-primary-foreground tw:data-[selected-single=true]:bg-primary tw:data-[selected-single=true]:text-primary-foreground tw:dark:hover:bg-muted/50 tw:dark:hover:text-foreground tw:relative tw:isolate tw:z-10 tw:flex tw:aspect-square tw:size-auto tw:w-full tw:min-w-(--cell-size) tw:flex-col tw:gap-1 tw:border-0 tw:leading-none tw:font-normal tw:group-data-[focused=true]/day:relative tw:group-data-[focused=true]/day:z-10 tw:group-data-[focused=true]/day:ring-[3px] tw:data-[range-end=true]:rounded-(--cell-radius) tw:data-[range-end=true]:rounded-e-(--cell-radius) tw:data-[range-middle=true]:rounded-none tw:data-[range-start=true]:rounded-(--cell-radius) tw:data-[range-start=true]:rounded-s-(--cell-radius) tw:[&>span]:text-xs tw:[&>span]:opacity-70', 'tw:data-[outside=true]:opacity-50', "tw:data-[highlighted]:before:content-['']", 'tw:data-[highlighted]:before:absolute', 'tw:data-[highlighted]:before:bottom-1', 'tw:data-[highlighted]:before:start-1/2', 'tw:data-[highlighted]:before:h-1', 'tw:data-[highlighted]:before:w-1', 'tw:data-[highlighted]:before:-translate-x-1/2', 'tw:data-[highlighted]:before:rounded-full', 'tw:data-[highlighted]:before:bg-destructive');
|
|
548
548
|
_selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';
|
|
549
549
|
constructor() {
|
|
550
|
-
classes(() => 'p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
|
|
550
|
+
classes(() => 'tw:p-3 tw:[--cell-radius:var(--radius-md)] tw:[--cell-size:--spacing(8)] tw:group/calendar tw:bg-background tw:block tw:in-data-[slot=card-content]:bg-transparent tw:in-data-[slot=popover-content]:bg-transparent');
|
|
551
551
|
}
|
|
552
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
553
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
554
|
-
<div class="inline-flex flex-col space-y-4">
|
|
552
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarRange, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
553
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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: `
|
|
554
|
+
<div class="tw:inline-flex tw:flex-col tw:space-y-4">
|
|
555
555
|
<!-- Header -->
|
|
556
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
556
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
557
557
|
<ng-template #month>
|
|
558
|
-
<hlm-select brnCalendarMonthSelect class="order-1">
|
|
558
|
+
<hlm-select brnCalendarMonthSelect class="tw:order-1">
|
|
559
559
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
560
560
|
<hlm-select-value />
|
|
561
561
|
</hlm-select-trigger>
|
|
562
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
562
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
563
563
|
<hlm-select-group>
|
|
564
564
|
@for (month of _i18n.config().months(); track month) {
|
|
565
565
|
<hlm-select-item [value]="month">{{ month }}</hlm-select-item>
|
|
@@ -569,11 +569,11 @@ class HlmCalendarRange {
|
|
|
569
569
|
</hlm-select>
|
|
570
570
|
</ng-template>
|
|
571
571
|
<ng-template #year>
|
|
572
|
-
<hlm-select brnCalendarYearSelect class="order-3">
|
|
572
|
+
<hlm-select brnCalendarYearSelect class="tw:order-3">
|
|
573
573
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
574
574
|
<hlm-select-value />
|
|
575
575
|
</hlm-select-trigger>
|
|
576
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
576
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
577
577
|
<hlm-select-group>
|
|
578
578
|
@for (year of _i18n.config().years(); track year) {
|
|
579
579
|
<hlm-select-item [value]="year">{{ year }}</hlm-select-item>
|
|
@@ -588,9 +588,9 @@ class HlmCalendarRange {
|
|
|
588
588
|
brnCalendarPreviousButton
|
|
589
589
|
variant="ghost"
|
|
590
590
|
hlmBtn
|
|
591
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
591
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
592
592
|
>
|
|
593
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
593
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
594
594
|
</button>
|
|
595
595
|
|
|
596
596
|
@switch (captionLayout()) {
|
|
@@ -600,14 +600,14 @@ class HlmCalendarRange {
|
|
|
600
600
|
}
|
|
601
601
|
@case ('dropdown-months') {
|
|
602
602
|
<ng-container [ngTemplateOutlet]="month" />
|
|
603
|
-
<div brnCalendarHeader class="order-4 text-sm font-medium">{{ heading.year }}</div>
|
|
603
|
+
<div brnCalendarHeader class="tw:order-4 tw:text-sm tw:font-medium">{{ heading.year }}</div>
|
|
604
604
|
}
|
|
605
605
|
@case ('dropdown-years') {
|
|
606
|
-
<div brnCalendarHeader class="order-2 text-sm font-medium">{{ heading.month }}</div>
|
|
606
|
+
<div brnCalendarHeader class="tw:order-2 tw:text-sm tw:font-medium">{{ heading.month }}</div>
|
|
607
607
|
<ng-container [ngTemplateOutlet]="year" />
|
|
608
608
|
}
|
|
609
609
|
@case ('label') {
|
|
610
|
-
<div brnCalendarHeader class="order-5 text-sm font-medium">{{ heading.header }}</div>
|
|
610
|
+
<div brnCalendarHeader class="tw:order-5 tw:text-sm tw:font-medium">{{ heading.header }}</div>
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
|
|
@@ -615,19 +615,19 @@ class HlmCalendarRange {
|
|
|
615
615
|
brnCalendarNextButton
|
|
616
616
|
hlmBtn
|
|
617
617
|
variant="ghost"
|
|
618
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
618
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
619
619
|
>
|
|
620
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
620
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
621
621
|
</button>
|
|
622
622
|
</div>
|
|
623
623
|
|
|
624
|
-
<table class="w-full border-collapse space-y-1" brnCalendarGrid>
|
|
624
|
+
<table class="tw:w-full tw:border-collapse tw:space-y-1" brnCalendarGrid>
|
|
625
625
|
<thead aria-hidden="true">
|
|
626
|
-
<tr class="flex">
|
|
626
|
+
<tr class="tw:flex">
|
|
627
627
|
<th
|
|
628
628
|
*brnCalendarWeekday="let weekday"
|
|
629
629
|
scope="col"
|
|
630
|
-
class="text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none"
|
|
630
|
+
class="tw:text-muted-foreground tw:flex-1 tw:rounded-(--cell-radius) tw:text-[0.8rem] tw:font-normal tw:select-none"
|
|
631
631
|
[attr.aria-label]="_i18n.config().labelWeekday(weekday)"
|
|
632
632
|
>
|
|
633
633
|
{{ _i18n.config().formatWeekdayName(weekday) }}
|
|
@@ -636,11 +636,11 @@ class HlmCalendarRange {
|
|
|
636
636
|
</thead>
|
|
637
637
|
|
|
638
638
|
<tbody role="rowgroup">
|
|
639
|
-
<tr *brnCalendarWeek="let week" class="mt-2 flex w-full">
|
|
639
|
+
<tr *brnCalendarWeek="let week" class="tw:mt-2 tw:flex tw:w-full">
|
|
640
640
|
@for (date of week; track _dateAdapter.getTime(date)) {
|
|
641
641
|
<td
|
|
642
642
|
brnCalendarCell
|
|
643
|
-
class="group/day has-[button[data-range-start=true]]:bg-muted has-[button[data-range-start=true]]:after:bg-muted has-[button[data-range-end=true]]:bg-muted has-[button[data-range-end=true]]:after:bg-muted relative isolate z-0 aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none has-[button[data-range-end=true]]:rounded-e-(--cell-radius) has-[button[data-range-end=true]]:after:absolute has-[button[data-range-end=true]]:after:inset-y-0 has-[button[data-range-end=true]]:after:start-0 has-[button[data-range-end=true]]:after:w-4 has-[button[data-range-start=true]]:rounded-s-(--cell-radius) has-[button[data-range-start=true]]:after:absolute has-[button[data-range-start=true]]:after:inset-y-0 has-[button[data-range-start=true]]:after:end-0 has-[button[data-range-start=true]]:after:w-4 [&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
643
|
+
class="tw:group/day tw:has-[button[data-range-start=true]]:bg-muted tw:has-[button[data-range-start=true]]:after:bg-muted tw:has-[button[data-range-end=true]]:bg-muted tw:has-[button[data-range-end=true]]:after:bg-muted tw:relative tw:isolate tw:z-0 tw:aspect-square tw:h-full tw:w-full tw:rounded-(--cell-radius) tw:p-0 tw:text-center tw:select-none tw:has-[button[data-range-end=true]]:rounded-e-(--cell-radius) tw:has-[button[data-range-end=true]]:after:absolute tw:has-[button[data-range-end=true]]:after:inset-y-0 tw:has-[button[data-range-end=true]]:after:start-0 tw:has-[button[data-range-end=true]]:after:w-4 tw:has-[button[data-range-start=true]]:rounded-s-(--cell-radius) tw:has-[button[data-range-start=true]]:after:absolute tw:has-[button[data-range-start=true]]:after:inset-y-0 tw:has-[button[data-range-start=true]]:after:end-0 tw:has-[button[data-range-start=true]]:after:w-4 tw:[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) tw:[&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
644
644
|
>
|
|
645
645
|
<button brnCalendarCellButton [date]="date" [class]="_btnClass">
|
|
646
646
|
{{ _dateAdapter.getDate(date) }}
|
|
@@ -651,9 +651,9 @@ class HlmCalendarRange {
|
|
|
651
651
|
</tbody>
|
|
652
652
|
</table>
|
|
653
653
|
</div>
|
|
654
|
-
`, 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: "[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "[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.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
654
|
+
`, 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: "[brnCalendarNextButton]" }, { kind: "directive", type: i1.BrnCalendarPreviousButton, selector: "[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", "ariaDescribedby", "wrapperDisabled", "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.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
655
655
|
}
|
|
656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarRange, decorators: [{
|
|
657
657
|
type: Component,
|
|
658
658
|
args: [{
|
|
659
659
|
selector: 'hlm-calendar-range',
|
|
@@ -679,15 +679,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
679
679
|
],
|
|
680
680
|
host: { 'data-slot': 'calendar' },
|
|
681
681
|
template: `
|
|
682
|
-
<div class="inline-flex flex-col space-y-4">
|
|
682
|
+
<div class="tw:inline-flex tw:flex-col tw:space-y-4">
|
|
683
683
|
<!-- Header -->
|
|
684
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
684
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
685
685
|
<ng-template #month>
|
|
686
|
-
<hlm-select brnCalendarMonthSelect class="order-1">
|
|
686
|
+
<hlm-select brnCalendarMonthSelect class="tw:order-1">
|
|
687
687
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
688
688
|
<hlm-select-value />
|
|
689
689
|
</hlm-select-trigger>
|
|
690
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
690
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
691
691
|
<hlm-select-group>
|
|
692
692
|
@for (month of _i18n.config().months(); track month) {
|
|
693
693
|
<hlm-select-item [value]="month">{{ month }}</hlm-select-item>
|
|
@@ -697,11 +697,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
697
697
|
</hlm-select>
|
|
698
698
|
</ng-template>
|
|
699
699
|
<ng-template #year>
|
|
700
|
-
<hlm-select brnCalendarYearSelect class="order-3">
|
|
700
|
+
<hlm-select brnCalendarYearSelect class="tw:order-3">
|
|
701
701
|
<hlm-select-trigger size="sm" [class]="_selectClass">
|
|
702
702
|
<hlm-select-value />
|
|
703
703
|
</hlm-select-trigger>
|
|
704
|
-
<hlm-select-content *hlmSelectPortal class="max-h-80">
|
|
704
|
+
<hlm-select-content *hlmSelectPortal class="tw:max-h-80">
|
|
705
705
|
<hlm-select-group>
|
|
706
706
|
@for (year of _i18n.config().years(); track year) {
|
|
707
707
|
<hlm-select-item [value]="year">{{ year }}</hlm-select-item>
|
|
@@ -716,9 +716,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
716
716
|
brnCalendarPreviousButton
|
|
717
717
|
variant="ghost"
|
|
718
718
|
hlmBtn
|
|
719
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
719
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
720
720
|
>
|
|
721
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
721
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
722
722
|
</button>
|
|
723
723
|
|
|
724
724
|
@switch (captionLayout()) {
|
|
@@ -728,14 +728,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
728
728
|
}
|
|
729
729
|
@case ('dropdown-months') {
|
|
730
730
|
<ng-container [ngTemplateOutlet]="month" />
|
|
731
|
-
<div brnCalendarHeader class="order-4 text-sm font-medium">{{ heading.year }}</div>
|
|
731
|
+
<div brnCalendarHeader class="tw:order-4 tw:text-sm tw:font-medium">{{ heading.year }}</div>
|
|
732
732
|
}
|
|
733
733
|
@case ('dropdown-years') {
|
|
734
|
-
<div brnCalendarHeader class="order-2 text-sm font-medium">{{ heading.month }}</div>
|
|
734
|
+
<div brnCalendarHeader class="tw:order-2 tw:text-sm tw:font-medium">{{ heading.month }}</div>
|
|
735
735
|
<ng-container [ngTemplateOutlet]="year" />
|
|
736
736
|
}
|
|
737
737
|
@case ('label') {
|
|
738
|
-
<div brnCalendarHeader class="order-5 text-sm font-medium">{{ heading.header }}</div>
|
|
738
|
+
<div brnCalendarHeader class="tw:order-5 tw:text-sm tw:font-medium">{{ heading.header }}</div>
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
|
|
@@ -743,19 +743,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
743
743
|
brnCalendarNextButton
|
|
744
744
|
hlmBtn
|
|
745
745
|
variant="ghost"
|
|
746
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
746
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
747
747
|
>
|
|
748
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
748
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
749
749
|
</button>
|
|
750
750
|
</div>
|
|
751
751
|
|
|
752
|
-
<table class="w-full border-collapse space-y-1" brnCalendarGrid>
|
|
752
|
+
<table class="tw:w-full tw:border-collapse tw:space-y-1" brnCalendarGrid>
|
|
753
753
|
<thead aria-hidden="true">
|
|
754
|
-
<tr class="flex">
|
|
754
|
+
<tr class="tw:flex">
|
|
755
755
|
<th
|
|
756
756
|
*brnCalendarWeekday="let weekday"
|
|
757
757
|
scope="col"
|
|
758
|
-
class="text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none"
|
|
758
|
+
class="tw:text-muted-foreground tw:flex-1 tw:rounded-(--cell-radius) tw:text-[0.8rem] tw:font-normal tw:select-none"
|
|
759
759
|
[attr.aria-label]="_i18n.config().labelWeekday(weekday)"
|
|
760
760
|
>
|
|
761
761
|
{{ _i18n.config().formatWeekdayName(weekday) }}
|
|
@@ -764,11 +764,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
764
764
|
</thead>
|
|
765
765
|
|
|
766
766
|
<tbody role="rowgroup">
|
|
767
|
-
<tr *brnCalendarWeek="let week" class="mt-2 flex w-full">
|
|
767
|
+
<tr *brnCalendarWeek="let week" class="tw:mt-2 tw:flex tw:w-full">
|
|
768
768
|
@for (date of week; track _dateAdapter.getTime(date)) {
|
|
769
769
|
<td
|
|
770
770
|
brnCalendarCell
|
|
771
|
-
class="group/day has-[button[data-range-start=true]]:bg-muted has-[button[data-range-start=true]]:after:bg-muted has-[button[data-range-end=true]]:bg-muted has-[button[data-range-end=true]]:after:bg-muted relative isolate z-0 aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none has-[button[data-range-end=true]]:rounded-e-(--cell-radius) has-[button[data-range-end=true]]:after:absolute has-[button[data-range-end=true]]:after:inset-y-0 has-[button[data-range-end=true]]:after:start-0 has-[button[data-range-end=true]]:after:w-4 has-[button[data-range-start=true]]:rounded-s-(--cell-radius) has-[button[data-range-start=true]]:after:absolute has-[button[data-range-start=true]]:after:inset-y-0 has-[button[data-range-start=true]]:after:end-0 has-[button[data-range-start=true]]:after:w-4 [&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
771
|
+
class="tw:group/day tw:has-[button[data-range-start=true]]:bg-muted tw:has-[button[data-range-start=true]]:after:bg-muted tw:has-[button[data-range-end=true]]:bg-muted tw:has-[button[data-range-end=true]]:after:bg-muted tw:relative tw:isolate tw:z-0 tw:aspect-square tw:h-full tw:w-full tw:rounded-(--cell-radius) tw:p-0 tw:text-center tw:select-none tw:has-[button[data-range-end=true]]:rounded-e-(--cell-radius) tw:has-[button[data-range-end=true]]:after:absolute tw:has-[button[data-range-end=true]]:after:inset-y-0 tw:has-[button[data-range-end=true]]:after:start-0 tw:has-[button[data-range-end=true]]:after:w-4 tw:has-[button[data-range-start=true]]:rounded-s-(--cell-radius) tw:has-[button[data-range-start=true]]:after:absolute tw:has-[button[data-range-start=true]]:after:inset-y-0 tw:has-[button[data-range-start=true]]:after:end-0 tw:has-[button[data-range-start=true]]:after:w-4 tw:[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) tw:[&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)"
|
|
772
772
|
>
|
|
773
773
|
<button brnCalendarCellButton [date]="date" [class]="_btnClass">
|
|
774
774
|
{{ _dateAdapter.getDate(date) }}
|
|
@@ -800,28 +800,28 @@ class HlmMonthYearCalendar {
|
|
|
800
800
|
return `${config.formatYear(start)} – ${config.formatYear(end)}`;
|
|
801
801
|
}, /* @ts-ignore */
|
|
802
802
|
...(ngDevMode ? [{ debugName: "_heading" }] : /* istanbul ignore next */ []));
|
|
803
|
-
_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)');
|
|
803
|
+
_btnClass = hlm(buttonVariants({ variant: 'ghost' }), 'tw:data-[today=true]:bg-muted', 'tw:data-[selected=true]:bg-primary tw:data-[selected=true]:text-primary-foreground tw:data-[selected=true]:hover:bg-primary tw:data-[selected=true]:hover:text-primary-foreground', 'tw:data-[focused=true]:border-ring tw:data-[focused=true]:ring-ring/50 tw:data-[focused=true]:ring-[3px]', 'tw:aria-disabled:pointer-events-none tw:aria-disabled:opacity-50', 'tw:h-(--cell-size)');
|
|
804
804
|
constructor() {
|
|
805
|
-
classes(() => 'p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)] group/calendar bg-background block in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent');
|
|
805
|
+
classes(() => 'tw:p-3 tw:[--cell-radius:var(--radius-md)] tw:[--cell-size:--spacing(8)] tw:group/calendar tw:bg-background tw:block tw:in-data-[slot=card-content]:bg-transparent tw:in-data-[slot=popover-content]:bg-transparent');
|
|
806
806
|
}
|
|
807
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
808
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
809
|
-
<div class="flex flex-col gap-4">
|
|
807
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmMonthYearCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
808
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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: `
|
|
809
|
+
<div class="tw:flex tw:flex-col tw:gap-4">
|
|
810
810
|
<!-- Header -->
|
|
811
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
811
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
812
812
|
<button
|
|
813
813
|
brnMonthYearCalendarPreviousButton
|
|
814
814
|
hlmBtn
|
|
815
815
|
variant="ghost"
|
|
816
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
816
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
817
817
|
>
|
|
818
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
818
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
819
819
|
</button>
|
|
820
820
|
|
|
821
821
|
<button
|
|
822
822
|
hlmBtn
|
|
823
823
|
variant="ghost"
|
|
824
|
-
class="h-(--cell-size) py-0 select-none aria-disabled:opacity-50"
|
|
824
|
+
class="tw:h-(--cell-size) tw:py-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
825
825
|
brnMonthYearCalendarHeader
|
|
826
826
|
>
|
|
827
827
|
{{ _heading() }}
|
|
@@ -831,16 +831,16 @@ class HlmMonthYearCalendar {
|
|
|
831
831
|
brnMonthYearCalendarNextButton
|
|
832
832
|
hlmBtn
|
|
833
833
|
variant="ghost"
|
|
834
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
834
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
835
835
|
>
|
|
836
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
836
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
837
837
|
</button>
|
|
838
838
|
</div>
|
|
839
839
|
|
|
840
840
|
<!-- Grid -->
|
|
841
841
|
@switch (_picker.view()) {
|
|
842
842
|
@case ('year') {
|
|
843
|
-
<div brnMonthYearCalendarGrid class="grid grid-cols-4 gap-2">
|
|
843
|
+
<div brnMonthYearCalendarGrid class="tw:grid tw:grid-cols-4 tw:gap-2">
|
|
844
844
|
@for (year of _picker.years(); track _dateAdapter.getYear(year)) {
|
|
845
845
|
<button brnMonthYearCalendarYearButton [date]="year" [class]="_btnClass">
|
|
846
846
|
{{ _i18n.config().formatYear(_dateAdapter.getYear(year)) }}
|
|
@@ -849,7 +849,7 @@ class HlmMonthYearCalendar {
|
|
|
849
849
|
</div>
|
|
850
850
|
}
|
|
851
851
|
@case ('month') {
|
|
852
|
-
<div brnMonthYearCalendarGrid class="grid grid-cols-4 gap-2">
|
|
852
|
+
<div brnMonthYearCalendarGrid class="tw:grid tw:grid-cols-4 tw:gap-2">
|
|
853
853
|
@for (month of _picker.months(); track _dateAdapter.getMonth(month)) {
|
|
854
854
|
<button brnMonthYearCalendarMonthButton [date]="month" [class]="_btnClass">
|
|
855
855
|
{{ _i18n.config().months()[_dateAdapter.getMonth(month)] }}
|
|
@@ -861,7 +861,7 @@ class HlmMonthYearCalendar {
|
|
|
861
861
|
</div>
|
|
862
862
|
`, 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.HlmBtn, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size", "class", "type"], exportAs: ["hlmBtn"] }], viewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
863
863
|
}
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmMonthYearCalendar, decorators: [{
|
|
865
865
|
type: Component,
|
|
866
866
|
args: [{
|
|
867
867
|
selector: 'hlm-month-year-calendar',
|
|
@@ -877,22 +877,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
877
877
|
],
|
|
878
878
|
host: { 'data-slot': 'month-year-calendar' },
|
|
879
879
|
template: `
|
|
880
|
-
<div class="flex flex-col gap-4">
|
|
880
|
+
<div class="tw:flex tw:flex-col tw:gap-4">
|
|
881
881
|
<!-- Header -->
|
|
882
|
-
<div class="flex w-full items-center justify-between gap-1.5">
|
|
882
|
+
<div class="tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-1.5">
|
|
883
883
|
<button
|
|
884
884
|
brnMonthYearCalendarPreviousButton
|
|
885
885
|
hlmBtn
|
|
886
886
|
variant="ghost"
|
|
887
|
-
class="order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
887
|
+
class="tw:order-first tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
888
888
|
>
|
|
889
|
-
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
889
|
+
<ng-icon name="lucideChevronLeft" class="tw:rtl:rotate-180" />
|
|
890
890
|
</button>
|
|
891
891
|
|
|
892
892
|
<button
|
|
893
893
|
hlmBtn
|
|
894
894
|
variant="ghost"
|
|
895
|
-
class="h-(--cell-size) py-0 select-none aria-disabled:opacity-50"
|
|
895
|
+
class="tw:h-(--cell-size) tw:py-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
896
896
|
brnMonthYearCalendarHeader
|
|
897
897
|
>
|
|
898
898
|
{{ _heading() }}
|
|
@@ -902,16 +902,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
902
902
|
brnMonthYearCalendarNextButton
|
|
903
903
|
hlmBtn
|
|
904
904
|
variant="ghost"
|
|
905
|
-
class="order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50"
|
|
905
|
+
class="tw:order-last tw:size-(--cell-size) tw:p-0 tw:select-none tw:aria-disabled:opacity-50"
|
|
906
906
|
>
|
|
907
|
-
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
907
|
+
<ng-icon name="lucideChevronRight" class="tw:rtl:rotate-180" />
|
|
908
908
|
</button>
|
|
909
909
|
</div>
|
|
910
910
|
|
|
911
911
|
<!-- Grid -->
|
|
912
912
|
@switch (_picker.view()) {
|
|
913
913
|
@case ('year') {
|
|
914
|
-
<div brnMonthYearCalendarGrid class="grid grid-cols-4 gap-2">
|
|
914
|
+
<div brnMonthYearCalendarGrid class="tw:grid tw:grid-cols-4 tw:gap-2">
|
|
915
915
|
@for (year of _picker.years(); track _dateAdapter.getYear(year)) {
|
|
916
916
|
<button brnMonthYearCalendarYearButton [date]="year" [class]="_btnClass">
|
|
917
917
|
{{ _i18n.config().formatYear(_dateAdapter.getYear(year)) }}
|
|
@@ -920,7 +920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
920
920
|
</div>
|
|
921
921
|
}
|
|
922
922
|
@case ('month') {
|
|
923
|
-
<div brnMonthYearCalendarGrid class="grid grid-cols-4 gap-2">
|
|
923
|
+
<div brnMonthYearCalendarGrid class="tw:grid tw:grid-cols-4 tw:gap-2">
|
|
924
924
|
@for (month of _picker.months(); track _dateAdapter.getMonth(month)) {
|
|
925
925
|
<button brnMonthYearCalendarMonthButton [date]="month" [class]="_btnClass">
|
|
926
926
|
{{ _i18n.config().months()[_dateAdapter.getMonth(month)] }}
|
|
@@ -939,11 +939,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
939
939
|
*/
|
|
940
940
|
const HlmCalendarImports = [HlmCalendar, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar];
|
|
941
941
|
class HlmCalendarModule {
|
|
942
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
943
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
944
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
942
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
943
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarModule, imports: [HlmCalendar, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar], exports: [HlmCalendar, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar] });
|
|
944
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarModule, imports: [HlmCalendarImports] });
|
|
945
945
|
}
|
|
946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmCalendarModule, decorators: [{
|
|
947
947
|
type: NgModule,
|
|
948
948
|
args: [{
|
|
949
949
|
imports: [...HlmCalendarImports],
|
|
@@ -956,4 +956,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
956
956
|
*/
|
|
957
957
|
|
|
958
958
|
export { HlmCalendar, HlmCalendarImports, HlmCalendarModule, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar };
|
|
959
|
-
|
|
959
|
+
|