@telcomdev/ui 0.0.5 → 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 +16 -0
- package/fesm2022/telcomdev-ui.mjs +443 -7
- package/fesm2022/telcomdev-ui.mjs.map +1 -1
- package/package.json +2 -1
- package/types/telcomdev-ui.d.ts +187 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telcomdev/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Librería UI reutilizable para los sistemas TelcomDev.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"icons",
|
|
15
15
|
"input",
|
|
16
16
|
"select",
|
|
17
|
+
"tabs",
|
|
17
18
|
"data-table",
|
|
18
19
|
"dialog",
|
|
19
20
|
"virtual-scroll"
|
package/types/telcomdev-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, InjectionToken, Type } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, InjectionToken, Type, TemplateRef, AfterContentInit } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DialogRef } from '@angular/cdk/dialog';
|
|
5
5
|
import * as _telcomdev_ui from '@telcomdev/ui';
|
|
@@ -247,6 +247,8 @@ declare class TdIcon {
|
|
|
247
247
|
interface TdIconoDefinicion {
|
|
248
248
|
path: string;
|
|
249
249
|
viewBox?: string;
|
|
250
|
+
estilo?: 'relleno' | 'linea';
|
|
251
|
+
grosor?: number;
|
|
250
252
|
}
|
|
251
253
|
type TdIconoPersonalizado = Record<string, string | TdIconoDefinicion>;
|
|
252
254
|
|
|
@@ -366,10 +368,141 @@ declare const TD_ICONOS: {
|
|
|
366
368
|
};
|
|
367
369
|
pdf: {
|
|
368
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;
|
|
369
502
|
};
|
|
370
503
|
};
|
|
371
504
|
type TdIconoNombre = keyof typeof TD_ICONOS;
|
|
372
|
-
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" | "visibility" | "visibility_off" | "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")[];
|
|
373
506
|
|
|
374
507
|
declare class TdInput implements ControlValueAccessor {
|
|
375
508
|
private readonly cdr;
|
|
@@ -567,5 +700,55 @@ declare class TdSidebar {
|
|
|
567
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>;
|
|
568
701
|
}
|
|
569
702
|
|
|
570
|
-
|
|
571
|
-
|
|
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 };
|