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.
Files changed (2) hide show
  1. package/dist/index.js +22 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.1.35
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
- var ite = document.createElement('li');
5583
- if (!bu[i].id) bu[i].id = 'c-' + _$1.id();
5584
- ite.setAttribute('commandId', bu[i].id);
5585
-
5586
- if (bu[i].tagName == 'BUTTON') {
5587
- if (bu[i].disabled) continue;
5588
- ite.appendChild(bu[i].children[0].cloneNode(true));
5589
- ite.appendChild(document.createTextNode(bu[i].value ? bu[i].value : bu[i].title));
5590
- } else if (bu[i].children[0].children[1]) {
5591
- ite.appendChild(bu[i].children[0].children[1]); //.cloneNode()
5592
-
5593
- ite.appendChild(document.createTextNode(bu[i].textContent));
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
- ite.onclick = itemClick;
5597
- popup.appendChild(ite);
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.storage), function (dats) {
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.storage, dats); //dat.id=r.data.id;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.1.35",
3
+ "version": "0.1.38",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [