@telcomdev/ui 0.0.4 → 0.0.6
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/README.md +74 -0
- package/fesm2022/telcomdev-ui.mjs +1748 -9
- package/fesm2022/telcomdev-ui.mjs.map +1 -1
- package/package.json +7 -2
- package/types/telcomdev-ui.d.ts +419 -4
package/types/telcomdev-ui.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, InjectionToken, Type, TemplateRef, AfterContentInit } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { DialogRef } from '@angular/cdk/dialog';
|
|
3
5
|
import * as _telcomdev_ui from '@telcomdev/ui';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
4
8
|
|
|
5
9
|
declare class TelcomdevUi {
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TelcomdevUi, never>;
|
|
@@ -111,6 +115,76 @@ declare class TdDataTable<T extends object> implements OnChanges, OnDestroy {
|
|
|
111
115
|
static ɵcmp: i0.ɵɵComponentDeclaration<TdDataTable<any>, "td-data-table", never, { "datos": { "alias": "datos"; "required": false; }; "columnas": { "alias": "columnas"; "required": false; }; "acciones": { "alias": "acciones"; "required": false; }; "botones": { "alias": "botones"; "required": false; }; "total": { "alias": "total"; "required": false; }; "cargando": { "alias": "cargando"; "required": false; }; "puedeCargarMas": { "alias": "puedeCargarMas"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "filasAntesDeCargar": { "alias": "filasAntesDeCargar"; "required": false; }; "altura": { "alias": "altura"; "required": false; }; "campoId": { "alias": "campoId"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "mostrarBusqueda": { "alias": "mostrarBusqueda"; "required": false; }; "placeholderBusqueda": { "alias": "placeholderBusqueda"; "required": false; }; "textoVacio": { "alias": "textoVacio"; "required": false; }; "descripcionVacio": { "alias": "descripcionVacio"; "required": false; }; "debounceBusqueda": { "alias": "debounceBusqueda"; "required": false; }; }, { "busquedaChange": "busquedaChange"; "accion": "accion"; "botonClick": "botonClick"; "cargarMas": "cargarMas"; }, never, ["[tdDataTableFilters]", "[tdDataTableActions]"], true, never>;
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
type TdDialogTamano = 'pequeno' | 'mediano' | 'grande' | 'pantalla';
|
|
119
|
+
interface TdDialogConfig<D = unknown> {
|
|
120
|
+
data?: D;
|
|
121
|
+
titulo?: string;
|
|
122
|
+
subtitulo?: string;
|
|
123
|
+
icono?: string;
|
|
124
|
+
tamano?: TdDialogTamano;
|
|
125
|
+
ancho?: string;
|
|
126
|
+
alto?: string;
|
|
127
|
+
maxAncho?: string;
|
|
128
|
+
maxAlto?: string;
|
|
129
|
+
mostrarCerrar?: boolean;
|
|
130
|
+
cerrarAlNavegar?: boolean;
|
|
131
|
+
deshabilitarCierre?: boolean;
|
|
132
|
+
autoFocus?: 'dialog' | 'first-tabbable' | 'first-heading' | string | boolean;
|
|
133
|
+
restaurarFoco?: boolean;
|
|
134
|
+
oscuro?: boolean;
|
|
135
|
+
panelClass?: string | string[];
|
|
136
|
+
ariaLabel?: string;
|
|
137
|
+
}
|
|
138
|
+
interface TdDialogPanelData<D = unknown> {
|
|
139
|
+
component: Type<unknown>;
|
|
140
|
+
config: TdDialogConfig<D>;
|
|
141
|
+
fullscreen: boolean;
|
|
142
|
+
}
|
|
143
|
+
declare const TD_DIALOG_DATA: InjectionToken<unknown>;
|
|
144
|
+
declare const TD_DIALOG_CONFIG: InjectionToken<TdDialogConfig<unknown>>;
|
|
145
|
+
interface TdDialogRefLike<R = unknown> {
|
|
146
|
+
readonly closed: Observable<R | undefined>;
|
|
147
|
+
readonly id: string;
|
|
148
|
+
close(result?: R): void;
|
|
149
|
+
updateSize(width?: string | number, height?: string | number): this;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare class TdDialogRef<R = unknown> implements TdDialogRefLike<R> {
|
|
153
|
+
private readonly ref;
|
|
154
|
+
readonly closed: Observable<R | undefined>;
|
|
155
|
+
readonly id: string;
|
|
156
|
+
constructor(ref: DialogRef<R, unknown>);
|
|
157
|
+
close(result?: R): void;
|
|
158
|
+
updateSize(width?: string | number, height?: string | number): this;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare class TdDialog {
|
|
162
|
+
private readonly dialog;
|
|
163
|
+
open<C, D = unknown, R = unknown>(component: Type<C>, config?: TdDialogConfig<D>): TdDialogRef<R>;
|
|
164
|
+
closeAll(): void;
|
|
165
|
+
private widthFor;
|
|
166
|
+
private panelClasses;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdDialog, never>;
|
|
168
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TdDialog>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class TdDialogActions {
|
|
172
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdDialogActions, never>;
|
|
173
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdDialogActions, "td-dialog-actions", never, {}, {}, never, ["*"], true, never>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class TdDialogClose {
|
|
177
|
+
private readonly dialogRef;
|
|
178
|
+
result: unknown;
|
|
179
|
+
protected close(): void;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdDialogClose, never>;
|
|
181
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdDialogClose, "[tdDialogClose]", never, { "result": { "alias": "tdDialogClose"; "required": false; }; }, {}, never, never, true, never>;
|
|
182
|
+
}
|
|
183
|
+
declare class TdDialogPrimary {
|
|
184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdDialogPrimary, never>;
|
|
185
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdDialogPrimary, "[tdDialogPrimary]", never, {}, {}, never, never, true, never>;
|
|
186
|
+
}
|
|
187
|
+
|
|
114
188
|
declare class TdFooter {
|
|
115
189
|
empresa: string;
|
|
116
190
|
texto: string;
|
|
@@ -173,6 +247,8 @@ declare class TdIcon {
|
|
|
173
247
|
interface TdIconoDefinicion {
|
|
174
248
|
path: string;
|
|
175
249
|
viewBox?: string;
|
|
250
|
+
estilo?: 'relleno' | 'linea';
|
|
251
|
+
grosor?: number;
|
|
176
252
|
}
|
|
177
253
|
type TdIconoPersonalizado = Record<string, string | TdIconoDefinicion>;
|
|
178
254
|
|
|
@@ -254,6 +330,12 @@ declare const TD_ICONOS: {
|
|
|
254
330
|
search: {
|
|
255
331
|
path: string;
|
|
256
332
|
};
|
|
333
|
+
visibility: {
|
|
334
|
+
path: string;
|
|
335
|
+
};
|
|
336
|
+
visibility_off: {
|
|
337
|
+
path: string;
|
|
338
|
+
};
|
|
257
339
|
notifications: {
|
|
258
340
|
path: string;
|
|
259
341
|
};
|
|
@@ -286,10 +368,293 @@ declare const TD_ICONOS: {
|
|
|
286
368
|
};
|
|
287
369
|
pdf: {
|
|
288
370
|
path: string;
|
|
371
|
+
estilo: "linea";
|
|
372
|
+
grosor: number;
|
|
373
|
+
};
|
|
374
|
+
save: {
|
|
375
|
+
path: string;
|
|
376
|
+
};
|
|
377
|
+
copy: {
|
|
378
|
+
path: string;
|
|
379
|
+
};
|
|
380
|
+
download: {
|
|
381
|
+
path: string;
|
|
382
|
+
};
|
|
383
|
+
upload: {
|
|
384
|
+
path: string;
|
|
385
|
+
};
|
|
386
|
+
print: {
|
|
387
|
+
path: string;
|
|
388
|
+
};
|
|
389
|
+
excel: {
|
|
390
|
+
path: string;
|
|
391
|
+
estilo: "linea";
|
|
392
|
+
grosor: number;
|
|
393
|
+
};
|
|
394
|
+
xml: {
|
|
395
|
+
path: string;
|
|
396
|
+
estilo: "linea";
|
|
397
|
+
grosor: number;
|
|
398
|
+
};
|
|
399
|
+
zip: {
|
|
400
|
+
path: string;
|
|
401
|
+
estilo: "linea";
|
|
402
|
+
grosor: number;
|
|
403
|
+
};
|
|
404
|
+
file: {
|
|
405
|
+
path: string;
|
|
406
|
+
};
|
|
407
|
+
image: {
|
|
408
|
+
path: string;
|
|
409
|
+
};
|
|
410
|
+
calendar: {
|
|
411
|
+
path: string;
|
|
412
|
+
};
|
|
413
|
+
clock: {
|
|
414
|
+
path: string;
|
|
415
|
+
};
|
|
416
|
+
history: {
|
|
417
|
+
path: string;
|
|
418
|
+
};
|
|
419
|
+
filter: {
|
|
420
|
+
path: string;
|
|
421
|
+
};
|
|
422
|
+
refresh: {
|
|
423
|
+
path: string;
|
|
424
|
+
};
|
|
425
|
+
sort: {
|
|
426
|
+
path: string;
|
|
427
|
+
};
|
|
428
|
+
more_vertical: {
|
|
429
|
+
path: string;
|
|
430
|
+
};
|
|
431
|
+
more_horizontal: {
|
|
432
|
+
path: string;
|
|
433
|
+
};
|
|
434
|
+
arrow_back: {
|
|
435
|
+
path: string;
|
|
436
|
+
};
|
|
437
|
+
arrow_forward: {
|
|
438
|
+
path: string;
|
|
439
|
+
};
|
|
440
|
+
login: {
|
|
441
|
+
path: string;
|
|
442
|
+
};
|
|
443
|
+
logout: {
|
|
444
|
+
path: string;
|
|
445
|
+
};
|
|
446
|
+
lock: {
|
|
447
|
+
path: string;
|
|
448
|
+
};
|
|
449
|
+
lock_open: {
|
|
450
|
+
path: string;
|
|
451
|
+
};
|
|
452
|
+
mail: {
|
|
453
|
+
path: string;
|
|
454
|
+
};
|
|
455
|
+
phone: {
|
|
456
|
+
path: string;
|
|
457
|
+
};
|
|
458
|
+
send: {
|
|
459
|
+
path: string;
|
|
460
|
+
};
|
|
461
|
+
location: {
|
|
462
|
+
path: string;
|
|
463
|
+
};
|
|
464
|
+
language: {
|
|
465
|
+
path: string;
|
|
466
|
+
};
|
|
467
|
+
info: {
|
|
468
|
+
path: string;
|
|
469
|
+
};
|
|
470
|
+
warning: {
|
|
471
|
+
path: string;
|
|
472
|
+
};
|
|
473
|
+
error: {
|
|
474
|
+
path: string;
|
|
475
|
+
};
|
|
476
|
+
check_circle: {
|
|
477
|
+
path: string;
|
|
478
|
+
};
|
|
479
|
+
cancel: {
|
|
480
|
+
path: string;
|
|
481
|
+
};
|
|
482
|
+
star: {
|
|
483
|
+
path: string;
|
|
484
|
+
};
|
|
485
|
+
favorite: {
|
|
486
|
+
path: string;
|
|
487
|
+
};
|
|
488
|
+
database: {
|
|
489
|
+
path: string;
|
|
490
|
+
};
|
|
491
|
+
cloud: {
|
|
492
|
+
path: string;
|
|
493
|
+
};
|
|
494
|
+
camera: {
|
|
495
|
+
path: string;
|
|
496
|
+
};
|
|
497
|
+
link: {
|
|
498
|
+
path: string;
|
|
499
|
+
};
|
|
500
|
+
external_link: {
|
|
501
|
+
path: string;
|
|
289
502
|
};
|
|
290
503
|
};
|
|
291
504
|
type TdIconoNombre = keyof typeof TD_ICONOS;
|
|
292
|
-
declare const TD_ICONOS_NOMBRES: readonly ("menu" | "search" | "close" | "home" | "dashboard" | "folder" | "settings" | "people" | "person" | "security" | "inventory" | "shopping_cart" | "receipt" | "assessment" | "description" | "business" | "chevron_left" | "chevron_right" | "sun" | "moon" | "alert" | "check" | "notifications" | "chevron_down" | "apps" | "help" | "add" | "edit" | "delete" | "toggle_on" | "toggle_off" | "inbox" | "pdf")[];
|
|
505
|
+
declare const TD_ICONOS_NOMBRES: readonly ("error" | "info" | "link" | "menu" | "search" | "cancel" | "close" | "copy" | "home" | "dashboard" | "folder" | "settings" | "people" | "person" | "security" | "inventory" | "shopping_cart" | "receipt" | "assessment" | "description" | "business" | "chevron_left" | "chevron_right" | "sun" | "moon" | "alert" | "check" | "visibility" | "visibility_off" | "notifications" | "chevron_down" | "apps" | "help" | "add" | "edit" | "delete" | "toggle_on" | "toggle_off" | "inbox" | "pdf" | "save" | "download" | "upload" | "print" | "excel" | "xml" | "zip" | "file" | "image" | "calendar" | "clock" | "history" | "filter" | "refresh" | "sort" | "more_vertical" | "more_horizontal" | "arrow_back" | "arrow_forward" | "login" | "logout" | "lock" | "lock_open" | "mail" | "phone" | "send" | "location" | "language" | "warning" | "check_circle" | "star" | "favorite" | "database" | "cloud" | "camera" | "external_link")[];
|
|
506
|
+
|
|
507
|
+
declare class TdInput implements ControlValueAccessor {
|
|
508
|
+
private readonly cdr;
|
|
509
|
+
private readonly generatedId;
|
|
510
|
+
id: string;
|
|
511
|
+
name: string;
|
|
512
|
+
label: string;
|
|
513
|
+
type: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time';
|
|
514
|
+
placeholder: string;
|
|
515
|
+
autocomplete: string;
|
|
516
|
+
icon: string;
|
|
517
|
+
hint: string;
|
|
518
|
+
error: string;
|
|
519
|
+
readonly: boolean;
|
|
520
|
+
disabled: boolean;
|
|
521
|
+
required: boolean;
|
|
522
|
+
clearable: boolean;
|
|
523
|
+
dark: boolean;
|
|
524
|
+
min: string | number | null;
|
|
525
|
+
max: string | number | null;
|
|
526
|
+
step: string | number | null;
|
|
527
|
+
minlength: number | null;
|
|
528
|
+
maxlength: number | null;
|
|
529
|
+
readonly valueChange: EventEmitter<string>;
|
|
530
|
+
value: string;
|
|
531
|
+
protected focused: boolean;
|
|
532
|
+
protected passwordVisible: boolean;
|
|
533
|
+
protected get inputId(): string;
|
|
534
|
+
protected get descriptionId(): string | null;
|
|
535
|
+
protected get resolvedType(): string;
|
|
536
|
+
private onChange;
|
|
537
|
+
private onTouched;
|
|
538
|
+
writeValue(value: unknown): void;
|
|
539
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
540
|
+
registerOnTouched(fn: () => void): void;
|
|
541
|
+
setDisabledState(disabled: boolean): void;
|
|
542
|
+
protected handleInput(event: Event): void;
|
|
543
|
+
protected handleBlur(): void;
|
|
544
|
+
protected clear(): void;
|
|
545
|
+
private setValue;
|
|
546
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdInput, never>;
|
|
547
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdInput, "td-input", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
interface TdSelectOption<T = unknown> {
|
|
551
|
+
value: T;
|
|
552
|
+
label: string;
|
|
553
|
+
description?: string;
|
|
554
|
+
icon?: string;
|
|
555
|
+
disabled?: boolean;
|
|
556
|
+
}
|
|
557
|
+
type TdSelectScrollBehavior = 'reposition' | 'close';
|
|
558
|
+
|
|
559
|
+
declare class TdAutocompleteSelect<T = unknown> implements ControlValueAccessor {
|
|
560
|
+
private readonly cdr;
|
|
561
|
+
private readonly document;
|
|
562
|
+
private readonly destroyRef;
|
|
563
|
+
private readonly scrollStrategies;
|
|
564
|
+
private readonly generatedId;
|
|
565
|
+
private searchInput?;
|
|
566
|
+
private connectedOverlay?;
|
|
567
|
+
label: string;
|
|
568
|
+
placeholder: string;
|
|
569
|
+
options: TdSelectOption<T>[];
|
|
570
|
+
hint: string;
|
|
571
|
+
error: string;
|
|
572
|
+
emptyText: string;
|
|
573
|
+
clearable: boolean;
|
|
574
|
+
dark: boolean;
|
|
575
|
+
disabled: boolean;
|
|
576
|
+
scrollBehavior: TdSelectScrollBehavior;
|
|
577
|
+
minimumCharacters: number;
|
|
578
|
+
filterWith: (option: TdSelectOption<T>, search: string) => boolean;
|
|
579
|
+
compareWith: (first: T | null, second: T | null) => boolean;
|
|
580
|
+
readonly selectionChange: EventEmitter<T | null>;
|
|
581
|
+
readonly searchChange: EventEmitter<string>;
|
|
582
|
+
protected value: T | null;
|
|
583
|
+
protected search: string;
|
|
584
|
+
protected open: boolean;
|
|
585
|
+
protected activeIndex: number;
|
|
586
|
+
protected readonly scrollStrategy: ScrollStrategy;
|
|
587
|
+
protected get inputId(): string;
|
|
588
|
+
protected get listId(): string;
|
|
589
|
+
protected get filteredOptions(): TdSelectOption<T>[];
|
|
590
|
+
protected readonly onTouched: () => void;
|
|
591
|
+
private changed;
|
|
592
|
+
private touched;
|
|
593
|
+
constructor();
|
|
594
|
+
writeValue(value: T | null): void;
|
|
595
|
+
registerOnChange(fn: (value: T | null) => void): void;
|
|
596
|
+
registerOnTouched(fn: () => void): void;
|
|
597
|
+
setDisabledState(disabled: boolean): void;
|
|
598
|
+
protected compare(first: T | null, second: T | null): boolean;
|
|
599
|
+
protected openPanel(): void;
|
|
600
|
+
protected close(): void;
|
|
601
|
+
protected handleInput(event: Event): void;
|
|
602
|
+
protected select(option: TdSelectOption<T>): void;
|
|
603
|
+
protected clear(event: MouseEvent): void;
|
|
604
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
605
|
+
private moveActive;
|
|
606
|
+
private firstEnabledIndex;
|
|
607
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdAutocompleteSelect<any>, never>;
|
|
608
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdAutocompleteSelect<any>, "td-autocomplete-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; }; "minimumCharacters": { "alias": "minimumCharacters"; "required": false; }; "filterWith": { "alias": "filterWith"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; }, { "selectionChange": "selectionChange"; "searchChange": "searchChange"; }, never, never, true, never>;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare class TdSelect<T = unknown> implements ControlValueAccessor {
|
|
612
|
+
private readonly cdr;
|
|
613
|
+
private readonly document;
|
|
614
|
+
private readonly destroyRef;
|
|
615
|
+
private readonly scrollStrategies;
|
|
616
|
+
private readonly generatedId;
|
|
617
|
+
private connectedOverlay?;
|
|
618
|
+
label: string;
|
|
619
|
+
placeholder: string;
|
|
620
|
+
options: TdSelectOption<T>[];
|
|
621
|
+
hint: string;
|
|
622
|
+
error: string;
|
|
623
|
+
emptyText: string;
|
|
624
|
+
clearable: boolean;
|
|
625
|
+
dark: boolean;
|
|
626
|
+
disabled: boolean;
|
|
627
|
+
scrollBehavior: TdSelectScrollBehavior;
|
|
628
|
+
compareWith: (first: T | null, second: T | null) => boolean;
|
|
629
|
+
readonly selectionChange: EventEmitter<T | null>;
|
|
630
|
+
protected value: T | null;
|
|
631
|
+
protected open: boolean;
|
|
632
|
+
protected activeIndex: number;
|
|
633
|
+
protected readonly scrollStrategy: ScrollStrategy;
|
|
634
|
+
protected get labelId(): string;
|
|
635
|
+
protected get listId(): string;
|
|
636
|
+
protected get selectedOption(): TdSelectOption<T> | undefined;
|
|
637
|
+
private onChange;
|
|
638
|
+
private onTouched;
|
|
639
|
+
constructor();
|
|
640
|
+
writeValue(value: T | null): void;
|
|
641
|
+
registerOnChange(fn: (value: T | null) => void): void;
|
|
642
|
+
registerOnTouched(fn: () => void): void;
|
|
643
|
+
setDisabledState(disabled: boolean): void;
|
|
644
|
+
protected compare(first: T | null, second: T | null): boolean;
|
|
645
|
+
protected toggle(): void;
|
|
646
|
+
protected close(): void;
|
|
647
|
+
protected select(option: TdSelectOption<T>): void;
|
|
648
|
+
protected clear(event: MouseEvent): void;
|
|
649
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
650
|
+
protected handleOverlayKeydown(event: KeyboardEvent): void;
|
|
651
|
+
private openPanel;
|
|
652
|
+
private moveActive;
|
|
653
|
+
private firstEnabledIndex;
|
|
654
|
+
private setValue;
|
|
655
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdSelect<any>, never>;
|
|
656
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdSelect<any>, "td-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
657
|
+
}
|
|
293
658
|
|
|
294
659
|
interface MenuSidebar {
|
|
295
660
|
nombre: string;
|
|
@@ -335,5 +700,55 @@ declare class TdSidebar {
|
|
|
335
700
|
static ɵcmp: i0.ɵɵComponentDeclaration<TdSidebar, "td-sidebar", never, { "titulo": { "alias": "titulo"; "required": false; }; "subtitulo": { "alias": "subtitulo"; "required": false; }; "etiquetaNavegacion": { "alias": "etiquetaNavegacion"; "required": false; }; "logoUrl": { "alias": "logoUrl"; "required": false; }; "logoAlt": { "alias": "logoAlt"; "required": false; }; "textoCarga": { "alias": "textoCarga"; "required": false; }; "mensajeVacio": { "alias": "mensajeVacio"; "required": false; }; "error": { "alias": "error"; "required": false; }; "cargando": { "alias": "cargando"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "modoCerrado": { "alias": "modoCerrado"; "required": false; }; "abierto": { "alias": "abierto"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; }, { "abiertoChange": "abiertoChange"; "seleccionar": "seleccionar"; }, never, never, true, never>;
|
|
336
701
|
}
|
|
337
702
|
|
|
338
|
-
|
|
339
|
-
|
|
703
|
+
declare class TdTab {
|
|
704
|
+
readonly generatedId: string;
|
|
705
|
+
id: string;
|
|
706
|
+
label: string;
|
|
707
|
+
icon: string;
|
|
708
|
+
disabled: boolean;
|
|
709
|
+
badge: string | number | null;
|
|
710
|
+
content: TemplateRef<unknown>;
|
|
711
|
+
get resolvedId(): string;
|
|
712
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdTab, never>;
|
|
713
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdTab, "td-tab", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
type TdTabsVariant = 'linea' | 'pastilla' | 'contenida';
|
|
717
|
+
type TdTabsAlignment = 'inicio' | 'centro' | 'fin';
|
|
718
|
+
declare class TdTabs implements AfterContentInit, OnDestroy {
|
|
719
|
+
private readonly cdr;
|
|
720
|
+
private tabsChange?;
|
|
721
|
+
private requestedIndex;
|
|
722
|
+
private tabQuery;
|
|
723
|
+
private tabButtons;
|
|
724
|
+
set selectedIndex(value: number);
|
|
725
|
+
get selectedIndex(): number;
|
|
726
|
+
variant: TdTabsVariant;
|
|
727
|
+
alignment: TdTabsAlignment;
|
|
728
|
+
stretch: boolean;
|
|
729
|
+
dark: boolean;
|
|
730
|
+
ariaLabel: string;
|
|
731
|
+
panelFocusable: boolean;
|
|
732
|
+
readonly selectedIndexChange: EventEmitter<number>;
|
|
733
|
+
readonly tabChange: EventEmitter<TdTab>;
|
|
734
|
+
protected tabs: readonly TdTab[];
|
|
735
|
+
protected activeIndex: number;
|
|
736
|
+
protected get activeTab(): TdTab | null;
|
|
737
|
+
ngAfterContentInit(): void;
|
|
738
|
+
ngOnDestroy(): void;
|
|
739
|
+
protected select(index: number, focus?: boolean): void;
|
|
740
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
741
|
+
protected tabId(tab: TdTab): string;
|
|
742
|
+
protected panelId(tab: TdTab): string;
|
|
743
|
+
private syncTabs;
|
|
744
|
+
private applyRequestedIndex;
|
|
745
|
+
private nextEnabledIndex;
|
|
746
|
+
private firstEnabledIndex;
|
|
747
|
+
private lastEnabledIndex;
|
|
748
|
+
private focusButton;
|
|
749
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdTabs, never>;
|
|
750
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdTabs, "td-tabs", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "panelFocusable": { "alias": "panelFocusable"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "tabChange": "tabChange"; }, ["tabQuery"], never, true, never>;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
export { TD_DIALOG_CONFIG, TD_DIALOG_DATA, TD_ICONOS, TD_ICONOS_NOMBRES, TdAlerta, TdAutocompleteSelect, TdDataTable, TdDialog, TdDialogActions, TdDialogClose, TdDialogPrimary, TdDialogRef, TdFooter, TdHeader, TdIcon, TdIconoRegistry, TdInput, TdSelect, TdSidebar, TdTab, TdTabs, TelcomdevUi };
|
|
754
|
+
export type { MenuSidebar, TdAlertaOpciones, TdAlertaTipo, TdDataTableAccion, TdDataTableAccionEvento, TdDataTableAlineacion, TdDataTableBoton, TdDataTableColumna, TdDataTableTipoColumna, TdDataTableTono, TdDialogConfig, TdDialogPanelData, TdDialogRefLike, TdDialogTamano, TdHeaderAccionPerfil, TdHeaderNotificacion, TdIconoDefinicion, TdIconoNombre, TdIconoPersonalizado, TdSelectOption, TdSelectScrollBehavior, TdSidebarModoCerrado, TdSidebarSeleccion, TdTabsAlignment, TdTabsVariant };
|