isobit-ui 0.0.271 → 0.0.274

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 +21 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.271
2
+ * isobit-ui v0.0.274
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1412,11 +1412,11 @@ var script$d = {
1412
1412
  }
1413
1413
  });
1414
1414
  return item;
1415
- };
1415
+ }; //console.log('render');
1416
+
1417
+
1418
+ var ct = compiledTemplate.render.call(this, createElement); //console.log(me.columns);
1416
1419
 
1417
- console.log('render');
1418
- var ct = compiledTemplate.render.call(this, createElement);
1419
- console.log(me.columns);
1420
1420
  me.columns.forEach(function (e) {
1421
1421
  if (e.filter) ct.children[ct.children.length - 1].children.push(e.filter);
1422
1422
  });
@@ -5018,7 +5018,7 @@ _.MsgBox = function MsgBox(m, cb, b) {
5018
5018
  acl.addEventListener("click", closeListener);
5019
5019
  }*/
5020
5020
 
5021
- _.resize();
5021
+ Vue.resize();
5022
5022
  };
5023
5023
 
5024
5024
  window._.baseURL = window.axios.defaults.baseURL;
@@ -5239,7 +5239,7 @@ window.ui = _.ui = function (cfg) {
5239
5239
  console.log(dat);
5240
5240
 
5241
5241
  if (dat.tmpId) {
5242
- MsgBox('Esta seguro que desea eliminar los registros temporales seleccionados ?', function (r) {
5242
+ me.MsgBox('Esta seguro que desea eliminar los registros temporales seleccionados ?', function (r) {
5243
5243
  if (r == 0) {
5244
5244
  var c = 0,
5245
5245
  db = window._.db;
@@ -5266,10 +5266,10 @@ window.ui = _.ui = function (cfg) {
5266
5266
  } else {
5267
5267
  if (!key) return alert('Table don`t have defined attribute \'rowkey\'');
5268
5268
  var id = dat[key];
5269
- MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5269
+ me.MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5270
5270
  if (r == 0) {
5271
5271
  axios["delete"](t.src + '/' + id).then(function () {
5272
- MsgBox('Registro eliminado');
5272
+ me.MsgBox('Registro eliminado');
5273
5273
  var id = dat.id;
5274
5274
 
5275
5275
  for (var i = dat.length - 1; i >= 0; i--) {
@@ -5388,7 +5388,7 @@ window.ui = _.ui = function (cfg) {
5388
5388
  //Solo se debe ocultaqr si es la marcara del dlg
5389
5389
 
5390
5390
  if ((' ' + mask.className + ' ').indexOf(' v-overlay ') > -1) mask.style.display = "none";
5391
- resize();
5391
+ Vue.resize();
5392
5392
  }
5393
5393
 
5394
5394
  var cb = _.storeFunction[dlg.getAttribute("callback")];
@@ -5423,7 +5423,7 @@ window.ui = _.ui = function (cfg) {
5423
5423
  try {
5424
5424
  if (vvv) vvv = JSON.parse(vvv);
5425
5425
  } catch (e) {
5426
- MsgBox(e);
5426
+ me.MsgBox(e);
5427
5427
  vvv = null;
5428
5428
  }
5429
5429
 
@@ -5435,12 +5435,13 @@ window.ui = _.ui = function (cfg) {
5435
5435
  },
5436
5436
  removeStored: function removeStored(storage) {
5437
5437
  if (window.idb) {
5438
- var db = window._.db,
5438
+ var me = this,
5439
+ db = window._.db,
5439
5440
  objectStore = db.transaction([storage], "readwrite").objectStore(storage);
5440
5441
  var objectStoreRequest = objectStore.clear();
5441
5442
 
5442
5443
  objectStoreRequest.onerror = function () {
5443
- MsgBox('Error al eliminar data temporal');
5444
+ me.MsgBox('Error al eliminar data temporal');
5444
5445
  };
5445
5446
  } else {
5446
5447
  localStorage.removeItem(storage);
@@ -5528,7 +5529,7 @@ window.ui = _.ui = function (cfg) {
5528
5529
 
5529
5530
  for (var k = 0; k < d.length; k++) {
5530
5531
  if (d[k].error) {
5531
- MsgBox(d[k].error);
5532
+ me.MsgBox(d[k].error);
5532
5533
  break;
5533
5534
  }
5534
5535
 
@@ -5558,7 +5559,7 @@ window.ui = _.ui = function (cfg) {
5558
5559
  me.refresh();
5559
5560
  })["catch"](function (r) {
5560
5561
  if (r.response) {
5561
- MsgBox(r.response.data);
5562
+ me.MsgBox(r.response.data);
5562
5563
  } else {
5563
5564
  console.log(r);
5564
5565
  }
@@ -5660,7 +5661,7 @@ window.ui = _.ui = function (cfg) {
5660
5661
  };
5661
5662
 
5662
5663
  item.onerror = function () {
5663
- window._.MsgBox('error found ' + o.tmpId);
5664
+ me.MsgBox('error found ' + o.tmpId);
5664
5665
  };
5665
5666
  }
5666
5667
 
@@ -5670,7 +5671,7 @@ window.ui = _.ui = function (cfg) {
5670
5671
  }, function (_result) {
5671
5672
  if (_exit2) return _result;
5672
5673
  axios.post(action, o).then(function (r) {
5673
- MsgBox('El registro fue grabado exitosamente!', function () {
5674
+ me.MsgBox('El registro fue grabado exitosamente!', function () {
5674
5675
  if (me.close2) me.close2(r);else {
5675
5676
  me.close(true);
5676
5677
  }
@@ -5680,7 +5681,7 @@ window.ui = _.ui = function (cfg) {
5680
5681
  var l, e;
5681
5682
 
5682
5683
  if (typeof r.response.data === 'string') {
5683
- MsgBox(r.response.data);
5684
+ me.MsgBox(r.response.data);
5684
5685
  } else {
5685
5686
  l = r.response.data.propertyViolations; //ec += l.length;
5686
5687
 
@@ -5704,7 +5705,7 @@ window.ui = _.ui = function (cfg) {
5704
5705
  }
5705
5706
  }
5706
5707
 
5707
- MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5708
+ me.MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5708
5709
  if (me.$el.parentNode.className == 'v-dialog') me.$el.parentNode.parentNode.scroll({
5709
5710
  top: 0,
5710
5711
  behavior: 'smooth'
@@ -5714,7 +5715,7 @@ window.ui = _.ui = function (cfg) {
5714
5715
  });
5715
5716
  });
5716
5717
  } else {
5717
- MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5718
+ me.MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5718
5719
  if (me.$el.parentNode.className == 'v-dialog') me.$el.parentNode.parentNode.scroll({
5719
5720
  top: 0,
5720
5721
  behavior: 'smooth'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.271",
3
+ "version": "0.0.274",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",