@base-framework/base 3.7.50 → 3.7.52

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.
@@ -39,6 +39,14 @@ export class BasicData {
39
39
  * @default false
40
40
  */
41
41
  dirty: boolean;
42
+ /**
43
+ * When true, the persist/resume system will prefer
44
+ * persisted values over fresh defaults from setData().
45
+ *
46
+ * @type {boolean}
47
+ * @default false
48
+ */
49
+ _retainState: boolean;
42
50
  /**
43
51
  * @type {object} links
44
52
  * @default {}
@@ -50,6 +58,17 @@ export class BasicData {
50
58
  */
51
59
  dataTypeId: string;
52
60
  eventSub: DataPubSub;
61
+ /**
62
+ * Marks this data source so the persist/resume system
63
+ * keeps persisted values instead of overwriting them
64
+ * with fresh defaults from setData().
65
+ *
66
+ * Use this when accumulated state (filters, selections,
67
+ * loaded content) should survive across route navigations.
68
+ *
69
+ * @returns {object} this (for chaining)
70
+ */
71
+ retainState(): object;
53
72
  /**
54
73
  * This will setup the data object.
55
74
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.50",
3
+ "version": "3.7.52",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",