isobit-ui 0.0.456 → 0.0.459
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 +20 -14
- 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.459
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1447,7 +1447,9 @@ var script$d = {
|
|
|
1447
1447
|
emptyMessage: {
|
|
1448
1448
|
"default": 'No existen registros'
|
|
1449
1449
|
},
|
|
1450
|
-
rowKey:
|
|
1450
|
+
rowKey: {
|
|
1451
|
+
"default": 'id'
|
|
1452
|
+
},
|
|
1451
1453
|
rowStyleClass: String,
|
|
1452
1454
|
pagination: null,
|
|
1453
1455
|
selectable: {
|
|
@@ -2049,10 +2051,10 @@ var script$d = {
|
|
|
2049
2051
|
me.pages = Math.ceil(r.data.size / pagination);
|
|
2050
2052
|
if (me.page > me.pages) me.page = 1;
|
|
2051
2053
|
me.size = r.data.size;
|
|
2052
|
-
}
|
|
2054
|
+
} //console.log('======');
|
|
2055
|
+
//console.log(me.data);
|
|
2056
|
+
|
|
2053
2057
|
|
|
2054
|
-
console.log('======');
|
|
2055
|
-
console.log(me.data);
|
|
2056
2058
|
me.loadStore();
|
|
2057
2059
|
me.$emit('loaded', {
|
|
2058
2060
|
target: me
|
|
@@ -2067,9 +2069,9 @@ var script$d = {
|
|
|
2067
2069
|
me.data = [];
|
|
2068
2070
|
me.loadStore().then(function (result) {
|
|
2069
2071
|
console.log(me.data = result);
|
|
2070
|
-
});
|
|
2071
|
-
console.log(
|
|
2072
|
-
|
|
2072
|
+
}); //console.log('me.data');
|
|
2073
|
+
//console.log(me.data);
|
|
2074
|
+
|
|
2073
2075
|
me.$emit('row-select', {
|
|
2074
2076
|
target: me
|
|
2075
2077
|
});
|
|
@@ -6317,17 +6319,21 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6317
6319
|
o0.id = o.id;
|
|
6318
6320
|
}
|
|
6319
6321
|
|
|
6320
|
-
o0["synchronized"] = 1;
|
|
6321
|
-
o["synchronized"] = 1;
|
|
6322
|
-
console.log(o);
|
|
6323
|
-
|
|
6324
6322
|
item.onsuccess = function () {
|
|
6323
|
+
o0["synchronized"] = 1;
|
|
6324
|
+
o["synchronized"] = 1;
|
|
6325
|
+
var re;
|
|
6326
|
+
|
|
6325
6327
|
if (item.result) {
|
|
6326
|
-
objectStore.put(o);
|
|
6328
|
+
re = objectStore.put(o);
|
|
6327
6329
|
} else {
|
|
6328
|
-
objectStore.add(o);
|
|
6330
|
+
re = objectStore.add(o);
|
|
6329
6331
|
}
|
|
6330
6332
|
|
|
6333
|
+
re.onerror = function (e) {
|
|
6334
|
+
console.error(e);
|
|
6335
|
+
};
|
|
6336
|
+
|
|
6331
6337
|
me.$emit('sync', data, o);
|
|
6332
6338
|
};
|
|
6333
6339
|
|