isobit-ui 0.0.412 → 0.0.415

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.412
2
+ * isobit-ui v0.0.414
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -6252,13 +6252,14 @@ window.ui = _$1.ui = function (cfg) {
6252
6252
  }
6253
6253
  }
6254
6254
 
6255
- var o = _this4._data.data ? _this4._data.data : _this4._data.o;
6256
- o = JSON.parse(JSON.stringify(o));
6255
+ var o0 = _this4._data.data ? _this4._data.data : _this4._data.o;
6256
+ var o = JSON.parse(JSON.stringify(o0));
6257
6257
  if (me.process) o = me.process(o); //console.log('o2='+o);
6258
6258
 
6259
6259
  if (!(_typeof(o) === 'object' && !Array.isArray(o) && o !== null)) return;
6260
+ console.log('app.networkStatus.connected=' + me.app.networkStatus.connected);
6260
6261
  return _invoke(function () {
6261
- if (!action || !_this4.app.networkStatus.connected) {
6262
+ if (!action || !me.app.networkStatus.connected) {
6262
6263
  var store = me.$children[0].store;
6263
6264
 
6264
6265
  if (!store) {
@@ -6290,7 +6291,9 @@ window.ui = _$1.ui = function (cfg) {
6290
6291
  storedList.unshift(o);
6291
6292
  objectStore.add(o);
6292
6293
  me.$emit('stored', o, storedList, objectStore);
6293
- if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correctamente!');
6294
+ if (me.app && me.app.toast) me.app.toast('El registro fue grabado correctamente!');
6295
+ o0.tmpId = o.tmpId;
6296
+ o0.id = o.id;
6294
6297
  me.close({
6295
6298
  success: true,
6296
6299
  data: o
@@ -6310,7 +6313,7 @@ window.ui = _$1.ui = function (cfg) {
6310
6313
  }
6311
6314
 
6312
6315
  me.$emit('stored', o, storedList);
6313
- if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correctamente!');
6316
+ if (me.app && me.app.toast) me.app.toast('El registro fue grabado correctamente!');
6314
6317
  me.close({
6315
6318
  success: true,
6316
6319
  data: o
@@ -6337,7 +6340,11 @@ window.ui = _$1.ui = function (cfg) {
6337
6340
 
6338
6341
  var item = objectStore.get(o.tmpId);
6339
6342
  o.tmpSynchronized = 1;
6340
- if (data.id) o.id = data.id;
6343
+
6344
+ if (data.id) {
6345
+ o.id = data.id;
6346
+ o0.id = o.id;
6347
+ }
6341
6348
 
6342
6349
  item.onsuccess = function () {
6343
6350
  if (item.result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.412",
3
+ "version": "0.0.415",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [