@base-framework/base 3.0.274 → 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.
- package/dist/base.js +1 -1
- package/dist/base.js.map +2 -2
- package/dist/types/modules/component/component.d.ts +2 -1
- package/dist/types/modules/component/event-helper.d.ts +7 -7
- package/dist/types/modules/component/pod.d.ts +2 -1
- package/dist/types/modules/component/unit.d.ts +23 -10
- package/package.json +1 -1
|
@@ -8,36 +8,36 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export class EventHelper {
|
|
10
10
|
/**
|
|
11
|
-
* @member {
|
|
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 {
|
|
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|
|
|
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 |
|
|
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|
|
|
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 |
|
|
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):
|
|
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
|
*
|
|
@@ -180,6 +192,7 @@ export class Unit {
|
|
|
180
192
|
* @returns {object}
|
|
181
193
|
*/
|
|
182
194
|
protected _createLayout(): object;
|
|
195
|
+
_layout: any;
|
|
183
196
|
/**
|
|
184
197
|
* This will prepare the layout.
|
|
185
198
|
*
|