@soyfri/template 1.0.10-beta.0 → 1.0.10-beta.1
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 +1 -1
- package/dist/assets/ts/_utils/EventHandlerUtil.d.ts +0 -1
- package/dist/assets/ts/_utils/EventHandlerUtil.js +0 -7
- package/dist/assets/ts/_utils/EventHandlerUtil.ts +0 -7
- package/dist/assets/ts/components/MenuComponent.js +1 -1
- package/dist/assets/ts/components/MenuComponent.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ export declare class EventHandlerUtil {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
private static setEventMetaByNameAndHandlerId;
|
|
14
|
-
private static getEventMetaByHandlerId;
|
|
15
14
|
private static addEvent;
|
|
16
15
|
private static removeEvent;
|
|
17
16
|
static trigger(element: HTMLElement, name: string, target?: any, _e?: Event): boolean;
|
|
@@ -10,13 +10,6 @@ export class EventHandlerUtil {
|
|
|
10
10
|
EventHandlerUtil.store[name] = {};
|
|
11
11
|
EventHandlerUtil.store[name][handlerId] = meta;
|
|
12
12
|
}
|
|
13
|
-
static getEventMetaByHandlerId(name, handlerId) {
|
|
14
|
-
const handlersIds = EventHandlerUtil.store[name];
|
|
15
|
-
if (!handlersIds) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
return handlersIds[handlerId];
|
|
19
|
-
}
|
|
20
13
|
static addEvent(element, name, callback, one = false) {
|
|
21
14
|
const handlerId = getUniqueIdWithPrefix('event');
|
|
22
15
|
const data = DataUtil.get(element, name);
|
|
@@ -28,13 +28,6 @@ export class EventHandlerUtil {
|
|
|
28
28
|
EventHandlerUtil.store[name][handlerId] = meta
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
private static getEventMetaByHandlerId(name: string, handlerId: string): EventMeta | undefined {
|
|
32
|
-
const handlersIds = EventHandlerUtil.store[name]
|
|
33
|
-
if (!handlersIds) {
|
|
34
|
-
return
|
|
35
|
-
}
|
|
36
|
-
return handlersIds[handlerId]
|
|
37
|
-
}
|
|
38
31
|
|
|
39
32
|
private static addEvent(
|
|
40
33
|
element: HTMLElement,
|
|
@@ -726,7 +726,7 @@ class MenuComponent {
|
|
|
726
726
|
}
|
|
727
727
|
|
|
728
728
|
// Link handler
|
|
729
|
-
private _link = (
|
|
729
|
+
private _link = (_element: HTMLElement, _e: Event) => {
|
|
730
730
|
if (EventHandlerUtil.trigger(this.element, 'kt.menu.link.click') === false) {
|
|
731
731
|
return
|
|
732
732
|
}
|