@thalassic/ui 22.14.3 → 22.15.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/thalassic-ui-rich-text-editor.mjs +650 -0
- package/fesm2022/thalassic-ui-rich-text-editor.mjs.map +1 -0
- package/fesm2022/thalassic-ui.mjs +1088 -533
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +46 -2
- package/types/thalassic-ui-rich-text-editor.d.ts +141 -0
- package/types/thalassic-ui.d.ts +299 -27
package/package.json
CHANGED
|
@@ -1,17 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thalassic/ui",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/aria": "^22.0.0",
|
|
7
7
|
"@angular/cdk": "^22.0.0",
|
|
8
8
|
"@angular/common": "^22.0.0",
|
|
9
9
|
"@angular/core": "^22.0.0",
|
|
10
|
-
"chart.js": "^4.0.0"
|
|
10
|
+
"chart.js": "^4.0.0",
|
|
11
|
+
"markdown-it": "^14.0.0",
|
|
12
|
+
"prosemirror-commands": "^1.7.0",
|
|
13
|
+
"prosemirror-history": "^1.4.0",
|
|
14
|
+
"prosemirror-inputrules": "^1.5.0",
|
|
15
|
+
"prosemirror-keymap": "^1.2.0",
|
|
16
|
+
"prosemirror-markdown": "^1.13.0",
|
|
17
|
+
"prosemirror-model": "^1.25.0",
|
|
18
|
+
"prosemirror-schema-list": "^1.5.0",
|
|
19
|
+
"prosemirror-state": "^1.4.0",
|
|
20
|
+
"prosemirror-view": "^1.42.0"
|
|
11
21
|
},
|
|
12
22
|
"peerDependenciesMeta": {
|
|
13
23
|
"chart.js": {
|
|
14
24
|
"optional": true
|
|
25
|
+
},
|
|
26
|
+
"markdown-it": {
|
|
27
|
+
"optional": true
|
|
28
|
+
},
|
|
29
|
+
"prosemirror-commands": {
|
|
30
|
+
"optional": true
|
|
31
|
+
},
|
|
32
|
+
"prosemirror-history": {
|
|
33
|
+
"optional": true
|
|
34
|
+
},
|
|
35
|
+
"prosemirror-inputrules": {
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
"prosemirror-keymap": {
|
|
39
|
+
"optional": true
|
|
40
|
+
},
|
|
41
|
+
"prosemirror-markdown": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
"prosemirror-model": {
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
47
|
+
"prosemirror-schema-list": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"prosemirror-state": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"prosemirror-view": {
|
|
54
|
+
"optional": true
|
|
15
55
|
}
|
|
16
56
|
},
|
|
17
57
|
"publishConfig": {
|
|
@@ -39,6 +79,10 @@
|
|
|
39
79
|
"./fontawesome": {
|
|
40
80
|
"types": "./types/thalassic-ui-fontawesome.d.ts",
|
|
41
81
|
"default": "./fesm2022/thalassic-ui-fontawesome.mjs"
|
|
82
|
+
},
|
|
83
|
+
"./rich-text-editor": {
|
|
84
|
+
"types": "./types/thalassic-ui-rich-text-editor.d.ts",
|
|
85
|
+
"default": "./fesm2022/thalassic-ui-rich-text-editor.mjs"
|
|
42
86
|
}
|
|
43
87
|
},
|
|
44
88
|
"type": "module",
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, ModelSignal, InputSignal, InputSignalWithTransform, WritableSignal, Signal, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { systemIcon, controlSize, ValueFormControl } from '@thalassic/ui';
|
|
4
|
+
import { Command, EditorState } from 'prosemirror-state';
|
|
5
|
+
|
|
6
|
+
/** A single formatting control that can appear in the editor toolbar. */
|
|
7
|
+
type richTextToolbarItem = 'bold' | 'italic' | 'strikethrough' | 'code' | 'heading1' | 'heading2' | 'heading3' | 'bulletList' | 'orderedList' | 'blockquote' | 'link' | 'codeBlock';
|
|
8
|
+
/** A toolbar entry: either a formatting control or a visual group separator. */
|
|
9
|
+
type richTextToolbarEntry = richTextToolbarItem | 'separator';
|
|
10
|
+
/** Runtime description of a toolbar control, resolved against the editor schema. */
|
|
11
|
+
interface RichTextToolbarButton {
|
|
12
|
+
id: richTextToolbarItem;
|
|
13
|
+
/** Accessible name and tooltip text for the control. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Human-readable keyboard shortcut shown in the tooltip (e.g. `⌘B`). */
|
|
16
|
+
shortcut?: string;
|
|
17
|
+
/** Short text glyph rendered instead of an icon (used by the heading controls). */
|
|
18
|
+
text?: string;
|
|
19
|
+
/** Registry icon rendered on the control — overridable via `provideThalassicIcons`. */
|
|
20
|
+
icon?: systemIcon;
|
|
21
|
+
/** The ProseMirror command the control dispatches. */
|
|
22
|
+
command: Command;
|
|
23
|
+
/** Whether the control's formatting is applied to the current selection. */
|
|
24
|
+
isActive: (state: EditorState) => boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Editor actions that need the host component (e.g. UI beyond the document), wired into the
|
|
28
|
+
* plugin keymap so their keyboard shortcuts reach the component.
|
|
29
|
+
*/
|
|
30
|
+
interface RichTextEditorHandlers {
|
|
31
|
+
/** Toggles the link on the current selection (opens the URL editor when adding one). */
|
|
32
|
+
toggleLink: () => boolean;
|
|
33
|
+
}
|
|
34
|
+
/** A toolbar entry resolved for rendering: either a separator or a control. */
|
|
35
|
+
interface RichTextResolvedEntry {
|
|
36
|
+
separator: boolean;
|
|
37
|
+
button: RichTextToolbarButton | null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** User-facing strings rendered by the editor, overridable for localization. */
|
|
41
|
+
interface RichTextEditorLabels {
|
|
42
|
+
/** Accessible name for the formatting toolbar. */
|
|
43
|
+
toolbar: string;
|
|
44
|
+
/** Accessible name for the link URL input. */
|
|
45
|
+
linkUrl: string;
|
|
46
|
+
/** Placeholder shown in the link URL input. */
|
|
47
|
+
linkPlaceholder: string;
|
|
48
|
+
/** Label for the button that applies the link. */
|
|
49
|
+
linkApply: string;
|
|
50
|
+
/** Label for the button that dismisses the link editor. */
|
|
51
|
+
linkCancel: string;
|
|
52
|
+
/** Accessible names (and tooltips) for the toolbar controls, keyed by control. */
|
|
53
|
+
controls: Record<richTextToolbarItem, string>;
|
|
54
|
+
}
|
|
55
|
+
interface RichTextEditorConfig {
|
|
56
|
+
size: controlSize;
|
|
57
|
+
placeholder: string;
|
|
58
|
+
fluid: boolean;
|
|
59
|
+
/** Ordered toolbar layout; `separator` entries render a visual group divider. */
|
|
60
|
+
toolbar: richTextToolbarEntry[];
|
|
61
|
+
/** Minimum height of the editable area, expressed in rows of text. */
|
|
62
|
+
minRows: number;
|
|
63
|
+
/** User-facing strings, overridable for localization. */
|
|
64
|
+
labels: RichTextEditorLabels;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Consumer-supplied config overrides. Every field is optional, including the nested
|
|
68
|
+
* `labels` (and its per-control map), so a caller can retitle a single control without
|
|
69
|
+
* restating the rest.
|
|
70
|
+
*/
|
|
71
|
+
type richTextEditorConfigOverride = Partial<Omit<RichTextEditorConfig, 'labels'>> & {
|
|
72
|
+
labels?: Partial<Omit<RichTextEditorLabels, 'controls'>> & {
|
|
73
|
+
controls?: Partial<Record<richTextToolbarItem, string>>;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
declare const DEFAULT_RICH_TEXT_EDITOR_CONFIG: RichTextEditorConfig;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A WYSIWYG rich-text form control whose value is a Markdown string. The editable surface is
|
|
80
|
+
* powered by ProseMirror against a Markdown-capable schema, so content round-trips losslessly
|
|
81
|
+
* to Markdown while the user edits formatted text directly.
|
|
82
|
+
*/
|
|
83
|
+
declare class RichTextEditor extends ValueFormControl<string> implements OnDestroy {
|
|
84
|
+
private readonly _config;
|
|
85
|
+
readonly value: ModelSignal<string>;
|
|
86
|
+
readonly placeholder: InputSignal<string>;
|
|
87
|
+
readonly size: InputSignal<controlSize>;
|
|
88
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
readonly toolbar: InputSignal<richTextToolbarEntry[]>;
|
|
90
|
+
readonly minRows: InputSignal<number>;
|
|
91
|
+
private readonly _editorHost;
|
|
92
|
+
private readonly _linkInput;
|
|
93
|
+
private readonly _editorState;
|
|
94
|
+
protected readonly linkEditing: WritableSignal<boolean>;
|
|
95
|
+
protected readonly linkUrl: WritableSignal<string>;
|
|
96
|
+
protected readonly labels: RichTextEditorLabels;
|
|
97
|
+
private readonly _buttons;
|
|
98
|
+
private _view;
|
|
99
|
+
private _lastEmitted;
|
|
100
|
+
protected readonly classes: Signal<string[]>;
|
|
101
|
+
protected readonly entries: Signal<RichTextResolvedEntry[]>;
|
|
102
|
+
private readonly _contentAttributes;
|
|
103
|
+
constructor();
|
|
104
|
+
protected isActive(button: RichTextToolbarButton): boolean;
|
|
105
|
+
protected runCommand(button: RichTextToolbarButton): void;
|
|
106
|
+
/**
|
|
107
|
+
* Returns focus to the editable surface after a pointer-driven toolbar click.
|
|
108
|
+
*
|
|
109
|
+
* Bound on the toolbar container rather than the controls themselves: the roving-tabindex
|
|
110
|
+
* behavior focuses the clicked control from that control's own `click` handler, so only a
|
|
111
|
+
* listener further up the bubble path is guaranteed to run afterwards. Restoring focus
|
|
112
|
+
* there keeps it inside the same event dispatch, so no frame ever paints with focus — and
|
|
113
|
+
* its ring — on the button.
|
|
114
|
+
*
|
|
115
|
+
* Keyboard-activated clicks report an empty `pointerType` and are left alone: there the
|
|
116
|
+
* toolbar is the user's position in the widget and must keep both focus and its ring.
|
|
117
|
+
*/
|
|
118
|
+
protected restoreEditorFocus(event: MouseEvent): void;
|
|
119
|
+
protected applyLink(event?: Event): void;
|
|
120
|
+
protected cancelLink(event?: Event): void;
|
|
121
|
+
protected onLinkInput(event: Event): void;
|
|
122
|
+
private _createView;
|
|
123
|
+
/**
|
|
124
|
+
* Whether an href is safe to store as a link: scheme-less (relative, `#anchor`) or
|
|
125
|
+
* carrying an allow-listed scheme. Rejects `javascript:`/`data:`-style URLs so a
|
|
126
|
+
* crafted link cannot smuggle an executable payload into the emitted Markdown.
|
|
127
|
+
*/
|
|
128
|
+
private _isSafeHref;
|
|
129
|
+
private _isDocumentEmpty;
|
|
130
|
+
private _toggleLink;
|
|
131
|
+
ngOnDestroy(): void;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditor, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditor, "tls-rich-text-editor", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "toolbar": { "alias": "toolbar"; "required": false; "isSignal": true; }; "minRows": { "alias": "minRows"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare const RICH_TEXT_EDITOR_CONFIG: InjectionToken<RichTextEditorConfig>;
|
|
137
|
+
|
|
138
|
+
declare const provideThalassicRichTextEditorConfig: (config: richTextEditorConfigOverride) => EnvironmentProviders;
|
|
139
|
+
|
|
140
|
+
export { DEFAULT_RICH_TEXT_EDITOR_CONFIG, RICH_TEXT_EDITOR_CONFIG, RichTextEditor, provideThalassicRichTextEditorConfig };
|
|
141
|
+
export type { RichTextEditorConfig, RichTextEditorHandlers, RichTextEditorLabels, RichTextResolvedEntry, RichTextToolbarButton, richTextEditorConfigOverride, richTextToolbarEntry, richTextToolbarItem };
|
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, Type, EnvironmentProviders,
|
|
2
|
+
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, OutputEmitterRef, Type, EnvironmentProviders, ElementRef, OnInit, TrackByFunction, ComponentRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
3
3
|
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { Day, Locale } from 'date-fns';
|
|
5
5
|
import { Point } from '@thalassic/core';
|
|
6
6
|
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
7
7
|
import * as _thalassic_ui from '@thalassic/ui';
|
|
8
8
|
import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
|
|
9
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
9
|
+
import { ComponentType, ComponentPortal } from '@angular/cdk/portal';
|
|
10
10
|
import { Observable } from 'rxjs';
|
|
11
11
|
import { SafeHtml } from '@angular/platform-browser';
|
|
12
12
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
@@ -88,6 +88,8 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
88
88
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl<any>, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
declare const FORM_CONTROL: InjectionToken<FormControl<unknown>>;
|
|
92
|
+
|
|
91
93
|
/**
|
|
92
94
|
* When a control's invalid state becomes visible (red styling and form-item error message).
|
|
93
95
|
* `touched` surfaces it once the field has been blurred; `touched-dirty` additionally requires the
|
|
@@ -268,6 +270,192 @@ type overlayPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start'
|
|
|
268
270
|
|
|
269
271
|
type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
270
272
|
|
|
273
|
+
/** A single activity record. Records falling on the same calendar day are summed. */
|
|
274
|
+
interface ActivityHeatmapEntry {
|
|
275
|
+
/** Day the activity happened on; the time of day is ignored. */
|
|
276
|
+
date: Date;
|
|
277
|
+
/** Amount of activity on that day. */
|
|
278
|
+
count: number;
|
|
279
|
+
/** Consumer payload, surfaced on the resolved day and in the selection output. */
|
|
280
|
+
data?: unknown;
|
|
281
|
+
}
|
|
282
|
+
/** A day cell resolved for rendering. */
|
|
283
|
+
interface ActivityHeatmapDay {
|
|
284
|
+
date: Date;
|
|
285
|
+
/** Summed count of every entry on this day. */
|
|
286
|
+
count: number;
|
|
287
|
+
/** Intensity step: 0 for no activity, up to `levels - 1` for the busiest days. */
|
|
288
|
+
level: number;
|
|
289
|
+
/** Whether the day falls inside the requested range; padding days complete the first and last week. */
|
|
290
|
+
inRange: boolean;
|
|
291
|
+
isToday: boolean;
|
|
292
|
+
/** Accessible name and tooltip text for the cell, resolved from the configured labels. */
|
|
293
|
+
label: string;
|
|
294
|
+
/** Payload of the last entry contributing to this day, `undefined` when there is none. */
|
|
295
|
+
data: unknown;
|
|
296
|
+
}
|
|
297
|
+
/** One weekday row of the grid: a single weekday across every week column. */
|
|
298
|
+
interface ActivityHeatmapRow {
|
|
299
|
+
/** Weekday label, empty when the row is skipped by the weekday label interval. */
|
|
300
|
+
label: string;
|
|
301
|
+
days: ActivityHeatmapDay[];
|
|
302
|
+
}
|
|
303
|
+
/** A month heading spanning the week columns that belong to that month. */
|
|
304
|
+
interface ActivityHeatmapMonth {
|
|
305
|
+
label: string;
|
|
306
|
+
/** 1-based grid column of the month's first week. */
|
|
307
|
+
column: number;
|
|
308
|
+
/** Week columns the heading spans. */
|
|
309
|
+
span: number;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Calendar heatmap of daily activity: one column per week, one row per weekday, each cell
|
|
314
|
+
* shaded by how much activity its day carries.
|
|
315
|
+
*
|
|
316
|
+
* Cells are deliberately dense — the year-at-a-glance layout is the point — so they fall
|
|
317
|
+
* below the WCAG 2.5.8 target size and rely on that success criterion's essential-presentation
|
|
318
|
+
* exception. Every cell is reachable with the grid's arrow keys and carries its exact total as
|
|
319
|
+
* an accessible name, so the data never depends on either the fill shade or a precise tap.
|
|
320
|
+
*/
|
|
321
|
+
declare class ActivityHeatmap {
|
|
322
|
+
private readonly _config;
|
|
323
|
+
private readonly _locale;
|
|
324
|
+
readonly entries: InputSignal<ActivityHeatmapEntry[]>;
|
|
325
|
+
/** First day of the range; defaults to `rangeMonths` before the end of the range. */
|
|
326
|
+
readonly startDate: InputSignal<Date | undefined>;
|
|
327
|
+
/** Last day of the range; defaults to today. */
|
|
328
|
+
readonly endDate: InputSignal<Date | undefined>;
|
|
329
|
+
/** Intensity steps including the empty one, so `levels - 1` shades carry activity. */
|
|
330
|
+
readonly levels: InputSignalWithTransform<number, unknown>;
|
|
331
|
+
/**
|
|
332
|
+
* Minimum count of each level from 1 upwards, ascending. Left unset the thresholds are
|
|
333
|
+
* derived from the busiest day, so the scale always spans the data.
|
|
334
|
+
*/
|
|
335
|
+
readonly thresholds: InputSignal<number[] | undefined>;
|
|
336
|
+
readonly weekStartsOn: InputSignal<Day>;
|
|
337
|
+
/** Short weekday labels, Sunday-first; rotated to honour `weekStartsOn`. */
|
|
338
|
+
readonly weekDays: InputSignal<string[]>;
|
|
339
|
+
/** Every nth weekday row carries a label; 1 labels all seven, 2 labels every other row. */
|
|
340
|
+
readonly weekdayLabelInterval: InputSignalWithTransform<number, unknown>;
|
|
341
|
+
readonly color: InputSignal<color>;
|
|
342
|
+
readonly size: InputSignal<controlSize>;
|
|
343
|
+
readonly showMonthLabels: InputSignalWithTransform<boolean, unknown>;
|
|
344
|
+
readonly showWeekdayLabels: InputSignalWithTransform<boolean, unknown>;
|
|
345
|
+
readonly showLegend: InputSignalWithTransform<boolean, unknown>;
|
|
346
|
+
readonly showTooltip: InputSignalWithTransform<boolean, unknown>;
|
|
347
|
+
/** Accessible name for the grid; falls back to the configured label. */
|
|
348
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
349
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
350
|
+
/** Emits the activated day; padding days outside the range never emit. */
|
|
351
|
+
readonly daySelect: OutputEmitterRef<ActivityHeatmapDay>;
|
|
352
|
+
protected readonly legendLess: string;
|
|
353
|
+
protected readonly legendMore: string;
|
|
354
|
+
private readonly _dateOptions;
|
|
355
|
+
/** Ticking current time, so the today marker tracks the clock across midnight. */
|
|
356
|
+
private readonly _now;
|
|
357
|
+
/** Steps actually rendered; a heatmap needs an empty step plus at least one active one. */
|
|
358
|
+
protected readonly resolvedLevels: Signal<number>;
|
|
359
|
+
protected readonly gridLabel: Signal<string | undefined>;
|
|
360
|
+
/** Weekday rows, each holding one weekday's cell across every week column. */
|
|
361
|
+
protected readonly rows: Signal<ActivityHeatmapRow[]>;
|
|
362
|
+
protected readonly weekCount: Signal<number>;
|
|
363
|
+
protected readonly months: Signal<ActivityHeatmapMonth[]>;
|
|
364
|
+
/** Every intensity step, low to high, for the legend's sample swatches. */
|
|
365
|
+
protected readonly legendLevels: Signal<number[]>;
|
|
366
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
367
|
+
/** Inclusive day range covered by the heatmap, whether given or derived from today. */
|
|
368
|
+
private readonly _range;
|
|
369
|
+
/**
|
|
370
|
+
* Share of the theme color a cell of `level` is filled with, `0` leaving it on the empty
|
|
371
|
+
* surface. Level 1 already carries `MIN_LEVEL_INTENSITY` so the faintest active day stays
|
|
372
|
+
* distinguishable, and the remaining levels spread evenly up to the full color.
|
|
373
|
+
*/
|
|
374
|
+
protected intensity(level: number): number;
|
|
375
|
+
protected onDaySelect(day: ActivityHeatmapDay): void;
|
|
376
|
+
/** Space would scroll the grid; consume it and activate the focused day instead. */
|
|
377
|
+
protected onDaySpace(event: Event, day: ActivityHeatmapDay): void;
|
|
378
|
+
/** Consumer thresholds when given, otherwise a scale spanning the busiest day in range. */
|
|
379
|
+
private _resolveThresholds;
|
|
380
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityHeatmap, never>;
|
|
381
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityHeatmap, "tls-activity-heatmap", never, { "entries": { "alias": "entries"; "required": false; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; "levels": { "alias": "levels"; "required": false; "isSignal": true; }; "thresholds": { "alias": "thresholds"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; "weekdayLabelInterval": { "alias": "weekdayLabelInterval"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showMonthLabels": { "alias": "showMonthLabels"; "required": false; "isSignal": true; }; "showWeekdayLabels": { "alias": "showWeekdayLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showTooltip": { "alias": "showTooltip"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "daySelect": "daySelect"; }, never, never, true, never>;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/** User-facing strings rendered by the heatmap, overridable for localization. */
|
|
385
|
+
interface ActivityHeatmapLabels {
|
|
386
|
+
/** Accessible name for the grid, used when the consumer supplies none. */
|
|
387
|
+
grid: string;
|
|
388
|
+
/** Accessible name and tooltip for a day inside the range, given its total and formatted date. */
|
|
389
|
+
day: (count: number, date: string) => string;
|
|
390
|
+
/** Accessible name for a padding day that only completes the first or last week. */
|
|
391
|
+
outsideRange: string;
|
|
392
|
+
/** Legend caption at the low-intensity end. */
|
|
393
|
+
less: string;
|
|
394
|
+
/** Legend caption at the high-intensity end. */
|
|
395
|
+
more: string;
|
|
396
|
+
}
|
|
397
|
+
interface ActivityHeatmapConfig {
|
|
398
|
+
/** Intensity steps including the empty one, so `levels - 1` shades carry activity. */
|
|
399
|
+
levels: number;
|
|
400
|
+
/** First day of the week (`date-fns` convention: 0 = Sunday); becomes the grid's first row. */
|
|
401
|
+
weekStartsOn: Day;
|
|
402
|
+
/** Short weekday labels, Sunday-first; rotated to honour `weekStartsOn`. */
|
|
403
|
+
weekDays: string[];
|
|
404
|
+
/** Length of the default range in months, used when no `startDate` is given. */
|
|
405
|
+
rangeMonths: number;
|
|
406
|
+
/** Every nth weekday row carries a label, so dense grids stay legible; 1 labels every row. */
|
|
407
|
+
weekdayLabelInterval: number;
|
|
408
|
+
color: color;
|
|
409
|
+
/** Cell size, driving the whole grid's density. */
|
|
410
|
+
size: controlSize;
|
|
411
|
+
showMonthLabels: boolean;
|
|
412
|
+
showWeekdayLabels: boolean;
|
|
413
|
+
showLegend: boolean;
|
|
414
|
+
/** Whether hovering or focusing a day reveals its total in a tooltip. */
|
|
415
|
+
showTooltip: boolean;
|
|
416
|
+
labels: ActivityHeatmapLabels;
|
|
417
|
+
}
|
|
418
|
+
declare const DEFAULT_ACTIVITY_HEATMAP_CONFIG: ActivityHeatmapConfig;
|
|
419
|
+
|
|
420
|
+
declare const ACTIVITY_HEATMAP_CONFIG: InjectionToken<ActivityHeatmapConfig>;
|
|
421
|
+
|
|
422
|
+
/** A day's summed activity together with the payload of the last entry that contributed to it. */
|
|
423
|
+
interface ActivityHeatmapTotal {
|
|
424
|
+
count: number;
|
|
425
|
+
data: unknown;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Sums entries per calendar day, keyed by the day's start-of-day timestamp so lookups
|
|
429
|
+
* are exact regardless of the time of day each entry carries.
|
|
430
|
+
*/
|
|
431
|
+
declare const aggregateActivityEntries: (entries: ActivityHeatmapEntry[]) => Map<number, ActivityHeatmapTotal>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Month headings for the week columns starting at `weekStarts`, each spanning the columns
|
|
435
|
+
* whose first day falls in that month. `formatMonth` renders the heading text, keeping the
|
|
436
|
+
* locale concern with the caller.
|
|
437
|
+
*
|
|
438
|
+
* Segments are emitted as they close, so a discarded sliver is never formatted.
|
|
439
|
+
*/
|
|
440
|
+
declare const buildActivityMonthSegments: (weekStarts: Date[], formatMonth: (date: Date) => string) => ActivityHeatmapMonth[];
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Minimum count required for each activity level, ascending, covering levels 1…`levels - 1`
|
|
444
|
+
* (level 0 is the empty day). Level 1 always starts at a single activity, so no active day
|
|
445
|
+
* renders as empty, and the busiest day always reaches the top level; the levels in between
|
|
446
|
+
* are spread evenly across that span.
|
|
447
|
+
*
|
|
448
|
+
* Returns an empty array when nothing is active, in which case every day resolves to level 0.
|
|
449
|
+
*/
|
|
450
|
+
declare const buildActivityThresholds: (maxCount: number, levels: number) => number[];
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Intensity step for `count` against ascending `thresholds` (the minimum count of each
|
|
454
|
+
* level from 1 upwards): the highest level whose threshold the count reaches, or 0 when
|
|
455
|
+
* it reaches none.
|
|
456
|
+
*/
|
|
457
|
+
declare const resolveActivityLevel: (count: number, thresholds: number[]) => number;
|
|
458
|
+
|
|
271
459
|
type buttonType = 'submit' | 'reset' | 'button';
|
|
272
460
|
type buttonVariant = 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated';
|
|
273
461
|
type buttonColor = color;
|
|
@@ -338,7 +526,7 @@ declare const BADGE_CONFIG: InjectionToken<BadgeConfig>;
|
|
|
338
526
|
* them for their own kit via `provideThalassicIcons`, so this list is the icon
|
|
339
527
|
* contract between the library and the app.
|
|
340
528
|
*/
|
|
341
|
-
type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'success' | 'warning' | 'error' | 'info';
|
|
529
|
+
type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'success' | 'warning' | 'error' | 'info' | 'bold' | 'italic' | 'strikethrough' | 'inline-code' | 'bullet-list' | 'ordered-list' | 'blockquote' | 'link' | 'code-block';
|
|
342
530
|
|
|
343
531
|
declare class Icon {
|
|
344
532
|
private readonly _iconService;
|
|
@@ -3002,47 +3190,128 @@ declare const DEFAULT_TOAST_CONFIG: ToastConfig;
|
|
|
3002
3190
|
|
|
3003
3191
|
declare const TOAST_CONFIG: InjectionToken<ToastConfig>;
|
|
3004
3192
|
|
|
3193
|
+
declare class TooltipService {
|
|
3194
|
+
private _overlay;
|
|
3195
|
+
private _overlayRef;
|
|
3196
|
+
show<T>(origin: FlexibleConnectedPositionStrategyOrigin, positions: ConnectedPosition[], tooltipPortal: ComponentPortal<T>): ComponentRef<T>;
|
|
3197
|
+
move(origin: FlexibleConnectedPositionStrategyOrigin, positions: ConnectedPosition[]): void;
|
|
3198
|
+
hide(): void;
|
|
3199
|
+
dispose(): void;
|
|
3200
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipService, never>;
|
|
3201
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TooltipService>;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3005
3204
|
type tooltipOrigin = 'cursor' | 'element';
|
|
3006
3205
|
type tooltipPosition = overlayPosition;
|
|
3007
3206
|
type tooltipColor = color;
|
|
3008
3207
|
|
|
3208
|
+
/**
|
|
3209
|
+
* Shared machinery behind every tooltip trigger: the appearance inputs, the overlay lifecycle,
|
|
3210
|
+
* and the `aria-describedby` link. A subclass owns only *when* a tooltip opens and *which*
|
|
3211
|
+
* element it anchors to — `[tlsTooltip]` binds its own host, `[tlsTooltipDelegate]` resolves an
|
|
3212
|
+
* item out of a delegated event — and calls `_show` / `_hide` accordingly.
|
|
3213
|
+
*
|
|
3214
|
+
* One tooltip is visible at a time per trigger; showing for a different anchor closes the
|
|
3215
|
+
* previous one first, and showing for the anchor already open is a no-op so a hovered element
|
|
3216
|
+
* receiving focus does not rebuild the overlay.
|
|
3217
|
+
*/
|
|
3218
|
+
declare abstract class TooltipTrigger implements OnDestroy {
|
|
3219
|
+
protected readonly _tooltipService: TooltipService;
|
|
3220
|
+
protected readonly _renderer: Renderer2;
|
|
3221
|
+
protected readonly _config: _thalassic_ui.TooltipConfig;
|
|
3222
|
+
readonly tooltipDisabled: InputSignal<boolean>;
|
|
3223
|
+
readonly tooltipOrigin: InputSignal<tooltipOrigin>;
|
|
3224
|
+
readonly tooltipPositions: InputSignal<ConnectedPosition[] | undefined>;
|
|
3225
|
+
readonly tooltipPosition: InputSignal<tooltipPosition>;
|
|
3226
|
+
readonly tooltipOffset: InputSignal<Point>;
|
|
3227
|
+
readonly tooltipColor: InputSignal<tooltipColor>;
|
|
3228
|
+
/** Element the visible tooltip is anchored to, `null` while nothing is shown. */
|
|
3229
|
+
private _anchor;
|
|
3230
|
+
/** Id of the description the visible tooltip added, so only that one is taken back. */
|
|
3231
|
+
private _describedById;
|
|
3232
|
+
protected readonly _positions: Signal<ConnectedPosition[]>;
|
|
3233
|
+
/** Anchor of the visible tooltip, for a subclass deciding whether an event concerns it. */
|
|
3234
|
+
protected get anchor(): HTMLElement | null;
|
|
3235
|
+
/** Dismisses the tooltip without moving the pointer or focus (WCAG 1.4.13). */
|
|
3236
|
+
protected onEscape(): void;
|
|
3237
|
+
/**
|
|
3238
|
+
* Opens the tooltip for `anchor`. `point` anchors to the cursor instead, when the origin is
|
|
3239
|
+
* configured that way and the caller has a pointer position to give.
|
|
3240
|
+
*/
|
|
3241
|
+
protected _show(anchor: HTMLElement, content: string | TemplateRef<unknown>, data?: unknown, point?: Point): void;
|
|
3242
|
+
protected _hide(): void;
|
|
3243
|
+
/** Takes back only the description this trigger added, leaving the consumer's own intact. */
|
|
3244
|
+
private _undescribe;
|
|
3245
|
+
ngOnDestroy(): void;
|
|
3246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipTrigger, never>;
|
|
3247
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipTrigger, never, never, { "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; "isSignal": true; }; "tooltipOrigin": { "alias": "tooltipOrigin"; "required": false; "isSignal": true; }; "tooltipPositions": { "alias": "tooltipPositions"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltipOffset": { "alias": "tooltipOffset"; "required": false; "isSignal": true; }; "tooltipColor": { "alias": "tooltipColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
/**
|
|
3251
|
+
* Serves tooltips for a whole subtree from one instance. Any descendant carrying the content
|
|
3252
|
+
* attribute (`data-tooltip` by default) gets a tooltip, without each one needing its own
|
|
3253
|
+
* `[tlsTooltip]`. Events are delegated to this host, so a grid of hundreds of cells costs one
|
|
3254
|
+
* directive, one overlay service and one set of listeners rather than one of each per cell.
|
|
3255
|
+
*
|
|
3256
|
+
* Interaction matches `[tlsTooltip]`: hover for mouse and pen, tap-to-toggle for touch, show
|
|
3257
|
+
* on keyboard focus, dismiss on Escape without moving the pointer or focus (WCAG 1.4.13), and
|
|
3258
|
+
* `aria-describedby` linking the item to the visible tooltip — joining any description the item
|
|
3259
|
+
* already carries, and omitted entirely when the item's `aria-label` already says the same thing.
|
|
3260
|
+
*
|
|
3261
|
+
* Trade-off: content is a plain string read from an attribute when the tooltip opens, so a
|
|
3262
|
+
* `TemplateRef` tooltip is not available here and an attribute change while the tooltip is
|
|
3263
|
+
* visible shows up on the next open. Reach for `[tlsTooltip]` when a handful of tooltips need
|
|
3264
|
+
* rich content, and for this one when the number of them is what costs.
|
|
3265
|
+
*/
|
|
3266
|
+
declare class TooltipDelegateDirective extends TooltipTrigger {
|
|
3267
|
+
private readonly _elementRef;
|
|
3268
|
+
/**
|
|
3269
|
+
* Attribute a descendant carries its tooltip text in, which also matches the descendants
|
|
3270
|
+
* that own a tooltip. Written bare (`tlsTooltipDelegate`) it stays at the default.
|
|
3271
|
+
*/
|
|
3272
|
+
readonly contentAttribute: InputSignalWithTransform<string, string | undefined>;
|
|
3273
|
+
private readonly _selector;
|
|
3274
|
+
protected onPointerOver(event: PointerEvent): void;
|
|
3275
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
3276
|
+
protected onPointerOut(event: PointerEvent): void;
|
|
3277
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
3278
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
3279
|
+
/** The tooltip-owning ancestor of `target` within this subtree, if there is one. */
|
|
3280
|
+
private _resolveItem;
|
|
3281
|
+
private _showItem;
|
|
3282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDelegateDirective, never>;
|
|
3283
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDelegateDirective, "[tlsTooltipDelegate]", never, { "contentAttribute": { "alias": "tlsTooltipDelegate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
/** Attribute a delegated tooltip reads its content from, and matches its items by. */
|
|
3287
|
+
declare const DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE = "data-tooltip";
|
|
3288
|
+
|
|
3009
3289
|
/**
|
|
3010
3290
|
* Attaches a tooltip to the host element. Shows on hover and on keyboard focus,
|
|
3011
3291
|
* toggles on touch, and dismisses on Escape without moving the pointer or focus
|
|
3012
3292
|
* (WCAG 1.4.13). The tooltip is linked to the host via `aria-describedby` while
|
|
3013
|
-
* visible
|
|
3293
|
+
* visible, joining any description the host already carries rather than replacing
|
|
3294
|
+
* it, and leaving that one behind when the tooltip hides.
|
|
3014
3295
|
*
|
|
3015
3296
|
* Interaction is driven by pointer events, branching on `pointerType`: mouse
|
|
3016
3297
|
* and pen get hover semantics, touch gets tap-to-toggle. A single stream avoids
|
|
3017
3298
|
* the synthesized mouse events browsers replay after a tap.
|
|
3299
|
+
*
|
|
3300
|
+
* Serving many elements at once costs one instance each; `[tlsTooltipDelegate]`
|
|
3301
|
+
* serves a whole subtree from one instead.
|
|
3018
3302
|
*/
|
|
3019
|
-
declare class TooltipDirective
|
|
3020
|
-
private
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
private _config;
|
|
3024
|
-
content: InputSignal<string | TemplateRef<unknown>>;
|
|
3025
|
-
data: InputSignal<unknown>;
|
|
3026
|
-
tooltipDisabled: InputSignal<boolean>;
|
|
3027
|
-
tooltipOrigin: InputSignal<tooltipOrigin>;
|
|
3028
|
-
tooltipPositions: InputSignal<ConnectedPosition[] | undefined>;
|
|
3029
|
-
tooltipPosition: InputSignal<tooltipPosition>;
|
|
3030
|
-
tooltipOffset: InputSignal<Point>;
|
|
3031
|
-
tooltipColor: InputSignal<tooltipColor>;
|
|
3032
|
-
private _visible;
|
|
3033
|
-
private _positions;
|
|
3303
|
+
declare class TooltipDirective extends TooltipTrigger {
|
|
3304
|
+
private readonly _elementRef;
|
|
3305
|
+
readonly content: InputSignal<string | TemplateRef<unknown>>;
|
|
3306
|
+
readonly data: InputSignal<unknown>;
|
|
3034
3307
|
protected onPointerEnter(event: PointerEvent): void;
|
|
3035
3308
|
protected onPointerMove(event: PointerEvent): void;
|
|
3036
3309
|
protected onPointerLeave(event: PointerEvent): void;
|
|
3037
3310
|
protected onFocus(): void;
|
|
3038
3311
|
protected onBlur(): void;
|
|
3039
|
-
|
|
3040
|
-
protected onEscape(): void;
|
|
3041
|
-
private _show;
|
|
3042
|
-
private _hide;
|
|
3043
|
-
ngOnDestroy(): void;
|
|
3312
|
+
private _showHost;
|
|
3044
3313
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
3045
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tlsTooltip]", never, { "content": { "alias": "tlsTooltip"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; };
|
|
3314
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tlsTooltip]", never, { "content": { "alias": "tlsTooltip"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3046
3315
|
}
|
|
3047
3316
|
|
|
3048
3317
|
interface TooltipConfig {
|
|
@@ -3074,6 +3343,9 @@ interface tlsUiConfigProvider {
|
|
|
3074
3343
|
/** Cross-cutting defaults inherited by every form control (not tied to a single component). */
|
|
3075
3344
|
formControl?: Partial<FormControlConfig>;
|
|
3076
3345
|
components?: {
|
|
3346
|
+
activityHeatmap?: Partial<Omit<ActivityHeatmapConfig, 'labels'>> & {
|
|
3347
|
+
labels?: Partial<ActivityHeatmapLabels>;
|
|
3348
|
+
};
|
|
3077
3349
|
alert?: Partial<AlertConfig>;
|
|
3078
3350
|
autocomplete?: Partial<AutocompleteConfig>;
|
|
3079
3351
|
button?: Partial<ButtonConfig>;
|
|
@@ -3212,5 +3484,5 @@ declare abstract class QuerySyncDirective {
|
|
|
3212
3484
|
|
|
3213
3485
|
declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
|
|
3214
3486
|
|
|
3215
|
-
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, Alert, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDirective, ValueFormControl, applyMask, provideThalassicIcons, provideThalassicUIConfig };
|
|
3216
|
-
export type { AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, SplitterConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, splitterOrientation, stepperColor, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
|
|
3487
|
+
export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, Alert, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, ValueFormControl, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
|
|
3488
|
+
export type { ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, SplitterConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, splitterOrientation, stepperColor, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
|