@thalassic/ui 0.8.0 → 0.9.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 +340 -0
- package/fesm2022/thalassic-ui-charts.mjs.map +1 -0
- package/fesm2022/thalassic-ui.mjs +357 -450
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +6 -1
- package/types/thalassic-ui-charts.d.ts +102 -0
- package/types/thalassic-ui.d.ts +125 -115
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thalassic/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
+
"@angular/cdk": "^21.0.0",
|
|
6
7
|
"@angular/common": "^21.0.0",
|
|
7
8
|
"@angular/core": "^21.0.0",
|
|
8
9
|
"chart.js": "^4.0.0"
|
|
@@ -29,6 +30,10 @@
|
|
|
29
30
|
".": {
|
|
30
31
|
"types": "./types/thalassic-ui.d.ts",
|
|
31
32
|
"default": "./fesm2022/thalassic-ui.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./charts": {
|
|
35
|
+
"types": "./types/thalassic-ui-charts.d.ts",
|
|
36
|
+
"default": "./fesm2022/thalassic-ui-charts.mjs"
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as node_modules_chart_js_dist_types_utils from 'node_modules/chart.js/dist/types/utils';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InputSignalWithTransform, OnInit, OnDestroy, Signal, ElementRef, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
4
|
+
import * as chart_js from 'chart.js';
|
|
5
|
+
import { ChartType, ChartDatasetCustomTypesPerDataset, ChartDataset, ChartOptions } from 'chart.js';
|
|
6
|
+
|
|
7
|
+
declare abstract class ChartElement<T extends ChartType = ChartType> {
|
|
8
|
+
abstract readonly type: T;
|
|
9
|
+
dataset: InputSignalWithTransform<ChartDatasetCustomTypesPerDataset<T>, ChartDataset>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartElement<any>, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartElement<any>, never, never, { "dataset": { "alias": "dataset"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class Chart implements OnInit, OnDestroy {
|
|
15
|
+
private _config;
|
|
16
|
+
private _chartService;
|
|
17
|
+
private _destroyRef;
|
|
18
|
+
private _themeService;
|
|
19
|
+
protected canvasRef: Signal<ElementRef<HTMLCanvasElement> | undefined>;
|
|
20
|
+
protected chartElements: Signal<readonly ChartElement<keyof chart_js.ChartTypeRegistry>[]>;
|
|
21
|
+
private _chart;
|
|
22
|
+
labels: i0.InputSignal<unknown[]>;
|
|
23
|
+
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>;
|
|
24
|
+
private _options;
|
|
25
|
+
private _datasets;
|
|
26
|
+
protected hostClasses: Signal<string[]>;
|
|
27
|
+
constructor();
|
|
28
|
+
protected get canvasElement(): HTMLCanvasElement | undefined;
|
|
29
|
+
private _tryInitThemeListener;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Chart, never>;
|
|
33
|
+
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>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface ChartConfig {
|
|
37
|
+
options: ChartOptions;
|
|
38
|
+
}
|
|
39
|
+
declare const DEFAULT_CHART_CONFIG: ChartConfig;
|
|
40
|
+
|
|
41
|
+
declare const CHART_CONFIG: InjectionToken<ChartConfig>;
|
|
42
|
+
|
|
43
|
+
declare class BarChart extends ChartElement<'bar'> {
|
|
44
|
+
readonly type = "bar";
|
|
45
|
+
constructor();
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarChart, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarChart, "tls-bar-chart", never, {}, {}, never, never, true, never>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class BubbleChart extends ChartElement<'bubble'> {
|
|
51
|
+
readonly type = "bubble";
|
|
52
|
+
constructor();
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChart, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChart, "tls-bubble-chart", never, {}, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare class DoughnutChart extends ChartElement<'doughnut'> {
|
|
58
|
+
readonly type = "doughnut";
|
|
59
|
+
constructor();
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DoughnutChart, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DoughnutChart, "tls-doughnut-chart", never, {}, {}, never, never, true, never>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class LineChart extends ChartElement<'line'> {
|
|
65
|
+
readonly type = "line";
|
|
66
|
+
constructor();
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineChart, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineChart, "tls-line-chart", never, {}, {}, never, never, true, never>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare class PieChart extends ChartElement<'pie'> {
|
|
72
|
+
readonly type = "pie";
|
|
73
|
+
constructor();
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PieChart, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PieChart, "tls-pie-chart", never, {}, {}, never, never, true, never>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class PolarAreaChart extends ChartElement<'polarArea'> {
|
|
79
|
+
readonly type = "polarArea";
|
|
80
|
+
constructor();
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PolarAreaChart, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PolarAreaChart, "tls-polar-area-chart", never, {}, {}, never, never, true, never>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare class RadarChart extends ChartElement<'radar'> {
|
|
86
|
+
readonly type = "radar";
|
|
87
|
+
constructor();
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadarChart, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadarChart, "tls-radar-chart", never, {}, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare class ScatterChart extends ChartElement<'scatter'> {
|
|
93
|
+
readonly type = "scatter";
|
|
94
|
+
constructor();
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScatterChart, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScatterChart, "tls-scatter-chart", never, {}, {}, never, never, true, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare const provideThalassicChartConfig: (config: ChartConfig) => EnvironmentProviders;
|
|
100
|
+
|
|
101
|
+
export { BarChart, BubbleChart, CHART_CONFIG, Chart, DEFAULT_CHART_CONFIG, DoughnutChart, LineChart, PieChart, PolarAreaChart, RadarChart, ScatterChart, provideThalassicChartConfig };
|
|
102
|
+
export type { ChartConfig };
|
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InputSignal, InputSignalWithTransform, InjectionToken,
|
|
2
|
+
import { InputSignal, InputSignalWithTransform, InjectionToken, ModelSignal, Signal, WritableSignal, TemplateRef, OutputEmitterRef, TrackByFunction, OnDestroy, 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
4
|
import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
|
|
8
5
|
import { ComponentType } from '@angular/cdk/portal';
|
|
9
6
|
import { FieldTree, FormUiControl, WithOptionalFieldTree, ValidationError, FormCheckboxControl, FormValueControl } from '@angular/forms/signals';
|
|
@@ -42,6 +39,7 @@ interface tlsUiConfigProvider {
|
|
|
42
39
|
stepper?: Partial<StepperConfig>;
|
|
43
40
|
table?: Partial<TableConfig>;
|
|
44
41
|
tabs?: Partial<TabsConfig>;
|
|
42
|
+
textarea?: Partial<TextareaConfig>;
|
|
45
43
|
tooltip?: Partial<TooltipConfig>;
|
|
46
44
|
};
|
|
47
45
|
}
|
|
@@ -119,98 +117,6 @@ declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
|
|
|
119
117
|
|
|
120
118
|
declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
|
|
121
119
|
|
|
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
120
|
type dialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'wide' | 'full';
|
|
215
121
|
|
|
216
122
|
interface DialogConfig {
|
|
@@ -518,16 +424,12 @@ interface NormalizedOption<V = unknown> {
|
|
|
518
424
|
label: string;
|
|
519
425
|
disabled: boolean;
|
|
520
426
|
}
|
|
521
|
-
declare class Select<T, V = unknown> extends ValueFormControl<V |
|
|
427
|
+
declare class Select<T, V = unknown> extends ValueFormControl<V | null> {
|
|
522
428
|
private readonly _config;
|
|
523
429
|
private readonly _overlay;
|
|
524
|
-
private readonly _viewContainerRef;
|
|
525
|
-
private readonly _destroyRef;
|
|
526
430
|
private readonly _triggerElement;
|
|
527
431
|
private readonly _panelTemplate;
|
|
528
|
-
|
|
529
|
-
private _portal;
|
|
530
|
-
readonly value: ModelSignal<V | undefined>;
|
|
432
|
+
readonly value: ModelSignal<V | null>;
|
|
531
433
|
readonly inputId: InputSignal<string | null>;
|
|
532
434
|
readonly options: InputSignal<selectOptionType<T>[]>;
|
|
533
435
|
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
@@ -538,7 +440,7 @@ declare class Select<T, V = unknown> extends ValueFormControl<V | undefined> imp
|
|
|
538
440
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
539
441
|
readonly tabindex: InputSignal<string | number>;
|
|
540
442
|
readonly clearable: InputSignalWithTransform<boolean, unknown>;
|
|
541
|
-
protected readonly isOpen:
|
|
443
|
+
protected readonly isOpen: Signal<boolean>;
|
|
542
444
|
protected readonly activeIndex: WritableSignal<number>;
|
|
543
445
|
protected readonly normalizedOptions: Signal<NormalizedOption<V>[]>;
|
|
544
446
|
protected readonly hasValue: Signal<boolean>;
|
|
@@ -552,7 +454,6 @@ declare class Select<T, V = unknown> extends ValueFormControl<V | undefined> imp
|
|
|
552
454
|
protected onOptionHover(index: number, disabled?: boolean): void;
|
|
553
455
|
protected onKeydown(event: KeyboardEvent): void;
|
|
554
456
|
private _moveActive;
|
|
555
|
-
ngOnDestroy(): void;
|
|
556
457
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select<any, any>, never>;
|
|
557
458
|
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
459
|
}
|
|
@@ -590,6 +491,33 @@ declare const DEFAULT_SWITCH_CONFIG: SwitchConfig;
|
|
|
590
491
|
|
|
591
492
|
declare const SWITCH_CONFIG: InjectionToken<SwitchConfig>;
|
|
592
493
|
|
|
494
|
+
type textareaResize = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
495
|
+
interface TextareaConfig {
|
|
496
|
+
size: controlSize;
|
|
497
|
+
placeholder: string;
|
|
498
|
+
fluid: boolean;
|
|
499
|
+
rows: number;
|
|
500
|
+
resize: textareaResize;
|
|
501
|
+
}
|
|
502
|
+
declare const DEFAULT_TEXTAREA_CONFIG: TextareaConfig;
|
|
503
|
+
|
|
504
|
+
declare class Textarea extends ValueFormControl<string> {
|
|
505
|
+
private _config;
|
|
506
|
+
readonly value: ModelSignal<string>;
|
|
507
|
+
readonly inputId: InputSignal<string | null>;
|
|
508
|
+
readonly placeholder: InputSignal<string>;
|
|
509
|
+
readonly size: InputSignal<controlSize>;
|
|
510
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
511
|
+
readonly rows: InputSignalWithTransform<number, unknown>;
|
|
512
|
+
readonly resize: InputSignal<textareaResize>;
|
|
513
|
+
protected readonly classes: Signal<string[]>;
|
|
514
|
+
protected onInput(event: Event): void;
|
|
515
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Textarea, never>;
|
|
516
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "tls-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "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; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare const TEXTAREA_CONFIG: InjectionToken<TextareaConfig>;
|
|
520
|
+
|
|
593
521
|
declare class Icon {
|
|
594
522
|
private _iconService;
|
|
595
523
|
private _config;
|
|
@@ -653,6 +581,95 @@ declare const DEFAULT_LOADER_CONFIG: LoaderConfig;
|
|
|
653
581
|
|
|
654
582
|
declare const LOADER_CONFIG: InjectionToken<LoaderConfig>;
|
|
655
583
|
|
|
584
|
+
declare class MenuItemComponent {
|
|
585
|
+
readonly key: i0.InputSignal<string>;
|
|
586
|
+
readonly templateRef: i0.Signal<TemplateRef<unknown>>;
|
|
587
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
588
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "tls-menu-item", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
type menuPosition = overlayPosition;
|
|
592
|
+
type menuItemType = 'item' | 'label' | 'divider' | 'custom';
|
|
593
|
+
interface BaseMenuItem {
|
|
594
|
+
type: menuItemType;
|
|
595
|
+
}
|
|
596
|
+
interface MenuActionItem extends BaseMenuItem {
|
|
597
|
+
type: 'item';
|
|
598
|
+
label: string;
|
|
599
|
+
icon?: string;
|
|
600
|
+
shortcut?: string;
|
|
601
|
+
disabled?: boolean;
|
|
602
|
+
data?: unknown;
|
|
603
|
+
action?: () => void;
|
|
604
|
+
}
|
|
605
|
+
interface MenuDivider extends BaseMenuItem {
|
|
606
|
+
type: 'divider';
|
|
607
|
+
data?: unknown;
|
|
608
|
+
}
|
|
609
|
+
interface MenuLabel extends BaseMenuItem {
|
|
610
|
+
type: 'label';
|
|
611
|
+
label: string;
|
|
612
|
+
data?: unknown;
|
|
613
|
+
}
|
|
614
|
+
interface MenuCustomItem {
|
|
615
|
+
type: 'custom';
|
|
616
|
+
key: string;
|
|
617
|
+
}
|
|
618
|
+
type MenuItemDefinition = MenuActionItem | MenuDivider | MenuLabel | MenuCustomItem;
|
|
619
|
+
|
|
620
|
+
declare class Menu {
|
|
621
|
+
private static _counter;
|
|
622
|
+
private readonly _config;
|
|
623
|
+
private readonly _overlay;
|
|
624
|
+
private readonly _panelRef;
|
|
625
|
+
protected readonly _customItems: i0.Signal<readonly MenuItemComponent[]>;
|
|
626
|
+
protected readonly customTemplates: i0.Signal<Map<string, TemplateRef<unknown>>>;
|
|
627
|
+
protected readonly itemTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
628
|
+
protected readonly labelTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
629
|
+
protected readonly dividerTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
630
|
+
protected readonly iconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
631
|
+
readonly id: string;
|
|
632
|
+
readonly items: InputSignal<MenuItemDefinition[]>;
|
|
633
|
+
readonly position: InputSignal<overlayPosition>;
|
|
634
|
+
readonly offset: InputSignal<Point>;
|
|
635
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
636
|
+
readonly inline: InputSignalWithTransform<boolean, unknown>;
|
|
637
|
+
private readonly _positions;
|
|
638
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
639
|
+
constructor();
|
|
640
|
+
open(trigger: MouseEvent | HTMLElement): void;
|
|
641
|
+
openAtPoint(x: number, y: number): void;
|
|
642
|
+
close(): void;
|
|
643
|
+
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
644
|
+
protected onItemClick(item: MenuActionItem): void;
|
|
645
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
646
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "tls-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; }, {}, ["_customItems", "itemTemplate", "labelTemplate", "dividerTemplate", "iconTemplate"], never, true, never>;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
interface MenuConfig {
|
|
650
|
+
position: menuPosition;
|
|
651
|
+
offset: Point;
|
|
652
|
+
}
|
|
653
|
+
declare const DEFAULT_MENU_CONFIG: MenuConfig;
|
|
654
|
+
|
|
655
|
+
declare const MENU_CONFIG: InjectionToken<MenuConfig>;
|
|
656
|
+
|
|
657
|
+
declare class MenuTriggerDirective {
|
|
658
|
+
readonly menu: i0.InputSignal<Menu>;
|
|
659
|
+
protected readonly isOpen: i0.Signal<boolean>;
|
|
660
|
+
protected readonly menuId: i0.Signal<string>;
|
|
661
|
+
protected onClick(event: MouseEvent): void;
|
|
662
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTriggerDirective, never>;
|
|
663
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuTriggerDirective, "[tlsMenuTrigger]", never, { "menu": { "alias": "tlsMenuTrigger"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare class ContextMenuDirective {
|
|
667
|
+
readonly menu: i0.InputSignal<Menu>;
|
|
668
|
+
protected onContextMenu(event: MouseEvent): void;
|
|
669
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuDirective, never>;
|
|
670
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[tlsContextMenu]", never, { "menu": { "alias": "tlsContextMenu"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
671
|
+
}
|
|
672
|
+
|
|
656
673
|
type paginationItem = number | 'gap';
|
|
657
674
|
|
|
658
675
|
declare class Pagination {
|
|
@@ -693,15 +710,11 @@ declare const DEFAULT_PAGINATION_CONFIG: PaginationConfig;
|
|
|
693
710
|
|
|
694
711
|
declare const PAGINATION_CONFIG: InjectionToken<PaginationConfig>;
|
|
695
712
|
|
|
696
|
-
declare class Popover
|
|
713
|
+
declare class Popover {
|
|
697
714
|
private static _counter;
|
|
698
|
-
private readonly _overlay;
|
|
699
|
-
private readonly _viewContainerRef;
|
|
700
715
|
private readonly _config;
|
|
701
|
-
private readonly
|
|
716
|
+
private readonly _overlay;
|
|
702
717
|
private readonly _templateRef;
|
|
703
|
-
private _overlayRef;
|
|
704
|
-
private readonly _isOpen;
|
|
705
718
|
readonly id: string;
|
|
706
719
|
readonly isOpen: i0.Signal<boolean>;
|
|
707
720
|
readonly position: i0.InputSignal<overlayPosition>;
|
|
@@ -711,7 +724,6 @@ declare class Popover implements OnDestroy {
|
|
|
711
724
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
712
725
|
close(): void;
|
|
713
726
|
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
714
|
-
ngOnDestroy(): void;
|
|
715
727
|
static ɵfac: i0.ɵɵFactoryDeclaration<Popover, never>;
|
|
716
728
|
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
729
|
}
|
|
@@ -941,9 +953,7 @@ declare const DEFAULT_TOOLTIP_CONFIG: TooltipConfig;
|
|
|
941
953
|
|
|
942
954
|
declare const TOOLTIP_CONFIG: InjectionToken<TooltipConfig>;
|
|
943
955
|
|
|
944
|
-
declare const provideThalassicChartConfig: (config: ChartConfig) => EnvironmentProviders;
|
|
945
|
-
|
|
946
956
|
declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
|
|
947
957
|
|
|
948
|
-
export { ALERT_CONFIG, Alert, BUTTON_CONFIG,
|
|
949
|
-
export type { AlertConfig, ButtonConfig,
|
|
958
|
+
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, Checkbox, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_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_MENU_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_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, FORM_ITEM_CONFIG, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, Loader, MENU_CONFIG, Menu, MenuItemComponent, MenuTriggerDirective, 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, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, Textarea, TooltipDirective, provideThalassicUIConfig };
|
|
959
|
+
export type { AlertConfig, ButtonConfig, CheckboxConfig, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, FormItemConfig, IconConfig, InputConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, PaginationConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TextareaConfig, TooltipConfig, color, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, selectOptionType, size, stepperColor, stepperOrientation, stepperValue, tableColumnAlignment, textareaResize, tlsUiConfigProvider, tooltipColor, tooltipOrigin, tooltipPosition };
|