@base-framework/base 3.0.347 → 3.0.349
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.
|
@@ -49,12 +49,10 @@ export class Component extends Unit {
|
|
|
49
49
|
/**
|
|
50
50
|
* This will resume the component scope when persisting.
|
|
51
51
|
*
|
|
52
|
-
* @param {object}
|
|
53
|
-
* @param {object} state
|
|
54
|
-
* @param {object} previousLayout
|
|
52
|
+
* @param {object} persistedLayout
|
|
55
53
|
* @returns {void}
|
|
56
54
|
*/
|
|
57
|
-
resumeScope(
|
|
55
|
+
resumeScope(persistedLayout: object): void;
|
|
58
56
|
/**
|
|
59
57
|
* This will initialize the component.
|
|
60
58
|
*
|
|
@@ -20,34 +20,6 @@
|
|
|
20
20
|
* }
|
|
21
21
|
*/
|
|
22
22
|
export class Unit {
|
|
23
|
-
/**
|
|
24
|
-
* This will check if the layout is a component layout.
|
|
25
|
-
*
|
|
26
|
-
* @protected
|
|
27
|
-
* @static
|
|
28
|
-
* @param {*} layout
|
|
29
|
-
* @returns {boolean}
|
|
30
|
-
*/
|
|
31
|
-
protected static _isComponentLayout(layout: any): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* This will resume the scope of the component layout.
|
|
34
|
-
*
|
|
35
|
-
* @static
|
|
36
|
-
* @param {object} oldLayout
|
|
37
|
-
* @param {object} newLayout
|
|
38
|
-
* @returns {void}
|
|
39
|
-
*/
|
|
40
|
-
static applyChildrenScope(oldLayout: object, newLayout: object): void;
|
|
41
|
-
/**
|
|
42
|
-
* This will apply the scope to the children of the layout.
|
|
43
|
-
*
|
|
44
|
-
* @protected
|
|
45
|
-
* @static
|
|
46
|
-
* @param {object} oldLayout
|
|
47
|
-
* @param {object} newLayout
|
|
48
|
-
* @returns {void}
|
|
49
|
-
*/
|
|
50
|
-
protected static _applyScopeToChildren(oldLayout: object, newLayout: object): void;
|
|
51
23
|
/**
|
|
52
24
|
* This will create a unit.
|
|
53
25
|
*
|
|
@@ -87,6 +59,8 @@ export class Unit {
|
|
|
87
59
|
* @member {array} children
|
|
88
60
|
*/
|
|
89
61
|
children: any;
|
|
62
|
+
persistedChildren: {};
|
|
63
|
+
persistedCount: number;
|
|
90
64
|
/**
|
|
91
65
|
* @member {boolean} rendered
|
|
92
66
|
*/
|
|
@@ -110,6 +84,20 @@ export class Unit {
|
|
|
110
84
|
* @returns {void}
|
|
111
85
|
*/
|
|
112
86
|
declareProps(): void;
|
|
87
|
+
/**
|
|
88
|
+
* This will add a persisted child.
|
|
89
|
+
*
|
|
90
|
+
* @param {object} child
|
|
91
|
+
* @returns {string}
|
|
92
|
+
*/
|
|
93
|
+
addPersistedChild(child: object): string;
|
|
94
|
+
/**
|
|
95
|
+
* This will remove a persisted child by its token.
|
|
96
|
+
*
|
|
97
|
+
* @param {string} token
|
|
98
|
+
* @returns {void}
|
|
99
|
+
*/
|
|
100
|
+
removePersistedChild(token: string): void;
|
|
113
101
|
/**
|
|
114
102
|
* This will setup the component props.
|
|
115
103
|
*
|
|
@@ -220,7 +208,6 @@ export class Unit {
|
|
|
220
208
|
* @returns {object}
|
|
221
209
|
*/
|
|
222
210
|
protected _createLayout(): object;
|
|
223
|
-
_layout: any;
|
|
224
211
|
/**
|
|
225
212
|
* This will prepare the layout.
|
|
226
213
|
*
|