isobit-ui 0.1.34 → 0.1.37

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 +9 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.1.34
2
+ * isobit-ui v0.1.37
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -914,14 +914,10 @@ var script$l = {
914
914
  if (!me.readonly) {
915
915
  var r = me.$el.querySelector('input');
916
916
  if (me.$parent.onChange) me.$parent.onChange(me.value, r.checked);
917
- var v = r.checked ? me.value ? me.value : r.checked : me.valueFalse !== null ? me.valueFalse : r.checked;
918
- if (v) me.hadValue = 1;
919
- console.log('nvv=' + v);
920
-
921
- if (!v && me.hadValue) {
922
- console.log('me.hadValue=' + me.hadValue);
923
- v = me.valueFalse !== null ? me.valueFalse : false;
924
- }
917
+ var v = r.checked ? me.value ? me.value : r.checked : me.valueFalse !== null && me.valueFalse !== undefined ? me.valueFalse : r.checked;
918
+ if (v) me.hadValue = 1; //if(!v&&me.hadValue){
919
+ // v=(me.valueFalse!==null&&me.valueFalse!==undefined);
920
+ //}
925
921
 
926
922
  console.log('nv=' + v);
927
923
  me.$emit('input', v);
@@ -6872,7 +6868,7 @@ window.ui = _$1.ui = function (cfg) {
6872
6868
  objectStore = db.transaction([storage], "readwrite").objectStore(storage);
6873
6869
  return objectStore.get(id);
6874
6870
  },
6875
- sync: function sync() {
6871
+ sync: function sync(e) {
6876
6872
  try {
6877
6873
  var _this4 = this;
6878
6874
 
@@ -6893,7 +6889,7 @@ window.ui = _$1.ui = function (cfg) {
6893
6889
  action = t.src; //debe recorrerse toda los registros seleccionados
6894
6890
  //ponerlos gris
6895
6891
 
6896
- return _await(me.getStoredList(t.storage), function (dats) {
6892
+ return _await(me.getStoredList(t.store), function (dats) {
6897
6893
  var sel = t.selected;
6898
6894
  var sel2 = [];
6899
6895
  var sel3 = [];
@@ -6916,7 +6912,7 @@ window.ui = _$1.ui = function (cfg) {
6916
6912
 
6917
6913
 
6918
6914
  if (sel2.length > 0) {
6919
- axios$1.post(action + '/bulk', sel3).then(function (r) {
6915
+ axios$1.post(action + '/bulk' + (e.sufix ? e.sufix : ''), sel3).then(function (r) {
6920
6916
  var d = r.data;
6921
6917
  console.log(d);
6922
6918
 
@@ -6943,7 +6939,7 @@ window.ui = _$1.ui = function (cfg) {
6943
6939
  }
6944
6940
  }
6945
6941
 
6946
- me.setStoredList(t.storage, dats); //dat.id=r.data.id;
6942
+ me.setStoredList(t.store, dats); //dat.id=r.data.id;
6947
6943
  //t.$emit('synchronized',{data:dat,result:r.data,index:kk,count:tr});
6948
6944
  //dat.synchronized=1;
6949
6945
  //dats[kk]=dat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.1.34",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [