@nanahoshi/mona-ui 0.43.0 → 0.44.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/docs/api/index.json +1 -1
- package/docs/api/timeline.json +1 -0
- package/docs/api/timeline.md +188 -0
- package/docs/manifest.json +1 -1
- package/docs/timeline.md +482 -0
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +6 -1
- package/fesm2022/nanahoshi-mona-ui-timeline.mjs +1028 -0
- package/llms.txt +2 -0
- package/package.json +6 -2
- package/timeline/package.json +4 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -0
- package/types/nanahoshi-mona-ui-timeline.d.ts +338 -0
package/llms.txt
CHANGED
|
@@ -92,6 +92,7 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
92
92
|
- [Pager](docs/pager.md): Pagination controls with page buttons, a page-size selector and a page-jump input.
|
|
93
93
|
- [QR Code](docs/qr-code.md): Encodes text or a URL as a scannable QR code, with logo overlays and PNG, SVG and PDF export.
|
|
94
94
|
- [Sortable](docs/sortable.md): Lets users reorder any list by dragging or with the keyboard, and move items between connected lists.
|
|
95
|
+
- [Timeline](docs/timeline.md): Dated events along a line, down the page or across it, with cards that can open and close.
|
|
95
96
|
- [Tree View](docs/tree-view.md): Hierarchical data as an expandable, keyboard-navigable tree.
|
|
96
97
|
|
|
97
98
|
## Grid
|
|
@@ -247,6 +248,7 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
247
248
|
- [`@nanahoshi/mona-ui/theme`](docs/api/theme.md): 53 exports, in full.
|
|
248
249
|
- [`@nanahoshi/mona-ui/time-picker`](docs/api/time-picker.md): 2 exports, in full.
|
|
249
250
|
- [`@nanahoshi/mona-ui/time-selector`](docs/api/time-selector.md): 2 exports, in full.
|
|
251
|
+
- [`@nanahoshi/mona-ui/timeline`](docs/api/timeline.md): 7 exports, in full.
|
|
250
252
|
- [`@nanahoshi/mona-ui/toolbar`](docs/api/toolbar.md): 5 exports, in full.
|
|
251
253
|
- [`@nanahoshi/mona-ui/tooltip`](docs/api/tooltip.md): 7 exports, in full.
|
|
252
254
|
- [`@nanahoshi/mona-ui/tree-view`](docs/api/tree-view.md): 37 exports, in full.
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanahoshi/mona-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "A very light Angular UI framework",
|
|
5
5
|
"author": "Nanahoshi",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/nanahoshi-dev/mona-ui"
|
|
8
|
+
"url": "git+https://github.com/nanahoshi-dev/mona-ui.git"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
11
|
"./i18n/catalogs/*.json": "./i18n/catalogs/*.json",
|
|
@@ -430,6 +430,10 @@
|
|
|
430
430
|
"types": "./types/nanahoshi-mona-ui-time-selector.d.ts",
|
|
431
431
|
"default": "./fesm2022/nanahoshi-mona-ui-time-selector.mjs"
|
|
432
432
|
},
|
|
433
|
+
"./timeline": {
|
|
434
|
+
"types": "./types/nanahoshi-mona-ui-timeline.d.ts",
|
|
435
|
+
"default": "./fesm2022/nanahoshi-mona-ui-timeline.mjs"
|
|
436
|
+
},
|
|
433
437
|
"./toolbar": {
|
|
434
438
|
"types": "./types/nanahoshi-mona-ui-toolbar.d.ts",
|
|
435
439
|
"default": "./fesm2022/nanahoshi-mona-ui-toolbar.mjs"
|
|
@@ -197,6 +197,10 @@ export declare function focusCanReturn(document: Document, ...containers: Readon
|
|
|
197
197
|
* selector matches nothing).
|
|
198
198
|
*/
|
|
199
199
|
export declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
|
|
200
|
+
/**
|
|
201
|
+
* Transforms a `headingLevel` input: a level from 1 to 6, `null` for no heading at all, and 3 for anything else.
|
|
202
|
+
*/
|
|
203
|
+
export declare function toHeadingLevel(value: unknown): number | null;
|
|
200
204
|
export interface InertOutsideOptions {
|
|
201
205
|
/** Elements that manage themselves, or have to stay usable beside the modal. */
|
|
202
206
|
readonly keep?: (element: Element) => boolean;
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Which way a timeline runs: `"vertical"`, down the page, or `"horizontal"`, across it in the reading direction, which
|
|
5
|
+
* is right to left in a right-to-left layout.
|
|
6
|
+
*/
|
|
7
|
+
type TimelineOrientation = "horizontal" | "vertical";
|
|
8
|
+
/**
|
|
9
|
+
* The context of a timeline's templates, `monaTimelineHeaderTemplate`, `monaTimelineBodyTemplate`,
|
|
10
|
+
* `monaTimelineDateTemplate` and `monaTimelineMarkerTemplate`: the event, as `let-event`.
|
|
11
|
+
*/
|
|
12
|
+
interface TimelineEventTemplateContext<T = unknown> {
|
|
13
|
+
/** The event (`let-event`). */
|
|
14
|
+
readonly $implicit: T;
|
|
15
|
+
/** The event's date, read from its date field, or `null` when it has none (`let-date="date"`). */
|
|
16
|
+
readonly date: Date | null;
|
|
17
|
+
/** Whether the event's details are open: always `true` unless the timeline is collapsible (`let-expanded="expanded"`). */
|
|
18
|
+
readonly expanded: boolean;
|
|
19
|
+
/** The event's index in the timeline's data (`let-index="index"`). */
|
|
20
|
+
readonly index: number;
|
|
21
|
+
}
|
|
22
|
+
/** What an event shows, read from its fields once for each change of the data or the fields. */
|
|
23
|
+
interface TimelineEntry<T> {
|
|
24
|
+
readonly date: Date | null;
|
|
25
|
+
readonly dateText: string;
|
|
26
|
+
readonly dateTime: string | null;
|
|
27
|
+
readonly description: string;
|
|
28
|
+
readonly event: T;
|
|
29
|
+
readonly key: unknown;
|
|
30
|
+
readonly subtitle: string;
|
|
31
|
+
readonly title: string;
|
|
32
|
+
}
|
|
33
|
+
/** An event as the template renders it: what it shows, whether its details are open, and its classes. */
|
|
34
|
+
interface TimelineItem<T> extends TimelineEntry<T> {
|
|
35
|
+
readonly classes: {
|
|
36
|
+
readonly axis: string;
|
|
37
|
+
readonly content: string;
|
|
38
|
+
readonly date: string;
|
|
39
|
+
readonly item: string;
|
|
40
|
+
readonly line: string;
|
|
41
|
+
};
|
|
42
|
+
readonly context: TimelineEventTemplateContext<T>;
|
|
43
|
+
/** Whether the event has details to show: a description, or a body template. */
|
|
44
|
+
readonly hasDetails: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @description
|
|
48
|
+
* Events in order along a line: each one's date, a marker on the line, and a card with its title, subtitle and
|
|
49
|
+
* description. It runs down the page, with the cards on one side of the line or on alternating sides, or across it,
|
|
50
|
+
* scrolling sideways. It's an ordered list to assistive technology, each event's date read before its card, whose title
|
|
51
|
+
* is a heading. On a collapsible timeline, each card's header is a button that opens its details.
|
|
52
|
+
*
|
|
53
|
+
* The events are shown in the order of `data`, so sort them the way they should read: oldest first, or newest first.
|
|
54
|
+
*/
|
|
55
|
+
export declare class TimelineComponent<T extends object = Record<string, unknown>> {
|
|
56
|
+
#private;
|
|
57
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
58
|
+
protected readonly bodyClass = "text-sm text-muted-foreground";
|
|
59
|
+
protected readonly bodyTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
60
|
+
protected readonly collapsibleBodyClass = "px-3 pb-3 text-sm text-muted-foreground";
|
|
61
|
+
protected readonly collapsibleCardClass: string;
|
|
62
|
+
protected readonly dateTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
63
|
+
protected readonly dotClass = "\n block size-3 rounded-full border-2 border-primary bg-primary\n forced-color-adjust-none forced-colors:border-[CanvasText] forced-colors:bg-[CanvasText]\n";
|
|
64
|
+
protected readonly headerClass = "flex min-w-0 flex-1 flex-col gap-0.5";
|
|
65
|
+
protected readonly headerTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
66
|
+
protected readonly headingRole: import("@angular/core").Signal<"heading" | null>;
|
|
67
|
+
protected readonly items: import("@angular/core").Signal<TimelineItem<T>[]>;
|
|
68
|
+
protected readonly listClass: import("@angular/core").Signal<string>;
|
|
69
|
+
/** A horizontal timeline scrolls, so it takes focus to scroll with the arrow keys. */
|
|
70
|
+
protected readonly listTabIndex: import("@angular/core").Signal<0 | null>;
|
|
71
|
+
protected readonly markerClass: import("@angular/core").Signal<string>;
|
|
72
|
+
protected readonly markerTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
73
|
+
protected readonly staticCardClass: string;
|
|
74
|
+
protected readonly subtitleClass = "block text-xs leading-4 text-muted-foreground";
|
|
75
|
+
protected readonly titleClass = "block text-sm leading-5 font-semibold text-card-foreground";
|
|
76
|
+
protected readonly triggerClass = "\n flex w-full cursor-pointer items-start gap-2 rounded-[inherit] p-3 text-start\n data-[state=open]:rounded-b-none\n transition-colors duration-(--mona-motion-fast) motion-reduce:transition-none\n hover:bg-hover active:bg-active\n focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus-indicator\n";
|
|
77
|
+
/**
|
|
78
|
+
* @description Puts the cards on alternating sides of the line: on a vertical timeline, after it and before it, once
|
|
79
|
+
* the timeline is 32rem wide, with each date on the side across from its card; on a horizontal one, below it and
|
|
80
|
+
* above it.
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
readonly alternate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
/**
|
|
85
|
+
* @description The timeline's name, such as "Project history", which assistive technology reads with its list.
|
|
86
|
+
* @default ""
|
|
87
|
+
*/
|
|
88
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
89
|
+
/**
|
|
90
|
+
* @description The id of an element that names the timeline, such as a heading above it.
|
|
91
|
+
* @default ""
|
|
92
|
+
*/
|
|
93
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
|
|
94
|
+
/**
|
|
95
|
+
* @description Makes each card's header a button that opens and closes its details: its description, or its body
|
|
96
|
+
* template. The open events are `expandedKeys`; all are closed by default.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
readonly collapsible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
100
|
+
/**
|
|
101
|
+
* @description The events, in the order they're shown.
|
|
102
|
+
*/
|
|
103
|
+
readonly data: import("@angular/core").InputSignal<Iterable<T>>;
|
|
104
|
+
/**
|
|
105
|
+
* @description The field of each event that holds its date: a `Date`, a timestamp in milliseconds, or an ISO 8601
|
|
106
|
+
* string, which is in local time unless it gives an offset. An event without one shows no date.
|
|
107
|
+
* @default "date"
|
|
108
|
+
*/
|
|
109
|
+
readonly dateField: import("@angular/core").InputSignal<string>;
|
|
110
|
+
/**
|
|
111
|
+
* @description How each event's date is formatted, in the locale, such as `{ year: "numeric", month: "long" }`.
|
|
112
|
+
* The `<time>` element around it holds the date, and its time too when the format shows one.
|
|
113
|
+
* @default { dateStyle: "medium" }
|
|
114
|
+
*/
|
|
115
|
+
readonly dateFormat: import("@angular/core").InputSignal<Intl.DateTimeFormatOptions>;
|
|
116
|
+
/**
|
|
117
|
+
* @description The field of each event shown as its details, below its title.
|
|
118
|
+
* @default "description"
|
|
119
|
+
*/
|
|
120
|
+
readonly descriptionField: import("@angular/core").InputSignal<string>;
|
|
121
|
+
/**
|
|
122
|
+
* @description The keys of the events whose details are open, on a collapsible timeline: the values of their
|
|
123
|
+
* `keyField`, or the events themselves without one. Bind it two-way, `[(expandedKeys)]`, to follow the user's
|
|
124
|
+
* toggles.
|
|
125
|
+
* @default []
|
|
126
|
+
*/
|
|
127
|
+
readonly expandedKeys: import("@angular/core").ModelSignal<readonly unknown[]>;
|
|
128
|
+
/**
|
|
129
|
+
* @description The level of each event's heading, its title, from 1 to 6. Set it to fit the page's outline, or to
|
|
130
|
+
* `null` for no headings.
|
|
131
|
+
* @default 3
|
|
132
|
+
*/
|
|
133
|
+
readonly headingLevel: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
134
|
+
/**
|
|
135
|
+
* @description The field of each event that identifies it in `expandedKeys`, so an open event stays open when the
|
|
136
|
+
* data is replaced with copies. Without it, an event is its own key.
|
|
137
|
+
* @default ""
|
|
138
|
+
*/
|
|
139
|
+
readonly keyField: import("@angular/core").InputSignal<string>;
|
|
140
|
+
/**
|
|
141
|
+
* @description Which way the timeline runs: `"vertical"`, down the page, or `"horizontal"`, across it, scrolling
|
|
142
|
+
* sideways when its events don't fit. A horizontal timeline takes focus, so the arrow keys scroll it.
|
|
143
|
+
* @default "vertical"
|
|
144
|
+
*/
|
|
145
|
+
readonly orientation: import("@angular/core").InputSignal<TimelineOrientation>;
|
|
146
|
+
/**
|
|
147
|
+
* @description The field of each event shown below its title, such as a place or a person.
|
|
148
|
+
* @default "subtitle"
|
|
149
|
+
*/
|
|
150
|
+
readonly subtitleField: import("@angular/core").InputSignal<string>;
|
|
151
|
+
/**
|
|
152
|
+
* @description The field of each event shown as its title, the heading of its card.
|
|
153
|
+
* @default "title"
|
|
154
|
+
*/
|
|
155
|
+
readonly titleField: import("@angular/core").InputSignal<string>;
|
|
156
|
+
/**
|
|
157
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`. A horizontal timeline's
|
|
158
|
+
* events are 16rem wide; set `--mona-timeline-event-width` to change it, as in
|
|
159
|
+
* `class="[--mona-timeline-event-width:20rem]"`.
|
|
160
|
+
* @default ""
|
|
161
|
+
*/
|
|
162
|
+
readonly userClass: import("@angular/core").InputSignal<string>;
|
|
163
|
+
protected chevronClass(expanded: boolean): string;
|
|
164
|
+
protected onExpandedChange(item: TimelineItem<T>, expanded: boolean): void;
|
|
165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineComponent<any>, never>;
|
|
166
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent<any>, "mona-timeline", never, {
|
|
167
|
+
"alternate": {
|
|
168
|
+
"alias": "alternate";
|
|
169
|
+
"required": false;
|
|
170
|
+
"isSignal": true;
|
|
171
|
+
};
|
|
172
|
+
"ariaLabel": {
|
|
173
|
+
"alias": "aria-label";
|
|
174
|
+
"required": false;
|
|
175
|
+
"isSignal": true;
|
|
176
|
+
};
|
|
177
|
+
"ariaLabelledBy": {
|
|
178
|
+
"alias": "aria-labelledby";
|
|
179
|
+
"required": false;
|
|
180
|
+
"isSignal": true;
|
|
181
|
+
};
|
|
182
|
+
"collapsible": {
|
|
183
|
+
"alias": "collapsible";
|
|
184
|
+
"required": false;
|
|
185
|
+
"isSignal": true;
|
|
186
|
+
};
|
|
187
|
+
"data": {
|
|
188
|
+
"alias": "data";
|
|
189
|
+
"required": true;
|
|
190
|
+
"isSignal": true;
|
|
191
|
+
};
|
|
192
|
+
"dateField": {
|
|
193
|
+
"alias": "dateField";
|
|
194
|
+
"required": false;
|
|
195
|
+
"isSignal": true;
|
|
196
|
+
};
|
|
197
|
+
"dateFormat": {
|
|
198
|
+
"alias": "dateFormat";
|
|
199
|
+
"required": false;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
"descriptionField": {
|
|
203
|
+
"alias": "descriptionField";
|
|
204
|
+
"required": false;
|
|
205
|
+
"isSignal": true;
|
|
206
|
+
};
|
|
207
|
+
"expandedKeys": {
|
|
208
|
+
"alias": "expandedKeys";
|
|
209
|
+
"required": false;
|
|
210
|
+
"isSignal": true;
|
|
211
|
+
};
|
|
212
|
+
"headingLevel": {
|
|
213
|
+
"alias": "headingLevel";
|
|
214
|
+
"required": false;
|
|
215
|
+
"isSignal": true;
|
|
216
|
+
};
|
|
217
|
+
"keyField": {
|
|
218
|
+
"alias": "keyField";
|
|
219
|
+
"required": false;
|
|
220
|
+
"isSignal": true;
|
|
221
|
+
};
|
|
222
|
+
"orientation": {
|
|
223
|
+
"alias": "orientation";
|
|
224
|
+
"required": false;
|
|
225
|
+
"isSignal": true;
|
|
226
|
+
};
|
|
227
|
+
"subtitleField": {
|
|
228
|
+
"alias": "subtitleField";
|
|
229
|
+
"required": false;
|
|
230
|
+
"isSignal": true;
|
|
231
|
+
};
|
|
232
|
+
"titleField": {
|
|
233
|
+
"alias": "titleField";
|
|
234
|
+
"required": false;
|
|
235
|
+
"isSignal": true;
|
|
236
|
+
};
|
|
237
|
+
"userClass": {
|
|
238
|
+
"alias": "class";
|
|
239
|
+
"required": false;
|
|
240
|
+
"isSignal": true;
|
|
241
|
+
};
|
|
242
|
+
}, {
|
|
243
|
+
"expandedKeys": "expandedKeysChange";
|
|
244
|
+
}, ["bodyTemplate", "dateTemplate", "headerTemplate", "markerTemplate"], never, true, never>;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Template for each event's details, in place of its description. On a collapsible timeline, it's what opens and closes.
|
|
248
|
+
*
|
|
249
|
+
* The event is the template's implicit value (`let-event`), with its date (`let-date="date"`), whether its details are
|
|
250
|
+
* open (`let-expanded="expanded"`) and its index (`let-index="index"`). Bind the timeline's data to
|
|
251
|
+
* `monaTimelineBodyTemplateOf` to type the event; without it, the event is `any` in templates.
|
|
252
|
+
*/
|
|
253
|
+
export declare class TimelineBodyTemplateDirective<T = any> {
|
|
254
|
+
/**
|
|
255
|
+
* @description The timeline's data, used only to type the template's event. Optional.
|
|
256
|
+
* @default null
|
|
257
|
+
*/
|
|
258
|
+
readonly monaTimelineBodyTemplateOf: import("@angular/core").InputSignal<Iterable<T> | null | undefined>;
|
|
259
|
+
static ngTemplateContextGuard<T>(_directive: TimelineBodyTemplateDirective<T>, _context: unknown): _context is TimelineEventTemplateContext<T>;
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineBodyTemplateDirective<any>, never>;
|
|
261
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineBodyTemplateDirective<any>, "ng-template[monaTimelineBodyTemplate]", never, {
|
|
262
|
+
"monaTimelineBodyTemplateOf": {
|
|
263
|
+
"alias": "monaTimelineBodyTemplateOf";
|
|
264
|
+
"required": false;
|
|
265
|
+
"isSignal": true;
|
|
266
|
+
};
|
|
267
|
+
}, {}, never, never, true, never>;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Template for each event's date label, in place of its date formatted with `dateFormat`, such as a relative date. Write the date in a `<time>` element with a `datetime` attribute.
|
|
271
|
+
*
|
|
272
|
+
* The event is the template's implicit value (`let-event`), with its date (`let-date="date"`), whether its details are
|
|
273
|
+
* open (`let-expanded="expanded"`) and its index (`let-index="index"`). Bind the timeline's data to
|
|
274
|
+
* `monaTimelineDateTemplateOf` to type the event; without it, the event is `any` in templates.
|
|
275
|
+
*/
|
|
276
|
+
export declare class TimelineDateTemplateDirective<T = any> {
|
|
277
|
+
/**
|
|
278
|
+
* @description The timeline's data, used only to type the template's event. Optional.
|
|
279
|
+
* @default null
|
|
280
|
+
*/
|
|
281
|
+
readonly monaTimelineDateTemplateOf: import("@angular/core").InputSignal<Iterable<T> | null | undefined>;
|
|
282
|
+
static ngTemplateContextGuard<T>(_directive: TimelineDateTemplateDirective<T>, _context: unknown): _context is TimelineEventTemplateContext<T>;
|
|
283
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDateTemplateDirective<any>, never>;
|
|
284
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineDateTemplateDirective<any>, "ng-template[monaTimelineDateTemplate]", never, {
|
|
285
|
+
"monaTimelineDateTemplateOf": {
|
|
286
|
+
"alias": "monaTimelineDateTemplateOf";
|
|
287
|
+
"required": false;
|
|
288
|
+
"isSignal": true;
|
|
289
|
+
};
|
|
290
|
+
}, {}, never, never, true, never>;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Template for each event's header, in place of its title and subtitle. It's the event's heading and, on a collapsible timeline, the button that opens its details, so keep it to text and images: no links or controls.
|
|
294
|
+
*
|
|
295
|
+
* The event is the template's implicit value (`let-event`), with its date (`let-date="date"`), whether its details are
|
|
296
|
+
* open (`let-expanded="expanded"`) and its index (`let-index="index"`). Bind the timeline's data to
|
|
297
|
+
* `monaTimelineHeaderTemplateOf` to type the event; without it, the event is `any` in templates.
|
|
298
|
+
*/
|
|
299
|
+
export declare class TimelineHeaderTemplateDirective<T = any> {
|
|
300
|
+
/**
|
|
301
|
+
* @description The timeline's data, used only to type the template's event. Optional.
|
|
302
|
+
* @default null
|
|
303
|
+
*/
|
|
304
|
+
readonly monaTimelineHeaderTemplateOf: import("@angular/core").InputSignal<Iterable<T> | null | undefined>;
|
|
305
|
+
static ngTemplateContextGuard<T>(_directive: TimelineHeaderTemplateDirective<T>, _context: unknown): _context is TimelineEventTemplateContext<T>;
|
|
306
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineHeaderTemplateDirective<any>, never>;
|
|
307
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineHeaderTemplateDirective<any>, "ng-template[monaTimelineHeaderTemplate]", never, {
|
|
308
|
+
"monaTimelineHeaderTemplateOf": {
|
|
309
|
+
"alias": "monaTimelineHeaderTemplateOf";
|
|
310
|
+
"required": false;
|
|
311
|
+
"isSignal": true;
|
|
312
|
+
};
|
|
313
|
+
}, {}, never, never, true, never>;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Template for each event's marker on the line, in place of its dot, such as an icon for its status. It sits centered on the line. Assistive technology reads what it holds, so give an icon `aria-hidden="true"`, or text that says what it means.
|
|
317
|
+
*
|
|
318
|
+
* The event is the template's implicit value (`let-event`), with its date (`let-date="date"`), whether its details are
|
|
319
|
+
* open (`let-expanded="expanded"`) and its index (`let-index="index"`). Bind the timeline's data to
|
|
320
|
+
* `monaTimelineMarkerTemplateOf` to type the event; without it, the event is `any` in templates.
|
|
321
|
+
*/
|
|
322
|
+
export declare class TimelineMarkerTemplateDirective<T = any> {
|
|
323
|
+
/**
|
|
324
|
+
* @description The timeline's data, used only to type the template's event. Optional.
|
|
325
|
+
* @default null
|
|
326
|
+
*/
|
|
327
|
+
readonly monaTimelineMarkerTemplateOf: import("@angular/core").InputSignal<Iterable<T> | null | undefined>;
|
|
328
|
+
static ngTemplateContextGuard<T>(_directive: TimelineMarkerTemplateDirective<T>, _context: unknown): _context is TimelineEventTemplateContext<T>;
|
|
329
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineMarkerTemplateDirective<any>, never>;
|
|
330
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineMarkerTemplateDirective<any>, "ng-template[monaTimelineMarkerTemplate]", never, {
|
|
331
|
+
"monaTimelineMarkerTemplateOf": {
|
|
332
|
+
"alias": "monaTimelineMarkerTemplateOf";
|
|
333
|
+
"required": false;
|
|
334
|
+
"isSignal": true;
|
|
335
|
+
};
|
|
336
|
+
}, {}, never, never, true, never>;
|
|
337
|
+
}
|
|
338
|
+
export type { TimelineEventTemplateContext, TimelineOrientation };
|