@base-framework/base 3.0.258 → 3.0.259
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 +2 -2
- package/dist/types/modules/data/types/basic-data.d.ts +13 -1
- package/dist/types/modules/data/types/model/attrs.d.ts +1 -1
- package/dist/types/modules/data/types/model/model-service.d.ts +1 -1
- package/dist/types/modules/data/types/model/model.d.ts +5 -0
- package/dist/types/modules/state/state-tracker.d.ts +9 -8
- package/package.json +1 -1
|
@@ -33,8 +33,17 @@ export class BasicData {
|
|
|
33
33
|
* @param {object} [settings]
|
|
34
34
|
*/
|
|
35
35
|
constructor(settings?: object);
|
|
36
|
+
/**
|
|
37
|
+
* @member {boolean} dirty
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
36
40
|
dirty: boolean;
|
|
37
|
-
|
|
41
|
+
/**
|
|
42
|
+
* @member {object} links
|
|
43
|
+
* @default {}
|
|
44
|
+
* @protected
|
|
45
|
+
*/
|
|
46
|
+
protected links: {};
|
|
38
47
|
/**
|
|
39
48
|
* @member {string} dataTypeId
|
|
40
49
|
*/
|
|
@@ -47,6 +56,9 @@ export class BasicData {
|
|
|
47
56
|
* @returns {void}
|
|
48
57
|
*/
|
|
49
58
|
protected setup(): void;
|
|
59
|
+
/**
|
|
60
|
+
* @member {object} stage
|
|
61
|
+
*/
|
|
50
62
|
stage: {};
|
|
51
63
|
/**
|
|
52
64
|
* This will setup the number and unique id of the data object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function setupAttrSettings(settings
|
|
1
|
+
export function setupAttrSettings(settings?: object): object;
|
|
@@ -17,17 +17,17 @@ export class StateTracker {
|
|
|
17
17
|
* This will restore a state target.
|
|
18
18
|
*
|
|
19
19
|
* @param {string} id
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {StateTarget} target
|
|
21
21
|
* @returns {void}
|
|
22
22
|
*/
|
|
23
|
-
static restore(id: string, target:
|
|
23
|
+
static restore(id: string, target: StateTarget): void;
|
|
24
24
|
/**
|
|
25
25
|
* This will get the state target.
|
|
26
26
|
*
|
|
27
27
|
* @param {string} id
|
|
28
|
-
* @returns {
|
|
28
|
+
* @returns {StateTarget}
|
|
29
29
|
*/
|
|
30
|
-
static getTarget(id: string):
|
|
30
|
+
static getTarget(id: string): StateTarget;
|
|
31
31
|
/**
|
|
32
32
|
* This will get the state of an action.
|
|
33
33
|
*
|
|
@@ -43,18 +43,18 @@ export class StateTracker {
|
|
|
43
43
|
* @param {string} targetId
|
|
44
44
|
* @param {string} [action]
|
|
45
45
|
* @param {*} [state] the primary action state
|
|
46
|
-
* @returns {
|
|
46
|
+
* @returns {StateTarget}
|
|
47
47
|
*/
|
|
48
|
-
static add(targetId: string, action?: string, state?: any):
|
|
48
|
+
static add(targetId: string, action?: string, state?: any): StateTarget;
|
|
49
49
|
/**
|
|
50
50
|
* This will add a new action to a target.
|
|
51
51
|
*
|
|
52
52
|
* @param {string} targetId
|
|
53
53
|
* @param {string} action
|
|
54
54
|
* @param {string} [state]
|
|
55
|
-
* @returns {
|
|
55
|
+
* @returns {StateTarget}
|
|
56
56
|
*/
|
|
57
|
-
static addAction(targetId: string, action: string, state?: string):
|
|
57
|
+
static addAction(targetId: string, action: string, state?: string): StateTarget;
|
|
58
58
|
/**
|
|
59
59
|
* This will remove the action from a target.
|
|
60
60
|
*
|
|
@@ -101,3 +101,4 @@ export class StateTracker {
|
|
|
101
101
|
*/
|
|
102
102
|
static set(targetId: string, action: string, state: any): void;
|
|
103
103
|
}
|
|
104
|
+
import { StateTarget } from './state-target.js';
|