@base-framework/base 3.0.107 → 3.0.109

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.
@@ -9,6 +9,16 @@
9
9
  */
10
10
  export class Data extends BasicData {
11
11
  attributes: any;
12
+ /**
13
+ * This will update an attribute value.
14
+ *
15
+ * @protected
16
+ * @param {object} obj
17
+ * @param {string} attr
18
+ * @param {*} val
19
+ * @returns {void}
20
+ */
21
+ protected _updateAttr(obj: object, attr: string, val: any): void;
12
22
  /**
13
23
  * This will set the attribute value.
14
24
  *
@@ -84,6 +94,47 @@ export class Data extends BasicData {
84
94
  * @returns {object} this
85
95
  */
86
96
  refresh(attr: string): object;
97
+ /**
98
+ * This will publish an update to the data binder.
99
+ *
100
+ * @protected
101
+ * @param {string} attr
102
+ * @param {*} val
103
+ * @param {*} committer
104
+ * @returns {void}
105
+ */
106
+ protected _publish(attr: string, val: any, committer: any): void;
107
+ /**
108
+ * This will publish deep and simple data to the data binder.
109
+ *
110
+ * @protected
111
+ * @param {string} attr
112
+ * @param {*} val
113
+ * @param {object} committer
114
+ * @returns {void}
115
+ */
116
+ protected publishDeep(attr: string, val: any, committer: object): void;
117
+ /**
118
+ * This will publish an update to the data binder.
119
+ *
120
+ * @protected
121
+ * @param {string} pathString
122
+ * @param {*} obj
123
+ * @param {*} committer
124
+ * @returns {void}
125
+ */
126
+ protected publish(pathString: string, obj: any, committer: any): void;
127
+ /**
128
+ * This will check if the value is an object and publish
129
+ * the value or the object.
130
+ *
131
+ * @protected
132
+ * @param {string} subPath
133
+ * @param {*} val
134
+ * @param {object} committer
135
+ * @returns {void}
136
+ */
137
+ protected _checkPublish(subPath: string, val: any, committer: object): void;
87
138
  /**
88
139
  * This will publish an update on an attribute.
89
140
  *
@@ -91,10 +142,9 @@ export class Data extends BasicData {
91
142
  * @param {string} subPath
92
143
  * @param {*} val
93
144
  * @param {object} committer
94
- * @param {string} event
95
145
  * @returns {void}
96
146
  */
97
- protected _publishAttr(subPath: string, val: any, committer: object, event: string): void;
147
+ protected _publishAttr(subPath: string, val: any, committer: object): void;
98
148
  /**
99
149
  * This will merge the attribute with the stage.
100
150
  *
@@ -108,5 +158,14 @@ export class Data extends BasicData {
108
158
  * @returns {void}
109
159
  */
110
160
  revert(): void;
161
+ /**
162
+ * This will delete an attribute.
163
+ *
164
+ * @protected
165
+ * @param {object} obj
166
+ * @param {string} attr
167
+ * @returns {void}
168
+ */
169
+ protected _deleteAttr(obj: object, attr: string): void;
111
170
  }
112
171
  import { BasicData } from '../basic-data.js';
@@ -33,6 +33,15 @@ export class Builder {
33
33
  * @returns {object}
34
34
  */
35
35
  static rebuild(layout: object, ele: object, parent: object): object;
36
+ /**
37
+ * This will add the element directives.
38
+ *
39
+ * @param {object} ele
40
+ * @param {array} directives
41
+ * @param {object} parent
42
+ * @returns {void}
43
+ */
44
+ static setDirectives(ele: object, directives: any[], parent: object): void;
36
45
  /**
37
46
  * This will create a node.
38
47
  *
@@ -26,15 +26,6 @@ export class BrowserRender extends Render {
26
26
  * @returns {void}
27
27
  */
28
28
  protected createElement(obj: object, container: object, parent?: object): void;
29
- /**
30
- * This will add the element directives.
31
- *
32
- * @param {object} ele
33
- * @param {array} directives
34
- * @param {object} parent
35
- * @returns {void}
36
- */
37
- setDirectives(ele: object, directives: any[], parent: object): void;
38
29
  /**
39
30
  * This will handle an attr directive.
40
31
  *
@@ -24,6 +24,15 @@ export class Render {
24
24
  * @returns {*} the build result.
25
25
  */
26
26
  createComponent(obj: object, container: object, parent: object): any;
27
+ /**
28
+ * This will add the element directives.
29
+ *
30
+ * @param {object} ele
31
+ * @param {array} directives
32
+ * @param {object} parent
33
+ * @returns {void}
34
+ */
35
+ setDirectives(ele: object, directives: any[], parent: object): void;
27
36
  /**
28
37
  * This will remove all the children from an element.
29
38
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.0.107",
3
+ "version": "3.0.109",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",