isobit-ui 0.0.281 → 0.0.284

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 +47 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.281
2
+ * isobit-ui v0.0.284
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -32,6 +32,18 @@ function _typeof(obj) {
32
32
  return _typeof(obj);
33
33
  }
34
34
 
35
+ function _toConsumableArray(arr) {
36
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
37
+ }
38
+
39
+ function _arrayWithoutHoles(arr) {
40
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
41
+ }
42
+
43
+ function _iterableToArray(iter) {
44
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
45
+ }
46
+
35
47
  function _unsupportedIterableToArray(o, minLen) {
36
48
  if (!o) return;
37
49
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -49,6 +61,10 @@ function _arrayLikeToArray(arr, len) {
49
61
  return arr2;
50
62
  }
51
63
 
64
+ function _nonIterableSpread() {
65
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
66
+ }
67
+
52
68
  function _createForOfIteratorHelper(o, allowArrayLike) {
53
69
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
54
70
 
@@ -1475,12 +1491,12 @@ var script$d = {
1475
1491
  }
1476
1492
  },
1477
1493
  mounted: function mounted() {
1478
- var me = this;
1479
- console.log('mounted');
1494
+ var me = this; //console.log('mounted');
1495
+
1480
1496
  me.columns.forEach(function (e) {
1481
1497
  console.log(e.filter);
1482
- });
1483
- console.log(me.$el.querySelectorAll('.v-datatable-scrollable-header-box > th'));
1498
+ }); //console.log(me.$el.querySelectorAll('.v-datatable-scrollable-header-box > th'));
1499
+
1484
1500
  var h = me.$el.style ? me.$el.style.height : null;
1485
1501
 
1486
1502
  if (h) {
@@ -1603,8 +1619,8 @@ var script$d = {
1603
1619
  var f = me.columns[i - (me.selectable0 ? 1 : 0)]; //cltd.setAttribute("ind", '' + (i - (me.selectable0?1:0)));
1604
1620
 
1605
1621
  if (f && f.filter && f.filter.elm) {
1606
- console.log(f.filter.elm.children);
1607
- console.log(_typeof(f.filter.elm.children));
1622
+ //console.log(f.filter.elm.children);
1623
+ //console.log(typeof f.filter.elm.children);
1608
1624
  if (f.filter.elm.children.forEach) f.filter.elm.children.forEach(function (ef) {
1609
1625
  return e.appendChild(ef);
1610
1626
  });else {
@@ -4561,7 +4577,7 @@ function _invoke(body, then) {
4561
4577
  }
4562
4578
 
4563
4579
  window.isMobile = 1;
4564
- Vue.config.ignoredElements = ['v-filter', 'v-footer'];
4580
+ Vue.config.ignoredElements = [].concat(_toConsumableArray(Vue.config.ignoredElements || []), ['v-filter', 'v-footer']);
4565
4581
 
4566
4582
  Vue.n = function (v) {
4567
4583
  v = v ? v == '' ? null : Number('' + v) : 0;
@@ -5623,22 +5639,35 @@ window.ui = _.ui = function (cfg) {
5623
5639
  document.body.scroll = "no"; // ie only
5624
5640
  },
5625
5641
  close: function close(ok) {
5626
- var dlg = this.$el.parentElement;
5642
+ if (ok.$el) ok = ok.$el;
5643
+ var dlg = ok instanceof HTMLElement ? ok : null;
5627
5644
 
5628
- if (window.app) {
5629
- window.app.$router.back();
5630
- } else {
5631
- var mask = dlg.parentElement;
5632
- dlg.style.display = "none"; //console.log(mask);
5633
- //Solo se debe ocultaqr si es la marcara del dlg
5645
+ try {
5646
+ if (!dlg && event.target instanceof HTMLElement) dlg = _.closest(event.target, '.v-dialog');
5647
+ } catch (e) {
5648
+ console.log(e);
5649
+ }
5634
5650
 
5635
- if ((' ' + mask.className + ' ').indexOf(' v-overlay ') > -1) mask.style.display = "none";
5636
- Vue.resize();
5651
+ if (!dlg) dlg = this.$el.parentElement;
5652
+ var mask = dlg.parentElement;
5653
+
5654
+ if (!mask && window.app.$router) {
5655
+ window.app.$router.back();
5656
+ return;
5637
5657
  }
5638
5658
 
5659
+ dlg.style.display = "none";
5660
+ if ((' ' + mask.className + ' ').indexOf(' v-overlay ') > -1) mask.style.display = "none";else mask = null;
5661
+ Vue.resize();
5662
+
5639
5663
  var cb = _.storeFunction[dlg.getAttribute("callback")];
5640
5664
 
5641
- if (cb) cb(ok); //si history esta activo
5665
+ if (cb) cb(ok);
5666
+ dlg.parentNode.removeChild(dlg);
5667
+ if (mask) mask.parentNode.removeChild(mask);
5668
+ document.documentElement.style.overflow = 'auto'; // firefox, chrome
5669
+
5670
+ document.body.scroll = "yes"; //si history esta activo
5642
5671
  //history.back();
5643
5672
  },
5644
5673
  refresh: function refresh() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.281",
3
+ "version": "0.0.284",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",