@thalassic/ui 22.4.0 → 22.5.1
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.mjs +903 -332
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +2 -1
- package/types/thalassic-ui.d.ts +248 -30
package/package.json
CHANGED
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, ElementRef, OnInit,
|
|
2
|
+
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, OutputEmitterRef, ElementRef, OnInit, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { Day } from 'date-fns';
|
|
5
5
|
import { Point } from '@thalassic/core';
|
|
@@ -10,6 +10,7 @@ import { ComponentType } 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';
|
|
13
|
+
import * as i1 from '@angular/aria/tabs';
|
|
13
14
|
import { DataSource } from '@angular/cdk/table';
|
|
14
15
|
|
|
15
16
|
declare abstract class FormControl<TValue = unknown> implements FormUiControl<TValue> {
|
|
@@ -346,6 +347,226 @@ declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
|
|
|
346
347
|
|
|
347
348
|
declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
|
|
348
349
|
|
|
350
|
+
type calendarView = 'month' | 'week' | 'day' | 'agenda';
|
|
351
|
+
/** A single entry rendered on the calendar. `end` defaults to `start` when omitted. */
|
|
352
|
+
interface CalendarEvent {
|
|
353
|
+
id: string;
|
|
354
|
+
title: string;
|
|
355
|
+
start: Date;
|
|
356
|
+
end?: Date;
|
|
357
|
+
allDay?: boolean;
|
|
358
|
+
/** Tints the default event chip with a semantic color token's container/on-container pair. */
|
|
359
|
+
color?: color;
|
|
360
|
+
/** Consumer payload, surfaced in the template context and selection outputs. */
|
|
361
|
+
data?: unknown;
|
|
362
|
+
}
|
|
363
|
+
/** Half-open date interval `[start, end)` describing the currently visible span. */
|
|
364
|
+
interface CalendarRange {
|
|
365
|
+
start: Date;
|
|
366
|
+
end: Date;
|
|
367
|
+
}
|
|
368
|
+
/** Context object exposed to a consumer-provided event template slot. */
|
|
369
|
+
interface CalendarEventContext {
|
|
370
|
+
$implicit: CalendarEvent;
|
|
371
|
+
view: calendarView;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare class Calendar {
|
|
375
|
+
private readonly _config;
|
|
376
|
+
readonly events: InputSignal<CalendarEvent[]>;
|
|
377
|
+
readonly weekStartsOn: InputSignal<Day>;
|
|
378
|
+
readonly weekDays: InputSignal<string[]>;
|
|
379
|
+
readonly hourStart: InputSignal<number>;
|
|
380
|
+
readonly hourEnd: InputSignal<number>;
|
|
381
|
+
readonly showAllDayRow: InputSignal<boolean>;
|
|
382
|
+
readonly maxEventsPerDay: InputSignal<number>;
|
|
383
|
+
/** Accessible name forwarded to the active view's grid. */
|
|
384
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
385
|
+
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
386
|
+
readonly dateSelect: OutputEmitterRef<Date>;
|
|
387
|
+
/** Fires whenever the visible span changes, so consumers can lazy-load that window's events. */
|
|
388
|
+
readonly rangeChange: OutputEmitterRef<CalendarRange>;
|
|
389
|
+
readonly view: ModelSignal<calendarView>;
|
|
390
|
+
/** Anchor date driving the visible range; navigation shifts it by the view's unit. */
|
|
391
|
+
readonly activeDate: ModelSignal<Date>;
|
|
392
|
+
protected readonly viewOptions: {
|
|
393
|
+
label: string;
|
|
394
|
+
value: calendarView;
|
|
395
|
+
}[];
|
|
396
|
+
protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
|
|
397
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
398
|
+
/** Whether the active period already includes today, so "Today" would be a no-op. */
|
|
399
|
+
protected readonly isViewingToday: Signal<boolean>;
|
|
400
|
+
protected readonly title: Signal<string>;
|
|
401
|
+
protected readonly visibleRange: Signal<CalendarRange>;
|
|
402
|
+
/** Day columns fed to the time-grid: a full week for `week`, a single day for `day`. */
|
|
403
|
+
protected readonly timeGridDays: Signal<Date[]>;
|
|
404
|
+
constructor();
|
|
405
|
+
/** Moves to the next period in the current view's unit. */
|
|
406
|
+
next(): void;
|
|
407
|
+
/** Moves to the previous period in the current view's unit. */
|
|
408
|
+
previous(): void;
|
|
409
|
+
/** Snaps the anchor date back to today. */
|
|
410
|
+
today(): void;
|
|
411
|
+
protected onViewChange(views: calendarView[]): void;
|
|
412
|
+
private _step;
|
|
413
|
+
private _weekBounds;
|
|
414
|
+
private _weekTitle;
|
|
415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Calendar, never>;
|
|
416
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Calendar, "tls-calendar", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; "hourStart": { "alias": "hourStart"; "required": false; "isSignal": true; }; "hourEnd": { "alias": "hourEnd"; "required": false; "isSignal": true; }; "showAllDayRow": { "alias": "showAllDayRow"; "required": false; "isSignal": true; }; "maxEventsPerDay": { "alias": "maxEventsPerDay"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "activeDate": { "alias": "activeDate"; "required": false; "isSignal": true; }; }, { "eventSelect": "eventSelect"; "dateSelect": "dateSelect"; "rangeChange": "rangeChange"; "view": "viewChange"; "activeDate": "activeDateChange"; }, ["eventTemplate"], never, true, never>;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/** A day that has events, precomputed for the agenda list. */
|
|
420
|
+
interface AgendaDay {
|
|
421
|
+
date: Date;
|
|
422
|
+
weekday: string;
|
|
423
|
+
dateLabel: string;
|
|
424
|
+
isToday: boolean;
|
|
425
|
+
events: CalendarEvent[];
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* A chronological list of the active month's events grouped by day; days without events are
|
|
429
|
+
* omitted. Reuses the shared event chip and template slot; carries list — not grid — semantics.
|
|
430
|
+
*/
|
|
431
|
+
declare class CalendarAgendaView {
|
|
432
|
+
readonly activeDate: InputSignal<Date>;
|
|
433
|
+
readonly events: InputSignal<CalendarEvent[]>;
|
|
434
|
+
readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
|
|
435
|
+
/** Accessible name for the agenda list. */
|
|
436
|
+
readonly label: InputSignal<string | undefined>;
|
|
437
|
+
readonly dateSelect: OutputEmitterRef<Date>;
|
|
438
|
+
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
439
|
+
protected readonly days: Signal<AgendaDay[]>;
|
|
440
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAgendaView, never>;
|
|
441
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarAgendaView, "tls-calendar-agenda-view", never, { "activeDate": { "alias": "activeDate"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Renders a single event as an interactive chip. Owns color resolution, the consumer
|
|
446
|
+
* template-slot fallback, and click-to-select; the containing view owns placement
|
|
447
|
+
* (a month cell's list, a time-grid block, an agenda row).
|
|
448
|
+
*/
|
|
449
|
+
declare class CalendarEventItem {
|
|
450
|
+
readonly event: InputSignal<CalendarEvent>;
|
|
451
|
+
readonly view: InputSignal<calendarView>;
|
|
452
|
+
readonly template: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
|
|
453
|
+
readonly activate: OutputEmitterRef<CalendarEvent>;
|
|
454
|
+
protected readonly classes: Signal<string[]>;
|
|
455
|
+
protected readonly context: Signal<CalendarEventContext>;
|
|
456
|
+
/** Time-aware views prefix the start time; the month grid shows the title alone. */
|
|
457
|
+
protected readonly defaultLabel: Signal<string>;
|
|
458
|
+
protected onClick(mouseEvent: MouseEvent): void;
|
|
459
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarEventItem, never>;
|
|
460
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventItem, "tls-calendar-event", never, { "event": { "alias": "event"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": true; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, { "activate": "activate"; }, never, never, true, never>;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/** A day cell in the month grid: its number and how many of its events are hidden. */
|
|
464
|
+
interface MonthDay {
|
|
465
|
+
date: Date;
|
|
466
|
+
dayNumber: string;
|
|
467
|
+
inCurrentMonth: boolean;
|
|
468
|
+
isToday: boolean;
|
|
469
|
+
hiddenCount: number;
|
|
470
|
+
}
|
|
471
|
+
/** A visible event bar placed on the week's lane overlay. */
|
|
472
|
+
interface MonthEventBar {
|
|
473
|
+
event: CalendarEvent;
|
|
474
|
+
gridColumn: string;
|
|
475
|
+
gridRow: string;
|
|
476
|
+
continuesBefore: boolean;
|
|
477
|
+
continuesAfter: boolean;
|
|
478
|
+
}
|
|
479
|
+
/** One week row: the base day cells plus the event bars overlaid across them. */
|
|
480
|
+
interface MonthWeek {
|
|
481
|
+
days: MonthDay[];
|
|
482
|
+
bars: MonthEventBar[];
|
|
483
|
+
}
|
|
484
|
+
declare class CalendarMonthView {
|
|
485
|
+
readonly activeDate: InputSignal<Date>;
|
|
486
|
+
readonly events: InputSignal<CalendarEvent[]>;
|
|
487
|
+
readonly weekStartsOn: InputSignal<Day>;
|
|
488
|
+
readonly weekDays: InputSignal<string[]>;
|
|
489
|
+
readonly maxEventsPerDay: InputSignal<number>;
|
|
490
|
+
readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
|
|
491
|
+
/** Accessible name for the grid, announced when focus enters it. */
|
|
492
|
+
readonly label: InputSignal<string | undefined>;
|
|
493
|
+
readonly dateSelect: OutputEmitterRef<Date>;
|
|
494
|
+
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
495
|
+
protected readonly weekdayHeaders: Signal<string[]>;
|
|
496
|
+
protected readonly weeks: Signal<MonthWeek[]>;
|
|
497
|
+
/** Space would scroll the page; consume it and select the focused day instead. */
|
|
498
|
+
protected onDaySpace(event: Event, date: Date): void;
|
|
499
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthView, never>;
|
|
500
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthView, "tls-calendar-month-view", never, { "activeDate": { "alias": "activeDate"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": true; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": true; "isSignal": true; }; "maxEventsPerDay": { "alias": "maxEventsPerDay"; "required": true; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/** A timed event with its absolute placement inside a day column. */
|
|
504
|
+
interface TimedEventLayout {
|
|
505
|
+
event: CalendarEvent;
|
|
506
|
+
top: number;
|
|
507
|
+
height: number;
|
|
508
|
+
lane: number;
|
|
509
|
+
laneCount: number;
|
|
510
|
+
}
|
|
511
|
+
/** One day column of the time-grid, precomputed for the template. */
|
|
512
|
+
interface TimeGridColumn {
|
|
513
|
+
date: Date;
|
|
514
|
+
isToday: boolean;
|
|
515
|
+
heading: string;
|
|
516
|
+
allDayEvents: CalendarEvent[];
|
|
517
|
+
timedEvents: TimedEventLayout[];
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* A time-grid of one or more day columns with an hour axis. Timed events are positioned by
|
|
521
|
+
* their start/end and laid side-by-side when they overlap; all-day and multi-day events sit in
|
|
522
|
+
* a header row. Shared by the week (seven columns) and day (single column) views.
|
|
523
|
+
*/
|
|
524
|
+
declare class CalendarTimeGrid {
|
|
525
|
+
readonly days: InputSignal<Date[]>;
|
|
526
|
+
readonly events: InputSignal<CalendarEvent[]>;
|
|
527
|
+
readonly view: InputSignal<calendarView>;
|
|
528
|
+
readonly hourStart: InputSignal<number>;
|
|
529
|
+
readonly hourEnd: InputSignal<number>;
|
|
530
|
+
readonly showAllDayRow: InputSignal<boolean>;
|
|
531
|
+
readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
|
|
532
|
+
/** Accessible name for the time-grid region. */
|
|
533
|
+
readonly label: InputSignal<string | undefined>;
|
|
534
|
+
readonly dateSelect: OutputEmitterRef<Date>;
|
|
535
|
+
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
536
|
+
protected readonly hourHeight = 48;
|
|
537
|
+
protected readonly hours: Signal<number[]>;
|
|
538
|
+
protected readonly columns: Signal<TimeGridColumn[]>;
|
|
539
|
+
/** Vertical offset (px) of the current-time line, or null when now is off-screen. */
|
|
540
|
+
protected readonly nowOffset: Signal<number | null>;
|
|
541
|
+
protected hourLabel(hour: number): string;
|
|
542
|
+
protected laneOffset(layout: TimedEventLayout): number;
|
|
543
|
+
protected laneWidth(layout: TimedEventLayout): number;
|
|
544
|
+
private _isAllDay;
|
|
545
|
+
private _clamp;
|
|
546
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarTimeGrid, never>;
|
|
547
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarTimeGrid, "tls-calendar-time-grid", never, { "days": { "alias": "days"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": true; "isSignal": true; }; "hourStart": { "alias": "hourStart"; "required": true; "isSignal": true; }; "hourEnd": { "alias": "hourEnd"; "required": true; "isSignal": true; }; "showAllDayRow": { "alias": "showAllDayRow"; "required": true; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
interface CalendarConfig {
|
|
551
|
+
/** View shown on first render. */
|
|
552
|
+
view: calendarView;
|
|
553
|
+
/** First day of the week (`date-fns` convention: 0 = Sunday). */
|
|
554
|
+
weekStartsOn: Day;
|
|
555
|
+
/** Short weekday labels, Sunday-first; rotated to honour `weekStartsOn`. */
|
|
556
|
+
weekDays: string[];
|
|
557
|
+
/** First hour rendered by the week/day time-grid. */
|
|
558
|
+
hourStart: number;
|
|
559
|
+
/** Last hour rendered by the week/day time-grid. */
|
|
560
|
+
hourEnd: number;
|
|
561
|
+
/** Whether the week/day views show a dedicated all-day row above the time-grid. */
|
|
562
|
+
showAllDayRow: boolean;
|
|
563
|
+
/** Events shown in a month day cell before collapsing the rest into "+N more". */
|
|
564
|
+
maxEventsPerDay: number;
|
|
565
|
+
}
|
|
566
|
+
declare const DEFAULT_CALENDAR_CONFIG: CalendarConfig;
|
|
567
|
+
|
|
568
|
+
declare const CALENDAR_CONFIG: InjectionToken<CalendarConfig>;
|
|
569
|
+
|
|
349
570
|
type chipColor = color;
|
|
350
571
|
type chipVariant = 'filled' | 'outlined' | 'text';
|
|
351
572
|
interface ChipContext {
|
|
@@ -1594,7 +1815,7 @@ declare const DEFAULT_SKELETON_CONFIG: SkeletonConfig;
|
|
|
1594
1815
|
|
|
1595
1816
|
declare const SKELETON_CONFIG: InjectionToken<SkeletonConfig>;
|
|
1596
1817
|
|
|
1597
|
-
type stepperValue = string
|
|
1818
|
+
type stepperValue = string;
|
|
1598
1819
|
type stepperColor = color;
|
|
1599
1820
|
type stepperOrientation = orientation;
|
|
1600
1821
|
interface StepperSelectEvent {
|
|
@@ -1604,30 +1825,24 @@ interface StepperSelectEvent {
|
|
|
1604
1825
|
|
|
1605
1826
|
declare class Step {
|
|
1606
1827
|
private _config;
|
|
1607
|
-
private
|
|
1608
|
-
readonly iconTemplateRef:
|
|
1609
|
-
readonly completedIconTemplateRef:
|
|
1610
|
-
readonly value:
|
|
1828
|
+
private readonly _tabPanel;
|
|
1829
|
+
readonly iconTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
1830
|
+
readonly completedIconTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
1831
|
+
readonly value: Signal<stepperValue>;
|
|
1611
1832
|
readonly label: InputSignal<string | undefined>;
|
|
1612
1833
|
readonly description: InputSignal<string | undefined>;
|
|
1613
1834
|
readonly color: InputSignal<stepperColor>;
|
|
1614
1835
|
readonly disabled: InputSignal<boolean>;
|
|
1615
|
-
|
|
1616
|
-
protected hostClasses: i0.Signal<string[]>;
|
|
1836
|
+
protected hostClasses: Signal<string[]>;
|
|
1617
1837
|
static ɵfac: i0.ɵɵFactoryDeclaration<Step, never>;
|
|
1618
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Step, "tls-step", never, { "
|
|
1838
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Step, "tls-step", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["iconTemplateRef", "completedIconTemplateRef"], ["*"], true, [{ directive: typeof i1.TabPanel; inputs: { "value": "value"; }; outputs: {}; }]>;
|
|
1619
1839
|
}
|
|
1620
1840
|
|
|
1621
1841
|
declare class Stepper {
|
|
1622
|
-
private static _counter;
|
|
1623
|
-
protected readonly panelId: string;
|
|
1624
1842
|
private _config;
|
|
1625
|
-
private _stepperService;
|
|
1626
|
-
private readonly _directionality;
|
|
1627
1843
|
protected steps: Signal<readonly Step[]>;
|
|
1628
1844
|
protected completedTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
1629
1845
|
protected completedIconTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
1630
|
-
private _stepButtons;
|
|
1631
1846
|
readonly active: ModelSignal<stepperValue>;
|
|
1632
1847
|
readonly orientation: InputSignal<stepperOrientation>;
|
|
1633
1848
|
readonly completed: InputSignal<boolean>;
|
|
@@ -1638,12 +1853,9 @@ declare class Stepper {
|
|
|
1638
1853
|
readonly stepSelect: OutputEmitterRef<StepperSelectEvent>;
|
|
1639
1854
|
protected hostClasses: Signal<string[]>;
|
|
1640
1855
|
protected activeIndex: Signal<number>;
|
|
1641
|
-
|
|
1642
|
-
protected onSelect(step: Step, index: number): void;
|
|
1643
|
-
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
1644
|
-
private _nextFocusable;
|
|
1856
|
+
protected onSelectedTabChange(value: stepperValue | undefined): void;
|
|
1645
1857
|
static ɵfac: i0.ɵɵFactoryDeclaration<Stepper, never>;
|
|
1646
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Stepper, "tls-stepper", never, { "active": { "alias": "active"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; "stepSelect": "stepSelect"; }, ["steps", "completedTemplateRef", "completedIconTemplateRef"], ["*"], true,
|
|
1858
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Stepper, "tls-stepper", never, { "active": { "alias": "active"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; "stepSelect": "stepSelect"; }, ["steps", "completedTemplateRef", "completedIconTemplateRef"], ["*"], true, [{ directive: typeof i1.Tabs; inputs: {}; outputs: {}; }]>;
|
|
1647
1859
|
}
|
|
1648
1860
|
|
|
1649
1861
|
interface StepperConfig {
|
|
@@ -1713,36 +1925,41 @@ declare const DEFAULT_TABLE_CONFIG: TableConfig;
|
|
|
1713
1925
|
declare const TABLE_CONFIG: InjectionToken<TableConfig>;
|
|
1714
1926
|
|
|
1715
1927
|
type tabsVariant = 'flat' | 'outlined';
|
|
1716
|
-
type
|
|
1928
|
+
type tabsOrientation = orientation;
|
|
1929
|
+
type tabsHeaderPosition = 'start' | 'end';
|
|
1930
|
+
type tabValue = string;
|
|
1717
1931
|
|
|
1718
1932
|
declare class Tab {
|
|
1719
|
-
private readonly
|
|
1720
|
-
readonly
|
|
1933
|
+
private readonly _tabPanel;
|
|
1934
|
+
readonly headerTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
1935
|
+
readonly value: Signal<tabValue>;
|
|
1721
1936
|
readonly label: InputSignal<string>;
|
|
1722
1937
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
1723
|
-
|
|
1724
|
-
protected hostClasses: i0.Signal<string[]>;
|
|
1938
|
+
protected hostClasses: Signal<string[]>;
|
|
1725
1939
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tab, never>;
|
|
1726
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "tls-tab", never, { "
|
|
1940
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "tls-tab", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["headerTemplateRef"], ["*"], true, [{ directive: typeof i1.TabPanel; inputs: { "value": "value"; }; outputs: {}; }]>;
|
|
1727
1941
|
}
|
|
1728
1942
|
|
|
1729
1943
|
declare class Tabs {
|
|
1730
1944
|
private _config;
|
|
1731
|
-
private _tabsService;
|
|
1732
1945
|
protected tabs: Signal<readonly Tab[]>;
|
|
1733
1946
|
readonly variant: InputSignal<tabsVariant>;
|
|
1734
|
-
readonly
|
|
1947
|
+
readonly orientation: InputSignal<tabsOrientation>;
|
|
1948
|
+
readonly headerPosition: InputSignal<tabsHeaderPosition>;
|
|
1949
|
+
readonly selected: ModelSignal<tabValue | undefined>;
|
|
1735
1950
|
/** Accessible name for the tablist. */
|
|
1736
1951
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1737
1952
|
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
1738
1953
|
protected hostClasses: Signal<string[]>;
|
|
1739
1954
|
constructor();
|
|
1740
1955
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
1741
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"], ["*"], true,
|
|
1956
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"], ["*"], true, [{ directive: typeof i1.Tabs; inputs: {}; outputs: {}; }]>;
|
|
1742
1957
|
}
|
|
1743
1958
|
|
|
1744
1959
|
interface TabsConfig {
|
|
1745
1960
|
variant: tabsVariant;
|
|
1961
|
+
orientation: tabsOrientation;
|
|
1962
|
+
headerPosition: tabsHeaderPosition;
|
|
1746
1963
|
}
|
|
1747
1964
|
declare const DEFAULT_TABS_CONFIG: TabsConfig;
|
|
1748
1965
|
|
|
@@ -1812,6 +2029,7 @@ interface tlsUiConfigProvider {
|
|
|
1812
2029
|
components: {
|
|
1813
2030
|
alert?: Partial<AlertConfig>;
|
|
1814
2031
|
button?: Partial<ButtonConfig>;
|
|
2032
|
+
calendar?: Partial<CalendarConfig>;
|
|
1815
2033
|
checkbox?: Partial<CheckboxConfig>;
|
|
1816
2034
|
chip?: Partial<ChipConfig>;
|
|
1817
2035
|
chipControl?: Partial<ChipControlConfig>;
|
|
@@ -1909,5 +2127,5 @@ declare abstract class QuerySyncDirective {
|
|
|
1909
2127
|
|
|
1910
2128
|
declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
|
|
1911
2129
|
|
|
1912
|
-
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_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_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_LOADER_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_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TEXTAREA_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, ICON_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, Input, InputDirective, InputNumber, LOADER_CONFIG, Loader, MENU_CONFIG, MULTI_SELECT_CONFIG, 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, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TEXTAREA_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, ToggleGroup, TooltipDirective, ValueFormControl, provideThalassicUIConfig };
|
|
1913
|
-
export type { AlertConfig, ButtonConfig, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, IconConfig, InputConfig, InputNumberConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, buttonColor, buttonType, buttonVariant, chipColor, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, stepperColor, stepperOrientation, stepperValue, switchColor, tabValue, tableColumnAlignment, tabsVariant, textareaResize, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };
|
|
2130
|
+
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, 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_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_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_LOADER_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_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TEXTAREA_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, ICON_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, Input, InputDirective, InputNumber, LOADER_CONFIG, Loader, MENU_CONFIG, MULTI_SELECT_CONFIG, 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, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TEXTAREA_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, ToggleGroup, TooltipDirective, ValueFormControl, provideThalassicUIConfig };
|
|
2131
|
+
export type { AlertConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, IconConfig, InputConfig, InputNumberConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, buttonColor, buttonType, buttonVariant, calendarView, chipColor, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, stepperColor, stepperOrientation, stepperValue, switchColor, tabValue, tableColumnAlignment, tabsHeaderPosition, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };
|