isobit-ui 0.2.173 → 0.2.175

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 +53 -44
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.172
2
+ * isobit-ui v0.2.174
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1069,6 +1069,11 @@ var script$j = {
1069
1069
  this.setTitle(v);
1070
1070
  }
1071
1071
  },
1072
+ data: function data() {
1073
+ return {
1074
+ timer: null
1075
+ };
1076
+ },
1072
1077
  methods: {
1073
1078
  setTitle: function setTitle(v) {
1074
1079
  var me = this,
@@ -1091,52 +1096,56 @@ var script$j = {
1091
1096
  h = e.height;
1092
1097
  el.style.height = h + "px";
1093
1098
  //si tiene header
1099
+ if (me.timer) clearTimeout(me.timer);
1100
+
1101
+ // Set a new timer to run the function 'handleResize' after a specific delay (e.g., 500 milliseconds)
1102
+ me.timer = setTimeout(function () {
1103
+ if (el.children[1]) {
1104
+ console.log(el.children[0].textContent);
1105
+ console.log(el.children[0]);
1106
+ console.log(el.children[0].offsetHeight);
1107
+ //se obtiene el alto del headr
1108
+ h = h - el.children[0].offsetHeight;
1109
+ el.children[1].style.height = h + "px";
1110
+ el.children[1].style.overflowY = "auto";
1111
+
1112
+ //obtien el form
1113
+ el = el.children[1].children[0];
1114
+ el.style.height = h + "px";
1115
+ if (el.children) {
1116
+ el.parentNode.style.overflowY = 'hidden';
1117
+ el.parentNode.style.overflow = 'hidden';
1118
+ }
1119
+ var el2; //,style2;
1094
1120
 
1095
- if (el.children[1]) {
1096
- console.log(el.children[0].textContent);
1097
- console.log(el.children[0]);
1098
- console.log(el.children[0].offsetHeight);
1099
- //se obtiene el alto del headr
1100
- h = h - el.children[0].offsetHeight;
1101
- el.children[1].style.height = h + "px";
1102
- el.children[1].style.overflowY = "auto";
1103
-
1104
- //obtien el form
1105
- el = el.children[1].children[0];
1106
- el.style.height = h + "px";
1107
- if (el.children) {
1108
- el.parentNode.style.overflowY = 'hidden';
1109
- el.parentNode.style.overflow = 'hidden';
1121
+ [].forEach.call(el.children, function (ee, i) {
1122
+ if (i == el.children.length - 1 && ee.tagName == "CENTER" || !ee.classList.contains("v-scrollable") && !ee.classList.contains("v-form") && !ee.classList.contains("v-resize")) {
1123
+ h -= me.getAbsoluteHeight(ee);
1124
+ } else if (!el2) {
1125
+ el2 = ee;
1126
+ }
1127
+ });
1128
+ el = el2;
1129
+ // console.log(el);
1130
+ //Se espera el sea una tabla
1131
+ } else {
1132
+ el = el.children[0];
1133
+ el.style.height = h + "px";
1110
1134
  }
1111
- var el2; //,style2;
1112
-
1113
- [].forEach.call(el.children, function (ee, i) {
1114
- if (i == el.children.length - 1 && ee.tagName == "CENTER" || !ee.classList.contains("v-scrollable") && !ee.classList.contains("v-form") && !ee.classList.contains("v-resize")) {
1115
- h -= me.getAbsoluteHeight(ee);
1116
- } else if (!el2) {
1117
- el2 = ee;
1118
- }
1119
- });
1120
- el = el2;
1121
- // console.log(el);
1122
- //Se espera el sea una tabla
1123
- } else {
1124
- el = el.children[0];
1125
- el.style.height = h + "px";
1126
- }
1127
- if (el) {
1128
- el.style.overflowY = "auto";
1129
- el.style.height = h + "px";
1130
- var event = new Event("parentResize", {
1131
- bubbles: true
1132
- });
1133
- event.height = h;
1134
- //console.log(el.children[0]);
1135
+ if (el) {
1136
+ el.style.overflowY = "auto";
1137
+ el.style.height = h + "px";
1138
+ var event = new Event("parentResize", {
1139
+ bubbles: true
1140
+ });
1141
+ event.height = h;
1142
+ //console.log(el.children[0]);
1135
1143
 
1136
- el.children[0].dispatchEvent(event);
1137
- event.$target = me;
1138
- me.$emit("resize", event);
1139
- }
1144
+ el.children[0].dispatchEvent(event);
1145
+ event.$target = me;
1146
+ me.$emit("resize", event);
1147
+ }
1148
+ }, 500);
1140
1149
  }
1141
1150
  },
1142
1151
  mounted: function mounted() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.173",
3
+ "version": "0.2.175",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [