isobit-ui 0.0.474 → 0.0.477

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 +13 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.474
2
+ * isobit-ui v0.0.477
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5909,7 +5909,7 @@ window.ui = _$1.ui = function (cfg) {
5909
5909
  var key = t.$attrs.rowkey;
5910
5910
  if (!key) key = t.rowKey;
5911
5911
  var dat = t.data[t.selected[0]];
5912
- var data = t.data;
5912
+ t.data;
5913
5913
 
5914
5914
  if (dat.tmpId) {
5915
5915
  me.MsgBox('Esta seguro que desea eliminar los registros temporales seleccionados ?', function (r) {
@@ -5921,13 +5921,10 @@ window.ui = _$1.ui = function (cfg) {
5921
5921
 
5922
5922
  for (var k = t.selected.length - 1; k >= 0; k--) {
5923
5923
  dat = t.data[t.selected[k]];
5924
-
5925
- if (dat.tmpId) {
5926
- ele.push(dat);
5927
- objectStore["delete"](dat.tmpId);
5928
- c++;
5929
- t.data.splice(t.selected[k], 1);
5930
- }
5924
+ ele.push(dat);
5925
+ if (dat.tmpId) objectStore["delete"](dat.tmpId);
5926
+ c++;
5927
+ t.data.splice(t.selected[k], 1);
5931
5928
  }
5932
5929
 
5933
5930
  if (c) {
@@ -5947,18 +5944,16 @@ window.ui = _$1.ui = function (cfg) {
5947
5944
  me.MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5948
5945
  if (r == 0) {
5949
5946
  var src = t.src.replace('/0/0', '');
5947
+ var ele = [];
5950
5948
  axios$1["delete"](src + '/' + id).then(function () {
5951
- if (me.app && me.app.toast) me.app.toast('Registros eliminados');else me.MsgBox('Registros eliminados');
5952
- var id = dat.id;
5953
-
5954
- for (var i = dat.length - 1; i >= 0; i--) {
5955
- console.log(data[i]);
5956
-
5957
- if (data[i][key] == id) {
5958
- t.data.splice(t.selected[i], 1);
5959
- }
5949
+ for (var k = t.selected.length - 1; k >= 0; k--) {
5950
+ dat = t.data[t.selected[k]];
5951
+ ele.push(dat);
5952
+ console.log(ele);
5953
+ t.data.splice(t.selected[k], 1);
5960
5954
  }
5961
5955
 
5956
+ if (me.app && me.app.toast) me.app.toast(ele.length + ' registros eliminados');else me.MsgBox(ele.length + ' registros eliminados');
5962
5957
  t.rowSelect(null, -1);
5963
5958
  t.selected = []; //if(cb)cb();
5964
5959
  })["catch"](me.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.474",
3
+ "version": "0.0.477",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [