neo.mjs 4.8.9 → 4.8.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.8.9",
3
+ "version": "4.8.10",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -45,6 +45,7 @@ class DomAccess extends Base {
45
45
  app: [
46
46
  'addScript',
47
47
  'applyBodyCls',
48
+ 'blur',
48
49
  'execCommand',
49
50
  'focus',
50
51
  'getAttributes',
@@ -124,6 +125,17 @@ class DomAccess extends Base {
124
125
  document.body.classList.add(...cls);
125
126
  }
126
127
 
128
+ /**
129
+ * Calls blur() on a node for a given dom node id
130
+ * @param {Object} data
131
+ * @returns {Object} obj.id => the passed id
132
+ */
133
+ blur(data) {
134
+ this.getElement(data.id)?.blur();
135
+
136
+ return {id: data.id};
137
+ }
138
+
127
139
  /**
128
140
  * @param {Object} data
129
141
  * @param {String} data.command
@@ -135,7 +147,7 @@ class DomAccess extends Base {
135
147
  }
136
148
 
137
149
  /**
138
- * Calls focus on a node for a given dom node id
150
+ * Calls focus() on a node for a given dom node id
139
151
  * @param {Object} data
140
152
  * @returns {Object} obj.id => the passed id
141
153
  */
@@ -139,13 +139,16 @@ class GoogleMaps extends Base {
139
139
  * @returns {Object}
140
140
  */
141
141
  async geocode(data) {
142
- let me = this;
142
+ let me = this,
143
+ response;
143
144
 
144
145
  if (!me.geoCoder) {
145
146
  me.geoCoder = new google.maps.Geocoder();
146
147
  }
147
148
 
148
- return await me.geoCoder.geocode(data);
149
+ response = await me.geoCoder.geocode(data);
150
+
151
+ return JSON.parse(JSON.stringify(response));
149
152
  }
150
153
 
151
154
  /**