@base-framework/base 3.7.63 → 3.7.66
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 +3 -3
- package/dist/types/modules/component/component.d.ts +0 -6
- package/dist/types/modules/component/unit.d.ts +3 -2
- package/dist/types/modules/data/data-proxy.d.ts +9 -0
- package/dist/types/modules/data/types/basic-data.d.ts +18 -0
- package/package.json +1 -1
|
@@ -33,12 +33,6 @@ export class Component extends Unit {
|
|
|
33
33
|
* @type {string|null} stateTargetId // optional override of state id
|
|
34
34
|
*/
|
|
35
35
|
stateTargetId: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* @type {boolean} _externalData - true when data is provided
|
|
38
|
-
* externally (e.g. temp components from { data: localVar }).
|
|
39
|
-
* Preserve the value if already set by setupProps() in super().
|
|
40
|
-
*/
|
|
41
|
-
_externalData: boolean;
|
|
42
36
|
/**
|
|
43
37
|
* This will set the data.
|
|
44
38
|
*
|
|
@@ -123,6 +123,7 @@ export class Unit {
|
|
|
123
123
|
* @returns {void}
|
|
124
124
|
*/
|
|
125
125
|
protected setupProps(props?: object): void;
|
|
126
|
+
_externalData: boolean;
|
|
126
127
|
/**
|
|
127
128
|
* This will get the child scope instance of the component.
|
|
128
129
|
* If the component is transparent, children see through
|
|
@@ -254,9 +255,9 @@ export class Unit {
|
|
|
254
255
|
* @protected
|
|
255
256
|
* @param {*} prop
|
|
256
257
|
* @param {*} content
|
|
257
|
-
* @returns {object}
|
|
258
|
+
* @returns {object|null}
|
|
258
259
|
*/
|
|
259
|
-
protected if(prop: any, content: any): object;
|
|
260
|
+
protected if(prop: any, content: any): object | null;
|
|
260
261
|
/**
|
|
261
262
|
* This will map an array to children elements.
|
|
262
263
|
*
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the underlying target object for a proxy created
|
|
3
|
+
* by this module, or the value itself if it is not one of
|
|
4
|
+
* our proxies. Safe to call with any value.
|
|
5
|
+
*
|
|
6
|
+
* @param {*} value
|
|
7
|
+
* @returns {*}
|
|
8
|
+
*/
|
|
9
|
+
export function unwrapProxy(value: any): any;
|
|
1
10
|
/**
|
|
2
11
|
* Invalidate cached proxies for a specific target object.
|
|
3
12
|
* Called when an object is replaced to ensure stale proxies aren't used.
|
|
@@ -217,6 +217,24 @@ export class BasicData {
|
|
|
217
217
|
* @returns {this}
|
|
218
218
|
*/
|
|
219
219
|
set(data: object): this;
|
|
220
|
+
/**
|
|
221
|
+
* Bulk-write top-level keys directly into stage WITHOUT
|
|
222
|
+
* publishing to subscribers.
|
|
223
|
+
*
|
|
224
|
+
* Used by the persist/resume system: when a fresh component
|
|
225
|
+
* instance is being seeded with persisted state, no watchers
|
|
226
|
+
* have subscribed yet (the new layout has not been built),
|
|
227
|
+
* so the deep `Publisher.publish` cascade fires into an empty
|
|
228
|
+
* subscriber set. For large data trees that is the dominant
|
|
229
|
+
* cost of resume.
|
|
230
|
+
*
|
|
231
|
+
* Subclasses (DeepData) may override to also keep their
|
|
232
|
+
* committed-attribute mirror in sync.
|
|
233
|
+
*
|
|
234
|
+
* @param {object} updates
|
|
235
|
+
* @returns {void}
|
|
236
|
+
*/
|
|
237
|
+
_silentSet(updates: object): void;
|
|
220
238
|
/**
|
|
221
239
|
* This will get the model data.
|
|
222
240
|
*
|