@nanahoshi/mona-ui 0.43.1 → 0.45.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/chat/package.json +4 -0
- package/docs/api/chat.json +1 -0
- package/docs/api/chat.md +212 -0
- package/docs/api/i18n.json +1 -1
- package/docs/api/i18n.md +34 -0
- package/docs/api/index.json +1 -1
- package/docs/api/locales.json +1 -1
- package/docs/api/locales.md +14 -14
- package/docs/api/timeline.json +1 -0
- package/docs/api/timeline.md +188 -0
- package/docs/chat.md +480 -0
- package/docs/manifest.json +1 -1
- package/docs/timeline.md +482 -0
- package/fesm2022/nanahoshi-mona-ui-chat.mjs +1230 -0
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +37 -0
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +6 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +29 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +19 -0
- package/fesm2022/nanahoshi-mona-ui-timeline.mjs +1028 -0
- package/i18n/catalogs/en-US.messages.json +19 -0
- package/llms.txt +8 -1
- package/locales/ar-sa/ar-sa.messages.json +19 -0
- package/locales/de-de/de-de.messages.json +19 -0
- package/locales/es-es/es-es.messages.json +19 -0
- package/locales/fr-fr/fr-fr.messages.json +19 -0
- package/locales/id-id/id-id.messages.json +19 -0
- package/locales/it-it/it-it.messages.json +19 -0
- package/locales/ja-jp/ja-jp.messages.json +19 -0
- package/locales/ko-kr/ko-kr.messages.json +19 -0
- package/locales/pl-pl/pl-pl.messages.json +19 -0
- package/locales/pt-br/pt-br.messages.json +19 -0
- package/locales/ru-ru/ru-ru.messages.json +19 -0
- package/locales/tr-tr/tr-tr.messages.json +19 -0
- package/locales/zh-cn/zh-cn.messages.json +19 -0
- package/locales/zh-tw/zh-tw.messages.json +19 -0
- package/package.json +9 -1
- package/timeline/package.json +4 -0
- package/types/nanahoshi-mona-ui-chat.d.ts +424 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +43 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +19 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +19 -0
- package/types/nanahoshi-mona-ui-timeline.d.ts +338 -0
|
@@ -123,6 +123,25 @@ export declare const MONA_JA_JP_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, _count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_KO_KR_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, _count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_PL_PL_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_PT_BR_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_RU_RU_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_TR_TR_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, _count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_ZH_CN_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, _count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -123,6 +123,25 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
123
123
|
zoomedIn: string;
|
|
124
124
|
zoomedOut: string;
|
|
125
125
|
};
|
|
126
|
+
chat: {
|
|
127
|
+
attachFiles: string;
|
|
128
|
+
messageBox: string;
|
|
129
|
+
messages: string;
|
|
130
|
+
newMessage: (name: string, text: string) => string;
|
|
131
|
+
newMessages: string;
|
|
132
|
+
noMessages: string;
|
|
133
|
+
notSent: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
removeFile: (name: string) => string;
|
|
136
|
+
retry: string;
|
|
137
|
+
send: string;
|
|
138
|
+
sending: string;
|
|
139
|
+
stop: string;
|
|
140
|
+
suggestions: string;
|
|
141
|
+
typing: (names: string, _count: number) => string;
|
|
142
|
+
typingMany: (count: number) => string;
|
|
143
|
+
you: string;
|
|
144
|
+
};
|
|
126
145
|
chip: {
|
|
127
146
|
removeLabel: (label?: string) => string;
|
|
128
147
|
};
|
|
@@ -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 };
|