@telcomdev/ui 0.1.13 → 0.1.14
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/package.json
CHANGED
package/types/telcomdev-ui.d.ts
CHANGED
|
@@ -529,6 +529,13 @@ interface TdFileAttachment {
|
|
|
529
529
|
descargable?: boolean;
|
|
530
530
|
}
|
|
531
531
|
type TdFileViewerArchivo = TdFileAttachment | TdFileSource;
|
|
532
|
+
interface TdFileViewerOpenOptions {
|
|
533
|
+
titulo?: string;
|
|
534
|
+
descripcion?: string;
|
|
535
|
+
oscuro?: boolean;
|
|
536
|
+
compacto?: boolean;
|
|
537
|
+
index?: number;
|
|
538
|
+
}
|
|
532
539
|
|
|
533
540
|
declare class TdFileViewer {
|
|
534
541
|
private readonly cdr;
|
|
@@ -541,8 +548,10 @@ declare class TdFileViewer {
|
|
|
541
548
|
descripcion: string;
|
|
542
549
|
oscuro: boolean;
|
|
543
550
|
compacto: boolean;
|
|
551
|
+
showList: boolean;
|
|
544
552
|
readonly seleccionar: EventEmitter<TdFileAttachment>;
|
|
545
553
|
readonly descargar: EventEmitter<TdFileAttachment>;
|
|
554
|
+
readonly closed: EventEmitter<void>;
|
|
546
555
|
protected seleccionado: TdFileAttachment | null;
|
|
547
556
|
protected zoom: number;
|
|
548
557
|
protected rotacion: number;
|
|
@@ -554,6 +563,9 @@ declare class TdFileViewer {
|
|
|
554
563
|
private pdfDocumento?;
|
|
555
564
|
private pdfRenderTask?;
|
|
556
565
|
private pdfRenderToken;
|
|
566
|
+
open(archivo: TdFileViewerArchivo): void;
|
|
567
|
+
openByIndex(index: number): void;
|
|
568
|
+
close(): void;
|
|
557
569
|
protected abrir(archivo: TdFileAttachment): void;
|
|
558
570
|
protected cerrar(): void;
|
|
559
571
|
protected cerrarSiBackdrop(event: MouseEvent): void;
|
|
@@ -583,7 +595,19 @@ declare class TdFileViewer {
|
|
|
583
595
|
private obtenerFuentePdf;
|
|
584
596
|
private base64ABytes;
|
|
585
597
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdFileViewer, never>;
|
|
586
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdFileViewer, "td-file-viewer", never, { "archivos": { "alias": "archivos"; "required": false; }; "titulo": { "alias": "titulo"; "required": false; }; "descripcion": { "alias": "descripcion"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "compacto": { "alias": "compacto"; "required": false; }; }, { "seleccionar": "seleccionar"; "descargar": "descargar"; }, never, never, true, never>;
|
|
598
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdFileViewer, "td-file-viewer", never, { "archivos": { "alias": "archivos"; "required": false; }; "titulo": { "alias": "titulo"; "required": false; }; "descripcion": { "alias": "descripcion"; "required": false; }; "oscuro": { "alias": "oscuro"; "required": false; }; "compacto": { "alias": "compacto"; "required": false; }; "showList": { "alias": "showList"; "required": false; }; }, { "seleccionar": "seleccionar"; "descargar": "descargar"; "closed": "closed"; }, never, never, true, never>;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
declare class TdFileViewerService {
|
|
602
|
+
private readonly overlay;
|
|
603
|
+
private readonly environmentInjector;
|
|
604
|
+
private overlayRef?;
|
|
605
|
+
private componentRef?;
|
|
606
|
+
open(archivo: TdFileViewerArchivo | TdFileViewerArchivo[], opciones?: TdFileViewerOpenOptions): TdFileViewer;
|
|
607
|
+
close(): void;
|
|
608
|
+
private dispose;
|
|
609
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdFileViewerService, never>;
|
|
610
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TdFileViewerService>;
|
|
587
611
|
}
|
|
588
612
|
|
|
589
613
|
interface TdHeaderNotificacion {
|
|
@@ -1376,5 +1400,5 @@ declare class TdThemeService {
|
|
|
1376
1400
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TdThemeService>;
|
|
1377
1401
|
}
|
|
1378
1402
|
|
|
1379
|
-
export { TD_DIALOG_CONFIG, TD_DIALOG_DATA, TD_ICONOS, TD_ICONOS_NOMBRES, TD_THEME_DARK_COLORS, TD_THEME_LIGHT_COLORS, TdAlerta, TdAutocompleteSelect, TdButton, TdCheckbox, TdDataTable, TdDatePicker, TdDialog, TdDialogActions, TdDialogClose, TdDialogPrimary, TdDialogRef, TdFileViewer, TdFooter, TdHeader, TdIcon, TdIconoRegistry, TdInput, TdMenu, TdSelect, TdSidebar, TdTab, TdTabs, TdTextarea, TdThemeService, TelcomdevUi, createTdFormControlBridge };
|
|
1380
|
-
export type { MenuSidebar, TdAlertaOpciones, TdAlertaTipo, TdButtonSize, TdButtonTone, TdButtonType, TdButtonVariant, TdDataTableAccion, TdDataTableAccionEvento, TdDataTableAccionesPresentacion, TdDataTableAlineacion, TdDataTableBoton, TdDataTableColumna, TdDataTableImagenConfig, TdDataTableImagenEvento, TdDataTableImagenForma, TdDataTableTipoColumna, TdDataTableTono, TdDatePickerMode, TdDatePickerValue, TdDateRange, TdDialogConfig, TdDialogPanelData, TdDialogRefLike, TdDialogTamano, TdErrorDisplay, TdFileAttachment, TdFileSource, TdFileViewerArchivo, TdFileViewerKind, TdFormControlBridge, TdHeaderAccionPerfil, TdHeaderNotificacion, TdIconoDefinicion, TdIconoNombre, TdIconoPersonalizado, TdInputEmptyValue, TdInputMask, TdInputSanitize, TdInputSanitizeFn, TdInputSanitizePreset, TdInputValue, TdMenuItem, TdMenuPosicion, TdMenuSeleccion, TdMenuTono, TdSelectAppearance, TdSelectOption, TdSelectOverflowText, TdSelectScrollBehavior, TdSidebarModoCerrado, TdSidebarSeleccion, TdTabsAlignment, TdTabsVariant, TdTextareaEmptyValue, TdTextareaValue, TdThemeMode, TdThemePaletteColor };
|
|
1403
|
+
export { TD_DIALOG_CONFIG, TD_DIALOG_DATA, TD_ICONOS, TD_ICONOS_NOMBRES, TD_THEME_DARK_COLORS, TD_THEME_LIGHT_COLORS, TdAlerta, TdAutocompleteSelect, TdButton, TdCheckbox, TdDataTable, TdDatePicker, TdDialog, TdDialogActions, TdDialogClose, TdDialogPrimary, TdDialogRef, TdFileViewer, TdFileViewerService, TdFooter, TdHeader, TdIcon, TdIconoRegistry, TdInput, TdMenu, TdSelect, TdSidebar, TdTab, TdTabs, TdTextarea, TdThemeService, TelcomdevUi, createTdFormControlBridge };
|
|
1404
|
+
export type { MenuSidebar, TdAlertaOpciones, TdAlertaTipo, TdButtonSize, TdButtonTone, TdButtonType, TdButtonVariant, TdDataTableAccion, TdDataTableAccionEvento, TdDataTableAccionesPresentacion, TdDataTableAlineacion, TdDataTableBoton, TdDataTableColumna, TdDataTableImagenConfig, TdDataTableImagenEvento, TdDataTableImagenForma, TdDataTableTipoColumna, TdDataTableTono, TdDatePickerMode, TdDatePickerValue, TdDateRange, TdDialogConfig, TdDialogPanelData, TdDialogRefLike, TdDialogTamano, TdErrorDisplay, TdFileAttachment, TdFileSource, TdFileViewerArchivo, TdFileViewerKind, TdFileViewerOpenOptions, TdFormControlBridge, TdHeaderAccionPerfil, TdHeaderNotificacion, TdIconoDefinicion, TdIconoNombre, TdIconoPersonalizado, TdInputEmptyValue, TdInputMask, TdInputSanitize, TdInputSanitizeFn, TdInputSanitizePreset, TdInputValue, TdMenuItem, TdMenuPosicion, TdMenuSeleccion, TdMenuTono, TdSelectAppearance, TdSelectOption, TdSelectOverflowText, TdSelectScrollBehavior, TdSidebarModoCerrado, TdSidebarSeleccion, TdTabsAlignment, TdTabsVariant, TdTextareaEmptyValue, TdTextareaValue, TdThemeMode, TdThemePaletteColor };
|