@base-framework/base 3.0.79 → 3.0.81

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,136 @@
1
+ export function normalizeAttr(prop: string): string;
2
+ export function removeEventPrefix(prop: string): string;
3
+ /**
4
+ * Html
5
+ *
6
+ * This will create html elements.
7
+ *
8
+ * @class
9
+ */
10
+ export class Html {
11
+ /**
12
+ * This will create a new element.
13
+ *
14
+ * @param {string} node The node name.
15
+ * @param {object} attrs The node attributes.
16
+ * @param {object} container The node container.
17
+ * @param {boolean} [prepend=false] Add to the begining of the container.
18
+ * @returns {object} The new element.
19
+ */
20
+ static create(node: string, attrs: object, container: object, prepend?: boolean): object;
21
+ /**
22
+ * This will add the element attributes.
23
+ *
24
+ * @param {object} obj
25
+ * @param {object} attrs
26
+ * @returns {void}
27
+ */
28
+ static addAttributes(obj: object, attrs: object): void;
29
+ /**
30
+ * This will add html to an element.
31
+ *
32
+ * @param {object} obj
33
+ * @param {string} content
34
+ * @returns {object}
35
+ */
36
+ static addHtml(obj: object, content: string): object;
37
+ /**
38
+ * This will add an element attribute.
39
+ *
40
+ * @param {object} obj
41
+ * @param {object} attr
42
+ * @param {*} value
43
+ * @returns {void}
44
+ */
45
+ static addAttr(obj: object, attr: object, value: any): void;
46
+ /**
47
+ * This will create a doc fragment.
48
+ *
49
+ * @returns {object}
50
+ */
51
+ static createDocFragment(): object;
52
+ /**
53
+ * This will create a text node.
54
+ *
55
+ * @param {string} text
56
+ * @param {object} container
57
+ * @returns {object}
58
+ */
59
+ static createText(text: string, container: object): object;
60
+ /**
61
+ * This will create a text node.
62
+ *
63
+ * @param {string} text
64
+ * @param {object} container
65
+ * @returns {object}
66
+ */
67
+ static createComment(text: string, container: object): object;
68
+ /**
69
+ * This will create the options on a select.
70
+ *
71
+ * @param {object} selectElem
72
+ * @param {array} optionArray
73
+ * @param {string} [defaultValue]
74
+ */
75
+ static setupSelectOptions(selectElem: object, optionArray: any[], defaultValue?: string): boolean;
76
+ /**
77
+ * This will remove an elements data.
78
+ *
79
+ * @param {object} ele
80
+ */
81
+ static removeElementData(ele: object): void;
82
+ /**
83
+ * This will remove an element and its data.
84
+ *
85
+ * @param {object} obj
86
+ * @returns {object} this
87
+ */
88
+ static removeElement(obj: object): object;
89
+ /**
90
+ * This will remove an element.
91
+ *
92
+ * @param {object} child
93
+ * @returns {object} this
94
+ */
95
+ static removeChild(child: object): object;
96
+ /**
97
+ * This will remove all elements from the container.
98
+ *
99
+ * @param {object} container
100
+ * @returns {object} this
101
+ */
102
+ static removeAll(container: object): object;
103
+ /**
104
+ * This change the parent of an element.
105
+ *
106
+ * @param {object} child
107
+ * @param {object} newParent
108
+ * @returns {object} this
109
+ */
110
+ static changeParent(child: object, newParent: object): object;
111
+ /**
112
+ * This will append a child element.
113
+ *
114
+ * @param {object} parent
115
+ * @param {object} child
116
+ * @returns {object} this
117
+ */
118
+ static append(parent: object, child: object): object;
119
+ /**
120
+ * This will prepend a child element.
121
+ *
122
+ * @param {object} parent
123
+ * @param {object} child
124
+ * @param {object} [optionalNode]
125
+ * @returns {object}
126
+ */
127
+ static prepend(parent: object, child: object, optionalNode?: object): object;
128
+ /**
129
+ * This will clone an element.
130
+ *
131
+ * @param {object} node
132
+ * @param {boolean} deepCopy
133
+ * @returns {object}
134
+ */
135
+ static clone(node: object, deepCopy?: boolean): object;
136
+ }
@@ -0,0 +1 @@
1
+ export function Import(props: object): object;
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Builder
3
+ *
4
+ * This will build JSON layouts.
5
+ *
6
+ * @class
7
+ */
8
+ export class Builder {
9
+ /**
10
+ * This will render a function/Unit/Component.
11
+ *
12
+ * @param {object|function} layout
13
+ * @param {object} container
14
+ * @param {object} [parent]
15
+ * @returns {object|null} The layout Unit, Component, or null.
16
+ */
17
+ static render(layout: object | Function, container: object, parent?: object): object | null;
18
+ /**
19
+ * This will build a JSON layout.
20
+ *
21
+ * @param {object} obj The JSON layout.
22
+ * @param {object} [container] The parent receiving the layout.
23
+ * @param {object} [parent] The component adding the layout.
24
+ * @returns {object} The doc Frag element.
25
+ */
26
+ static build(obj: object, container?: object, parent?: object): object;
27
+ /**
28
+ * This will rebuild a layout.
29
+ *
30
+ * @param {object} layout
31
+ * @param {object} ele
32
+ * @param {object} parent
33
+ * @returns {object}
34
+ */
35
+ static rebuild(layout: object, ele: object, parent: object): object;
36
+ /**
37
+ * This will build an element or component.
38
+ *
39
+ * @protected
40
+ * @param {object} obj
41
+ * @param {object} container
42
+ * @param {object} [parent] The component adding the layout.
43
+ * @returns {void}
44
+ */
45
+ protected static buildElement(obj: object, container: object, parent?: object): void;
46
+ /**
47
+ * This will create an element.
48
+ *
49
+ * @protected
50
+ * @param {object} obj
51
+ * @param {object} container
52
+ * @param {object} [parent] The component adding the layout.
53
+ * @returns {void}
54
+ */
55
+ protected static createElement(obj: object, container: object, parent?: object): void;
56
+ /**
57
+ * This will add the element directives.
58
+ *
59
+ * @param {object} ele
60
+ * @param {array} directives
61
+ * @param {object} parent
62
+ * @returns {void}
63
+ */
64
+ static setDirectives(ele: object, directives: any[], parent: object): void;
65
+ /**
66
+ * This will handle an attr directive.
67
+ *
68
+ * @protected
69
+ * @param {object} ele
70
+ * @param {object} attrDirective
71
+ * @param {object} parent
72
+ * @returns {void}
73
+ */
74
+ protected static handleDirective(ele: object, attrDirective: object, parent: object): void;
75
+ /**
76
+ * This will cache an element ot the parent.
77
+ *
78
+ * @param {object} ele
79
+ * @param {object} propName
80
+ * @param {object} parent
81
+ */
82
+ static cache(ele: object, propName: object, parent: object): void;
83
+ /**
84
+ * This will create a component.
85
+ *
86
+ * @protected
87
+ * @param {object} obj
88
+ * @param {object} container
89
+ * @param {object} parent
90
+ * @returns {void}
91
+ */
92
+ protected static createComponent(obj: object, container: object, parent: object): void;
93
+ /**
94
+ * This will create a node.
95
+ *
96
+ * @param {object} settings
97
+ * @param {object} container
98
+ * @param {object} parent
99
+ * @returns {object}
100
+ */
101
+ static createNode(settings: object, container: object, parent: object): object;
102
+ }
@@ -0,0 +1,2 @@
1
+ export function addRole(ele: object, role: string, parent: object): void;
2
+ export function addAria(ele: object, attributes: object, parent: object): void;
@@ -0,0 +1,3 @@
1
+ export function context(ele: object, context: Function, parent?: object): void;
2
+ export function useContext(ele: object, callBack: Function, parent?: object): void;
3
+ export function addContext(ele: object, callBack: any[] | Function, parent?: object): void;
@@ -0,0 +1 @@
1
+ export function onUpdate(ele: object, data: object, settings: (Function | object), parent: string): void;
@@ -0,0 +1,5 @@
1
+ export function cache(ele: object, propName: string, parent: object): void;
2
+ export function useParent(ele: object, callBack: Function, parent: object): void;
3
+ export function useData(ele: object, callBack: Function, parent: object): void;
4
+ export function useState(ele: object, callBack: Function, parent: object): void;
5
+ export function addState(ele: object, callBack: Function, parent: object): void;
@@ -0,0 +1 @@
1
+ export function bind(ele: object, bind: (string | any[]), parent: any): void;
@@ -0,0 +1 @@
1
+ export function forEach(ele: object, settings: any[], parent: object): void;
@@ -0,0 +1 @@
1
+ export function getParentData(parent: object): object | null;
@@ -0,0 +1 @@
1
+ export function map(ele: object, settings: any[], parent: object): void;
@@ -0,0 +1 @@
1
+ export function onCreated(ele: object, callBack: Function, parent: object): void;
@@ -0,0 +1 @@
1
+ export function onDestroyed(ele: object, callBack: (object | any[]), parent?: object): void;
@@ -0,0 +1 @@
1
+ export function onSet(ele: object, onSet: any[], parent: object): void;
@@ -0,0 +1 @@
1
+ export function onState(ele: object, onState: any[], parent: object): void;
@@ -0,0 +1 @@
1
+ export function watch(ele: object, watcher: (any[] | object), parent?: object): void;
@@ -0,0 +1 @@
1
+ export function addRoute(ele: object, route: (object | any[]), parent: object): void;
@@ -0,0 +1 @@
1
+ export function addSwitch(ele: object, group: any[], parent: object): void;
@@ -0,0 +1 @@
1
+ export function Directive(name: string, callBack: Function): object;
@@ -0,0 +1,25 @@
1
+ export namespace Directives {
2
+ let keys: any[];
3
+ let items: {};
4
+ /**
5
+ * This will add a directive.
6
+ *
7
+ * @param {string} name
8
+ * @param {function} callBack
9
+ * @returns {object}
10
+ */
11
+ function add(name: string, callBack: Function): any;
12
+ /**
13
+ * This will get a directive.
14
+ *
15
+ * @param {string} name
16
+ * @returns {object|null}
17
+ */
18
+ function get(name: string): any;
19
+ /**
20
+ * This will get all directive names.
21
+ *
22
+ * @returns {array}
23
+ */
24
+ function all(): any[];
25
+ }
@@ -0,0 +1 @@
1
+ export function AttributeDirective(attr: string, directive: object): object;
@@ -0,0 +1 @@
1
+ export function Attribute(key: string, value: any): object;
@@ -0,0 +1 @@
1
+ export function Element(tag: string, attr: any[], directives: any[], children: any[]): object;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Parser
3
+ *
4
+ * This will parse JSON layouts.
5
+ *
6
+ * @class
7
+ */
8
+ export class Parser {
9
+ /**
10
+ * This will get the tag name of an element.
11
+ *
12
+ * @static
13
+ * @private
14
+ * @param {object} obj
15
+ * @returns {string}
16
+ */
17
+ private static getTag;
18
+ /**
19
+ * This will setup the element children.
20
+ *
21
+ * @static
22
+ * @param {object} obj
23
+ * @returns {void}
24
+ */
25
+ static setupChildren(obj: object): void;
26
+ /**
27
+ * This will setup the element content.
28
+ *
29
+ * @param {string} key
30
+ * @param {*} value
31
+ * @param {array} attr
32
+ * @param {array} children
33
+ * @returns {boolean}
34
+ */
35
+ static setElementContent(key: string, value: any, attr: any[], children: any[]): boolean;
36
+ /**
37
+ * This will set the text as a watcher.
38
+ *
39
+ * @private
40
+ * @static
41
+ * @param {array} directives
42
+ * @param {string} key
43
+ * @param {string} value
44
+ * @returns {void}
45
+ */
46
+ private static setTextAsWatcher;
47
+ /**
48
+ * This will set the button type.
49
+ *
50
+ * @static
51
+ * @param {string} tag
52
+ * @param {object} obj
53
+ * @param {array} attr
54
+ */
55
+ static setButtonType(tag: string, obj: object, attr: any[]): void;
56
+ /**
57
+ * This will parse a layout element.
58
+ *
59
+ * @static
60
+ * @param {object} obj
61
+ * @param {object} parent
62
+ * @returns {object}
63
+ */
64
+ static parse(obj: object, parent: object): object;
65
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * HtmlHelper
3
+ *
4
+ * This will build JSON layouts.
5
+ *
6
+ * @class
7
+ * @extends Html
8
+ */
9
+ export class HtmlHelper extends Html {
10
+ /**
11
+ * This will create a new element.
12
+ *
13
+ * @override
14
+ * @param {string} nodeName The node name.
15
+ * @param {array} attrs The node attributes.
16
+ * @param {object} container The node container.
17
+ * @param {object} parent
18
+ * @returns {object} The new element.
19
+ */
20
+ static override create(nodeName: string, attrs: any[], container: object, parent: object): object;
21
+ /**
22
+ * This will add the element attributes.
23
+ *
24
+ * @overload
25
+ * @param {object} ele
26
+ * @param {array} attrs
27
+ * @param {object} parent
28
+ * @returns {void}
29
+ */
30
+ static addAttributes(ele: object, attrs: any[], parent: object): void;
31
+ /**
32
+ * This will add an element attribute.
33
+ *
34
+ * @param {object} ele
35
+ * @param {object} attr
36
+ * @param {*} value
37
+ * @returns {void}
38
+ */
39
+ static addAttr(ele: object, attr: object, value: any, parent: any): void;
40
+ /**
41
+ * This will add content to an element.
42
+ *
43
+ * @param {object} ele
44
+ * @param {object|null} content
45
+ */
46
+ static addContent(ele: object, content: object | null): void;
47
+ /**
48
+ * This will append a child element to a parent.
49
+ *
50
+ * @override
51
+ * @param {object} parent
52
+ * @param {object} child
53
+ * @returns {void}
54
+ */
55
+ static override append(parent: object, child: object): void;
56
+ }
57
+ import { Html } from '../html/html.js';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * BrowserRender
3
+ *
4
+ * This will redner the layout in the browser.
5
+ *
6
+ * @class
7
+ */
8
+ export class BrowserRender extends Render {
9
+ }
10
+ import { Render } from './render.js';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * RenderController
3
+ *
4
+ * This will set up the render engine.
5
+ *
6
+ * @class
7
+ */
8
+ export class RenderController {
9
+ /**
10
+ * This will check if we are in the browser.
11
+ *
12
+ * @returns boolean
13
+ */
14
+ static browserIsSupported(): Window & typeof globalThis;
15
+ /**
16
+ * This will create a History Object based on navigation support
17
+ *
18
+ * @returns Render
19
+ */
20
+ static setup(): BrowserRender | ServerRender;
21
+ }
22
+ import { BrowserRender } from './browser-render.js';
23
+ import { ServerRender } from './server-render.js';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Render
3
+ *
4
+ * This will be thase class for a render.
5
+ *
6
+ * @class
7
+ */
8
+ export class Render {
9
+ /**
10
+ * This will create a node.
11
+ *
12
+ * @param {object} settings
13
+ * @param {object} container
14
+ * @param {object} parent
15
+ * @returns {object}
16
+ */
17
+ createNode(settings: object, container: object, parent: object): object;
18
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * ServerRender
3
+ *
4
+ * This will render the layout on the server.
5
+ *
6
+ * @class
7
+ */
8
+ export class ServerRender extends Render {
9
+ }
10
+ import { Render } from './render.js';
@@ -0,0 +1,103 @@
1
+ export namespace WatcherHelper {
2
+ /**
3
+ * This will check if the value is a watcher.
4
+ *
5
+ * @param {*} value
6
+ * @returns {boolean}
7
+ * @static
8
+ * @private
9
+ */
10
+ function isWatching(value: any): boolean;
11
+ /**
12
+ * This will check if a string has params.
13
+ *
14
+ * @param {string} string
15
+ * @returns {boolean}
16
+ */
17
+ function hasParams(string: string): boolean;
18
+ /**
19
+ * This will get the property names to be watched.
20
+ *
21
+ * @protected
22
+ * @param {string} string
23
+ * @returns {(array|null)}
24
+ */
25
+ function _getWatcherProps(string: string): any[];
26
+ /**
27
+ * This will update an element attribute.
28
+ *
29
+ * @protected
30
+ * @param {object} ele
31
+ * @param {string} attr
32
+ * @param {string} value
33
+ */
34
+ function updateAttr(ele: any, attr: string, value: string): void;
35
+ /**
36
+ * This will get a watcher callBack.
37
+ *
38
+ * @protected
39
+ * @param {object} ele
40
+ * @param {(string|array)} data
41
+ * @param {string} string
42
+ * @param {string} attr
43
+ * @param {boolean} isArray
44
+ * @returns {function}
45
+ */
46
+ function _getWatcherCallBack(ele: any, data: string | any[], string: string, attr: string, isArray: boolean): Function;
47
+ /**
48
+ * This will get a watcher value.
49
+ *
50
+ * @private
51
+ * @param {(string|object)} settings
52
+ * @param {object} parent
53
+ * @returns {array}
54
+ */
55
+ function getValue(settings: any, parent: any): any[];
56
+ /**
57
+ * This will get the prop values.
58
+ *
59
+ * @param {object} data
60
+ * @param {array} props
61
+ * @param {boolean} isArray
62
+ * @returns {array}
63
+ */
64
+ function getPropValues(data: any, props: any[], isArray: boolean): any[];
65
+ /**
66
+ * This will get the watcher callBack.
67
+ *
68
+ * @param {object} settings
69
+ * @param {object} ele
70
+ * @param {object} data
71
+ * @param {string} string
72
+ * @param {boolean} isDataArray
73
+ * @returns {function}
74
+ */
75
+ function getCallBack(settings: any, ele: any, data: any, string: string, isDataArray: boolean): Function;
76
+ /**
77
+ * This will add a data watcher.
78
+ *
79
+ * @private
80
+ * @param {object} ele
81
+ * @param {(string|object)} settings
82
+ * @param {object} parent
83
+ */
84
+ function addDataWatcher(ele: any, settings: any, parent: any): void;
85
+ /**
86
+ * This will setup a data watcher.
87
+ *
88
+ * @param {object} ele
89
+ * @param {(string|object)} settings
90
+ * @param {object} parent
91
+ */
92
+ function setup(ele: any, settings: any, parent: any): void;
93
+ /**
94
+ * This will add a watcher.
95
+ *
96
+ * @private
97
+ * @param {object} ele
98
+ * @param {object} data
99
+ * @param {string} prop
100
+ * @param {function} callBack
101
+ */
102
+ function addWatcher(ele: any, data: any, prop: string, callBack: Function): void;
103
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Mouse
3
+ *
4
+ * This will create a mouse event object.
5
+ * @class
6
+ */
7
+ export class Mouse {
8
+ /**
9
+ * @contrustor
10
+ * @param {string} [mode]
11
+ * @param {function} [callBackFn]
12
+ * @param {object} [obj]
13
+ * @param {boolean} [capture]
14
+ */
15
+ constructor(mode?: string, callBackFn?: Function, obj?: object, capture?: boolean);
16
+ position: {
17
+ x: any;
18
+ y: any;
19
+ };
20
+ callBackFn: Function;
21
+ obj: any;
22
+ capture: boolean;
23
+ mode: string;
24
+ /**
25
+ * This will update the mode.
26
+ *
27
+ * @param {string} mode
28
+ */
29
+ updateMode(mode: string): void;
30
+ /**
31
+ * This will update the position.
32
+ *
33
+ * @param {object} e
34
+ * @returns {object}
35
+ */
36
+ updatePosition(e: object): object;
37
+ /**
38
+ * This will start tracking.
39
+ */
40
+ start(): void;
41
+ /**
42
+ * This will stop tracking.
43
+ */
44
+ stop(): void;
45
+ }