isobit-ui 0.0.358 → 0.0.359
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 +7 -6
- 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.359
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3283,7 +3283,7 @@ var __vue_component__$7 = /*#__PURE__*/__vue_normalize____default['default']({
|
|
|
3283
3283
|
//
|
|
3284
3284
|
//
|
|
3285
3285
|
var script$6 = {
|
|
3286
|
-
props: ['header', '
|
|
3286
|
+
props: ['header', 'store', 'action'],
|
|
3287
3287
|
watch: {
|
|
3288
3288
|
header: function header(v) {
|
|
3289
3289
|
this.setTitle(v);
|
|
@@ -6191,6 +6191,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6191
6191
|
save: function save() {
|
|
6192
6192
|
try {
|
|
6193
6193
|
var _exit2 = false;
|
|
6194
|
+
var store;
|
|
6194
6195
|
|
|
6195
6196
|
var _this4 = this;
|
|
6196
6197
|
|
|
@@ -6224,8 +6225,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6224
6225
|
if (!(_typeof(o) === 'object' && !Array.isArray(o) && o !== null)) return;
|
|
6225
6226
|
return _invoke(function () {
|
|
6226
6227
|
if (!action || !_this4.app.networkStatus.connected) {
|
|
6227
|
-
|
|
6228
|
-
return _await(me.getStoredList(
|
|
6228
|
+
store = me.$children[0].store;
|
|
6229
|
+
return _await(me.getStoredList(store), function (storedList) {
|
|
6229
6230
|
if (!storedList) storedList = [];
|
|
6230
6231
|
|
|
6231
6232
|
if (o.id) {
|
|
@@ -6239,7 +6240,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6239
6240
|
}
|
|
6240
6241
|
|
|
6241
6242
|
var db = window._.db;
|
|
6242
|
-
var objectStore = db.transaction([
|
|
6243
|
+
var objectStore = db.transaction([store], "readwrite").objectStore(store);
|
|
6243
6244
|
|
|
6244
6245
|
if (!o.id) {
|
|
6245
6246
|
o.id = -new Date();
|
|
@@ -6291,7 +6292,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6291
6292
|
if (o.tmpId) {
|
|
6292
6293
|
var storage = me.$children[0].storage;
|
|
6293
6294
|
|
|
6294
|
-
var objectStore = window._.db.transaction([
|
|
6295
|
+
var objectStore = window._.db.transaction([store], "readwrite").objectStore(store);
|
|
6295
6296
|
|
|
6296
6297
|
var item = objectStore.get(o.tmpId);
|
|
6297
6298
|
o.tmpSynchronized = 1;
|