@thalassic/ui 0.17.1 → 0.19.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-charts.mjs +18 -15
- package/fesm2022/thalassic-ui-charts.mjs.map +1 -1
- package/fesm2022/thalassic-ui.mjs +1330 -342
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui-charts.d.ts +3 -5
- package/types/thalassic-ui.d.ts +335 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as node_modules_chart_js_dist_types_utils from 'node_modules/chart.js/dist/types/utils';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InputSignalWithTransform,
|
|
3
|
+
import { InputSignalWithTransform, OnDestroy, Signal, ElementRef, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
4
4
|
import * as chart_js from 'chart.js';
|
|
5
5
|
import { ChartType, ChartDatasetCustomTypesPerDataset, ChartDataset, ChartOptions } from 'chart.js';
|
|
6
6
|
|
|
@@ -11,10 +11,9 @@ declare abstract class ChartElement<T extends ChartType = ChartType> {
|
|
|
11
11
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartElement<any>, never, never, { "dataset": { "alias": "dataset"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
declare class Chart implements
|
|
14
|
+
declare class Chart implements OnDestroy {
|
|
15
15
|
private _config;
|
|
16
16
|
private _chartService;
|
|
17
|
-
private _destroyRef;
|
|
18
17
|
private _themeService;
|
|
19
18
|
protected canvasRef: Signal<ElementRef<HTMLCanvasElement> | undefined>;
|
|
20
19
|
protected chartElements: Signal<readonly ChartElement<keyof chart_js.ChartTypeRegistry>[]>;
|
|
@@ -26,8 +25,7 @@ declare class Chart implements OnInit, OnDestroy {
|
|
|
26
25
|
protected hostClasses: Signal<string[]>;
|
|
27
26
|
constructor();
|
|
28
27
|
protected get canvasElement(): HTMLCanvasElement | undefined;
|
|
29
|
-
private
|
|
30
|
-
ngOnInit(): void;
|
|
28
|
+
private _initThemeSync;
|
|
31
29
|
ngOnDestroy(): void;
|
|
32
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<Chart, never>;
|
|
33
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<Chart, "tls-chart", never, { "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, ["chartElements"], never, true, never>;
|
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, TemplateRef, InjectionToken, ElementRef, OutputEmitterRef, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, TemplateRef, InjectionToken, ElementRef, OnInit, OutputEmitterRef, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, FieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { Day } from 'date-fns';
|
|
5
5
|
import { Point } from '@thalassic/core';
|
|
@@ -7,7 +7,9 @@ import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@ang
|
|
|
7
7
|
import * as _thalassic_ui from '@thalassic/ui';
|
|
8
8
|
import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
|
|
9
9
|
import { ComponentType } from '@angular/cdk/portal';
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
10
11
|
import { SafeHtml } from '@angular/platform-browser';
|
|
12
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
11
13
|
import { DataSource } from '@angular/cdk/table';
|
|
12
14
|
|
|
13
15
|
declare abstract class FormControl implements FormUiControl {
|
|
@@ -387,6 +389,149 @@ declare const DEFAULT_CHIP_CONTROL_CONFIG: ChipControlConfig;
|
|
|
387
389
|
|
|
388
390
|
declare const CHIP_CONTROL_CONFIG: InjectionToken<ChipControlConfig>;
|
|
389
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Appearance of one of the confirm dialog's action buttons. Mirrors the
|
|
394
|
+
* `tls-button` inputs; every field but `label` is optional and falls back to
|
|
395
|
+
* the confirm config default, then to the button's own default. The action is
|
|
396
|
+
* fixed (resolve or reject the confirmation), so no click handler is exposed —
|
|
397
|
+
* only presentation is configurable.
|
|
398
|
+
*/
|
|
399
|
+
type confirmButton = {
|
|
400
|
+
label: string;
|
|
401
|
+
color?: buttonColor;
|
|
402
|
+
variant?: buttonVariant;
|
|
403
|
+
size?: controlSize;
|
|
404
|
+
icon?: boolean;
|
|
405
|
+
rounded?: boolean;
|
|
406
|
+
fluid?: boolean;
|
|
407
|
+
disabled?: boolean;
|
|
408
|
+
};
|
|
409
|
+
/** A {@link confirmButton} with every appearance field resolved to a concrete value. */
|
|
410
|
+
type resolvedConfirmButton = Required<confirmButton>;
|
|
411
|
+
/**
|
|
412
|
+
* Horizontal alignment of the cancel / confirm action buttons within the dialog,
|
|
413
|
+
* mapped onto `justify-content` (direction-aware: `start`/`end` follow the
|
|
414
|
+
* layout direction).
|
|
415
|
+
*/
|
|
416
|
+
type confirmActionsAlign = 'start' | 'center' | 'end' | 'space-between';
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Declarative confirm dialog anchored to a trigger. Sits in the template
|
|
420
|
+
* alongside its trigger and is driven imperatively via {@link open} /
|
|
421
|
+
* {@link toggle}; resolves through the `confirmed` / `cancelled` outputs.
|
|
422
|
+
* Dismissing via backdrop or Escape counts as `cancelled`. For promise-based
|
|
423
|
+
* flows in TypeScript, use `ConfirmService` instead.
|
|
424
|
+
*/
|
|
425
|
+
declare class Confirm {
|
|
426
|
+
private readonly _config;
|
|
427
|
+
private readonly _overlay;
|
|
428
|
+
private readonly _templateRef;
|
|
429
|
+
readonly title: i0.InputSignal<string | undefined>;
|
|
430
|
+
readonly message: i0.InputSignal<string>;
|
|
431
|
+
readonly confirm: i0.InputSignal<confirmButton | undefined>;
|
|
432
|
+
readonly cancel: i0.InputSignal<confirmButton | undefined>;
|
|
433
|
+
readonly actionsAlign: i0.InputSignal<confirmActionsAlign>;
|
|
434
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
435
|
+
readonly position: i0.InputSignal<overlayPosition>;
|
|
436
|
+
readonly offset: i0.InputSignal<Point>;
|
|
437
|
+
readonly confirmed: i0.OutputEmitterRef<void>;
|
|
438
|
+
readonly cancelled: i0.OutputEmitterRef<void>;
|
|
439
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
440
|
+
private _resolved;
|
|
441
|
+
private _previouslyFocused;
|
|
442
|
+
private readonly _positions;
|
|
443
|
+
open(trigger: MouseEvent | HTMLElement): void;
|
|
444
|
+
close(): void;
|
|
445
|
+
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
446
|
+
protected onConfirm(): void;
|
|
447
|
+
protected onCancel(): void;
|
|
448
|
+
private _onClose;
|
|
449
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Confirm, never>;
|
|
450
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Confirm, "tls-confirm", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "confirm": { "alias": "confirm"; "required": false; "isSignal": true; }; "cancel": { "alias": "cancel"; "required": false; "isSignal": true; }; "actionsAlign": { "alias": "actionsAlign"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; }, { "confirmed": "confirmed"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Presentational contents of a confirm dialog: an optional title, a message,
|
|
455
|
+
* and cancel / confirm action buttons. Shared by the declarative `tls-confirm`
|
|
456
|
+
* component and the imperative `ConfirmService`; it renders the UI and emits
|
|
457
|
+
* `confirmed` / `cancelled`, but owns no overlay lifecycle.
|
|
458
|
+
*/
|
|
459
|
+
declare class ConfirmPanel {
|
|
460
|
+
private static _counter;
|
|
461
|
+
private readonly _elementRef;
|
|
462
|
+
private readonly _config;
|
|
463
|
+
private readonly _buttonConfig;
|
|
464
|
+
readonly title: i0.InputSignal<string | undefined>;
|
|
465
|
+
readonly message: i0.InputSignal<string>;
|
|
466
|
+
readonly confirm: i0.InputSignal<confirmButton | undefined>;
|
|
467
|
+
readonly cancel: i0.InputSignal<confirmButton | undefined>;
|
|
468
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
469
|
+
/** Whether the panel is a focus-trapped modal (`aria-modal="true"`) rather than an anchored popover. */
|
|
470
|
+
readonly modal: i0.InputSignal<boolean>;
|
|
471
|
+
readonly actionsAlign: i0.InputSignal<confirmActionsAlign>;
|
|
472
|
+
readonly confirmed: i0.OutputEmitterRef<void>;
|
|
473
|
+
readonly cancelled: i0.OutputEmitterRef<void>;
|
|
474
|
+
readonly id: string;
|
|
475
|
+
readonly titleId: string;
|
|
476
|
+
readonly messageId: string;
|
|
477
|
+
protected readonly resolvedConfirm: i0.Signal<Required<confirmButton>>;
|
|
478
|
+
protected readonly resolvedCancel: i0.Signal<Required<confirmButton>>;
|
|
479
|
+
protected readonly actionsClasses: i0.Signal<string[]>;
|
|
480
|
+
constructor();
|
|
481
|
+
private _resolve;
|
|
482
|
+
private _focusConfirm;
|
|
483
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmPanel, never>;
|
|
484
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmPanel, "tls-confirm-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "confirm": { "alias": "confirm"; "required": false; "isSignal": true; }; "cancel": { "alias": "cancel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "actionsAlign": { "alias": "actionsAlign"; "required": false; "isSignal": true; }; }, { "confirmed": "confirmed"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
interface ConfirmOptions {
|
|
488
|
+
/**
|
|
489
|
+
* Element (or the originating event) the dialog is anchored to. Present opens
|
|
490
|
+
* an anchored popover next to the trigger; omitting it opens a centered,
|
|
491
|
+
* focus-trapped modal instead.
|
|
492
|
+
*/
|
|
493
|
+
trigger?: HTMLElement | MouseEvent;
|
|
494
|
+
message: string;
|
|
495
|
+
title?: string;
|
|
496
|
+
confirm?: confirmButton;
|
|
497
|
+
cancel?: confirmButton;
|
|
498
|
+
actionsAlign?: confirmActionsAlign;
|
|
499
|
+
position?: overlayPosition;
|
|
500
|
+
offset?: Point;
|
|
501
|
+
ariaLabel?: string;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Imperative confirm dialog for `await`-style flows: opens a dialog and resolves
|
|
505
|
+
* `true` on confirm, `false` on cancel / backdrop / Escape. Anchors to the
|
|
506
|
+
* `trigger` when given, otherwise opens as a centered modal. For a template-driven
|
|
507
|
+
* anchored equivalent, use the `tls-confirm` component.
|
|
508
|
+
*/
|
|
509
|
+
declare class ConfirmService {
|
|
510
|
+
private readonly _overlay;
|
|
511
|
+
private readonly _focusTrapFactory;
|
|
512
|
+
private readonly _router;
|
|
513
|
+
private readonly _config;
|
|
514
|
+
confirm(options: ConfirmOptions): Promise<boolean>;
|
|
515
|
+
private _createAnchoredOverlay;
|
|
516
|
+
private _createModalOverlay;
|
|
517
|
+
private _applyOptions;
|
|
518
|
+
private _wire;
|
|
519
|
+
private _dismiss;
|
|
520
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmService, never>;
|
|
521
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmService>;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
interface ConfirmConfig {
|
|
525
|
+
position: overlayPosition;
|
|
526
|
+
offset: Point;
|
|
527
|
+
confirmButton: confirmButton;
|
|
528
|
+
cancelButton: confirmButton;
|
|
529
|
+
actionsAlign: confirmActionsAlign;
|
|
530
|
+
}
|
|
531
|
+
declare const DEFAULT_CONFIRM_CONFIG: ConfirmConfig;
|
|
532
|
+
|
|
533
|
+
declare const CONFIRM_CONFIG: InjectionToken<ConfirmConfig>;
|
|
534
|
+
|
|
390
535
|
type dialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'wide' | 'full';
|
|
391
536
|
|
|
392
537
|
interface DialogConfig {
|
|
@@ -452,6 +597,79 @@ declare const DEFAULT_DIVIDER_CONFIG: DividerConfig;
|
|
|
452
597
|
|
|
453
598
|
declare const DIVIDER_CONFIG: InjectionToken<DividerConfig>;
|
|
454
599
|
|
|
600
|
+
type drawerSide = 'start' | 'end' | 'top' | 'bottom';
|
|
601
|
+
type drawerSize = 'sm' | 'md' | 'lg' | 'full';
|
|
602
|
+
|
|
603
|
+
interface DrawerConfig {
|
|
604
|
+
side: drawerSide;
|
|
605
|
+
size: drawerSize | string;
|
|
606
|
+
closeable: boolean;
|
|
607
|
+
backdropClose: boolean;
|
|
608
|
+
rounded: boolean;
|
|
609
|
+
}
|
|
610
|
+
declare const DEFAULT_DRAWER_CONFIG: DrawerConfig;
|
|
611
|
+
|
|
612
|
+
declare class Drawer extends CdkDialogContainer {
|
|
613
|
+
private readonly _tlsConfig;
|
|
614
|
+
private readonly _dialogRef;
|
|
615
|
+
private readonly _state;
|
|
616
|
+
private _closing;
|
|
617
|
+
protected readonly hostClasses: i0.Signal<string[]>;
|
|
618
|
+
protected get config(): DrawerConfig;
|
|
619
|
+
protected get customSize(): string | null;
|
|
620
|
+
animatedClose(result?: unknown): void;
|
|
621
|
+
protected close(): void;
|
|
622
|
+
private _sizeClass;
|
|
623
|
+
private _isNamedSize;
|
|
624
|
+
private _afterLeaveAnimation;
|
|
625
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Drawer, never>;
|
|
626
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Drawer, "tls-drawer", never, {}, {}, never, never, true, never>;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Handle to an open drawer. Provided to the drawer's content component (inject it
|
|
631
|
+
* instead of the CDK `DialogRef`) and returned from {@link DrawerService.open}.
|
|
632
|
+
*
|
|
633
|
+
* `close` routes through the container so the slide-out animation plays before the
|
|
634
|
+
* overlay is disposed, unlike the CDK `DialogRef` which disposes synchronously.
|
|
635
|
+
*/
|
|
636
|
+
declare class DrawerRef<R = unknown, C = unknown> {
|
|
637
|
+
private readonly _dialogRef;
|
|
638
|
+
private readonly _container;
|
|
639
|
+
readonly closed: Observable<R | undefined>;
|
|
640
|
+
constructor(_dialogRef: DialogRef<R, C>, _container: Drawer);
|
|
641
|
+
get componentInstance(): C | null;
|
|
642
|
+
close(result?: R): void;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
interface DrawerOpenConfig<D = unknown> {
|
|
646
|
+
data?: D | null;
|
|
647
|
+
side?: drawerSide;
|
|
648
|
+
size?: drawerSize | string;
|
|
649
|
+
closeable?: boolean;
|
|
650
|
+
backdropClose?: boolean;
|
|
651
|
+
rounded?: boolean;
|
|
652
|
+
role?: DialogRole;
|
|
653
|
+
ariaLabel?: string | null;
|
|
654
|
+
ariaLabelledBy?: string | null;
|
|
655
|
+
ariaDescribedBy?: string | null;
|
|
656
|
+
}
|
|
657
|
+
declare class DrawerService {
|
|
658
|
+
private readonly _dialog;
|
|
659
|
+
private readonly _overlay;
|
|
660
|
+
private readonly _directionality;
|
|
661
|
+
private readonly _config;
|
|
662
|
+
private readonly _openDrawers;
|
|
663
|
+
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DrawerOpenConfig<D>): DrawerRef<R, C>;
|
|
664
|
+
closeAll(): void;
|
|
665
|
+
private _buildPositionStrategy;
|
|
666
|
+
private _wireDismissal;
|
|
667
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerService, never>;
|
|
668
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerService>;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
declare const DRAWER_CONFIG: InjectionToken<DrawerConfig>;
|
|
672
|
+
|
|
455
673
|
declare class FormControlAddon {
|
|
456
674
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlAddon, never>;
|
|
457
675
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlAddon, "tls-form-control-addon", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -788,6 +1006,7 @@ type pinInputType = 'numeric' | 'alphanumeric' | RegExp;
|
|
|
788
1006
|
|
|
789
1007
|
declare class PinInput extends ValueFormControl<string> {
|
|
790
1008
|
private _config;
|
|
1009
|
+
private readonly _directionality;
|
|
791
1010
|
private readonly _inputs;
|
|
792
1011
|
readonly value: ModelSignal<string>;
|
|
793
1012
|
readonly length: InputSignal<number>;
|
|
@@ -1135,6 +1354,73 @@ declare class ContextMenuDirective {
|
|
|
1135
1354
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[tlsContextMenu]", never, { "menu": { "alias": "tlsContextMenu"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1136
1355
|
}
|
|
1137
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* One rendered slot of an odometer: either a rolling digit column or a static
|
|
1359
|
+
* symbol (sign, decimal separator).
|
|
1360
|
+
*/
|
|
1361
|
+
interface OdometerToken {
|
|
1362
|
+
/**
|
|
1363
|
+
* Stable identity tied to the slot's place value, so a column keeps its
|
|
1364
|
+
* element (and its roll animation) as the number grows or shrinks.
|
|
1365
|
+
*/
|
|
1366
|
+
key: string;
|
|
1367
|
+
/** Digit `0-9` for a rolling column, or `null` when the slot is a symbol. */
|
|
1368
|
+
digit: number | null;
|
|
1369
|
+
/** Literal character for a static symbol, or `null` when the slot is a digit. */
|
|
1370
|
+
symbol: string | null;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Animated number whose digits roll to the new value, like a mechanical
|
|
1375
|
+
* odometer. Each digit column rolls through the values between the old and the
|
|
1376
|
+
* new one by the shortest path, so counting up or down reads naturally.
|
|
1377
|
+
*
|
|
1378
|
+
* The value scales with the surrounding `font-size`. The roll is a functional
|
|
1379
|
+
* cue on the `essential` motion tier, so it is replaced by an instant swap when
|
|
1380
|
+
* the user has reduced motion.
|
|
1381
|
+
*
|
|
1382
|
+
* @example
|
|
1383
|
+
* <!-- a live score -->
|
|
1384
|
+
* <tls-odometer [value]="score()" />
|
|
1385
|
+
*
|
|
1386
|
+
* @example
|
|
1387
|
+
* <!-- fixed-width counter with two decimals -->
|
|
1388
|
+
* <tls-odometer [value]="balance()" [minIntegerDigits]="4" [fractionDigits]="2" />
|
|
1389
|
+
*/
|
|
1390
|
+
declare class Odometer {
|
|
1391
|
+
private readonly _config;
|
|
1392
|
+
/** The number to display. Changes roll the affected digit columns. */
|
|
1393
|
+
readonly value: InputSignal<number>;
|
|
1394
|
+
/** Duration of a single-digit roll, in milliseconds. */
|
|
1395
|
+
readonly duration: InputSignal<number>;
|
|
1396
|
+
/** Minimum number of integer digits, left-padded with zeros (`007`). */
|
|
1397
|
+
readonly minIntegerDigits: InputSignal<number>;
|
|
1398
|
+
/** Number of fraction digits to display. `0` hides the decimal part. */
|
|
1399
|
+
readonly fractionDigits: InputSignal<number>;
|
|
1400
|
+
/** Character rendered between the integer and fraction parts. */
|
|
1401
|
+
readonly decimalSeparator: InputSignal<string>;
|
|
1402
|
+
/** Overrides the text announced to screen readers (defaults to the formatted value). */
|
|
1403
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1404
|
+
protected readonly tokens: Signal<OdometerToken[]>;
|
|
1405
|
+
protected readonly formattedValue: Signal<string>;
|
|
1406
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Odometer, never>;
|
|
1407
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Odometer, "tls-odometer", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "minIntegerDigits": { "alias": "minIntegerDigits"; "required": false; "isSignal": true; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; "isSignal": true; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
interface OdometerConfig {
|
|
1411
|
+
/** Duration of a single digit roll, in milliseconds. */
|
|
1412
|
+
duration: number;
|
|
1413
|
+
/** Minimum number of integer digits, left-padded with zeros (`007`). */
|
|
1414
|
+
minIntegerDigits: number;
|
|
1415
|
+
/** Number of fraction digits to display. `0` hides the decimal part. */
|
|
1416
|
+
fractionDigits: number;
|
|
1417
|
+
/** Character rendered between the integer and fraction parts. */
|
|
1418
|
+
decimalSeparator: string;
|
|
1419
|
+
}
|
|
1420
|
+
declare const DEFAULT_ODOMETER_CONFIG: OdometerConfig;
|
|
1421
|
+
|
|
1422
|
+
declare const ODOMETER_CONFIG: InjectionToken<OdometerConfig>;
|
|
1423
|
+
|
|
1138
1424
|
type paginationItem = number | 'gap';
|
|
1139
1425
|
|
|
1140
1426
|
declare class Pagination {
|
|
@@ -1178,6 +1464,23 @@ declare const DEFAULT_PAGINATION_CONFIG: PaginationConfig;
|
|
|
1178
1464
|
|
|
1179
1465
|
declare const PAGINATION_CONFIG: InjectionToken<PaginationConfig>;
|
|
1180
1466
|
|
|
1467
|
+
interface PaginationQuerySyncConfig {
|
|
1468
|
+
paramKey: string;
|
|
1469
|
+
}
|
|
1470
|
+
declare const DEFAULT_PAGINATION_QUERY_SYNC_CONFIG: PaginationQuerySyncConfig;
|
|
1471
|
+
|
|
1472
|
+
declare const PAGINATION_QUERY_SYNC_CONFIG: InjectionToken<PaginationQuerySyncConfig>;
|
|
1473
|
+
|
|
1474
|
+
declare class PaginationQuerySyncDirective extends QuerySyncDirective implements OnInit {
|
|
1475
|
+
private readonly _pagination;
|
|
1476
|
+
private readonly _config;
|
|
1477
|
+
readonly tlsPaginationQuerySync: i0.InputSignal<string>;
|
|
1478
|
+
constructor();
|
|
1479
|
+
ngOnInit(): void;
|
|
1480
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationQuerySyncDirective, never>;
|
|
1481
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationQuerySyncDirective, "tls-pagination[tlsPaginationQuerySync]", never, { "tlsPaginationQuerySync": { "alias": "tlsPaginationQuerySync"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1181
1484
|
declare class Popover {
|
|
1182
1485
|
private static _counter;
|
|
1183
1486
|
private readonly _config;
|
|
@@ -1267,6 +1570,7 @@ declare class Stepper {
|
|
|
1267
1570
|
protected readonly panelId: string;
|
|
1268
1571
|
private _config;
|
|
1269
1572
|
private _stepperService;
|
|
1573
|
+
private readonly _directionality;
|
|
1270
1574
|
protected steps: Signal<readonly Step[]>;
|
|
1271
1575
|
protected completedTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
1272
1576
|
protected completedIconTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
@@ -1390,6 +1694,23 @@ declare const DEFAULT_TABS_CONFIG: TabsConfig;
|
|
|
1390
1694
|
|
|
1391
1695
|
declare const TABS_CONFIG: InjectionToken<TabsConfig>;
|
|
1392
1696
|
|
|
1697
|
+
interface TabsQuerySyncConfig {
|
|
1698
|
+
paramKey: string;
|
|
1699
|
+
}
|
|
1700
|
+
declare const DEFAULT_TABS_QUERY_SYNC_CONFIG: TabsQuerySyncConfig;
|
|
1701
|
+
|
|
1702
|
+
declare const TABS_QUERY_SYNC_CONFIG: InjectionToken<TabsQuerySyncConfig>;
|
|
1703
|
+
|
|
1704
|
+
declare class TabsQuerySyncDirective extends QuerySyncDirective implements OnInit {
|
|
1705
|
+
private readonly _tabs;
|
|
1706
|
+
private readonly _config;
|
|
1707
|
+
readonly tlsTabsQuerySync: i0.InputSignal<string>;
|
|
1708
|
+
constructor();
|
|
1709
|
+
ngOnInit(): void;
|
|
1710
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsQuerySyncDirective, never>;
|
|
1711
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsQuerySyncDirective, "tls-tabs[tlsTabsQuerySync]", never, { "tlsTabsQuerySync": { "alias": "tlsTabsQuerySync"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1393
1714
|
type tooltipOrigin = 'cursor' | 'element';
|
|
1394
1715
|
type tooltipPosition = overlayPosition;
|
|
1395
1716
|
type tooltipColor = color;
|
|
@@ -1452,6 +1773,7 @@ interface tlsUiConfigProvider {
|
|
|
1452
1773
|
menu?: Partial<MenuConfig>;
|
|
1453
1774
|
multiSelect?: Partial<MultiSelectConfig>;
|
|
1454
1775
|
pagination?: Partial<PaginationConfig>;
|
|
1776
|
+
paginationQuerySync?: Partial<PaginationQuerySyncConfig>;
|
|
1455
1777
|
password?: Partial<PasswordConfig>;
|
|
1456
1778
|
pinInput?: Partial<PinInputConfig>;
|
|
1457
1779
|
popover?: Partial<PopoverConfig>;
|
|
@@ -1462,6 +1784,7 @@ interface tlsUiConfigProvider {
|
|
|
1462
1784
|
switch?: Partial<SwitchConfig>;
|
|
1463
1785
|
table?: Partial<TableConfig>;
|
|
1464
1786
|
tabs?: Partial<TabsConfig>;
|
|
1787
|
+
tabsQuerySync?: Partial<TabsQuerySyncConfig>;
|
|
1465
1788
|
textarea?: Partial<TextareaConfig>;
|
|
1466
1789
|
toggleGroup?: Partial<ToggleGroupConfig>;
|
|
1467
1790
|
tooltip?: Partial<TooltipConfig>;
|
|
@@ -1517,7 +1840,16 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
1517
1840
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1518
1841
|
}
|
|
1519
1842
|
|
|
1843
|
+
declare abstract class QuerySyncDirective {
|
|
1844
|
+
protected readonly _router: Router;
|
|
1845
|
+
protected readonly _route: ActivatedRoute;
|
|
1846
|
+
protected syncToUrl(param: string, value: string | number): void;
|
|
1847
|
+
protected readParam(param: string): string | null;
|
|
1848
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuerySyncDirective, never>;
|
|
1849
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<QuerySyncDirective, never, never, {}, {}, never, never, true, never>;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1520
1852
|
declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
|
|
1521
1853
|
|
|
1522
|
-
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, 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_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FILE_UPLOADER_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_PAGINATION_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_TEXTAREA_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, FILE_UPLOADER_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileUploader, 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, PAGINATION_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TEXTAREA_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, Textarea, ToggleGroup, TooltipDirective, ValueFormControl, provideThalassicUIConfig };
|
|
1523
|
-
export type { AlertConfig, ButtonConfig, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, FileUploaderConfig, FileUploaderDropZoneContext, FileUploaderFileContext, FormControlGroupConfig, FormItemConfig, IconConfig, InputConfig, InputNumberConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, PaginationConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TextareaConfig, ToggleGroupConfig, TooltipConfig, acceptInput, chipColor, chipTemplateContext, chipVariant, color, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, fileUploaderDragState, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, size, stepperColor, stepperOrientation, stepperValue, tableColumnAlignment, textareaResize, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };
|
|
1854
|
+
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_UPLOADER_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_UPLOADER_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileUploader, 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 };
|
|
1855
|
+
export type { AlertConfig, ButtonConfig, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileUploaderConfig, FileUploaderDropZoneContext, FileUploaderFileContext, FormControlGroupConfig, FormItemConfig, IconConfig, InputConfig, InputNumberConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, PaginationConfig, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToggleGroupConfig, TooltipConfig, acceptInput, chipColor, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, fileUploaderDragState, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, stepperColor, stepperOrientation, stepperValue, tableColumnAlignment, textareaResize, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };
|