isobit-ui 0.0.299 → 0.0.300

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 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
1
  /*!
2
- * isobit-ui v0.0.299
2
+ * isobit-ui v0.0.300
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  var Vue$1 = require('vue');
9
+ var axios$1 = require('axios');
9
10
  var __vue_normalize__ = require('vue-runtime-helpers/dist/normalize-component.mjs');
10
11
  var __vue_create_injector__ = require('vue-runtime-helpers/dist/inject-style/browser.mjs');
11
12
  var Observable = require('ol/Observable');
@@ -14,6 +15,7 @@ var __$_require_fs_images_triangle_down_svg__ = require('@/fs/images/triangle-do
14
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
16
 
16
17
  var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue$1);
18
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$1);
17
19
  var __vue_normalize____default = /*#__PURE__*/_interopDefaultLegacy(__vue_normalize__);
18
20
  var __vue_create_injector____default = /*#__PURE__*/_interopDefaultLegacy(__vue_create_injector__);
19
21
  var __$_require_fs_images_triangle_down_svg____default = /*#__PURE__*/_interopDefaultLegacy(__$_require_fs_images_triangle_down_svg__);
@@ -5448,7 +5450,7 @@ window.ui = _$1.ui = function (cfg) {
5448
5450
  return t ? t.selected.length : 0;
5449
5451
  },
5450
5452
  baseURL: function baseURL() {
5451
- return Vue__default['default'].baseURL ? Vue__default['default'].baseURL : axios.defaults.baseURL;
5453
+ return Vue__default['default'].baseURL ? Vue__default['default'].baseURL : axios__default['default'].defaults.baseURL;
5452
5454
  },
5453
5455
  session: function session() {
5454
5456
  return window.app.session;
@@ -5523,7 +5525,7 @@ window.ui = _$1.ui = function (cfg) {
5523
5525
  name = name ? name : f.name.replace(/[^\w\s.]/gi, '');
5524
5526
  formData.append('filename', name);
5525
5527
  formData.append('file', f, name);
5526
- axios.post('/api/file/upload', formData, {
5528
+ axios__default['default'].post('/api/file/upload', formData, {
5527
5529
  headers: {
5528
5530
  'Content-Type': 'multipart/form-data',
5529
5531
  filename: name
@@ -5593,7 +5595,7 @@ window.ui = _$1.ui = function (cfg) {
5593
5595
  if (window.o) {
5594
5596
  window.o(action + '/' + id + '/edit');
5595
5597
  } else {
5596
- axios.get((_$1.currentPath = (action + '/' + id + '/edit').replace(/([^:]\/)\/+/g, "$1")) + '?modal').then(me.open)["catch"](me.error);
5598
+ axios__default['default'].get((_$1.currentPath = (action + '/' + id + '/edit').replace(/([^:]\/)\/+/g, "$1")) + '?modal').then(me.open)["catch"](me.error);
5597
5599
  }
5598
5600
  },
5599
5601
  get: function get(part) {
@@ -5651,7 +5653,7 @@ window.ui = _$1.ui = function (cfg) {
5651
5653
  var id = dat[key];
5652
5654
  me.MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
5653
5655
  if (r == 0) {
5654
- axios["delete"](t.src + '/' + id).then(function () {
5656
+ axios__default['default']["delete"](t.src + '/' + id).then(function () {
5655
5657
  me.MsgBox('Registro eliminado');
5656
5658
  var id = dat.id;
5657
5659
 
@@ -5717,7 +5719,7 @@ window.ui = _$1.ui = function (cfg) {
5717
5719
  el.style.removeProperty('display');
5718
5720
  return el;
5719
5721
  } else {
5720
- return axios.get((path.path + '/?modal').replace(/([^:]\/)\/+/g, "$1")).then(function (r) {
5722
+ return axios__default['default'].get((path.path + '/?modal').replace(/([^:]\/)\/+/g, "$1")).then(function (r) {
5721
5723
  r["class"] = path["class"] ? path["class"] : '';
5722
5724
  r.path = path.path;
5723
5725
  r.result = path.callback;
@@ -6144,7 +6146,7 @@ window.ui = _$1.ui = function (cfg) {
6144
6146
 
6145
6147
 
6146
6148
  if (sel2.length > 0) {
6147
- axios.post(action + '/bulk', sel3).then(function (r) {
6149
+ axios__default['default'].post(action + '/bulk', sel3).then(function (r) {
6148
6150
  var d = r.data;
6149
6151
  console.log(d);
6150
6152
 
@@ -6291,7 +6293,7 @@ window.ui = _$1.ui = function (cfg) {
6291
6293
  }
6292
6294
  }, function (_result) {
6293
6295
  if (_exit2) return _result;
6294
- axios.post(action, o).then(function (r) {
6296
+ axios__default['default'].post(action, o).then(function (r) {
6295
6297
  me.MsgBox('El registro fue grabado exitosamente!', function () {
6296
6298
  if (me.close2) me.close2(r);else {
6297
6299
  me.close(true);
@@ -6534,7 +6536,7 @@ function configureAxios(a) {
6534
6536
  mask = _$1.unmask(mask);
6535
6537
  return response;
6536
6538
  }, function (e) {
6537
- if (axios.error && axios.error(e) == false) {
6539
+ if (axios__default['default'].error && axios__default['default'].error(e) == false) {
6538
6540
  mask = _$1.unmask(mask);
6539
6541
  } else {
6540
6542
  var r = e.response,
@@ -6560,16 +6562,15 @@ function configureAxios(a) {
6560
6562
  }
6561
6563
  }
6562
6564
 
6563
- delete axios.error;
6565
+ delete axios__default['default'].error;
6564
6566
  return Promise.reject(e);
6565
6567
  });
6566
6568
  }
6567
6569
 
6568
- if (typeof axios !== "function") window.axios = axios;
6569
6570
  window._ = _$1;
6570
6571
  window.Vue = Vue__default['default'];
6571
6572
  Vue__default['default'].configureAxios = configureAxios;
6572
- configureAxios(axios);
6573
+ configureAxios(axios__default['default']);
6573
6574
  var index = {
6574
6575
  install: function install(Vue, options) {
6575
6576
  Vue.component("v-autocomplete", __vue_component__$k);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.299",
3
+ "version": "0.0.300",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",