isobit-ui 0.2.178 → 0.2.180

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 +188 -114
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.177
2
+ * isobit-ui v0.2.178
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -20,41 +20,41 @@ var __vue_normalize____default = /*#__PURE__*/_interopDefaultLegacy(__vue_normal
20
20
  var __vue_create_injector____default = /*#__PURE__*/_interopDefaultLegacy(__vue_create_injector__);
21
21
  var __$_require_cdn_images_triangle_down_svg____default = /*#__PURE__*/_interopDefaultLegacy(__$_require_cdn_images_triangle_down_svg__);
22
22
 
23
- function _iterableToArrayLimit(arr, i) {
24
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
25
- if (null != _i) {
26
- var _s,
27
- _e,
28
- _x,
29
- _r,
30
- _arr = [],
31
- _n = !0,
32
- _d = !1;
23
+ function _iterableToArrayLimit(r, l) {
24
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
25
+ if (null != t) {
26
+ var e,
27
+ n,
28
+ i,
29
+ u,
30
+ a = [],
31
+ f = !0,
32
+ o = !1;
33
33
  try {
34
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
35
- if (Object(_i) !== _i) return;
36
- _n = !1;
37
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
38
- } catch (err) {
39
- _d = !0, _e = err;
34
+ if (i = (t = t.call(r)).next, 0 === l) {
35
+ if (Object(t) !== t) return;
36
+ f = !1;
37
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
38
+ } catch (r) {
39
+ o = !0, n = r;
40
40
  } finally {
41
41
  try {
42
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
42
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
43
43
  } finally {
44
- if (_d) throw _e;
44
+ if (o) throw n;
45
45
  }
46
46
  }
47
- return _arr;
47
+ return a;
48
48
  }
49
49
  }
50
- function _typeof(obj) {
50
+ function _typeof(o) {
51
51
  "@babel/helpers - typeof";
52
52
 
53
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
54
- return typeof obj;
55
- } : function (obj) {
56
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
57
- }, _typeof(obj);
53
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
54
+ return typeof o;
55
+ } : function (o) {
56
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
57
+ }, _typeof(o);
58
58
  }
59
59
  function _slicedToArray(arr, i) {
60
60
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
@@ -756,7 +756,7 @@ var script$m = {
756
756
  var me = this;
757
757
  //console.log(me.value);
758
758
  var d = me.toDate(me.value);
759
- console.log(d);
759
+ //console.log(d);
760
760
  var fd;
761
761
  if (d) {
762
762
  if (me.$props.type === 'time') {
@@ -1014,7 +1014,6 @@ var script$k = {
1014
1014
  if (ii > -1) va.splice(ii, 1);
1015
1015
  //console.log(va);
1016
1016
  }
1017
-
1018
1017
  me.$emit('input', va);
1019
1018
  }
1020
1019
  }
@@ -1090,7 +1089,7 @@ var script$j = {
1090
1089
  return Math.ceil(el.offsetHeight + margin);
1091
1090
  },
1092
1091
  resize: function resize(e) {
1093
- console.log('v-form.resize');
1092
+ //console.log('v-form.resize');
1094
1093
  var me = this,
1095
1094
  el = me.$el,
1096
1095
  h = e.height;
@@ -1102,9 +1101,9 @@ var script$j = {
1102
1101
  me.timer = setTimeout(function () {
1103
1102
  if (!el.parentElement) return;
1104
1103
  if (el.children[1]) {
1105
- console.log(el.children[0].textContent);
1106
- console.log(el.children[0]);
1107
- console.log(el.children[0].offsetHeight);
1104
+ // console.log(el.children[0].textContent);
1105
+ //console.log(el.children[0]);
1106
+ //console.log(el.children[0].offsetHeight);
1108
1107
  //se obtiene el alto del headr
1109
1108
  h = h - el.children[0].offsetHeight;
1110
1109
  el.children[1].style.height = h + "px";
@@ -1803,6 +1802,10 @@ var __vue_component__$f = /*#__PURE__*/__vue_normalize____default["default"]({
1803
1802
  //
1804
1803
  //
1805
1804
  //
1805
+ //
1806
+ //
1807
+ //
1808
+ //
1806
1809
 
1807
1810
  var script$e = {
1808
1811
  props: {
@@ -1889,7 +1892,12 @@ var __vue_render__$d = function __vue_render__() {
1889
1892
  rawName: "v-show",
1890
1893
  value: !_vm.closed,
1891
1894
  expression: "!closed"
1892
- }]
1895
+ }],
1896
+ staticStyle: {
1897
+ "flex": "1",
1898
+ "display": "flex",
1899
+ "flex-direction": "column"
1900
+ }
1893
1901
  }, [_vm._t("default")], 2)]);
1894
1902
  };
1895
1903
  var __vue_staticRenderFns__$d = [];
@@ -2018,7 +2026,6 @@ var script$d = {
2018
2026
  e.children.shift();
2019
2027
  //console.log(createElement('div',column.filter));
2020
2028
  });
2021
-
2022
2029
  e.children.filter(function (e) {
2023
2030
  return e.tag == 'v-footer';
2024
2031
  }).forEach(function (e2) {
@@ -2312,7 +2319,6 @@ var script$d = {
2312
2319
  }
2313
2320
  //resize();
2314
2321
  }
2315
-
2316
2322
  var svg = me.$el.querySelectorAll('.v-check > svg');
2317
2323
  for (i = 0; i < svg.length; i++) {
2318
2324
  //square-check':'square
@@ -2613,6 +2619,8 @@ var __vue_component__$d = /*#__PURE__*/__vue_normalize____default["default"]({},
2613
2619
  //
2614
2620
  //
2615
2621
  //
2622
+ //
2623
+ //
2616
2624
 
2617
2625
  var script$c = {
2618
2626
  data: function data() {
@@ -2642,7 +2650,7 @@ var script$c = {
2642
2650
  t = me.$el.children[v + 1];
2643
2651
  me.$children[v + 1];
2644
2652
  if (t) {
2645
- console.log('aviso al actual tab q esta seleccionado seltab=' + v);
2653
+ //console.log('aviso al actual tab q esta seleccionado seltab=='+v);
2646
2654
  var event = new Event("tabChange", {
2647
2655
  bubbles: false
2648
2656
  });
@@ -2666,15 +2674,19 @@ var script$c = {
2666
2674
  for (var j = 1; j < cn.length; j++) {
2667
2675
  if (cn[j].tagName) {
2668
2676
  if (j - 1 === this.currentTabIndex) {
2669
- cn[j].style.display = '';
2670
- cn[j].style.height = this.$el.offsetHeight - cn[0].offsetHeight + 'px';
2677
+ cn[j].style.display = 'flex';
2678
+ cn[j].style.flex = '1';
2679
+ cn[j].style.flexDirection = 'column';
2680
+ //cn[j].style.height=(this.$el.offsetHeight-cn[0].offsetHeight)+'px';
2671
2681
  }
2672
2682
  if (j - 1 === this.currentTabIndex) {
2673
2683
  cn[j].classList.remove('hide');
2674
2684
  } else {
2685
+ cn[j].style.display = 'none';
2675
2686
  cn[j].classList.add('hide');
2676
2687
  }
2677
2688
  }
2689
+ console.log(cn[j]);
2678
2690
  }
2679
2691
  },
2680
2692
  mounted: function mounted() {
@@ -2739,7 +2751,7 @@ var __vue_render__$c = function __vue_render__() {
2739
2751
  _vm.currentTabIndex = index;
2740
2752
  }
2741
2753
  }
2742
- }, [_vm._v("\n\t\t\t" + _vm._s(tab.title) + "\n\t\t")]);
2754
+ }, [_vm._v("\n\t\t\t\t" + _vm._s(tab.title) + "\n\t\t\t")]);
2743
2755
  }), 0), _vm._v(" "), _vm._t("default")], 2);
2744
2756
  };
2745
2757
  var __vue_staticRenderFns__$c = [];
@@ -2905,6 +2917,11 @@ var __vue_component__$b = /*#__PURE__*/__vue_normalize____default["default"]({
2905
2917
  //
2906
2918
  //
2907
2919
  //
2920
+ //
2921
+ //
2922
+ //
2923
+ //
2924
+ //
2908
2925
 
2909
2926
  var script$a = {
2910
2927
  props: {
@@ -2924,7 +2941,9 @@ var script$a = {
2924
2941
  popup: null,
2925
2942
  show: false,
2926
2943
  sel: [],
2927
- sela: null
2944
+ sela: null,
2945
+ tmp: [],
2946
+ sel2: []
2928
2947
  };
2929
2948
  },
2930
2949
  created: function created() {
@@ -2958,19 +2977,39 @@ var script$a = {
2958
2977
  }
2959
2978
  },
2960
2979
  show: function show(s) {
2980
+ var me = this;
2961
2981
  if (s) {
2962
- var cn = this.$el.childNodes[1];
2963
- if (!this.popup) {
2964
- this.popup = this.$el.childNodes[2];
2965
- this.popup.style.position = "absolute";
2966
- this.popup.style.backgroundColor = "white";
2967
- document.body.append(this.popup);
2982
+ var cn = this.$refs.button,
2983
+ popup = this.popup;
2984
+ if (!popup) {
2985
+ popup = this.$refs.popup;
2986
+ popup.style.position = "absolute";
2987
+ document.body.append(popup);
2968
2988
  }
2969
2989
  var rect = cn.getBoundingClientRect();
2970
- this.popup.style.top = rect.bottom + 0 + "px";
2971
- this.popup.style.left = rect.left + 0 + "px";
2990
+ var body = popup.children[0];
2991
+ if (window.innerWidth < 400) {
2992
+ popup.style.padding = "40px";
2993
+ popup.style.height = "100%";
2994
+ body.style.height = "100%";
2995
+ } else {
2996
+ popup.style.top = rect.bottom + 0 + "px";
2997
+ popup.style.left = rect.left + 0 + "px";
2998
+ popup.style.maxHeight = window.innerHeight - rect.bottom - 30 + 'px';
2999
+ body.style.maxHeight = popup.style.maxHeight;
3000
+ }
3001
+ body.style.display = 'flex';
3002
+ body.style.flexDirection = 'column';
3003
+ me.tmp = me.sel.sort().join(',');
2972
3004
  } else {
2973
- if (this.$parent.load) this.$parent.load();
3005
+ var d = me.sel,
3006
+ t = me.$el.parentNode.tagName;
3007
+ if (t != 'TH' && d && d.length) d = d.join(',');else if (d && d.length == 0) d = null;
3008
+ if (me.tmp !== me.sel.sort().join(',')) if (me.$parent.load) {
3009
+ me.$parent.load();
3010
+ } else {
3011
+ me.$emit('input', d);
3012
+ }
2974
3013
  }
2975
3014
  }
2976
3015
  },
@@ -3102,6 +3141,9 @@ var script$a = {
3102
3141
  toggle: function toggle() {
3103
3142
  this.show = !this.show;
3104
3143
  },
3144
+ close: function close() {
3145
+ this.show = false;
3146
+ },
3105
3147
  selectAll: function selectAll() {
3106
3148
  var ee = [];
3107
3149
  for (var j = 0; j < this.data.length; j++) {
@@ -3186,6 +3228,7 @@ var __vue_render__$a = function __vue_render__() {
3186
3228
  }
3187
3229
  }
3188
3230
  }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _vm.multiple ? [_c('div', {
3231
+ ref: "button",
3189
3232
  staticClass: "v-widget-header",
3190
3233
  "class": {
3191
3234
  'v-selected': _vm.show
@@ -3204,14 +3247,23 @@ var __vue_render__$a = function __vue_render__() {
3204
3247
  value: _vm.show,
3205
3248
  expression: "show"
3206
3249
  }],
3250
+ ref: "popup",
3251
+ staticStyle: {
3252
+ "background-color": "#0000009c"
3253
+ },
3254
+ on: {
3255
+ "click": _vm.close
3256
+ }
3257
+ }, [_c('div', {
3207
3258
  staticStyle: {
3208
- "padding": "5px",
3209
- "border": "1px solid lightgray"
3259
+ "border": "1px solid lightgray",
3260
+ "background-color": "white",
3261
+ "padding": "5px"
3210
3262
  }
3211
3263
  }, [_c('div', {
3212
3264
  staticClass: "_ ui-widget ui-state-default ui-corner-all",
3213
3265
  staticStyle: {
3214
- "padding": "5px 5px 1px 5px",
3266
+ "padding": "3px 3px 1px 3px",
3215
3267
  "margin-bottom": "5px"
3216
3268
  }
3217
3269
  }, [_c('v-checkbox', {
@@ -3227,6 +3279,10 @@ var __vue_render__$a = function __vue_render__() {
3227
3279
  }
3228
3280
  })], 1), _vm._v(" "), _c('v-checkbox-group', {
3229
3281
  key: 'p' + _vm.ik,
3282
+ staticClass: "v-select-checkbox-group",
3283
+ staticStyle: {
3284
+ "overflow-y": "auto"
3285
+ },
3230
3286
  on: {
3231
3287
  "input": _vm.checkboxInput
3232
3288
  },
@@ -3244,20 +3300,35 @@ var __vue_render__$a = function __vue_render__() {
3244
3300
  "label": d.label
3245
3301
  }
3246
3302
  })], 1);
3247
- }) : _vm._e()], 2)], 1)] : _vm._e(), _vm._v(" "), _vm.readonly ? [_vm._v(_vm._s(_vm.label ? _vm.label : "---"))] : _vm._e()], 2);
3303
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
3304
+ staticClass: "center",
3305
+ staticStyle: {
3306
+ "padding-top": "4px"
3307
+ }
3308
+ }, [_c('v-button', {
3309
+ attrs: {
3310
+ "icon": "fa-sync",
3311
+ "value": "Filtrar"
3312
+ }
3313
+ })], 1)], 1)])] : _vm._e(), _vm._v(" "), _vm.readonly ? [_vm._v(_vm._s(_vm.label ? _vm.label : "---"))] : _vm._e()], 2);
3248
3314
  };
3249
3315
  var __vue_staticRenderFns__$a = [];
3250
3316
 
3251
3317
  /* style */
3252
- var __vue_inject_styles__$a = undefined;
3318
+ var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
3319
+ if (!inject) return;
3320
+ inject("data-v-2b17a84a_0", {
3321
+ source: ".v-select-checkbox-group .v-checkbox{height:auto;margin-bottom:5px}.v-select-checkbox-group>div{background:linear-gradient(to bottom,#fff,#e0e0e0);z-index:-1}.v-select-checkbox-group .checkmark{margin:3px}.v-select-checkbox-group{font-size:20px}",
3322
+ map: undefined,
3323
+ media: undefined
3324
+ });
3325
+ };
3253
3326
  /* scoped */
3254
3327
  var __vue_scope_id__$a = undefined;
3255
3328
  /* module identifier */
3256
3329
  var __vue_module_identifier__$a = undefined;
3257
3330
  /* functional template */
3258
3331
  var __vue_is_functional_template__$a = false;
3259
- /* style inject */
3260
-
3261
3332
  /* style inject SSR */
3262
3333
 
3263
3334
  /* style inject shadow dom */
@@ -3265,7 +3336,7 @@ var __vue_is_functional_template__$a = false;
3265
3336
  var __vue_component__$a = /*#__PURE__*/__vue_normalize____default["default"]({
3266
3337
  render: __vue_render__$a,
3267
3338
  staticRenderFns: __vue_staticRenderFns__$a
3268
- }, __vue_inject_styles__$a, __vue_script__$a, __vue_scope_id__$a, __vue_is_functional_template__$a, __vue_module_identifier__$a, false, undefined, undefined, undefined);
3339
+ }, __vue_inject_styles__$a, __vue_script__$a, __vue_scope_id__$a, __vue_is_functional_template__$a, __vue_module_identifier__$a, false, __vue_create_injector____default["default"], undefined, undefined);
3269
3340
 
3270
3341
  //
3271
3342
  //
@@ -3789,7 +3860,6 @@ var script$7 = {
3789
3860
  me.data2 = me.data2.concat(storedList);
3790
3861
  //console.log("data no filtrada");
3791
3862
  }
3792
-
3793
3863
  var displayField = me.displayField;
3794
3864
  me.data2 = me.data2.sort(function (a, b) {
3795
3865
  if (a[displayField] > b[displayField]) return 1;else if (a[displayField] < b[displayField]) return -1;else 0;
@@ -4293,13 +4363,13 @@ var script$4 = {
4293
4363
  });
4294
4364
  }
4295
4365
  //console.log('me.feature__='+me.feature2.id_);
4296
- console.log('emit scopee ' + me.feature2.id_);
4366
+ //console.log('emit scopee '+me.feature2.id_);
4297
4367
  me.$emit('scope', {
4298
4368
  feature: me.feature2,
4299
4369
  target: me
4300
4370
  });
4301
4371
  me.feature2 = null;
4302
- console.log('layer moveend termina');
4372
+ //console.log('layer moveend termina');
4303
4373
  }
4304
4374
  };
4305
4375
  map.on('moveend', moveend);
@@ -4321,7 +4391,6 @@ var script$4 = {
4321
4391
  //Debe considerarse cuando no hay ningun cambio y no llama a moveend
4322
4392
  }
4323
4393
  };
4324
-
4325
4394
  pl.onSelect = function (f) {
4326
4395
  me.$emit('select', f);
4327
4396
  };
@@ -4431,14 +4500,13 @@ var __vue_component__$4 = /*#__PURE__*/__vue_normalize____default["default"]({
4431
4500
  //
4432
4501
  //
4433
4502
 
4503
+ var ol$2 = window.ol;
4504
+ console.log(ol$2);
4434
4505
  var script$3 = {
4435
4506
  mounted: function mounted() {
4436
4507
  var m = this;
4437
- //_.loadCSS('/cdn/ol.css');
4438
- //_.loadScript('/cdn/ol.js',(r) => {
4439
4508
  m.$emit('beforeBuild');
4440
4509
  m.build();
4441
- //});
4442
4510
  },
4443
4511
  data: function data() {
4444
4512
  return {
@@ -4461,6 +4529,7 @@ var script$3 = {
4461
4529
  return results && results[1] || 0;
4462
4530
  },
4463
4531
  addFeature: function addFeature(f, cfg) {
4532
+ var ol = window.ol;
4464
4533
  f = f ? f : {};
4465
4534
  var me = this,
4466
4535
  point,
@@ -4536,7 +4605,8 @@ var script$3 = {
4536
4605
  },
4537
4606
  build: function build() {
4538
4607
  var _this = this;
4539
- var m = this;
4608
+ var m = this,
4609
+ ol = window.ol;
4540
4610
  m.styleMap = {
4541
4611
  "default": new ol.style.Style({
4542
4612
  image: new ol.style.Circle({
@@ -4577,6 +4647,7 @@ var script$3 = {
4577
4647
  } else {
4578
4648
  pageLocation = false;
4579
4649
  }
4650
+ console.log('w=' + m.$el.clientHeight + ';h=' + m.$el.clientWidth);
4580
4651
  var map = new ol.Map({
4581
4652
  target: m.$el,
4582
4653
  layers: [
@@ -4631,6 +4702,11 @@ var script$3 = {
4631
4702
  })],
4632
4703
  view: new ol.View({})
4633
4704
  });
4705
+ var resizeObserver = new ResizeObserver(function (e) {
4706
+ console.log('w=' + m.$el.clientHeight + ';h=' + m.$el.clientWidth);
4707
+ map.updateSize();
4708
+ });
4709
+ resizeObserver.observe(m.$el);
4634
4710
  map.getLayerById = function (id) {
4635
4711
  var ly;
4636
4712
  map.getLayers().forEach(function (l) {
@@ -4648,7 +4724,7 @@ var script$3 = {
4648
4724
  }));
4649
4725
  if (m.moved) {
4650
4726
  map.getView().setCenter(pageLocation);
4651
- console.log('en el momento de cargar moved to pageLocation=' + pageLocation);
4727
+ // console.log('en el momento de cargar moved to pageLocation='+pageLocation);
4652
4728
  map.getView().setZoom(zoom ? zoom : 12);
4653
4729
  m.map = map;
4654
4730
  console.log('distarar evento buid pageLocation=' + pageLocation);
@@ -4688,7 +4764,6 @@ var script$3 = {
4688
4764
  }
4689
4765
  m.moved = false;*/
4690
4766
  });
4691
-
4692
4767
  map.on('singleclick', function (evt) {
4693
4768
  //var l=[];
4694
4769
  var f = map.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
@@ -4824,7 +4899,8 @@ var script$2 = {
4824
4899
  this.visible0 = !!this.visible;
4825
4900
  },
4826
4901
  mounted: function mounted() {
4827
- var me = this;
4902
+ var me = this,
4903
+ ol = window.ol;
4828
4904
  me.slotUsed = !!this.$slots["default"];
4829
4905
  //onsole.log('slotUsed='+me.slotUsed);
4830
4906
  if (me.$parent.map) {
@@ -4847,7 +4923,6 @@ var script$2 = {
4847
4923
  });
4848
4924
  */
4849
4925
  },
4850
-
4851
4926
  methods: {
4852
4927
  enter: function enter(e) {
4853
4928
  if (e.x) this.$emit('click', e);
@@ -5536,7 +5611,7 @@ var buildPopupMenu = function buildPopupMenu(parent) {
5536
5611
  }
5537
5612
  };
5538
5613
  var resize = function resize() {
5539
- console.log('Vue.resize2');
5614
+ //console.log('Vue.resize2');
5540
5615
  //dialog.style.left = (window.innerWidth - dialog.offsetWidth) / 2 + 'px';
5541
5616
  var h = window.innerHeight;
5542
5617
  document.body.children[0].style.height = h + '.px';
@@ -5572,8 +5647,8 @@ var resize = function resize() {
5572
5647
  return;
5573
5648
  } else if (pc[0].nodeName == "DIV") {
5574
5649
  p = pc[0];
5575
- console.log('==========DIV============');
5576
- console.log(p);
5650
+ //console.log('==========DIV============');
5651
+ //console.log(p);
5577
5652
  p.style.height = h + 'px';
5578
5653
  p.style.overflowY = 'auto';
5579
5654
  h = h - ph.offsetHeight - 0;
@@ -5591,14 +5666,14 @@ var resize = function resize() {
5591
5666
  pc[0].style.height = h - ph.offsetHeight - 2 + 'px';
5592
5667
  pc[0].style.overflowY = 'auto';
5593
5668
  p = pc[0].querySelector(".ui-panel");
5594
- console.log('==========ppp============');
5595
- console.log(p);
5669
+ //console.log('==========ppp============');
5670
+ // console.log(p);
5596
5671
  if (p) {
5597
5672
  //console.log(p);
5598
5673
  pc = p.children;
5599
5674
  if (ph) h -= ph.offsetHeight + pc[0].offsetHeight + 2;
5600
5675
  if (pc[1]) {
5601
- console.log(pc[1]);
5676
+ //console.log(pc[1]);
5602
5677
  pc[1].style.height = h + 'px';
5603
5678
  var e = pc[1].querySelectorAll(".v-resize,.v-datatable");
5604
5679
  for (i = 0; i < e.length; i++) {
@@ -5614,10 +5689,10 @@ var resize = function resize() {
5614
5689
  var style = window.getComputedStyle(el);
5615
5690
  return style.display === 'none';
5616
5691
  };
5617
- console.log(pc[0]);
5692
+ //console.log(pc[0]);
5618
5693
  //function isHidden(el) {return (el.offsetParent === null)}
5619
5694
  if (!pc[0].children[0]) return;
5620
- console.log(h);
5695
+ //console.log(h);
5621
5696
  var items = pc[0].children;
5622
5697
  for (i = 0; i < items.length; i++) {
5623
5698
  var evt = new Event("parentResize", {
@@ -5645,7 +5720,7 @@ var resize = function resize() {
5645
5720
  } else {
5646
5721
  var ww = document.querySelectorAll(".ion-page");
5647
5722
  if (ww[0]) {
5648
- console.log('?????????????');
5723
+ //console.log('?????????????');
5649
5724
  var hr = 0;
5650
5725
  for (var kk = 0; kk < ww[0].childNodes.length; kk++) {
5651
5726
  if (ww[0].childNodes[kk].nodeName == 'ION-HEADER' || ww[0].childNodes[kk].nodeName == 'ION-FOOTER') {
@@ -5719,7 +5794,15 @@ var f = {
5719
5794
  };
5720
5795
  if (![].contains) Object.defineProperty(Array.prototype, 'contains', f);
5721
5796
  if (!"".contains) Object.defineProperty(String.prototype, 'contains', f);
5797
+ Vue__default["default"].pad = function (num, size) {
5798
+ if (num != null) {
5799
+ var s = 1 * num + "";
5800
+ while (s.length < size) s = "0" + s;
5801
+ return s;
5802
+ }
5803
+ };
5722
5804
  _$1 = Object.assign(_$1, {
5805
+ pad: Vue__default["default"].pad,
5723
5806
  initDB: function initDB(version, stores) {
5724
5807
  var db = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
5725
5808
  _$1.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
@@ -6036,13 +6119,6 @@ if (typeof ol !== 'undefined') {
6036
6119
  ol.getLayerById = getLayerById;
6037
6120
  window.ol = ol;
6038
6121
  }
6039
- Vue__default["default"].pad = function (num, size) {
6040
- if (num != null) {
6041
- var s = 1 * num + "";
6042
- while (s.length < size) s = "0" + s;
6043
- return s;
6044
- }
6045
- };
6046
6122
  Vue__default["default"].filter('upper', _$1.upper = function (s) {
6047
6123
  return s ? s.toUpperCase() : s;
6048
6124
  });
@@ -6201,7 +6277,7 @@ _$1.MsgBox = function MsgBox(m, cb, b) {
6201
6277
  dialog.parentNode.removeChild(dialog);
6202
6278
  overlay.parentNode.removeChild(overlay);
6203
6279
  if (cb) {
6204
- console.log(cb);
6280
+ //console.log(cb);
6205
6281
  cb(this.getAttribute("index"));
6206
6282
  }
6207
6283
  };
@@ -6276,19 +6352,17 @@ Vue__default["default"].mergeDeep = function () {
6276
6352
  }
6277
6353
  }
6278
6354
  }
6279
-
6280
6355
  var args = [];
6281
6356
  args.push(target);
6282
6357
  args.concat(sources);
6283
6358
  return Vue__default["default"].mergeDeep.apply(null, args);
6284
6359
  //return mergeDeep(target, ...sources);
6285
6360
  };
6286
-
6287
6361
  window.ui = _$1.ui = function (cfg) {
6288
6362
  var defs = {
6289
6363
  watch: {
6290
6364
  $route: function $route(v) {
6291
- console.log('$route');
6365
+ //console.log('$route');
6292
6366
  Vue__default["default"].resize();
6293
6367
  this.changeRoute(v);
6294
6368
  },
@@ -6372,7 +6446,7 @@ window.ui = _$1.ui = function (cfg) {
6372
6446
  this.x_connected_ = this.session.connected;
6373
6447
  },
6374
6448
  updated: function updated() {
6375
- console.log('main.update');
6449
+ //console.log('main.update')
6376
6450
  },
6377
6451
  mounted: function mounted() {
6378
6452
  var me = this;
@@ -6397,7 +6471,7 @@ window.ui = _$1.ui = function (cfg) {
6397
6471
  try {
6398
6472
  session = JSON.parse(session);
6399
6473
  } catch (e) {
6400
- console.log(e);
6474
+ //console.log(e);
6401
6475
  session = {};
6402
6476
  }
6403
6477
  session.connected = v;
@@ -6523,7 +6597,7 @@ window.ui = _$1.ui = function (cfg) {
6523
6597
  var selected = me.getSelected(t)[0];
6524
6598
  var id = selected[t.rowKey];
6525
6599
  if (selected.tmpId) id = -selected.tmpId;
6526
- console.log(selected);
6600
+ //console.log(selected);
6527
6601
  if (me.getSelectedId) id = me.getSelectedId(selected);
6528
6602
  if (_$1.app) {
6529
6603
  me.open(action + '/' + id + '/edit');
@@ -6588,19 +6662,19 @@ window.ui = _$1.ui = function (cfg) {
6588
6662
  if (r == 0) {
6589
6663
  var src = t.src.replace('/0/0', '');
6590
6664
  var ele = [];
6591
- console.log(t.selected);
6665
+ //console.log(t.selected);
6592
6666
  var k = t.selected.length - 1;
6593
6667
  axios__default["default"]["delete"](src + '/' + id, {
6594
6668
  params: t.filters
6595
6669
  }).then(function () {
6596
6670
  console.log(t.selected);
6597
6671
  for (; k >= 0; k--) {
6598
- console.log('k=' + k);
6599
- console.log(t.data);
6600
- console.log('t.selected[k]=' + t.selected[k]);
6672
+ //console.log('k=' + k);
6673
+ //console.log(t.data);
6674
+ // console.log('t.selected[k]=' + t.selected[k]);
6601
6675
  dat = t.data[t.selected[k]];
6602
6676
  ele.push(dat);
6603
- console.log(ele);
6677
+ //console.log(ele);
6604
6678
  t.data.splice(t.selected[k], 1);
6605
6679
  }
6606
6680
  if (me.app && me.app.toast) me.app.toast(ele.length + ' registros eliminados');else me.MsgBox(ele.length + ' registros eliminados');
@@ -6634,7 +6708,7 @@ window.ui = _$1.ui = function (cfg) {
6634
6708
  t = t.pathname;
6635
6709
  }
6636
6710
  if (me.$route.path !== t) {
6637
- console.log('path=' + t);
6711
+ //console.log('path=' + t);
6638
6712
  me.$router.push(t);
6639
6713
  }
6640
6714
  return;
@@ -6646,8 +6720,8 @@ window.ui = _$1.ui = function (cfg) {
6646
6720
  path = {};
6647
6721
  } else if (response instanceof HTMLElement) {
6648
6722
  path = path && path.closeOnClickOut ? path : {};
6649
- console.log("PATH====");
6650
- console.log(path);
6723
+ //console.log("PATH====");
6724
+ //console.log(path);
6651
6725
  } else if (response.target) {
6652
6726
  el = response.target;
6653
6727
  return me.open(el.pathname ? el.pathname : el.href);
@@ -6696,8 +6770,8 @@ window.ui = _$1.ui = function (cfg) {
6696
6770
  } else if (response.data) {
6697
6771
  path = response;
6698
6772
  }
6699
- console.log("open(path=" + path + ")");
6700
- console.log(path);
6773
+ //console.log("open(path="+path+")");
6774
+ //console.log(path);
6701
6775
  var dialog,
6702
6776
  nid = Vue__default["default"].id(),
6703
6777
  scriptDom = [],
@@ -7023,6 +7097,7 @@ window.ui = _$1.ui = function (cfg) {
7023
7097
  return e[0] == store;
7024
7098
  })[0];
7025
7099
  //console.log(e);
7100
+ if (!e) throw "store " + store + " undefined";
7026
7101
  if (!e[2]) throw "store url is empty";
7027
7102
  return _await(axios__default["default"].get(e[2]), function (data) {
7028
7103
  var objectStore = _$1.db.transaction([e[0]], "readwrite").objectStore(e[0]);
@@ -7209,8 +7284,8 @@ window.ui = _$1.ui = function (cfg) {
7209
7284
  //add new item to start to array
7210
7285
  var objectStoreRequest = objectStore.add(o);
7211
7286
  objectStoreRequest.onsuccess = function (e) {
7212
- console.log(e);
7213
- console.log('saved to ' + store);
7287
+ //console.log(e);
7288
+ //console.log('saved to ' + store);
7214
7289
  storedList.unshift(o);
7215
7290
  me.$emit('stored', o, storedList, objectStore);
7216
7291
  if (me.app && me.app.toast) me.app.toast('El registro fue grabado exitosamente!');
@@ -7223,15 +7298,15 @@ window.ui = _$1.ui = function (cfg) {
7223
7298
  };
7224
7299
  objectStoreRequest.onerror = function (e) {
7225
7300
  if (me.app && me.app.toast) me.app.toast('Error!');
7226
- console.log(e);
7301
+ //console.log(e);
7227
7302
  };
7228
7303
  } else {
7229
7304
  delete o["synchronized"];
7230
7305
  var item = objectStore.get(o.tmpId);
7231
7306
  item.onsuccess = function () {
7232
- console.log(item.result);
7307
+ //console.log(item.result);
7233
7308
  if (item.result) {
7234
- console.log('objectStore.put(o)');
7309
+ //console.log('objectStore.put(o)');
7235
7310
  objectStore.put(o);
7236
7311
  } else {
7237
7312
  storedList.forEach(function (ee) {
@@ -7288,7 +7363,7 @@ window.ui = _$1.ui = function (cfg) {
7288
7363
  data: data
7289
7364
  });
7290
7365
  });else {
7291
- console.log(data);
7366
+ //console.log(data);
7292
7367
  me.MsgBox('El registro fue grabado exitosamente!', function () {
7293
7368
  me.close({
7294
7369
  success: true,
@@ -7297,7 +7372,7 @@ window.ui = _$1.ui = function (cfg) {
7297
7372
  });
7298
7373
  }
7299
7374
  })["catch"](function (r) {
7300
- console.log(r);
7375
+ //console.log(r);
7301
7376
  if (r.response) {
7302
7377
  var l, e;
7303
7378
  if (typeof r.response.data === 'string') {
@@ -7469,7 +7544,6 @@ window.ui = _$1.ui = function (cfg) {
7469
7544
  }
7470
7545
  }
7471
7546
  }
7472
-
7473
7547
  return ok;
7474
7548
  },
7475
7549
  showerror: _$1.showerror
@@ -7549,14 +7623,14 @@ function configureAxios(a) {
7549
7623
  }
7550
7624
  }
7551
7625
  if (e.config.error) {
7552
- console.log('error');
7626
+ //console.log('error');
7553
7627
  e.config.error(e, msg);
7554
7628
  } else {
7555
- console.log('mssg');
7629
+ //console.log('mssg');
7556
7630
  _$1.MsgBox('<b>' + e.request.responseURL + '</b><br/><br/>' + msg);
7557
7631
  }
7558
- console.log(msg);
7559
- console.log(r);
7632
+ //console.log(msg);
7633
+ //console.log(r);
7560
7634
  }
7561
7635
  delete axios__default["default"].error;
7562
7636
  return Promise.reject(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.178",
3
+ "version": "0.2.180",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [
@@ -30,6 +30,7 @@
30
30
  "vue-template-compiler": "^2.6.12"
31
31
  },
32
32
  "dependencies": {
33
+ "ol": "^8.2.0",
33
34
  "vue": "^2.6.12"
34
35
  }
35
36
  }