isobit-ui 0.0.269 → 0.0.272

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 +17 -19
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.269
2
+ * isobit-ui v0.0.272
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1418,7 +1418,7 @@ var script$d = {
1418
1418
  var ct = compiledTemplate.render.call(this, createElement);
1419
1419
  console.log(me.columns);
1420
1420
  me.columns.forEach(function (e) {
1421
- ct.children[ct.children.length - 1].children.push(e.filter);
1421
+ if (e.filter) ct.children[ct.children.length - 1].children.push(e.filter);
1422
1422
  });
1423
1423
  return ct;
1424
1424
  },
@@ -1614,10 +1614,7 @@ var script$d = {
1614
1614
  try {
1615
1615
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
1616
1616
  var ef = _step.value;
1617
-
1618
- (function (ef) {
1619
- return e.appendChild(ef);
1620
- });
1617
+ e.appendChild(ef);
1621
1618
  }
1622
1619
  } catch (err) {
1623
1620
  _iterator.e(err);
@@ -5242,7 +5239,7 @@ window.ui = _.ui = function (cfg) {
5242
5239
  console.log(dat);
5243
5240
 
5244
5241
  if (dat.tmpId) {
5245
- 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) {
5246
5243
  if (r == 0) {
5247
5244
  var c = 0,
5248
5245
  db = window._.db;
@@ -5269,10 +5266,10 @@ window.ui = _.ui = function (cfg) {
5269
5266
  } else {
5270
5267
  if (!key) return alert('Table don`t have defined attribute \'rowkey\'');
5271
5268
  var id = dat[key];
5272
- MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5269
+ me.MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5273
5270
  if (r == 0) {
5274
5271
  axios["delete"](t.src + '/' + id).then(function () {
5275
- MsgBox('Registro eliminado');
5272
+ me.MsgBox('Registro eliminado');
5276
5273
  var id = dat.id;
5277
5274
 
5278
5275
  for (var i = dat.length - 1; i >= 0; i--) {
@@ -5426,7 +5423,7 @@ window.ui = _.ui = function (cfg) {
5426
5423
  try {
5427
5424
  if (vvv) vvv = JSON.parse(vvv);
5428
5425
  } catch (e) {
5429
- MsgBox(e);
5426
+ me.MsgBox(e);
5430
5427
  vvv = null;
5431
5428
  }
5432
5429
 
@@ -5438,12 +5435,13 @@ window.ui = _.ui = function (cfg) {
5438
5435
  },
5439
5436
  removeStored: function removeStored(storage) {
5440
5437
  if (window.idb) {
5441
- var db = window._.db,
5438
+ var me = this,
5439
+ db = window._.db,
5442
5440
  objectStore = db.transaction([storage], "readwrite").objectStore(storage);
5443
5441
  var objectStoreRequest = objectStore.clear();
5444
5442
 
5445
5443
  objectStoreRequest.onerror = function () {
5446
- MsgBox('Error al eliminar data temporal');
5444
+ me.MsgBox('Error al eliminar data temporal');
5447
5445
  };
5448
5446
  } else {
5449
5447
  localStorage.removeItem(storage);
@@ -5531,7 +5529,7 @@ window.ui = _.ui = function (cfg) {
5531
5529
 
5532
5530
  for (var k = 0; k < d.length; k++) {
5533
5531
  if (d[k].error) {
5534
- MsgBox(d[k].error);
5532
+ me.MsgBox(d[k].error);
5535
5533
  break;
5536
5534
  }
5537
5535
 
@@ -5561,7 +5559,7 @@ window.ui = _.ui = function (cfg) {
5561
5559
  me.refresh();
5562
5560
  })["catch"](function (r) {
5563
5561
  if (r.response) {
5564
- MsgBox(r.response.data);
5562
+ me.MsgBox(r.response.data);
5565
5563
  } else {
5566
5564
  console.log(r);
5567
5565
  }
@@ -5663,7 +5661,7 @@ window.ui = _.ui = function (cfg) {
5663
5661
  };
5664
5662
 
5665
5663
  item.onerror = function () {
5666
- window._.MsgBox('error found ' + o.tmpId);
5664
+ me.MsgBox('error found ' + o.tmpId);
5667
5665
  };
5668
5666
  }
5669
5667
 
@@ -5673,7 +5671,7 @@ window.ui = _.ui = function (cfg) {
5673
5671
  }, function (_result) {
5674
5672
  if (_exit2) return _result;
5675
5673
  axios.post(action, o).then(function (r) {
5676
- MsgBox('El registro fue grabado exitosamente!', function () {
5674
+ me.MsgBox('El registro fue grabado exitosamente!', function () {
5677
5675
  if (me.close2) me.close2(r);else {
5678
5676
  me.close(true);
5679
5677
  }
@@ -5683,7 +5681,7 @@ window.ui = _.ui = function (cfg) {
5683
5681
  var l, e;
5684
5682
 
5685
5683
  if (typeof r.response.data === 'string') {
5686
- MsgBox(r.response.data);
5684
+ me.MsgBox(r.response.data);
5687
5685
  } else {
5688
5686
  l = r.response.data.propertyViolations; //ec += l.length;
5689
5687
 
@@ -5707,7 +5705,7 @@ window.ui = _.ui = function (cfg) {
5707
5705
  }
5708
5706
  }
5709
5707
 
5710
- MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5708
+ me.MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5711
5709
  if (me.$el.parentNode.className == 'v-dialog') me.$el.parentNode.parentNode.scroll({
5712
5710
  top: 0,
5713
5711
  behavior: 'smooth'
@@ -5717,7 +5715,7 @@ window.ui = _.ui = function (cfg) {
5717
5715
  });
5718
5716
  });
5719
5717
  } else {
5720
- MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5718
+ me.MsgBox('Verifique el formulario, aun tiene campos obligatorios sin completar.');
5721
5719
  if (me.$el.parentNode.className == 'v-dialog') me.$el.parentNode.parentNode.scroll({
5722
5720
  top: 0,
5723
5721
  behavior: 'smooth'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.269",
3
+ "version": "0.0.272",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",