isobit-ui 0.1.60 → 0.1.61
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 +74 -58
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.1.
|
|
2
|
+
* isobit-ui v0.1.61
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -13,17 +13,11 @@ import __$_require_fs_images_triangle_down_svg__ from '@/fs/images/triangle-down
|
|
|
13
13
|
function _typeof(obj) {
|
|
14
14
|
"@babel/helpers - typeof";
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
_typeof = function (obj) {
|
|
22
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return _typeof(obj);
|
|
16
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
17
|
+
return typeof obj;
|
|
18
|
+
} : function (obj) {
|
|
19
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
20
|
+
}, _typeof(obj);
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
function _slicedToArray(arr, i) {
|
|
@@ -47,7 +41,7 @@ function _iterableToArray(iter) {
|
|
|
47
41
|
}
|
|
48
42
|
|
|
49
43
|
function _iterableToArrayLimit(arr, i) {
|
|
50
|
-
var _i = arr
|
|
44
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
51
45
|
|
|
52
46
|
if (_i == null) return;
|
|
53
47
|
var _arr = [];
|
|
@@ -313,7 +307,7 @@ var script$o = {
|
|
|
313
307
|
var me, store;
|
|
314
308
|
me = this;
|
|
315
309
|
store = me.store;
|
|
316
|
-
return function () {
|
|
310
|
+
return _await$4(function () {
|
|
317
311
|
if (store != null) {
|
|
318
312
|
var datj;
|
|
319
313
|
return _invoke$3(function () {
|
|
@@ -328,7 +322,7 @@ var script$o = {
|
|
|
328
322
|
//me.rowSelect(null, -10);
|
|
329
323
|
});
|
|
330
324
|
}
|
|
331
|
-
}();
|
|
325
|
+
}());
|
|
332
326
|
} catch (e) {
|
|
333
327
|
return Promise.reject(e);
|
|
334
328
|
}
|
|
@@ -1746,7 +1740,7 @@ var script$f = {
|
|
|
1746
1740
|
var me, store;
|
|
1747
1741
|
me = this;
|
|
1748
1742
|
store = me.store;
|
|
1749
|
-
return function () {
|
|
1743
|
+
return _await$3(function () {
|
|
1750
1744
|
if (store != null) {
|
|
1751
1745
|
var datj;
|
|
1752
1746
|
return _invoke$2(function () {
|
|
@@ -1763,7 +1757,7 @@ var script$f = {
|
|
|
1763
1757
|
//me.rowSelect(null, -10);
|
|
1764
1758
|
});
|
|
1765
1759
|
}
|
|
1766
|
-
}();
|
|
1760
|
+
}());
|
|
1767
1761
|
} catch (e) {
|
|
1768
1762
|
return Promise.reject(e);
|
|
1769
1763
|
}
|
|
@@ -2523,9 +2517,7 @@ var script$d = {
|
|
|
2523
2517
|
|
|
2524
2518
|
this.rowSelect(rec, r, 1);
|
|
2525
2519
|
},
|
|
2526
|
-
rowCreated: function rowCreated()
|
|
2527
|
-
/*r*/
|
|
2528
|
-
{
|
|
2520
|
+
rowCreated: function rowCreated() {
|
|
2529
2521
|
/*this.$parent.$parent.row=r;
|
|
2530
2522
|
console.log(this.$parent.$parent.row);
|
|
2531
2523
|
this.$emit('row',r);*/
|
|
@@ -2533,9 +2525,7 @@ var script$d = {
|
|
|
2533
2525
|
hasSlot: function hasSlot(s) {
|
|
2534
2526
|
return !!this.$slots[s];
|
|
2535
2527
|
},
|
|
2536
|
-
sortBy: function sortBy()
|
|
2537
|
-
/*key*/
|
|
2538
|
-
{//this.sortKey = key
|
|
2528
|
+
sortBy: function sortBy() {//this.sortKey = key
|
|
2539
2529
|
//this.sortOrders[key] = this.sortOrders[key] * -1
|
|
2540
2530
|
},
|
|
2541
2531
|
isSelected: function isSelected(r) {
|
|
@@ -2606,7 +2596,7 @@ var script$d = {
|
|
|
2606
2596
|
var me, store;
|
|
2607
2597
|
me = this;
|
|
2608
2598
|
store = me.store;
|
|
2609
|
-
return _invoke$1(function () {
|
|
2599
|
+
return _await$2(_invoke$1(function () {
|
|
2610
2600
|
if (store != null) {
|
|
2611
2601
|
var datj;
|
|
2612
2602
|
return _invoke$1(function () {
|
|
@@ -2620,14 +2610,12 @@ var script$d = {
|
|
|
2620
2610
|
}
|
|
2621
2611
|
}, function () {
|
|
2622
2612
|
return me.data;
|
|
2623
|
-
});
|
|
2613
|
+
}));
|
|
2624
2614
|
} catch (e) {
|
|
2625
2615
|
return Promise.reject(e);
|
|
2626
2616
|
}
|
|
2627
2617
|
},
|
|
2628
|
-
load: function load()
|
|
2629
|
-
/*s*/
|
|
2630
|
-
{
|
|
2618
|
+
load: function load() {
|
|
2631
2619
|
var me = this;
|
|
2632
2620
|
this.selected = [];
|
|
2633
2621
|
|
|
@@ -3923,11 +3911,11 @@ var script$7 = {
|
|
|
3923
3911
|
|
|
3924
3912
|
var me = _this2;
|
|
3925
3913
|
if (!clearQueue) me.queue.push([p, nou]);
|
|
3926
|
-
if (me.queue.length > 1) return;
|
|
3914
|
+
if (me.queue.length > 1) return _await$1();
|
|
3927
3915
|
var pa = me.$el.parentElement;
|
|
3928
3916
|
me.data2 = me.data;
|
|
3929
3917
|
if (!me.data2) me.data2 = [];
|
|
3930
|
-
return _invoke(function () {
|
|
3918
|
+
return _await$1(_invoke(function () {
|
|
3931
3919
|
if (me.store) {
|
|
3932
3920
|
//console.log(JSON.stringify(me.data2));
|
|
3933
3921
|
return _await$1(window._.getStoredList(me.store), function (storedList) {
|
|
@@ -3992,7 +3980,7 @@ var script$7 = {
|
|
|
3992
3980
|
return _awaitIgnored(me.load(d[0], d[1], 1));
|
|
3993
3981
|
}));
|
|
3994
3982
|
});
|
|
3995
|
-
});
|
|
3983
|
+
}));
|
|
3996
3984
|
} catch (e) {
|
|
3997
3985
|
return Promise.reject(e);
|
|
3998
3986
|
}
|
|
@@ -4447,9 +4435,9 @@ var script$4 = {
|
|
|
4447
4435
|
}
|
|
4448
4436
|
});
|
|
4449
4437
|
|
|
4450
|
-
var moveend = function
|
|
4451
|
-
|
|
4452
|
-
{
|
|
4438
|
+
var moveend = function
|
|
4439
|
+
/*evt*/
|
|
4440
|
+
moveend() {
|
|
4453
4441
|
if (me.feature2) {
|
|
4454
4442
|
//Se debe cargar si el feature es de una provincia
|
|
4455
4443
|
if (me.feature2.id_ < 10000) {
|
|
@@ -4457,9 +4445,9 @@ var script$4 = {
|
|
|
4457
4445
|
url: (axios.defaults.baseURL ? axios.defaults.baseURL : '') + '/fs/geo/' + me.feature2.id_ + '.geojson',
|
|
4458
4446
|
format: new ol.format.GeoJSON()
|
|
4459
4447
|
}));
|
|
4460
|
-
var listenerKey = dl.getSource().on('change', function
|
|
4461
|
-
|
|
4462
|
-
{
|
|
4448
|
+
var listenerKey = dl.getSource().on('change', function
|
|
4449
|
+
/*e*/
|
|
4450
|
+
() {
|
|
4463
4451
|
if (me.scope > 0) {
|
|
4464
4452
|
var fl = dl.getSource().getFeatures();
|
|
4465
4453
|
var v = me.scope;
|
|
@@ -4946,19 +4934,19 @@ var script$3 = {
|
|
|
4946
4934
|
m.$emit('change', f);
|
|
4947
4935
|
|
|
4948
4936
|
{
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4937
|
+
//Si es un punto acercalo hasta un zoom adecuado despues llamar a una ventana
|
|
4938
|
+
map.getView().animate({
|
|
4939
|
+
center: f.getGeometry().getCoordinates(),
|
|
4940
|
+
zoom: 17,
|
|
4941
|
+
//map.getView().getZoom() + 1,
|
|
4942
|
+
duration: 500
|
|
4943
|
+
}, function () {
|
|
4944
|
+
for (var j = 0; j < m.$children.length; j++) {
|
|
4945
|
+
var ch = m.$children[0];
|
|
4946
|
+
if (ch.open) ch.open(evt);
|
|
4947
|
+
}
|
|
4948
|
+
});
|
|
4949
|
+
}
|
|
4962
4950
|
}
|
|
4963
4951
|
});
|
|
4964
4952
|
var vp = map.getViewport().parentNode;
|
|
@@ -6504,6 +6492,7 @@ Vue$1.mergeDeep = function () {
|
|
|
6504
6492
|
|
|
6505
6493
|
var args = [];
|
|
6506
6494
|
args.push(target);
|
|
6495
|
+
args.concat(sources);
|
|
6507
6496
|
return Vue$1.mergeDeep.apply(null, args); //return mergeDeep(target, ...sources);
|
|
6508
6497
|
};
|
|
6509
6498
|
|
|
@@ -6589,6 +6578,32 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6589
6578
|
resize: function resize() {
|
|
6590
6579
|
Vue$1.resize();
|
|
6591
6580
|
},
|
|
6581
|
+
vv: function vv(v) {
|
|
6582
|
+
var me = this;
|
|
6583
|
+
|
|
6584
|
+
var sf = function sf(status) {
|
|
6585
|
+
if (status.connected) {
|
|
6586
|
+
var session = localStorage.getItem('session');
|
|
6587
|
+
|
|
6588
|
+
if (session) {
|
|
6589
|
+
try {
|
|
6590
|
+
session = JSON.parse(session);
|
|
6591
|
+
} catch (e) {
|
|
6592
|
+
console.log(e);
|
|
6593
|
+
session = {};
|
|
6594
|
+
}
|
|
6595
|
+
|
|
6596
|
+
session.connected = v;
|
|
6597
|
+
localStorage.setItem('session', JSON.stringify(session));
|
|
6598
|
+
}
|
|
6599
|
+
} else {
|
|
6600
|
+
me.toast('El dispositivo no tiene acceso a internet!');
|
|
6601
|
+
me.connected = status.connected;
|
|
6602
|
+
}
|
|
6603
|
+
};
|
|
6604
|
+
|
|
6605
|
+
Network.getStatus().then(sf);
|
|
6606
|
+
},
|
|
6592
6607
|
bindLinks: function bindLinks(el, callback) {
|
|
6593
6608
|
var me = this;
|
|
6594
6609
|
el = el ? el : me.$el; //console.log(el);
|
|
@@ -6636,9 +6651,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6636
6651
|
go: function go(e) {
|
|
6637
6652
|
window.o(e);
|
|
6638
6653
|
},
|
|
6639
|
-
ddd: function ddd()
|
|
6640
|
-
/*o*/
|
|
6641
|
-
{// for(var i=0;i<o.$children.length;i++){
|
|
6654
|
+
ddd: function ddd() {// for(var i=0;i<o.$children.length;i++){
|
|
6642
6655
|
// var child=o.$children[i];
|
|
6643
6656
|
// console.log(child);
|
|
6644
6657
|
// if (child.$vnode.tag && child.$vnode.tag.includes("v-table")) {
|
|
@@ -7007,7 +7020,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7007
7020
|
|
|
7008
7021
|
var h = dialog.querySelector('.v-panel-titlebar'); //console.log(h.clientHeight);
|
|
7009
7022
|
|
|
7010
|
-
var ih = window.innerHeight - 94 - h.clientHeight;
|
|
7023
|
+
var ih = window.innerHeight - 94 - h ? h.clientHeight : 0;
|
|
7011
7024
|
dc.style.height = ih + "px";
|
|
7012
7025
|
}
|
|
7013
7026
|
};
|
|
@@ -7189,7 +7202,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7189
7202
|
vvv = null;
|
|
7190
7203
|
}
|
|
7191
7204
|
|
|
7192
|
-
return vvv;
|
|
7205
|
+
return _await(vvv);
|
|
7193
7206
|
}
|
|
7194
7207
|
} catch (e) {
|
|
7195
7208
|
return Promise.reject(e);
|
|
@@ -7365,7 +7378,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7365
7378
|
|
|
7366
7379
|
var va = _this6.validate(f);
|
|
7367
7380
|
|
|
7368
|
-
return function () {
|
|
7381
|
+
return _await(function () {
|
|
7369
7382
|
if (va) {
|
|
7370
7383
|
var action = f.getAttribute('action'); //console.log('Action='+action);
|
|
7371
7384
|
|
|
@@ -7555,7 +7568,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7555
7568
|
behavior: 'smooth'
|
|
7556
7569
|
});
|
|
7557
7570
|
}
|
|
7558
|
-
}();
|
|
7571
|
+
}());
|
|
7559
7572
|
} catch (e) {
|
|
7560
7573
|
return Promise.reject(e);
|
|
7561
7574
|
}
|
|
@@ -7813,6 +7826,9 @@ configureAxios(axios$2);
|
|
|
7813
7826
|
var index = {
|
|
7814
7827
|
install: function install(Vue, options) {
|
|
7815
7828
|
console.log(_$1.Vue);
|
|
7829
|
+
Vue.filter('upper', function (s) {
|
|
7830
|
+
return s ? s.toUpperCase() : s;
|
|
7831
|
+
});
|
|
7816
7832
|
Vue.filter("date", _$1.toDate.bind(options));
|
|
7817
7833
|
Vue.filter("capitalize", _$1.capitalize.bind(options));
|
|
7818
7834
|
Vue.filter("upper", _$1.upper.bind(options));
|
|
@@ -7905,4 +7921,4 @@ var index = {
|
|
|
7905
7921
|
}
|
|
7906
7922
|
};
|
|
7907
7923
|
|
|
7908
|
-
export default
|
|
7924
|
+
export { index as default };
|