isobit-ui 0.0.279 → 0.0.283

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