isobit-ui 0.0.410 → 0.0.413
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 +12 -10
- 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.413
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -6252,14 +6252,21 @@ 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
6260
|
return _invoke(function () {
|
|
6261
6261
|
if (!action || !_this4.app.networkStatus.connected) {
|
|
6262
6262
|
var store = me.$children[0].store;
|
|
6263
|
+
|
|
6264
|
+
if (!store) {
|
|
6265
|
+
me.MsgBox('Store in form is undefined!');
|
|
6266
|
+
_exit2 = true;
|
|
6267
|
+
return;
|
|
6268
|
+
}
|
|
6269
|
+
|
|
6263
6270
|
return _await(me.getStoredList(store), function (storedList) {
|
|
6264
6271
|
if (!storedList) storedList = [];
|
|
6265
6272
|
|
|
@@ -6274,13 +6281,6 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6274
6281
|
}
|
|
6275
6282
|
|
|
6276
6283
|
var db = window._.db;
|
|
6277
|
-
|
|
6278
|
-
if (!store) {
|
|
6279
|
-
me.MsgBox('Store in form is undefined!');
|
|
6280
|
-
_exit2 = true;
|
|
6281
|
-
return;
|
|
6282
|
-
}
|
|
6283
|
-
|
|
6284
6284
|
var objectStore = db.transaction([store], "readwrite").objectStore(store);
|
|
6285
6285
|
|
|
6286
6286
|
if (!o.id) {
|
|
@@ -6291,6 +6291,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6291
6291
|
objectStore.add(o);
|
|
6292
6292
|
me.$emit('stored', o, storedList, objectStore);
|
|
6293
6293
|
if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correctamente!');
|
|
6294
|
+
o0.tmpId = o.tmpId;
|
|
6295
|
+
o0.id = o.id;
|
|
6294
6296
|
me.close({
|
|
6295
6297
|
success: true,
|
|
6296
6298
|
data: o
|