@base-framework/base 3.0.346 → 3.0.348
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
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function Pod(callBack: Function, extend?:
|
|
1
|
+
export function Pod(callBack: Function, extend?: typeof Component): typeof Component;
|
|
2
2
|
import { Component } from './component.js';
|
|
@@ -59,6 +59,8 @@ export class Unit {
|
|
|
59
59
|
* @member {array} children
|
|
60
60
|
*/
|
|
61
61
|
children: any;
|
|
62
|
+
persistedChildren: {};
|
|
63
|
+
persistedCount: number;
|
|
62
64
|
/**
|
|
63
65
|
* @member {boolean} rendered
|
|
64
66
|
*/
|
|
@@ -82,6 +84,20 @@ export class Unit {
|
|
|
82
84
|
* @returns {void}
|
|
83
85
|
*/
|
|
84
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;
|
|
85
101
|
/**
|
|
86
102
|
* This will setup the component props.
|
|
87
103
|
*
|
|
@@ -185,21 +201,6 @@ export class Unit {
|
|
|
185
201
|
* @returns {object}
|
|
186
202
|
*/
|
|
187
203
|
protected _cacheRoot(layout: object): object;
|
|
188
|
-
/**
|
|
189
|
-
* This will check if the layout is a component layout.
|
|
190
|
-
*
|
|
191
|
-
* @param {*} layout
|
|
192
|
-
* @returns {boolean}
|
|
193
|
-
*/
|
|
194
|
-
_isComponentLayout(layout: any): boolean;
|
|
195
|
-
/**
|
|
196
|
-
* This will resume the scope of the component layout.
|
|
197
|
-
*
|
|
198
|
-
* @param {object} oldLayout
|
|
199
|
-
* @param {object} newLayout
|
|
200
|
-
* @returns {void}
|
|
201
|
-
*/
|
|
202
|
-
applyChildrenScope(oldLayout: object, newLayout: object): void;
|
|
203
204
|
/**
|
|
204
205
|
* This will create the component layout.
|
|
205
206
|
*
|
|
@@ -207,7 +208,6 @@ export class Unit {
|
|
|
207
208
|
* @returns {object}
|
|
208
209
|
*/
|
|
209
210
|
protected _createLayout(): object;
|
|
210
|
-
_layout: any;
|
|
211
211
|
/**
|
|
212
212
|
* This will prepare the layout.
|
|
213
213
|
*
|