yukit-web 0.0.1
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/.npm/_logs/2026-08-20T08_40_55_706Z-debug-0.log +38 -0
- package/.npm/_logs/2026-08-20T08_40_56_280Z-debug-0.log +14 -0
- package/README.md +1465 -0
- package/fesm2022/yukit-web-helm-accordion.mjs +141 -0
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +250 -0
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-alert.mjs +94 -0
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +47 -0
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-attachment.mjs +211 -0
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-autocomplete.mjs +361 -0
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-avatar.mjs +152 -0
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-badge.mjs +47 -0
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +196 -0
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-bubble.mjs +121 -0
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-button-group.mjs +86 -0
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-button.mjs +77 -0
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-calendar.mjs +937 -0
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-card.mjs +141 -0
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-carousel.mjs +270 -0
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-checkbox.mjs +147 -0
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-collapsible.mjs +62 -0
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-combobox.mjs +624 -0
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-command.mjs +315 -0
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-context-menu.mjs +71 -0
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-date-picker.mjs +1517 -0
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-dialog.mjs +271 -0
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-drawer.mjs +233 -0
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +508 -0
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-empty.mjs +125 -0
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-field.mjs +325 -0
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-hover-card.mjs +102 -0
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-input-group.mjs +171 -0
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-input-otp.mjs +127 -0
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-input.mjs +32 -0
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-item.mjs +242 -0
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-kbd.mjs +46 -0
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-label.mjs +30 -0
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-marker.mjs +77 -0
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-menubar.mjs +90 -0
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-message.mjs +115 -0
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-native-select.mjs +180 -0
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +173 -0
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-pagination.mjs +745 -0
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-popover.mjs +136 -0
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-progress.mjs +60 -0
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-radio-group.mjs +185 -0
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-resizable.mjs +98 -0
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-scroll-area.mjs +36 -0
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-select.mjs +412 -0
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-separator.mjs +33 -0
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-sheet.mjs +254 -0
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-sidebar.mjs +857 -0
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-skeleton.mjs +29 -0
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-slider.mjs +123 -0
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-sonner.mjs +126 -0
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-spinner.mjs +48 -0
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-switch.mjs +126 -0
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-table.mjs +180 -0
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-tabs.mjs +251 -0
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-textarea.mjs +32 -0
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-toggle-group.mjs +95 -0
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-toggle.mjs +61 -0
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-tooltip.mjs +57 -0
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-typography.mjs +205 -0
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-utils.mjs +272 -0
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -0
- package/fesm2022/yukit-web.mjs +3592 -0
- package/fesm2022/yukit-web.mjs.map +1 -0
- package/package.json +291 -0
- package/src/lib/theme/spartan-overwrites/accordion.css +4 -0
- package/src/lib/theme/theme.css +161 -0
- package/src/lib/theme/tokens/color.css +356 -0
- package/src/lib/theme/tokens/component-colors.css +167 -0
- package/src/lib/theme/tokens/radius.css +18 -0
- package/src/lib/theme/tokens/typography.css +201 -0
- package/types/yukit-web-helm-accordion.d.ts +32 -0
- package/types/yukit-web-helm-alert-dialog.d.ts +85 -0
- package/types/yukit-web-helm-alert.d.ts +37 -0
- package/types/yukit-web-helm-aspect-ratio.d.ts +16 -0
- package/types/yukit-web-helm-attachment.d.ts +80 -0
- package/types/yukit-web-helm-autocomplete.d.ts +91 -0
- package/types/yukit-web-helm-avatar.d.ts +45 -0
- package/types/yukit-web-helm-badge.d.ts +19 -0
- package/types/yukit-web-helm-breadcrumb.d.ts +52 -0
- package/types/yukit-web-helm-bubble.d.ts +46 -0
- package/types/yukit-web-helm-button-group.d.ts +25 -0
- package/types/yukit-web-helm-button.d.ts +33 -0
- package/types/yukit-web-helm-calendar.d.ts +89 -0
- package/types/yukit-web-helm-card.d.ts +49 -0
- package/types/yukit-web-helm-carousel.d.ts +79 -0
- package/types/yukit-web-helm-checkbox.d.ts +60 -0
- package/types/yukit-web-helm-collapsible.d.ts +22 -0
- package/types/yukit-web-helm-combobox.d.ts +150 -0
- package/types/yukit-web-helm-command.d.ts +84 -0
- package/types/yukit-web-helm-context-menu.d.ts +29 -0
- package/types/yukit-web-helm-date-picker.d.ts +574 -0
- package/types/yukit-web-helm-dialog.d.ts +90 -0
- package/types/yukit-web-helm-drawer.d.ts +71 -0
- package/types/yukit-web-helm-dropdown-menu.d.ts +171 -0
- package/types/yukit-web-helm-empty.d.ts +49 -0
- package/types/yukit-web-helm-field.d.ts +102 -0
- package/types/yukit-web-helm-hover-card.d.ts +31 -0
- package/types/yukit-web-helm-input-group.d.ts +47 -0
- package/types/yukit-web-helm-input-otp.d.ts +40 -0
- package/types/yukit-web-helm-input.d.ts +13 -0
- package/types/yukit-web-helm-item.d.ts +96 -0
- package/types/yukit-web-helm-kbd.d.ts +17 -0
- package/types/yukit-web-helm-label.d.ts +12 -0
- package/types/yukit-web-helm-marker.d.ts +31 -0
- package/types/yukit-web-helm-menubar.d.ts +35 -0
- package/types/yukit-web-helm-message.d.ts +44 -0
- package/types/yukit-web-helm-native-select.d.ts +65 -0
- package/types/yukit-web-helm-navigation-menu.d.ts +49 -0
- package/types/yukit-web-helm-pagination.d.ts +187 -0
- package/types/yukit-web-helm-popover.d.ts +49 -0
- package/types/yukit-web-helm-progress.d.ts +22 -0
- package/types/yukit-web-helm-radio-group.d.ts +66 -0
- package/types/yukit-web-helm-resizable.d.ts +27 -0
- package/types/yukit-web-helm-scroll-area.d.ts +11 -0
- package/types/yukit-web-helm-select.d.ts +114 -0
- package/types/yukit-web-helm-separator.d.ts +13 -0
- package/types/yukit-web-helm-sheet.d.ts +75 -0
- package/types/yukit-web-helm-sidebar.d.ts +232 -0
- package/types/yukit-web-helm-skeleton.d.ts +11 -0
- package/types/yukit-web-helm-slider.d.ts +14 -0
- package/types/yukit-web-helm-sonner.d.ts +52 -0
- package/types/yukit-web-helm-spinner.d.ts +18 -0
- package/types/yukit-web-helm-switch.d.ts +54 -0
- package/types/yukit-web-helm-table.d.ts +82 -0
- package/types/yukit-web-helm-tabs.d.ts +66 -0
- package/types/yukit-web-helm-textarea.d.ts +13 -0
- package/types/yukit-web-helm-toggle-group.d.ts +34 -0
- package/types/yukit-web-helm-toggle.d.ts +22 -0
- package/types/yukit-web-helm-tooltip.d.ts +17 -0
- package/types/yukit-web-helm-typography.d.ts +89 -0
- package/types/yukit-web-helm-utils.d.ts +44 -0
- package/types/yukit-web.d.ts +2426 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-calendar.mjs","sources":["../../../projects/yukit-web/helm/calendar/src/lib/hlm-calendar.ts","../../../projects/yukit-web/helm/calendar/src/lib/hlm-calendar-multi.ts","../../../projects/yukit-web/helm/calendar/src/lib/hlm-calendar-range.ts","../../../projects/yukit-web/helm/calendar/src/lib/hlm-month-year-calendar.ts","../../../projects/yukit-web/helm/calendar/src/index.ts","../../../projects/yukit-web/helm/calendar/src/yukit-web-helm-calendar.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';\nimport { BrnCalendar, BrnCalendarImports, injectBrnCalendarI18n } from '@spartan-ng/brain/calendar';\nimport { injectDateAdapter } from '@spartan-ng/brain/date-time';\nimport { buttonVariants, HlmButtonImports } from 'yukit-web/helm/button';\nimport { HlmSelectImports } from 'yukit-web/helm/select';\nimport { classes, hlm } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-calendar',\n\timports: [BrnCalendarImports, NgIcon, HlmSelectImports, NgTemplateOutlet, HlmButtonImports],\n\tviewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCalendar,\n\t\t\tinputs: ['min', 'max', 'disabled', 'date', 'dateDisabled', 'weekStartsOn', 'highlightDays', 'defaultFocusedDate'],\n\t\t\toutputs: ['dateChange'],\n\t\t},\n\t],\n\thost: { 'data-slot': 'calendar' },\n\ttemplate: `\n\t\t<div class=\"inline-flex flex-col gap-4\">\n\t\t\t<!-- Header -->\n\t\t\t<div class=\"flex w-full items-center justify-between gap-1.5\">\n\t\t\t\t<ng-template #month>\n\t\t\t\t\t<hlm-select brnCalendarMonthSelect class=\"order-1\">\n\t\t\t\t\t\t<hlm-select-trigger size=\"sm\" [class]=\"_selectClass\">\n\t\t\t\t\t\t\t<hlm-select-value />\n\t\t\t\t\t\t</hlm-select-trigger>\n\t\t\t\t\t\t<hlm-select-content *hlmSelectPortal class=\"max-h-80\">\n\t\t\t\t\t\t\t<hlm-select-group>\n\t\t\t\t\t\t\t\t@for (month of _i18n.config().months(); track month) {\n\t\t\t\t\t\t\t\t\t<hlm-select-item [value]=\"month\">{{ month }}</hlm-select-item>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</hlm-select-group>\n\t\t\t\t\t\t</hlm-select-content>\n\t\t\t\t\t</hlm-select>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template #year>\n\t\t\t\t\t<hlm-select brnCalendarYearSelect class=\"order-3\">\n\t\t\t\t\t\t<hlm-select-trigger size=\"sm\" [class]=\"_selectClass\">\n\t\t\t\t\t\t\t<hlm-select-value />\n\t\t\t\t\t\t</hlm-select-trigger>\n\t\t\t\t\t\t<hlm-select-content *hlmSelectPortal class=\"max-h-80\">\n\t\t\t\t\t\t\t<hlm-select-group>\n\t\t\t\t\t\t\t\t@for (year of _i18n.config().years(); track year) {\n\t\t\t\t\t\t\t\t\t<hlm-select-item [value]=\"year\">{{ year }}</hlm-select-item>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</hlm-select-group>\n\t\t\t\t\t\t</hlm-select-content>\n\t\t\t\t\t</hlm-select>\n\t\t\t\t</ng-template>\n\t\t\t\t@let heading = _heading();\n\n\t\t\t\t<button\n\t\t\t\t\tbrnCalendarPreviousButton\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\thlmBtn\n\t\t\t\t\tclass=\"order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronLeft\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\n\t\t\t\t@switch (captionLayout()) {\n\t\t\t\t\t@case ('dropdown') {\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"month\" />\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"year\" />\n\t\t\t\t\t}\n\t\t\t\t\t@case ('dropdown-months') {\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"month\" />\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-4 text-sm font-medium\">{{ heading.year }}</div>\n\t\t\t\t\t}\n\t\t\t\t\t@case ('dropdown-years') {\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-2 text-sm font-medium\">{{ heading.month }}</div>\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"year\" />\n\t\t\t\t\t}\n\t\t\t\t\t@case ('label') {\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-5 text-sm font-medium\">{{ heading.header }}</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t<button\n\t\t\t\t\tbrnCalendarNextButton\n\t\t\t\t\thlmBtn\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tclass=\"order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronRight\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<table class=\"w-full border-collapse space-y-1\" brnCalendarGrid>\n\t\t\t\t<thead aria-hidden=\"true\">\n\t\t\t\t\t<tr class=\"flex\">\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t*brnCalendarWeekday=\"let weekday\"\n\t\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\t\tclass=\"text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none\"\n\t\t\t\t\t\t\t[attr.aria-label]=\"_i18n.config().labelWeekday(weekday)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ _i18n.config().formatWeekdayName(weekday) }}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\n\t\t\t\t<tbody role=\"rowgroup\">\n\t\t\t\t\t<tr *brnCalendarWeek=\"let week\" class=\"mt-2 flex w-full\">\n\t\t\t\t\t\t@for (date of week; track _dateAdapter.getTime(date)) {\n\t\t\t\t\t\t\t<td\n\t\t\t\t\t\t\t\tbrnCalendarCell\n\t\t\t\t\t\t\t\tclass=\"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)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button brnCalendarCellButton [date]=\"date\" [class]=\"_btnClass\">\n\t\t\t\t\t\t\t\t\t{{ _dateAdapter.getDate(date) }}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t`,\n})\nexport class HlmCalendar<T> {\n\t/** Access the calendar i18n */\n\tprotected readonly _i18n = injectBrnCalendarI18n();\n\n\t/** Access the date time adapter */\n\tprotected readonly _dateAdapter = injectDateAdapter<T>();\n\n\t/** Show dropdowns to navigate between months or years. */\n\tpublic readonly captionLayout = input<'dropdown' | 'label' | 'dropdown-months' | 'dropdown-years'>('label');\n\n\t/** Access the calendar directive */\n\tprivate readonly _calendar = inject(BrnCalendar);\n\n\t/** Get the heading for the current month and year */\n\tprotected readonly _heading = computed(() => {\n\t\tconst config = this._i18n.config();\n\t\tconst date = this._calendar.focusedDate();\n\n\t\treturn {\n\t\t\theader: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),\n\t\t\tmonth: config.formatMonth(this._dateAdapter.getMonth(date)),\n\t\t\tyear: config.formatYear(this._dateAdapter.getYear(date)),\n\t\t};\n\t});\n\n\tprotected readonly _btnClass = hlm(\n\t\tbuttonVariants({ variant: 'ghost', size: 'icon' }),\n\t\t'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',\n\t\t'data-[outside=true]:opacity-50',\n\t\t\"data-[highlighted]:before:content-['']\",\n\t\t'data-[highlighted]:before:absolute',\n\t\t'data-[highlighted]:before:bottom-1',\n\t\t'data-[highlighted]:before:start-1/2',\n\t\t'data-[highlighted]:before:h-1',\n\t\t'data-[highlighted]:before:w-1',\n\t\t'data-[highlighted]:before:-translate-x-1/2',\n\t\t'data-[highlighted]:before:rounded-full',\n\t\t'data-[highlighted]:before:bg-destructive',\n\t);\n\n\tprotected readonly _selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'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',\n\t\t);\n\t}\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';\nimport { BrnCalendarImports, BrnCalendarMulti, injectBrnCalendarI18n } from '@spartan-ng/brain/calendar';\nimport { injectDateAdapter } from '@spartan-ng/brain/date-time';\nimport { buttonVariants, HlmButtonImports } from 'yukit-web/helm/button';\nimport { HlmSelectImports } from 'yukit-web/helm/select';\nimport { classes, hlm } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-calendar-multi',\n\timports: [BrnCalendarImports, NgIcon, NgTemplateOutlet, HlmSelectImports, HlmButtonImports],\n\tviewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCalendarMulti,\n\t\t\tinputs: [\n\t\t\t\t'min',\n\t\t\t\t'max',\n\t\t\t\t'minSelection',\n\t\t\t\t'maxSelection',\n\t\t\t\t'disabled',\n\t\t\t\t'date',\n\t\t\t\t'dateDisabled',\n\t\t\t\t'weekStartsOn',\n\t\t\t\t'highlightDays',\n\t\t\t\t'defaultFocusedDate',\n\t\t\t],\n\t\t\toutputs: ['dateChange'],\n\t\t},\n\t],\n\thost: { 'data-slot': 'calendar' },\n\ttemplate: `\n\t\t<div class=\"inline-flex flex-col space-y-4\">\n\t\t\t<!-- Header -->\n\t\t\t<div class=\"flex w-full items-center justify-between gap-1.5\">\n\t\t\t\t<ng-template #month>\n\t\t\t\t\t<hlm-select brnCalendarMonthSelect class=\"order-1\">\n\t\t\t\t\t\t<hlm-select-trigger size=\"sm\" [class]=\"_selectClass\">\n\t\t\t\t\t\t\t<hlm-select-value />\n\t\t\t\t\t\t</hlm-select-trigger>\n\t\t\t\t\t\t<hlm-select-content *hlmSelectPortal class=\"max-h-80\">\n\t\t\t\t\t\t\t<hlm-select-group>\n\t\t\t\t\t\t\t\t@for (month of _i18n.config().months(); track month) {\n\t\t\t\t\t\t\t\t\t<hlm-select-item [value]=\"month\">{{ month }}</hlm-select-item>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</hlm-select-group>\n\t\t\t\t\t\t</hlm-select-content>\n\t\t\t\t\t</hlm-select>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template #year>\n\t\t\t\t\t<hlm-select brnCalendarYearSelect class=\"order-3\">\n\t\t\t\t\t\t<hlm-select-trigger size=\"sm\" [class]=\"_selectClass\">\n\t\t\t\t\t\t\t<hlm-select-value />\n\t\t\t\t\t\t</hlm-select-trigger>\n\t\t\t\t\t\t<hlm-select-content *hlmSelectPortal class=\"max-h-80\">\n\t\t\t\t\t\t\t<hlm-select-group>\n\t\t\t\t\t\t\t\t@for (year of _i18n.config().years(); track year) {\n\t\t\t\t\t\t\t\t\t<hlm-select-item [value]=\"year\">{{ year }}</hlm-select-item>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</hlm-select-group>\n\t\t\t\t\t\t</hlm-select-content>\n\t\t\t\t\t</hlm-select>\n\t\t\t\t</ng-template>\n\t\t\t\t@let heading = _heading();\n\n\t\t\t\t<button\n\t\t\t\t\tbrnCalendarPreviousButton\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\thlmBtn\n\t\t\t\t\tclass=\"order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronLeft\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\n\t\t\t\t@switch (captionLayout()) {\n\t\t\t\t\t@case ('dropdown') {\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"month\" />\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"year\" />\n\t\t\t\t\t}\n\t\t\t\t\t@case ('dropdown-months') {\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"month\" />\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-4 text-sm font-medium\">{{ heading.year }}</div>\n\t\t\t\t\t}\n\t\t\t\t\t@case ('dropdown-years') {\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-2 text-sm font-medium\">{{ heading.month }}</div>\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"year\" />\n\t\t\t\t\t}\n\t\t\t\t\t@case ('label') {\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-5 text-sm font-medium\">{{ heading.header }}</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t<button\n\t\t\t\t\tbrnCalendarNextButton\n\t\t\t\t\thlmBtn\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tclass=\"order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronRight\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<table class=\"w-full border-collapse\" brnCalendarGrid>\n\t\t\t\t<thead aria-hidden=\"true\">\n\t\t\t\t\t<tr class=\"flex\">\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t*brnCalendarWeekday=\"let weekday\"\n\t\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\t\tclass=\"text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none\"\n\t\t\t\t\t\t\t[attr.aria-label]=\"_i18n.config().labelWeekday(weekday)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ _i18n.config().formatWeekdayName(weekday) }}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\n\t\t\t\t<tbody role=\"rowgroup\">\n\t\t\t\t\t<tr *brnCalendarWeek=\"let week\" class=\"mt-2 flex w-full\">\n\t\t\t\t\t\t@for (date of week; track _dateAdapter.getTime(date)) {\n\t\t\t\t\t\t\t<td\n\t\t\t\t\t\t\t\tbrnCalendarCell\n\t\t\t\t\t\t\t\tclass=\"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)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button brnCalendarCellButton [date]=\"date\" [class]=\"_btnClass\">\n\t\t\t\t\t\t\t\t\t{{ _dateAdapter.getDate(date) }}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t`,\n})\nexport class HlmCalendarMulti<T> {\n\t/** Show dropdowns to navigate between months or years. */\n\tpublic readonly captionLayout = input<'dropdown' | 'label' | 'dropdown-months' | 'dropdown-years'>('label');\n\n\t/** Access the calendar i18n */\n\tprotected readonly _i18n = injectBrnCalendarI18n();\n\n\t/** Access the date time adapter */\n\tprotected readonly _dateAdapter = injectDateAdapter<T>();\n\n\t/** Access the calendar directive */\n\tprivate readonly _calendar = inject(BrnCalendarMulti);\n\n\t/** Get the heading for the current month and year */\n\tprotected readonly _heading = computed(() => {\n\t\tconst config = this._i18n.config();\n\t\tconst date = this._calendar.focusedDate();\n\n\t\treturn {\n\t\t\theader: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),\n\t\t\tmonth: config.formatMonth(this._dateAdapter.getMonth(date)),\n\t\t\tyear: config.formatYear(this._dateAdapter.getYear(date)),\n\t\t};\n\t});\n\n\tprotected readonly _btnClass = hlm(\n\t\tbuttonVariants({ variant: 'ghost', size: 'icon' }),\n\t\t'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',\n\t\t'data-[outside=true]:opacity-50',\n\t\t\"data-[highlighted]:before:content-['']\",\n\t\t'data-[highlighted]:before:absolute',\n\t\t'data-[highlighted]:before:bottom-1',\n\t\t'data-[highlighted]:before:start-1/2',\n\t\t'data-[highlighted]:before:h-1',\n\t\t'data-[highlighted]:before:w-1',\n\t\t'data-[highlighted]:before:-translate-x-1/2',\n\t\t'data-[highlighted]:before:rounded-full',\n\t\t'data-[highlighted]:before:bg-destructive',\n\t);\n\n\tprotected readonly _selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'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',\n\t\t);\n\t}\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';\nimport { BrnCalendarImports, BrnCalendarRange, injectBrnCalendarI18n } from '@spartan-ng/brain/calendar';\nimport { injectDateAdapter } from '@spartan-ng/brain/date-time';\nimport { buttonVariants, HlmButtonImports } from 'yukit-web/helm/button';\nimport { HlmSelectImports } from 'yukit-web/helm/select';\nimport { classes, hlm } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-calendar-range',\n\timports: [BrnCalendarImports, NgIcon, HlmSelectImports, NgTemplateOutlet, HlmButtonImports],\n\tviewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCalendarRange,\n\t\t\tinputs: [\n\t\t\t\t'min',\n\t\t\t\t'max',\n\t\t\t\t'disabled',\n\t\t\t\t'startDate',\n\t\t\t\t'endDate',\n\t\t\t\t'dateDisabled',\n\t\t\t\t'weekStartsOn',\n\t\t\t\t'highlightDays',\n\t\t\t\t'defaultFocusedDate',\n\t\t\t],\n\t\t\toutputs: ['endDateChange', 'startDateChange'],\n\t\t},\n\t],\n\thost: { 'data-slot': 'calendar' },\n\ttemplate: `\n\t\t<div class=\"inline-flex flex-col space-y-4\">\n\t\t\t<!-- Header -->\n\t\t\t<div class=\"flex w-full items-center justify-between gap-1.5\">\n\t\t\t\t<ng-template #month>\n\t\t\t\t\t<hlm-select brnCalendarMonthSelect class=\"order-1\">\n\t\t\t\t\t\t<hlm-select-trigger size=\"sm\" [class]=\"_selectClass\">\n\t\t\t\t\t\t\t<hlm-select-value />\n\t\t\t\t\t\t</hlm-select-trigger>\n\t\t\t\t\t\t<hlm-select-content *hlmSelectPortal class=\"max-h-80\">\n\t\t\t\t\t\t\t<hlm-select-group>\n\t\t\t\t\t\t\t\t@for (month of _i18n.config().months(); track month) {\n\t\t\t\t\t\t\t\t\t<hlm-select-item [value]=\"month\">{{ month }}</hlm-select-item>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</hlm-select-group>\n\t\t\t\t\t\t</hlm-select-content>\n\t\t\t\t\t</hlm-select>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template #year>\n\t\t\t\t\t<hlm-select brnCalendarYearSelect class=\"order-3\">\n\t\t\t\t\t\t<hlm-select-trigger size=\"sm\" [class]=\"_selectClass\">\n\t\t\t\t\t\t\t<hlm-select-value />\n\t\t\t\t\t\t</hlm-select-trigger>\n\t\t\t\t\t\t<hlm-select-content *hlmSelectPortal class=\"max-h-80\">\n\t\t\t\t\t\t\t<hlm-select-group>\n\t\t\t\t\t\t\t\t@for (year of _i18n.config().years(); track year) {\n\t\t\t\t\t\t\t\t\t<hlm-select-item [value]=\"year\">{{ year }}</hlm-select-item>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</hlm-select-group>\n\t\t\t\t\t\t</hlm-select-content>\n\t\t\t\t\t</hlm-select>\n\t\t\t\t</ng-template>\n\t\t\t\t@let heading = _heading();\n\n\t\t\t\t<button\n\t\t\t\t\tbrnCalendarPreviousButton\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\thlmBtn\n\t\t\t\t\tclass=\"order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronLeft\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\n\t\t\t\t@switch (captionLayout()) {\n\t\t\t\t\t@case ('dropdown') {\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"month\" />\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"year\" />\n\t\t\t\t\t}\n\t\t\t\t\t@case ('dropdown-months') {\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"month\" />\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-4 text-sm font-medium\">{{ heading.year }}</div>\n\t\t\t\t\t}\n\t\t\t\t\t@case ('dropdown-years') {\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-2 text-sm font-medium\">{{ heading.month }}</div>\n\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"year\" />\n\t\t\t\t\t}\n\t\t\t\t\t@case ('label') {\n\t\t\t\t\t\t<div brnCalendarHeader class=\"order-5 text-sm font-medium\">{{ heading.header }}</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t<button\n\t\t\t\t\tbrnCalendarNextButton\n\t\t\t\t\thlmBtn\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tclass=\"order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronRight\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<table class=\"w-full border-collapse space-y-1\" brnCalendarGrid>\n\t\t\t\t<thead aria-hidden=\"true\">\n\t\t\t\t\t<tr class=\"flex\">\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t*brnCalendarWeekday=\"let weekday\"\n\t\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\t\tclass=\"text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none\"\n\t\t\t\t\t\t\t[attr.aria-label]=\"_i18n.config().labelWeekday(weekday)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ _i18n.config().formatWeekdayName(weekday) }}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\n\t\t\t\t<tbody role=\"rowgroup\">\n\t\t\t\t\t<tr *brnCalendarWeek=\"let week\" class=\"mt-2 flex w-full\">\n\t\t\t\t\t\t@for (date of week; track _dateAdapter.getTime(date)) {\n\t\t\t\t\t\t\t<td\n\t\t\t\t\t\t\t\tbrnCalendarCell\n\t\t\t\t\t\t\t\tclass=\"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)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button brnCalendarCellButton [date]=\"date\" [class]=\"_btnClass\">\n\t\t\t\t\t\t\t\t\t{{ _dateAdapter.getDate(date) }}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t`,\n})\nexport class HlmCalendarRange<T> {\n\t/** Show dropdowns to navigate between months or years. */\n\tpublic readonly captionLayout = input<'dropdown' | 'label' | 'dropdown-months' | 'dropdown-years'>('label');\n\n\t/** Access the calendar i18n */\n\tprotected readonly _i18n = injectBrnCalendarI18n();\n\n\t/** Access the date time adapter */\n\tprotected readonly _dateAdapter = injectDateAdapter<T>();\n\n\t/** Access the calendar directive */\n\tprivate readonly _calendar = inject(BrnCalendarRange);\n\n\t/** Get the heading for the current month and year */\n\tprotected readonly _heading = computed(() => {\n\t\tconst config = this._i18n.config();\n\t\tconst date = this._calendar.focusedDate();\n\n\t\treturn {\n\t\t\theader: config.formatHeader(this._dateAdapter.getMonth(date), this._dateAdapter.getYear(date)),\n\t\t\tmonth: config.formatMonth(this._dateAdapter.getMonth(date)),\n\t\t\tyear: config.formatYear(this._dateAdapter.getYear(date)),\n\t\t};\n\t});\n\n\tprotected readonly _btnClass = hlm(\n\t\tbuttonVariants({ variant: 'ghost', size: 'icon' }),\n\t\t'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',\n\t\t'data-[outside=true]:opacity-50',\n\t\t\"data-[highlighted]:before:content-['']\",\n\t\t'data-[highlighted]:before:absolute',\n\t\t'data-[highlighted]:before:bottom-1',\n\t\t'data-[highlighted]:before:start-1/2',\n\t\t'data-[highlighted]:before:h-1',\n\t\t'data-[highlighted]:before:w-1',\n\t\t'data-[highlighted]:before:-translate-x-1/2',\n\t\t'data-[highlighted]:before:rounded-full',\n\t\t'data-[highlighted]:before:bg-destructive',\n\t);\n\n\tprotected readonly _selectClass = 'gap-0 px-1.5 py-2 [&>ng-icon]:ms-1';\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'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',\n\t\t);\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';\nimport { BrnCalendarImports, BrnMonthYearCalendar, injectBrnCalendarI18n } from '@spartan-ng/brain/calendar';\nimport { injectDateAdapter } from '@spartan-ng/brain/date-time';\nimport { buttonVariants, HlmButtonImports } from 'yukit-web/helm/button';\nimport { classes, hlm } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-month-year-calendar',\n\timports: [BrnCalendarImports, NgIcon, HlmButtonImports],\n\tviewProviders: [provideIcons({ lucideChevronLeft, lucideChevronRight })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnMonthYearCalendar,\n\t\t\tinputs: ['min', 'max', 'disabled', 'date', 'defaultFocusedDate', 'view'],\n\t\t\toutputs: ['dateChange'],\n\t\t},\n\t],\n\thost: { 'data-slot': 'month-year-calendar' },\n\ttemplate: `\n\t\t<div class=\"flex flex-col gap-4\">\n\t\t\t<!-- Header -->\n\t\t\t<div class=\"flex w-full items-center justify-between gap-1.5\">\n\t\t\t\t<button\n\t\t\t\t\tbrnMonthYearCalendarPreviousButton\n\t\t\t\t\thlmBtn\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tclass=\"order-first size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronLeft\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\n\t\t\t\t<button\n\t\t\t\t\thlmBtn\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tclass=\"h-(--cell-size) py-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t\tbrnMonthYearCalendarHeader\n\t\t\t\t>\n\t\t\t\t\t{{ _heading() }}\n\t\t\t\t</button>\n\n\t\t\t\t<button\n\t\t\t\t\tbrnMonthYearCalendarNextButton\n\t\t\t\t\thlmBtn\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tclass=\"order-last size-(--cell-size) p-0 select-none aria-disabled:opacity-50\"\n\t\t\t\t>\n\t\t\t\t\t<ng-icon name=\"lucideChevronRight\" class=\"rtl:rotate-180\" />\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Grid -->\n\t\t\t@switch (_picker.view()) {\n\t\t\t\t@case ('year') {\n\t\t\t\t\t<div brnMonthYearCalendarGrid class=\"grid grid-cols-4 gap-2\">\n\t\t\t\t\t\t@for (year of _picker.years(); track _dateAdapter.getYear(year)) {\n\t\t\t\t\t\t\t<button brnMonthYearCalendarYearButton [date]=\"year\" [class]=\"_btnClass\">\n\t\t\t\t\t\t\t\t{{ _i18n.config().formatYear(_dateAdapter.getYear(year)) }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@case ('month') {\n\t\t\t\t\t<div brnMonthYearCalendarGrid class=\"grid grid-cols-4 gap-2\">\n\t\t\t\t\t\t@for (month of _picker.months(); track _dateAdapter.getMonth(month)) {\n\t\t\t\t\t\t\t<button brnMonthYearCalendarMonthButton [date]=\"month\" [class]=\"_btnClass\">\n\t\t\t\t\t\t\t\t{{ _i18n.config().months()[_dateAdapter.getMonth(month)] }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t}\n\t\t</div>\n\t`,\n})\nexport class HlmMonthYearCalendar<T> {\n\t/** Access the calendar i18n */\n\tprotected readonly _i18n = injectBrnCalendarI18n();\n\n\t/** Access the date adapter */\n\tprotected readonly _dateAdapter = injectDateAdapter<T>();\n\n\t/** Access the picker directive */\n\tprotected readonly _picker = inject(BrnMonthYearCalendar<T>);\n\n\t/** The heading for the current view. */\n\tprotected readonly _heading = computed(() => {\n\t\tconst config = this._i18n.config();\n\n\t\tif (this._picker.view() === 'month') {\n\t\t\treturn config.formatYear(this._dateAdapter.getYear(this._picker.focusedDate()));\n\t\t}\n\n\t\tconst { start, end } = this._picker.yearRange();\n\t\treturn `${config.formatYear(start)} – ${config.formatYear(end)}`;\n\t});\n\n\tprotected readonly _btnClass = hlm(\n\t\tbuttonVariants({ variant: 'ghost' }),\n\t\t'data-[today=true]:bg-muted',\n\t\t'data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground data-[selected=true]:hover:bg-primary data-[selected=true]:hover:text-primary-foreground',\n\t\t'data-[focused=true]:border-ring data-[focused=true]:ring-ring/50 data-[focused=true]:ring-[3px]',\n\t\t'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n\t\t'h-(--cell-size)',\n\t);\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'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',\n\t\t);\n\t}\n}\n","import { HlmCalendar } from './lib/hlm-calendar';\nimport { HlmCalendarMulti } from './lib/hlm-calendar-multi';\nimport { HlmCalendarRange } from './lib/hlm-calendar-range';\nimport { HlmMonthYearCalendar } from './lib/hlm-month-year-calendar';\n\nexport * from './lib/hlm-calendar';\nexport * from './lib/hlm-calendar-multi';\nexport * from './lib/hlm-calendar-range';\nexport * from './lib/hlm-month-year-calendar';\n\nexport const HlmCalendarImports = [HlmCalendar, HlmCalendarMulti, HlmCalendarRange, HlmMonthYearCalendar] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;;MA8Ha,WAAW,CAAA;AA0CvB,IAAA,WAAA,GAAA;;QAxCmB,IAAA,CAAA,KAAK,GAAG,qBAAqB,EAAE;;QAG/B,IAAA,CAAA,YAAY,GAAG,iBAAiB,EAAK;;AAGxC,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAA8D,OAAO,oFAAC;;AAG1F,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC;;AAG7B,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;YAC3C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YAClC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAEzC,OAAO;gBACN,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC9F,gBAAA,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC3D,gBAAA,IAAI,EAAE,MAAM,CAA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AC;oBACvD,aAAa,EAAE,CAAC,YAAY,CAAC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC,CAAC;oBACxE,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,cAAc,EAAE;AACf,wBAAA;AACC,4BAAA,SAAS,EAAE,oBAAoB;AAC/B,4BAAA,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,CAAC;4BACxE,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,yBAAA;AACD,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;AAC5C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDT,CAAA,CAAA;AACD,iBAAA;;;AClEM,MAAM,kBAAkB,GAAG,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,oBAAoB;;ACVxG;;AAEG;;;;"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, input, Directive } from '@angular/core';
|
|
3
|
+
import { classes } from 'yukit-web/helm/utils';
|
|
4
|
+
|
|
5
|
+
const defaultConfig = {
|
|
6
|
+
size: 'default',
|
|
7
|
+
};
|
|
8
|
+
const HlmCardConfigToken = new InjectionToken('HlmCardConfig');
|
|
9
|
+
function provideHlmCardConfig(config) {
|
|
10
|
+
return { provide: HlmCardConfigToken, useValue: { ...defaultConfig, ...config } };
|
|
11
|
+
}
|
|
12
|
+
function injectHlmCardConfig() {
|
|
13
|
+
return inject(HlmCardConfigToken, { optional: true }) ?? defaultConfig;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class HlmCard {
|
|
17
|
+
constructor() {
|
|
18
|
+
this._defaultConfig = injectHlmCardConfig();
|
|
19
|
+
this.size = input(this._defaultConfig.size, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
20
|
+
classes(() => 'ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col');
|
|
21
|
+
}
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
23
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmCard, isStandalone: true, selector: "[hlmCard],hlm-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card" }, properties: { "attr.data-size": "size()" } }, ngImport: i0 }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCard, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
selector: '[hlmCard],hlm-card',
|
|
29
|
+
host: {
|
|
30
|
+
'data-slot': 'card',
|
|
31
|
+
'[attr.data-size]': 'size()',
|
|
32
|
+
},
|
|
33
|
+
}]
|
|
34
|
+
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
35
|
+
|
|
36
|
+
class HlmCardAction {
|
|
37
|
+
constructor() {
|
|
38
|
+
classes(() => 'col-start-2 row-span-2 row-start-1 self-start justify-self-end');
|
|
39
|
+
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
41
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardAction, isStandalone: true, selector: "[hlmCardAction]", host: { attributes: { "data-slot": "card-action" } }, ngImport: i0 }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardAction, decorators: [{
|
|
44
|
+
type: Directive,
|
|
45
|
+
args: [{
|
|
46
|
+
selector: '[hlmCardAction]',
|
|
47
|
+
host: { 'data-slot': 'card-action' },
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: () => [] });
|
|
50
|
+
|
|
51
|
+
class HlmCardContent {
|
|
52
|
+
constructor() {
|
|
53
|
+
classes(() => 'px-(--card-spacing)');
|
|
54
|
+
}
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
56
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardContent, isStandalone: true, selector: "[hlmCardContent]", host: { attributes: { "data-slot": "card-content" } }, ngImport: i0 }); }
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardContent, decorators: [{
|
|
59
|
+
type: Directive,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: '[hlmCardContent]',
|
|
62
|
+
host: { 'data-slot': 'card-content' },
|
|
63
|
+
}]
|
|
64
|
+
}], ctorParameters: () => [] });
|
|
65
|
+
|
|
66
|
+
class HlmCardDescription {
|
|
67
|
+
constructor() {
|
|
68
|
+
classes(() => 'text-muted-foreground text-sm');
|
|
69
|
+
}
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
71
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardDescription, isStandalone: true, selector: "[hlmCardDescription]", host: { attributes: { "data-slot": "card-description" } }, ngImport: i0 }); }
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardDescription, decorators: [{
|
|
74
|
+
type: Directive,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: '[hlmCardDescription]',
|
|
77
|
+
host: { 'data-slot': 'card-description' },
|
|
78
|
+
}]
|
|
79
|
+
}], ctorParameters: () => [] });
|
|
80
|
+
|
|
81
|
+
class HlmCardFooter {
|
|
82
|
+
constructor() {
|
|
83
|
+
classes(() => 'bg-muted/50 rounded-b-xl border-t p-(--card-spacing) flex items-center');
|
|
84
|
+
}
|
|
85
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
86
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardFooter, isStandalone: true, selector: "[hlmCardFooter],hlm-card-footer", host: { attributes: { "data-slot": "card-footer" } }, ngImport: i0 }); }
|
|
87
|
+
}
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardFooter, decorators: [{
|
|
89
|
+
type: Directive,
|
|
90
|
+
args: [{
|
|
91
|
+
selector: '[hlmCardFooter],hlm-card-footer',
|
|
92
|
+
host: { 'data-slot': 'card-footer' },
|
|
93
|
+
}]
|
|
94
|
+
}], ctorParameters: () => [] });
|
|
95
|
+
|
|
96
|
+
class HlmCardHeader {
|
|
97
|
+
constructor() {
|
|
98
|
+
classes(() => 'gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]');
|
|
99
|
+
}
|
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
101
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardHeader, isStandalone: true, selector: "[hlmCardHeader],hlm-card-header", host: { attributes: { "data-slot": "card-header" } }, ngImport: i0 }); }
|
|
102
|
+
}
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardHeader, decorators: [{
|
|
104
|
+
type: Directive,
|
|
105
|
+
args: [{
|
|
106
|
+
selector: '[hlmCardHeader],hlm-card-header',
|
|
107
|
+
host: { 'data-slot': 'card-header' },
|
|
108
|
+
}]
|
|
109
|
+
}], ctorParameters: () => [] });
|
|
110
|
+
|
|
111
|
+
class HlmCardTitle {
|
|
112
|
+
constructor() {
|
|
113
|
+
classes(() => 'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm');
|
|
114
|
+
}
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
116
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardTitle, isStandalone: true, selector: "[hlmCardTitle]", host: { attributes: { "data-slot": "card-title" } }, ngImport: i0 }); }
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardTitle, decorators: [{
|
|
119
|
+
type: Directive,
|
|
120
|
+
args: [{
|
|
121
|
+
selector: '[hlmCardTitle]',
|
|
122
|
+
host: { 'data-slot': 'card-title' },
|
|
123
|
+
}]
|
|
124
|
+
}], ctorParameters: () => [] });
|
|
125
|
+
|
|
126
|
+
const HlmCardImports = [
|
|
127
|
+
HlmCard,
|
|
128
|
+
HlmCardAction,
|
|
129
|
+
HlmCardContent,
|
|
130
|
+
HlmCardDescription,
|
|
131
|
+
HlmCardFooter,
|
|
132
|
+
HlmCardHeader,
|
|
133
|
+
HlmCardTitle,
|
|
134
|
+
];
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Generated bundle index. Do not edit.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
export { HlmCard, HlmCardAction, HlmCardContent, HlmCardDescription, HlmCardFooter, HlmCardHeader, HlmCardImports, HlmCardTitle };
|
|
141
|
+
//# sourceMappingURL=yukit-web-helm-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-card.mjs","sources":["../../../projects/yukit-web/helm/card/src/lib/hlm-card.token.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-action.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-content.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-description.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-footer.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-header.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-title.ts","../../../projects/yukit-web/helm/card/src/index.ts","../../../projects/yukit-web/helm/card/src/yukit-web-helm-card.ts"],"sourcesContent":["import { inject, InjectionToken, type ValueProvider } from '@angular/core';\n\nexport type HlmCardConfig = {\n\tsize: 'sm' | 'default';\n};\n\nconst defaultConfig: HlmCardConfig = {\n\tsize: 'default',\n};\n\nconst HlmCardConfigToken = new InjectionToken<HlmCardConfig>('HlmCardConfig');\n\nexport function provideHlmCardConfig(config: Partial<HlmCardConfig>): ValueProvider {\n\treturn { provide: HlmCardConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectHlmCardConfig(): HlmCardConfig {\n\treturn inject(HlmCardConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCardConfig, injectHlmCardConfig } from './hlm-card.token';\n\n@Directive({\n\tselector: '[hlmCard],hlm-card',\n\thost: {\n\t\t'data-slot': 'card',\n\t\t'[attr.data-size]': 'size()',\n\t},\n})\nexport class HlmCard {\n\tprivate readonly _defaultConfig = injectHlmCardConfig();\n\tpublic readonly size = input<HlmCardConfig['size']>(this._defaultConfig.size);\n\n\tconstructor() {\n\t\tclasses(() => 'ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardAction]',\n\thost: { 'data-slot': 'card-action' },\n})\nexport class HlmCardAction {\n\tconstructor() {\n\t\tclasses(() => 'col-start-2 row-span-2 row-start-1 self-start justify-self-end');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardContent]',\n\thost: { 'data-slot': 'card-content' },\n})\nexport class HlmCardContent {\n\tconstructor() {\n\t\tclasses(() => 'px-(--card-spacing)');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardDescription]',\n\thost: { 'data-slot': 'card-description' },\n})\nexport class HlmCardDescription {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground text-sm');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardFooter],hlm-card-footer',\n\thost: { 'data-slot': 'card-footer' },\n})\nexport class HlmCardFooter {\n\tconstructor() {\n\t\tclasses(() => 'bg-muted/50 rounded-b-xl border-t p-(--card-spacing) flex items-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardHeader],hlm-card-header',\n\thost: { 'data-slot': 'card-header' },\n})\nexport class HlmCardHeader {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardTitle]',\n\thost: { 'data-slot': 'card-title' },\n})\nexport class HlmCardTitle {\n\tconstructor() {\n\t\tclasses(() => 'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm');\n\t}\n}\n","import { HlmCard } from './lib/hlm-card';\nimport { HlmCardAction } from './lib/hlm-card-action';\nimport { HlmCardContent } from './lib/hlm-card-content';\nimport { HlmCardDescription } from './lib/hlm-card-description';\nimport { HlmCardFooter } from './lib/hlm-card-footer';\nimport { HlmCardHeader } from './lib/hlm-card-header';\nimport { HlmCardTitle } from './lib/hlm-card-title';\n\nexport * from './lib/hlm-card';\nexport * from './lib/hlm-card-action';\nexport * from './lib/hlm-card-content';\nexport * from './lib/hlm-card-description';\nexport * from './lib/hlm-card-footer';\nexport * from './lib/hlm-card-header';\nexport * from './lib/hlm-card-title';\n\nexport const HlmCardImports = [\n\tHlmCard,\n\tHlmCardAction,\n\tHlmCardContent,\n\tHlmCardDescription,\n\tHlmCardFooter,\n\tHlmCardHeader,\n\tHlmCardTitle,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMA,MAAM,aAAa,GAAkB;AACpC,IAAA,IAAI,EAAE,SAAS;CACf;AAED,MAAM,kBAAkB,GAAG,IAAI,cAAc,CAAgB,eAAe,CAAC;AAEvE,SAAU,oBAAoB,CAAC,MAA8B,EAAA;AAClE,IAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,GAAG,aAAa,EAAE,GAAG,MAAM,EAAE,EAAE;AAClF;SAEgB,mBAAmB,GAAA;AAClC,IAAA,OAAO,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,aAAa;AACvE;;MCPa,OAAO,CAAA;AAInB,IAAA,WAAA,GAAA;QAHiB,IAAA,CAAA,cAAc,GAAG,mBAAmB,EAAE;QACvC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAwB,IAAI,CAAC,cAAc,CAAC,IAAI,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AAG5E,QAAA,OAAO,CAAC,MAAM,sZAAsZ,CAAC;IACta;8GANY,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAA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EAAA,UAAA,EAAA,CAAA;kBAJxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE;AACnC,iBAAA;;;ACUM,MAAM,cAAc,GAAG;IAC7B,OAAO;IACP,aAAa;IACb,cAAc;IACd,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,YAAY;;;ACvBb;;AAEG;;;;"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { viewChild, inject, input, computed, signal, ChangeDetectionStrategy, Component, Directive, effect, untracked } from '@angular/core';
|
|
4
|
+
import { classes, hlm } from 'yukit-web/helm/utils';
|
|
5
|
+
import { EmblaCarouselDirective } from 'embla-carousel-angular';
|
|
6
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
7
|
+
import { lucideArrowRight, lucideArrowLeft } from '@ng-icons/lucide';
|
|
8
|
+
import * as i1 from 'yukit-web/helm/button';
|
|
9
|
+
import { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';
|
|
10
|
+
|
|
11
|
+
class HlmCarousel {
|
|
12
|
+
constructor() {
|
|
13
|
+
this._emblaCarousel = viewChild.required(EmblaCarouselDirective);
|
|
14
|
+
this._dir = inject(Directionality);
|
|
15
|
+
this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
16
|
+
this.options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
|
|
17
|
+
this.plugins = input([], ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
|
|
18
|
+
this._emblaOptions = computed(() => ({
|
|
19
|
+
// Default embla's direction to the ambient layout direction so the carousel scrolls RTL
|
|
20
|
+
// automatically; an explicit `direction` in `options` still wins.
|
|
21
|
+
direction: this._dir.valueSignal(),
|
|
22
|
+
...this.options(),
|
|
23
|
+
axis: this.orientation() === 'horizontal' ? 'x' : 'y',
|
|
24
|
+
}), ...(ngDevMode ? [{ debugName: "_emblaOptions" }] : /* istanbul ignore next */ []));
|
|
25
|
+
this._canScrollPrev = signal(false, ...(ngDevMode ? [{ debugName: "_canScrollPrev" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.canScrollPrev = this._canScrollPrev.asReadonly();
|
|
27
|
+
this._canScrollNext = signal(false, ...(ngDevMode ? [{ debugName: "_canScrollNext" }] : /* istanbul ignore next */ []));
|
|
28
|
+
this.canScrollNext = this._canScrollNext.asReadonly();
|
|
29
|
+
this._currentSlide = signal(0, ...(ngDevMode ? [{ debugName: "_currentSlide" }] : /* istanbul ignore next */ []));
|
|
30
|
+
this.currentSlide = this._currentSlide.asReadonly();
|
|
31
|
+
this._slideCount = signal(0, ...(ngDevMode ? [{ debugName: "_slideCount" }] : /* istanbul ignore next */ []));
|
|
32
|
+
this.slideCount = this._slideCount.asReadonly();
|
|
33
|
+
classes(() => 'relative');
|
|
34
|
+
}
|
|
35
|
+
onEmblaEvent(event) {
|
|
36
|
+
const emblaApi = this._emblaCarousel().emblaApi;
|
|
37
|
+
if (!emblaApi) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (event === 'select' || event === 'init' || event === 'reInit') {
|
|
41
|
+
this._canScrollPrev.set(emblaApi.canScrollPrev());
|
|
42
|
+
this._canScrollNext.set(emblaApi.canScrollNext());
|
|
43
|
+
this._currentSlide.set(emblaApi.selectedScrollSnap());
|
|
44
|
+
this._slideCount.set(emblaApi.scrollSnapList().length);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
onKeydown(event) {
|
|
48
|
+
if (event.key === 'ArrowLeft') {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
this._emblaCarousel().scrollPrev();
|
|
51
|
+
}
|
|
52
|
+
else if (event.key === 'ArrowRight') {
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
this._emblaCarousel().scrollNext();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
scrollPrev() {
|
|
58
|
+
this._emblaCarousel().scrollPrev();
|
|
59
|
+
}
|
|
60
|
+
scrollNext() {
|
|
61
|
+
this._emblaCarousel().scrollNext();
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarousel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.8", type: HlmCarousel, isStandalone: true, selector: "hlm-carousel", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "carousel", "role": "region", "aria-roledescription": "carousel" }, listeners: { "keydown": "onKeydown($event)" } }, viewQueries: [{ propertyName: "_emblaCarousel", first: true, predicate: EmblaCarouselDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
65
|
+
<div
|
|
66
|
+
emblaCarousel
|
|
67
|
+
class="overflow-hidden"
|
|
68
|
+
[plugins]="plugins()"
|
|
69
|
+
[options]="_emblaOptions()"
|
|
70
|
+
[subscribeToEvents]="['init', 'select', 'reInit']"
|
|
71
|
+
(emblaChange)="onEmblaEvent($event)"
|
|
72
|
+
>
|
|
73
|
+
<ng-content select="[hlmCarouselContent],hlm-carousel-content" />
|
|
74
|
+
</div>
|
|
75
|
+
<ng-content />
|
|
76
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: EmblaCarouselDirective, selector: "[emblaCarousel]", inputs: ["options", "plugins", "subscribeToEvents", "eventsThrottleTime"], outputs: ["emblaChange"], exportAs: ["emblaCarousel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarousel, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{
|
|
81
|
+
selector: 'hlm-carousel',
|
|
82
|
+
imports: [EmblaCarouselDirective],
|
|
83
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
84
|
+
host: {
|
|
85
|
+
'data-slot': 'carousel',
|
|
86
|
+
role: 'region',
|
|
87
|
+
'aria-roledescription': 'carousel',
|
|
88
|
+
'(keydown)': 'onKeydown($event)',
|
|
89
|
+
},
|
|
90
|
+
template: `
|
|
91
|
+
<div
|
|
92
|
+
emblaCarousel
|
|
93
|
+
class="overflow-hidden"
|
|
94
|
+
[plugins]="plugins()"
|
|
95
|
+
[options]="_emblaOptions()"
|
|
96
|
+
[subscribeToEvents]="['init', 'select', 'reInit']"
|
|
97
|
+
(emblaChange)="onEmblaEvent($event)"
|
|
98
|
+
>
|
|
99
|
+
<ng-content select="[hlmCarouselContent],hlm-carousel-content" />
|
|
100
|
+
</div>
|
|
101
|
+
<ng-content />
|
|
102
|
+
`,
|
|
103
|
+
}]
|
|
104
|
+
}], ctorParameters: () => [], propDecorators: { _emblaCarousel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => EmblaCarouselDirective), { isSignal: true }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }] } });
|
|
105
|
+
|
|
106
|
+
class HlmCarouselContent {
|
|
107
|
+
constructor() {
|
|
108
|
+
this._orientation = inject(HlmCarousel).orientation;
|
|
109
|
+
classes(() => ['flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col']);
|
|
110
|
+
}
|
|
111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
112
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCarouselContent, isStandalone: true, selector: "[hlmCarouselContent],hlm-carousel-content", host: { attributes: { "data-slot": "carousel-content" } }, ngImport: i0 }); }
|
|
113
|
+
}
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselContent, decorators: [{
|
|
115
|
+
type: Directive,
|
|
116
|
+
args: [{
|
|
117
|
+
selector: '[hlmCarouselContent],hlm-carousel-content',
|
|
118
|
+
host: {
|
|
119
|
+
'data-slot': 'carousel-content',
|
|
120
|
+
},
|
|
121
|
+
}]
|
|
122
|
+
}], ctorParameters: () => [] });
|
|
123
|
+
|
|
124
|
+
class HlmCarouselItem {
|
|
125
|
+
constructor() {
|
|
126
|
+
this._orientation = inject(HlmCarousel).orientation;
|
|
127
|
+
classes(() => ['min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4']);
|
|
128
|
+
}
|
|
129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
130
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCarouselItem, isStandalone: true, selector: "[hlmCarouselItem],hlm-carousel-item", host: { attributes: { "data-slot": "carousel-item", "role": "group", "aria-roledescription": "slide" } }, ngImport: i0 }); }
|
|
131
|
+
}
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselItem, decorators: [{
|
|
133
|
+
type: Directive,
|
|
134
|
+
args: [{
|
|
135
|
+
selector: '[hlmCarouselItem],hlm-carousel-item',
|
|
136
|
+
host: {
|
|
137
|
+
'data-slot': 'carousel-item',
|
|
138
|
+
role: 'group',
|
|
139
|
+
'aria-roledescription': 'slide',
|
|
140
|
+
},
|
|
141
|
+
}]
|
|
142
|
+
}], ctorParameters: () => [] });
|
|
143
|
+
|
|
144
|
+
class HlmCarouselNext {
|
|
145
|
+
constructor() {
|
|
146
|
+
this._button = inject(HlmButton);
|
|
147
|
+
this._carousel = inject(HlmCarousel);
|
|
148
|
+
this._computedClass = computed(() => hlm('rounded-full absolute h-8 w-8', this._carousel.orientation() === 'horizontal'
|
|
149
|
+
? '-end-12 top-1/2 -translate-y-1/2'
|
|
150
|
+
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90'), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
|
|
151
|
+
this.isDisabled = () => !this._carousel.canScrollNext();
|
|
152
|
+
effect(() => {
|
|
153
|
+
const computedClass = this._computedClass();
|
|
154
|
+
untracked(() => this._button.setClass(computedClass));
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselNext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: HlmCarouselNext, isStandalone: true, selector: "button[hlm-carousel-next], button[hlmCarouselNext]", host: { attributes: { "data-slot": "carousel-next" }, listeners: { "click": "_carousel.scrollNext()" }, properties: { "disabled": "isDisabled()" } }, providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })], hostDirectives: [{ directive: i1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0, template: `
|
|
159
|
+
<ng-icon name="lucideArrowRight" class="rtl:rotate-180" />
|
|
160
|
+
<span class="sr-only">Next slide</span>
|
|
161
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
162
|
+
}
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselNext, decorators: [{
|
|
164
|
+
type: Component,
|
|
165
|
+
args: [{
|
|
166
|
+
selector: 'button[hlm-carousel-next], button[hlmCarouselNext]',
|
|
167
|
+
imports: [NgIcon],
|
|
168
|
+
providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],
|
|
169
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
170
|
+
hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
|
|
171
|
+
host: {
|
|
172
|
+
'data-slot': 'carousel-next',
|
|
173
|
+
'[disabled]': 'isDisabled()',
|
|
174
|
+
'(click)': '_carousel.scrollNext()',
|
|
175
|
+
},
|
|
176
|
+
template: `
|
|
177
|
+
<ng-icon name="lucideArrowRight" class="rtl:rotate-180" />
|
|
178
|
+
<span class="sr-only">Next slide</span>
|
|
179
|
+
`,
|
|
180
|
+
}]
|
|
181
|
+
}], ctorParameters: () => [] });
|
|
182
|
+
|
|
183
|
+
class HlmCarouselPrevious {
|
|
184
|
+
constructor() {
|
|
185
|
+
this._button = inject(HlmButton);
|
|
186
|
+
this._carousel = inject(HlmCarousel);
|
|
187
|
+
this._computedClass = computed(() => hlm('rounded-full absolute h-8 w-8', this._carousel.orientation() === 'horizontal'
|
|
188
|
+
? '-start-12 top-1/2 -translate-y-1/2'
|
|
189
|
+
: '-top-12 left-1/2 -translate-x-1/2 rotate-90'), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
|
|
190
|
+
this.isDisabled = () => !this._carousel.canScrollPrev();
|
|
191
|
+
effect(() => {
|
|
192
|
+
const computedClass = this._computedClass();
|
|
193
|
+
untracked(() => this._button.setClass(computedClass));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselPrevious, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
197
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: HlmCarouselPrevious, isStandalone: true, selector: "button[hlm-carousel-previous], button[hlmCarouselPrevious]", host: { attributes: { "data-slot": "carousel-previous" }, listeners: { "click": "_carousel.scrollPrev()" }, properties: { "disabled": "isDisabled()" } }, providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })], hostDirectives: [{ directive: i1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0, template: `
|
|
198
|
+
<ng-icon name="lucideArrowLeft" class="rtl:rotate-180" />
|
|
199
|
+
<span class="sr-only">Previous slide</span>
|
|
200
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
201
|
+
}
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselPrevious, decorators: [{
|
|
203
|
+
type: Component,
|
|
204
|
+
args: [{
|
|
205
|
+
selector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',
|
|
206
|
+
imports: [NgIcon],
|
|
207
|
+
providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],
|
|
208
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
209
|
+
hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
|
|
210
|
+
host: {
|
|
211
|
+
'data-slot': 'carousel-previous',
|
|
212
|
+
'[disabled]': 'isDisabled()',
|
|
213
|
+
'(click)': '_carousel.scrollPrev()',
|
|
214
|
+
},
|
|
215
|
+
template: `
|
|
216
|
+
<ng-icon name="lucideArrowLeft" class="rtl:rotate-180" />
|
|
217
|
+
<span class="sr-only">Previous slide</span>
|
|
218
|
+
`,
|
|
219
|
+
}]
|
|
220
|
+
}], ctorParameters: () => [] });
|
|
221
|
+
|
|
222
|
+
class HlmCarouselSlideDisplay {
|
|
223
|
+
constructor() {
|
|
224
|
+
this._carousel = inject(HlmCarousel);
|
|
225
|
+
this._currentSlide = computed(() => this._carousel.currentSlide() + 1, ...(ngDevMode ? [{ debugName: "_currentSlide" }] : /* istanbul ignore next */ []));
|
|
226
|
+
this.slideClass = input('text-muted-foreground text-sm', ...(ngDevMode ? [{ debugName: "slideClass" }] : /* istanbul ignore next */ []));
|
|
227
|
+
/** Screen reader only text for the slide display */
|
|
228
|
+
this.label = input('Slide', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
229
|
+
this._labelContent = computed(() => {
|
|
230
|
+
const currentSlide = this._currentSlide();
|
|
231
|
+
const slideCount = this._carousel.slideCount();
|
|
232
|
+
return `${this.label()} ${currentSlide} of ${slideCount} is displayed`;
|
|
233
|
+
}, ...(ngDevMode ? [{ debugName: "_labelContent" }] : /* istanbul ignore next */ []));
|
|
234
|
+
}
|
|
235
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselSlideDisplay, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
236
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: HlmCarouselSlideDisplay, isStandalone: true, selector: "hlm-carousel-slide-display", inputs: { slideClass: { classPropertyName: "slideClass", publicName: "slideClass", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "carousel-slide-display" } }, ngImport: i0, template: `
|
|
237
|
+
<span class="sr-only">{{ _labelContent() }}</span>
|
|
238
|
+
<div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
|
|
239
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
240
|
+
}
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselSlideDisplay, decorators: [{
|
|
242
|
+
type: Component,
|
|
243
|
+
args: [{
|
|
244
|
+
selector: 'hlm-carousel-slide-display',
|
|
245
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
246
|
+
host: {
|
|
247
|
+
'data-slot': 'carousel-slide-display',
|
|
248
|
+
},
|
|
249
|
+
template: `
|
|
250
|
+
<span class="sr-only">{{ _labelContent() }}</span>
|
|
251
|
+
<div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
|
|
252
|
+
`,
|
|
253
|
+
}]
|
|
254
|
+
}], propDecorators: { slideClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideClass", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
255
|
+
|
|
256
|
+
const HlmCarouselImports = [
|
|
257
|
+
HlmCarousel,
|
|
258
|
+
HlmCarouselContent,
|
|
259
|
+
HlmCarouselItem,
|
|
260
|
+
HlmCarouselPrevious,
|
|
261
|
+
HlmCarouselNext,
|
|
262
|
+
HlmCarouselSlideDisplay,
|
|
263
|
+
];
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Generated bundle index. Do not edit.
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
export { HlmCarousel, HlmCarouselContent, HlmCarouselImports, HlmCarouselItem, HlmCarouselNext, HlmCarouselPrevious, HlmCarouselSlideDisplay };
|
|
270
|
+
//# sourceMappingURL=yukit-web-helm-carousel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-carousel.mjs","sources":["../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-content.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-item.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-next.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-previous.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-slide-display.ts","../../../projects/yukit-web/helm/carousel/src/index.ts","../../../projects/yukit-web/helm/carousel/src/yukit-web-helm-carousel.ts"],"sourcesContent":["import { Directionality } from '@angular/cdk/bidi';\nimport {\n\tChangeDetectionStrategy,\n\tComponent,\n\ttype InputSignal,\n\ttype Signal,\n\tcomputed,\n\tinject,\n\tinput,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport type { EmblaEventType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel';\nimport { EmblaCarouselDirective } from 'embla-carousel-angular';\n\n@Component({\n\tselector: 'hlm-carousel',\n\timports: [EmblaCarouselDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'carousel',\n\t\trole: 'region',\n\t\t'aria-roledescription': 'carousel',\n\t\t'(keydown)': 'onKeydown($event)',\n\t},\n\ttemplate: `\n\t\t<div\n\t\t\temblaCarousel\n\t\t\tclass=\"overflow-hidden\"\n\t\t\t[plugins]=\"plugins()\"\n\t\t\t[options]=\"_emblaOptions()\"\n\t\t\t[subscribeToEvents]=\"['init', 'select', 'reInit']\"\n\t\t\t(emblaChange)=\"onEmblaEvent($event)\"\n\t\t>\n\t\t\t<ng-content select=\"[hlmCarouselContent],hlm-carousel-content\" />\n\t\t</div>\n\t\t<ng-content />\n\t`,\n})\nexport class HlmCarousel {\n\tprotected readonly _emblaCarousel = viewChild.required(EmblaCarouselDirective);\n\tprivate readonly _dir = inject(Directionality);\n\n\tpublic readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\tpublic readonly options: InputSignal<Omit<EmblaOptionsType, 'axis'> | undefined> =\n\t\tinput<Omit<EmblaOptionsType, 'axis'>>();\n\tpublic readonly plugins: InputSignal<EmblaPluginType[]> = input<EmblaPluginType[]>([]);\n\n\tprotected readonly _emblaOptions: Signal<EmblaOptionsType> = computed(() => ({\n\t\t// Default embla's direction to the ambient layout direction so the carousel scrolls RTL\n\t\t// automatically; an explicit `direction` in `options` still wins.\n\t\tdirection: this._dir.valueSignal(),\n\t\t...this.options(),\n\t\taxis: this.orientation() === 'horizontal' ? 'x' : 'y',\n\t}));\n\n\tprivate readonly _canScrollPrev = signal(false);\n\tpublic readonly canScrollPrev = this._canScrollPrev.asReadonly();\n\tprivate readonly _canScrollNext = signal(false);\n\tpublic readonly canScrollNext = this._canScrollNext.asReadonly();\n\n\tprivate readonly _currentSlide = signal(0);\n\tpublic readonly currentSlide = this._currentSlide.asReadonly();\n\tprivate readonly _slideCount = signal(0);\n\tpublic readonly slideCount = this._slideCount.asReadonly();\n\n\tconstructor() {\n\t\tclasses(() => 'relative');\n\t}\n\n\tprotected onEmblaEvent(event: EmblaEventType) {\n\t\tconst emblaApi = this._emblaCarousel().emblaApi;\n\n\t\tif (!emblaApi) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (event === 'select' || event === 'init' || event === 'reInit') {\n\t\t\tthis._canScrollPrev.set(emblaApi.canScrollPrev());\n\t\t\tthis._canScrollNext.set(emblaApi.canScrollNext());\n\n\t\t\tthis._currentSlide.set(emblaApi.selectedScrollSnap());\n\t\t\tthis._slideCount.set(emblaApi.scrollSnapList().length);\n\t\t}\n\t}\n\n\tprotected onKeydown(event: KeyboardEvent) {\n\t\tif (event.key === 'ArrowLeft') {\n\t\t\tevent.preventDefault();\n\t\t\tthis._emblaCarousel().scrollPrev();\n\t\t} else if (event.key === 'ArrowRight') {\n\t\t\tevent.preventDefault();\n\t\t\tthis._emblaCarousel().scrollNext();\n\t\t}\n\t}\n\n\tscrollPrev() {\n\t\tthis._emblaCarousel().scrollPrev();\n\t}\n\n\tscrollNext() {\n\t\tthis._emblaCarousel().scrollNext();\n\t}\n}\n","import { Directive, inject } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Directive({\n\tselector: '[hlmCarouselContent],hlm-carousel-content',\n\thost: {\n\t\t'data-slot': 'carousel-content',\n\t},\n})\nexport class HlmCarouselContent {\n\tprivate readonly _orientation = inject(HlmCarousel).orientation;\n\n\tconstructor() {\n\t\tclasses(() => ['flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col']);\n\t}\n}\n","import { Directive, inject } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Directive({\n\tselector: '[hlmCarouselItem],hlm-carousel-item',\n\thost: {\n\t\t'data-slot': 'carousel-item',\n\t\trole: 'group',\n\t\t'aria-roledescription': 'slide',\n\t},\n})\nexport class HlmCarouselItem {\n\tprivate readonly _orientation = inject(HlmCarousel).orientation;\n\n\tconstructor() {\n\t\tclasses(() => ['min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4']);\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideArrowRight } from '@ng-icons/lucide';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'button[hlm-carousel-next], button[hlmCarouselNext]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: {\n\t\t'data-slot': 'carousel-next',\n\t\t'[disabled]': 'isDisabled()',\n\t\t'(click)': '_carousel.scrollNext()',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideArrowRight\" class=\"rtl:rotate-180\" />\n\t\t<span class=\"sr-only\">Next slide</span>\n\t`,\n})\nexport class HlmCarouselNext {\n\tprivate readonly _button = inject(HlmButton);\n\tprotected readonly _carousel = inject(HlmCarousel);\n\tprivate readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'rounded-full absolute h-8 w-8',\n\t\t\tthis._carousel.orientation() === 'horizontal'\n\t\t\t\t? '-end-12 top-1/2 -translate-y-1/2'\n\t\t\t\t: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n\t\t),\n\t);\n\tprotected readonly isDisabled = () => !this._carousel.canScrollNext();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst computedClass = this._computedClass();\n\n\t\t\tuntracked(() => this._button.setClass(computedClass));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideArrowLeft } from '@ng-icons/lucide';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: {\n\t\t'data-slot': 'carousel-previous',\n\t\t'[disabled]': 'isDisabled()',\n\t\t'(click)': '_carousel.scrollPrev()',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideArrowLeft\" class=\"rtl:rotate-180\" />\n\t\t<span class=\"sr-only\">Previous slide</span>\n\t`,\n})\nexport class HlmCarouselPrevious {\n\tprivate readonly _button = inject(HlmButton);\n\n\tprotected readonly _carousel = inject(HlmCarousel);\n\n\tprivate readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'rounded-full absolute h-8 w-8',\n\t\t\tthis._carousel.orientation() === 'horizontal'\n\t\t\t\t? '-start-12 top-1/2 -translate-y-1/2'\n\t\t\t\t: '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n\t\t),\n\t);\n\tprotected readonly isDisabled = () => !this._carousel.canScrollPrev();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst computedClass = this._computedClass();\n\t\t\tuntracked(() => this._button.setClass(computedClass));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport type { ClassValue } from 'clsx';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'hlm-carousel-slide-display',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'carousel-slide-display',\n\t},\n\ttemplate: `\n\t\t<span class=\"sr-only\">{{ _labelContent() }}</span>\n\t\t<div aria-hidden=\"true\" [class]=\"slideClass()\">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>\n\t`,\n})\nexport class HlmCarouselSlideDisplay {\n\tprotected readonly _carousel = inject(HlmCarousel);\n\n\tprotected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);\n\n\tpublic readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');\n\n\t/** Screen reader only text for the slide display */\n\tpublic readonly label = input<string>('Slide');\n\n\tprotected readonly _labelContent = computed(() => {\n\t\tconst currentSlide = this._currentSlide();\n\t\tconst slideCount = this._carousel.slideCount();\n\t\treturn `${this.label()} ${currentSlide} of ${slideCount} is displayed`;\n\t});\n}\n","import { HlmCarousel } from './lib/hlm-carousel';\nimport { HlmCarouselContent } from './lib/hlm-carousel-content';\nimport { HlmCarouselItem } from './lib/hlm-carousel-item';\nimport { HlmCarouselNext } from './lib/hlm-carousel-next';\nimport { HlmCarouselPrevious } from './lib/hlm-carousel-previous';\nimport { HlmCarouselSlideDisplay } from './lib/hlm-carousel-slide-display';\n\nexport * from './lib/hlm-carousel';\nexport * from './lib/hlm-carousel-content';\nexport * from './lib/hlm-carousel-item';\nexport * from './lib/hlm-carousel-next';\nexport * from './lib/hlm-carousel-previous';\nexport * from './lib/hlm-carousel-slide-display';\n\nexport const HlmCarouselImports = [\n\tHlmCarousel,\n\tHlmCarouselContent,\n\tHlmCarouselItem,\n\tHlmCarouselPrevious,\n\tHlmCarouselNext,\n\tHlmCarouselSlideDisplay,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAwCa,WAAW,CAAA;AA2BvB,IAAA,WAAA,GAAA;AA1BmB,QAAA,IAAA,CAAA,cAAc,GAAG,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC;AAC7D,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,cAAc,CAAC;AAE9B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAA4B,YAAY,kFAAC;QAC5D,IAAA,CAAA,OAAO,GACtB,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAkC;AACxB,QAAA,IAAA,CAAA,OAAO,GAAmC,KAAK,CAAoB,EAAE,8EAAC;AAEnE,QAAA,IAAA,CAAA,aAAa,GAA6B,QAAQ,CAAC,OAAO;;;AAG5E,YAAA,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAClC,GAAG,IAAI,CAAC,OAAO,EAAE;AACj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