isobit-ui 0.0.278 → 0.0.282

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 +29 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.278
2
+ * isobit-ui v0.0.282
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -4838,6 +4838,8 @@ _.sum = function (c) {
4838
4838
  }, 0);
4839
4839
  };
4840
4840
 
4841
+ Vue.id = _.id;
4842
+
4841
4843
  Vue.pad = function (num, size) {
4842
4844
  var s = num + "";
4843
4845
 
@@ -5416,7 +5418,7 @@ window.ui = _.ui = function (cfg) {
5416
5418
  backPanel.style.display = 'block';
5417
5419
  }
5418
5420
 
5419
- _.resize();
5421
+ Vue.resize();
5420
5422
  };
5421
5423
 
5422
5424
  if (for_ && for_.classList.contains('panel')) {
@@ -5615,30 +5617,42 @@ window.ui = _.ui = function (cfg) {
5615
5617
  }
5616
5618
 
5617
5619
  dialog.style.display = 'block';
5618
-
5619
- _.resize();
5620
-
5620
+ Vue.resize();
5621
5621
  document.documentElement.style.overflow = 'hidden'; // firefox, chrome
5622
5622
 
5623
5623
  document.body.scroll = "no"; // ie only
5624
5624
  },
5625
5625
  close: function close(ok) {
5626
- var dlg = this.$el.parentElement;
5626
+ if (ok.$el) ok = ok.$el;
5627
+ var dlg = ok instanceof HTMLElement ? ok : null;
5627
5628
 
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
5629
+ try {
5630
+ if (!dlg && event.target instanceof HTMLElement) dlg = _.closest(event.target, '.v-dialog');
5631
+ } catch (e) {
5632
+ console.log(e);
5633
+ }
5634
5634
 
5635
- if ((' ' + mask.className + ' ').indexOf(' v-overlay ') > -1) mask.style.display = "none";
5636
- Vue.resize();
5635
+ if (!dlg) dlg = this.$el.parentElement;
5636
+ var mask = dlg.parentElement;
5637
+
5638
+ if (!mask && window.app.$router) {
5639
+ window.app.$router.back();
5640
+ return;
5637
5641
  }
5638
5642
 
5643
+ dlg.style.display = "none";
5644
+ if ((' ' + mask.className + ' ').indexOf(' v-overlay ') > -1) mask.style.display = "none";else mask = null;
5645
+
5646
+ _.resize();
5647
+
5639
5648
  var cb = _.storeFunction[dlg.getAttribute("callback")];
5640
5649
 
5641
- if (cb) cb(ok); //si history esta activo
5650
+ if (cb) cb(ok);
5651
+ dlg.parentNode.removeChild(dlg);
5652
+ if (mask) mask.parentNode.removeChild(mask);
5653
+ document.documentElement.style.overflow = 'auto'; // firefox, chrome
5654
+
5655
+ document.body.scroll = "yes"; //si history esta activo
5642
5656
  //history.back();
5643
5657
  },
5644
5658
  refresh: function refresh() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.278",
3
+ "version": "0.0.282",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",