isobit-ui 0.0.281 → 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 +25 -11
  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.282
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5623,22 +5623,36 @@ window.ui = _.ui = function (cfg) {
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.281",
3
+ "version": "0.0.282",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",