isobit-ui 0.1.67 → 0.1.68

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 +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.1.64
2
+ * isobit-ui v0.1.68
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -6832,7 +6832,9 @@ window.ui = _$1.ui = function (cfg) {
6832
6832
  response = response.$el;
6833
6833
  path = {};
6834
6834
  } else if (response instanceof HTMLElement) {
6835
- path = {};
6835
+ path = path && path.closeOnClickOut ? path : {};
6836
+ console.log("PATH====");
6837
+ console.log(path);
6836
6838
  } else if (response.target) {
6837
6839
  el = response.target;
6838
6840
  return me.open(el.pathname ? el.pathname : el.href);
@@ -6886,6 +6888,8 @@ window.ui = _$1.ui = function (cfg) {
6886
6888
  path = response;
6887
6889
  }
6888
6890
 
6891
+ console.log("PATH====222");
6892
+ console.log(path);
6889
6893
  var dialog,
6890
6894
  nid = Vue$1.id(),
6891
6895
  scriptDom = [],
@@ -7134,6 +7138,10 @@ window.ui = _$1.ui = function (cfg) {
7134
7138
  }
7135
7139
  }
7136
7140
 
7141
+ if (path.closeOnClickOut) {
7142
+ dialog.parentNode.addEventListener("click", close);
7143
+ }
7144
+
7137
7145
  dialog.style.display = 'block';
7138
7146
  Vue$1.resize();
7139
7147
  document.documentElement.style.overflow = 'hidden'; // firefox, chrome
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [