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.
- package/dist/index.js +14 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
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
|
|
6256
|
-
o = JSON.parse(JSON.stringify(
|
|
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 || !
|
|
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
|
|
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
|
|
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
|
-
|
|
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) {
|