@base-framework/base 3.0.184 → 3.0.186

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.
@@ -1,103 +1,9 @@
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
- }
1
+ /**
2
+ * WatcherHelper
3
+ *
4
+ * This helper creates watcher callBacks, parses watcher strings
5
+ * and sets up watchers.
6
+ *
7
+ * @type {object} WatcherHelper
8
+ */
9
+ export const WatcherHelper: object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.0.184",
3
+ "version": "3.0.186",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",