@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 CHANGED
@@ -143,4 +143,4 @@ function App() {
143
143
  MIT
144
144
 
145
145
  ## Support
146
- For support, please contact the FRI frontend development team.
146
+ For support, please contact the FRI frontend development team.cd
@@ -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,
@@ -574,7 +574,7 @@ class MenuComponent {
574
574
  }
575
575
  };
576
576
  // Link handler
577
- _link = (element, e) => {
577
+ _link = (_element, _e) => {
578
578
  if (EventHandlerUtil.trigger(this.element, 'kt.menu.link.click') === false) {
579
579
  return;
580
580
  }
@@ -726,7 +726,7 @@ class MenuComponent {
726
726
  }
727
727
 
728
728
  // Link handler
729
- private _link = (element: HTMLElement, e: Event) => {
729
+ private _link = (_element: HTMLElement, _e: Event) => {
730
730
  if (EventHandlerUtil.trigger(this.element, 'kt.menu.link.click') === false) {
731
731
  return
732
732
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyfri/template",
3
- "version": "1.0.10-beta.0",
3
+ "version": "1.0.10-beta.1",
4
4
  "description": "Metronic template components and utilities for Fri projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",