isobit-ui 0.2.96 → 0.2.98
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 +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.97
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4069,8 +4069,8 @@ var script$7 = {
|
|
|
4069
4069
|
var _this2 = this;
|
|
4070
4070
|
|
|
4071
4071
|
var me = _this2;
|
|
4072
|
-
if (!clearQueue) me.queue.push([p, nou]);
|
|
4073
|
-
|
|
4072
|
+
if (!clearQueue) me.queue.push([p, nou]); //console.log(me.getParentE().name+'================load');
|
|
4073
|
+
|
|
4074
4074
|
if (me.queue.length > 1) return;
|
|
4075
4075
|
var pa = me.$el.parentElement;
|
|
4076
4076
|
me.data2 = me.data;
|
|
@@ -6244,7 +6244,7 @@ _$1 = Object.assign(_$1, {
|
|
|
6244
6244
|
|
|
6245
6245
|
if (_$1.indexedDB) {
|
|
6246
6246
|
_$1.stores = stores;
|
|
6247
|
-
var request = window.indexedDB.open("db",
|
|
6247
|
+
var request = window.indexedDB.open("db", version);
|
|
6248
6248
|
|
|
6249
6249
|
request.onerror = function () {
|
|
6250
6250
|
alert("error al crear db :/!");
|
|
@@ -7913,7 +7913,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
|
|
7915
7915
|
var db = _$1.db;
|
|
7916
|
-
var
|
|
7916
|
+
var transaction = db.transaction([store], "readwrite");
|
|
7917
|
+
var objectStore = transaction.objectStore(store);
|
|
7917
7918
|
|
|
7918
7919
|
if (!o.id) {
|
|
7919
7920
|
o.tmpId = 1 * new Date();
|
|
@@ -7921,7 +7922,9 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7921
7922
|
|
|
7922
7923
|
var objectStoreRequest = objectStore.add(o);
|
|
7923
7924
|
|
|
7924
|
-
objectStoreRequest.onsuccess = function () {
|
|
7925
|
+
objectStoreRequest.onsuccess = function (e) {
|
|
7926
|
+
console.log(e);
|
|
7927
|
+
console.log('saved to ' + store);
|
|
7925
7928
|
storedList.unshift(o);
|
|
7926
7929
|
me.$emit('stored', o, storedList, objectStore);
|
|
7927
7930
|
if (me.app && me.app.toast) me.app.toast('El registro fue grabado exitosamente!');
|