isobit-ui 0.1.35 → 0.1.38
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 +22 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.1.
|
|
2
|
+
* isobit-ui v0.1.38
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5579,22 +5579,24 @@ var buildPopupMenu = function buildPopupMenu(p) {
|
|
|
5579
5579
|
}
|
|
5580
5580
|
|
|
5581
5581
|
for (i = 0; i < bu.length; i++) {
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
if (bu[i].
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5582
|
+
if (bu[i].ffsetWidth > 0 || bu[i].offsetHeight > 0) {
|
|
5583
|
+
var ite = document.createElement('li');
|
|
5584
|
+
if (!bu[i].id) bu[i].id = 'c-' + _$1.id();
|
|
5585
|
+
ite.setAttribute('commandId', bu[i].id);
|
|
5586
|
+
|
|
5587
|
+
if (bu[i].tagName == 'BUTTON') {
|
|
5588
|
+
if (bu[i].disabled) continue;
|
|
5589
|
+
ite.appendChild(bu[i].children[0].cloneNode(true));
|
|
5590
|
+
ite.appendChild(document.createTextNode(bu[i].value ? bu[i].value : bu[i].title));
|
|
5591
|
+
} else if (bu[i].children[0].children[1]) {
|
|
5592
|
+
ite.appendChild(bu[i].children[0].children[1]); //.cloneNode()
|
|
5593
|
+
|
|
5594
|
+
ite.appendChild(document.createTextNode(bu[i].textContent));
|
|
5595
|
+
}
|
|
5595
5596
|
|
|
5596
|
-
|
|
5597
|
-
|
|
5597
|
+
ite.onclick = itemClick;
|
|
5598
|
+
popup.appendChild(ite);
|
|
5599
|
+
}
|
|
5598
5600
|
}
|
|
5599
5601
|
|
|
5600
5602
|
mask = _$1.mask(popup); //popup.style.top=(parseInt(pbutton.style.top)+pbutton.offsetHeight)+'px';
|
|
@@ -6868,7 +6870,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6868
6870
|
objectStore = db.transaction([storage], "readwrite").objectStore(storage);
|
|
6869
6871
|
return objectStore.get(id);
|
|
6870
6872
|
},
|
|
6871
|
-
sync: function sync() {
|
|
6873
|
+
sync: function sync(e) {
|
|
6872
6874
|
try {
|
|
6873
6875
|
var _this4 = this;
|
|
6874
6876
|
|
|
@@ -6889,7 +6891,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6889
6891
|
action = t.src; //debe recorrerse toda los registros seleccionados
|
|
6890
6892
|
//ponerlos gris
|
|
6891
6893
|
|
|
6892
|
-
return _await(me.getStoredList(t.
|
|
6894
|
+
return _await(me.getStoredList(t.store), function (dats) {
|
|
6893
6895
|
var sel = t.selected;
|
|
6894
6896
|
var sel2 = [];
|
|
6895
6897
|
var sel3 = [];
|
|
@@ -6912,7 +6914,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6912
6914
|
|
|
6913
6915
|
|
|
6914
6916
|
if (sel2.length > 0) {
|
|
6915
|
-
axios$1.post(action + '/bulk', sel3).then(function (r) {
|
|
6917
|
+
axios$1.post(action + '/bulk' + (e.sufix ? e.sufix : ''), sel3).then(function (r) {
|
|
6916
6918
|
var d = r.data;
|
|
6917
6919
|
console.log(d);
|
|
6918
6920
|
|
|
@@ -6939,7 +6941,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6939
6941
|
}
|
|
6940
6942
|
}
|
|
6941
6943
|
|
|
6942
|
-
me.setStoredList(t.
|
|
6944
|
+
me.setStoredList(t.store, dats); //dat.id=r.data.id;
|
|
6943
6945
|
//t.$emit('synchronized',{data:dat,result:r.data,index:kk,count:tr});
|
|
6944
6946
|
//dat.synchronized=1;
|
|
6945
6947
|
//dats[kk]=dat;
|