isobit-ui 0.0.502 → 0.0.505

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 +24 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.502
2
+ * isobit-ui v0.0.505
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -2006,7 +2006,9 @@ var script$d = {
2006
2006
  }, function () {
2007
2007
  if (!datj) datj = [];
2008
2008
  me.data = me.data ? datj.concat(me.data) : datj;
2009
- return me.data; //console.log('store2='+store);
2009
+ console.log('loadStore');
2010
+ console.log(me.data);
2011
+ return me.data; //
2010
2012
  //console.log(me.data);
2011
2013
  //me.rowSelect(null, -10);
2012
2014
  });
@@ -5940,16 +5942,29 @@ window.ui = _$1.ui = function (cfg) {
5940
5942
  }, ['SI', 'NO']);
5941
5943
  } else {
5942
5944
  if (!key) return alert('Table don`t have defined attribute \'rowkey\'');
5943
- dat[key];
5945
+ var id = dat[key];
5944
5946
  me.MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5945
5947
  if (r == 0) {
5946
- t.src.replace('/0/0', '');
5947
-
5948
- {
5948
+ var src = t.src.replace('/0/0', '');
5949
+ var ele = [];
5950
+ console.log(t.selected);
5951
+ console.log('t.selected.length=' + t.selected.length);
5952
+ var k = t.selected.length - 1;
5953
+ axios$1["delete"](src + '/' + id).then(function () {
5949
5954
  console.log(t.selected);
5950
- console.log('t.selected.length=' + t.selected.length);
5951
- return;
5952
- }
5955
+
5956
+ for (; k >= 0; k--) {
5957
+ console.log('k=' + k);
5958
+ dat = t.data[t.selected[k]];
5959
+ ele.push(dat);
5960
+ console.log(ele);
5961
+ t.data.splice(t.selected[k], 1);
5962
+ }
5963
+
5964
+ if (me.app && me.app.toast) me.app.toast(ele.length + ' registros eliminados');else me.MsgBox(ele.length + ' registros eliminados');
5965
+ t.rowSelect(null, -1);
5966
+ t.selected = []; //if(cb)cb();
5967
+ })["catch"](me.error);
5953
5968
  }
5954
5969
 
5955
5970
  t.rowSelect(null, -1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.502",
3
+ "version": "0.0.505",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [