@thalassic/ui 0.8.2 → 0.10.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 +1015 -230
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +402 -70
package/package.json
CHANGED
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InputSignal, InputSignalWithTransform, InjectionToken,
|
|
2
|
+
import { InputSignal, InputSignalWithTransform, InjectionToken, Signal, TemplateRef, ModelSignal, WritableSignal, ElementRef, OutputEmitterRef, TrackByFunction, OnDestroy, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as _thalassic_ui from '@thalassic/ui';
|
|
4
|
+
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormCheckboxControl, FormValueControl, FieldTree } from '@angular/forms/signals';
|
|
4
5
|
import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
|
|
5
6
|
import { ComponentType } from '@angular/cdk/portal';
|
|
6
|
-
import { FieldTree, FormUiControl, WithOptionalFieldTree, ValidationError, FormCheckboxControl, FormValueControl } from '@angular/forms/signals';
|
|
7
7
|
import { Day } from 'date-fns';
|
|
8
8
|
import { SafeHtml } from '@angular/platform-browser';
|
|
9
9
|
import { Point } from '@thalassic/core';
|
|
@@ -24,21 +24,33 @@ interface tlsUiConfigProvider {
|
|
|
24
24
|
components: {
|
|
25
25
|
alert?: Partial<AlertConfig>;
|
|
26
26
|
button?: Partial<ButtonConfig>;
|
|
27
|
+
checkbox?: Partial<CheckboxConfig>;
|
|
28
|
+
chip?: Partial<ChipConfig>;
|
|
29
|
+
chipControl?: Partial<ChipControlConfig>;
|
|
30
|
+
chipInput?: Partial<ChipInputConfig>;
|
|
27
31
|
dateTimePicker?: Partial<DateTimePickerConfig>;
|
|
28
32
|
dialog?: Partial<DialogConfig>;
|
|
29
33
|
divider?: Partial<DividerConfig>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
select?: Partial<SelectConfig>;
|
|
33
|
-
switch?: Partial<SwitchConfig>;
|
|
34
|
+
fileUploader?: Partial<FileUploaderConfig>;
|
|
35
|
+
formControlGroup?: Partial<FormControlGroupConfig>;
|
|
34
36
|
formItem?: Partial<FormItemConfig>;
|
|
35
37
|
icon?: Partial<IconConfig>;
|
|
38
|
+
input?: Partial<InputConfig>;
|
|
39
|
+
loader?: Partial<LoaderConfig>;
|
|
40
|
+
menu?: Partial<MenuConfig>;
|
|
36
41
|
pagination?: Partial<PaginationConfig>;
|
|
42
|
+
password?: Partial<PasswordConfig>;
|
|
43
|
+
pinInput?: Partial<PinInputConfig>;
|
|
37
44
|
popover?: Partial<PopoverConfig>;
|
|
45
|
+
radioButton?: Partial<RadioButtonConfig>;
|
|
46
|
+
select?: Partial<SelectConfig>;
|
|
38
47
|
skeleton?: Partial<SkeletonConfig>;
|
|
39
48
|
stepper?: Partial<StepperConfig>;
|
|
49
|
+
switch?: Partial<SwitchConfig>;
|
|
40
50
|
table?: Partial<TableConfig>;
|
|
41
51
|
tabs?: Partial<TabsConfig>;
|
|
52
|
+
textarea?: Partial<TextareaConfig>;
|
|
53
|
+
toggleGroup?: Partial<ToggleGroupConfig>;
|
|
42
54
|
tooltip?: Partial<TooltipConfig>;
|
|
43
55
|
};
|
|
44
56
|
}
|
|
@@ -88,6 +100,8 @@ declare abstract class ButtonBase {
|
|
|
88
100
|
|
|
89
101
|
declare class Button extends ButtonBase {
|
|
90
102
|
private _routerLink;
|
|
103
|
+
private _router;
|
|
104
|
+
private _locationStrategy;
|
|
91
105
|
protected APPLY_HOST_CLASSES: boolean;
|
|
92
106
|
/** The text label displayed inside the button. Takes priority over projected content. */
|
|
93
107
|
readonly label: InputSignal<string | undefined>;
|
|
@@ -95,7 +109,22 @@ declare class Button extends ButtonBase {
|
|
|
95
109
|
/** An optional URL that causes the button to render as an anchor link. */
|
|
96
110
|
readonly href: InputSignal<string | null>;
|
|
97
111
|
readonly tabindex: InputSignal<string>;
|
|
98
|
-
protected isLink:
|
|
112
|
+
protected isLink: Signal<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* Resolved URL placed on the inner anchor so the browser treats it as a real link
|
|
115
|
+
* (enables "Open in new tab", middle-click, status-bar preview, etc.). An explicit
|
|
116
|
+
* `href` wins; otherwise the URL is derived from the host `routerLink`.
|
|
117
|
+
*/
|
|
118
|
+
protected linkHref: Signal<string | null>;
|
|
119
|
+
/**
|
|
120
|
+
* Keeps navigation correct when the host carries a `routerLink` while the inner anchor
|
|
121
|
+
* exposes a real `href`:
|
|
122
|
+
* - modified / non-primary clicks bubble to the browser so it can open a new tab, and
|
|
123
|
+
* are stopped from reaching the host RouterLink to avoid a duplicate in-app navigation;
|
|
124
|
+
* - a plain left click defers to the host RouterLink for SPA navigation, so the anchor's
|
|
125
|
+
* own full-page navigation is prevented.
|
|
126
|
+
*/
|
|
127
|
+
protected onLinkClick(event: MouseEvent): void;
|
|
99
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
|
|
100
129
|
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "tls-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
101
130
|
}
|
|
@@ -116,6 +145,107 @@ declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
|
|
|
116
145
|
|
|
117
146
|
declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
|
|
118
147
|
|
|
148
|
+
type chipColor = color;
|
|
149
|
+
type chipVariant = 'filled' | 'outlined' | 'text';
|
|
150
|
+
interface ChipContext {
|
|
151
|
+
checked: boolean;
|
|
152
|
+
disabled: boolean;
|
|
153
|
+
readonly: boolean;
|
|
154
|
+
touched: boolean;
|
|
155
|
+
dirty: boolean;
|
|
156
|
+
invalid: boolean;
|
|
157
|
+
pending: boolean;
|
|
158
|
+
}
|
|
159
|
+
type chipTemplateContext = {
|
|
160
|
+
$implicit: ChipContext;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare class Chip {
|
|
164
|
+
private _config;
|
|
165
|
+
readonly label: InputSignal<string | undefined>;
|
|
166
|
+
readonly color: InputSignal<chipColor>;
|
|
167
|
+
readonly variant: InputSignal<chipVariant>;
|
|
168
|
+
readonly size: InputSignal<controlSize>;
|
|
169
|
+
readonly rounded: i0.InputSignalWithTransform<boolean, unknown>;
|
|
170
|
+
readonly icon: i0.InputSignalWithTransform<boolean, unknown>;
|
|
171
|
+
readonly context: i0.WritableSignal<ChipContext>;
|
|
172
|
+
protected readonly startIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
|
|
173
|
+
protected readonly endIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
|
|
174
|
+
protected classes: i0.Signal<string[]>;
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "tls-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, ["startIconTemplate", "endIconTemplate"], ["*"], true, never>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare abstract class FormControl implements FormUiControl {
|
|
180
|
+
readonly touched: ModelSignal<boolean>;
|
|
181
|
+
readonly name: InputSignal<string>;
|
|
182
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
183
|
+
readonly readonly: InputSignalWithTransform<boolean, unknown>;
|
|
184
|
+
readonly hidden: InputSignalWithTransform<boolean, unknown>;
|
|
185
|
+
readonly invalid: InputSignalWithTransform<boolean, unknown>;
|
|
186
|
+
readonly pending: InputSignalWithTransform<boolean, unknown>;
|
|
187
|
+
readonly dirty: InputSignalWithTransform<boolean, unknown>;
|
|
188
|
+
readonly errors: InputSignal<readonly WithOptionalFieldTree<ValidationError>[]>;
|
|
189
|
+
readonly required: InputSignalWithTransform<boolean, unknown>;
|
|
190
|
+
protected CLASS_NAME: string;
|
|
191
|
+
protected notInteractive: Signal<boolean>;
|
|
192
|
+
protected controlClasses: Signal<string[]>;
|
|
193
|
+
protected baseControlClasses(): string[];
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl, never>;
|
|
195
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare abstract class CheckboxFormControl extends FormControl implements FormCheckboxControl {
|
|
199
|
+
abstract readonly checked: ModelSignal<boolean>;
|
|
200
|
+
protected controlClasses: i0.Signal<string[]>;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFormControl, never>;
|
|
202
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxFormControl, never, never, {}, {}, never, never, true, never>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface Option<V = unknown> {
|
|
206
|
+
value: V;
|
|
207
|
+
label: string;
|
|
208
|
+
disabled: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
type optionInput<T> = string | number | T;
|
|
212
|
+
|
|
213
|
+
declare abstract class ValueFormControl<T> extends FormControl implements FormValueControl<T> {
|
|
214
|
+
abstract readonly value: ModelSignal<T>;
|
|
215
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueFormControl<any>, never>;
|
|
216
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueFormControl<any>, never, never, {}, {}, never, never, true, never>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class ChipControl extends CheckboxFormControl {
|
|
220
|
+
protected CLASS_NAME: string;
|
|
221
|
+
private _config;
|
|
222
|
+
private _chip;
|
|
223
|
+
readonly checked: i0.ModelSignal<boolean>;
|
|
224
|
+
readonly checkedColor: i0.InputSignal<_thalassic_ui.color | undefined>;
|
|
225
|
+
protected hostClasses: i0.Signal<string[]>;
|
|
226
|
+
constructor();
|
|
227
|
+
protected toggle(): void;
|
|
228
|
+
protected onKeyboardToggle(event: Event): void;
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipControl, never>;
|
|
230
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChipControl, "tls-chip[tlsChipControl]", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "checkedColor": { "alias": "checkedColor"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface ChipConfig {
|
|
234
|
+
color: chipColor;
|
|
235
|
+
variant: chipVariant;
|
|
236
|
+
size: controlSize;
|
|
237
|
+
}
|
|
238
|
+
declare const DEFAULT_CHIP_CONFIG: ChipConfig;
|
|
239
|
+
|
|
240
|
+
declare const CHIP_CONFIG: InjectionToken<ChipConfig>;
|
|
241
|
+
|
|
242
|
+
interface ChipControlConfig {
|
|
243
|
+
checkedColor: chipColor | undefined;
|
|
244
|
+
}
|
|
245
|
+
declare const DEFAULT_CHIP_CONTROL_CONFIG: ChipControlConfig;
|
|
246
|
+
|
|
247
|
+
declare const CHIP_CONTROL_CONFIG: InjectionToken<ChipControlConfig>;
|
|
248
|
+
|
|
119
249
|
type dialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'wide' | 'full';
|
|
120
250
|
|
|
121
251
|
interface DialogConfig {
|
|
@@ -181,6 +311,28 @@ declare const DEFAULT_DIVIDER_CONFIG: DividerConfig;
|
|
|
181
311
|
|
|
182
312
|
declare const DIVIDER_CONFIG: InjectionToken<DividerConfig>;
|
|
183
313
|
|
|
314
|
+
declare class FormControlAddon {
|
|
315
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlAddon, never>;
|
|
316
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlAddon, "tls-form-control-addon", never, {}, {}, never, ["*"], true, never>;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare class FormControlGroup {
|
|
320
|
+
private _config;
|
|
321
|
+
readonly size: InputSignal<controlSize>;
|
|
322
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
323
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlGroup, never>;
|
|
325
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlGroup, "tls-form-control-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface FormControlGroupConfig {
|
|
329
|
+
size: controlSize;
|
|
330
|
+
fluid: boolean;
|
|
331
|
+
}
|
|
332
|
+
declare const DEFAULT_FORM_CONTROL_GROUP_CONFIG: FormControlGroupConfig;
|
|
333
|
+
|
|
334
|
+
declare const FORM_CONTROL_GROUP_CONFIG: InjectionToken<FormControlGroupConfig>;
|
|
335
|
+
|
|
184
336
|
type ErrorMessageFn = (fieldTree?: FieldTree<unknown>) => string;
|
|
185
337
|
type ErrorMessageMap = Record<string, ErrorMessageFn>;
|
|
186
338
|
|
|
@@ -191,38 +343,6 @@ interface FormItemConfig {
|
|
|
191
343
|
}
|
|
192
344
|
declare const DEFAULT_FORM_ITEM_CONFIG: FormItemConfig;
|
|
193
345
|
|
|
194
|
-
declare abstract class FormControl implements FormUiControl {
|
|
195
|
-
readonly touched: ModelSignal<boolean>;
|
|
196
|
-
readonly name: InputSignal<string>;
|
|
197
|
-
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
198
|
-
readonly readonly: InputSignalWithTransform<boolean, unknown>;
|
|
199
|
-
readonly hidden: InputSignalWithTransform<boolean, unknown>;
|
|
200
|
-
readonly invalid: InputSignalWithTransform<boolean, unknown>;
|
|
201
|
-
readonly pending: InputSignalWithTransform<boolean, unknown>;
|
|
202
|
-
readonly dirty: InputSignalWithTransform<boolean, unknown>;
|
|
203
|
-
readonly errors: InputSignal<readonly WithOptionalFieldTree<ValidationError>[]>;
|
|
204
|
-
readonly required: InputSignalWithTransform<boolean, unknown>;
|
|
205
|
-
protected CLASS_NAME: string;
|
|
206
|
-
protected notInteractive: Signal<boolean>;
|
|
207
|
-
protected controlClasses: Signal<string[]>;
|
|
208
|
-
protected baseControlClasses(): string[];
|
|
209
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl, never>;
|
|
210
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
declare abstract class CheckboxFormControl extends FormControl implements FormCheckboxControl {
|
|
214
|
-
abstract readonly checked: ModelSignal<boolean>;
|
|
215
|
-
protected controlClasses: i0.Signal<string[]>;
|
|
216
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFormControl, never>;
|
|
217
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxFormControl, never, never, {}, {}, never, never, true, never>;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
declare abstract class ValueFormControl<T> extends FormControl implements FormValueControl<T> {
|
|
221
|
-
abstract readonly value: ModelSignal<T>;
|
|
222
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValueFormControl<any>, never>;
|
|
223
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueFormControl<any>, never, never, {}, {}, never, never, true, never>;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
346
|
declare class FormItem {
|
|
227
347
|
private _config;
|
|
228
348
|
protected control: Signal<FormControl | undefined>;
|
|
@@ -303,6 +423,81 @@ declare const DEFAULT_DATE_TIME_PICKER_CONFIG: DateTimePickerConfig;
|
|
|
303
423
|
|
|
304
424
|
declare const DATE_TIME_PICKER_CONFIG: InjectionToken<DateTimePickerConfig>;
|
|
305
425
|
|
|
426
|
+
declare class ChipInput extends ValueFormControl<string[]> {
|
|
427
|
+
private readonly _config;
|
|
428
|
+
readonly value: ModelSignal<string[]>;
|
|
429
|
+
readonly placeholder: InputSignal<string>;
|
|
430
|
+
readonly size: InputSignal<controlSize>;
|
|
431
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
432
|
+
readonly separator: InputSignal<string[]>;
|
|
433
|
+
protected readonly inputValue: i0.WritableSignal<string>;
|
|
434
|
+
protected readonly classes: Signal<string[]>;
|
|
435
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
436
|
+
protected removeChip(index: number): void;
|
|
437
|
+
private _addChip;
|
|
438
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipInput, never>;
|
|
439
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipInput, "tls-chip-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
interface ChipInputConfig {
|
|
443
|
+
size: controlSize;
|
|
444
|
+
placeholder: string;
|
|
445
|
+
fluid: boolean;
|
|
446
|
+
separator: string[];
|
|
447
|
+
}
|
|
448
|
+
declare const DEFAULT_CHIP_INPUT_CONFIG: ChipInputConfig;
|
|
449
|
+
|
|
450
|
+
declare const CHIP_INPUT_CONFIG: InjectionToken<ChipInputConfig>;
|
|
451
|
+
|
|
452
|
+
type acceptInput = string | string[];
|
|
453
|
+
type fileUploaderDragState = 'idle' | 'valid' | 'invalid';
|
|
454
|
+
interface FileUploaderDropZoneContext {
|
|
455
|
+
$implicit: fileUploaderDragState;
|
|
456
|
+
accept: string;
|
|
457
|
+
}
|
|
458
|
+
interface FileUploaderFileContext {
|
|
459
|
+
$implicit: File;
|
|
460
|
+
index: number;
|
|
461
|
+
remove: (index: number) => void;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class FileUploader extends ValueFormControl<File[]> {
|
|
465
|
+
private readonly _config;
|
|
466
|
+
protected CLASS_NAME: string;
|
|
467
|
+
readonly value: ModelSignal<File[]>;
|
|
468
|
+
readonly multiple: InputSignalWithTransform<boolean, unknown>;
|
|
469
|
+
readonly accept: InputSignalWithTransform<string, acceptInput>;
|
|
470
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
471
|
+
protected readonly fileInput: Signal<ElementRef<HTMLInputElement>>;
|
|
472
|
+
protected readonly dragState: i0.WritableSignal<fileUploaderDragState>;
|
|
473
|
+
protected readonly dropZoneTemplate: Signal<TemplateRef<FileUploaderDropZoneContext> | undefined>;
|
|
474
|
+
protected readonly fileTemplate: Signal<TemplateRef<FileUploaderFileContext> | undefined>;
|
|
475
|
+
protected readonly classes: Signal<string[]>;
|
|
476
|
+
protected readonly acceptHint: Signal<string>;
|
|
477
|
+
protected openFilePicker(): void;
|
|
478
|
+
protected onFilesSelected(event: Event): void;
|
|
479
|
+
protected onDropZoneKeydown(event: KeyboardEvent): void;
|
|
480
|
+
protected onDragOver(event: DragEvent): void;
|
|
481
|
+
protected onDragLeave(): void;
|
|
482
|
+
protected onDrop(event: DragEvent): void;
|
|
483
|
+
protected readonly removeFile: (fileIndex: number) => void;
|
|
484
|
+
private _addFiles;
|
|
485
|
+
private _acceptsFile;
|
|
486
|
+
private _formatAcceptRule;
|
|
487
|
+
private _isTypeRejected;
|
|
488
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploader, never>;
|
|
489
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploader, "tls-file-uploader", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["dropZoneTemplate", "fileTemplate"], never, true, never>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
interface FileUploaderConfig {
|
|
493
|
+
multiple: boolean;
|
|
494
|
+
accept: acceptInput;
|
|
495
|
+
fluid: boolean;
|
|
496
|
+
}
|
|
497
|
+
declare const DEFAULT_FILE_UPLOADER_CONFIG: FileUploaderConfig;
|
|
498
|
+
|
|
499
|
+
declare const FILE_UPLOADER_CONFIG: InjectionToken<FileUploaderConfig>;
|
|
500
|
+
|
|
306
501
|
declare class Input extends ValueFormControl<string> {
|
|
307
502
|
private _config;
|
|
308
503
|
readonly type: InputSignal<string>;
|
|
@@ -344,12 +539,13 @@ declare class Password extends ValueFormControl<string> {
|
|
|
344
539
|
readonly placeholder: InputSignal<string>;
|
|
345
540
|
readonly size: InputSignal<controlSize>;
|
|
346
541
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
347
|
-
protected readonly
|
|
348
|
-
protected
|
|
542
|
+
protected readonly showIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
543
|
+
protected readonly hideIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
544
|
+
protected type: i0.Signal<"text" | "password">;
|
|
349
545
|
protected onInput(event: Event): void;
|
|
350
546
|
protected toggle(): void;
|
|
351
547
|
static ɵfac: i0.ɵɵFactoryDeclaration<Password, never>;
|
|
352
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "tls-password", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "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; }; }, { "value": "valueChange"; "visible": "visibleChange"; },
|
|
548
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "tls-password", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "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; }; }, { "value": "valueChange"; "visible": "visibleChange"; }, ["showIconTemplate", "hideIconTemplate"], never, true, never>;
|
|
353
549
|
}
|
|
354
550
|
|
|
355
551
|
interface PasswordConfig {
|
|
@@ -416,25 +612,14 @@ declare class RadioButton extends ValueFormControl<unknown> {
|
|
|
416
612
|
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>;
|
|
417
613
|
}
|
|
418
614
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
interface NormalizedOption<V = unknown> {
|
|
422
|
-
value: V;
|
|
423
|
-
label: string;
|
|
424
|
-
disabled: boolean;
|
|
425
|
-
}
|
|
426
|
-
declare class Select<T, V = unknown> extends ValueFormControl<V | null> implements OnDestroy {
|
|
615
|
+
declare class Select<T, V = unknown> extends ValueFormControl<V | null> {
|
|
427
616
|
private readonly _config;
|
|
428
617
|
private readonly _overlay;
|
|
429
|
-
private readonly _viewContainerRef;
|
|
430
|
-
private readonly _destroyRef;
|
|
431
618
|
private readonly _triggerElement;
|
|
432
619
|
private readonly _panelTemplate;
|
|
433
|
-
private _overlayRef;
|
|
434
|
-
private _portal;
|
|
435
620
|
readonly value: ModelSignal<V | null>;
|
|
436
621
|
readonly inputId: InputSignal<string | null>;
|
|
437
|
-
readonly options: InputSignal<
|
|
622
|
+
readonly options: InputSignal<optionInput<T>[]>;
|
|
438
623
|
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
439
624
|
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
440
625
|
readonly optionDisabled: InputSignal<keyof T | undefined>;
|
|
@@ -443,21 +628,20 @@ declare class Select<T, V = unknown> extends ValueFormControl<V | null> implemen
|
|
|
443
628
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
444
629
|
readonly tabindex: InputSignal<string | number>;
|
|
445
630
|
readonly clearable: InputSignalWithTransform<boolean, unknown>;
|
|
446
|
-
protected readonly isOpen:
|
|
631
|
+
protected readonly isOpen: Signal<boolean>;
|
|
447
632
|
protected readonly activeIndex: WritableSignal<number>;
|
|
448
|
-
protected readonly normalizedOptions: Signal<
|
|
633
|
+
protected readonly normalizedOptions: Signal<Option<V>[]>;
|
|
449
634
|
protected readonly hasValue: Signal<boolean>;
|
|
450
635
|
protected readonly selectedLabel: Signal<string>;
|
|
451
636
|
protected readonly hostClasses: Signal<string[]>;
|
|
452
637
|
protected open(): void;
|
|
453
638
|
protected close(): void;
|
|
454
639
|
protected toggle(): void;
|
|
455
|
-
protected select(option:
|
|
640
|
+
protected select(option: Option<V>): void;
|
|
456
641
|
protected clear(): void;
|
|
457
642
|
protected onOptionHover(index: number, disabled?: boolean): void;
|
|
458
643
|
protected onKeydown(event: KeyboardEvent): void;
|
|
459
644
|
private _moveActive;
|
|
460
|
-
ngOnDestroy(): void;
|
|
461
645
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select<any, any>, never>;
|
|
462
646
|
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>;
|
|
463
647
|
}
|
|
@@ -495,6 +679,70 @@ declare const DEFAULT_SWITCH_CONFIG: SwitchConfig;
|
|
|
495
679
|
|
|
496
680
|
declare const SWITCH_CONFIG: InjectionToken<SwitchConfig>;
|
|
497
681
|
|
|
682
|
+
type textareaResize = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
683
|
+
interface TextareaConfig {
|
|
684
|
+
size: controlSize;
|
|
685
|
+
placeholder: string;
|
|
686
|
+
fluid: boolean;
|
|
687
|
+
rows: number;
|
|
688
|
+
resize: textareaResize;
|
|
689
|
+
}
|
|
690
|
+
declare const DEFAULT_TEXTAREA_CONFIG: TextareaConfig;
|
|
691
|
+
|
|
692
|
+
declare class Textarea extends ValueFormControl<string> {
|
|
693
|
+
private _config;
|
|
694
|
+
readonly value: ModelSignal<string>;
|
|
695
|
+
readonly inputId: InputSignal<string | null>;
|
|
696
|
+
readonly placeholder: InputSignal<string>;
|
|
697
|
+
readonly size: InputSignal<controlSize>;
|
|
698
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
699
|
+
readonly rows: InputSignalWithTransform<number, unknown>;
|
|
700
|
+
readonly resize: InputSignal<textareaResize>;
|
|
701
|
+
protected readonly classes: Signal<string[]>;
|
|
702
|
+
protected onInput(event: Event): void;
|
|
703
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Textarea, never>;
|
|
704
|
+
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>;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
declare const TEXTAREA_CONFIG: InjectionToken<TextareaConfig>;
|
|
708
|
+
|
|
709
|
+
type toggleGroupType = 'single' | 'multiple';
|
|
710
|
+
|
|
711
|
+
declare class ToggleGroup<T, V = unknown> extends ValueFormControl<V[]> {
|
|
712
|
+
private readonly _config;
|
|
713
|
+
protected CLASS_NAME: string;
|
|
714
|
+
readonly value: ModelSignal<V[]>;
|
|
715
|
+
readonly options: InputSignal<optionInput<T>[]>;
|
|
716
|
+
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
717
|
+
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
718
|
+
readonly optionDisabled: InputSignal<keyof T | undefined>;
|
|
719
|
+
readonly type: InputSignal<toggleGroupType>;
|
|
720
|
+
readonly unselectable: InputSignalWithTransform<boolean, unknown>;
|
|
721
|
+
readonly size: InputSignal<controlSize>;
|
|
722
|
+
readonly color: InputSignal<color>;
|
|
723
|
+
readonly orientation: InputSignal<orientation>;
|
|
724
|
+
protected readonly optionTemplate: Signal<TemplateRef<{
|
|
725
|
+
$implicit: Option<V>;
|
|
726
|
+
}> | undefined>;
|
|
727
|
+
protected readonly normalizedOptions: Signal<Option<V>[]>;
|
|
728
|
+
protected readonly classes: Signal<string[]>;
|
|
729
|
+
protected isSelected(optionValue: V): boolean;
|
|
730
|
+
protected select(option: Option<V>): void;
|
|
731
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleGroup<any, any>, never>;
|
|
732
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleGroup<any, any>, "tls-toggle-group", never, { "value": { "alias": "value"; "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; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "unselectable": { "alias": "unselectable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["optionTemplate"], never, true, never>;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
interface ToggleGroupConfig {
|
|
736
|
+
size: controlSize;
|
|
737
|
+
color: color;
|
|
738
|
+
orientation: orientation;
|
|
739
|
+
type: toggleGroupType;
|
|
740
|
+
unselectable: boolean;
|
|
741
|
+
}
|
|
742
|
+
declare const DEFAULT_TOGGLE_GROUP_CONFIG: ToggleGroupConfig;
|
|
743
|
+
|
|
744
|
+
declare const TOGGLE_GROUP_CONFIG: InjectionToken<ToggleGroupConfig>;
|
|
745
|
+
|
|
498
746
|
declare class Icon {
|
|
499
747
|
private _iconService;
|
|
500
748
|
private _config;
|
|
@@ -558,6 +806,95 @@ declare const DEFAULT_LOADER_CONFIG: LoaderConfig;
|
|
|
558
806
|
|
|
559
807
|
declare const LOADER_CONFIG: InjectionToken<LoaderConfig>;
|
|
560
808
|
|
|
809
|
+
declare class MenuItemComponent {
|
|
810
|
+
readonly key: i0.InputSignal<string>;
|
|
811
|
+
readonly templateRef: i0.Signal<TemplateRef<unknown>>;
|
|
812
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
813
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "tls-menu-item", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
type menuPosition = overlayPosition;
|
|
817
|
+
type menuItemType = 'item' | 'label' | 'divider' | 'custom';
|
|
818
|
+
interface BaseMenuItem {
|
|
819
|
+
type: menuItemType;
|
|
820
|
+
}
|
|
821
|
+
interface MenuActionItem extends BaseMenuItem {
|
|
822
|
+
type: 'item';
|
|
823
|
+
label: string;
|
|
824
|
+
icon?: string;
|
|
825
|
+
shortcut?: string;
|
|
826
|
+
disabled?: boolean;
|
|
827
|
+
data?: unknown;
|
|
828
|
+
action?: () => void;
|
|
829
|
+
}
|
|
830
|
+
interface MenuDivider extends BaseMenuItem {
|
|
831
|
+
type: 'divider';
|
|
832
|
+
data?: unknown;
|
|
833
|
+
}
|
|
834
|
+
interface MenuLabel extends BaseMenuItem {
|
|
835
|
+
type: 'label';
|
|
836
|
+
label: string;
|
|
837
|
+
data?: unknown;
|
|
838
|
+
}
|
|
839
|
+
interface MenuCustomItem {
|
|
840
|
+
type: 'custom';
|
|
841
|
+
key: string;
|
|
842
|
+
}
|
|
843
|
+
type MenuItemDefinition = MenuActionItem | MenuDivider | MenuLabel | MenuCustomItem;
|
|
844
|
+
|
|
845
|
+
declare class Menu {
|
|
846
|
+
private static _counter;
|
|
847
|
+
private readonly _config;
|
|
848
|
+
private readonly _overlay;
|
|
849
|
+
private readonly _panelRef;
|
|
850
|
+
protected readonly _customItems: i0.Signal<readonly MenuItemComponent[]>;
|
|
851
|
+
protected readonly customTemplates: i0.Signal<Map<string, TemplateRef<unknown>>>;
|
|
852
|
+
protected readonly itemTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
853
|
+
protected readonly labelTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
854
|
+
protected readonly dividerTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
855
|
+
protected readonly iconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
856
|
+
readonly id: string;
|
|
857
|
+
readonly items: InputSignal<MenuItemDefinition[]>;
|
|
858
|
+
readonly position: InputSignal<overlayPosition>;
|
|
859
|
+
readonly offset: InputSignal<Point>;
|
|
860
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
861
|
+
readonly inline: InputSignalWithTransform<boolean, unknown>;
|
|
862
|
+
private readonly _positions;
|
|
863
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
864
|
+
constructor();
|
|
865
|
+
open(trigger: MouseEvent | HTMLElement): void;
|
|
866
|
+
openAtPoint(x: number, y: number): void;
|
|
867
|
+
close(): void;
|
|
868
|
+
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
869
|
+
protected onItemClick(item: MenuActionItem): void;
|
|
870
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
871
|
+
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>;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
interface MenuConfig {
|
|
875
|
+
position: menuPosition;
|
|
876
|
+
offset: Point;
|
|
877
|
+
}
|
|
878
|
+
declare const DEFAULT_MENU_CONFIG: MenuConfig;
|
|
879
|
+
|
|
880
|
+
declare const MENU_CONFIG: InjectionToken<MenuConfig>;
|
|
881
|
+
|
|
882
|
+
declare class MenuTriggerDirective {
|
|
883
|
+
readonly menu: i0.InputSignal<Menu>;
|
|
884
|
+
protected readonly isOpen: i0.Signal<boolean>;
|
|
885
|
+
protected readonly menuId: i0.Signal<string>;
|
|
886
|
+
protected onClick(event: MouseEvent): void;
|
|
887
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTriggerDirective, never>;
|
|
888
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuTriggerDirective, "[tlsMenuTrigger]", never, { "menu": { "alias": "tlsMenuTrigger"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
declare class ContextMenuDirective {
|
|
892
|
+
readonly menu: i0.InputSignal<Menu>;
|
|
893
|
+
protected onContextMenu(event: MouseEvent): void;
|
|
894
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuDirective, never>;
|
|
895
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[tlsContextMenu]", never, { "menu": { "alias": "tlsContextMenu"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
896
|
+
}
|
|
897
|
+
|
|
561
898
|
type paginationItem = number | 'gap';
|
|
562
899
|
|
|
563
900
|
declare class Pagination {
|
|
@@ -598,15 +935,11 @@ declare const DEFAULT_PAGINATION_CONFIG: PaginationConfig;
|
|
|
598
935
|
|
|
599
936
|
declare const PAGINATION_CONFIG: InjectionToken<PaginationConfig>;
|
|
600
937
|
|
|
601
|
-
declare class Popover
|
|
938
|
+
declare class Popover {
|
|
602
939
|
private static _counter;
|
|
603
|
-
private readonly _overlay;
|
|
604
|
-
private readonly _viewContainerRef;
|
|
605
940
|
private readonly _config;
|
|
606
|
-
private readonly
|
|
941
|
+
private readonly _overlay;
|
|
607
942
|
private readonly _templateRef;
|
|
608
|
-
private _overlayRef;
|
|
609
|
-
private readonly _isOpen;
|
|
610
943
|
readonly id: string;
|
|
611
944
|
readonly isOpen: i0.Signal<boolean>;
|
|
612
945
|
readonly position: i0.InputSignal<overlayPosition>;
|
|
@@ -616,7 +949,6 @@ declare class Popover implements OnDestroy {
|
|
|
616
949
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
617
950
|
close(): void;
|
|
618
951
|
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
619
|
-
ngOnDestroy(): void;
|
|
620
952
|
static ɵfac: i0.ɵɵFactoryDeclaration<Popover, never>;
|
|
621
953
|
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>;
|
|
622
954
|
}
|
|
@@ -631,7 +963,7 @@ declare const POPOVER_CONFIG: InjectionToken<PopoverConfig>;
|
|
|
631
963
|
|
|
632
964
|
declare class Skeleton {
|
|
633
965
|
private _config;
|
|
634
|
-
readonly size: InputSignal<number>;
|
|
966
|
+
readonly size: InputSignal<number | null>;
|
|
635
967
|
readonly width: InputSignal<number | null>;
|
|
636
968
|
readonly height: InputSignal<number | null>;
|
|
637
969
|
readonly radius: InputSignal<number>;
|
|
@@ -650,7 +982,7 @@ declare class Skeleton {
|
|
|
650
982
|
}
|
|
651
983
|
|
|
652
984
|
interface SkeletonConfig {
|
|
653
|
-
size: number;
|
|
985
|
+
size: number | null;
|
|
654
986
|
width: number | null;
|
|
655
987
|
height: number | null;
|
|
656
988
|
radius: number;
|
|
@@ -848,5 +1180,5 @@ declare const TOOLTIP_CONFIG: InjectionToken<TooltipConfig>;
|
|
|
848
1180
|
|
|
849
1181
|
declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
|
|
850
1182
|
|
|
851
|
-
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, Checkbox, 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_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, FORM_ITEM_CONFIG, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, Loader, 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, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TooltipDirective, provideThalassicUIConfig };
|
|
852
|
-
export type { AlertConfig, ButtonConfig, 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,
|
|
1183
|
+
export { ALERT_CONFIG, Alert, BUTTON_CONFIG, Button, ButtonDirective, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_INPUT_CONFIG, Checkbox, Chip, ChipControl, ChipInput, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_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_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_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, FormControlAddon, FormControlGroup, 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, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, Textarea, ToggleGroup, TooltipDirective, provideThalassicUIConfig };
|
|
1184
|
+
export type { AlertConfig, ButtonConfig, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipInputConfig, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, FileUploaderConfig, FileUploaderDropZoneContext, FileUploaderFileContext, FormControlGroupConfig, 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, 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, toggleGroupType, tooltipColor, tooltipOrigin, tooltipPosition };
|