yukit-web 0.7.2 → 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 +517 -91
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +186 -10
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -2048,11 +2048,134 @@ declare class YuwContextMenuSubTriggerDirective {
|
|
|
2048
2048
|
/** Every context-menu part, for a consumer's `imports`. */
|
|
2049
2049
|
declare const YuwContextMenuImports: readonly [typeof YuwContextMenuTriggerDirective, typeof YuwContextMenuDirective, typeof YuwContextMenuItemDirective, typeof YuwContextMenuCheckboxDirective, typeof YuwContextMenuCheckboxIndicatorComponent, typeof YuwContextMenuRadioDirective, typeof YuwContextMenuRadioIndicatorComponent, typeof YuwContextMenuLabelDirective, typeof YuwContextMenuGroupDirective, typeof YuwContextMenuSeparatorDirective, typeof YuwContextMenuShortcutDirective, typeof YuwContextMenuSubDirective, typeof YuwContextMenuSubTriggerDirective, typeof YuwContextMenuSubIndicatorComponent];
|
|
2050
2050
|
|
|
2051
|
+
/** `single` picks one day, `range` a start and an end day. */
|
|
2052
|
+
type YuwCalendarModeDto = 'single' | 'range';
|
|
2053
|
+
/** A day for `single`, `[start, end]` for `range`, `null` while nothing is picked. */
|
|
2054
|
+
type YuwCalendarValue = Date | [Date, Date] | null;
|
|
2055
|
+
/** `days` shows the month grid; `monthYear` the month and year grids used to jump to another month. */
|
|
2056
|
+
type YuwCalendarView = 'days' | 'monthYear';
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* Inline calendar that picks one day or a range, and lets the user jump to another month without paging: clicking
|
|
2060
|
+
* the month heading (e.g. "marzo de 2026") switches to the month grid, clicking it again to the year grid, and
|
|
2061
|
+
* picking a year and then a month returns to the days of that month. Jumping never changes the selection.
|
|
2062
|
+
*
|
|
2063
|
+
* In `range` mode the first click sets the start and the second the end; `value` only changes once both are set, so
|
|
2064
|
+
* a half-picked range survives a jump to another month.
|
|
2065
|
+
*
|
|
2066
|
+
* It is drawn in the `secondary` color: the picked days, range ends and month or year are filled with its accent, the
|
|
2067
|
+
* days between the ends and the other months and years with its light tone, and today is grey, like a neutral
|
|
2068
|
+
* secondary button.
|
|
2069
|
+
*
|
|
2070
|
+
* Month names, weekday names and the heading follow the brain calendar i18n (`provideBrnCalendarI18n`).
|
|
2071
|
+
*
|
|
2072
|
+
* Inputs / Models:
|
|
2073
|
+
* - `mode`: `'single'` or `'range'`. Default is `'single'`.
|
|
2074
|
+
* - `value`: Two-way picked day (`Date`) or range (`[Date, Date]`); `null` while nothing is picked.
|
|
2075
|
+
* - `minDate`, `maxDate`: Bounds of the selectable days.
|
|
2076
|
+
* - `disabled`: Disables every control.
|
|
2077
|
+
*
|
|
2078
|
+
* Usage:
|
|
2079
|
+
* ```html
|
|
2080
|
+
* <yuw-calendar mode="range" [(value)]="range" />
|
|
2081
|
+
* ```
|
|
2082
|
+
*/
|
|
2083
|
+
declare class YuwCalendarComponent {
|
|
2084
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2085
|
+
readonly maxDate: _angular_core.InputSignal<Date | undefined>;
|
|
2086
|
+
readonly minDate: _angular_core.InputSignal<Date | undefined>;
|
|
2087
|
+
readonly mode: _angular_core.InputSignal<YuwCalendarModeDto>;
|
|
2088
|
+
readonly value: _angular_core.ModelSignal<YuwCalendarValue>;
|
|
2089
|
+
protected readonly monthYearClass: string;
|
|
2090
|
+
protected readonly view: _angular_core.WritableSignal<YuwCalendarView>;
|
|
2091
|
+
protected readonly range: _angular_core.Signal<[Date, Date] | undefined>;
|
|
2092
|
+
protected readonly end: _angular_core.WritableSignal<Date | undefined>;
|
|
2093
|
+
protected readonly single: _angular_core.Signal<Date | undefined>;
|
|
2094
|
+
protected readonly focused: _angular_core.WritableSignal<Date>;
|
|
2095
|
+
protected readonly start: _angular_core.WritableSignal<Date | undefined>;
|
|
2096
|
+
protected onDateChange(date: Date | undefined): void;
|
|
2097
|
+
protected onEndChange(end: Date | undefined): void;
|
|
2098
|
+
/** `undefined` means the focused month was clicked again, which keeps it. */
|
|
2099
|
+
protected onMonthPicked(month: Date | undefined): void;
|
|
2100
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwCalendarComponent, never>;
|
|
2101
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwCalendarComponent, "yuw-calendar", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* A shortcut listed beside the calendar ("Today", "Last 3 months"). `range` receives the current day and returns the
|
|
2106
|
+
* first and last day it covers, both included, so a preset stays relative: "This week" applied today and next month
|
|
2107
|
+
* covers different days. Ranges for the common cases are in `YUW_DATE_RANGES`.
|
|
2108
|
+
*/
|
|
2109
|
+
interface YuwDatePresetDto {
|
|
2110
|
+
readonly id: string;
|
|
2111
|
+
readonly label: string;
|
|
2112
|
+
readonly range: (today: Date) => [Date, Date];
|
|
2113
|
+
}
|
|
2114
|
+
/** What the user picked: the dates, and the preset they came from when they came from one. */
|
|
2115
|
+
interface YuwDatePickDto<T> {
|
|
2116
|
+
readonly value: T;
|
|
2117
|
+
readonly presetId: string | undefined;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
type YuwDateRangeKey = 'today' | 'tomorrow' | 'thisWeek' | 'lastMonth' | 'nextMonth' | 'lastThreeMonths';
|
|
2121
|
+
type YuwQuarter = 1 | 2 | 3 | 4;
|
|
2122
|
+
/**
|
|
2123
|
+
* Ranges for `YuwDatePresetDto.range`, every day at midnight and both ends included:
|
|
2124
|
+
* - `thisWeek`: Monday to Sunday of the current week.
|
|
2125
|
+
* - `lastMonth`, `nextMonth`: the whole previous or next calendar month.
|
|
2126
|
+
* - `lastThreeMonths`: the three months up to today, today included.
|
|
2127
|
+
*/
|
|
2128
|
+
declare const YUW_DATE_RANGES: Readonly<Record<YuwDateRangeKey, (today: Date) => [Date, Date]>>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Presets for every `YUW_DATE_RANGES` key given a label, in the order of `labels`; the id is the key. Spread them
|
|
2131
|
+
* with the consumer's own: `[...yuwDatePresets(labels), { id: 'q1', label: 'Q1', range: yuwQuarterRange(1) }]`.
|
|
2132
|
+
*/
|
|
2133
|
+
declare function yuwDatePresets(labels: Partial<Readonly<Record<YuwDateRangeKey, string>>>): YuwDatePresetDto[];
|
|
2134
|
+
/**
|
|
2135
|
+
* Range of a quarter, `yearOffset` years from the current one, so the preset stays relative: `yuwQuarterRange(1)` is
|
|
2136
|
+
* January 1st to March 31st of this year, `yuwQuarterRange(1, 1)` of next year and `yuwQuarterRange(4, -1)` the last
|
|
2137
|
+
* quarter of last year.
|
|
2138
|
+
*/
|
|
2139
|
+
declare function yuwQuarterRange(quarter: YuwQuarter, yearOffset?: number): (today: Date) => [Date, Date];
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* The `let-` context of a `yuwDatepickerTrigger` template.
|
|
2143
|
+
*
|
|
2144
|
+
* `$implicit`: Label of the picked dates, or of the preset they came from; empty while nothing is picked.
|
|
2145
|
+
*/
|
|
2146
|
+
interface YuwDatepickerTriggerContext {
|
|
2147
|
+
readonly $implicit: string;
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* Replaces the trigger of a `single` or `range` `<yuw-datepicker>` with a `<yuw-button>` whose content is this
|
|
2151
|
+
* template, styled by `triggerColor`, `triggerVariant` and `class`. Used where the picker is not a form field, such as
|
|
2152
|
+
* a list filter that reads "Date This week".
|
|
2153
|
+
*
|
|
2154
|
+
* Usage:
|
|
2155
|
+
* ```html
|
|
2156
|
+
* <yuw-datepicker mode="range" [(value)]="range" triggerVariant="secondary">
|
|
2157
|
+
* <ng-template yuwDatepickerTrigger let-summary>
|
|
2158
|
+
* <span class="font-semibold">Date</span> {{ summary }}
|
|
2159
|
+
* </ng-template>
|
|
2160
|
+
* </yuw-datepicker>
|
|
2161
|
+
* ```
|
|
2162
|
+
*/
|
|
2163
|
+
declare class YuwDatepickerTriggerDirective {
|
|
2164
|
+
readonly templateRef: TemplateRef<YuwDatepickerTriggerContext>;
|
|
2165
|
+
static ngTemplateContextGuard(_directive: YuwDatepickerTriggerDirective, _context: unknown): _context is YuwDatepickerTriggerContext;
|
|
2166
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwDatepickerTriggerDirective, never>;
|
|
2167
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<YuwDatepickerTriggerDirective, "ng-template[yuwDatepickerTrigger]", never, {}, {}, never, never, true, never>;
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2051
2170
|
type YuwDatepickerValue = Date | [Date, Date] | Date[] | null;
|
|
2052
2171
|
type YuwDatepickerModeDto = 'single' | 'range' | 'multiple' | 'monthYear';
|
|
2053
2172
|
/**
|
|
2054
2173
|
* Date picker control supporting single date, date range, multiple dates, or month/year pick modes.
|
|
2055
2174
|
*
|
|
2175
|
+
* In `single` and `range` modes the calendar heading jumps to the month and then the year grid (see `yuw-calendar`),
|
|
2176
|
+
* and `presets` offers shortcuts such as "This week" in a combobox above it. Picking a preset sets `value` to its dates and
|
|
2177
|
+
* `presetId` to its id, and the trigger reads the preset label; picking days clears `presetId`.
|
|
2178
|
+
*
|
|
2056
2179
|
* Inputs / Models:
|
|
2057
2180
|
* - `mode`: Selection mode (`'single'`, `'range'`, `'multiple'`, `'monthYear'`). Default is `'single'`.
|
|
2058
2181
|
* - `value`: Two-way selected date(s) (`YuwDatepickerValue`). Shape follows `mode`. Emits
|
|
@@ -2068,10 +2191,21 @@ type YuwDatepickerModeDto = 'single' | 'range' | 'multiple' | 'monthYear';
|
|
|
2068
2191
|
* association. When omitted, a unique per-instance id is generated.
|
|
2069
2192
|
* - `size`: Trigger button height (`YuwFieldSizeDto`), matching the `<yuw-button>` size of the same name. Default is `'default'`.
|
|
2070
2193
|
* - `class`: Extra classes merged onto the trigger button (e.g. a width), consumer classes win.
|
|
2194
|
+
* The field trigger never grows past its container: a long label, such as many dates, ends in an ellipsis.
|
|
2071
2195
|
* - `invalid`: Forces invalid styling. Applied from the first blur on, so a pristine field is not flagged.
|
|
2072
2196
|
* - `helperText`: Hint shown under the control. Replaced by the error while one is displayed.
|
|
2073
2197
|
* - `formatDate`: Custom date formatter function `(date: Date) => string` for the trigger label.
|
|
2074
2198
|
* In `range`/`multiple` modes it formats each date, joined with `' - '` / `', '`.
|
|
2199
|
+
* - `presets`: `single`/`range` only. Shortcuts offered by a combobox above the calendar. Any `{ id, label, range }`
|
|
2200
|
+
* is a preset; `yuwDatePresets()` builds the common ones from their labels, and `yuwQuarterRange()` makes quarters.
|
|
2201
|
+
* In `single` mode a preset picks the first day of its range.
|
|
2202
|
+
* - `presetsLabel`: Placeholder and accessible name of the presets combobox; required with `presets`.
|
|
2203
|
+
* - `presetId`: `single`/`range` only. Two-way id of the preset the value came from; `undefined` for picked days. It
|
|
2204
|
+
* is updated before `value`, so a `valueChange` handler already reads the new one.
|
|
2205
|
+
* - `triggerColor`, `triggerVariant`: `single`/`range` only. Look of the `<yuw-button>` rendered for a projected
|
|
2206
|
+
* `yuwDatepickerTrigger` template, which replaces the field trigger (see `YuwDatepickerTriggerDirective`).
|
|
2207
|
+
*
|
|
2208
|
+
* `captionLayout` applies to `multiple` only: the `single` and `range` calendars navigate through their heading.
|
|
2075
2209
|
*
|
|
2076
2210
|
* Bound with `[formField]` (signal forms), the error state follows the field: shown once it is touched, with the
|
|
2077
2211
|
* `message` of its first error under the control.
|
|
@@ -2081,9 +2215,11 @@ type YuwDatepickerModeDto = 'single' | 'range' | 'multiple' | 'monthYear';
|
|
|
2081
2215
|
* <yuw-datepicker [(value)]="selectedDate" placeholder="Select date..." />
|
|
2082
2216
|
* <yuw-datepicker mode="range" [(value)]="dateRange" />
|
|
2083
2217
|
* <yuw-datepicker mode="monthYear" [(value)]="selectedMonth" />
|
|
2218
|
+
* <yuw-datepicker mode="range" [presets]="presets" [(presetId)]="presetId" [(value)]="dateRange" />
|
|
2084
2219
|
* ```
|
|
2085
2220
|
*/
|
|
2086
2221
|
declare class YuwDatepickerComponent extends YuwValueAccessorBase<YuwDatepickerValue> {
|
|
2222
|
+
protected readonly triggerTemplate: _angular_core.Signal<YuwDatepickerTriggerDirective | undefined>;
|
|
2087
2223
|
readonly align: _angular_core.InputSignal<"center" | "start" | "end">;
|
|
2088
2224
|
readonly buttonId: _angular_core.InputSignal<string | undefined>;
|
|
2089
2225
|
readonly captionLayout: _angular_core.InputSignal<"label" | "dropdown" | "dropdown-months" | "dropdown-years">;
|
|
@@ -2094,7 +2230,12 @@ declare class YuwDatepickerComponent extends YuwValueAccessorBase<YuwDatepickerV
|
|
|
2094
2230
|
readonly minDate: _angular_core.InputSignal<Date | undefined>;
|
|
2095
2231
|
readonly mode: _angular_core.InputSignal<YuwDatepickerModeDto>;
|
|
2096
2232
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
2233
|
+
readonly presetId: _angular_core.ModelSignal<string | undefined>;
|
|
2234
|
+
readonly presets: _angular_core.InputSignal<readonly YuwDatePresetDto[]>;
|
|
2235
|
+
readonly presetsLabel: _angular_core.InputSignal<string | undefined>;
|
|
2097
2236
|
readonly size: _angular_core.InputSignal<YuwFieldSizeDto>;
|
|
2237
|
+
readonly triggerColor: _angular_core.InputSignal<YuwColorDto>;
|
|
2238
|
+
readonly triggerVariant: _angular_core.InputSignal<"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined>;
|
|
2098
2239
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
2099
2240
|
readonly value: _angular_core.ModelSignal<YuwDatepickerValue>;
|
|
2100
2241
|
protected readonly _focusSelectors: string[];
|
|
@@ -2104,18 +2245,23 @@ declare class YuwDatepickerComponent extends YuwValueAccessorBase<YuwDatepickerV
|
|
|
2104
2245
|
private readonly _rangeConfig;
|
|
2105
2246
|
private readonly _singleConfig;
|
|
2106
2247
|
protected readonly _buttonId: _angular_core.Signal<string>;
|
|
2248
|
+
protected readonly _calendarMode: _angular_core.Signal<YuwCalendarModeDto>;
|
|
2249
|
+
protected readonly _rangeValue: _angular_core.Signal<[Date, Date] | undefined>;
|
|
2250
|
+
protected readonly _singleValue: _angular_core.Signal<Date | undefined>;
|
|
2251
|
+
protected readonly _calendarValue: _angular_core.Signal<YuwCalendarValue>;
|
|
2107
2252
|
protected readonly _formatMonthYear: _angular_core.Signal<(date: Date) => string>;
|
|
2108
2253
|
protected readonly _formatMulti: _angular_core.Signal<(dates: Date[]) => string>;
|
|
2109
2254
|
protected readonly _formatRange: _angular_core.Signal<(dates: [Date | null, Date | null]) => string>;
|
|
2110
2255
|
protected readonly _formatSingle: _angular_core.Signal<(date: Date) => string>;
|
|
2256
|
+
protected readonly _label: _angular_core.Signal<string | undefined>;
|
|
2111
2257
|
protected readonly _multipleValue: _angular_core.Signal<Date[]>;
|
|
2112
|
-
protected readonly _rangeValue: _angular_core.Signal<[Date, Date] | undefined>;
|
|
2113
|
-
protected readonly _singleValue: _angular_core.Signal<Date | undefined>;
|
|
2114
2258
|
protected readonly _triggerClass: _angular_core.Signal<string>;
|
|
2259
|
+
protected readonly _triggerContext: _angular_core.Signal<YuwDatepickerTriggerContext>;
|
|
2115
2260
|
protected _emptyValue(): YuwDatepickerValue;
|
|
2261
|
+
protected onPicked(pick: YuwDatePickDto<YuwCalendarValue>): void;
|
|
2116
2262
|
protected onValueChange(next: YuwDatepickerValue): void;
|
|
2117
2263
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwDatepickerComponent, never>;
|
|
2118
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwDatepickerComponent, "yuw-datepicker", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; },
|
|
2264
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwDatepickerComponent, "yuw-datepicker", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "presetId": { "alias": "presetId"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "presetsLabel": { "alias": "presetsLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerColor": { "alias": "triggerColor"; "required": false; "isSignal": true; }; "triggerVariant": { "alias": "triggerVariant"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "presetId": "presetIdChange"; "value": "valueChange"; }, ["triggerTemplate"], never, true, never>;
|
|
2119
2265
|
}
|
|
2120
2266
|
|
|
2121
2267
|
/**
|
|
@@ -4947,17 +5093,22 @@ interface YuwsFilterOptionDto {
|
|
|
4947
5093
|
readonly label: string;
|
|
4948
5094
|
readonly disabled?: boolean;
|
|
4949
5095
|
}
|
|
4950
|
-
/** `single` keeps one value and closes its list after a pick, `multiple` keeps a set. */
|
|
4951
|
-
type YuwsFilterGroupMode = 'single' | 'multiple';
|
|
4952
5096
|
/**
|
|
4953
|
-
* `
|
|
4954
|
-
*
|
|
5097
|
+
* `single` keeps one value and closes its list after a pick, `multiple` keeps a set. `date` and `dateRange` open a
|
|
5098
|
+
* calendar instead of a list and keep one string, which `yuwsResolveDateFilter()` turns back into dates.
|
|
5099
|
+
*/
|
|
5100
|
+
type YuwsFilterGroupMode = 'single' | 'multiple' | 'date' | 'dateRange';
|
|
5101
|
+
/**
|
|
5102
|
+
* `options` feeds the group's combobox, `presets` the shortcuts above the calendar of a `date` or `dateRange` group.
|
|
5103
|
+
* A `yuwsFilterContent` template of the same id replaces that control; `mode` then only states whether its value is a
|
|
5104
|
+
* string or an array.
|
|
4955
5105
|
*/
|
|
4956
5106
|
interface YuwsFilterGroupDto {
|
|
4957
5107
|
readonly id: string;
|
|
4958
5108
|
readonly label: string;
|
|
4959
5109
|
readonly mode: YuwsFilterGroupMode;
|
|
4960
5110
|
readonly options?: readonly YuwsFilterOptionDto[];
|
|
5111
|
+
readonly presets?: readonly YuwDatePresetDto[];
|
|
4961
5112
|
}
|
|
4962
5113
|
/** Value of one group: a string for `single` groups, an array for `multiple`. */
|
|
4963
5114
|
type YuwsFilterValue = string | readonly string[];
|
|
@@ -4999,7 +5150,8 @@ interface YuwsFilterSetLabels {
|
|
|
4999
5150
|
/**
|
|
5000
5151
|
* `title` names the filter row for assistive tech, `add` is the add-filter button, `remove` the
|
|
5001
5152
|
* accessible name of the remove button of each active filter, `clearAll` the button that removes
|
|
5002
|
-
* every filter,
|
|
5153
|
+
* every filter, `empty` the text of a filter search with no match, and `datePresets` the placeholder of the presets
|
|
5154
|
+
* combobox of a date filter, required when a group has `presets`.
|
|
5003
5155
|
*/
|
|
5004
5156
|
interface YuwsListToolbarFilterLabels {
|
|
5005
5157
|
readonly title: string;
|
|
@@ -5007,6 +5159,7 @@ interface YuwsListToolbarFilterLabels {
|
|
|
5007
5159
|
readonly remove: string;
|
|
5008
5160
|
readonly clearAll: string;
|
|
5009
5161
|
readonly empty: string;
|
|
5162
|
+
readonly datePresets?: string;
|
|
5010
5163
|
readonly sets?: YuwsFilterSetLabels;
|
|
5011
5164
|
}
|
|
5012
5165
|
interface YuwsListToolbarSearchLabels {
|
|
@@ -5040,6 +5193,29 @@ interface YuwsListToolbarLabels {
|
|
|
5040
5193
|
readonly viewMode?: YuwsListToolbarViewModeLabels;
|
|
5041
5194
|
}
|
|
5042
5195
|
|
|
5196
|
+
/** A resolved `date` or `dateRange` filter: the days it covers, both included, and the preset it came from. */
|
|
5197
|
+
interface YuwsDateFilterDto {
|
|
5198
|
+
readonly range: [Date, Date];
|
|
5199
|
+
readonly presetId: string | undefined;
|
|
5200
|
+
}
|
|
5201
|
+
/**
|
|
5202
|
+
* Value stored in the selection for a `date` or `dateRange` group: the preset id when the dates came from a preset,
|
|
5203
|
+
* so a saved set or a restored selection holding "This week" keeps meaning the current week, and the local days
|
|
5204
|
+
* otherwise, `2026-03-01` or `2026-03-01/2026-03-31`.
|
|
5205
|
+
*/
|
|
5206
|
+
declare function yuwsDateFilterValue(value: YuwCalendarValue, presetId: string | undefined): string | undefined;
|
|
5207
|
+
/**
|
|
5208
|
+
* Days a `date` or `dateRange` filter value covers, with `presets` being the group's and `today` the day a preset is
|
|
5209
|
+
* resolved against. `undefined` when the value is neither days nor the id of one of `presets`.
|
|
5210
|
+
*
|
|
5211
|
+
* Usage:
|
|
5212
|
+
* ```ts
|
|
5213
|
+
* const date = yuwsResolveDateFilter(selection['createdAt'], presets);
|
|
5214
|
+
* const params = date ? { from: date.range[0], to: date.range[1] } : {};
|
|
5215
|
+
* ```
|
|
5216
|
+
*/
|
|
5217
|
+
declare function yuwsResolveDateFilter(value: YuwsFilterValue | undefined, presets?: readonly YuwDatePresetDto[], today?: Date): YuwsDateFilterDto | undefined;
|
|
5218
|
+
|
|
5043
5219
|
/**
|
|
5044
5220
|
* Template context of a `yuwsFilterContent` template.
|
|
5045
5221
|
*
|
|
@@ -5188,5 +5364,5 @@ declare class YuwsTitleSkeletonDirective {
|
|
|
5188
5364
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<YuwsTitleSkeletonDirective, "yuws-page-header[yuwsTitleSkeleton]", never, { "loading": { "alias": "yuwsTitleSkeleton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5189
5365
|
}
|
|
5190
5366
|
|
|
5191
|
-
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 };
|
|
5192
|
-
export type { YuwAlertDialogSizeDto, YuwAlertVariantDto, YuwAvatarGroupItemDto, YuwAvatarSizeDto, YuwBreadcrumbCrumb, YuwBreadcrumbItemDto, YuwBreadcrumbRouteData, YuwButtonGroupClickDto, YuwButtonGroupItemDto, YuwColorDto, YuwComboboxItemContext, YuwComboboxOptionDto, YuwComboboxTriggerContext, YuwComboboxValue, YuwCommandGroupDto, YuwCommandItemDto, YuwDatatableAlign, YuwDatatableAppearanceDto, YuwDatatableColumnDef, YuwDatatableColumnMeta, YuwDatatableFeatures, YuwDatatableRowClass, YuwDatepickerModeDto, YuwDatepickerValue, YuwFieldSizeDto, YuwInputFileVariantDto, YuwInputModeDto, YuwInputOtpGroupDto, YuwInputOtpModeDto, YuwInputTypeDto, YuwPageQuery, YuwPageRange, YuwPageSort, YuwPagedList, YuwPagedListOptions, YuwPaginationRangeItem, YuwPaginationSizeDto, YuwPasswordRevealStateDto, YuwPopoverAlignDto, YuwRadioOptionDto, YuwSearchInputCollapseFromDto, YuwSheetScrollStrategyDto, YuwSheetSideDto, YuwSidebarAvatarDto, YuwSidebarCollapsibleDto, YuwSidebarContentDto, YuwSidebarGroupDto, YuwSidebarItemClickDto, YuwSidebarItemDto, YuwSidebarSideDto, YuwSidebarSubItemDto, YuwSidebarVariantDto, YuwStepChangeDto, YuwStepIndicatorContextDto, YuwStepItemDto, YuwStepStateDto, YuwStepperOrientationDto, YuwSwitchSizeDto, YuwTabItemDto, YuwTableShareFormat, YuwTableShareSource, YuwTableSnapshot, YuwTabsActivationModeDto, YuwTabsOrientationDto, YuwTabsVariantDto, YuwTextFieldContract, YuwToasterPositionDto, YuwToasterThemeDto, YuwTooltipPositionDto, YuwsAvatarNameCellSize, YuwsConfirmationState, YuwsFilterContentContext, YuwsFilterGroupDto, YuwsFilterGroupMode, YuwsFilterOptionDto, YuwsFilterSelection, YuwsFilterSetDto, YuwsFilterSetLabels, YuwsFilterSetRenameDto, YuwsFilterSetSaveDto, YuwsFilterValue, YuwsFormSheetLabels, YuwsIconActionColumn, YuwsImageCellSize, YuwsListPaginationLabels, YuwsListToolbarColumnsLabels, YuwsListToolbarFilterLabels, YuwsListToolbarLabels, YuwsListToolbarSearchLabels, YuwsListToolbarShareLabels, YuwsListToolbarViewModeIcons, YuwsListToolbarViewModeLabels, YuwsPageSizeLabels, YuwsSheetEditor, YuwsStateLabels, YuwsStatusToggleColumn, YuwsTextColumnOptions, YuwsViewMode };
|
|
5367
|
+
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 };
|
|
5368
|
+
export type { YuwAlertDialogSizeDto, YuwAlertVariantDto, YuwAvatarGroupItemDto, YuwAvatarSizeDto, YuwBreadcrumbCrumb, YuwBreadcrumbItemDto, YuwBreadcrumbRouteData, YuwButtonGroupClickDto, YuwButtonGroupItemDto, YuwCalendarModeDto, YuwCalendarValue, YuwCalendarView, YuwColorDto, YuwComboboxItemContext, YuwComboboxOptionDto, YuwComboboxTriggerContext, YuwComboboxValue, YuwCommandGroupDto, YuwCommandItemDto, YuwDatatableAlign, YuwDatatableAppearanceDto, YuwDatatableColumnDef, YuwDatatableColumnMeta, YuwDatatableFeatures, YuwDatatableRowClass, YuwDatePickDto, YuwDatePresetDto, YuwDateRangeKey, YuwDatepickerModeDto, YuwDatepickerTriggerContext, YuwDatepickerValue, YuwFieldSizeDto, YuwInputFileVariantDto, YuwInputModeDto, YuwInputOtpGroupDto, YuwInputOtpModeDto, YuwInputTypeDto, YuwPageQuery, YuwPageRange, YuwPageSort, YuwPagedList, YuwPagedListOptions, YuwPaginationRangeItem, YuwPaginationSizeDto, YuwPasswordRevealStateDto, YuwPopoverAlignDto, YuwQuarter, YuwRadioOptionDto, YuwSearchInputCollapseFromDto, YuwSheetScrollStrategyDto, YuwSheetSideDto, YuwSidebarAvatarDto, YuwSidebarCollapsibleDto, YuwSidebarContentDto, YuwSidebarGroupDto, YuwSidebarItemClickDto, YuwSidebarItemDto, YuwSidebarSideDto, YuwSidebarSubItemDto, YuwSidebarVariantDto, YuwStepChangeDto, YuwStepIndicatorContextDto, YuwStepItemDto, YuwStepStateDto, YuwStepperOrientationDto, YuwSwitchSizeDto, YuwTabItemDto, YuwTableShareFormat, YuwTableShareSource, YuwTableSnapshot, YuwTabsActivationModeDto, YuwTabsOrientationDto, YuwTabsVariantDto, YuwTextFieldContract, YuwToasterPositionDto, YuwToasterThemeDto, YuwTooltipPositionDto, YuwsAvatarNameCellSize, YuwsConfirmationState, YuwsDateFilterDto, YuwsFilterContentContext, YuwsFilterGroupDto, YuwsFilterGroupMode, YuwsFilterOptionDto, YuwsFilterSelection, YuwsFilterSetDto, YuwsFilterSetLabels, YuwsFilterSetRenameDto, YuwsFilterSetSaveDto, YuwsFilterValue, YuwsFormSheetLabels, YuwsIconActionColumn, YuwsImageCellSize, YuwsListPaginationLabels, YuwsListToolbarColumnsLabels, YuwsListToolbarFilterLabels, YuwsListToolbarLabels, YuwsListToolbarSearchLabels, YuwsListToolbarShareLabels, YuwsListToolbarViewModeIcons, YuwsListToolbarViewModeLabels, YuwsPageSizeLabels, YuwsSheetEditor, YuwsStateLabels, YuwsStatusToggleColumn, YuwsTextColumnOptions, YuwsViewMode };
|