layout-tsi 0.0.6 → 0.0.7
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/layout-tsi.mjs +1746 -3560
- package/fesm2022/layout-tsi.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/lib/models/general/app-tab.model.d.ts +9 -0
- package/lib/models/general/dashboard.model.d.ts +15 -0
- package/lib/models/general/route-info.model.d.ts +16 -0
- package/lib/models/general/session-data.model.d.ts +8 -0
- package/lib/service/detector.service.d.ts +8 -0
- package/lib/service/header-ui.service.d.ts +9 -0
- package/lib/service/menu.service.d.ts +17 -0
- package/lib/service/tabs.service.d.ts +36 -0
- package/lib/ui/bottom-navigation/bottom-navigation.component.d.ts +31 -0
- package/lib/ui/chatbot/chatbot.component.d.ts +30 -0
- package/lib/ui/chatbot/chatbot.model.d.ts +28 -0
- package/lib/ui/chatbot/chatbot.service.d.ts +19 -0
- package/lib/ui/dashboard/dashboard-chart-bars/dashboard-chart-bars.component.d.ts +45 -0
- package/lib/ui/dashboard/dashboard-chart-donut/dashboard-chart-donut.component.d.ts +21 -0
- package/lib/ui/dashboard/dashboard-view-switcher/dashboard-view-switcher.component.d.ts +14 -0
- package/lib/ui/dashboard/item-dashboard/item-dashboard.component.d.ts +26 -0
- package/lib/ui/dashboard/item-dashboard-group/item-dashboard-group.component.d.ts +28 -0
- package/lib/ui/full/full.component.d.ts +49 -0
- package/lib/ui/menu-item/menu-item.component.d.ts +68 -0
- package/lib/ui/not-found/not-found.component.d.ts +7 -0
- package/lib/ui/tab-bar/tab-bar.component.d.ts +23 -0
- package/lib/ui/vertical-header/vertical-header.component.d.ts +99 -0
- package/lib/utils/validaciones.d.ts +1 -0
- package/package.json +4 -5
- package/public-api.d.ts +21 -0
- package/types/layout-tsi.d.ts +0 -965
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { TabsService } from '../../service/tabs.service';
|
|
3
|
+
import { BottomNavItem } from '../bottom-navigation/bottom-navigation.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface VerticalHeaderAction {
|
|
6
|
+
icon: string;
|
|
7
|
+
label: string;
|
|
8
|
+
badge?: number | null;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
/** Opt-in: además de en el header, refleja esta acción en el bottom-nav (mobile). Por defecto no baja. */
|
|
11
|
+
showInBottomNav?: boolean;
|
|
12
|
+
items?: {
|
|
13
|
+
icon: string;
|
|
14
|
+
label: string;
|
|
15
|
+
accion: () => void;
|
|
16
|
+
title?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
}[];
|
|
19
|
+
accion?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare class VerticalHeaderComponent implements AfterViewInit, OnDestroy {
|
|
22
|
+
headerContainerRef: ElementRef<HTMLDivElement>;
|
|
23
|
+
headerSideStartRef: ElementRef<HTMLDivElement>;
|
|
24
|
+
headerSideEndRef: ElementRef<HTMLDivElement>;
|
|
25
|
+
compactSearchWrapperRef: ElementRef<HTMLDivElement>;
|
|
26
|
+
private static readonly SEARCH_WIDTH;
|
|
27
|
+
private static readonly SEARCH_GAP;
|
|
28
|
+
searchCollapsed: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
private resizeObserver?;
|
|
30
|
+
private readonly ngZone;
|
|
31
|
+
private router;
|
|
32
|
+
readonly tabsService: TabsService;
|
|
33
|
+
actions: import("@angular/core").InputSignal<VerticalHeaderAction[]>;
|
|
34
|
+
showSearch: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
themes: import("@angular/core").InputSignal<{
|
|
36
|
+
id: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[]>;
|
|
40
|
+
showThemeSwitcher: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
showTabs: import("@angular/core").InputSignal<boolean>;
|
|
42
|
+
showNotifications: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
notificationsCount: import("@angular/core").InputSignal<number>;
|
|
44
|
+
notificationsClick: import("@angular/core").OutputEmitterRef<void>;
|
|
45
|
+
/** Opt-in: además de en el header, refleja las notificaciones en el bottom-nav (mobile). Por defecto no baja (igual que en consults). */
|
|
46
|
+
notificationsInBottomNav: import("@angular/core").InputSignal<boolean>;
|
|
47
|
+
showChatbotToggle: import("@angular/core").InputSignal<boolean>;
|
|
48
|
+
chatbotVisible: import("@angular/core").InputSignal<boolean>;
|
|
49
|
+
chatbotVisibleChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
50
|
+
/** Opt-in: además de en el header, refleja el toggle de soporte en el bottom-nav (mobile). Por defecto no baja. */
|
|
51
|
+
chatbotInBottomNav: import("@angular/core").InputSignal<boolean>;
|
|
52
|
+
currentTheme: import("@angular/core").InputSignal<string>;
|
|
53
|
+
themeChange: import("@angular/core").OutputEmitterRef<string>;
|
|
54
|
+
bottomNavItems: import("@angular/core").Signal<BottomNavItem[]>;
|
|
55
|
+
readonly themeIcon: import("@angular/core").Signal<string>;
|
|
56
|
+
readonly themeLabel: import("@angular/core").Signal<string>;
|
|
57
|
+
versionApp: import("@angular/core").InputSignal<string>;
|
|
58
|
+
accentColor: import("@angular/core").InputSignal<string>;
|
|
59
|
+
envClass: import("@angular/core").InputSignal<string>;
|
|
60
|
+
produccion: import("@angular/core").InputSignal<boolean>;
|
|
61
|
+
emitirToogle: import("@angular/core").OutputEmitterRef<void>;
|
|
62
|
+
isScrolled: import("@angular/core").InputSignal<boolean>;
|
|
63
|
+
isSidebarOpen: import("@angular/core").InputSignal<boolean>;
|
|
64
|
+
nameProyecto: import("@angular/core").InputSignal<string>;
|
|
65
|
+
searchComponents: import("@angular/core").OutputEmitterRef<void>;
|
|
66
|
+
showPanelControl: import("@angular/core").InputSignal<boolean>;
|
|
67
|
+
panelControlClick: import("@angular/core").OutputEmitterRef<void>;
|
|
68
|
+
logout: import("@angular/core").OutputEmitterRef<void>;
|
|
69
|
+
userName: import("@angular/core").InputSignal<string>;
|
|
70
|
+
empresaName: import("@angular/core").InputSignal<string>;
|
|
71
|
+
userAvatar: import("@angular/core").InputSignal<string>;
|
|
72
|
+
avatarFallido: import("@angular/core").WritableSignal<string>;
|
|
73
|
+
avatarSrc: import("@angular/core").Signal<string>;
|
|
74
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
75
|
+
text: string;
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
}>;
|
|
79
|
+
openActionKey: import("@angular/core").WritableSignal<string>;
|
|
80
|
+
themeMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
81
|
+
userMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
82
|
+
onDocumentClick(): void;
|
|
83
|
+
private closeAllMenus;
|
|
84
|
+
toggleActionMenu(event: MouseEvent, action: VerticalHeaderAction): void;
|
|
85
|
+
runAction(item: {
|
|
86
|
+
accion: () => void;
|
|
87
|
+
}): void;
|
|
88
|
+
toggleThemeMenu(event: MouseEvent): void;
|
|
89
|
+
selectTheme(id: string): void;
|
|
90
|
+
toggleUserMenu(event: MouseEvent): void;
|
|
91
|
+
showTooltip(event: MouseEvent, text: string): void;
|
|
92
|
+
hideTooltip(): void;
|
|
93
|
+
goToHome(): void;
|
|
94
|
+
ngAfterViewInit(): void;
|
|
95
|
+
ngOnDestroy(): void;
|
|
96
|
+
private updateSearchCollapse;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VerticalHeaderComponent, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VerticalHeaderComponent, "app-vertical-header", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "themes": { "alias": "themes"; "required": false; "isSignal": true; }; "showThemeSwitcher": { "alias": "showThemeSwitcher"; "required": false; "isSignal": true; }; "showTabs": { "alias": "showTabs"; "required": false; "isSignal": true; }; "showNotifications": { "alias": "showNotifications"; "required": false; "isSignal": true; }; "notificationsCount": { "alias": "notificationsCount"; "required": false; "isSignal": true; }; "notificationsInBottomNav": { "alias": "notificationsInBottomNav"; "required": false; "isSignal": true; }; "showChatbotToggle": { "alias": "showChatbotToggle"; "required": false; "isSignal": true; }; "chatbotVisible": { "alias": "chatbotVisible"; "required": false; "isSignal": true; }; "chatbotInBottomNav": { "alias": "chatbotInBottomNav"; "required": false; "isSignal": true; }; "currentTheme": { "alias": "currentTheme"; "required": false; "isSignal": true; }; "versionApp": { "alias": "versionApp"; "required": false; "isSignal": true; }; "accentColor": { "alias": "accentColor"; "required": false; "isSignal": true; }; "envClass": { "alias": "envClass"; "required": false; "isSignal": true; }; "produccion": { "alias": "produccion"; "required": false; "isSignal": true; }; "isScrolled": { "alias": "isScrolled"; "required": false; "isSignal": true; }; "isSidebarOpen": { "alias": "isSidebarOpen"; "required": false; "isSignal": true; }; "nameProyecto": { "alias": "nameProyecto"; "required": false; "isSignal": true; }; "showPanelControl": { "alias": "showPanelControl"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "empresaName": { "alias": "empresaName"; "required": false; "isSignal": true; }; "userAvatar": { "alias": "userAvatar"; "required": false; "isSignal": true; }; }, { "notificationsClick": "notificationsClick"; "chatbotVisibleChange": "chatbotVisibleChange"; "themeChange": "themeChange"; "emitirToogle": "emitirToogle"; "searchComponents": "searchComponents"; "panelControlClick": "panelControlClick"; "logout": "logout"; }, never, ["[extra-actions]"], true, never>;
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validaArray(data: any): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layout-tsi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.0",
|
|
6
6
|
"@angular/core": "^19.2.0",
|
|
@@ -11,15 +11,14 @@
|
|
|
11
11
|
},
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"module": "fesm2022/layout-tsi.mjs",
|
|
14
|
-
"typings": "
|
|
14
|
+
"typings": "index.d.ts",
|
|
15
15
|
"exports": {
|
|
16
16
|
"./package.json": {
|
|
17
17
|
"default": "./package.json"
|
|
18
18
|
},
|
|
19
19
|
".": {
|
|
20
|
-
"types": "./
|
|
20
|
+
"types": "./index.d.ts",
|
|
21
21
|
"default": "./fesm2022/layout-tsi.mjs"
|
|
22
22
|
}
|
|
23
|
-
}
|
|
24
|
-
"type": "module"
|
|
23
|
+
}
|
|
25
24
|
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './lib/ui/full/full.component';
|
|
2
|
+
export * from './lib/ui/vertical-header/vertical-header.component';
|
|
3
|
+
export * from './lib/ui/menu-item/menu-item.component';
|
|
4
|
+
export * from './lib/ui/tab-bar/tab-bar.component';
|
|
5
|
+
export * from './lib/ui/bottom-navigation/bottom-navigation.component';
|
|
6
|
+
export * from './lib/ui/chatbot/chatbot.component';
|
|
7
|
+
export * from './lib/ui/chatbot/chatbot.model';
|
|
8
|
+
export * from './lib/ui/not-found/not-found.component';
|
|
9
|
+
export * from './lib/ui/dashboard/item-dashboard/item-dashboard.component';
|
|
10
|
+
export * from './lib/ui/dashboard/item-dashboard-group/item-dashboard-group.component';
|
|
11
|
+
export * from './lib/ui/dashboard/dashboard-chart-donut/dashboard-chart-donut.component';
|
|
12
|
+
export * from './lib/ui/dashboard/dashboard-chart-bars/dashboard-chart-bars.component';
|
|
13
|
+
export * from './lib/ui/dashboard/dashboard-view-switcher/dashboard-view-switcher.component';
|
|
14
|
+
export * from './lib/service/detector.service';
|
|
15
|
+
export * from './lib/service/menu.service';
|
|
16
|
+
export * from './lib/service/header-ui.service';
|
|
17
|
+
export * from './lib/service/tabs.service';
|
|
18
|
+
export * from './lib/models/general/route-info.model';
|
|
19
|
+
export * from './lib/models/general/session-data.model';
|
|
20
|
+
export * from './lib/models/general/app-tab.model';
|
|
21
|
+
export * from './lib/models/general/dashboard.model';
|