yukit-web 0.7.3 → 0.8.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/fesm2022/yukit-web.mjs +512 -86
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +186 -10
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import { classes, hlm } from 'yukit-web/helm/utils';
|
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { toSignal, toObservable, outputFromObservable } from '@angular/core/rxjs-interop';
|
|
8
8
|
import { debounceTime, distinctUntilChanged, filter, startWith, map, skip, switchMap, of, timer, fromEvent, Subject, concat } from 'rxjs';
|
|
9
|
-
import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
10
|
-
import { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';
|
|
9
|
+
import { NgTemplateOutlet, DOCUMENT, DatePipe } from '@angular/common';
|
|
10
|
+
import { HlmButton, buttonVariants, provideBrnButtonConfig } from 'yukit-web/helm/button';
|
|
11
11
|
import * as i2 from 'yukit-web/helm/dropdown-menu';
|
|
12
12
|
import { HlmDropdownMenuTrigger, HlmDropdownMenuCheckboxIndicator, HlmDropdownMenuRadioIndicator, HlmDropdownMenuItemSubIndicator, HlmDropdownMenu, HlmDropdownMenuItem, HlmDropdownMenuCheckbox, HlmDropdownMenuRadio, HlmDropdownMenuLabel, HlmDropdownMenuGroup, HlmDropdownMenuSeparator, HlmDropdownMenuShortcut, HlmDropdownMenuSub, HlmDropdownMenuSubTrigger } from 'yukit-web/helm/dropdown-menu';
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
@@ -27,7 +27,8 @@ import { BrnComboboxTrigger, BrnComboboxAnchor, BrnComboboxPopoverTrigger, BrnCo
|
|
|
27
27
|
import * as i1$4 from 'yukit-web/helm/combobox';
|
|
28
28
|
import { HlmComboboxContent, HlmComboboxImports } from 'yukit-web/helm/combobox';
|
|
29
29
|
import { HlmField, HlmFieldDescription } from 'yukit-web/helm/field';
|
|
30
|
-
import
|
|
30
|
+
import * as i1$i from '@spartan-ng/brain/field';
|
|
31
|
+
import { BrnField, provideBrnLabelable, BrnFieldControl } from '@spartan-ng/brain/field';
|
|
31
32
|
import { BrnAccordionItem } from '@spartan-ng/brain/accordion';
|
|
32
33
|
import { HlmAccordion, HlmAccordionItem, HlmAccordionTrigger, HlmAccordionContent } from 'yukit-web/helm/accordion';
|
|
33
34
|
import { HlmInput } from 'yukit-web/helm/input';
|
|
@@ -38,7 +39,7 @@ import { HlmAvatarImports } from 'yukit-web/helm/avatar';
|
|
|
38
39
|
import * as i1$7 from 'yukit-web/helm/popover';
|
|
39
40
|
import { HlmPopoverImports } from 'yukit-web/helm/popover';
|
|
40
41
|
import * as i1$6 from '@spartan-ng/brain/popover';
|
|
41
|
-
import { BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
42
|
+
import { BrnPopoverTrigger, BrnPopover } from '@spartan-ng/brain/popover';
|
|
42
43
|
import * as i1$8 from '@spartan-ng/brain/sheet';
|
|
43
44
|
import { BrnSheetTrigger, BrnSheetClose } from '@spartan-ng/brain/sheet';
|
|
44
45
|
import * as i1$9 from 'yukit-web/helm/sheet';
|
|
@@ -63,38 +64,41 @@ import { HlmEmpty, HlmEmptyHeader, HlmEmptyMedia, HlmEmptyTitle, HlmEmptyDescrip
|
|
|
63
64
|
import { CdkContextMenuTrigger, CdkMenuItem, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuTrigger } from '@angular/cdk/menu';
|
|
64
65
|
import * as i1$h from 'yukit-web/helm/context-menu';
|
|
65
66
|
import { HlmContextMenuTrigger } from 'yukit-web/helm/context-menu';
|
|
66
|
-
import
|
|
67
|
+
import { injectBrnCalendar, injectBrnCalendarI18n, BrnCalendarCell, BrnCalendarCellButton, BrnCalendarGrid, BrnCalendarNextButton, BrnCalendarPreviousButton, BrnCalendarWeek, BrnCalendarWeekday, BrnCalendar, BrnCalendarRange } from '@spartan-ng/brain/calendar';
|
|
68
|
+
import { HlmMonthYearCalendar } from 'yukit-web/helm/calendar';
|
|
69
|
+
import * as i1$j from 'yukit-web/helm/date-picker';
|
|
67
70
|
import { injectHlmMonthYearPickerConfig, injectHlmDatePickerMultiConfig, injectHlmDateRangePickerConfig, injectHlmDatePickerConfig, HlmDatePickerImports } from 'yukit-web/helm/date-picker';
|
|
68
|
-
import
|
|
71
|
+
import { BrnDatePickerTriggerToken, provideBrnDatePicker } from '@spartan-ng/brain/date-picker';
|
|
72
|
+
import * as i1$k from 'yukit-web/helm/table';
|
|
69
73
|
import { HlmTableContainer, HlmTable, HlmTHead, HlmTBody, HlmTFoot, HlmTr, HlmTh, HlmTd, HlmCaption } from 'yukit-web/helm/table';
|
|
70
74
|
import { rowSortingFeature, rowSelectionFeature, rowPaginationFeature, columnVisibilityFeature, columnFilteringFeature, sortFns, createPaginatedRowModel, createSortedRowModel, createFilteredRowModel, createCoreRowModel } from '@tanstack/table-core';
|
|
71
75
|
import { injectTable, FlexRenderDirective, flexRenderComponent } from '@tanstack/angular-table';
|
|
72
|
-
import * as i1$
|
|
76
|
+
import * as i1$l from 'yukit-web/helm/item';
|
|
73
77
|
import { HlmItem, HlmItemHeader, HlmItemMedia, HlmItemContent, HlmItemTitle, HlmItemDescription, HlmItemActions, HlmItemFooter, HlmItemGroup, HlmItemSeparator } from 'yukit-web/helm/item';
|
|
74
78
|
import { HlmSpinner } from 'yukit-web/helm/spinner';
|
|
75
79
|
import { HlmToaster } from 'yukit-web/helm/sonner';
|
|
76
80
|
import { toast } from '@spartan-ng/brain/sonner';
|
|
77
81
|
export { toast as yuwToast } from '@spartan-ng/brain/sonner';
|
|
78
82
|
import { HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertAction } from 'yukit-web/helm/alert';
|
|
79
|
-
import * as i1$
|
|
83
|
+
import * as i1$m from '@spartan-ng/brain/dialog';
|
|
80
84
|
import { BrnDialogTrigger, BrnDialogClose } from '@spartan-ng/brain/dialog';
|
|
81
|
-
import * as i1$
|
|
85
|
+
import * as i1$n from 'yukit-web/helm/dialog';
|
|
82
86
|
import { HlmDialogImports } from 'yukit-web/helm/dialog';
|
|
83
|
-
import * as i1$
|
|
87
|
+
import * as i1$p from 'yukit-web/helm/alert-dialog';
|
|
84
88
|
import { HlmAlertDialogImports } from 'yukit-web/helm/alert-dialog';
|
|
85
|
-
import * as i1$
|
|
89
|
+
import * as i1$o from '@spartan-ng/brain/alert-dialog';
|
|
86
90
|
import { BrnAlertDialogTrigger } from '@spartan-ng/brain/alert-dialog';
|
|
87
|
-
import * as i1$
|
|
91
|
+
import * as i1$q from 'yukit-web/helm/tabs';
|
|
88
92
|
import { HlmTabsImports } from 'yukit-web/helm/tabs';
|
|
89
93
|
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
90
|
-
import * as i1$
|
|
94
|
+
import * as i1$r from 'yukit-web/helm/attachment';
|
|
91
95
|
import { HlmAttachment, HlmAttachmentGroup, HlmAttachmentMedia, HlmAttachmentContent, HlmAttachmentTitle, HlmAttachmentDescription, HlmAttachmentActions, HlmAttachmentAction, HlmAttachmentTrigger } from 'yukit-web/helm/attachment';
|
|
92
96
|
import { map as map$1, distinctUntilChanged as distinctUntilChanged$1 } from 'rxjs/operators';
|
|
93
|
-
import * as i1$
|
|
97
|
+
import * as i1$s from 'yukit-web/helm/sidebar';
|
|
94
98
|
import { HlmSidebarService, provideHlmSidebarConfig, HlmSidebarWrapper, HlmSidebarHeader, HlmSidebarContent, HlmSidebarFooter, HlmSidebarGroup, HlmSidebarGroupLabel, HlmSidebarGroupContent, HlmSidebarMenu, HlmSidebarMenuItem, HlmSidebarMenuButton, HlmSidebarMenuBadge, HlmSidebarMenuSub, HlmSidebarMenuSubItem, HlmSidebarMenuSubButton, HlmSidebarSeparator, HlmSidebarRail, HlmSidebarInset, injectHlmSidebarConfig, HlmSidebar, HlmSidebarTrigger } from 'yukit-web/helm/sidebar';
|
|
95
99
|
export { HlmSidebarService as YuwSidebarService, provideHlmSidebarConfig as provideYuwSidebarConfig } from 'yukit-web/helm/sidebar';
|
|
96
100
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
97
|
-
import * as i1$
|
|
101
|
+
import * as i1$t from 'yukit-web/helm/command';
|
|
98
102
|
import { HlmCommandImports, HlmCommandDialog } from 'yukit-web/helm/command';
|
|
99
103
|
import { FormRoot, FormField, submit } from '@angular/forms/signals';
|
|
100
104
|
|
|
@@ -3754,12 +3758,312 @@ const YuwContextMenuImports = [
|
|
|
3754
3758
|
YuwContextMenuSubIndicatorComponent,
|
|
3755
3759
|
];
|
|
3756
3760
|
|
|
3761
|
+
const YUW_CALENDAR_NAV_CLASS = 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50';
|
|
3762
|
+
const YUW_CALENDAR_HEADING_CLASS = 'h-(--cell-size) min-w-0 flex-1 px-2 font-medium capitalize';
|
|
3763
|
+
const YUW_CALENDAR_CELL_CLASS = cn('group/day relative isolate z-0 aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none', 'has-[button[data-range-start=true]]:rounded-s-(--cell-radius) has-[button[data-range-start=true]]:bg-secondary', 'has-[button[data-range-end=true]]:rounded-e-(--cell-radius) has-[button[data-range-end=true]]:bg-secondary', '[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius) [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)');
|
|
3764
|
+
const YUW_CALENDAR_DAY_CLASS = cn(buttonVariants({ variant: 'ghost', size: 'icon' }), 'relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) border-0 leading-none font-normal', 'data-[today=true]:bg-(--neutrals-fill) data-[today=true]:text-(--neutrals-element-high) data-[outside=true]:opacity-50', 'group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50', 'data-[selected-single=true]:bg-(--yuw-accent) data-[selected-single=true]:text-(--yuw-accent-foreground)', 'data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:rounded-r-none data-[range-start=true]:bg-(--yuw-accent) data-[range-start=true]:text-(--yuw-accent-foreground)', 'data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:rounded-l-none data-[range-end=true]:bg-(--yuw-accent) data-[range-end=true]:text-(--yuw-accent-foreground)', 'data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-secondary data-[range-middle=true]:text-secondary-foreground');
|
|
3765
|
+
/**
|
|
3766
|
+
* The helm month/year grids are four columns wide, too narrow for full month names at the width of the day grid, so
|
|
3767
|
+
* they are drawn in three. Their cells take the calendar's colors in place of helm's ghost and primary ones, and the
|
|
3768
|
+
* focus ring helm draws on the focused cell, which is the selected one, only shows for keyboard focus. The selectors
|
|
3769
|
+
* outweigh the helm classes without `!important`.
|
|
3770
|
+
*/
|
|
3771
|
+
const YUW_CALENDAR_MONTH_YEAR_CLASS = cn('p-0 [&_.grid-cols-4]:grid-cols-3', '[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true])]:bg-secondary', '[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true])]:text-secondary-foreground', '[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true]):hover]:bg-(--secondary-3)', '[&_button[brnmonthyearcalendaryearbutton]:not([data-selected=true])]:bg-secondary', '[&_button[brnmonthyearcalendaryearbutton]:not([data-selected=true])]:text-secondary-foreground', '[&_button[brnmonthyearcalendaryearbutton]:not([data-selected=true]):hover]:bg-(--secondary-3)', '[&_button[brnmonthyearcalendarmonthbutton][data-today=true]:not([data-selected=true])]:bg-(--neutrals-fill)', '[&_button[brnmonthyearcalendarmonthbutton][data-today=true]:not([data-selected=true])]:text-(--neutrals-element-high)', '[&_button[brnmonthyearcalendaryearbutton][data-today=true]:not([data-selected=true])]:bg-(--neutrals-fill)', '[&_button[brnmonthyearcalendaryearbutton][data-today=true]:not([data-selected=true])]:text-(--neutrals-element-high)', '[&_button[data-selected=true]]:bg-(--yuw-accent) [&_button[data-selected=true]:hover]:bg-(--yuw-accent)', '[&_button[data-selected=true]]:text-(--yuw-accent-foreground) [&_button[data-selected=true]:hover]:text-(--yuw-accent-foreground)', '[&_button[data-focused=true]:not(:focus-visible)]:border-transparent [&_button[data-focused=true]:not(:focus-visible)]:ring-0');
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* Day grid of `yuw-calendar`, drawn inside the brain calendar directive (`brnCalendar` or `brnCalendarRange`) applied
|
|
3775
|
+
* to its host, which it reads through `injectBrnCalendar()`. Unlike the helm calendar its heading is a button:
|
|
3776
|
+
* clicking it emits `headingClicked`, which `yuw-calendar` turns into the month and year view.
|
|
3777
|
+
*
|
|
3778
|
+
* Outputs:
|
|
3779
|
+
* - `headingClicked`: The month heading was clicked.
|
|
3780
|
+
*/
|
|
3781
|
+
class YuwCalendarDaysComponent {
|
|
3782
|
+
constructor() {
|
|
3783
|
+
this.headingClicked = output();
|
|
3784
|
+
this._calendar = injectBrnCalendar();
|
|
3785
|
+
this._i18n = injectBrnCalendarI18n();
|
|
3786
|
+
this.cellClass = YUW_CALENDAR_CELL_CLASS;
|
|
3787
|
+
this.dayClass = YUW_CALENDAR_DAY_CLASS;
|
|
3788
|
+
this.headingClass = YUW_CALENDAR_HEADING_CLASS;
|
|
3789
|
+
this.navClass = YUW_CALENDAR_NAV_CLASS;
|
|
3790
|
+
this.heading = computed(() => {
|
|
3791
|
+
const focused = this._calendar.focusedDate();
|
|
3792
|
+
return this._i18n.config().formatHeader(focused.getMonth(), focused.getFullYear());
|
|
3793
|
+
}, ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
3794
|
+
this.weekdayLabels = computed(() => {
|
|
3795
|
+
const config = this._i18n.config();
|
|
3796
|
+
return Array.from({ length: 7 }, (_, weekday) => ({
|
|
3797
|
+
label: config.labelWeekday(weekday),
|
|
3798
|
+
name: config.formatWeekdayName(weekday),
|
|
3799
|
+
}));
|
|
3800
|
+
}, ...(ngDevMode ? [{ debugName: "weekdayLabels" }] : /* istanbul ignore next */ []));
|
|
3801
|
+
}
|
|
3802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCalendarDaysComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3803
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwCalendarDaysComponent, isStandalone: true, selector: "yuw-calendar-days", outputs: { headingClicked: "headingClicked" }, host: { classAttribute: "block" }, providers: [provideIcons({ lucideChevronLeft, lucideChevronRight })], ngImport: i0, template: "<div class=\"flex flex-col gap-4\">\n <div class=\"flex w-full items-center justify-between gap-1.5\">\n <button brnCalendarPreviousButton hlmBtn variant=\"ghost\" [class]=\"navClass\">\n <ng-icon name=\"lucideChevronLeft\" class=\"rtl:rotate-180\" />\n </button>\n\n <button\n type=\"button\"\n hlmBtn\n variant=\"ghost\"\n data-slot=\"calendar-heading\"\n [class]=\"headingClass\"\n [disabled]=\"_calendar.disabled()\"\n (click)=\"headingClicked.emit()\"\n >\n {{ heading() }}\n </button>\n\n <button brnCalendarNextButton hlmBtn variant=\"ghost\" [class]=\"navClass\">\n <ng-icon name=\"lucideChevronRight\" class=\"rtl:rotate-180\" />\n </button>\n </div>\n\n <table brnCalendarGrid class=\"w-full border-collapse\" [attr.aria-label]=\"heading()\">\n <thead aria-hidden=\"true\">\n <tr class=\"flex\">\n <th\n *brnCalendarWeekday=\"let weekday\"\n scope=\"col\"\n class=\"flex-1 text-[0.8rem] font-normal text-muted-foreground select-none\"\n [attr.aria-label]=\"weekdayLabels()[weekday].label\"\n >\n {{ weekdayLabels()[weekday].name }}\n </th>\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n <tr *brnCalendarWeek=\"let week\" class=\"mt-2 flex w-full\">\n @for (date of week; track $index) {\n <td brnCalendarCell [class]=\"cellClass\">\n <button brnCalendarCellButton [date]=\"date\" [class]=\"dayClass\">{{ date | date: 'd' }}</button>\n </td>\n }\n </tr>\n </tbody>\n </table>\n</div>\n", dependencies: [{ kind: "directive", type: BrnCalendarCell, selector: "[brnCalendarCell]" }, { kind: "directive", type: BrnCalendarCellButton, selector: "button[brnCalendarCellButton]", inputs: ["date"] }, { kind: "directive", type: BrnCalendarGrid, selector: "[brnCalendarGrid]" }, { kind: "directive", type: BrnCalendarNextButton, selector: "button[brnCalendarNextButton]" }, { kind: "directive", type: BrnCalendarPreviousButton, selector: "button[brnCalendarPreviousButton]" }, { kind: "directive", type: BrnCalendarWeek, selector: "[brnCalendarWeek]" }, { kind: "directive", type: BrnCalendarWeekday, selector: "[brnCalendarWeekday]" }, { kind: "directive", type: HlmButton, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size"], exportAs: ["hlmBtn"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3804
|
+
}
|
|
3805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCalendarDaysComponent, decorators: [{
|
|
3806
|
+
type: Component,
|
|
3807
|
+
args: [{ selector: 'yuw-calendar-days', imports: [
|
|
3808
|
+
BrnCalendarCell,
|
|
3809
|
+
BrnCalendarCellButton,
|
|
3810
|
+
BrnCalendarGrid,
|
|
3811
|
+
BrnCalendarNextButton,
|
|
3812
|
+
BrnCalendarPreviousButton,
|
|
3813
|
+
BrnCalendarWeek,
|
|
3814
|
+
BrnCalendarWeekday,
|
|
3815
|
+
DatePipe,
|
|
3816
|
+
HlmButton,
|
|
3817
|
+
NgIcon,
|
|
3818
|
+
], providers: [provideIcons({ lucideChevronLeft, lucideChevronRight })], host: { class: 'block' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col gap-4\">\n <div class=\"flex w-full items-center justify-between gap-1.5\">\n <button brnCalendarPreviousButton hlmBtn variant=\"ghost\" [class]=\"navClass\">\n <ng-icon name=\"lucideChevronLeft\" class=\"rtl:rotate-180\" />\n </button>\n\n <button\n type=\"button\"\n hlmBtn\n variant=\"ghost\"\n data-slot=\"calendar-heading\"\n [class]=\"headingClass\"\n [disabled]=\"_calendar.disabled()\"\n (click)=\"headingClicked.emit()\"\n >\n {{ heading() }}\n </button>\n\n <button brnCalendarNextButton hlmBtn variant=\"ghost\" [class]=\"navClass\">\n <ng-icon name=\"lucideChevronRight\" class=\"rtl:rotate-180\" />\n </button>\n </div>\n\n <table brnCalendarGrid class=\"w-full border-collapse\" [attr.aria-label]=\"heading()\">\n <thead aria-hidden=\"true\">\n <tr class=\"flex\">\n <th\n *brnCalendarWeekday=\"let weekday\"\n scope=\"col\"\n class=\"flex-1 text-[0.8rem] font-normal text-muted-foreground select-none\"\n [attr.aria-label]=\"weekdayLabels()[weekday].label\"\n >\n {{ weekdayLabels()[weekday].name }}\n </th>\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n <tr *brnCalendarWeek=\"let week\" class=\"mt-2 flex w-full\">\n @for (date of week; track $index) {\n <td brnCalendarCell [class]=\"cellClass\">\n <button brnCalendarCellButton [date]=\"date\" [class]=\"dayClass\">{{ date | date: 'd' }}</button>\n </td>\n }\n </tr>\n </tbody>\n </table>\n</div>\n" }]
|
|
3819
|
+
}], propDecorators: { headingClicked: [{ type: i0.Output, args: ["headingClicked"] }] } });
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* Inline calendar that picks one day or a range, and lets the user jump to another month without paging: clicking
|
|
3823
|
+
* the month heading (e.g. "marzo de 2026") switches to the month grid, clicking it again to the year grid, and
|
|
3824
|
+
* picking a year and then a month returns to the days of that month. Jumping never changes the selection.
|
|
3825
|
+
*
|
|
3826
|
+
* In `range` mode the first click sets the start and the second the end; `value` only changes once both are set, so
|
|
3827
|
+
* a half-picked range survives a jump to another month.
|
|
3828
|
+
*
|
|
3829
|
+
* It is drawn in the `secondary` color: the picked days, range ends and month or year are filled with its accent, the
|
|
3830
|
+
* days between the ends and the other months and years with its light tone, and today is grey, like a neutral
|
|
3831
|
+
* secondary button.
|
|
3832
|
+
*
|
|
3833
|
+
* Month names, weekday names and the heading follow the brain calendar i18n (`provideBrnCalendarI18n`).
|
|
3834
|
+
*
|
|
3835
|
+
* Inputs / Models:
|
|
3836
|
+
* - `mode`: `'single'` or `'range'`. Default is `'single'`.
|
|
3837
|
+
* - `value`: Two-way picked day (`Date`) or range (`[Date, Date]`); `null` while nothing is picked.
|
|
3838
|
+
* - `minDate`, `maxDate`: Bounds of the selectable days.
|
|
3839
|
+
* - `disabled`: Disables every control.
|
|
3840
|
+
*
|
|
3841
|
+
* Usage:
|
|
3842
|
+
* ```html
|
|
3843
|
+
* <yuw-calendar mode="range" [(value)]="range" />
|
|
3844
|
+
* ```
|
|
3845
|
+
*/
|
|
3846
|
+
class YuwCalendarComponent {
|
|
3847
|
+
constructor() {
|
|
3848
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3849
|
+
this.maxDate = input(undefined, ...(ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []));
|
|
3850
|
+
this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
|
|
3851
|
+
this.mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
3852
|
+
this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3853
|
+
this.monthYearClass = YUW_CALENDAR_MONTH_YEAR_CLASS;
|
|
3854
|
+
this.view = signal('days', ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
3855
|
+
this.range = computed(() => {
|
|
3856
|
+
const value = this.value();
|
|
3857
|
+
return Array.isArray(value) ? value : undefined;
|
|
3858
|
+
}, ...(ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []));
|
|
3859
|
+
this.end = linkedSignal(() => this.range()?.[1], ...(ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []));
|
|
3860
|
+
this.single = computed(() => {
|
|
3861
|
+
const value = this.value();
|
|
3862
|
+
return value instanceof Date ? value : undefined;
|
|
3863
|
+
}, ...(ngDevMode ? [{ debugName: "single" }] : /* istanbul ignore next */ []));
|
|
3864
|
+
this.focused = linkedSignal(() => this.single() ?? this.range()?.[0] ?? new Date(), ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
3865
|
+
this.start = linkedSignal(() => this.range()?.[0], ...(ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []));
|
|
3866
|
+
}
|
|
3867
|
+
onDateChange(date) {
|
|
3868
|
+
this.value.set(date ?? null);
|
|
3869
|
+
}
|
|
3870
|
+
onEndChange(end) {
|
|
3871
|
+
this.end.set(end);
|
|
3872
|
+
const start = this.start();
|
|
3873
|
+
if (start && end) {
|
|
3874
|
+
this.value.set([start, end]);
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
/** `undefined` means the focused month was clicked again, which keeps it. */
|
|
3878
|
+
onMonthPicked(month) {
|
|
3879
|
+
if (month) {
|
|
3880
|
+
this.focused.set(month);
|
|
3881
|
+
}
|
|
3882
|
+
this.view.set('days');
|
|
3883
|
+
}
|
|
3884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3885
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwCalendarComponent, isStandalone: true, selector: "yuw-calendar", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-yuw-color": "secondary" }, classAttribute: "block w-72 p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)]" }, ngImport: i0, template: "@if (view() === 'days') {\n @if (mode() === 'range') {\n <yuw-calendar-days\n brnCalendarRange\n [startDate]=\"start()\"\n [endDate]=\"end()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [disabled]=\"disabled()\"\n [defaultFocusedDate]=\"focused()\"\n (startDateChange)=\"start.set($event)\"\n (endDateChange)=\"onEndChange($event)\"\n (focusedDateChange)=\"focused.set($event)\"\n (headingClicked)=\"view.set('monthYear')\"\n />\n } @else {\n <yuw-calendar-days\n brnCalendar\n [date]=\"single()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [disabled]=\"disabled()\"\n [defaultFocusedDate]=\"focused()\"\n (dateChange)=\"onDateChange($event)\"\n (focusedDateChange)=\"focused.set($event)\"\n (headingClicked)=\"view.set('monthYear')\"\n />\n }\n} @else {\n <hlm-month-year-calendar\n view=\"month\"\n [class]=\"monthYearClass\"\n [date]=\"focused()\"\n [defaultFocusedDate]=\"focused()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [disabled]=\"disabled()\"\n (dateChange)=\"onMonthPicked($event)\"\n />\n}\n", dependencies: [{ kind: "directive", type: BrnCalendar, selector: "[brnCalendar]", inputs: ["highlightDays", "min", "max", "disabled", "date", "dateDisabled", "weekStartsOn", "defaultFocusedDate"], outputs: ["dateChange", "focusedDateChange"] }, { kind: "directive", type: BrnCalendarRange, selector: "[brnCalendarRange]", inputs: ["highlightDays", "min", "max", "disabled", "dateDisabled", "weekStartsOn", "defaultFocusedDate", "startDate", "endDate"], outputs: ["focusedDateChange", "startDateChange", "endDateChange"] }, { kind: "component", type: HlmMonthYearCalendar, selector: "hlm-month-year-calendar" }, { kind: "component", type: YuwCalendarDaysComponent, selector: "yuw-calendar-days", outputs: ["headingClicked"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3886
|
+
}
|
|
3887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCalendarComponent, decorators: [{
|
|
3888
|
+
type: Component,
|
|
3889
|
+
args: [{ selector: 'yuw-calendar', imports: [BrnCalendar, BrnCalendarRange, HlmMonthYearCalendar, YuwCalendarDaysComponent], host: {
|
|
3890
|
+
class: 'block w-72 p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)]',
|
|
3891
|
+
'data-yuw-color': 'secondary',
|
|
3892
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (view() === 'days') {\n @if (mode() === 'range') {\n <yuw-calendar-days\n brnCalendarRange\n [startDate]=\"start()\"\n [endDate]=\"end()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [disabled]=\"disabled()\"\n [defaultFocusedDate]=\"focused()\"\n (startDateChange)=\"start.set($event)\"\n (endDateChange)=\"onEndChange($event)\"\n (focusedDateChange)=\"focused.set($event)\"\n (headingClicked)=\"view.set('monthYear')\"\n />\n } @else {\n <yuw-calendar-days\n brnCalendar\n [date]=\"single()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [disabled]=\"disabled()\"\n [defaultFocusedDate]=\"focused()\"\n (dateChange)=\"onDateChange($event)\"\n (focusedDateChange)=\"focused.set($event)\"\n (headingClicked)=\"view.set('monthYear')\"\n />\n }\n} @else {\n <hlm-month-year-calendar\n view=\"month\"\n [class]=\"monthYearClass\"\n [date]=\"focused()\"\n [defaultFocusedDate]=\"focused()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [disabled]=\"disabled()\"\n (dateChange)=\"onMonthPicked($event)\"\n />\n}\n" }]
|
|
3893
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Ranges for `YuwDatePresetDto.range`, every day at midnight and both ends included:
|
|
3897
|
+
* - `thisWeek`: Monday to Sunday of the current week.
|
|
3898
|
+
* - `lastMonth`, `nextMonth`: the whole previous or next calendar month.
|
|
3899
|
+
* - `lastThreeMonths`: the three months up to today, today included.
|
|
3900
|
+
*/
|
|
3901
|
+
const YUW_DATE_RANGES = {
|
|
3902
|
+
today: (today) => [day(today, 0), day(today, 0)],
|
|
3903
|
+
tomorrow: (today) => [day(today, 1), day(today, 1)],
|
|
3904
|
+
thisWeek: (today) => {
|
|
3905
|
+
const monday = day(today, -((today.getDay() + 6) % 7));
|
|
3906
|
+
return [monday, day(monday, 6)];
|
|
3907
|
+
},
|
|
3908
|
+
lastMonth: (today) => month(today.getFullYear(), today.getMonth() - 1, 1),
|
|
3909
|
+
nextMonth: (today) => month(today.getFullYear(), today.getMonth() + 1, 1),
|
|
3910
|
+
lastThreeMonths: (today) => [
|
|
3911
|
+
day(new Date(today.getFullYear(), today.getMonth() - 3, today.getDate()), 1),
|
|
3912
|
+
day(today, 0),
|
|
3913
|
+
],
|
|
3914
|
+
};
|
|
3915
|
+
/**
|
|
3916
|
+
* Presets for every `YUW_DATE_RANGES` key given a label, in the order of `labels`; the id is the key. Spread them
|
|
3917
|
+
* with the consumer's own: `[...yuwDatePresets(labels), { id: 'q1', label: 'Q1', range: yuwQuarterRange(1) }]`.
|
|
3918
|
+
*/
|
|
3919
|
+
function yuwDatePresets(labels) {
|
|
3920
|
+
return Object.entries(labels).map(([id, label]) => ({
|
|
3921
|
+
id,
|
|
3922
|
+
label,
|
|
3923
|
+
range: YUW_DATE_RANGES[id],
|
|
3924
|
+
}));
|
|
3925
|
+
}
|
|
3926
|
+
/**
|
|
3927
|
+
* Range of a quarter, `yearOffset` years from the current one, so the preset stays relative: `yuwQuarterRange(1)` is
|
|
3928
|
+
* January 1st to March 31st of this year, `yuwQuarterRange(1, 1)` of next year and `yuwQuarterRange(4, -1)` the last
|
|
3929
|
+
* quarter of last year.
|
|
3930
|
+
*/
|
|
3931
|
+
function yuwQuarterRange(quarter, yearOffset = 0) {
|
|
3932
|
+
return (today) => month(today.getFullYear() + yearOffset, (quarter - 1) * 3, 3);
|
|
3933
|
+
}
|
|
3934
|
+
function day(date, offset) {
|
|
3935
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + offset);
|
|
3936
|
+
}
|
|
3937
|
+
function month(year, first, count) {
|
|
3938
|
+
return [new Date(year, first, 1), new Date(year, first + count, 0)];
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
/**
|
|
3942
|
+
* Popover of the `single` and `range` modes of `yuw-datepicker`: a combobox of the presets, when there are any, above
|
|
3943
|
+
* a `yuw-calendar`. Its projected content is the trigger, a `hlm-date-picker-trigger` or a button bound to `popover()`.
|
|
3944
|
+
*
|
|
3945
|
+
* It holds no value of its own: a pick is emitted through `picked` and comes back through `value`. The popover
|
|
3946
|
+
* closes once a day, a whole range or a preset is picked.
|
|
3947
|
+
*
|
|
3948
|
+
* Inputs:
|
|
3949
|
+
* - `align`: Popover alignment relative to the trigger.
|
|
3950
|
+
* - `disabled`: Disables the trigger and the calendar.
|
|
3951
|
+
* - `label`: Text of the trigger while something is picked.
|
|
3952
|
+
* - `maxDate`, `minDate`: Bounds of the selectable days.
|
|
3953
|
+
* - `mode`: Required `'single'` or `'range'`.
|
|
3954
|
+
* - `presetId`: Id of the preset the value came from, selected in the combobox.
|
|
3955
|
+
* - `presets`: Presets offered by the combobox. In `single` mode a preset picks the first day of its range. A preset
|
|
3956
|
+
* whose days fall outside `minDate`/`maxDate` is disabled, as the calendar disables those days.
|
|
3957
|
+
* - `presetsLabel`: Placeholder and accessible name of the presets combobox; required with `presets`.
|
|
3958
|
+
* - `value`: Required picked value.
|
|
3959
|
+
*
|
|
3960
|
+
* Outputs:
|
|
3961
|
+
* - `picked`: The user picked days or a preset.
|
|
3962
|
+
*/
|
|
3963
|
+
class YuwCalendarPickerComponent {
|
|
3964
|
+
constructor() {
|
|
3965
|
+
this._trigger = contentChild(BrnDatePickerTriggerToken, ...(ngDevMode ? [{ debugName: "_trigger" }] : /* istanbul ignore next */ []));
|
|
3966
|
+
this.popover = viewChild.required(BrnPopover);
|
|
3967
|
+
this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
3968
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3969
|
+
this.label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3970
|
+
this.maxDate = input(undefined, ...(ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []));
|
|
3971
|
+
this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
|
|
3972
|
+
this.mode = input.required(...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
3973
|
+
this.presetId = input(undefined, ...(ngDevMode ? [{ debugName: "presetId" }] : /* istanbul ignore next */ []));
|
|
3974
|
+
this.presets = input([], ...(ngDevMode ? [{ debugName: "presets" }] : /* istanbul ignore next */ []));
|
|
3975
|
+
this.presetsLabel = input(undefined, ...(ngDevMode ? [{ debugName: "presetsLabel" }] : /* istanbul ignore next */ []));
|
|
3976
|
+
this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3977
|
+
this.picked = output();
|
|
3978
|
+
this._state = signal(null, ...(ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []));
|
|
3979
|
+
this.disabledState = this.disabled;
|
|
3980
|
+
this.formattedDate = this.label;
|
|
3981
|
+
this.hasDate = computed(() => this.value() !== null, ...(ngDevMode ? [{ debugName: "hasDate" }] : /* istanbul ignore next */ []));
|
|
3982
|
+
this.labelableId = computed(() => this._trigger()?.triggerId(), ...(ngDevMode ? [{ debugName: "labelableId" }] : /* istanbul ignore next */ []));
|
|
3983
|
+
this.presetOptions = computed(() => {
|
|
3984
|
+
const today = new Date();
|
|
3985
|
+
const min = this.minDate();
|
|
3986
|
+
const max = this.maxDate();
|
|
3987
|
+
const single = this.mode() === 'single';
|
|
3988
|
+
return this.presets().map((preset) => {
|
|
3989
|
+
const [start, end] = preset.range(today);
|
|
3990
|
+
const last = single ? start : end;
|
|
3991
|
+
return {
|
|
3992
|
+
value: preset.id,
|
|
3993
|
+
label: preset.label,
|
|
3994
|
+
disabled: (min !== undefined && start < startOfDay(min)) || (max !== undefined && last > max),
|
|
3995
|
+
};
|
|
3996
|
+
});
|
|
3997
|
+
}, ...(ngDevMode ? [{ debugName: "presetOptions" }] : /* istanbul ignore next */ []));
|
|
3998
|
+
}
|
|
3999
|
+
onCalendarChange(value) {
|
|
4000
|
+
this.picked.emit({ value, presetId: undefined });
|
|
4001
|
+
if (value !== null) {
|
|
4002
|
+
this._state.set('closed');
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
/** Clearing the combobox keeps the picked dates; only choosing a preset applies one. */
|
|
4006
|
+
onPresetChange(id) {
|
|
4007
|
+
const preset = this.presets().find((candidate) => candidate.id === id);
|
|
4008
|
+
if (!preset) {
|
|
4009
|
+
return;
|
|
4010
|
+
}
|
|
4011
|
+
const range = preset.range(new Date());
|
|
4012
|
+
this.picked.emit({ value: this.mode() === 'range' ? range : range[0], presetId: preset.id });
|
|
4013
|
+
this._state.set('closed');
|
|
4014
|
+
}
|
|
4015
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCalendarPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4016
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwCalendarPickerComponent, isStandalone: true, selector: "yuw-calendar-picker", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: true, transformFunction: null }, presetId: { classPropertyName: "presetId", publicName: "presetId", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null }, presetsLabel: { classPropertyName: "presetsLabel", publicName: "presetsLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { picked: "picked" }, host: { classAttribute: "block" }, providers: [provideBrnDatePicker(YuwCalendarPickerComponent), provideBrnLabelable(YuwCalendarPickerComponent)], queries: [{ propertyName: "_trigger", first: true, predicate: BrnDatePickerTriggerToken, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: BrnPopover, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$i.BrnFieldControl }], ngImport: i0, template: "<hlm-popover sideOffset=\"5\" [align]=\"align()\" [state]=\"_state()\" (stateChanged)=\"_state.set($event)\">\n <ng-content />\n\n <hlm-popover-content class=\"w-fit gap-0 p-0\" *hlmPopoverPortal=\"let ctx\">\n @if (presetOptions().length > 0) {\n <div class=\"px-2 pt-2\">\n <yuw-combobox\n readonlyTrigger\n keepValueOnEscape\n size=\"sm\"\n [options]=\"presetOptions()\"\n [value]=\"presetId()\"\n [placeholder]=\"presetsLabel()\"\n [triggerAriaLabel]=\"presetsLabel() ?? ''\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onPresetChange($event)\"\n />\n </div>\n }\n\n <yuw-calendar\n [mode]=\"mode()\"\n [value]=\"value()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onCalendarChange($event)\"\n />\n </hlm-popover-content>\n</hlm-popover>\n", dependencies: [{ kind: "directive", type: i1$7.HlmPopover, selector: "[hlmPopover],hlm-popover" }, { kind: "directive", type: i1$7.HlmPopoverContent, selector: "[hlmPopoverContent],hlm-popover-content" }, { kind: "directive", type: i1$7.HlmPopoverPortal, selector: "[hlmPopoverPortal]" }, { kind: "component", type: YuwCalendarComponent, selector: "yuw-calendar", inputs: ["disabled", "maxDate", "minDate", "mode", "value"], outputs: ["valueChange"] }, { kind: "component", type: YuwComboboxComponent, selector: "yuw-combobox", inputs: ["clearAriaLabel", "emptyText", "helperText", "inputId", "invalid", "keepValueOnEscape", "multiple", "options", "placeholder", "readonlyTrigger", "search", "searchPlaceholder", "size", "triggerAriaLabel", "triggerClass", "triggerColor", "triggerSize", "triggerVariant", "value"], outputs: ["searchChange", "valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4017
|
+
}
|
|
4018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCalendarPickerComponent, decorators: [{
|
|
4019
|
+
type: Component,
|
|
4020
|
+
args: [{ selector: 'yuw-calendar-picker', imports: [...HlmPopoverImports, YuwCalendarComponent, YuwComboboxComponent], providers: [provideBrnDatePicker(YuwCalendarPickerComponent), provideBrnLabelable(YuwCalendarPickerComponent)], hostDirectives: [BrnFieldControl], host: { class: 'block' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<hlm-popover sideOffset=\"5\" [align]=\"align()\" [state]=\"_state()\" (stateChanged)=\"_state.set($event)\">\n <ng-content />\n\n <hlm-popover-content class=\"w-fit gap-0 p-0\" *hlmPopoverPortal=\"let ctx\">\n @if (presetOptions().length > 0) {\n <div class=\"px-2 pt-2\">\n <yuw-combobox\n readonlyTrigger\n keepValueOnEscape\n size=\"sm\"\n [options]=\"presetOptions()\"\n [value]=\"presetId()\"\n [placeholder]=\"presetsLabel()\"\n [triggerAriaLabel]=\"presetsLabel() ?? ''\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onPresetChange($event)\"\n />\n </div>\n }\n\n <yuw-calendar\n [mode]=\"mode()\"\n [value]=\"value()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onCalendarChange($event)\"\n />\n </hlm-popover-content>\n</hlm-popover>\n" }]
|
|
4021
|
+
}], propDecorators: { _trigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BrnDatePickerTriggerToken), { isSignal: true }] }], popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => BrnPopover), { isSignal: true }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: true }] }], presetId: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetId", required: false }] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], presetsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetsLabel", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], picked: [{ type: i0.Output, args: ["picked"] }] } });
|
|
4022
|
+
function startOfDay(date) {
|
|
4023
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
/**
|
|
4027
|
+
* Replaces the trigger of a `single` or `range` `<yuw-datepicker>` with a `<yuw-button>` whose content is this
|
|
4028
|
+
* template, styled by `triggerColor`, `triggerVariant` and `class`. Used where the picker is not a form field, such as
|
|
4029
|
+
* a list filter that reads "Date This week".
|
|
4030
|
+
*
|
|
4031
|
+
* Usage:
|
|
4032
|
+
* ```html
|
|
4033
|
+
* <yuw-datepicker mode="range" [(value)]="range" triggerVariant="secondary">
|
|
4034
|
+
* <ng-template yuwDatepickerTrigger let-summary>
|
|
4035
|
+
* <span class="font-semibold">Date</span> {{ summary }}
|
|
4036
|
+
* </ng-template>
|
|
4037
|
+
* </yuw-datepicker>
|
|
4038
|
+
* ```
|
|
4039
|
+
*/
|
|
4040
|
+
class YuwDatepickerTriggerDirective {
|
|
4041
|
+
constructor() {
|
|
4042
|
+
this.templateRef = inject(TemplateRef);
|
|
4043
|
+
}
|
|
4044
|
+
static ngTemplateContextGuard(_directive, _context) {
|
|
4045
|
+
return true;
|
|
4046
|
+
}
|
|
4047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDatepickerTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4048
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwDatepickerTriggerDirective, isStandalone: true, selector: "ng-template[yuwDatepickerTrigger]", ngImport: i0 }); }
|
|
4049
|
+
}
|
|
4050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDatepickerTriggerDirective, decorators: [{
|
|
4051
|
+
type: Directive,
|
|
4052
|
+
args: [{
|
|
4053
|
+
selector: 'ng-template[yuwDatepickerTrigger]',
|
|
4054
|
+
}]
|
|
4055
|
+
}] });
|
|
4056
|
+
|
|
3757
4057
|
/** Module-level counter for the fallback trigger id, so external labels always have a stable,
|
|
3758
4058
|
* unique target even when the consumer doesn't pass `buttonId`. */
|
|
3759
4059
|
let nextUniqueId = 0;
|
|
3760
4060
|
/**
|
|
3761
4061
|
* Date picker control supporting single date, date range, multiple dates, or month/year pick modes.
|
|
3762
4062
|
*
|
|
4063
|
+
* In `single` and `range` modes the calendar heading jumps to the month and then the year grid (see `yuw-calendar`),
|
|
4064
|
+
* and `presets` offers shortcuts such as "This week" in a combobox above it. Picking a preset sets `value` to its dates and
|
|
4065
|
+
* `presetId` to its id, and the trigger reads the preset label; picking days clears `presetId`.
|
|
4066
|
+
*
|
|
3763
4067
|
* Inputs / Models:
|
|
3764
4068
|
* - `mode`: Selection mode (`'single'`, `'range'`, `'multiple'`, `'monthYear'`). Default is `'single'`.
|
|
3765
4069
|
* - `value`: Two-way selected date(s) (`YuwDatepickerValue`). Shape follows `mode`. Emits
|
|
@@ -3775,10 +4079,21 @@ let nextUniqueId = 0;
|
|
|
3775
4079
|
* association. When omitted, a unique per-instance id is generated.
|
|
3776
4080
|
* - `size`: Trigger button height (`YuwFieldSizeDto`), matching the `<yuw-button>` size of the same name. Default is `'default'`.
|
|
3777
4081
|
* - `class`: Extra classes merged onto the trigger button (e.g. a width), consumer classes win.
|
|
4082
|
+
* The field trigger never grows past its container: a long label, such as many dates, ends in an ellipsis.
|
|
3778
4083
|
* - `invalid`: Forces invalid styling. Applied from the first blur on, so a pristine field is not flagged.
|
|
3779
4084
|
* - `helperText`: Hint shown under the control. Replaced by the error while one is displayed.
|
|
3780
4085
|
* - `formatDate`: Custom date formatter function `(date: Date) => string` for the trigger label.
|
|
3781
4086
|
* In `range`/`multiple` modes it formats each date, joined with `' - '` / `', '`.
|
|
4087
|
+
* - `presets`: `single`/`range` only. Shortcuts offered by a combobox above the calendar. Any `{ id, label, range }`
|
|
4088
|
+
* is a preset; `yuwDatePresets()` builds the common ones from their labels, and `yuwQuarterRange()` makes quarters.
|
|
4089
|
+
* In `single` mode a preset picks the first day of its range.
|
|
4090
|
+
* - `presetsLabel`: Placeholder and accessible name of the presets combobox; required with `presets`.
|
|
4091
|
+
* - `presetId`: `single`/`range` only. Two-way id of the preset the value came from; `undefined` for picked days. It
|
|
4092
|
+
* is updated before `value`, so a `valueChange` handler already reads the new one.
|
|
4093
|
+
* - `triggerColor`, `triggerVariant`: `single`/`range` only. Look of the `<yuw-button>` rendered for a projected
|
|
4094
|
+
* `yuwDatepickerTrigger` template, which replaces the field trigger (see `YuwDatepickerTriggerDirective`).
|
|
4095
|
+
*
|
|
4096
|
+
* `captionLayout` applies to `multiple` only: the `single` and `range` calendars navigate through their heading.
|
|
3782
4097
|
*
|
|
3783
4098
|
* Bound with `[formField]` (signal forms), the error state follows the field: shown once it is touched, with the
|
|
3784
4099
|
* `message` of its first error under the control.
|
|
@@ -3788,11 +4103,13 @@ let nextUniqueId = 0;
|
|
|
3788
4103
|
* <yuw-datepicker [(value)]="selectedDate" placeholder="Select date..." />
|
|
3789
4104
|
* <yuw-datepicker mode="range" [(value)]="dateRange" />
|
|
3790
4105
|
* <yuw-datepicker mode="monthYear" [(value)]="selectedMonth" />
|
|
4106
|
+
* <yuw-datepicker mode="range" [presets]="presets" [(presetId)]="presetId" [(value)]="dateRange" />
|
|
3791
4107
|
* ```
|
|
3792
4108
|
*/
|
|
3793
4109
|
class YuwDatepickerComponent extends YuwValueAccessorBase {
|
|
3794
4110
|
constructor() {
|
|
3795
4111
|
super(...arguments);
|
|
4112
|
+
this.triggerTemplate = contentChild(YuwDatepickerTriggerDirective, ...(ngDevMode ? [{ debugName: "triggerTemplate" }] : /* istanbul ignore next */ []));
|
|
3796
4113
|
this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
3797
4114
|
this.buttonId = input(undefined, ...(ngDevMode ? [{ debugName: "buttonId" }] : /* istanbul ignore next */ []));
|
|
3798
4115
|
this.captionLayout = input('label', ...(ngDevMode ? [{ debugName: "captionLayout" }] : /* istanbul ignore next */ []));
|
|
@@ -3803,7 +4120,12 @@ class YuwDatepickerComponent extends YuwValueAccessorBase {
|
|
|
3803
4120
|
this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
|
|
3804
4121
|
this.mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
3805
4122
|
this.placeholder = input(undefined, ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4123
|
+
this.presetId = model(undefined, ...(ngDevMode ? [{ debugName: "presetId" }] : /* istanbul ignore next */ []));
|
|
4124
|
+
this.presets = input([], ...(ngDevMode ? [{ debugName: "presets" }] : /* istanbul ignore next */ []));
|
|
4125
|
+
this.presetsLabel = input(undefined, ...(ngDevMode ? [{ debugName: "presetsLabel" }] : /* istanbul ignore next */ []));
|
|
3806
4126
|
this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
4127
|
+
this.triggerColor = input('neutral', ...(ngDevMode ? [{ debugName: "triggerColor" }] : /* istanbul ignore next */ []));
|
|
4128
|
+
this.triggerVariant = input('outline', ...(ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []));
|
|
3807
4129
|
this.userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
|
|
3808
4130
|
this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3809
4131
|
this._focusSelectors = ['button'];
|
|
@@ -3813,6 +4135,16 @@ class YuwDatepickerComponent extends YuwValueAccessorBase {
|
|
|
3813
4135
|
this._rangeConfig = injectHlmDateRangePickerConfig();
|
|
3814
4136
|
this._singleConfig = injectHlmDatePickerConfig();
|
|
3815
4137
|
this._buttonId = computed(() => this.buttonId() ?? this._generatedButtonId, ...(ngDevMode ? [{ debugName: "_buttonId" }] : /* istanbul ignore next */ []));
|
|
4138
|
+
this._calendarMode = computed(() => (this.mode() === 'range' ? 'range' : 'single'), ...(ngDevMode ? [{ debugName: "_calendarMode" }] : /* istanbul ignore next */ []));
|
|
4139
|
+
this._rangeValue = computed(() => {
|
|
4140
|
+
const value = this.value();
|
|
4141
|
+
return Array.isArray(value) && value.length === 2 ? value : undefined;
|
|
4142
|
+
}, ...(ngDevMode ? [{ debugName: "_rangeValue" }] : /* istanbul ignore next */ []));
|
|
4143
|
+
this._singleValue = computed(() => {
|
|
4144
|
+
const value = this.value();
|
|
4145
|
+
return Array.isArray(value) ? undefined : (value ?? undefined);
|
|
4146
|
+
}, ...(ngDevMode ? [{ debugName: "_singleValue" }] : /* istanbul ignore next */ []));
|
|
4147
|
+
this._calendarValue = computed(() => this._calendarMode() === 'range' ? (this._rangeValue() ?? null) : (this._singleValue() ?? null), ...(ngDevMode ? [{ debugName: "_calendarValue" }] : /* istanbul ignore next */ []));
|
|
3816
4148
|
this._formatMonthYear = computed(() => this.formatDate() ?? this._monthYearConfig.formatDate, ...(ngDevMode ? [{ debugName: "_formatMonthYear" }] : /* istanbul ignore next */ []));
|
|
3817
4149
|
this._formatMulti = computed(() => {
|
|
3818
4150
|
const format = this.formatDate();
|
|
@@ -3832,6 +4164,17 @@ class YuwDatepickerComponent extends YuwValueAccessorBase {
|
|
|
3832
4164
|
.join(' - ');
|
|
3833
4165
|
}, ...(ngDevMode ? [{ debugName: "_formatRange" }] : /* istanbul ignore next */ []));
|
|
3834
4166
|
this._formatSingle = computed(() => this.formatDate() ?? this._singleConfig.formatDate, ...(ngDevMode ? [{ debugName: "_formatSingle" }] : /* istanbul ignore next */ []));
|
|
4167
|
+
this._label = computed(() => {
|
|
4168
|
+
const value = this._calendarValue();
|
|
4169
|
+
if (value === null) {
|
|
4170
|
+
return undefined;
|
|
4171
|
+
}
|
|
4172
|
+
const preset = this.presets().find((candidate) => candidate.id === this.presetId());
|
|
4173
|
+
if (preset) {
|
|
4174
|
+
return preset.label;
|
|
4175
|
+
}
|
|
4176
|
+
return Array.isArray(value) ? this._formatRange()(value) : this._formatSingle()(value);
|
|
4177
|
+
}, ...(ngDevMode ? [{ debugName: "_label" }] : /* istanbul ignore next */ []));
|
|
3835
4178
|
this._multipleValue = computed(() => {
|
|
3836
4179
|
const value = this.value();
|
|
3837
4180
|
if (!value) {
|
|
@@ -3839,31 +4182,39 @@ class YuwDatepickerComponent extends YuwValueAccessorBase {
|
|
|
3839
4182
|
}
|
|
3840
4183
|
return Array.isArray(value) ? value : [value];
|
|
3841
4184
|
}, ...(ngDevMode ? [{ debugName: "_multipleValue" }] : /* istanbul ignore next */ []));
|
|
3842
|
-
this.
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
}, ...(ngDevMode ? [{ debugName: "
|
|
3846
|
-
this._singleValue = computed(() => {
|
|
3847
|
-
const value = this.value();
|
|
3848
|
-
return Array.isArray(value) ? undefined : (value ?? undefined);
|
|
3849
|
-
}, ...(ngDevMode ? [{ debugName: "_singleValue" }] : /* istanbul ignore next */ []));
|
|
3850
|
-
this._triggerClass = computed(() => cn(yuwButtonVariants({ size: this.size() }), this.userClass()), ...(ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []));
|
|
4185
|
+
this._triggerClass = computed(() => cn('max-w-full', yuwButtonVariants({ size: this.size() }), this.userClass()), ...(ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []));
|
|
4186
|
+
this._triggerContext = computed(() => ({
|
|
4187
|
+
$implicit: this._label() ?? '',
|
|
4188
|
+
}), ...(ngDevMode ? [{ debugName: "_triggerContext" }] : /* istanbul ignore next */ []));
|
|
3851
4189
|
}
|
|
3852
4190
|
_emptyValue() {
|
|
3853
4191
|
return this.mode() === 'multiple' ? [] : null;
|
|
3854
4192
|
}
|
|
4193
|
+
onPicked(pick) {
|
|
4194
|
+
this.presetId.set(pick.presetId);
|
|
4195
|
+
this._commit(pick.value);
|
|
4196
|
+
}
|
|
3855
4197
|
onValueChange(next) {
|
|
3856
4198
|
this._commit(next);
|
|
3857
4199
|
}
|
|
3858
4200
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDatepickerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3859
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwDatepickerComponent, isStandalone: true, selector: "yuw-datepicker", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, buttonId: { classPropertyName: "buttonId", publicName: "buttonId", isSignal: true, isRequired: false, transformFunction: null }, captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null }, formatDate: { classPropertyName: "formatDate", publicName: "formatDate", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "contents" }, providers: [provideValueAccessor(YuwDatepickerComponent)], usesInheritance: true, ngImport: i0, template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n>\n @switch (mode()) {\n @case ('
|
|
4201
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwDatepickerComponent, isStandalone: true, selector: "yuw-datepicker", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, buttonId: { classPropertyName: "buttonId", publicName: "buttonId", isSignal: true, isRequired: false, transformFunction: null }, captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null }, formatDate: { classPropertyName: "formatDate", publicName: "formatDate", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, presetId: { classPropertyName: "presetId", publicName: "presetId", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null }, presetsLabel: { classPropertyName: "presetsLabel", publicName: "presetsLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, triggerColor: { classPropertyName: "triggerColor", publicName: "triggerColor", isSignal: true, isRequired: false, transformFunction: null }, triggerVariant: { classPropertyName: "triggerVariant", publicName: "triggerVariant", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { presetId: "presetIdChange", value: "valueChange" }, host: { classAttribute: "contents" }, providers: [provideValueAccessor(YuwDatepickerComponent)], queries: [{ propertyName: "triggerTemplate", first: true, predicate: YuwDatepickerTriggerDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n>\n @switch (mode()) {\n @case ('multiple') {\n <hlm-date-picker-multi\n [date]=\"_multipleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [captionLayout]=\"captionLayout()\"\n [align]=\"align()\"\n [formatDates]=\"_formatMulti()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-date-picker-multi>\n }\n @case ('monthYear') {\n <hlm-month-year-picker\n [date]=\"_singleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n [formatDate]=\"_formatMonthYear()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-month-year-picker>\n }\n @default {\n <yuw-calendar-picker\n #picker\n [mode]=\"_calendarMode()\"\n [value]=\"_calendarValue()\"\n [label]=\"_label()\"\n [presets]=\"presets()\"\n [presetId]=\"presetId()\"\n [presetsLabel]=\"presetsLabel()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n (picked)=\"onPicked($event)\"\n (focusout)=\"_onBlur()\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n [id]=\"_buttonId()\"\n [yuwPopoverTriggerFor]=\"picker.popover()\"\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [class]=\"userClass()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n }\n </yuw-calendar-picker>\n }\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\">{{ feedback.errorMessage() }}</hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description>{{ helper }}</hlm-field-description>\n }\n</hlm-field>\n", dependencies: [{ kind: "component", type: i1$j.HlmDatePickerMulti, selector: "hlm-date-picker-multi", inputs: ["align", "captionLayout", "minDate", "maxDate", "minSelection", "maxSelection", "disabled", "date", "autoCloseOnMaxSelection", "formatDates", "transformDates"], outputs: ["dateChange"] }, { kind: "component", type: i1$j.HlmDatePickerTrigger, selector: "hlm-date-picker-trigger", inputs: ["class", "buttonId", "forceInvalid", "variant", "showTrigger"] }, { kind: "component", type: i1$j.HlmMonthYearPicker, selector: "hlm-month-year-picker", inputs: ["align", "minDate", "maxDate", "disabled", "date", "defaultFocusedDate", "autoCloseOnSelect", "formatDate", "transformDate"], outputs: ["dateChange"] }, { kind: "directive", type: HlmField, selector: "[hlmField],hlm-field", inputs: ["orientation"] }, { kind: "directive", type: HlmFieldDescription, selector: "[hlmFieldDescription],hlm-field-description", inputs: ["id"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: YuwButtonComponent, selector: "yuw-button", inputs: ["animationDisabled", "ariaLabel", "color", "disabled", "href", "size", "target", "transparent", "type", "class", "variant", "yuwDropdownMenuAlign", "yuwDropdownMenuTrigger"], outputs: ["clicked"] }, { kind: "component", type: YuwCalendarPickerComponent, selector: "yuw-calendar-picker", inputs: ["align", "disabled", "label", "maxDate", "minDate", "mode", "presetId", "presets", "presetsLabel", "value"], outputs: ["picked"] }, { kind: "directive", type: YuwFieldFeedbackDirective, selector: "hlm-field[yuwFieldFeedback]", inputs: ["errorText", "invalid"], exportAs: ["yuwFieldFeedback"] }, { kind: "directive", type: YuwPopoverTriggerDirective, selector: "yuw-button[yuwPopoverTriggerFor], yuw-button[yuwPopoverTriggerButton]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3860
4202
|
}
|
|
3861
4203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDatepickerComponent, decorators: [{
|
|
3862
4204
|
type: Component,
|
|
3863
|
-
args: [{ selector: 'yuw-datepicker', imports: [
|
|
4205
|
+
args: [{ selector: 'yuw-datepicker', imports: [
|
|
4206
|
+
...HlmDatePickerImports,
|
|
4207
|
+
HlmField,
|
|
4208
|
+
HlmFieldDescription,
|
|
4209
|
+
NgTemplateOutlet,
|
|
4210
|
+
YuwButtonComponent,
|
|
4211
|
+
YuwCalendarPickerComponent,
|
|
4212
|
+
YuwFieldFeedbackDirective,
|
|
4213
|
+
YuwPopoverTriggerDirective,
|
|
4214
|
+
], providers: [provideValueAccessor(YuwDatepickerComponent)], host: {
|
|
3864
4215
|
class: 'contents',
|
|
3865
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n>\n @switch (mode()) {\n @case ('
|
|
3866
|
-
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], buttonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonId", required: false }] }], captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }], formatDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatDate", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
4216
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n>\n @switch (mode()) {\n @case ('multiple') {\n <hlm-date-picker-multi\n [date]=\"_multipleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [captionLayout]=\"captionLayout()\"\n [align]=\"align()\"\n [formatDates]=\"_formatMulti()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-date-picker-multi>\n }\n @case ('monthYear') {\n <hlm-month-year-picker\n [date]=\"_singleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n [formatDate]=\"_formatMonthYear()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-month-year-picker>\n }\n @default {\n <yuw-calendar-picker\n #picker\n [mode]=\"_calendarMode()\"\n [value]=\"_calendarValue()\"\n [label]=\"_label()\"\n [presets]=\"presets()\"\n [presetId]=\"presetId()\"\n [presetsLabel]=\"presetsLabel()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n (picked)=\"onPicked($event)\"\n (focusout)=\"_onBlur()\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n [id]=\"_buttonId()\"\n [yuwPopoverTriggerFor]=\"picker.popover()\"\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [class]=\"userClass()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n }\n </yuw-calendar-picker>\n }\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\">{{ feedback.errorMessage() }}</hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description>{{ helper }}</hlm-field-description>\n }\n</hlm-field>\n" }]
|
|
4217
|
+
}], propDecorators: { triggerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => YuwDatepickerTriggerDirective), { isSignal: true }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], buttonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonId", required: false }] }], captionLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionLayout", required: false }] }], formatDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatDate", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], presetId: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetId", required: false }] }, { type: i0.Output, args: ["presetIdChange"] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], presetsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetsLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], triggerColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerColor", required: false }] }], triggerVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerVariant", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
3867
4218
|
|
|
3868
4219
|
/**
|
|
3869
4220
|
* Outer wrapper container directive for responsive HTML table scroll container.
|
|
@@ -3884,7 +4235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3884
4235
|
*/
|
|
3885
4236
|
class YuwTableContainerDirective {
|
|
3886
4237
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTableContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3887
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTableContainerDirective, isStandalone: true, selector: "[yuwTableContainer]", hostDirectives: [{ directive: i1$
|
|
4238
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTableContainerDirective, isStandalone: true, selector: "[yuwTableContainer]", hostDirectives: [{ directive: i1$k.HlmTableContainer }], ngImport: i0 }); }
|
|
3888
4239
|
}
|
|
3889
4240
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTableContainerDirective, decorators: [{
|
|
3890
4241
|
type: Directive,
|
|
@@ -3896,7 +4247,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3896
4247
|
/** Table element styling directive applied to native `<table>`. */
|
|
3897
4248
|
class YuwTableDirective {
|
|
3898
4249
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3899
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTableDirective, isStandalone: true, selector: "[yuwTable]", hostDirectives: [{ directive: i1$
|
|
4250
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTableDirective, isStandalone: true, selector: "[yuwTable]", hostDirectives: [{ directive: i1$k.HlmTable }], ngImport: i0 }); }
|
|
3900
4251
|
}
|
|
3901
4252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTableDirective, decorators: [{
|
|
3902
4253
|
type: Directive,
|
|
@@ -3908,7 +4259,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3908
4259
|
/** Table header container directive applied to native `<thead>`. */
|
|
3909
4260
|
class YuwTHeadDirective {
|
|
3910
4261
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTHeadDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3911
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTHeadDirective, isStandalone: true, selector: "[yuwTHead]", hostDirectives: [{ directive: i1$
|
|
4262
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTHeadDirective, isStandalone: true, selector: "[yuwTHead]", hostDirectives: [{ directive: i1$k.HlmTHead }], ngImport: i0 }); }
|
|
3912
4263
|
}
|
|
3913
4264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTHeadDirective, decorators: [{
|
|
3914
4265
|
type: Directive,
|
|
@@ -3920,7 +4271,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3920
4271
|
/** Table body container directive applied to native `<tbody>`. */
|
|
3921
4272
|
class YuwTBodyDirective {
|
|
3922
4273
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3923
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTBodyDirective, isStandalone: true, selector: "[yuwTBody]", hostDirectives: [{ directive: i1$
|
|
4274
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTBodyDirective, isStandalone: true, selector: "[yuwTBody]", hostDirectives: [{ directive: i1$k.HlmTBody }], ngImport: i0 }); }
|
|
3924
4275
|
}
|
|
3925
4276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTBodyDirective, decorators: [{
|
|
3926
4277
|
type: Directive,
|
|
@@ -3932,7 +4283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3932
4283
|
/** Table footer container directive applied to native `<tfoot>`. */
|
|
3933
4284
|
class YuwTFootDirective {
|
|
3934
4285
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTFootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3935
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTFootDirective, isStandalone: true, selector: "[yuwTFoot]", hostDirectives: [{ directive: i1$
|
|
4286
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTFootDirective, isStandalone: true, selector: "[yuwTFoot]", hostDirectives: [{ directive: i1$k.HlmTFoot }], ngImport: i0 }); }
|
|
3936
4287
|
}
|
|
3937
4288
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTFootDirective, decorators: [{
|
|
3938
4289
|
type: Directive,
|
|
@@ -3944,7 +4295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3944
4295
|
/** Table row directive applied to native `<tr>`. */
|
|
3945
4296
|
class YuwTrDirective {
|
|
3946
4297
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTrDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3947
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTrDirective, isStandalone: true, selector: "[yuwTr]", hostDirectives: [{ directive: i1$
|
|
4298
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTrDirective, isStandalone: true, selector: "[yuwTr]", hostDirectives: [{ directive: i1$k.HlmTr }], ngImport: i0 }); }
|
|
3948
4299
|
}
|
|
3949
4300
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTrDirective, decorators: [{
|
|
3950
4301
|
type: Directive,
|
|
@@ -3956,7 +4307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3956
4307
|
/** Table header cell directive applied to native `<th>`. */
|
|
3957
4308
|
class YuwThDirective {
|
|
3958
4309
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwThDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3959
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwThDirective, isStandalone: true, selector: "[yuwTh]", hostDirectives: [{ directive: i1$
|
|
4310
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwThDirective, isStandalone: true, selector: "[yuwTh]", hostDirectives: [{ directive: i1$k.HlmTh }], ngImport: i0 }); }
|
|
3960
4311
|
}
|
|
3961
4312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwThDirective, decorators: [{
|
|
3962
4313
|
type: Directive,
|
|
@@ -3968,7 +4319,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3968
4319
|
/** Table data cell directive applied to native `<td>`. */
|
|
3969
4320
|
class YuwTdDirective {
|
|
3970
4321
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3971
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTdDirective, isStandalone: true, selector: "[yuwTd]", hostDirectives: [{ directive: i1$
|
|
4322
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwTdDirective, isStandalone: true, selector: "[yuwTd]", hostDirectives: [{ directive: i1$k.HlmTd }], ngImport: i0 }); }
|
|
3972
4323
|
}
|
|
3973
4324
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTdDirective, decorators: [{
|
|
3974
4325
|
type: Directive,
|
|
@@ -3980,7 +4331,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
3980
4331
|
/** Table caption directive applied to native `<caption>`. */
|
|
3981
4332
|
class YuwCaptionDirective {
|
|
3982
4333
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCaptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3983
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwCaptionDirective, isStandalone: true, selector: "[yuwCaption]", hostDirectives: [{ directive: i1$
|
|
4334
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwCaptionDirective, isStandalone: true, selector: "[yuwCaption]", hostDirectives: [{ directive: i1$k.HlmCaption }], ngImport: i0 }); }
|
|
3984
4335
|
}
|
|
3985
4336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCaptionDirective, decorators: [{
|
|
3986
4337
|
type: Directive,
|
|
@@ -4585,7 +4936,7 @@ function shareTable(format, snapshot) {
|
|
|
4585
4936
|
*/
|
|
4586
4937
|
class YuwItemDirective {
|
|
4587
4938
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4588
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemDirective, isStandalone: true, selector: "[yuwItem], yuw-item", hostDirectives: [{ directive: i1$
|
|
4939
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemDirective, isStandalone: true, selector: "[yuwItem], yuw-item", hostDirectives: [{ directive: i1$l.HlmItem, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0 }); }
|
|
4589
4940
|
}
|
|
4590
4941
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemDirective, decorators: [{
|
|
4591
4942
|
type: Directive,
|
|
@@ -4597,7 +4948,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4597
4948
|
/** Header slot directive for an item container. */
|
|
4598
4949
|
class YuwItemHeaderDirective {
|
|
4599
4950
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4600
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemHeaderDirective, isStandalone: true, selector: "[yuwItemHeader], yuw-item-header", hostDirectives: [{ directive: i1$
|
|
4951
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemHeaderDirective, isStandalone: true, selector: "[yuwItemHeader], yuw-item-header", hostDirectives: [{ directive: i1$l.HlmItemHeader }], ngImport: i0 }); }
|
|
4601
4952
|
}
|
|
4602
4953
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemHeaderDirective, decorators: [{
|
|
4603
4954
|
type: Directive,
|
|
@@ -4609,7 +4960,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4609
4960
|
/** Leading media slot directive (for icons, avatars, or images) at the start of an item. Supports `variant` (`'default'`, `'icon'`, `'image'`). */
|
|
4610
4961
|
class YuwItemMediaDirective {
|
|
4611
4962
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemMediaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4612
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemMediaDirective, isStandalone: true, selector: "[yuwItemMedia], yuw-item-media", hostDirectives: [{ directive: i1$
|
|
4963
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemMediaDirective, isStandalone: true, selector: "[yuwItemMedia], yuw-item-media", hostDirectives: [{ directive: i1$l.HlmItemMedia, inputs: ["variant", "variant"] }], ngImport: i0 }); }
|
|
4613
4964
|
}
|
|
4614
4965
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemMediaDirective, decorators: [{
|
|
4615
4966
|
type: Directive,
|
|
@@ -4621,7 +4972,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4621
4972
|
/** Main text content container directive for an item. */
|
|
4622
4973
|
class YuwItemContentDirective {
|
|
4623
4974
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4624
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemContentDirective, isStandalone: true, selector: "[yuwItemContent], yuw-item-content", hostDirectives: [{ directive: i1$
|
|
4975
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemContentDirective, isStandalone: true, selector: "[yuwItemContent], yuw-item-content", hostDirectives: [{ directive: i1$l.HlmItemContent }], ngImport: i0 }); }
|
|
4625
4976
|
}
|
|
4626
4977
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemContentDirective, decorators: [{
|
|
4627
4978
|
type: Directive,
|
|
@@ -4633,7 +4984,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4633
4984
|
/** Title heading directive for an item. */
|
|
4634
4985
|
class YuwItemTitleDirective {
|
|
4635
4986
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4636
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemTitleDirective, isStandalone: true, selector: "[yuwItemTitle], yuw-item-title", hostDirectives: [{ directive: i1$
|
|
4987
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemTitleDirective, isStandalone: true, selector: "[yuwItemTitle], yuw-item-title", hostDirectives: [{ directive: i1$l.HlmItemTitle }], ngImport: i0 }); }
|
|
4637
4988
|
}
|
|
4638
4989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemTitleDirective, decorators: [{
|
|
4639
4990
|
type: Directive,
|
|
@@ -4645,7 +4996,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4645
4996
|
/** Subtitle or description paragraph directive for an item. */
|
|
4646
4997
|
class YuwItemDescriptionDirective {
|
|
4647
4998
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4648
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemDescriptionDirective, isStandalone: true, selector: "[yuwItemDescription], yuw-item-description", hostDirectives: [{ directive: i1$
|
|
4999
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemDescriptionDirective, isStandalone: true, selector: "[yuwItemDescription], yuw-item-description", hostDirectives: [{ directive: i1$l.HlmItemDescription }], ngImport: i0 }); }
|
|
4649
5000
|
}
|
|
4650
5001
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemDescriptionDirective, decorators: [{
|
|
4651
5002
|
type: Directive,
|
|
@@ -4657,7 +5008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4657
5008
|
/** Trailing action controls slot directive (for buttons, switches, or menu triggers) at the end of an item. */
|
|
4658
5009
|
class YuwItemActionsDirective {
|
|
4659
5010
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4660
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemActionsDirective, isStandalone: true, selector: "[yuwItemActions], yuw-item-actions", hostDirectives: [{ directive: i1$
|
|
5011
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemActionsDirective, isStandalone: true, selector: "[yuwItemActions], yuw-item-actions", hostDirectives: [{ directive: i1$l.HlmItemActions }], ngImport: i0 }); }
|
|
4661
5012
|
}
|
|
4662
5013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemActionsDirective, decorators: [{
|
|
4663
5014
|
type: Directive,
|
|
@@ -4669,7 +5020,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4669
5020
|
/** Footer slot directive for an item. */
|
|
4670
5021
|
class YuwItemFooterDirective {
|
|
4671
5022
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4672
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemFooterDirective, isStandalone: true, selector: "[yuwItemFooter], yuw-item-footer", hostDirectives: [{ directive: i1$
|
|
5023
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemFooterDirective, isStandalone: true, selector: "[yuwItemFooter], yuw-item-footer", hostDirectives: [{ directive: i1$l.HlmItemFooter }], ngImport: i0 }); }
|
|
4673
5024
|
}
|
|
4674
5025
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemFooterDirective, decorators: [{
|
|
4675
5026
|
type: Directive,
|
|
@@ -4681,7 +5032,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4681
5032
|
/** Container directive for grouping multiple item rows together into a list card or bordered group. */
|
|
4682
5033
|
class YuwItemGroupDirective {
|
|
4683
5034
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4684
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemGroupDirective, isStandalone: true, selector: "[yuwItemGroup], yuw-item-group", hostDirectives: [{ directive: i1$
|
|
5035
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwItemGroupDirective, isStandalone: true, selector: "[yuwItemGroup], yuw-item-group", hostDirectives: [{ directive: i1$l.HlmItemGroup }], ngImport: i0 }); }
|
|
4685
5036
|
}
|
|
4686
5037
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwItemGroupDirective, decorators: [{
|
|
4687
5038
|
type: Directive,
|
|
@@ -4920,7 +5271,7 @@ const YuwAlertImports = [
|
|
|
4920
5271
|
*/
|
|
4921
5272
|
class YuwDialogTriggerDirective {
|
|
4922
5273
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDialogTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4923
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwDialogTriggerDirective, isStandalone: true, selector: "yuw-button[yuwDialogTriggerFor], yuw-button[yuwDialogTriggerButton]", host: { attributes: { "data-slot": "dialog-trigger" } }, hostDirectives: [{ directive: i1$
|
|
5274
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwDialogTriggerDirective, isStandalone: true, selector: "yuw-button[yuwDialogTriggerFor], yuw-button[yuwDialogTriggerButton]", host: { attributes: { "data-slot": "dialog-trigger" } }, hostDirectives: [{ directive: i1$m.BrnDialogTrigger, inputs: ["id", "id", "brnDialogTriggerFor", "yuwDialogTriggerFor", "type", "type"] }], ngImport: i0 }); }
|
|
4924
5275
|
}
|
|
4925
5276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDialogTriggerDirective, decorators: [{
|
|
4926
5277
|
type: Directive,
|
|
@@ -4933,7 +5284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
4933
5284
|
/** Closes the surrounding `<yuw-dialog>` when the host `<yuw-button>` is activated. */
|
|
4934
5285
|
class YuwDialogCloseDirective {
|
|
4935
5286
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDialogCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4936
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwDialogCloseDirective, isStandalone: true, selector: "yuw-button[yuwDialogClose]", host: { attributes: { "data-slot": "dialog-close" } }, hostDirectives: [{ directive: i1$
|
|
5287
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwDialogCloseDirective, isStandalone: true, selector: "yuw-button[yuwDialogClose]", host: { attributes: { "data-slot": "dialog-close" } }, hostDirectives: [{ directive: i1$m.BrnDialogClose }], ngImport: i0 }); }
|
|
4937
5288
|
}
|
|
4938
5289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDialogCloseDirective, decorators: [{
|
|
4939
5290
|
type: Directive,
|
|
@@ -5021,7 +5372,7 @@ class YuwDialogComponent {
|
|
|
5021
5372
|
this.open.set(state === 'open');
|
|
5022
5373
|
}
|
|
5023
5374
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5024
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwDialogComponent, isStandalone: true, selector: "yuw-dialog", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, showTrigger: { classPropertyName: "showTrigger", publicName: "showTrigger", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, triggerColor: { classPropertyName: "triggerColor", publicName: "triggerColor", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null }, triggerVariant: { classPropertyName: "triggerVariant", publicName: "triggerVariant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { classAttribute: "contents" }, providers: [provideIcons({ lucideX })], queries: [{ propertyName: "hasFooter", first: true, predicate: YuwDialogFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<hlm-dialog [state]=\"_dialogState()\" [aria-label]=\"ariaLabel()\" (stateChanged)=\"onStateChanged($event)\">\n @if (showTrigger()) {\n <yuw-button yuwDialogTriggerButton [color]=\"triggerColor()\" [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwDialogTrigger]\" />\n </yuw-button>\n }\n\n <hlm-dialog-content\n *hlmDialogPortal\n [showCloseButton]=\"false\"\n class=\"flex max-h-[calc(100dvh-2rem)] flex-col\"\n [class]=\"panelClass()\"\n >\n @if (title() || description()) {\n <div hlmDialogHeader>\n @if (title()) {\n <h2 hlmDialogTitle>{{ title() }}</h2>\n }\n @if (description()) {\n <p hlmDialogDescription>{{ description() }}</p>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div hlmDialogFooter>\n <ng-content select=\"[yuwDialogFooter]\" />\n </div>\n }\n\n @if (closeLabel()) {\n <div class=\"absolute inset-e-2 top-1.5\">\n <yuw-button yuwDialogClose variant=\"ghost\" size=\"icon-sm\">\n <ng-icon name=\"lucideX\" />\n <span class=\"sr-only\">{{ closeLabel() }}</span>\n </yuw-button>\n </div>\n }\n </hlm-dialog-content>\n</hlm-dialog>\n", dependencies: [{ kind: "component", type: i1$
|
|
5375
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwDialogComponent, isStandalone: true, selector: "yuw-dialog", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, showTrigger: { classPropertyName: "showTrigger", publicName: "showTrigger", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, triggerColor: { classPropertyName: "triggerColor", publicName: "triggerColor", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null }, triggerVariant: { classPropertyName: "triggerVariant", publicName: "triggerVariant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { classAttribute: "contents" }, providers: [provideIcons({ lucideX })], queries: [{ propertyName: "hasFooter", first: true, predicate: YuwDialogFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<hlm-dialog [state]=\"_dialogState()\" [aria-label]=\"ariaLabel()\" (stateChanged)=\"onStateChanged($event)\">\n @if (showTrigger()) {\n <yuw-button yuwDialogTriggerButton [color]=\"triggerColor()\" [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwDialogTrigger]\" />\n </yuw-button>\n }\n\n <hlm-dialog-content\n *hlmDialogPortal\n [showCloseButton]=\"false\"\n class=\"flex max-h-[calc(100dvh-2rem)] flex-col\"\n [class]=\"panelClass()\"\n >\n @if (title() || description()) {\n <div hlmDialogHeader>\n @if (title()) {\n <h2 hlmDialogTitle>{{ title() }}</h2>\n }\n @if (description()) {\n <p hlmDialogDescription>{{ description() }}</p>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div hlmDialogFooter>\n <ng-content select=\"[yuwDialogFooter]\" />\n </div>\n }\n\n @if (closeLabel()) {\n <div class=\"absolute inset-e-2 top-1.5\">\n <yuw-button yuwDialogClose variant=\"ghost\" size=\"icon-sm\">\n <ng-icon name=\"lucideX\" />\n <span class=\"sr-only\">{{ closeLabel() }}</span>\n </yuw-button>\n </div>\n }\n </hlm-dialog-content>\n</hlm-dialog>\n", dependencies: [{ kind: "component", type: i1$n.HlmDialog, selector: "hlm-dialog", exportAs: ["hlmDialog"] }, { kind: "component", type: i1$n.HlmDialogContent, selector: "hlm-dialog-content", inputs: ["showCloseButton"] }, { kind: "directive", type: i1$n.HlmDialogDescription, selector: "[hlmDialogDescription]" }, { kind: "directive", type: i1$n.HlmDialogFooter, selector: "[hlmDialogFooter],hlm-dialog-footer" }, { kind: "directive", type: i1$n.HlmDialogHeader, selector: "[hlmDialogHeader],hlm-dialog-header" }, { kind: "directive", type: i1$n.HlmDialogPortal, selector: "[hlmDialogPortal]" }, { kind: "directive", type: i1$n.HlmDialogTitle, selector: "[hlmDialogTitle]" }, { kind: "component", type: YuwButtonComponent, selector: "yuw-button", inputs: ["animationDisabled", "ariaLabel", "color", "disabled", "href", "size", "target", "transparent", "type", "class", "variant", "yuwDropdownMenuAlign", "yuwDropdownMenuTrigger"], outputs: ["clicked"] }, { kind: "directive", type: YuwDialogTriggerDirective, selector: "yuw-button[yuwDialogTriggerFor], yuw-button[yuwDialogTriggerButton]" }, { kind: "directive", type: YuwDialogCloseDirective, selector: "yuw-button[yuwDialogClose]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5025
5376
|
}
|
|
5026
5377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwDialogComponent, decorators: [{
|
|
5027
5378
|
type: Component,
|
|
@@ -5039,7 +5390,7 @@ const YuwDialogImports = [YuwDialogComponent, YuwDialogFooterDirective];
|
|
|
5039
5390
|
*/
|
|
5040
5391
|
class YuwAlertDialogTriggerDirective {
|
|
5041
5392
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAlertDialogTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5042
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAlertDialogTriggerDirective, isStandalone: true, selector: "yuw-button[yuwAlertDialogTriggerFor], yuw-button[yuwAlertDialogTriggerButton]", host: { attributes: { "data-slot": "alert-dialog-trigger" } }, hostDirectives: [{ directive: i1$
|
|
5393
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAlertDialogTriggerDirective, isStandalone: true, selector: "yuw-button[yuwAlertDialogTriggerFor], yuw-button[yuwAlertDialogTriggerButton]", host: { attributes: { "data-slot": "alert-dialog-trigger" } }, hostDirectives: [{ directive: i1$o.BrnAlertDialogTrigger, inputs: ["id", "id", "brnAlertDialogTriggerFor", "yuwAlertDialogTriggerFor", "type", "type"] }], ngImport: i0 }); }
|
|
5043
5394
|
}
|
|
5044
5395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAlertDialogTriggerDirective, decorators: [{
|
|
5045
5396
|
type: Directive,
|
|
@@ -5128,7 +5479,7 @@ class YuwAlertDialogComponent {
|
|
|
5128
5479
|
this.open.set(state === 'open');
|
|
5129
5480
|
}
|
|
5130
5481
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAlertDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5131
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwAlertDialogComponent, isStandalone: true, selector: "yuw-alert-dialog", inputs: { cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: true, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: true, transformFunction: null }, confirmVariant: { classPropertyName: "confirmVariant", publicName: "confirmVariant", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, showTrigger: { classPropertyName: "showTrigger", publicName: "showTrigger", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null }, triggerVariant: { classPropertyName: "triggerVariant", publicName: "triggerVariant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", cancelled: "cancelled", confirmed: "confirmed" }, host: { classAttribute: "contents" }, queries: [{ propertyName: "hasMedia", first: true, predicate: YuwAlertDialogMediaDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<hlm-alert-dialog [state]=\"_dialogState()\" (stateChanged)=\"onStateChanged($event)\">\n @if (showTrigger()) {\n <yuw-button yuwAlertDialogTriggerButton [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwAlertDialogTrigger]\" />\n </yuw-button>\n }\n\n <hlm-alert-dialog-content *hlmAlertDialogPortal [size]=\"size()\">\n <div hlmAlertDialogHeader>\n @if (hasMedia()) {\n <div hlmAlertDialogMedia>\n <ng-content select=\"[yuwAlertDialogMedia]\" />\n </div>\n }\n\n <h2 hlmAlertDialogTitle>{{ title() }}</h2>\n\n @if (description()) {\n <p hlmAlertDialogDescription>{{ description() }}</p>\n }\n </div>\n\n <ng-content />\n\n <div hlmAlertDialogFooter>\n <button hlmAlertDialogCancel (click)=\"cancelled.emit()\">{{ cancelLabel() }}</button>\n <button hlmAlertDialogAction [variant]=\"confirmVariant()\" (click)=\"confirmed.emit()\">\n {{ confirmLabel() }}\n </button>\n </div>\n </hlm-alert-dialog-content>\n</hlm-alert-dialog>\n", dependencies: [{ kind: "component", type: i1$
|
|
5482
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwAlertDialogComponent, isStandalone: true, selector: "yuw-alert-dialog", inputs: { cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: true, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: true, transformFunction: null }, confirmVariant: { classPropertyName: "confirmVariant", publicName: "confirmVariant", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, showTrigger: { classPropertyName: "showTrigger", publicName: "showTrigger", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null }, triggerVariant: { classPropertyName: "triggerVariant", publicName: "triggerVariant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", cancelled: "cancelled", confirmed: "confirmed" }, host: { classAttribute: "contents" }, queries: [{ propertyName: "hasMedia", first: true, predicate: YuwAlertDialogMediaDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<hlm-alert-dialog [state]=\"_dialogState()\" (stateChanged)=\"onStateChanged($event)\">\n @if (showTrigger()) {\n <yuw-button yuwAlertDialogTriggerButton [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwAlertDialogTrigger]\" />\n </yuw-button>\n }\n\n <hlm-alert-dialog-content *hlmAlertDialogPortal [size]=\"size()\">\n <div hlmAlertDialogHeader>\n @if (hasMedia()) {\n <div hlmAlertDialogMedia>\n <ng-content select=\"[yuwAlertDialogMedia]\" />\n </div>\n }\n\n <h2 hlmAlertDialogTitle>{{ title() }}</h2>\n\n @if (description()) {\n <p hlmAlertDialogDescription>{{ description() }}</p>\n }\n </div>\n\n <ng-content />\n\n <div hlmAlertDialogFooter>\n <button hlmAlertDialogCancel (click)=\"cancelled.emit()\">{{ cancelLabel() }}</button>\n <button hlmAlertDialogAction [variant]=\"confirmVariant()\" (click)=\"confirmed.emit()\">\n {{ confirmLabel() }}\n </button>\n </div>\n </hlm-alert-dialog-content>\n</hlm-alert-dialog>\n", dependencies: [{ kind: "component", type: i1$p.HlmAlertDialog, selector: "hlm-alert-dialog", exportAs: ["hlmAlertDialog"] }, { kind: "directive", type: i1$p.HlmAlertDialogAction, selector: "button[hlmAlertDialogAction]", inputs: ["type"] }, { kind: "directive", type: i1$p.HlmAlertDialogCancel, selector: "button[hlmAlertDialogCancel]", inputs: ["type"] }, { kind: "directive", type: i1$p.HlmAlertDialogContent, selector: "[hlmAlertDialogContent],hlm-alert-dialog-content", inputs: ["size"] }, { kind: "directive", type: i1$p.HlmAlertDialogDescription, selector: "[hlmAlertDialogDescription]" }, { kind: "directive", type: i1$p.HlmAlertDialogFooter, selector: "[hlmAlertDialogFooter],hlm-alert-dialog-footer" }, { kind: "directive", type: i1$p.HlmAlertDialogHeader, selector: "[hlmAlertDialogHeader],hlm-alert-dialog-header" }, { kind: "directive", type: i1$p.HlmAlertDialogMedia, selector: "[hlmAlertDialogMedia],hlm-alert-dialog-media" }, { kind: "directive", type: i1$p.HlmAlertDialogPortal, selector: "[hlmAlertDialogPortal]" }, { kind: "directive", type: i1$p.HlmAlertDialogTitle, selector: "[hlmAlertDialogTitle]" }, { kind: "component", type: YuwButtonComponent, selector: "yuw-button", inputs: ["animationDisabled", "ariaLabel", "color", "disabled", "href", "size", "target", "transparent", "type", "class", "variant", "yuwDropdownMenuAlign", "yuwDropdownMenuTrigger"], outputs: ["clicked"] }, { kind: "directive", type: YuwAlertDialogTriggerDirective, selector: "yuw-button[yuwAlertDialogTriggerFor], yuw-button[yuwAlertDialogTriggerButton]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5132
5483
|
}
|
|
5133
5484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAlertDialogComponent, decorators: [{
|
|
5134
5485
|
type: Component,
|
|
@@ -5267,7 +5618,7 @@ class YuwTabsComponent {
|
|
|
5267
5618
|
this.activeTab.set(tabId);
|
|
5268
5619
|
}
|
|
5269
5620
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5270
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwTabsComponent, isStandalone: true, selector: "yuw-tabs", inputs: { activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, activeTab: { classPropertyName: "activeTab", publicName: "activeTab", isSignal: true, isRequired: true, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: true, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeTab: "activeTabChange" }, host: { classAttribute: "contents" }, queries: [{ propertyName: "_contents", predicate: YuwTabContentDirective, isSignal: true }, { propertyName: "panels", predicate: YuwTabPanelDirective, isSignal: true }], ngImport: i0, template: "<hlm-tabs\n [tab]=\"activeTab()\"\n [orientation]=\"orientation()\"\n [activationMode]=\"activationMode()\"\n (tabActivated)=\"onTabActivated($event)\"\n>\n <hlm-tabs-list [variant]=\"variant()\" [class]=\"_listClass()\">\n @for (tab of _resolved(); track tab.id) {\n <button [hlmTabsTrigger]=\"tab.id\" [disabled]=\"tab.disabled ?? false\">\n @if (tab.template) {\n <ng-container [ngTemplateOutlet]=\"tab.template\" />\n } @else {\n {{ tab.label }}\n }\n </button>\n }\n </hlm-tabs-list>\n\n @for (panel of panels(); track panel.tabId()) {\n <div [hlmTabsContent]=\"panel.tabId()\">\n <ng-template hlmTabsContentLazy>\n <ng-container [ngTemplateOutlet]=\"panel.templateRef\" />\n </ng-template>\n </div>\n }\n</hlm-tabs>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$
|
|
5621
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwTabsComponent, isStandalone: true, selector: "yuw-tabs", inputs: { activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, activeTab: { classPropertyName: "activeTab", publicName: "activeTab", isSignal: true, isRequired: true, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: true, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeTab: "activeTabChange" }, host: { classAttribute: "contents" }, queries: [{ propertyName: "_contents", predicate: YuwTabContentDirective, isSignal: true }, { propertyName: "panels", predicate: YuwTabPanelDirective, isSignal: true }], ngImport: i0, template: "<hlm-tabs\n [tab]=\"activeTab()\"\n [orientation]=\"orientation()\"\n [activationMode]=\"activationMode()\"\n (tabActivated)=\"onTabActivated($event)\"\n>\n <hlm-tabs-list [variant]=\"variant()\" [class]=\"_listClass()\">\n @for (tab of _resolved(); track tab.id) {\n <button [hlmTabsTrigger]=\"tab.id\" [disabled]=\"tab.disabled ?? false\">\n @if (tab.template) {\n <ng-container [ngTemplateOutlet]=\"tab.template\" />\n } @else {\n {{ tab.label }}\n }\n </button>\n }\n </hlm-tabs-list>\n\n @for (panel of panels(); track panel.tabId()) {\n <div [hlmTabsContent]=\"panel.tabId()\">\n <ng-template hlmTabsContentLazy>\n <ng-container [ngTemplateOutlet]=\"panel.templateRef\" />\n </ng-template>\n </div>\n }\n</hlm-tabs>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$q.HlmTabs, selector: "[hlmTabs],hlm-tabs", inputs: ["tab"] }, { kind: "directive", type: i1$q.HlmTabsList, selector: "[hlmTabsList],hlm-tabs-list", inputs: ["variant"] }, { kind: "directive", type: i1$q.HlmTabsTrigger, selector: "[hlmTabsTrigger]", inputs: ["hlmTabsTrigger"] }, { kind: "directive", type: i1$q.HlmTabsContent, selector: "[hlmTabsContent]", inputs: ["hlmTabsContent"] }, { kind: "directive", type: i1$q.HlmTabsContentLazy, selector: "ng-template[hlmTabsContentLazy]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5271
5622
|
}
|
|
5272
5623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwTabsComponent, decorators: [{
|
|
5273
5624
|
type: Component,
|
|
@@ -5586,7 +5937,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5586
5937
|
*/
|
|
5587
5938
|
class YuwAttachmentDirective {
|
|
5588
5939
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5589
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentDirective, isStandalone: true, selector: "[yuwAttachment], yuw-attachment", hostDirectives: [{ directive: i1$
|
|
5940
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentDirective, isStandalone: true, selector: "[yuwAttachment], yuw-attachment", hostDirectives: [{ directive: i1$r.HlmAttachment, inputs: ["state", "state", "size", "size", "orientation", "orientation"] }], ngImport: i0 }); }
|
|
5590
5941
|
}
|
|
5591
5942
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentDirective, decorators: [{
|
|
5592
5943
|
type: Directive,
|
|
@@ -5598,7 +5949,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5598
5949
|
/** Scrollable, snapping row that lays out several attachment cards. */
|
|
5599
5950
|
class YuwAttachmentGroupDirective {
|
|
5600
5951
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5601
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentGroupDirective, isStandalone: true, selector: "[yuwAttachmentGroup], yuw-attachment-group", hostDirectives: [{ directive: i1$
|
|
5952
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentGroupDirective, isStandalone: true, selector: "[yuwAttachmentGroup], yuw-attachment-group", hostDirectives: [{ directive: i1$r.HlmAttachmentGroup }], ngImport: i0 }); }
|
|
5602
5953
|
}
|
|
5603
5954
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentGroupDirective, decorators: [{
|
|
5604
5955
|
type: Directive,
|
|
@@ -5610,7 +5961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5610
5961
|
/** Leading media slot of an attachment, for a file-type icon or an image preview. Supports `variant` (`'icon'`, `'image'`). */
|
|
5611
5962
|
class YuwAttachmentMediaDirective {
|
|
5612
5963
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentMediaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5613
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentMediaDirective, isStandalone: true, selector: "[yuwAttachmentMedia], yuw-attachment-media", hostDirectives: [{ directive: i1$
|
|
5964
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentMediaDirective, isStandalone: true, selector: "[yuwAttachmentMedia], yuw-attachment-media", hostDirectives: [{ directive: i1$r.HlmAttachmentMedia, inputs: ["variant", "variant"] }], ngImport: i0 }); }
|
|
5614
5965
|
}
|
|
5615
5966
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentMediaDirective, decorators: [{
|
|
5616
5967
|
type: Directive,
|
|
@@ -5622,7 +5973,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5622
5973
|
/** Text content container of an attachment, holding its title and description. */
|
|
5623
5974
|
class YuwAttachmentContentDirective {
|
|
5624
5975
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5625
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentContentDirective, isStandalone: true, selector: "[yuwAttachmentContent], yuw-attachment-content", hostDirectives: [{ directive: i1$
|
|
5976
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentContentDirective, isStandalone: true, selector: "[yuwAttachmentContent], yuw-attachment-content", hostDirectives: [{ directive: i1$r.HlmAttachmentContent }], ngImport: i0 }); }
|
|
5626
5977
|
}
|
|
5627
5978
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentContentDirective, decorators: [{
|
|
5628
5979
|
type: Directive,
|
|
@@ -5634,7 +5985,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5634
5985
|
/** File name of an attachment. Truncates and shimmers while the attachment is uploading or processing. */
|
|
5635
5986
|
class YuwAttachmentTitleDirective {
|
|
5636
5987
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5637
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentTitleDirective, isStandalone: true, selector: "[yuwAttachmentTitle], yuw-attachment-title", hostDirectives: [{ directive: i1$
|
|
5988
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentTitleDirective, isStandalone: true, selector: "[yuwAttachmentTitle], yuw-attachment-title", hostDirectives: [{ directive: i1$r.HlmAttachmentTitle }], ngImport: i0 }); }
|
|
5638
5989
|
}
|
|
5639
5990
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentTitleDirective, decorators: [{
|
|
5640
5991
|
type: Directive,
|
|
@@ -5646,7 +5997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5646
5997
|
/** Secondary line of an attachment, for file size, progress, or an error message. */
|
|
5647
5998
|
class YuwAttachmentDescriptionDirective {
|
|
5648
5999
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5649
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentDescriptionDirective, isStandalone: true, selector: "[yuwAttachmentDescription], yuw-attachment-description", hostDirectives: [{ directive: i1$
|
|
6000
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentDescriptionDirective, isStandalone: true, selector: "[yuwAttachmentDescription], yuw-attachment-description", hostDirectives: [{ directive: i1$r.HlmAttachmentDescription }], ngImport: i0 }); }
|
|
5650
6001
|
}
|
|
5651
6002
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentDescriptionDirective, decorators: [{
|
|
5652
6003
|
type: Directive,
|
|
@@ -5658,7 +6009,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5658
6009
|
/** Trailing container for an attachment's action buttons. */
|
|
5659
6010
|
class YuwAttachmentActionsDirective {
|
|
5660
6011
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5661
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentActionsDirective, isStandalone: true, selector: "[yuwAttachmentActions], yuw-attachment-actions", hostDirectives: [{ directive: i1$
|
|
6012
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentActionsDirective, isStandalone: true, selector: "[yuwAttachmentActions], yuw-attachment-actions", hostDirectives: [{ directive: i1$r.HlmAttachmentActions }], ngImport: i0 }); }
|
|
5662
6013
|
}
|
|
5663
6014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentActionsDirective, decorators: [{
|
|
5664
6015
|
type: Directive,
|
|
@@ -5693,7 +6044,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5693
6044
|
/** Turns the whole attachment card into a single clickable target, layered under its actions. */
|
|
5694
6045
|
class YuwAttachmentTriggerDirective {
|
|
5695
6046
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5696
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentTriggerDirective, isStandalone: true, selector: "button[yuwAttachmentTrigger], a[yuwAttachmentTrigger]", hostDirectives: [{ directive: i1$
|
|
6047
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwAttachmentTriggerDirective, isStandalone: true, selector: "button[yuwAttachmentTrigger], a[yuwAttachmentTrigger]", hostDirectives: [{ directive: i1$r.HlmAttachmentTrigger, inputs: ["type", "type"] }], ngImport: i0 }); }
|
|
5697
6048
|
}
|
|
5698
6049
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwAttachmentTriggerDirective, decorators: [{
|
|
5699
6050
|
type: Directive,
|
|
@@ -5962,7 +6313,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5962
6313
|
*/
|
|
5963
6314
|
class YuwSidebarWrapperDirective {
|
|
5964
6315
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5965
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarWrapperDirective, isStandalone: true, selector: "[yuwSidebarWrapper], yuw-sidebar-wrapper", providers: [provideHlmSidebarConfig({ sidebarWidthIcon: YUW_SIDEBAR_RAIL_WIDTH })], hostDirectives: [{ directive: i1$
|
|
6316
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarWrapperDirective, isStandalone: true, selector: "[yuwSidebarWrapper], yuw-sidebar-wrapper", providers: [provideHlmSidebarConfig({ sidebarWidthIcon: YUW_SIDEBAR_RAIL_WIDTH })], hostDirectives: [{ directive: i1$s.HlmSidebarWrapper, inputs: ["sidebarWidth", "sidebarWidth", "sidebarWidthIcon", "sidebarWidthIcon"] }], ngImport: i0 }); }
|
|
5966
6317
|
}
|
|
5967
6318
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarWrapperDirective, decorators: [{
|
|
5968
6319
|
type: Directive,
|
|
@@ -5975,7 +6326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
5975
6326
|
/** Top area of the sidebar, above the scrollable content. */
|
|
5976
6327
|
class YuwSidebarHeaderDirective {
|
|
5977
6328
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5978
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarHeaderDirective, isStandalone: true, selector: "[yuwSidebarHeader], yuw-sidebar-header", hostDirectives: [{ directive: i1$
|
|
6329
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarHeaderDirective, isStandalone: true, selector: "[yuwSidebarHeader], yuw-sidebar-header", hostDirectives: [{ directive: i1$s.HlmSidebarHeader }], ngImport: i0 }); }
|
|
5979
6330
|
}
|
|
5980
6331
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarHeaderDirective, decorators: [{
|
|
5981
6332
|
type: Directive,
|
|
@@ -6012,7 +6363,7 @@ class YuwSidebarContentDirective {
|
|
|
6012
6363
|
classes(() => yuwSidebarContentClass);
|
|
6013
6364
|
}
|
|
6014
6365
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6015
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarContentDirective, isStandalone: true, selector: "[yuwSidebarContent], yuw-sidebar-content", hostDirectives: [{ directive: i1$
|
|
6366
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarContentDirective, isStandalone: true, selector: "[yuwSidebarContent], yuw-sidebar-content", hostDirectives: [{ directive: i1$s.HlmSidebarContent }], ngImport: i0 }); }
|
|
6016
6367
|
}
|
|
6017
6368
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarContentDirective, decorators: [{
|
|
6018
6369
|
type: Directive,
|
|
@@ -6027,7 +6378,7 @@ class YuwSidebarFooterDirective {
|
|
|
6027
6378
|
classes(() => yuwSidebarFooterClass);
|
|
6028
6379
|
}
|
|
6029
6380
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6030
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarFooterDirective, isStandalone: true, selector: "[yuwSidebarFooter], yuw-sidebar-footer", hostDirectives: [{ directive: i1$
|
|
6381
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarFooterDirective, isStandalone: true, selector: "[yuwSidebarFooter], yuw-sidebar-footer", hostDirectives: [{ directive: i1$s.HlmSidebarFooter }], ngImport: i0 }); }
|
|
6031
6382
|
}
|
|
6032
6383
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarFooterDirective, decorators: [{
|
|
6033
6384
|
type: Directive,
|
|
@@ -6050,7 +6401,7 @@ class YuwSidebarGroupDirective {
|
|
|
6050
6401
|
classes(() => yuwSidebarGroupClass);
|
|
6051
6402
|
}
|
|
6052
6403
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6053
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarGroupDirective, isStandalone: true, selector: "[yuwSidebarGroup], yuw-sidebar-group", hostDirectives: [{ directive: i1$
|
|
6404
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarGroupDirective, isStandalone: true, selector: "[yuwSidebarGroup], yuw-sidebar-group", hostDirectives: [{ directive: i1$s.HlmSidebarGroup }], ngImport: i0 }); }
|
|
6054
6405
|
}
|
|
6055
6406
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarGroupDirective, decorators: [{
|
|
6056
6407
|
type: Directive,
|
|
@@ -6073,7 +6424,7 @@ class YuwSidebarGroupLabelDirective {
|
|
|
6073
6424
|
classes(() => yuwSidebarGroupLabelClass);
|
|
6074
6425
|
}
|
|
6075
6426
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarGroupLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6076
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarGroupLabelDirective, isStandalone: true, selector: "div[yuwSidebarGroupLabel], button[yuwSidebarGroupLabel]", hostDirectives: [{ directive: i1$
|
|
6427
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarGroupLabelDirective, isStandalone: true, selector: "div[yuwSidebarGroupLabel], button[yuwSidebarGroupLabel]", hostDirectives: [{ directive: i1$s.HlmSidebarGroupLabel }], ngImport: i0 }); }
|
|
6077
6428
|
}
|
|
6078
6429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarGroupLabelDirective, decorators: [{
|
|
6079
6430
|
type: Directive,
|
|
@@ -6085,7 +6436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6085
6436
|
/** Body of a sidebar group, wrapping its menu. */
|
|
6086
6437
|
class YuwSidebarGroupContentDirective {
|
|
6087
6438
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarGroupContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6088
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarGroupContentDirective, isStandalone: true, selector: "div[yuwSidebarGroupContent]", hostDirectives: [{ directive: i1$
|
|
6439
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarGroupContentDirective, isStandalone: true, selector: "div[yuwSidebarGroupContent]", hostDirectives: [{ directive: i1$s.HlmSidebarGroupContent }], ngImport: i0 }); }
|
|
6089
6440
|
}
|
|
6090
6441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarGroupContentDirective, decorators: [{
|
|
6091
6442
|
type: Directive,
|
|
@@ -6097,7 +6448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6097
6448
|
/** Navigation list of a sidebar group. Apply to a `<ul>`. */
|
|
6098
6449
|
class YuwSidebarMenuDirective {
|
|
6099
6450
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6100
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuDirective, isStandalone: true, selector: "ul[yuwSidebarMenu]", hostDirectives: [{ directive: i1$
|
|
6451
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuDirective, isStandalone: true, selector: "ul[yuwSidebarMenu]", hostDirectives: [{ directive: i1$s.HlmSidebarMenu }], ngImport: i0 }); }
|
|
6101
6452
|
}
|
|
6102
6453
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuDirective, decorators: [{
|
|
6103
6454
|
type: Directive,
|
|
@@ -6150,7 +6501,7 @@ class YuwSidebarMenuItemDirective {
|
|
|
6150
6501
|
classes(() => yuwSidebarMenuItemClass);
|
|
6151
6502
|
}
|
|
6152
6503
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6153
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuItemDirective, isStandalone: true, selector: "li[yuwSidebarMenuItem]", hostDirectives: [{ directive: i1$
|
|
6504
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuItemDirective, isStandalone: true, selector: "li[yuwSidebarMenuItem]", hostDirectives: [{ directive: i1$s.HlmSidebarMenuItem }], ngImport: i0 }); }
|
|
6154
6505
|
}
|
|
6155
6506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuItemDirective, decorators: [{
|
|
6156
6507
|
type: Directive,
|
|
@@ -6221,7 +6572,7 @@ class YuwSidebarMenuButtonDirective {
|
|
|
6221
6572
|
classes(() => yuwSidebarMenuButtonClass);
|
|
6222
6573
|
}
|
|
6223
6574
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6224
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuButtonDirective, isStandalone: true, selector: "button[yuwSidebarMenuButton], a[yuwSidebarMenuButton]", hostDirectives: [{ directive: i1$
|
|
6575
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuButtonDirective, isStandalone: true, selector: "button[yuwSidebarMenuButton], a[yuwSidebarMenuButton]", hostDirectives: [{ directive: i1$s.HlmSidebarMenuButton, inputs: ["variant", "variant", "size", "size", "isActive", "isActive", "closeMobileSidebarOnClick", "closeMobileSidebarOnClick"] }], ngImport: i0 }); }
|
|
6225
6576
|
}
|
|
6226
6577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuButtonDirective, decorators: [{
|
|
6227
6578
|
type: Directive,
|
|
@@ -6279,7 +6630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6279
6630
|
/** Trailing count or status badge of a sidebar menu item. */
|
|
6280
6631
|
class YuwSidebarMenuBadgeDirective {
|
|
6281
6632
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuBadgeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6282
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuBadgeDirective, isStandalone: true, selector: "[yuwSidebarMenuBadge], yuw-sidebar-menu-badge", hostDirectives: [{ directive: i1$
|
|
6633
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuBadgeDirective, isStandalone: true, selector: "[yuwSidebarMenuBadge], yuw-sidebar-menu-badge", hostDirectives: [{ directive: i1$s.HlmSidebarMenuBadge }], ngImport: i0 }); }
|
|
6283
6634
|
}
|
|
6284
6635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuBadgeDirective, decorators: [{
|
|
6285
6636
|
type: Directive,
|
|
@@ -6291,7 +6642,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6291
6642
|
/** Nested submenu list of a sidebar menu item. Apply to a `<ul>`. */
|
|
6292
6643
|
class YuwSidebarMenuSubDirective {
|
|
6293
6644
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuSubDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6294
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuSubDirective, isStandalone: true, selector: "ul[yuwSidebarMenuSub]", hostDirectives: [{ directive: i1$
|
|
6645
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuSubDirective, isStandalone: true, selector: "ul[yuwSidebarMenuSub]", hostDirectives: [{ directive: i1$s.HlmSidebarMenuSub }], ngImport: i0 }); }
|
|
6295
6646
|
}
|
|
6296
6647
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuSubDirective, decorators: [{
|
|
6297
6648
|
type: Directive,
|
|
@@ -6303,7 +6654,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6303
6654
|
/** A single entry of a sidebar submenu. Apply to an `<li>`. */
|
|
6304
6655
|
class YuwSidebarMenuSubItemDirective {
|
|
6305
6656
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuSubItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6306
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuSubItemDirective, isStandalone: true, selector: "li[yuwSidebarMenuSubItem]", hostDirectives: [{ directive: i1$
|
|
6657
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuSubItemDirective, isStandalone: true, selector: "li[yuwSidebarMenuSubItem]", hostDirectives: [{ directive: i1$s.HlmSidebarMenuSubItem }], ngImport: i0 }); }
|
|
6307
6658
|
}
|
|
6308
6659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuSubItemDirective, decorators: [{
|
|
6309
6660
|
type: Directive,
|
|
@@ -6326,7 +6677,7 @@ class YuwSidebarMenuSubButtonDirective {
|
|
|
6326
6677
|
classes(() => yuwSidebarMenuSubButtonClass);
|
|
6327
6678
|
}
|
|
6328
6679
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuSubButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6329
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuSubButtonDirective, isStandalone: true, selector: "a[yuwSidebarMenuSubButton], button[yuwSidebarMenuSubButton]", hostDirectives: [{ directive: i1$
|
|
6680
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarMenuSubButtonDirective, isStandalone: true, selector: "a[yuwSidebarMenuSubButton], button[yuwSidebarMenuSubButton]", hostDirectives: [{ directive: i1$s.HlmSidebarMenuSubButton, inputs: ["size", "size", "isActive", "isActive", "closeMobileSidebarOnClick", "closeMobileSidebarOnClick"] }], ngImport: i0 }); }
|
|
6330
6681
|
}
|
|
6331
6682
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarMenuSubButtonDirective, decorators: [{
|
|
6332
6683
|
type: Directive,
|
|
@@ -6338,7 +6689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6338
6689
|
/** Divider between sidebar sections. */
|
|
6339
6690
|
class YuwSidebarSeparatorDirective {
|
|
6340
6691
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6341
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarSeparatorDirective, isStandalone: true, selector: "[yuwSidebarSeparator], yuw-sidebar-separator", hostDirectives: [{ directive: i1$
|
|
6692
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarSeparatorDirective, isStandalone: true, selector: "[yuwSidebarSeparator], yuw-sidebar-separator", hostDirectives: [{ directive: i1$s.HlmSidebarSeparator }], ngImport: i0 }); }
|
|
6342
6693
|
}
|
|
6343
6694
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarSeparatorDirective, decorators: [{
|
|
6344
6695
|
type: Directive,
|
|
@@ -6361,7 +6712,7 @@ class YuwSidebarRailDirective {
|
|
|
6361
6712
|
this.label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
6362
6713
|
}
|
|
6363
6714
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarRailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6364
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: YuwSidebarRailDirective, isStandalone: true, selector: "button[yuwSidebarRail]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.aria-label": "label()" } }, hostDirectives: [{ directive: i1$
|
|
6715
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: YuwSidebarRailDirective, isStandalone: true, selector: "button[yuwSidebarRail]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.aria-label": "label()" } }, hostDirectives: [{ directive: i1$s.HlmSidebarRail }], ngImport: i0 }); }
|
|
6365
6716
|
}
|
|
6366
6717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarRailDirective, decorators: [{
|
|
6367
6718
|
type: Directive,
|
|
@@ -6376,7 +6727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
6376
6727
|
/** Main content region beside the sidebar. Apply to a `<main>`. */
|
|
6377
6728
|
class YuwSidebarInsetDirective {
|
|
6378
6729
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarInsetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6379
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarInsetDirective, isStandalone: true, selector: "main[yuwSidebarInset]", hostDirectives: [{ directive: i1$
|
|
6730
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: YuwSidebarInsetDirective, isStandalone: true, selector: "main[yuwSidebarInset]", hostDirectives: [{ directive: i1$s.HlmSidebarInset }], ngImport: i0 }); }
|
|
6380
6731
|
}
|
|
6381
6732
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwSidebarInsetDirective, decorators: [{
|
|
6382
6733
|
type: Directive,
|
|
@@ -6973,7 +7324,7 @@ class YuwCommandComponent {
|
|
|
6973
7324
|
this.commandSelected.emit(item);
|
|
6974
7325
|
}
|
|
6975
7326
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCommandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6976
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwCommandComponent, isStandalone: true, selector: "yuw-command", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: true, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "searchChange", commandSelected: "commandSelected" }, host: { properties: { "attr.data-yuw-color": "color()" }, classAttribute: "contents" }, ngImport: i0, template: "<div hlmCommand [class]=\"userClass()\" [disabled]=\"disabled()\" [filter]=\"filter()\" [(search)]=\"search\">\n <hlm-command-input [placeholder]=\"searchPlaceholder() ?? ''\" />\n\n <div hlmCommandList>\n @for (group of _groups(); track group.id; let first = $first) {\n @if (!first) {\n <div hlmCommandSeparator></div>\n }\n\n <div hlmCommandGroup>\n @if (group.label; as label) {\n <span hlmCommandGroupLabel>{{ label }}</span>\n }\n\n @for (entry of group.items; track entry.item.id) {\n <button\n hlmCommandItem\n [value]=\"entry.searchValue\"\n [disabled]=\"entry.item.disabled ?? false\"\n (selected)=\"onSelected(entry.item)\"\n >\n @if (entry.item.icon; as icon) {\n <ng-icon [name]=\"icon\" aria-hidden=\"true\" />\n }\n {{ entry.item.label }}\n @if (entry.item.shortcut; as shortcut) {\n <span hlmCommandShortcut>{{ shortcut }}</span>\n }\n </button>\n }\n </div>\n }\n\n <div hlmCommandEmpty *hlmCommandEmptyState>{{ emptyText() ?? '' }}</div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$
|
|
7327
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwCommandComponent, isStandalone: true, selector: "yuw-command", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: true, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "searchChange", commandSelected: "commandSelected" }, host: { properties: { "attr.data-yuw-color": "color()" }, classAttribute: "contents" }, ngImport: i0, template: "<div hlmCommand [class]=\"userClass()\" [disabled]=\"disabled()\" [filter]=\"filter()\" [(search)]=\"search\">\n <hlm-command-input [placeholder]=\"searchPlaceholder() ?? ''\" />\n\n <div hlmCommandList>\n @for (group of _groups(); track group.id; let first = $first) {\n @if (!first) {\n <div hlmCommandSeparator></div>\n }\n\n <div hlmCommandGroup>\n @if (group.label; as label) {\n <span hlmCommandGroupLabel>{{ label }}</span>\n }\n\n @for (entry of group.items; track entry.item.id) {\n <button\n hlmCommandItem\n [value]=\"entry.searchValue\"\n [disabled]=\"entry.item.disabled ?? false\"\n (selected)=\"onSelected(entry.item)\"\n >\n @if (entry.item.icon; as icon) {\n <ng-icon [name]=\"icon\" aria-hidden=\"true\" />\n }\n {{ entry.item.label }}\n @if (entry.item.shortcut; as shortcut) {\n <span hlmCommandShortcut>{{ shortcut }}</span>\n }\n </button>\n }\n </div>\n }\n\n <div hlmCommandEmpty *hlmCommandEmptyState>{{ emptyText() ?? '' }}</div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$t.HlmCommand, selector: "[hlmCommand],hlm-command" }, { kind: "directive", type: i1$t.HlmCommandEmpty, selector: "[hlmCommandEmpty]" }, { kind: "directive", type: i1$t.HlmCommandEmptyState, selector: "[hlmCommandEmptyState]" }, { kind: "directive", type: i1$t.HlmCommandGroup, selector: "[hlmCommandGroup],hlm-command-group" }, { kind: "directive", type: i1$t.HlmCommandGroupLabel, selector: "[hlmCommandGroupLabel],hlm-command-group-label" }, { kind: "component", type: i1$t.HlmCommandInput, selector: "hlm-command-input", inputs: ["inputId", "placeholder"] }, { kind: "directive", type: i1$t.HlmCommandItem, selector: "button[hlmCommandItem],button[hlm-command-item]" }, { kind: "directive", type: i1$t.HlmCommandList, selector: "[hlmCommandList],hlm-command-list" }, { kind: "directive", type: i1$t.HlmCommandSeparator, selector: "[hlmCommandSeparator],hlm-command-separator" }, { kind: "directive", type: i1$t.HlmCommandShortcut, selector: "[hlmCommandShortcut],hlm-command-shortcut" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6977
7328
|
}
|
|
6978
7329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwCommandComponent, decorators: [{
|
|
6979
7330
|
type: Component,
|
|
@@ -7875,6 +8226,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
7875
8226
|
args: [{ selector: 'yuws-card-grid-item', changeDetection: ChangeDetectionStrategy.OnPush, imports: [YuwSkeletonDirective], host: { class: 'relative block' }, template: "<div class=\"h-full\" [class.invisible]=\"pending()\">\n <ng-content />\n</div>\n\n@if (pending()) {\n <span yuwSkeleton class=\"absolute inset-0 rounded-xl\"></span>\n}\n" }]
|
|
7876
8227
|
}], propDecorators: { pending: [{ type: i0.Input, args: [{ isSignal: true, alias: "pending", required: false }] }] } });
|
|
7877
8228
|
|
|
8229
|
+
const ISO_DAYS = /^(\d{4})-(\d{2})-(\d{2})(?:\/(\d{4})-(\d{2})-(\d{2}))?$/;
|
|
8230
|
+
/**
|
|
8231
|
+
* Value stored in the selection for a `date` or `dateRange` group: the preset id when the dates came from a preset,
|
|
8232
|
+
* so a saved set or a restored selection holding "This week" keeps meaning the current week, and the local days
|
|
8233
|
+
* otherwise, `2026-03-01` or `2026-03-01/2026-03-31`.
|
|
8234
|
+
*/
|
|
8235
|
+
function yuwsDateFilterValue(value, presetId) {
|
|
8236
|
+
if (presetId !== undefined) {
|
|
8237
|
+
return presetId;
|
|
8238
|
+
}
|
|
8239
|
+
if (value === null) {
|
|
8240
|
+
return undefined;
|
|
8241
|
+
}
|
|
8242
|
+
return Array.isArray(value) ? `${isoDay(value[0])}/${isoDay(value[1])}` : isoDay(value);
|
|
8243
|
+
}
|
|
8244
|
+
/**
|
|
8245
|
+
* Days a `date` or `dateRange` filter value covers, with `presets` being the group's and `today` the day a preset is
|
|
8246
|
+
* resolved against. `undefined` when the value is neither days nor the id of one of `presets`.
|
|
8247
|
+
*
|
|
8248
|
+
* Usage:
|
|
8249
|
+
* ```ts
|
|
8250
|
+
* const date = yuwsResolveDateFilter(selection['createdAt'], presets);
|
|
8251
|
+
* const params = date ? { from: date.range[0], to: date.range[1] } : {};
|
|
8252
|
+
* ```
|
|
8253
|
+
*/
|
|
8254
|
+
function yuwsResolveDateFilter(value, presets = [], today = new Date()) {
|
|
8255
|
+
if (typeof value !== 'string') {
|
|
8256
|
+
return undefined;
|
|
8257
|
+
}
|
|
8258
|
+
const preset = presets.find((candidate) => candidate.id === value);
|
|
8259
|
+
if (preset) {
|
|
8260
|
+
return { range: preset.range(today), presetId: preset.id };
|
|
8261
|
+
}
|
|
8262
|
+
const match = ISO_DAYS.exec(value);
|
|
8263
|
+
if (!match) {
|
|
8264
|
+
return undefined;
|
|
8265
|
+
}
|
|
8266
|
+
const start = new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
|
|
8267
|
+
const end = match[4] ? new Date(Number(match[4]), Number(match[5]) - 1, Number(match[6])) : start;
|
|
8268
|
+
return { range: [start, end], presetId: undefined };
|
|
8269
|
+
}
|
|
8270
|
+
function isoDay(date) {
|
|
8271
|
+
return [date.getFullYear(), date.getMonth() + 1, date.getDate()]
|
|
8272
|
+
.map((part) => String(part).padStart(2, '0'))
|
|
8273
|
+
.join('-');
|
|
8274
|
+
}
|
|
8275
|
+
|
|
7878
8276
|
/**
|
|
7879
8277
|
* Replaces the combobox of one active filter inside `<yuws-list-toolbar>` with projected markup; the
|
|
7880
8278
|
* remove button stays after it. Apply it to an `<ng-template>` and pass the id of the group it
|
|
@@ -8344,12 +8742,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
8344
8742
|
* lifted above the remove button, which comes later in the DOM and would otherwise paint over the right side of its
|
|
8345
8743
|
* focus ring.
|
|
8346
8744
|
*/
|
|
8347
|
-
const WELD_CLASS =
|
|
8745
|
+
const WELD_CLASS = [
|
|
8746
|
+
'[&_[data-slot=combobox-trigger]>button]:rounded-e-none [&_[data-slot=combobox-trigger]>button]:border-e-0 [&_[data-slot=combobox-trigger]>button]:focus-visible:relative [&_[data-slot=combobox-trigger]>button]:focus-visible:z-10',
|
|
8747
|
+
'[&_[data-slot=popover-trigger]>button]:rounded-e-none [&_[data-slot=popover-trigger]>button]:border-e-0 [&_[data-slot=popover-trigger]>button]:focus-visible:relative [&_[data-slot=popover-trigger]>button]:focus-visible:z-10',
|
|
8748
|
+
].join(' ');
|
|
8749
|
+
const DATE_MODES = {
|
|
8750
|
+
date: 'single',
|
|
8751
|
+
dateRange: 'range',
|
|
8752
|
+
};
|
|
8348
8753
|
/**
|
|
8349
8754
|
* Filter row of `yuws-list-toolbar`: the saved-sets star, the add-filter button and the active filters
|
|
8350
8755
|
* in a horizontally scrolling strip, which a mouse also scrolls by wheel or drag (`yuwMouseScrollX`).
|
|
8351
8756
|
*
|
|
8352
|
-
* Every active filter is a `yuw-combobox`
|
|
8757
|
+
* Every active filter is a `yuw-combobox` (a `yuw-datepicker` for `date` and `dateRange` groups, with the group's
|
|
8758
|
+
* presets; see `yuwsDateFilterValue()` for what it stores) whose `secondary` trigger reads "Group values", welded to a
|
|
8353
8759
|
* `secondary` `yuw-button` that removes the filter, value included, so both read as one control. A click opens the option list directly and
|
|
8354
8760
|
* every pick applies at once. The add-filter button is a multiple combobox listing every group, the
|
|
8355
8761
|
* active ones checked: checking adds a filter and opens its list, unchecking removes it, and while any filter is active
|
|
@@ -8414,6 +8820,19 @@ class YuwsListToolbarFiltersComponent {
|
|
|
8414
8820
|
(value) => this.onValueChange(group.id, value),
|
|
8415
8821
|
])), ...(ngDevMode ? [{ debugName: "changers" }] : /* istanbul ignore next */ []));
|
|
8416
8822
|
this.contentTemplates = computed(() => Object.fromEntries(this.contents().map((content) => [content.groupId(), content.templateRef])), ...(ngDevMode ? [{ debugName: "contentTemplates" }] : /* istanbul ignore next */ []));
|
|
8823
|
+
this.dates = computed(() => {
|
|
8824
|
+
const selection = this.selection();
|
|
8825
|
+
const today = new Date();
|
|
8826
|
+
return Object.fromEntries(this.groups().flatMap((group) => {
|
|
8827
|
+
const mode = DATE_MODES[group.mode];
|
|
8828
|
+
if (!mode) {
|
|
8829
|
+
return [];
|
|
8830
|
+
}
|
|
8831
|
+
const resolved = yuwsResolveDateFilter(selection[group.id], group.presets, today);
|
|
8832
|
+
const value = resolved && (mode === 'range' ? resolved.range : resolved.range[0]);
|
|
8833
|
+
return [[group.id, { mode, presetId: resolved?.presetId, value: value ?? null }]];
|
|
8834
|
+
}));
|
|
8835
|
+
}, ...(ngDevMode ? [{ debugName: "dates" }] : /* istanbul ignore next */ []));
|
|
8417
8836
|
this.options = computed(() => Object.fromEntries(this.groups().map((group) => [group.id, (group.options ?? []).map((option) => ({ ...option }))])), ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
8418
8837
|
this.setLabels = computed(() => (this.sets() ? this.labels().sets : undefined), ...(ngDevMode ? [{ debugName: "setLabels" }] : /* istanbul ignore next */ []));
|
|
8419
8838
|
this.values = computed(() => Object.fromEntries(Object.entries(this.selection()).map(([id, value]) => [id, Array.isArray(value) ? [...value] : value])), ...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
|
|
@@ -8441,6 +8860,11 @@ class YuwsListToolbarFiltersComponent {
|
|
|
8441
8860
|
this.selection.set({});
|
|
8442
8861
|
this._addBox()?.close();
|
|
8443
8862
|
}
|
|
8863
|
+
/** A `single` or `range` datepicker never emits a list of days, the `multiple` shape of its value type. */
|
|
8864
|
+
onDateChange(groupId, value, presetId) {
|
|
8865
|
+
const days = Array.isArray(value) && value.length !== 2 ? null : value;
|
|
8866
|
+
this.onValueChange(groupId, yuwsDateFilterValue(days, presetId));
|
|
8867
|
+
}
|
|
8444
8868
|
onRemoved(groupId) {
|
|
8445
8869
|
this._activated.update((ids) => ids.filter((id) => id !== groupId));
|
|
8446
8870
|
this.onValueChange(groupId, undefined);
|
|
@@ -8455,12 +8879,12 @@ class YuwsListToolbarFiltersComponent {
|
|
|
8455
8879
|
/**
|
|
8456
8880
|
* Focuses a filter and opens its list. The filter may come from a `yuwsFilterContent` template, whose
|
|
8457
8881
|
* combobox this component cannot query, so it is found in the DOM: the combobox trigger inside the
|
|
8458
|
-
* filter is focused and clicked as the user would
|
|
8459
|
-
* focused.
|
|
8882
|
+
* filter is focused and clicked as the user would, as is the calendar trigger of a date filter; without either,
|
|
8883
|
+
* its first focusable control is focused.
|
|
8460
8884
|
*/
|
|
8461
8885
|
_openFilter(groupId) {
|
|
8462
8886
|
const filter = this._host.nativeElement.querySelector(`[data-filter-id="${CSS.escape(groupId)}"]`);
|
|
8463
|
-
const trigger = filter?.querySelector('[data-slot=combobox-trigger] button');
|
|
8887
|
+
const trigger = filter?.querySelector('[data-slot=combobox-trigger] button, [data-slot=popover-trigger] button');
|
|
8464
8888
|
if (trigger) {
|
|
8465
8889
|
trigger.focus();
|
|
8466
8890
|
trigger.click();
|
|
@@ -8469,7 +8893,7 @@ class YuwsListToolbarFiltersComponent {
|
|
|
8469
8893
|
filter?.querySelector('button, input, [tabindex]')?.focus();
|
|
8470
8894
|
}
|
|
8471
8895
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwsListToolbarFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8472
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwsListToolbarFiltersComponent, isStandalone: true, selector: "yuws-list-toolbar-filters", inputs: { contents: { classPropertyName: "contents", publicName: "contents", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: true, transformFunction: null }, idleColor: { classPropertyName: "idleColor", publicName: "idleColor", isSignal: true, isRequired: true, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: true, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, sets: { classPropertyName: "sets", publicName: "sets", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", setDeleted: "setDeleted", setRenamed: "setRenamed", setSaved: "setSaved" }, host: { classAttribute: "flex min-w-0 max-w-full flex-1 max-md:contents" }, providers: [provideIcons({ lucidePlus, lucideX })], viewQueries: [{ propertyName: "_addBox", first: true, predicate: ["addBox"], descendants: true, isSignal: true }], ngImport: i0, template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button variant=\"ghost\" size=\"sm\" class=\"w-full [&>button]:w-full\" (clicked)=\"onClearAll()\">\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n", dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: YuwButtonComponent, selector: "yuw-button", inputs: ["animationDisabled", "ariaLabel", "color", "disabled", "href", "size", "target", "transparent", "type", "class", "variant", "yuwDropdownMenuAlign", "yuwDropdownMenuTrigger"], outputs: ["clicked"] }, { kind: "component", type: YuwComboboxComponent, selector: "yuw-combobox", inputs: ["clearAriaLabel", "emptyText", "helperText", "inputId", "invalid", "keepValueOnEscape", "multiple", "options", "placeholder", "readonlyTrigger", "search", "searchPlaceholder", "size", "triggerAriaLabel", "triggerClass", "triggerColor", "triggerSize", "triggerVariant", "value"], outputs: ["searchChange", "valueChange"] }, { kind: "directive", type: YuwComboboxTriggerDirective, selector: "ng-template[yuwComboboxTrigger]" }, { kind: "component", type: YuwsListToolbarFilterSetPickerComponent, selector: "yuws-list-toolbar-filter-set-picker", inputs: ["idleColor", "labels", "selection", "sets"], outputs: ["selectionChange", "setDeleted", "setRenamed", "setSaved"] }, { kind: "directive", type: YuwMouseScrollXDirective, selector: "[yuwMouseScrollX]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8896
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: YuwsListToolbarFiltersComponent, isStandalone: true, selector: "yuws-list-toolbar-filters", inputs: { contents: { classPropertyName: "contents", publicName: "contents", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: true, transformFunction: null }, idleColor: { classPropertyName: "idleColor", publicName: "idleColor", isSignal: true, isRequired: true, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: true, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, sets: { classPropertyName: "sets", publicName: "sets", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", setDeleted: "setDeleted", setRenamed: "setRenamed", setSaved: "setSaved" }, host: { classAttribute: "flex min-w-0 max-w-full flex-1 max-md:contents" }, providers: [provideIcons({ lucidePlus, lucideX })], viewQueries: [{ propertyName: "_addBox", first: true, predicate: ["addBox"], descendants: true, isSignal: true }], ngImport: i0, template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button variant=\"ghost\" size=\"sm\" class=\"w-full [&>button]:w-full\" (clicked)=\"onClearAll()\">\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else if (dates()[group.id]; as date) {\n <yuw-datepicker\n #picker\n triggerVariant=\"secondary\"\n class=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [mode]=\"date.mode\"\n [value]=\"date.value\"\n [presetId]=\"date.presetId\"\n [presets]=\"group.presets ?? []\"\n [presetsLabel]=\"labels().datePresets\"\n (valueChange)=\"onDateChange(group.id, $event, picker.presetId())\"\n >\n <ng-template yuwDatepickerTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-datepicker>\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n", dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: YuwButtonComponent, selector: "yuw-button", inputs: ["animationDisabled", "ariaLabel", "color", "disabled", "href", "size", "target", "transparent", "type", "class", "variant", "yuwDropdownMenuAlign", "yuwDropdownMenuTrigger"], outputs: ["clicked"] }, { kind: "component", type: YuwComboboxComponent, selector: "yuw-combobox", inputs: ["clearAriaLabel", "emptyText", "helperText", "inputId", "invalid", "keepValueOnEscape", "multiple", "options", "placeholder", "readonlyTrigger", "search", "searchPlaceholder", "size", "triggerAriaLabel", "triggerClass", "triggerColor", "triggerSize", "triggerVariant", "value"], outputs: ["searchChange", "valueChange"] }, { kind: "directive", type: YuwComboboxTriggerDirective, selector: "ng-template[yuwComboboxTrigger]" }, { kind: "component", type: YuwDatepickerComponent, selector: "yuw-datepicker", inputs: ["align", "buttonId", "captionLayout", "formatDate", "helperText", "invalid", "maxDate", "minDate", "mode", "placeholder", "presetId", "presets", "presetsLabel", "size", "triggerColor", "triggerVariant", "class", "value"], outputs: ["presetIdChange", "valueChange"] }, { kind: "directive", type: YuwDatepickerTriggerDirective, selector: "ng-template[yuwDatepickerTrigger]" }, { kind: "component", type: YuwsListToolbarFilterSetPickerComponent, selector: "yuws-list-toolbar-filter-set-picker", inputs: ["idleColor", "labels", "selection", "sets"], outputs: ["selectionChange", "setDeleted", "setRenamed", "setSaved"] }, { kind: "directive", type: YuwMouseScrollXDirective, selector: "[yuwMouseScrollX]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8473
8897
|
}
|
|
8474
8898
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: YuwsListToolbarFiltersComponent, decorators: [{
|
|
8475
8899
|
type: Component,
|
|
@@ -8479,9 +8903,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
8479
8903
|
YuwButtonComponent,
|
|
8480
8904
|
YuwComboboxComponent,
|
|
8481
8905
|
YuwComboboxTriggerDirective,
|
|
8906
|
+
YuwDatepickerComponent,
|
|
8907
|
+
YuwDatepickerTriggerDirective,
|
|
8482
8908
|
YuwsListToolbarFilterSetPickerComponent,
|
|
8483
8909
|
YuwMouseScrollXDirective,
|
|
8484
|
-
], providers: [provideIcons({ lucidePlus, lucideX })], host: { class: 'flex min-w-0 max-w-full flex-1 max-md:contents' }, template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button variant=\"ghost\" size=\"sm\" class=\"w-full [&>button]:w-full\" (clicked)=\"onClearAll()\">\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n" }]
|
|
8910
|
+
], providers: [provideIcons({ lucidePlus, lucideX })], host: { class: 'flex min-w-0 max-w-full flex-1 max-md:contents' }, template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button variant=\"ghost\" size=\"sm\" class=\"w-full [&>button]:w-full\" (clicked)=\"onClearAll()\">\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else if (dates()[group.id]; as date) {\n <yuw-datepicker\n #picker\n triggerVariant=\"secondary\"\n class=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [mode]=\"date.mode\"\n [value]=\"date.value\"\n [presetId]=\"date.presetId\"\n [presets]=\"group.presets ?? []\"\n [presetsLabel]=\"labels().datePresets\"\n (valueChange)=\"onDateChange(group.id, $event, picker.presetId())\"\n >\n <ng-template yuwDatepickerTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-datepicker>\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n" }]
|
|
8485
8911
|
}], propDecorators: { _addBox: [{ type: i0.ViewChild, args: ['addBox', { isSignal: true }] }], contents: [{ type: i0.Input, args: [{ isSignal: true, alias: "contents", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: true }] }], idleColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "idleColor", required: true }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: true }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], sets: [{ type: i0.Input, args: [{ isSignal: true, alias: "sets", required: false }] }], setDeleted: [{ type: i0.Output, args: ["setDeleted"] }], setRenamed: [{ type: i0.Output, args: ["setRenamed"] }], setSaved: [{ type: i0.Output, args: ["setSaved"] }] } });
|
|
8486
8912
|
|
|
8487
8913
|
/**
|
|
@@ -8652,5 +9078,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
8652
9078
|
* Generated bundle index. Do not edit.
|
|
8653
9079
|
*/
|
|
8654
9080
|
|
|
8655
|
-
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_PADDING, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, buildInputOtpGroups, buildYuwActionsColumn, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsOptionalTextColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl };
|
|
9081
|
+
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_PADDING, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, buildInputOtpGroups, buildYuwActionsColumn, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsOptionalTextColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwDatePresets, yuwQuarterRange, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter };
|
|
8656
9082
|
//# sourceMappingURL=yukit-web.mjs.map
|