@base-framework/base 3.0.275 → 3.0.276

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.
@@ -42,9 +42,10 @@ export class Component extends Unit {
42
42
  /**
43
43
  * This will setup the component data.
44
44
  *
45
+ * @protected
45
46
  * @returns {void}
46
47
  */
47
- _setupData(): void;
48
+ protected _setupData(): void;
48
49
  /**
49
50
  * This will initialize the component.
50
51
  *
@@ -8,36 +8,36 @@
8
8
  */
9
9
  export class EventHelper {
10
10
  /**
11
- * @member {array} events
11
+ * @member {Array<object>} events
12
12
  */
13
13
  events: any[];
14
14
  /**
15
15
  * This will add an array of events.
16
16
  *
17
- * @param {array} events
17
+ * @param {Array<Array>} events
18
18
  * @returns {void}
19
19
  */
20
- addEvents(events: any[]): void;
20
+ addEvents(events: Array<any[]>): void;
21
21
  /**
22
22
  * This will add an event.
23
23
  *
24
- * @param {string|array} event
24
+ * @param {string|Array<string>} event
25
25
  * @param {object} obj
26
26
  * @param {function} callBack
27
27
  * @param {boolean} capture
28
28
  * @returns {void}
29
29
  */
30
- on(event: string | any[], obj: object, callBack: Function, capture: boolean): void;
30
+ on(event: string | Array<string>, obj: object, callBack: Function, capture: boolean): void;
31
31
  /**
32
32
  * This will remove an event.
33
33
  *
34
- * @param {string|array} event
34
+ * @param {string|Array<string>} event
35
35
  * @param {object} obj
36
36
  * @param {function} callBack
37
37
  * @param {boolean} capture
38
38
  * @returns {void}
39
39
  */
40
- off(event: string | any[], obj: object, callBack: Function, capture: boolean): void;
40
+ off(event: string | Array<string>, obj: object, callBack: Function, capture: boolean): void;
41
41
  /**
42
42
  * This will set all events.
43
43
  *
@@ -1 +1,2 @@
1
- export function Pod(callBack: Function, extend?: object): object;
1
+ export function Pod(callBack: Function, extend?: object): typeof Component;
2
+ import { Component } from './component.js';
@@ -32,17 +32,13 @@ export class Unit {
32
32
  */
33
33
  isUnit: boolean;
34
34
  /**
35
- * @member {Data} data
35
+ * @member {Data|null} data
36
36
  */
37
37
  data: any;
38
38
  /**
39
39
  * @member {boolean|null} persist
40
40
  */
41
41
  persist: any;
42
- /**
43
- * @member {?array} children
44
- */
45
- children: any;
46
42
  /**
47
43
  * @member {?array} nest
48
44
  */
@@ -59,7 +55,17 @@ export class Unit {
59
55
  * @member {?Unit} parent
60
56
  */
61
57
  parent: any;
58
+ /**
59
+ * @member {array} children
60
+ */
61
+ children: any;
62
+ /**
63
+ * @member {boolean} rendered
64
+ */
62
65
  rendered: boolean;
66
+ /**
67
+ * @member {?object} container
68
+ */
63
69
  container: any;
64
70
  /**
65
71
  * This will setup the component number and unique
@@ -79,10 +85,11 @@ export class Unit {
79
85
  /**
80
86
  * This will setup the component props.
81
87
  *
88
+ * @protected
82
89
  * @param {object} [props]
83
90
  * @returns {void}
84
91
  */
85
- setupProps(props?: object): void;
92
+ protected setupProps(props?: object): void;
86
93
  /**
87
94
  * This will get the child scope instance of the component.
88
95
  *
@@ -92,22 +99,25 @@ export class Unit {
92
99
  /**
93
100
  * This will get the parent context.
94
101
  *
102
+ * @protected
95
103
  * @returns {object|null}
96
104
  */
97
- getParentContext(): object | null;
105
+ protected getParentContext(): object | null;
98
106
  /**
99
107
  * This will set up the context.
100
108
  *
109
+ * @protected
101
110
  * @returns {void}
102
111
  */
103
- setupContext(): void;
112
+ protected setupContext(): void;
104
113
  context: any;
105
114
  /**
106
115
  * This will set up the adding context.
107
116
  *
117
+ * @protected
108
118
  * @returns {void}
109
119
  */
110
- setupAddingContext(): void;
120
+ protected setupAddingContext(): void;
111
121
  addingContext: boolean;
112
122
  contextBranchName: any;
113
123
  /**
@@ -169,10 +179,12 @@ export class Unit {
169
179
  render(): object;
170
180
  /**
171
181
  * This will cache the layout panel and set the main id.
182
+ *
183
+ * @protected
172
184
  * @param {object} layout
173
185
  * @returns {object}
174
186
  */
175
- _cacheRoot(layout: object): object;
187
+ protected _cacheRoot(layout: object): object;
176
188
  /**
177
189
  * This will create the component layout.
178
190
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.0.275",
3
+ "version": "3.0.276",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",