@thalassic/ui 0.6.0 → 0.8.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.mjs +2012 -156
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +8 -2
- package/types/thalassic-ui.d.ts +608 -91
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,37 +1,52 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InputSignal, InputSignalWithTransform, InjectionToken,
|
|
2
|
+
import { InputSignal, InputSignalWithTransform, InjectionToken, OnInit, OnDestroy, Signal, ElementRef, ModelSignal, WritableSignal, TemplateRef, OutputEmitterRef, TrackByFunction, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as _thalassic_ui from '@thalassic/ui';
|
|
4
|
+
import * as node_modules_chart_js_dist_types_utils from 'node_modules/chart.js/dist/types/utils';
|
|
5
|
+
import * as chart_js from 'chart.js';
|
|
6
|
+
import { ChartType, ChartDatasetCustomTypesPerDataset, ChartDataset, ChartOptions } from 'chart.js';
|
|
7
|
+
import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
|
|
8
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
4
9
|
import { FieldTree, FormUiControl, WithOptionalFieldTree, ValidationError, FormCheckboxControl, FormValueControl } from '@angular/forms/signals';
|
|
10
|
+
import { Day } from 'date-fns';
|
|
5
11
|
import { SafeHtml } from '@angular/platform-browser';
|
|
12
|
+
import { Point } from '@thalassic/core';
|
|
13
|
+
import { DataSource } from '@angular/cdk/table';
|
|
14
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
6
15
|
|
|
7
16
|
type color = 'primary' | 'secondary' | 'tertiary' | 'success' | 'info' | 'warning' | 'danger';
|
|
8
17
|
|
|
9
18
|
type controlSize = 'sm' | 'md' | 'lg';
|
|
10
19
|
|
|
11
|
-
type
|
|
12
|
-
type tabValue = string | number;
|
|
20
|
+
type orientation = 'horizontal' | 'vertical';
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
declare const DEFAULT_TABS_CONFIG: TabsConfig;
|
|
22
|
+
type overlayPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
23
|
+
|
|
24
|
+
type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
18
25
|
|
|
19
26
|
interface tlsUiConfigProvider {
|
|
20
27
|
components: {
|
|
21
28
|
alert?: Partial<AlertConfig>;
|
|
22
29
|
button?: Partial<ButtonConfig>;
|
|
30
|
+
dateTimePicker?: Partial<DateTimePickerConfig>;
|
|
31
|
+
dialog?: Partial<DialogConfig>;
|
|
23
32
|
divider?: Partial<DividerConfig>;
|
|
24
33
|
input?: Partial<InputConfig>;
|
|
25
34
|
password?: Partial<PasswordConfig>;
|
|
35
|
+
select?: Partial<SelectConfig>;
|
|
26
36
|
switch?: Partial<SwitchConfig>;
|
|
27
37
|
formItem?: Partial<FormItemConfig>;
|
|
28
38
|
icon?: Partial<IconConfig>;
|
|
39
|
+
pagination?: Partial<PaginationConfig>;
|
|
40
|
+
popover?: Partial<PopoverConfig>;
|
|
41
|
+
skeleton?: Partial<SkeletonConfig>;
|
|
42
|
+
stepper?: Partial<StepperConfig>;
|
|
43
|
+
table?: Partial<TableConfig>;
|
|
29
44
|
tabs?: Partial<TabsConfig>;
|
|
45
|
+
tooltip?: Partial<TooltipConfig>;
|
|
30
46
|
};
|
|
31
47
|
}
|
|
32
48
|
|
|
33
49
|
type buttonType = 'submit' | 'reset' | 'button';
|
|
34
|
-
type buttonSize = controlSize;
|
|
35
50
|
type buttonVariant = 'filled' | 'outlined' | 'text' | 'elevated';
|
|
36
51
|
type buttonColor = color;
|
|
37
52
|
|
|
@@ -65,7 +80,7 @@ declare abstract class ButtonBase {
|
|
|
65
80
|
readonly icon: InputSignalWithTransform<boolean, unknown>;
|
|
66
81
|
readonly color: InputSignal<buttonColor>;
|
|
67
82
|
readonly variant: InputSignal<buttonVariant>;
|
|
68
|
-
readonly size: InputSignal<
|
|
83
|
+
readonly size: InputSignal<controlSize>;
|
|
69
84
|
readonly rounded: InputSignalWithTransform<boolean, unknown>;
|
|
70
85
|
/** Whether the button stretches to fill its container's width. */
|
|
71
86
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
@@ -96,7 +111,7 @@ declare class ButtonDirective extends ButtonBase {
|
|
|
96
111
|
interface ButtonConfig {
|
|
97
112
|
color: buttonColor;
|
|
98
113
|
variant: buttonVariant;
|
|
99
|
-
size:
|
|
114
|
+
size: controlSize;
|
|
100
115
|
type: buttonType;
|
|
101
116
|
fluid: boolean;
|
|
102
117
|
}
|
|
@@ -104,7 +119,139 @@ declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
|
|
|
104
119
|
|
|
105
120
|
declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
|
|
106
121
|
|
|
107
|
-
|
|
122
|
+
declare abstract class ChartElement<T extends ChartType = ChartType> {
|
|
123
|
+
abstract readonly type: T;
|
|
124
|
+
dataset: InputSignalWithTransform<ChartDatasetCustomTypesPerDataset<T>, ChartDataset>;
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartElement<any>, never>;
|
|
126
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartElement<any>, never, never, { "dataset": { "alias": "dataset"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare class Chart implements OnInit, OnDestroy {
|
|
130
|
+
private _config;
|
|
131
|
+
private _chartService;
|
|
132
|
+
private _destroyRef;
|
|
133
|
+
private _themeService;
|
|
134
|
+
protected canvasRef: Signal<ElementRef<HTMLCanvasElement> | undefined>;
|
|
135
|
+
protected chartElements: Signal<readonly ChartElement<keyof chart_js.ChartTypeRegistry>[]>;
|
|
136
|
+
private _chart;
|
|
137
|
+
labels: i0.InputSignal<unknown[]>;
|
|
138
|
+
options: i0.InputSignal<node_modules_chart_js_dist_types_utils._DeepPartialObject<chart_js.CoreChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ElementChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.PluginChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.DatasetChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ScaleChartOptions<keyof chart_js.ChartTypeRegistry>> | undefined>;
|
|
139
|
+
private _options;
|
|
140
|
+
private _datasets;
|
|
141
|
+
protected hostClasses: Signal<string[]>;
|
|
142
|
+
constructor();
|
|
143
|
+
protected get canvasElement(): HTMLCanvasElement | undefined;
|
|
144
|
+
private _tryInitThemeListener;
|
|
145
|
+
ngOnInit(): void;
|
|
146
|
+
ngOnDestroy(): void;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Chart, never>;
|
|
148
|
+
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>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface ChartConfig {
|
|
152
|
+
options: ChartOptions;
|
|
153
|
+
}
|
|
154
|
+
declare const DEFAULT_CHART_CONFIG: ChartConfig;
|
|
155
|
+
|
|
156
|
+
declare const CHART_CONFIG: InjectionToken<ChartConfig>;
|
|
157
|
+
|
|
158
|
+
declare class BarChart extends ChartElement<'bar'> {
|
|
159
|
+
readonly type = "bar";
|
|
160
|
+
constructor();
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarChart, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarChart, "tls-bar-chart", never, {}, {}, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class BubbleChart extends ChartElement<'bubble'> {
|
|
166
|
+
readonly type = "bubble";
|
|
167
|
+
constructor();
|
|
168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChart, never>;
|
|
169
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChart, "tls-bubble-chart", never, {}, {}, never, never, true, never>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare class DoughnutChart extends ChartElement<'doughnut'> {
|
|
173
|
+
readonly type = "doughnut";
|
|
174
|
+
constructor();
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DoughnutChart, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DoughnutChart, "tls-doughnut-chart", never, {}, {}, never, never, true, never>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare class LineChart extends ChartElement<'line'> {
|
|
180
|
+
readonly type = "line";
|
|
181
|
+
constructor();
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineChart, never>;
|
|
183
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineChart, "tls-line-chart", never, {}, {}, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare class PieChart extends ChartElement<'pie'> {
|
|
187
|
+
readonly type = "pie";
|
|
188
|
+
constructor();
|
|
189
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PieChart, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PieChart, "tls-pie-chart", never, {}, {}, never, never, true, never>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class PolarAreaChart extends ChartElement<'polarArea'> {
|
|
194
|
+
readonly type = "polarArea";
|
|
195
|
+
constructor();
|
|
196
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PolarAreaChart, never>;
|
|
197
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PolarAreaChart, "tls-polar-area-chart", never, {}, {}, never, never, true, never>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare class RadarChart extends ChartElement<'radar'> {
|
|
201
|
+
readonly type = "radar";
|
|
202
|
+
constructor();
|
|
203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadarChart, never>;
|
|
204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadarChart, "tls-radar-chart", never, {}, {}, never, never, true, never>;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare class ScatterChart extends ChartElement<'scatter'> {
|
|
208
|
+
readonly type = "scatter";
|
|
209
|
+
constructor();
|
|
210
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScatterChart, never>;
|
|
211
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScatterChart, "tls-scatter-chart", never, {}, {}, never, never, true, never>;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type dialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'wide' | 'full';
|
|
215
|
+
|
|
216
|
+
interface DialogConfig {
|
|
217
|
+
size: dialogSize;
|
|
218
|
+
closeable: boolean;
|
|
219
|
+
backdropClose: boolean;
|
|
220
|
+
}
|
|
221
|
+
declare const DEFAULT_DIALOG_CONFIG: DialogConfig;
|
|
222
|
+
|
|
223
|
+
declare class Dialog extends CdkDialogContainer {
|
|
224
|
+
private readonly _tlsConfig;
|
|
225
|
+
private readonly _dialogRef;
|
|
226
|
+
protected readonly hostClasses: string[];
|
|
227
|
+
protected get config(): DialogConfig;
|
|
228
|
+
protected close(): void;
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Dialog, "tls-dialog", never, {}, {}, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface DialogOpenConfig<D = unknown> {
|
|
234
|
+
data?: D | null;
|
|
235
|
+
size?: dialogSize;
|
|
236
|
+
closeable?: boolean;
|
|
237
|
+
backdropClose?: boolean;
|
|
238
|
+
role?: DialogRole;
|
|
239
|
+
ariaLabel?: string | null;
|
|
240
|
+
ariaLabelledBy?: string | null;
|
|
241
|
+
ariaDescribedBy?: string | null;
|
|
242
|
+
}
|
|
243
|
+
declare class DialogService {
|
|
244
|
+
private readonly _dialog;
|
|
245
|
+
private readonly _config;
|
|
246
|
+
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DialogOpenConfig<D>): DialogRef<R, C>;
|
|
247
|
+
closeAll(): void;
|
|
248
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
249
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare const DIALOG_CONFIG: InjectionToken<DialogConfig>;
|
|
253
|
+
|
|
254
|
+
type dividerOrientation = orientation;
|
|
108
255
|
type dividerContentPosition = 'start' | 'center' | 'end';
|
|
109
256
|
type dividerVariant = 'dashed' | 'dotted' | 'solid';
|
|
110
257
|
|
|
@@ -209,7 +356,47 @@ declare class Checkbox extends CheckboxFormControl {
|
|
|
209
356
|
static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "tls-checkbox", never, { "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "indeterminate": "indeterminateChange"; "checked": "checkedChange"; }, never, never, true, never>;
|
|
210
357
|
}
|
|
211
358
|
|
|
212
|
-
type
|
|
359
|
+
type dateTimePickerMode = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
|
|
360
|
+
|
|
361
|
+
type ActiveView = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
|
|
362
|
+
declare class DateTimePicker extends ValueFormControl<Date | null> {
|
|
363
|
+
private readonly config;
|
|
364
|
+
private readonly popoverComponent;
|
|
365
|
+
readonly value: ModelSignal<Date | null>;
|
|
366
|
+
readonly mode: InputSignal<dateTimePickerMode>;
|
|
367
|
+
readonly inline: InputSignalWithTransform<boolean, unknown>;
|
|
368
|
+
readonly placeholder: InputSignal<string>;
|
|
369
|
+
readonly size: InputSignal<controlSize>;
|
|
370
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
371
|
+
readonly yearsPerPage: InputSignal<number>;
|
|
372
|
+
readonly weekStartsOn: InputSignal<Day>;
|
|
373
|
+
readonly weekDays: InputSignal<string[]>;
|
|
374
|
+
protected readonly viewDate: WritableSignal<Date>;
|
|
375
|
+
protected readonly activeView: WritableSignal<ActiveView>;
|
|
376
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
377
|
+
protected readonly triggerLabel: Signal<string>;
|
|
378
|
+
constructor();
|
|
379
|
+
protected onViewDateChange(date: Date): void;
|
|
380
|
+
protected onDaySelect(date: Date): void;
|
|
381
|
+
protected onMonthSelect(date: Date): void;
|
|
382
|
+
protected onYearSelect(date: Date): void;
|
|
383
|
+
protected onTimeChange(date: Date): void;
|
|
384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePicker, never>;
|
|
385
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePicker, "tls-date-time-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "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; }; "yearsPerPage": { "alias": "yearsPerPage"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
interface DateTimePickerConfig {
|
|
389
|
+
mode: dateTimePickerMode;
|
|
390
|
+
inline: boolean;
|
|
391
|
+
placeholder: string;
|
|
392
|
+
size: controlSize;
|
|
393
|
+
yearsPerPage: number;
|
|
394
|
+
weekStartsOn: Day;
|
|
395
|
+
weekDays: string[];
|
|
396
|
+
}
|
|
397
|
+
declare const DEFAULT_DATE_TIME_PICKER_CONFIG: DateTimePickerConfig;
|
|
398
|
+
|
|
399
|
+
declare const DATE_TIME_PICKER_CONFIG: InjectionToken<DateTimePickerConfig>;
|
|
213
400
|
|
|
214
401
|
declare class Input extends ValueFormControl<string> {
|
|
215
402
|
private _config;
|
|
@@ -217,7 +404,7 @@ declare class Input extends ValueFormControl<string> {
|
|
|
217
404
|
readonly value: ModelSignal<string>;
|
|
218
405
|
readonly inputId: InputSignal<string | null>;
|
|
219
406
|
readonly placeholder: InputSignal<string>;
|
|
220
|
-
readonly size: InputSignal<
|
|
407
|
+
readonly size: InputSignal<controlSize>;
|
|
221
408
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
222
409
|
protected readonly classes: Signal<string[]>;
|
|
223
410
|
protected onInput(event: Event): void;
|
|
@@ -226,7 +413,7 @@ declare class Input extends ValueFormControl<string> {
|
|
|
226
413
|
}
|
|
227
414
|
|
|
228
415
|
interface InputConfig {
|
|
229
|
-
size:
|
|
416
|
+
size: controlSize;
|
|
230
417
|
type: string;
|
|
231
418
|
placeholder: string;
|
|
232
419
|
fluid: boolean;
|
|
@@ -235,7 +422,7 @@ declare const DEFAULT_INPUT_CONFIG: InputConfig;
|
|
|
235
422
|
|
|
236
423
|
declare class InputDirective {
|
|
237
424
|
private _config;
|
|
238
|
-
readonly size: InputSignal<
|
|
425
|
+
readonly size: InputSignal<controlSize>;
|
|
239
426
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
240
427
|
protected readonly hostClasses: Signal<string[]>;
|
|
241
428
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, never>;
|
|
@@ -250,7 +437,7 @@ declare class Password extends ValueFormControl<string> {
|
|
|
250
437
|
readonly visible: ModelSignal<boolean>;
|
|
251
438
|
readonly inputId: InputSignal<string | null>;
|
|
252
439
|
readonly placeholder: InputSignal<string>;
|
|
253
|
-
readonly size: InputSignal<
|
|
440
|
+
readonly size: InputSignal<controlSize>;
|
|
254
441
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
255
442
|
protected readonly hostClasses: Signal<string[]>;
|
|
256
443
|
protected type: Signal<"text" | "password">;
|
|
@@ -261,7 +448,7 @@ declare class Password extends ValueFormControl<string> {
|
|
|
261
448
|
}
|
|
262
449
|
|
|
263
450
|
interface PasswordConfig {
|
|
264
|
-
size:
|
|
451
|
+
size: controlSize;
|
|
265
452
|
placeholder: string;
|
|
266
453
|
fluid: boolean;
|
|
267
454
|
}
|
|
@@ -269,6 +456,41 @@ declare const DEFAULT_PASSWORD_CONFIG: PasswordConfig;
|
|
|
269
456
|
|
|
270
457
|
declare const PASSWORD_CONFIG: InjectionToken<PasswordConfig>;
|
|
271
458
|
|
|
459
|
+
type pinInputType = 'numeric' | 'alphanumeric' | RegExp;
|
|
460
|
+
|
|
461
|
+
declare class PinInput extends ValueFormControl<string> {
|
|
462
|
+
private _config;
|
|
463
|
+
private readonly _inputs;
|
|
464
|
+
readonly value: ModelSignal<string>;
|
|
465
|
+
readonly length: InputSignal<number>;
|
|
466
|
+
readonly type: InputSignal<pinInputType>;
|
|
467
|
+
readonly placeholder: InputSignal<string>;
|
|
468
|
+
protected CLASS_NAME: string;
|
|
469
|
+
protected readonly cells: Signal<number[]>;
|
|
470
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
471
|
+
protected getCellValue(index: number): string;
|
|
472
|
+
protected onInput(event: Event, index: number): void;
|
|
473
|
+
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
474
|
+
protected onPaste(event: ClipboardEvent, index: number): void;
|
|
475
|
+
protected onFocus(event: FocusEvent): void;
|
|
476
|
+
private _setCell;
|
|
477
|
+
private _commitArray;
|
|
478
|
+
private _focusCell;
|
|
479
|
+
private _getAllowedRegularExpression;
|
|
480
|
+
private _getValueArray;
|
|
481
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PinInput, never>;
|
|
482
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PinInput, "tls-pin-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
interface PinInputConfig {
|
|
486
|
+
type: pinInputType;
|
|
487
|
+
length: number;
|
|
488
|
+
placeholder: string;
|
|
489
|
+
}
|
|
490
|
+
declare const DEFAULT_PIN_INPUT_CONFIG: PinInputConfig;
|
|
491
|
+
|
|
492
|
+
declare const PIN_INPUT_CONFIG: InjectionToken<PinInputConfig>;
|
|
493
|
+
|
|
272
494
|
interface RadioButtonConfig {
|
|
273
495
|
}
|
|
274
496
|
declare const DEFAULT_RADIO_BUTTON_CONFIG: RadioButtonConfig;
|
|
@@ -289,6 +511,62 @@ declare class RadioButton extends ValueFormControl<unknown> {
|
|
|
289
511
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButton, "tls-radio-button", never, { "radioValue": { "alias": "radioValue"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
290
512
|
}
|
|
291
513
|
|
|
514
|
+
type selectOptionType<T> = string | number | T;
|
|
515
|
+
|
|
516
|
+
interface NormalizedOption<V = unknown> {
|
|
517
|
+
value: V;
|
|
518
|
+
label: string;
|
|
519
|
+
disabled: boolean;
|
|
520
|
+
}
|
|
521
|
+
declare class Select<T, V = unknown> extends ValueFormControl<V | undefined> implements OnDestroy {
|
|
522
|
+
private readonly _config;
|
|
523
|
+
private readonly _overlay;
|
|
524
|
+
private readonly _viewContainerRef;
|
|
525
|
+
private readonly _destroyRef;
|
|
526
|
+
private readonly _triggerElement;
|
|
527
|
+
private readonly _panelTemplate;
|
|
528
|
+
private _overlayRef;
|
|
529
|
+
private _portal;
|
|
530
|
+
readonly value: ModelSignal<V | undefined>;
|
|
531
|
+
readonly inputId: InputSignal<string | null>;
|
|
532
|
+
readonly options: InputSignal<selectOptionType<T>[]>;
|
|
533
|
+
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
534
|
+
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
535
|
+
readonly optionDisabled: InputSignal<keyof T | undefined>;
|
|
536
|
+
readonly placeholder: InputSignal<string>;
|
|
537
|
+
readonly size: InputSignal<controlSize>;
|
|
538
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
539
|
+
readonly tabindex: InputSignal<string | number>;
|
|
540
|
+
readonly clearable: InputSignalWithTransform<boolean, unknown>;
|
|
541
|
+
protected readonly isOpen: WritableSignal<boolean>;
|
|
542
|
+
protected readonly activeIndex: WritableSignal<number>;
|
|
543
|
+
protected readonly normalizedOptions: Signal<NormalizedOption<V>[]>;
|
|
544
|
+
protected readonly hasValue: Signal<boolean>;
|
|
545
|
+
protected readonly selectedLabel: Signal<string>;
|
|
546
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
547
|
+
protected open(): void;
|
|
548
|
+
protected close(): void;
|
|
549
|
+
protected toggle(): void;
|
|
550
|
+
protected select(option: NormalizedOption<V>): void;
|
|
551
|
+
protected clear(): void;
|
|
552
|
+
protected onOptionHover(index: number, disabled?: boolean): void;
|
|
553
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
554
|
+
private _moveActive;
|
|
555
|
+
ngOnDestroy(): void;
|
|
556
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Select<any, any>, never>;
|
|
557
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Select<any, any>, "tls-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "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; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
interface SelectConfig {
|
|
561
|
+
size: controlSize;
|
|
562
|
+
placeholder: string;
|
|
563
|
+
fluid: boolean;
|
|
564
|
+
clearable: boolean;
|
|
565
|
+
}
|
|
566
|
+
declare const DEFAULT_SELECT_CONFIG: SelectConfig;
|
|
567
|
+
|
|
568
|
+
declare const SELECT_CONFIG: InjectionToken<SelectConfig>;
|
|
569
|
+
|
|
292
570
|
type switchColor = color;
|
|
293
571
|
|
|
294
572
|
declare class Switch extends CheckboxFormControl {
|
|
@@ -332,10 +610,271 @@ declare const DEFAULT_ICON_CONFIG: IconConfig;
|
|
|
332
610
|
|
|
333
611
|
declare const ICON_CONFIG: InjectionToken<IconConfig>;
|
|
334
612
|
|
|
613
|
+
type loaderSize = size | number;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Indeterminate spinner for indicating a loading state.
|
|
617
|
+
*
|
|
618
|
+
* @example
|
|
619
|
+
* <!-- predefined size -->
|
|
620
|
+
* <tls-loader size="lg" />
|
|
621
|
+
*
|
|
622
|
+
* @example
|
|
623
|
+
* <!-- custom size in pixels -->
|
|
624
|
+
* <tls-loader [size]="64" />
|
|
625
|
+
*
|
|
626
|
+
* @example
|
|
627
|
+
* <!-- custom size with explicit stroke width -->
|
|
628
|
+
* <tls-loader [size]="64" [width]="8" />
|
|
629
|
+
*/
|
|
630
|
+
declare class Loader {
|
|
631
|
+
private _config;
|
|
632
|
+
/** Predefined size token or custom pixel value. */
|
|
633
|
+
readonly size: InputSignal<loaderSize>;
|
|
634
|
+
/** Stroke width in pixels. Overrides the size-class default for both token and numeric sizes. */
|
|
635
|
+
readonly width: InputSignal<number | null>;
|
|
636
|
+
/** Divisor for auto stroke width when size is a number and width is null (`size / widthRatio`). */
|
|
637
|
+
readonly widthRatio: InputSignal<number>;
|
|
638
|
+
/** Text announced by screen readers via `aria-label`. */
|
|
639
|
+
readonly ariaLabel: InputSignal<string>;
|
|
640
|
+
protected hostClasses: i0.Signal<string[]>;
|
|
641
|
+
protected hostStyles: i0.Signal<Record<string, string> | null>;
|
|
642
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Loader, never>;
|
|
643
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Loader, "tls-loader", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "widthRatio": { "alias": "widthRatio"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
interface LoaderConfig {
|
|
647
|
+
size: loaderSize;
|
|
648
|
+
width: number | null;
|
|
649
|
+
widthRatio: number;
|
|
650
|
+
ariaLabel: string;
|
|
651
|
+
}
|
|
652
|
+
declare const DEFAULT_LOADER_CONFIG: LoaderConfig;
|
|
653
|
+
|
|
654
|
+
declare const LOADER_CONFIG: InjectionToken<LoaderConfig>;
|
|
655
|
+
|
|
656
|
+
type paginationItem = number | 'gap';
|
|
657
|
+
|
|
658
|
+
declare class Pagination {
|
|
659
|
+
private readonly _config;
|
|
660
|
+
readonly value: i0.ModelSignal<number>;
|
|
661
|
+
readonly pageSize: i0.InputSignal<number>;
|
|
662
|
+
readonly total: i0.InputSignal<number>;
|
|
663
|
+
readonly size: i0.InputSignal<controlSize>;
|
|
664
|
+
readonly boundaries: i0.InputSignal<number>;
|
|
665
|
+
readonly siblings: i0.InputSignal<number>;
|
|
666
|
+
readonly showFirstButton: i0.InputSignalWithTransform<boolean, unknown>;
|
|
667
|
+
readonly showLastButton: i0.InputSignalWithTransform<boolean, unknown>;
|
|
668
|
+
protected readonly pageCount: i0.Signal<number>;
|
|
669
|
+
protected readonly visiblePages: i0.Signal<paginationItem[]>;
|
|
670
|
+
protected readonly classes: i0.Signal<string[]>;
|
|
671
|
+
protected setPage(page: number): void;
|
|
672
|
+
protected firstPage(): void;
|
|
673
|
+
protected prevPage(): void;
|
|
674
|
+
protected nextPage(): void;
|
|
675
|
+
protected lastPage(): void;
|
|
676
|
+
/** Returns an inclusive array of integers from start to end. Returns [] if end < start. */
|
|
677
|
+
private _range;
|
|
678
|
+
/** Computes the visible page items, inserting 'gap' where ellipsis should appear based on boundaries and siblings. */
|
|
679
|
+
private _buildPages;
|
|
680
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Pagination, never>;
|
|
681
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Pagination, "tls-pagination", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "boundaries": { "alias": "boundaries"; "required": false; "isSignal": true; }; "siblings": { "alias": "siblings"; "required": false; "isSignal": true; }; "showFirstButton": { "alias": "showFirstButton"; "required": false; "isSignal": true; }; "showLastButton": { "alias": "showLastButton"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
interface PaginationConfig {
|
|
685
|
+
size: controlSize;
|
|
686
|
+
pageSize: number;
|
|
687
|
+
boundaries: number;
|
|
688
|
+
siblings: number;
|
|
689
|
+
showFirstButton: boolean;
|
|
690
|
+
showLastButton: boolean;
|
|
691
|
+
}
|
|
692
|
+
declare const DEFAULT_PAGINATION_CONFIG: PaginationConfig;
|
|
693
|
+
|
|
694
|
+
declare const PAGINATION_CONFIG: InjectionToken<PaginationConfig>;
|
|
695
|
+
|
|
696
|
+
declare class Popover implements OnDestroy {
|
|
697
|
+
private static _counter;
|
|
698
|
+
private readonly _overlay;
|
|
699
|
+
private readonly _viewContainerRef;
|
|
700
|
+
private readonly _config;
|
|
701
|
+
private readonly _destroyRef;
|
|
702
|
+
private readonly _templateRef;
|
|
703
|
+
private _overlayRef;
|
|
704
|
+
private readonly _isOpen;
|
|
705
|
+
readonly id: string;
|
|
706
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
707
|
+
readonly position: i0.InputSignal<overlayPosition>;
|
|
708
|
+
readonly offset: i0.InputSignal<Point>;
|
|
709
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
710
|
+
private readonly _positions;
|
|
711
|
+
open(trigger: MouseEvent | HTMLElement): void;
|
|
712
|
+
close(): void;
|
|
713
|
+
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
714
|
+
ngOnDestroy(): void;
|
|
715
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Popover, never>;
|
|
716
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Popover, "tls-popover", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface PopoverConfig {
|
|
720
|
+
position: overlayPosition;
|
|
721
|
+
offset: Point;
|
|
722
|
+
}
|
|
723
|
+
declare const DEFAULT_POPOVER_CONFIG: PopoverConfig;
|
|
724
|
+
|
|
725
|
+
declare const POPOVER_CONFIG: InjectionToken<PopoverConfig>;
|
|
726
|
+
|
|
727
|
+
declare class Skeleton {
|
|
728
|
+
private _config;
|
|
729
|
+
readonly size: InputSignal<number>;
|
|
730
|
+
readonly width: InputSignal<number | null>;
|
|
731
|
+
readonly height: InputSignal<number | null>;
|
|
732
|
+
readonly radius: InputSignal<number>;
|
|
733
|
+
readonly duration: InputSignal<number>;
|
|
734
|
+
readonly rounded: InputSignalWithTransform<boolean, unknown>;
|
|
735
|
+
readonly animate: InputSignalWithTransform<boolean, unknown>;
|
|
736
|
+
protected hostClasses: i0.Signal<string[]>;
|
|
737
|
+
protected hostStyles: i0.Signal<{
|
|
738
|
+
'--tls-skeleton-width': string;
|
|
739
|
+
'--tls-skeleton-height': string;
|
|
740
|
+
'--tls-skeleton-radius': string;
|
|
741
|
+
'--tls-skeleton-duration': string;
|
|
742
|
+
}>;
|
|
743
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Skeleton, never>;
|
|
744
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Skeleton, "tls-skeleton", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
interface SkeletonConfig {
|
|
748
|
+
size: number;
|
|
749
|
+
width: number | null;
|
|
750
|
+
height: number | null;
|
|
751
|
+
radius: number;
|
|
752
|
+
duration: number;
|
|
753
|
+
rounded: boolean;
|
|
754
|
+
animate: boolean;
|
|
755
|
+
}
|
|
756
|
+
declare const DEFAULT_SKELETON_CONFIG: SkeletonConfig;
|
|
757
|
+
|
|
758
|
+
declare const SKELETON_CONFIG: InjectionToken<SkeletonConfig>;
|
|
759
|
+
|
|
760
|
+
type stepperValue = string | number;
|
|
761
|
+
type stepperColor = color;
|
|
762
|
+
type stepperOrientation = orientation;
|
|
763
|
+
interface StepperSelectEvent {
|
|
764
|
+
index: number;
|
|
765
|
+
value: stepperValue;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
declare class Step {
|
|
769
|
+
private _config;
|
|
770
|
+
private _stepperService;
|
|
771
|
+
readonly iconTemplateRef: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
772
|
+
readonly completedIconTemplateRef: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
773
|
+
readonly value: InputSignal<stepperValue>;
|
|
774
|
+
readonly label: InputSignal<string | undefined>;
|
|
775
|
+
readonly description: InputSignal<string | undefined>;
|
|
776
|
+
readonly color: InputSignal<stepperColor>;
|
|
777
|
+
readonly disabled: InputSignal<boolean>;
|
|
778
|
+
private _active;
|
|
779
|
+
protected hostClasses: i0.Signal<string[]>;
|
|
780
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Step, never>;
|
|
781
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Step, "tls-step", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "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, never>;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
declare class Stepper {
|
|
785
|
+
private static _counter;
|
|
786
|
+
protected readonly panelId: string;
|
|
787
|
+
private _config;
|
|
788
|
+
private _stepperService;
|
|
789
|
+
protected steps: Signal<readonly Step[]>;
|
|
790
|
+
protected completedTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
791
|
+
protected completedIconTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
792
|
+
private _stepButtons;
|
|
793
|
+
readonly active: ModelSignal<stepperValue>;
|
|
794
|
+
readonly orientation: InputSignal<stepperOrientation>;
|
|
795
|
+
readonly completed: InputSignal<boolean>;
|
|
796
|
+
readonly linear: InputSignal<boolean>;
|
|
797
|
+
readonly stepSelect: OutputEmitterRef<StepperSelectEvent>;
|
|
798
|
+
protected hostClasses: Signal<string[]>;
|
|
799
|
+
protected activeIndex: Signal<number>;
|
|
800
|
+
constructor();
|
|
801
|
+
protected onSelect(step: Step, index: number): void;
|
|
802
|
+
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
803
|
+
private _nextFocusable;
|
|
804
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Stepper, never>;
|
|
805
|
+
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; }; }, { "active": "activeChange"; "stepSelect": "stepSelect"; }, ["steps", "completedTemplateRef", "completedIconTemplateRef"], ["*"], true, never>;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
interface StepperConfig {
|
|
809
|
+
orientation: stepperOrientation;
|
|
810
|
+
linear: boolean;
|
|
811
|
+
step: StepConfig;
|
|
812
|
+
}
|
|
813
|
+
interface StepConfig {
|
|
814
|
+
color: stepperColor;
|
|
815
|
+
}
|
|
816
|
+
declare const DEFAULT_STEP_CONFIG: StepConfig;
|
|
817
|
+
declare const DEFAULT_STEPPER_CONFIG: StepperConfig;
|
|
818
|
+
|
|
819
|
+
declare const STEPPER_CONFIG: InjectionToken<StepperConfig>;
|
|
820
|
+
|
|
821
|
+
type tableColumnAlignment = 'start' | 'center' | 'end';
|
|
822
|
+
type TableData = Record<string, unknown>;
|
|
823
|
+
type TableTrackBy = string | TrackByFunction<TableData>;
|
|
824
|
+
interface TableColumnDefinition {
|
|
825
|
+
key: string;
|
|
826
|
+
header?: string;
|
|
827
|
+
hidden?: boolean;
|
|
828
|
+
alignment?: tableColumnAlignment;
|
|
829
|
+
width?: number;
|
|
830
|
+
template?: TemplateRef<unknown>;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare class TableColumn {
|
|
834
|
+
readonly key: i0.InputSignal<string>;
|
|
835
|
+
readonly header: i0.InputSignal<string | undefined>;
|
|
836
|
+
readonly hidden: InputSignalWithTransform<boolean, unknown>;
|
|
837
|
+
readonly alignment: i0.InputSignal<tableColumnAlignment | undefined>;
|
|
838
|
+
readonly width: i0.InputSignal<number | undefined>;
|
|
839
|
+
readonly template: i0.Signal<TemplateRef<any> | undefined>;
|
|
840
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumn, never>;
|
|
841
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumn, "tls-table-column", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, ["template"], never, true, never>;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
declare class Table {
|
|
845
|
+
private readonly _config;
|
|
846
|
+
readonly data: InputSignal<TableData[]>;
|
|
847
|
+
readonly columnDefinitions: InputSignal<TableColumnDefinition[]>;
|
|
848
|
+
readonly hideHeader: InputSignalWithTransform<boolean, unknown>;
|
|
849
|
+
readonly striped: InputSignalWithTransform<boolean, unknown>;
|
|
850
|
+
readonly trackBy: InputSignal<TableTrackBy | undefined>;
|
|
851
|
+
protected readonly tableColumns: i0.Signal<readonly TableColumn[]>;
|
|
852
|
+
protected readonly effectiveColumnDefinitions: i0.Signal<TableColumnDefinition[]>;
|
|
853
|
+
protected readonly columns: i0.Signal<string[]>;
|
|
854
|
+
protected readonly resolvedTrackBy: i0.Signal<TrackByFunction<TableData>>;
|
|
855
|
+
protected readonly classes: i0.Signal<string[]>;
|
|
856
|
+
protected readonly dataSource: DataSource<TableData>;
|
|
857
|
+
private _mapContentColumns;
|
|
858
|
+
private _mapContentColumn;
|
|
859
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
860
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "tls-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, {}, ["tableColumns"], never, true, never>;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
interface TableConfig {
|
|
864
|
+
hideHeader: boolean;
|
|
865
|
+
striped: boolean;
|
|
866
|
+
}
|
|
867
|
+
declare const DEFAULT_TABLE_CONFIG: TableConfig;
|
|
868
|
+
|
|
869
|
+
declare const TABLE_CONFIG: InjectionToken<TableConfig>;
|
|
870
|
+
|
|
871
|
+
type tabsVariant = 'flat' | 'outlined';
|
|
872
|
+
type tabValue = string | number;
|
|
873
|
+
|
|
335
874
|
declare class Tab {
|
|
336
875
|
private _tabsService;
|
|
337
|
-
value:
|
|
338
|
-
label:
|
|
876
|
+
value: InputSignal<tabValue>;
|
|
877
|
+
label: InputSignal<string>;
|
|
339
878
|
private _active;
|
|
340
879
|
protected hostClasses: i0.Signal<string[]>;
|
|
341
880
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tab, never>;
|
|
@@ -345,88 +884,66 @@ declare class Tab {
|
|
|
345
884
|
declare class Tabs {
|
|
346
885
|
private _config;
|
|
347
886
|
private _tabsService;
|
|
348
|
-
|
|
887
|
+
protected tabs: Signal<readonly Tab[]>;
|
|
349
888
|
readonly variant: InputSignal<tabsVariant>;
|
|
350
889
|
readonly selected: ModelSignal<tabValue | null>;
|
|
351
890
|
protected hostClasses: Signal<string[]>;
|
|
352
891
|
constructor();
|
|
353
|
-
protected get tabs(): Signal<readonly Tab[]>;
|
|
354
892
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
355
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["
|
|
893
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"], ["*"], true, never>;
|
|
356
894
|
}
|
|
357
895
|
|
|
358
|
-
|
|
896
|
+
interface TabsConfig {
|
|
897
|
+
variant: tabsVariant;
|
|
898
|
+
}
|
|
899
|
+
declare const DEFAULT_TABS_CONFIG: TabsConfig;
|
|
359
900
|
|
|
360
|
-
|
|
901
|
+
declare const TABS_CONFIG: InjectionToken<TabsConfig>;
|
|
361
902
|
|
|
362
|
-
type
|
|
903
|
+
type tooltipOrigin = 'cursor' | 'element';
|
|
904
|
+
type tooltipPosition = overlayPosition;
|
|
905
|
+
type tooltipColor = color;
|
|
363
906
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
private
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
* @param theme - The theme to apply: `'light'` or `'dark'`.
|
|
403
|
-
*/
|
|
404
|
-
private _applyTheme;
|
|
405
|
-
/**
|
|
406
|
-
* Detects the OS-level color scheme preference using the `prefers-color-scheme` media query.
|
|
407
|
-
*
|
|
408
|
-
* @returns `'dark'` if the OS prefers dark mode, otherwise `'light'`.
|
|
409
|
-
*/
|
|
410
|
-
private _detectSystemTheme;
|
|
411
|
-
/**
|
|
412
|
-
* Initializes the theme on app startup (browser only).
|
|
413
|
-
* Reads the stored preference from localStorage, falling back to the configured default.
|
|
414
|
-
* Also registers a listener for OS color scheme changes to reactively update the theme
|
|
415
|
-
* when the preference is `'system'`.
|
|
416
|
-
*/
|
|
417
|
-
private _initTheme;
|
|
418
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
419
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
420
|
-
}
|
|
907
|
+
declare class TooltipDirective implements OnDestroy {
|
|
908
|
+
private _tooltipService;
|
|
909
|
+
private _elementRef;
|
|
910
|
+
private _renderer;
|
|
911
|
+
private _config;
|
|
912
|
+
content: InputSignal<string | TemplateRef<unknown>>;
|
|
913
|
+
data: InputSignal<unknown>;
|
|
914
|
+
tooltipDisabled: InputSignal<boolean>;
|
|
915
|
+
tooltipOrigin: InputSignal<tooltipOrigin>;
|
|
916
|
+
tooltipPositions: InputSignal<ConnectedPosition[] | undefined>;
|
|
917
|
+
tooltipPosition: InputSignal<tooltipPosition>;
|
|
918
|
+
tooltipOffset: InputSignal<Point>;
|
|
919
|
+
tooltipColor: InputSignal<tooltipColor>;
|
|
920
|
+
private _visible;
|
|
921
|
+
private _positions;
|
|
922
|
+
protected onMouseEnter(event: MouseEvent): void;
|
|
923
|
+
protected onMouseMove(event: MouseEvent): void;
|
|
924
|
+
protected onMouseLeave(): void;
|
|
925
|
+
protected onTouchStart(event: TouchEvent): void;
|
|
926
|
+
private _show;
|
|
927
|
+
private _hide;
|
|
928
|
+
ngOnDestroy(): void;
|
|
929
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
930
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tlsTooltip]", never, { "content": { "alias": "tlsTooltip"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "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>;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
interface TooltipConfig {
|
|
934
|
+
positions: ConnectedPosition[] | undefined;
|
|
935
|
+
position: tooltipPosition;
|
|
936
|
+
offset: Point;
|
|
937
|
+
origin: tooltipOrigin;
|
|
938
|
+
color: tooltipColor;
|
|
939
|
+
}
|
|
940
|
+
declare const DEFAULT_TOOLTIP_CONFIG: TooltipConfig;
|
|
941
|
+
|
|
942
|
+
declare const TOOLTIP_CONFIG: InjectionToken<TooltipConfig>;
|
|
943
|
+
|
|
944
|
+
declare const provideThalassicChartConfig: (config: ChartConfig) => EnvironmentProviders;
|
|
421
945
|
|
|
422
946
|
declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
|
|
423
947
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
defaultTheme: themePreference;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
declare const provideTheme: (config?: Partial<ThemeConfig>) => EnvironmentProviders;
|
|
430
|
-
|
|
431
|
-
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, Checkbox, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABS_CONFIG, DIVIDER_CONFIG, Divider, FORM_ITEM_CONFIG, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, PASSWORD_CONFIG, Password, RADIO_BUTTON_CONFIG, RadioButton, SWITCH_CONFIG, Switch, TABS_CONFIG, Tab, Tabs, ThemeService, provideThalassicUIConfig, provideTheme };
|
|
432
|
-
export type { AlertConfig, ButtonConfig, CheckboxConfig, DividerConfig, FormItemConfig, IconConfig, InputConfig, PasswordConfig, RadioButtonConfig, SwitchConfig, TabsConfig, color, controlSize, themePreference, themeType, tlsUiConfigProvider };
|
|
948
|
+
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, BarChart, BubbleChart, Button, ButtonDirective, CHART_CONFIG, CHECKBOX_CONFIG, Chart, Checkbox, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHART_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_LOADER_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_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, DoughnutChart, FORM_ITEM_CONFIG, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, LineChart, Loader, PAGINATION_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, Password, PieChart, PinInput, PolarAreaChart, Popover, RADIO_BUTTON_CONFIG, RadarChart, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, ScatterChart, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TooltipDirective, provideThalassicChartConfig, provideThalassicUIConfig };
|
|
949
|
+
export type { AlertConfig, ButtonConfig, ChartConfig, CheckboxConfig, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, FormItemConfig, IconConfig, InputConfig, LoaderConfig, PaginationConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TooltipConfig, color, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, orientation, overlayPosition, paginationItem, pinInputType, selectOptionType, size, stepperColor, stepperOrientation, stepperValue, tableColumnAlignment, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };
|