@zeedhi/teknisa-cli 1.41.0 → 1.43.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"description": "Teknisa CLI",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"/src",
|
|
35
35
|
"/bin"
|
|
36
36
|
],
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "dff21e134017e20c4de440406daf73031653df60"
|
|
38
38
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { IEventParam, Metadata, Singleton } from '@zeedhi/core';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Menu,
|
|
4
|
+
MenuButton,
|
|
5
|
+
AlertService,
|
|
6
|
+
} from '@zeedhi/common';
|
|
3
7
|
import { TekLibAuth } from '@zeedhi/tek-lib';
|
|
4
8
|
|
|
5
9
|
@Singleton
|
|
@@ -29,4 +33,15 @@ export class AppController {
|
|
|
29
33
|
public showMessageExpiredMenu() {
|
|
30
34
|
TekLibAuth.showMessageExpiredMenu();
|
|
31
35
|
}
|
|
36
|
+
|
|
37
|
+
public closeMenu({ component }: IEventParam<MenuButton>) {
|
|
38
|
+
const menu = Metadata.getInstance<Menu>(component.menuName);
|
|
39
|
+
if (menu.opened && !menu.miniState) {
|
|
40
|
+
menu.toggleMenu();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public escAction() {
|
|
45
|
+
AlertService.hide();
|
|
46
|
+
}
|
|
32
47
|
}
|
|
@@ -4,7 +4,11 @@ import ZeedhiComponents from '@zeedhi/vuetify';
|
|
|
4
4
|
import TeknisaComponents from '@zeedhi/teknisa-components-vuetify';
|
|
5
5
|
import TekLibComponents from '@zeedhi/tek-lib';
|
|
6
6
|
import { Icons } from '@zeedhi/common';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Messages,
|
|
9
|
+
KeyMap,
|
|
10
|
+
Loader,
|
|
11
|
+
} from '@zeedhi/core';
|
|
8
12
|
import router from '../router';
|
|
9
13
|
import controllers from '../controllers';
|
|
10
14
|
import config from '../config/config';
|
|
@@ -54,3 +58,12 @@ Messages.add({
|
|
|
54
58
|
},
|
|
55
59
|
},
|
|
56
60
|
});
|
|
61
|
+
|
|
62
|
+
const appController = Loader.getInstance('AppController');
|
|
63
|
+
|
|
64
|
+
KeyMap.bind({
|
|
65
|
+
esc: {
|
|
66
|
+
event: () => { appController.escAction(); },
|
|
67
|
+
stop: true,
|
|
68
|
+
},
|
|
69
|
+
});
|