isobit-ui 0.1.41 → 0.1.44

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 +28 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.1.41
2
+ * isobit-ui v0.1.44
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3976,15 +3976,29 @@ var script$6 = {
3976
3976
  var me = this,
3977
3977
  el = me.$el,
3978
3978
  h = e.height;
3979
- el.style.height = h + 'px';
3979
+ el.style.height = h + 'px'; //si tiene header
3980
3980
 
3981
3981
  if (el.children[1]) {
3982
+ //se obtiene el alto del headr
3982
3983
  h = h - el.children[0].offsetHeight;
3983
3984
  el.children[1].style.height = h + 'px';
3984
- el.children[1].style.overflowY = 'auto';
3985
+ el.children[1].style.overflowY = 'auto'; //obtien el form
3986
+
3985
3987
  el = el.children[1].children[0];
3986
3988
  el.style.height = h + 'px';
3987
- el = el.children[0]; //Se espera el sea una tabla
3989
+ var el2; //,style2;
3990
+
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
+ }
3999
+ }
4000
+ });
4001
+ el = el2; //Se espera el sea una tabla
3988
4002
  } else {
3989
4003
  el = el.children[0];
3990
4004
  el.style.height = h + 'px';
@@ -5647,14 +5661,14 @@ var resize = function resize() {
5647
5661
  if (p.children[1]) buildPopupMenu(p.children[1]);
5648
5662
  return;
5649
5663
  } else if (pc[0].nodeName == "DIV") {
5650
- p = pc[0];
5651
- console.log("========");
5652
- console.log(p);
5664
+ p = pc[0]; //console.log("========");
5665
+ //console.log(p);
5666
+
5653
5667
  h = h - ph.offsetHeight - 0;
5654
5668
  p.style.height = h + 'px';
5655
5669
  p.style.overflowY = 'auto';
5656
- if (!p.classList.contains('ui-panel')) p = p.children[0]; //console.log(p);
5657
-
5670
+ if (!p.classList.contains('ui-panel')) p = p.children[0];
5671
+ console.log(p);
5658
5672
  var event = new Event("parentResize", {
5659
5673
  bubbles: true
5660
5674
  });
@@ -6920,6 +6934,11 @@ window.ui = _$1.ui = function (cfg) {
6920
6934
  console.log(d);
6921
6935
 
6922
6936
  for (var k = 0; k < d.length; k++) {
6937
+ if (d[k].errors) {
6938
+ me.MsgBox(JSON.stringify(d[k].errors));
6939
+ break;
6940
+ }
6941
+
6923
6942
  if (d[k].error) {
6924
6943
  me.MsgBox(d[k].error);
6925
6944
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.1.41",
3
+ "version": "0.1.44",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [