isobit-ui 0.1.52 → 0.1.55
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.
- package/dist/index.js +79 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.1.
|
|
2
|
+
* isobit-ui v0.1.55
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import Vue$1 from 'vue';
|
|
7
|
-
import axios$
|
|
7
|
+
import axios$2 from 'axios';
|
|
8
8
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.mjs';
|
|
9
9
|
import __vue_create_injector__ from 'vue-runtime-helpers/dist/inject-style/browser.mjs';
|
|
10
10
|
import { unByKey } from 'ol/Observable';
|
|
@@ -1765,7 +1765,7 @@ function _await$2(value, then, direct) {
|
|
|
1765
1765
|
return then ? value.then(then) : value;
|
|
1766
1766
|
}
|
|
1767
1767
|
|
|
1768
|
-
var template = "\n\t<div v-bind:class={reflow:reflow} v-bind:key=\"'v-table-'+keyBody\" class=\"v-datatable v-resize\" style=\"background-color:#dbdbdb\"><template v-if=\"active\">\n\t\t<div v-if=\"hasSlot('header')\" class=\"v-datatable-header v-widget-header ui-corner-top\"><slot name=\"header\"></slot>\n\t\t</div>\n\t\t<div v-if=\"pagination\" class=\"v-paginator v-paginator-top v-widget-header v-paginator-pages center\">\n\t\t\n\t\t<v-button value=\"|<\" v-bind:disabled=\"page<=1\" v-on:click.prevent=\"to(1)\"/><v-button value=\"<\" v-on:click.prevent=\"to(page-1)\" v-bind:disabled=\"page<=1\"/><div style=\"padding:3px 8px;display:inline-block\">\n\t\t<input type=\"number\" v-on:change=\"to(page,true)\" style=\"width:60px\" min=\"1\" v-bind:max=\"pages\" v-model=\"page\"/> / {{pages}}</div>\n\t\t<v-button value=\">\" v-on:click.prevent=\"to(page+1)\" v-bind:disabled=\"page==pages\"/><v-button v-on:click.prevent=\"to(pages)\" value=\">|\" v-bind:disabled=\"page==pages\"/>\n\t\t\t</div>\n\t\t<div v-if=\"scrollable0\" class=\"v-widget-header v-datatable-scrollable-header\" style=\"position:relative\">\n\t\t<div class=\"v-datatable-scrollable-header-box\" style=\"\"></div></div>\n\t\t<div v-bind:class=\"{'v-datatable-scrollable-body':scrollable0}\">\n\t\t<table class=\"v-table\" v-bind:style=\"{width:width}\" v-if=\"columns\">\n\t\t\t<thead>\n <tr>\n <th v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" >\n <span class=\"v-check\" v-on:click=\"rowSelect(null,-10)\" v-bind:data-icon=\"selected.length?'check-square':'square'\">\n <i class=\"fa fa-lg\" v-bind:class=\"selected.length?'fa-check-square':'fa-square'\"></i>\n </span>\n </th>\n <th v-bind:class=\"k['h-class']\" v-for=\"k in columns\" v-bind:width=\"k.width\" v-on:click=\"sortBy(k)\">\n <div v-html=\"k.header\"></div>\n </th>\n\t\t\t</tr>\n </thead>\n\t\t\t<tbody class=\"v-datatable-data\" v-bind:key=\"kc\">\n\t\t\t\t<tr v-for=\"(entry,r) in sortedData\" @row=\"rowCreated(entry)\" @click=\"_selectRow($event,entry,r)\" v-bind:class=\"getRowClass(r,entry)\">\n\t\t\t\t\t<td v-if=\"selectable0\" width=\"18\" class=\"center\">\n\t\t\t\t\t\t<span v-bind:data-index=\"r\" class=\"v-check\" v-on:click=\"rowSelect(entry,r)\"\n\t\t\t\t\t\tv-bind:data-icon=\"isSelected(r)?'check-square':'square'\"><i class=\"far fa-lg\" v-bind:class=\"isSelected(r)?'fa-check-square':'fa-square'\" ></i></span>\n\t\t\t\t\t</td>\n\t\t\t\t\t<slot v-bind:row=\"entry\" v-bind:index=\"r+(page-1)*paginatio_\"></slot>\n\t\t\t\t</tr>\n\t\t\t\t<tr v-if=\"!sortedData||sortedData.length==0\">\n\t\t\t\t\t<td v-bind:colspan=\"columns.length+(selectable0?1:0)\">{{emptyMessage}}</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t\t</div>\n\t\t<div v-if=\"summary||hasSlot('summary')\" class=\"v-table-summary\" v-bind:class=\"{'v-datatable-scrollable-body':scrollable}\">\n\t\t\t<table class=\"v-table v-table-summary\"><tr>\n\t\t\t<td v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" ></td>\n\t\t\t<slot name=\"summary\" v-bind:data=\"sortedData\"></slot>\n\t\t\t</tr></table>\n\t\t</div>\n\t\t<div class=\"hide filters\"><slot name=\"filters\"></slot><slot name=\"columns\"></slot></div></template></div>\n";
|
|
1768
|
+
var template = "\n\t<div v-bind:class={reflow:reflow} v-bind:key=\"'v-table-'+keyBody\" class=\"v-datatable v-resize\" style=\"background-color:#dbdbdb\"><template v-if=\"active\">\n\t\t<div v-if=\"hasSlot('header')\" class=\"v-datatable-header v-widget-header ui-corner-top\"><slot name=\"header\"></slot>\n\t\t</div>\n\t\t<div v-if=\"pagination\" class=\"v-paginator v-paginator-top v-widget-header v-paginator-pages center\">\n\t\t\n\t\t<v-button value=\"|<\" v-bind:disabled=\"page<=1\" v-on:click.prevent=\"to(1)\"/><v-button value=\"<\" v-on:click.prevent=\"to(page-1)\" v-bind:disabled=\"page<=1\"/><div style=\"padding:3px 8px;display:inline-block\">\n\t\t<input type=\"number\" v-on:change=\"to(page,true)\" style=\"width:60px\" min=\"1\" v-bind:max=\"pages\" v-model=\"page\"/> / {{pages}}</div>\n\t\t<v-button value=\">\" v-on:click.prevent=\"to(page+1)\" v-bind:disabled=\"page==pages\"/><v-button v-on:click.prevent=\"to(pages)\" value=\">|\" v-bind:disabled=\"page==pages\"/>\n\t\t\t</div>\n\t\t<div v-if=\"scrollable0\" class=\"v-widget-header v-datatable-scrollable-header\" style=\"position:relative\">\n\t\t<div class=\"v-datatable-scrollable-header-box\" style=\"\"></div></div>\n\t\t<div v-bind:class=\"{'v-datatable-scrollable-body':scrollable0}\">\n\t\t<table class=\"v-table\" v-bind:style=\"{width:width}\" v-if=\"columns\">\n\t\t\t<thead>\n <tr>\n <th v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" >\n <span class=\"v-check\" v-on:click=\"rowSelect(null,-10)\" v-bind:data-icon=\"selected.length?'check-square':'square'\">\n <i class=\"fa fa-lg\" v-bind:class=\"selected.length?'fa-check-square':'fa-square'\"></i>\n </span>\n </th>\n <th v-bind:class=\"k['h-class']\" v-for=\"k in columns\" v-bind:width=\"k.width\" v-on:click=\"sortBy(k)\">\n <div v-html=\"k.header\"></div>\n </th>\n\t\t\t</tr>\n </thead>\n\t\t\t<tbody class=\"v-datatable-data\" v-bind:key=\"kc\">\n\t\t\t\t<tr v-for=\"(entry,r) in sortedData\" @row=\"rowCreated(entry)\" @click=\"_selectRow($event,entry,r)\" \n v-bind:class=\"getRowClass(r,entry)\">\n\t\t\t\t\t<td v-if=\"selectable0\" width=\"18\" class=\"center\">\n\t\t\t\t\t\t<span v-bind:data-index=\"r\" class=\"v-check\" v-on:click=\"rowSelect(entry,r)\"\n\t\t\t\t\t\tv-bind:data-icon=\"isSelected(r)?'check-square':'square'\"><i class=\"far fa-lg\" v-bind:class=\"isSelected(r)?'fa-check-square':'fa-square'\" ></i></span>\n\t\t\t\t\t</td>\n\t\t\t\t\t<slot v-bind:row=\"entry\" v-bind:index=\"r+(page-1)*paginatio_\"></slot>\n\t\t\t\t</tr>\n\t\t\t\t<tr v-if=\"!sortedData||sortedData.length==0\">\n\t\t\t\t\t<td v-bind:colspan=\"columns.length+(selectable0?1:0)\">{{emptyMessage}}</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t\t</div>\n\t\t<div v-if=\"summary||hasSlot('summary')\" class=\"v-table-summary\" v-bind:class=\"{'v-datatable-scrollable-body':scrollable}\">\n\t\t\t<table class=\"v-table v-table-summary\"><tr>\n\t\t\t<td v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" ></td>\n\t\t\t<slot name=\"summary\" v-bind:data=\"sortedData\"></slot>\n\t\t\t</tr></table>\n\t\t</div>\n\t\t<div class=\"hide filters\"><slot name=\"filters\"></slot><slot name=\"columns\"></slot></div></template></div>\n";
|
|
1769
1769
|
|
|
1770
1770
|
function _invoke$1(body, then) {
|
|
1771
1771
|
var result = body();
|
|
@@ -2261,7 +2261,8 @@ var script$e = {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
},
|
|
2263
2263
|
_selectRow: function _selectRow(event, rec, r) {
|
|
2264
|
-
|
|
2264
|
+
var me = this;
|
|
2265
|
+
if (me.selectable0 && _.whichChild(event.target) == 0) return; //se debe tener en cuenta si es
|
|
2265
2266
|
//record, numero fila
|
|
2266
2267
|
|
|
2267
2268
|
this.rowSelect(rec, r, 1);
|
|
@@ -4903,7 +4904,7 @@ var script$3 = {
|
|
|
4903
4904
|
map.on('singleclick', function (evt) {
|
|
4904
4905
|
//var l=[];
|
|
4905
4906
|
var f = map.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
|
|
4906
|
-
return [feature, layer]; //l.push([feature,layer]);
|
|
4907
|
+
if (layer) return [feature, layer]; //l.push([feature,layer]);
|
|
4907
4908
|
}); //console.log(l);
|
|
4908
4909
|
|
|
4909
4910
|
if (f) {
|
|
@@ -4921,7 +4922,7 @@ var script$3 = {
|
|
|
4921
4922
|
});
|
|
4922
4923
|
map.on('dblclick', function (evt) {
|
|
4923
4924
|
var f = map.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
|
|
4924
|
-
return [feature, layer];
|
|
4925
|
+
if (layer) return [feature, layer];
|
|
4925
4926
|
});
|
|
4926
4927
|
|
|
4927
4928
|
if (f) {
|
|
@@ -5146,6 +5147,14 @@ var __vue_component__$2 = /*#__PURE__*/__vue_normalize__({
|
|
|
5146
5147
|
//
|
|
5147
5148
|
//
|
|
5148
5149
|
//
|
|
5150
|
+
//
|
|
5151
|
+
//
|
|
5152
|
+
//
|
|
5153
|
+
//
|
|
5154
|
+
//
|
|
5155
|
+
var ol$1 = window.ol;
|
|
5156
|
+
var _$2 = window._;
|
|
5157
|
+
var axios$1 = window.axios;
|
|
5149
5158
|
var script$1 = {
|
|
5150
5159
|
props: {
|
|
5151
5160
|
value: {
|
|
@@ -5169,7 +5178,8 @@ var script$1 = {
|
|
|
5169
5178
|
created: function created() {
|
|
5170
5179
|
var me = this;
|
|
5171
5180
|
me.$parent.$on('beforeBuild', function (m) {
|
|
5172
|
-
|
|
5181
|
+
console.log(m);
|
|
5182
|
+
me.overlay = new ol$1.Overlay({
|
|
5173
5183
|
element: me.$el,
|
|
5174
5184
|
positioning: 'bottom-right'
|
|
5175
5185
|
});
|
|
@@ -5178,6 +5188,37 @@ var script$1 = {
|
|
|
5178
5188
|
m.map.addOverlay(me.overlay);
|
|
5179
5189
|
});
|
|
5180
5190
|
},
|
|
5191
|
+
mounted: function mounted() {
|
|
5192
|
+
var me = this;
|
|
5193
|
+
|
|
5194
|
+
if (me.header) {
|
|
5195
|
+
var title = me.$el.childNodes[0];
|
|
5196
|
+
title.addEventListener('mousedown', function (evt) {
|
|
5197
|
+
var wi = me.$el.parentElement; // Record where the window started
|
|
5198
|
+
|
|
5199
|
+
var real = window.getComputedStyle(wi),
|
|
5200
|
+
winX = parseFloat(real.left),
|
|
5201
|
+
winY = parseFloat(real.top); // Record where the mouse started
|
|
5202
|
+
|
|
5203
|
+
var mX = evt.clientX,
|
|
5204
|
+
mY = evt.clientY; // When moving anywhere on the page, drag the window
|
|
5205
|
+
// …until the mouse button comes up
|
|
5206
|
+
|
|
5207
|
+
var pm = wi.parentElement;
|
|
5208
|
+
pm.addEventListener('mousemove', drag, false);
|
|
5209
|
+
pm.addEventListener('mouseup', function () {
|
|
5210
|
+
pm.removeEventListener('mousemove', drag, false);
|
|
5211
|
+
}, false); // Every time the mouse moves, we do the following
|
|
5212
|
+
|
|
5213
|
+
function drag(evt) {
|
|
5214
|
+
// Add difference between where the mouse is now
|
|
5215
|
+
// versus where it was last to the original positions
|
|
5216
|
+
wi.style.left = winX + evt.clientX - mX + 'px';
|
|
5217
|
+
wi.style.top = winY + evt.clientY - mY + 'px';
|
|
5218
|
+
}
|
|
5219
|
+
}, false);
|
|
5220
|
+
}
|
|
5221
|
+
},
|
|
5181
5222
|
methods: {
|
|
5182
5223
|
close: function close() {
|
|
5183
5224
|
if (this.overlay) this.overlay.setPosition();
|
|
@@ -5188,7 +5229,7 @@ var script$1 = {
|
|
|
5188
5229
|
},
|
|
5189
5230
|
load: function load() {
|
|
5190
5231
|
var me = this;
|
|
5191
|
-
axios.get(_.remoteServer + me.src).then(function (r) {
|
|
5232
|
+
axios$1.get(_$2.remoteServer + me.src).then(function (r) {
|
|
5192
5233
|
me.$emit('input', r.data); //me.$forceUpdate();
|
|
5193
5234
|
});
|
|
5194
5235
|
},
|
|
@@ -5218,7 +5259,7 @@ var script$1 = {
|
|
|
5218
5259
|
var pixel = map.getPixelFromCoordinate(Number(co[0]) ? co : evt.coordinate);
|
|
5219
5260
|
|
|
5220
5261
|
if (this.src) {
|
|
5221
|
-
axios.get(_.remoteServer + this.src).then(function (r) {
|
|
5262
|
+
axios$1.get(_$2.remoteServer + this.src).then(function (r) {
|
|
5222
5263
|
me.$emit('input', r.data);
|
|
5223
5264
|
me.c++;
|
|
5224
5265
|
setTimeout(function () {
|
|
@@ -5250,11 +5291,11 @@ var script$1 = {
|
|
|
5250
5291
|
overlay.setPosition(map.getCoordinateFromPixel(pixel));
|
|
5251
5292
|
me.$el.style.opacity = 1;
|
|
5252
5293
|
|
|
5253
|
-
if (_.mobil) {
|
|
5294
|
+
if (_$2.mobil) {
|
|
5254
5295
|
var a = overlay.getElement().querySelectorAll('a:not(._)');
|
|
5255
5296
|
|
|
5256
5297
|
for (var k = 0; k < a.length; k++) {
|
|
5257
|
-
a[k].addEventListener("click", _.open2);
|
|
5298
|
+
a[k].addEventListener("click", _$2.open2);
|
|
5258
5299
|
}
|
|
5259
5300
|
}
|
|
5260
5301
|
}, 400);
|
|
@@ -5264,9 +5305,12 @@ var script$1 = {
|
|
|
5264
5305
|
} else {
|
|
5265
5306
|
var mw = map.viewport_.offsetWidth;
|
|
5266
5307
|
var mvh = map.viewport_.offsetHeight;
|
|
5267
|
-
var body = tp.children[0].children[1];
|
|
5308
|
+
var body = tp.children[0].children[1]; //To show the overlay content from top
|
|
5309
|
+
|
|
5268
5310
|
body.scrollTop = 0;
|
|
5269
5311
|
var he = tp.offsetHeight;
|
|
5312
|
+
console.log(tp.offsetHeight); //console.log(tp);
|
|
5313
|
+
//If the height is greater than viewport height
|
|
5270
5314
|
|
|
5271
5315
|
if (he + 100 >= mvh) {
|
|
5272
5316
|
body.style.height = mvh - 100 - tp.children[0].children[0].offsetHeight + 'px';
|
|
@@ -5288,13 +5332,16 @@ var script$1 = {
|
|
|
5288
5332
|
pixel[0] = pixel[0] + nw - 0;
|
|
5289
5333
|
pixel[1] = pixel[1] - 12;
|
|
5290
5334
|
overlay.setPosition(map.getCoordinateFromPixel(pixel));
|
|
5335
|
+
me.$el.parentNode.style.opacity = 0;
|
|
5291
5336
|
me.$el.style.opacity = 1;
|
|
5337
|
+
me.$el.parentNode.style.top = (mvh - me.$el.offsetHeight) / 2 + 'px';
|
|
5338
|
+
me.$el.parentNode.style.opacity = 1;
|
|
5292
5339
|
|
|
5293
|
-
if (_.mobil) {
|
|
5340
|
+
if (_$2.mobil) {
|
|
5294
5341
|
var a = overlay.getElement().querySelectorAll('a:not(._)');
|
|
5295
5342
|
|
|
5296
|
-
for (
|
|
5297
|
-
a[k].addEventListener("click", _.open2);
|
|
5343
|
+
for (k = 0; k < a.length; k++) {
|
|
5344
|
+
a[k].addEventListener("click", _$2.open2);
|
|
5298
5345
|
}
|
|
5299
5346
|
}
|
|
5300
5347
|
|
|
@@ -5357,7 +5404,7 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
5357
5404
|
|
|
5358
5405
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
5359
5406
|
if (!inject) return;
|
|
5360
|
-
inject("data-v-
|
|
5407
|
+
inject("data-v-3a91b24e_0", {
|
|
5361
5408
|
source: ".v-ol-overlay>.v-panel-titlebar{padding:10px}.v-icon-close{cursor:pointer}",
|
|
5362
5409
|
map: undefined,
|
|
5363
5410
|
media: undefined
|
|
@@ -6182,6 +6229,9 @@ Vue$1.pad = function (num, size) {
|
|
|
6182
6229
|
}
|
|
6183
6230
|
};
|
|
6184
6231
|
|
|
6232
|
+
Vue$1.filter('upper', function (s) {
|
|
6233
|
+
return s ? s.toUpperCase() : s;
|
|
6234
|
+
});
|
|
6185
6235
|
Vue$1.filter('number', function (s
|
|
6186
6236
|
/*, type*/
|
|
6187
6237
|
) {
|
|
@@ -6476,7 +6526,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6476
6526
|
return t ? t.selected.length : 0;
|
|
6477
6527
|
},
|
|
6478
6528
|
baseURL: function baseURL() {
|
|
6479
|
-
return Vue$1.baseURL ? Vue$1.baseURL : axios$
|
|
6529
|
+
return Vue$1.baseURL ? Vue$1.baseURL : axios$2.defaults.baseURL;
|
|
6480
6530
|
},
|
|
6481
6531
|
session: {
|
|
6482
6532
|
get: function get() {
|
|
@@ -6558,7 +6608,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6558
6608
|
name = name ? name : f.name.replace(/[^\w\s.]/gi, '');
|
|
6559
6609
|
formData.append('filename', name);
|
|
6560
6610
|
formData.append('file', f, name);
|
|
6561
|
-
axios$
|
|
6611
|
+
axios$2.post('/api/file/upload', formData, {
|
|
6562
6612
|
headers: {
|
|
6563
6613
|
'Content-Type': 'multipart/form-data',
|
|
6564
6614
|
filename: name
|
|
@@ -6632,7 +6682,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6632
6682
|
if (window.app) {
|
|
6633
6683
|
me.open(action + '/' + id + '/edit');
|
|
6634
6684
|
} else {
|
|
6635
|
-
axios$
|
|
6685
|
+
axios$2.get((_$1.currentPath = (action + '/' + id + '/edit').replace(/([^:]\/)\/+/g, "$1")) + '?modal').then(me.open)["catch"](me.error);
|
|
6636
6686
|
}
|
|
6637
6687
|
},
|
|
6638
6688
|
get: function get(part) {
|
|
@@ -6695,7 +6745,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6695
6745
|
var ele = [];
|
|
6696
6746
|
console.log(t.selected);
|
|
6697
6747
|
var k = t.selected.length - 1;
|
|
6698
|
-
axios$
|
|
6748
|
+
axios$2["delete"](src + '/' + id, {
|
|
6699
6749
|
params: t.filters
|
|
6700
6750
|
}).then(function () {
|
|
6701
6751
|
console.log(t.selected);
|
|
@@ -6794,7 +6844,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6794
6844
|
el.style.removeProperty('display');
|
|
6795
6845
|
return el;
|
|
6796
6846
|
} else {
|
|
6797
|
-
return axios$
|
|
6847
|
+
return axios$2.get((path.path + '/?modal').replace(/([^:]\/)\/+/g, "$1")).then(function (r) {
|
|
6798
6848
|
r["class"] = path["class"] ? path["class"] : '';
|
|
6799
6849
|
r.path = path.path;
|
|
6800
6850
|
r.result = path.callback;
|
|
@@ -7237,7 +7287,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7237
7287
|
|
|
7238
7288
|
|
|
7239
7289
|
if (sel2.length > 0) {
|
|
7240
|
-
axios$
|
|
7290
|
+
axios$2.post(action + '/bulk' + (e.sufix ? e.sufix : ''), sel3).then(function (r) {
|
|
7241
7291
|
var d = r.data;
|
|
7242
7292
|
console.log(d);
|
|
7243
7293
|
|
|
@@ -7391,7 +7441,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7391
7441
|
}
|
|
7392
7442
|
});
|
|
7393
7443
|
} else {
|
|
7394
|
-
axios$
|
|
7444
|
+
axios$2.post(action, o).then(function (result) {
|
|
7395
7445
|
var data = result.data;
|
|
7396
7446
|
|
|
7397
7447
|
if (o.tmpId) {
|
|
@@ -7516,9 +7566,9 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7516
7566
|
.catch(error => console.log('error', error))
|
|
7517
7567
|
*/
|
|
7518
7568
|
|
|
7519
|
-
var a = "" + o ? axios$
|
|
7569
|
+
var a = "" + o ? axios$2.post(url, o, {
|
|
7520
7570
|
responseType: 'blob'
|
|
7521
|
-
}) : axios$
|
|
7571
|
+
}) : axios$2({
|
|
7522
7572
|
method: "post",
|
|
7523
7573
|
url: url,
|
|
7524
7574
|
data: o,
|
|
@@ -7708,7 +7758,7 @@ function configureAxios(a) {
|
|
|
7708
7758
|
mask = _$1.unmask(mask);
|
|
7709
7759
|
return response;
|
|
7710
7760
|
}, function (e) {
|
|
7711
|
-
if (axios$
|
|
7761
|
+
if (axios$2.error && axios$2.error(e) == false) {
|
|
7712
7762
|
mask = _$1.unmask(mask);
|
|
7713
7763
|
} else {
|
|
7714
7764
|
var r = e.response,
|
|
@@ -7736,16 +7786,16 @@ function configureAxios(a) {
|
|
|
7736
7786
|
}
|
|
7737
7787
|
}
|
|
7738
7788
|
|
|
7739
|
-
delete axios$
|
|
7789
|
+
delete axios$2.error;
|
|
7740
7790
|
return Promise.reject(e);
|
|
7741
7791
|
});
|
|
7742
7792
|
}
|
|
7743
7793
|
|
|
7744
7794
|
window._ = _$1;
|
|
7745
7795
|
window.Vue = Vue$1;
|
|
7746
|
-
window.axios = axios$
|
|
7796
|
+
window.axios = axios$2;
|
|
7747
7797
|
Vue$1.configureAxios = configureAxios;
|
|
7748
|
-
configureAxios(axios$
|
|
7798
|
+
configureAxios(axios$2);
|
|
7749
7799
|
var index = {
|
|
7750
7800
|
install: function install(Vue, options) {
|
|
7751
7801
|
Vue.filter("date", _$1.toDate.bind(options));
|