isobit-ui 0.1.49 → 0.1.52

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 +16 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.1.49
2
+ * isobit-ui v0.1.52
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3987,16 +3987,21 @@ var script$6 = {
3987
3987
  el.style.height = h + 'px';
3988
3988
  var el2; //,style2;
3989
3989
 
3990
- el.children.forEach(function (ee) {
3991
- if (!el2) {
3992
- //style2 = window.getComputedStyle(ee);
3993
- if (!ee.classList.contains('v-scrollable') && !ee.classList.contains('v-resize')) {
3994
- h -= ee.offsetHeight + 2;
3995
- } else {
3996
- el2 = ee;
3990
+ if (el.children.forEach) {
3991
+ el.children.forEach(function (ee) {
3992
+ if (!el2) {
3993
+ //style2 = window.getComputedStyle(ee);
3994
+ if (!ee.classList.contains('v-scrollable') && !ee.classList.contains('v-resize')) {
3995
+ h -= ee.offsetHeight + 2;
3996
+ } else {
3997
+ el2 = ee;
3998
+ }
3997
3999
  }
3998
- }
3999
- });
4000
+ });
4001
+ } else {
4002
+ el2 = el.children[0];
4003
+ }
4004
+
4000
4005
  el = el2; // console.log(el);
4001
4006
  //Se espera el sea una tabla
4002
4007
  } else {
@@ -6717,7 +6722,7 @@ window.ui = _$1.ui = function (cfg) {
6717
6722
  return str.replace(_$1.contextPath, _$1.contextPath + '/api');
6718
6723
  },
6719
6724
  open: function open(response, path, o) {
6720
- if (!(response instanceof HTMLElement)) {
6725
+ if (!response.$el && !(response instanceof HTMLElement)) {
6721
6726
  var e = response;
6722
6727
  var t = e.target;
6723
6728
  var me = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.1.49",
3
+ "version": "0.1.52",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [