@base-framework/base 3.0.79 → 3.0.80

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.
Files changed (103) hide show
  1. package/dist/base.js +1 -1
  2. package/dist/base.js.map +3 -3
  3. package/dist/types/base.d.ts +25 -0
  4. package/dist/types/main/base.d.ts +94 -0
  5. package/dist/types/main/data-tracker/data-tracker.d.ts +93 -0
  6. package/dist/types/main/data-tracker/tracker-types.d.ts +23 -0
  7. package/dist/types/main/data-tracker/tracker.d.ts +56 -0
  8. package/dist/types/main/equals.d.ts +1 -0
  9. package/dist/types/main/events/event-methods.d.ts +124 -0
  10. package/dist/types/main/events/events.d.ts +208 -0
  11. package/dist/types/modules/ajax/ajax.d.ts +153 -0
  12. package/dist/types/modules/animation/animation.d.ts +79 -0
  13. package/dist/types/modules/animations/animation-controller.d.ts +61 -0
  14. package/dist/types/modules/animations/animation.d.ts +28 -0
  15. package/dist/types/modules/animations/attr-movement.d.ts +5 -0
  16. package/dist/types/modules/animations/css-movement.d.ts +8 -0
  17. package/dist/types/modules/animations/movement-factory.d.ts +34 -0
  18. package/dist/types/modules/animations/movement.d.ts +24 -0
  19. package/dist/types/modules/animations/value.d.ts +30 -0
  20. package/dist/types/modules/atom/atom.d.ts +1 -0
  21. package/dist/types/modules/atom/atoms.d.ts +343 -0
  22. package/dist/types/modules/component/component.d.ts +99 -0
  23. package/dist/types/modules/component/event-helper.d.ts +59 -0
  24. package/dist/types/modules/component/jot.d.ts +1 -0
  25. package/dist/types/modules/component/parse-args.d.ts +1 -0
  26. package/dist/types/modules/component/state-helper.d.ts +102 -0
  27. package/dist/types/modules/component/unit.d.ts +281 -0
  28. package/dist/types/modules/data/attrs.d.ts +1 -0
  29. package/dist/types/modules/data/basic-data.d.ts +259 -0
  30. package/dist/types/modules/data/data-proxy.d.ts +1 -0
  31. package/dist/types/modules/data/data-utils.d.ts +17 -0
  32. package/dist/types/modules/data/data.d.ts +3 -0
  33. package/dist/types/modules/data/deep-data.d.ts +162 -0
  34. package/dist/types/modules/data/model-service.d.ts +280 -0
  35. package/dist/types/modules/data/model.d.ts +33 -0
  36. package/dist/types/modules/data/simple-data.d.ts +12 -0
  37. package/dist/types/modules/data-binder/connection-tracker/connection-tracker.d.ts +45 -0
  38. package/dist/types/modules/data-binder/connection-tracker/connections/connection.d.ts +15 -0
  39. package/dist/types/modules/data-binder/connection-tracker/connections/one-way-connection.d.ts +23 -0
  40. package/dist/types/modules/data-binder/connection-tracker/connections/two-way-connection.d.ts +62 -0
  41. package/dist/types/modules/data-binder/data-binder.d.ts +175 -0
  42. package/dist/types/modules/data-binder/data-pub-sub.d.ts +66 -0
  43. package/dist/types/modules/data-binder/sources/data-source.d.ts +51 -0
  44. package/dist/types/modules/data-binder/sources/element-source.d.ts +84 -0
  45. package/dist/types/modules/data-binder/sources/one-way-source.d.ts +33 -0
  46. package/dist/types/modules/data-binder/sources/source.d.ts +26 -0
  47. package/dist/types/modules/data-binder/sources/two-way-source.d.ts +42 -0
  48. package/dist/types/modules/date/date-time.d.ts +165 -0
  49. package/dist/types/modules/history/history.d.ts +10 -0
  50. package/dist/types/modules/html/html.d.ts +136 -0
  51. package/dist/types/modules/import/import.d.ts +1 -0
  52. package/dist/types/modules/layout/builder.d.ts +102 -0
  53. package/dist/types/modules/layout/directives/core/aria/aria.d.ts +2 -0
  54. package/dist/types/modules/layout/directives/core/context/context-directives.d.ts +3 -0
  55. package/dist/types/modules/layout/directives/core/default-directives.d.ts +1 -0
  56. package/dist/types/modules/layout/directives/core/dom-methods.d.ts +1 -0
  57. package/dist/types/modules/layout/directives/core/parent/parent-directives.d.ts +5 -0
  58. package/dist/types/modules/layout/directives/core/reactive/bind.d.ts +1 -0
  59. package/dist/types/modules/layout/directives/core/reactive/for-each.d.ts +1 -0
  60. package/dist/types/modules/layout/directives/core/reactive/get-parent-data.d.ts +1 -0
  61. package/dist/types/modules/layout/directives/core/reactive/map.d.ts +1 -0
  62. package/dist/types/modules/layout/directives/core/reactive/on-created.d.ts +1 -0
  63. package/dist/types/modules/layout/directives/core/reactive/on-destroyed.d.ts +1 -0
  64. package/dist/types/modules/layout/directives/core/reactive/on-set.d.ts +1 -0
  65. package/dist/types/modules/layout/directives/core/reactive/on-state.d.ts +1 -0
  66. package/dist/types/modules/layout/directives/core/reactive/watch.d.ts +1 -0
  67. package/dist/types/modules/layout/directives/core/route.d.ts +1 -0
  68. package/dist/types/modules/layout/directives/core/switch.d.ts +1 -0
  69. package/dist/types/modules/layout/directives/directive.d.ts +1 -0
  70. package/dist/types/modules/layout/directives/directives.d.ts +25 -0
  71. package/dist/types/modules/layout/element/attribute-directive.d.ts +1 -0
  72. package/dist/types/modules/layout/element/attribute.d.ts +1 -0
  73. package/dist/types/modules/layout/element/element.d.ts +1 -0
  74. package/dist/types/modules/layout/element/parser.d.ts +65 -0
  75. package/dist/types/modules/layout/html-helper.d.ts +57 -0
  76. package/dist/types/modules/layout/render/browser-render.d.ts +10 -0
  77. package/dist/types/modules/layout/render/render-controller.d.ts +23 -0
  78. package/dist/types/modules/layout/render/render.d.ts +18 -0
  79. package/dist/types/modules/layout/render/server-render.d.ts +10 -0
  80. package/dist/types/modules/layout/watcher-helper.d.ts +103 -0
  81. package/dist/types/modules/mouse/mouse.d.ts +45 -0
  82. package/dist/types/modules/router/history/browser-history.d.ts +39 -0
  83. package/dist/types/modules/router/history/hash-history.d.ts +25 -0
  84. package/dist/types/modules/router/history/history-controller.d.ts +21 -0
  85. package/dist/types/modules/router/history/history.d.ts +35 -0
  86. package/dist/types/modules/router/nav-link.d.ts +37 -0
  87. package/dist/types/modules/router/router.d.ts +268 -0
  88. package/dist/types/modules/router/routes/component-helper.d.ts +75 -0
  89. package/dist/types/modules/router/routes/param-pattern.d.ts +2 -0
  90. package/dist/types/modules/router/routes/route-pattern.d.ts +1 -0
  91. package/dist/types/modules/router/routes/route.d.ts +120 -0
  92. package/dist/types/modules/router/set-title.d.ts +1 -0
  93. package/dist/types/modules/router/utils.d.ts +9 -0
  94. package/dist/types/modules/state/state-target.d.ts +45 -0
  95. package/dist/types/modules/state/state-tracker.d.ts +103 -0
  96. package/dist/types/shared/arrays.d.ts +26 -0
  97. package/dist/types/shared/dom.d.ts +272 -0
  98. package/dist/types/shared/encode/encode.d.ts +38 -0
  99. package/dist/types/shared/encode/json.d.ts +15 -0
  100. package/dist/types/shared/objects.d.ts +62 -0
  101. package/dist/types/shared/strings.d.ts +34 -0
  102. package/dist/types/shared/types.d.ts +52 -0
  103. package/package.json +5 -3
@@ -0,0 +1,25 @@
1
+ import { Ajax } from './modules/ajax/ajax.js';
2
+ import { Arrays } from './shared/arrays.js';
3
+ import { Atom } from './modules/atom/atom.js';
4
+ import { Builder } from './modules/layout/builder.js';
5
+ import { Component } from './modules/component/component.js';
6
+ import { Data } from './modules/data/data.js';
7
+ import { DataTracker } from './main/data-tracker/data-tracker.js';
8
+ import { DateTime } from "./modules/date/date-time.js";
9
+ import { Directives } from './modules/layout/directives/directives.js';
10
+ import { Dom } from './shared/dom.js';
11
+ import { Html } from './modules/html/html.js';
12
+ import { Import } from './modules/import/import.js';
13
+ import { Jot } from './modules/component/jot.js';
14
+ import { Model } from './modules/data/data.js';
15
+ import { NavLink } from './modules/router/router.js';
16
+ import { Objects } from './shared/objects.js';
17
+ import { SimpleData } from './modules/data/data.js';
18
+ import { StateTracker as State } from './modules/state/state-tracker.js';
19
+ import { Strings } from './shared/strings.js';
20
+ import { Types } from './shared/types.js';
21
+ import { Unit } from './modules/component/unit.js';
22
+ import { base } from './main/base.js';
23
+ import { dataBinder } from './modules/data-binder/data-binder.js';
24
+ import { router } from './modules/router/router.js';
25
+ export { Ajax, Arrays, Atom, Builder, Component, Data, DataTracker, DateTime, Directives, Dom, Html, Import, Jot, Model, NavLink, Objects, SimpleData, State, Strings, Types, Unit, base, dataBinder, router };
@@ -0,0 +1,94 @@
1
+ /**
2
+ * This is the instance of base that all modules will use.
3
+ *
4
+ * @global
5
+ */
6
+ export const base: Base;
7
+ /**
8
+ * Base
9
+ *
10
+ * This is the base framework.
11
+ *
12
+ * @class
13
+ */
14
+ declare class Base {
15
+ /**
16
+ * @member {string} version
17
+ */
18
+ version: string;
19
+ /**
20
+ * @member {array} errors
21
+ */
22
+ errors: any[];
23
+ /**
24
+ * @member {object} dataTracker
25
+ */
26
+ dataTracker: typeof DataTracker;
27
+ /**
28
+ * this will augement the base framework with new functionality.
29
+ *
30
+ * @param {object} methods The new methods to add.
31
+ * @returns {object} An instance of base.
32
+ */
33
+ augment(methods: object): object;
34
+ /**
35
+ * This will override a method function with a new function.
36
+ *
37
+ * @param {object} obj The object being modified.
38
+ * @param {string} methodName the method name being overriden.
39
+ * @param {function} overrideMethod The new function to call.
40
+ * @param {array} args The args to pass to the first function call.
41
+ * @returns {*} The results of the function being called.
42
+ */
43
+ override(obj: object, methodName: string, overrideMethod: Function, args: any[]): any;
44
+ /**
45
+ * This will get the last error.
46
+ *
47
+ * @returns {(object|boolean)} The last error or false.
48
+ */
49
+ getLastError(): (object | boolean);
50
+ /**
51
+ * This will add an error.
52
+ *
53
+ * @param {object} err
54
+ * @returns {void}
55
+ */
56
+ addError(err: object): void;
57
+ /**
58
+ * This will get the value from a property on an object.
59
+ *
60
+ * @param {object} obj
61
+ * @param {string} property
62
+ * @param {*} [defaultText] A value if no value is set.
63
+ * @returns {string}
64
+ */
65
+ getProperty(obj: object, property: string, defaultText?: any): string;
66
+ /**
67
+ * This will create a callBack.
68
+ *
69
+ * @param {object} obj
70
+ * @param {function} method
71
+ * @param {array} [argArray] Default args to pass.
72
+ * @param {boolean} [addArgs] Set to add merge args from the
73
+ * curried function.
74
+ * @returns {function|boolean} The callBack function or false.
75
+ */
76
+ createCallBack(obj: object, method: Function, argArray?: any[], addArgs?: boolean): Function | boolean;
77
+ /**
78
+ * This will bind scope to a method.
79
+ *
80
+ * @param {object} obj
81
+ * @param {function} method
82
+ * @returns {function}
83
+ */
84
+ bind(obj: object, method: Function): Function;
85
+ /**
86
+ * This will return the base prototype to allow the module
87
+ * to be added to base as a module.
88
+ *
89
+ * @returns {object} the base prototype.
90
+ */
91
+ extend: Base;
92
+ }
93
+ import { DataTracker } from './data-tracker/data-tracker.js';
94
+ export {};
@@ -0,0 +1,93 @@
1
+ /**
2
+ * DataTracker
3
+ *
4
+ * This will add data tracking for objects. The DataTracker is
5
+ * a single point where any data can be tracked to an object
6
+ * or element. Modules can register types to store their own
7
+ * data that can allow the data to be removed when the element
8
+ * is removed.
9
+ *
10
+ * @class
11
+ */
12
+ export class DataTracker {
13
+ /**
14
+ * @private
15
+ * @static
16
+ * @member {Map} trackers This is an object that stores all tracker
17
+ * objects by tracking id.
18
+ */
19
+ private static trackers;
20
+ /**
21
+ * @private
22
+ * @static
23
+ * @member {number} trackingCount
24
+ */
25
+ private static trackingCount;
26
+ /**
27
+ * This will add a new type to the data tracker.
28
+ *
29
+ * @public
30
+ * @param {string} type The new type.
31
+ * @param {function} callBack The callBack to help clean
32
+ * up data when removed.
33
+ * @returns {void}
34
+ */
35
+ public static addType(type: string, callBack: Function): void;
36
+ /**
37
+ * This will remove a type from the data tracker.
38
+ *
39
+ * @param {string} type
40
+ * @returns {void}
41
+ */
42
+ static removeType(type: string): void;
43
+ /**
44
+ * This will get the object tracking id or set it if
45
+ * not set.
46
+ *
47
+ * @param {object} obj
48
+ * @returns {string}
49
+ */
50
+ static getTrackingId(obj: object): string;
51
+ /**
52
+ * This will add data to an object.
53
+ *
54
+ * @param {object} obj
55
+ * @param {string} type The type name.
56
+ * @param {*} data The data to track.
57
+ * @returns {void}
58
+ */
59
+ static add(obj: object, type: string, data: any): void;
60
+ /**
61
+ * This will get the data from a type or the tracker object
62
+ * if type is not set.
63
+ *
64
+ * @param {object} obj
65
+ * @param {string} [type]
66
+ * @returns {*}
67
+ */
68
+ static get(obj: object, type?: string): any;
69
+ /**
70
+ * This will get the tracker or create a new tracker
71
+ * if no tracker is set.
72
+ *
73
+ * @param {string} id
74
+ * @returns {object} The tracker.
75
+ */
76
+ static find(id: string): object;
77
+ /**
78
+ * This will check if an object is empty.
79
+ *
80
+ * @param {object} obj
81
+ * @returns {boolean}
82
+ */
83
+ static isEmpty(obj: object): boolean;
84
+ /**
85
+ * This will remove a type or all data for an object if
86
+ * no type is set.
87
+ *
88
+ * @param {object} obj
89
+ * @param {string} [type]
90
+ * @returns {void}
91
+ */
92
+ static remove(obj: object, type?: string): void;
93
+ }
@@ -0,0 +1,23 @@
1
+ export namespace TrackerTypes {
2
+ let types: {};
3
+ /**
4
+ * This will add a type.
5
+ * @param {string} type
6
+ * @param {function} callBack The function to call when an object
7
+ * is having the type removed.
8
+ * @returns {void}
9
+ */
10
+ function add(type: string, callBack: Function): void;
11
+ /**
12
+ * This will get a type or return false.
13
+ * @param {string} type
14
+ * @returns {(Function|false)} The callBack or false.
15
+ */
16
+ function get(type: string): false | Function;
17
+ /**
18
+ * This will remove a type.
19
+ * @param {string} type
20
+ * @returns {void}
21
+ */
22
+ function remove(type: string): void;
23
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Tracker
3
+ *
4
+ * This will create a tracker for an object that will
5
+ * store each type added and the data stored to
6
+ * each type.
7
+ *
8
+ * @class
9
+ */
10
+ export class Tracker {
11
+ /**
12
+ * @member {Map} types
13
+ */
14
+ types: Map<any, any>;
15
+ /**
16
+ * This will add data to a type.
17
+ *
18
+ * @public
19
+ * @param {string} addingType The type of data.
20
+ * @param {*} data The data to store
21
+ * @returns {void}
22
+ */
23
+ public add(addingType: string, data: any): void;
24
+ /**
25
+ * This will get all the data stored to a data type.
26
+ * @param {string} type
27
+ * @returns {*} the data or false.
28
+ */
29
+ get(type: string): any;
30
+ /**
31
+ * This will call the callBack with the data.
32
+ *
33
+ * @private
34
+ * @param {function} callBack
35
+ * @param {*} data
36
+ * @returns {void}
37
+ */
38
+ private removeByCallBack;
39
+ /**
40
+ * This will remove the data by type.
41
+ *
42
+ * @private
43
+ * @param {string} removingType
44
+ * @returns {void}
45
+ */
46
+ private removeType;
47
+ /**
48
+ * This will remove the data by type or all if no type is
49
+ * set.
50
+ *
51
+ * @public
52
+ * @param {string} [type]
53
+ * @returns {void}
54
+ */
55
+ public remove(type?: string): void;
56
+ }
@@ -0,0 +1 @@
1
+ export function equals(option1: any, option2: any): boolean;
@@ -0,0 +1,124 @@
1
+ export namespace EventMethods {
2
+ export { Events as events };
3
+ /**
4
+ * This will add an event to an object.
5
+ *
6
+ * @param {string} event The event name.
7
+ * @param {object} obj
8
+ * @param {function} fn
9
+ * @param {boolean} [capture]
10
+ * @returns {object}
11
+ */
12
+ export function addListener(event: string, obj: any, fn: Function, capture?: boolean): any;
13
+ /**
14
+ * This will add an event to an object.
15
+ *
16
+ * @param {string} event The event name.
17
+ * @param {object} obj
18
+ * @param {function} fn
19
+ * @param {boolean} [capture]
20
+ * @returns {object}
21
+ */
22
+ export function on(event: string, obj: any, fn: Function, capture?: boolean): any;
23
+ /**
24
+ * This will remove an event from an object.
25
+ *
26
+ * @param {string} event The event name.
27
+ * @param {object} obj
28
+ * @param {function} fn
29
+ * @param {boolean} [capture]
30
+ * @returns {object}
31
+ */
32
+ export function off(event: string, obj: any, fn: Function, capture?: boolean): any;
33
+ /**
34
+ * This will remove an event from an object.
35
+ *
36
+ * @param {string} event The event name.
37
+ * @param {object} obj
38
+ * @param {function} fn
39
+ * @param {boolean} [capture]
40
+ * @returns {object}
41
+ */
42
+ export function removeListener(event: string, obj: any, fn: Function, capture?: boolean): any;
43
+ /**
44
+ * This will create a custom event.
45
+ *
46
+ * @protected
47
+ * @param {object} event
48
+ * @param {string} eventType
49
+ * @param {object} [settings]
50
+ * @param {object} [params]
51
+ * @returns {object}
52
+ */
53
+ export function _createEvent(event: any, eventType: string, settings?: any, params?: any): any;
54
+ /**
55
+ * This will create a custom event. This supports html, mouse,
56
+ * and customevents.
57
+ *
58
+ * @param {string} event
59
+ * @param {object} obj
60
+ * @param {object} [options]
61
+ * @param {object} [params]
62
+ * @returns {object}
63
+ */
64
+ export function createEvent(event: string, obj: any, options?: any, params?: any): any;
65
+ /**
66
+ * This will get thetype of an event.
67
+ *
68
+ * @protected
69
+ * @param {string} event
70
+ * @returns {string}
71
+ */
72
+ export function _getEventType(event: string): string;
73
+ /**
74
+ * This will trigger an event.
75
+ *
76
+ * @param {string|object} event
77
+ * @param {object} obj
78
+ * @param {object} [params]
79
+ * @returns {object}
80
+ */
81
+ export function trigger(event: any, obj: any, params?: any): any;
82
+ export let mouseWheelEventType: any;
83
+ /**
84
+ * This will get the system mouse event.
85
+ *
86
+ * @protected
87
+ * @returns {string}
88
+ */
89
+ export function getWheelEventType(): string;
90
+ /**
91
+ * This will add a mouse event to an object.
92
+ *
93
+ * @param {function} callBackFn
94
+ * @param {object} [obj]
95
+ * @param {boolean} [cancelDefault]
96
+ * @param {boolean} [capture]
97
+ * @returns {object} base object.
98
+ */
99
+ export function onMouseWheel(callBackFn: Function, obj?: any, cancelDefault?: boolean, capture?: boolean): any;
100
+ /**
101
+ * This will remove a mouse event
102
+ *
103
+ * @param {function} callBackFn
104
+ * @param {object} [obj]
105
+ * @param {boolean} [capture]
106
+ * @returns {object} base object.
107
+ */
108
+ export function offMouseWheel(callBackFn: Function, obj?: any, capture?: boolean): any;
109
+ /**
110
+ * This will prevent default on an event.
111
+ *
112
+ * @param {object} e
113
+ * @returns {object} base object.
114
+ */
115
+ export function preventDefault(e: any): any;
116
+ /**
117
+ * This will stop an event from propigating.
118
+ *
119
+ * @param {object} e
120
+ * @returns {object} base object.
121
+ */
122
+ export function stopPropagation(e: any): any;
123
+ }
124
+ import { Events } from './events.js';
@@ -0,0 +1,208 @@
1
+ export namespace Events {
2
+ /**
3
+ * This will get the events on an element.
4
+ *
5
+ * @param {object} obj
6
+ * @returns {array}
7
+ */
8
+ function getEvents(obj: any): any[];
9
+ /**
10
+ * This will create an object to use with the dataTracker.
11
+ *
12
+ * @param {string} event The event name.
13
+ * @param {object} obj
14
+ * @param {function} fn
15
+ * @param {boolean} [capture]
16
+ * @param {boolean} [swapped]
17
+ * @param {function} [originalFn]
18
+ * @returns {object}
19
+ */
20
+ function create(event: string, obj: any, fn: Function, capture?: boolean, swapped?: boolean, originalFn?: Function): any;
21
+ /**
22
+ * This will add an event to an object.
23
+ *
24
+ * @param {string|array} event The event name.
25
+ * @param {object} obj
26
+ * @param {function} fn
27
+ * @param {boolean} [capture]
28
+ * @returns {object} The events object.
29
+ */
30
+ function on(event: string | any[], obj: any, fn: Function, capture?: boolean): any;
31
+ /**
32
+ * This will remove an event from an object.
33
+ *
34
+ * @param {string|array} event The event name.
35
+ * @param {object} obj
36
+ * @param {function} fn
37
+ * @param {boolean} [capture]
38
+ * @returns {object} The events object.
39
+ */
40
+ function off(event: string | any[], obj: any, fn: Function, capture?: boolean): any;
41
+ /**
42
+ * This will add an event to an object.
43
+ *
44
+ * @param {string} event The event name.
45
+ * @param {object} obj
46
+ * @param {function} fn
47
+ * @param {object|boolean} [capture]
48
+ * @param {boolean} [swapped]
49
+ * @param {function} [originalFn]
50
+ */
51
+ function add(event: string, obj: any, fn: Function, capture?: any, swapped?: boolean, originalFn?: Function): {
52
+ /**
53
+ * This will get the events on an element.
54
+ *
55
+ * @param {object} obj
56
+ * @returns {array}
57
+ */
58
+ getEvents(obj: any): any[];
59
+ /**
60
+ * This will create an object to use with the dataTracker.
61
+ *
62
+ * @param {string} event The event name.
63
+ * @param {object} obj
64
+ * @param {function} fn
65
+ * @param {boolean} [capture]
66
+ * @param {boolean} [swapped]
67
+ * @param {function} [originalFn]
68
+ * @returns {object}
69
+ */
70
+ create(event: string, obj: any, fn: Function, capture?: boolean, swapped?: boolean, originalFn?: Function): any;
71
+ /**
72
+ * This will add an event to an object.
73
+ *
74
+ * @param {string|array} event The event name.
75
+ * @param {object} obj
76
+ * @param {function} fn
77
+ * @param {boolean} [capture]
78
+ * @returns {object} The events object.
79
+ */
80
+ on(event: string | any[], obj: any, fn: Function, capture?: boolean): any;
81
+ /**
82
+ * This will remove an event from an object.
83
+ *
84
+ * @param {string|array} event The event name.
85
+ * @param {object} obj
86
+ * @param {function} fn
87
+ * @param {boolean} [capture]
88
+ * @returns {object} The events object.
89
+ */
90
+ off(event: string | any[], obj: any, fn: Function, capture?: boolean): any;
91
+ add(event: string, obj: any, fn: Function, capture?: any, swapped?: boolean, originalFn?: Function): any;
92
+ /**
93
+ * This will remove an event from an object.
94
+ *
95
+ * @param {string} event The event name.
96
+ * @param {object} obj
97
+ * @param {function} fn
98
+ * @param {object|boolean} [capture]
99
+ * @returns {object} a reference to the event object.
100
+ */
101
+ remove(event: string, obj: any, fn: Function, capture?: any): any;
102
+ /**
103
+ * This will remove an event listener.
104
+ * @param {object} listener
105
+ * @returns {object} a reference to the event object.
106
+ */
107
+ removeEvent(listener: any): any;
108
+ /**
109
+ * This will search for an event.
110
+ *
111
+ * @protected
112
+ * @param {string} event The event name.
113
+ * @param {object} obj
114
+ * @param {function} fn
115
+ * @param {boolean} [capture]
116
+ * @returns {object|boolean}
117
+ */
118
+ getEvent(event: string, obj: any, fn: Function, capture?: boolean): any;
119
+ /**
120
+ * This will search for an event from the object events.
121
+ *
122
+ * @param {object} eventObj
123
+ * @param {array} events
124
+ * @returns {object|boolean}
125
+ */
126
+ search(eventObj: any, events: any[]): any;
127
+ /**
128
+ * This will remove all events on an object.
129
+ *
130
+ * @param {object} obj
131
+ * @returns {object} a reference to the events object.
132
+ */
133
+ removeEvents(obj: any): any;
134
+ /**
135
+ * @member {array} swap The swappable events.
136
+ */
137
+ swap: string[];
138
+ /**
139
+ * This will a event type to the swappable array.
140
+ *
141
+ * @param {string} type
142
+ */
143
+ addSwapped(type: string): void;
144
+ /**
145
+ * This will check if an event is swappable.
146
+ *
147
+ * @param {string} event
148
+ * @returns {boolean}
149
+ */
150
+ isSwappable(event: string): boolean;
151
+ };
152
+ /**
153
+ * This will remove an event from an object.
154
+ *
155
+ * @param {string} event The event name.
156
+ * @param {object} obj
157
+ * @param {function} fn
158
+ * @param {object|boolean} [capture]
159
+ * @returns {object} a reference to the event object.
160
+ */
161
+ function remove(event: string, obj: any, fn: Function, capture?: any): any;
162
+ /**
163
+ * This will remove an event listener.
164
+ * @param {object} listener
165
+ * @returns {object} a reference to the event object.
166
+ */
167
+ function removeEvent(listener: any): any;
168
+ /**
169
+ * This will search for an event.
170
+ *
171
+ * @protected
172
+ * @param {string} event The event name.
173
+ * @param {object} obj
174
+ * @param {function} fn
175
+ * @param {boolean} [capture]
176
+ * @returns {object|boolean}
177
+ */
178
+ function getEvent(event: string, obj: any, fn: Function, capture?: boolean): any;
179
+ /**
180
+ * This will search for an event from the object events.
181
+ *
182
+ * @param {object} eventObj
183
+ * @param {array} events
184
+ * @returns {object|boolean}
185
+ */
186
+ function search(eventObj: any, events: any[]): any;
187
+ /**
188
+ * This will remove all events on an object.
189
+ *
190
+ * @param {object} obj
191
+ * @returns {object} a reference to the events object.
192
+ */
193
+ function removeEvents(obj: any): any;
194
+ let swap: string[];
195
+ /**
196
+ * This will a event type to the swappable array.
197
+ *
198
+ * @param {string} type
199
+ */
200
+ function addSwapped(type: string): void;
201
+ /**
202
+ * This will check if an event is swappable.
203
+ *
204
+ * @param {string} event
205
+ * @returns {boolean}
206
+ */
207
+ function isSwappable(event: string): boolean;
208
+ }