@base-framework/base 3.7.32 → 3.7.34
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.
|
@@ -61,11 +61,12 @@ export class Component extends Unit {
|
|
|
61
61
|
}): void;
|
|
62
62
|
stateHelper: any;
|
|
63
63
|
/**
|
|
64
|
-
* This will resume the data by
|
|
65
|
-
* instance from setData()
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
64
|
+
* This will resume the data by preferring the fresh data
|
|
65
|
+
* instance from setData(). This preserves closure references
|
|
66
|
+
* (e.g. from atoms with { data: localVar }) and ensures
|
|
67
|
+
* fresh prop-derived values take priority over stale
|
|
68
|
+
* persisted values. Falls back to persisted data when
|
|
69
|
+
* setData() returns nothing.
|
|
69
70
|
*
|
|
70
71
|
* @protected
|
|
71
72
|
* @param {object|null} persistedData
|
|
@@ -16,11 +16,19 @@ export class Route extends BasicData {
|
|
|
16
16
|
*/
|
|
17
17
|
constructor(settings: object, titleCallBack: Function);
|
|
18
18
|
uri: any;
|
|
19
|
+
matchUri: string;
|
|
19
20
|
paramKeys: string[];
|
|
20
21
|
titleCallBack: Function;
|
|
21
22
|
routeId: any;
|
|
23
|
+
rawUri: any;
|
|
22
24
|
uriQuery: RegExp;
|
|
23
25
|
controller: ComponentHelper;
|
|
26
|
+
requiredHash: string;
|
|
27
|
+
requiredQuery: any[] | {
|
|
28
|
+
key: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}[];
|
|
31
|
+
hasConditions: boolean;
|
|
24
32
|
path: string;
|
|
25
33
|
referralPath: string;
|
|
26
34
|
params: any;
|
|
@@ -98,6 +106,13 @@ export class Route extends BasicData {
|
|
|
98
106
|
* @returns {object|boolean}
|
|
99
107
|
*/
|
|
100
108
|
match(path: string): object | boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Checks query/hash route conditions.
|
|
111
|
+
*
|
|
112
|
+
* @param {string} path
|
|
113
|
+
* @returns {boolean}
|
|
114
|
+
*/
|
|
115
|
+
matchConditions(path: string): boolean;
|
|
101
116
|
/**
|
|
102
117
|
* This will reset the params.
|
|
103
118
|
*
|