isobit-ui 0.0.549 → 0.0.552

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 -22
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.549
2
+ * isobit-ui v0.0.552
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3703,6 +3703,7 @@ var __vue_component__$7 = /*#__PURE__*/__vue_normalize__({
3703
3703
  //
3704
3704
  //
3705
3705
  //
3706
+ //
3706
3707
  var script$6 = {
3707
3708
  props: ['header', 'store', 'action'],
3708
3709
  watch: {
@@ -3727,7 +3728,6 @@ var script$6 = {
3727
3728
  var me = this,
3728
3729
  el = me.$el,
3729
3730
  h = e.height;
3730
- console.log(el);
3731
3731
  el.style.height = h + 'px';
3732
3732
  h = h - el.children[0].offsetHeight;
3733
3733
  el.children[1].style.height = h + 'px';
@@ -3756,7 +3756,6 @@ var script$6 = {
3756
3756
  return false;
3757
3757
  });
3758
3758
  me.$el.addEventListener("parentResize", function (e) {
3759
- console.log(e);
3760
3759
  if (e.target == me.$el) me.resize(e);
3761
3760
  });
3762
3761
  me.setTitle(me.header);
@@ -5382,7 +5381,7 @@ var resize = function resize() {
5382
5381
  document.body.children[0].style.height = h + '.px';
5383
5382
  var ph = document.querySelectorAll("#page-header,.ui-layout-north,.v-layout-north,.ion-page >ion-header");
5384
5383
  ph = ph[0];
5385
- var pc = document.querySelectorAll("#page-content,.ui-layout-pane-center,.v-layout-center ,.ion-page > ion-content,ion-header + .ui-panel"); //console.log(pc);
5384
+ var pc = document.querySelectorAll(".ion-page >ion-header + .ui-panel,#page-content,.ui-layout-pane-center,.v-layout-center ,.ion-page > ion-content"); //console.log(pc);
5386
5385
 
5387
5386
  if (pc && pc[0]) {
5388
5387
  //console.log('cccccccccccc');
@@ -5391,30 +5390,25 @@ var resize = function resize() {
5391
5390
  var p, i;
5392
5391
 
5393
5392
  if (pc[0].nodeName == "ION-CONTENT") {
5394
- p = pc[0];
5395
- h = h - ph.offsetHeight - 2;
5396
- p.children[0].style.height = h + 'px';
5397
- e = p.children[0].children;
5398
- h = h - e[0].offsetHeight - 2;
5399
- buildPopupMenu(e[1].children[0]);
5400
- e = e[1].children[0].children;
5401
-
5402
- for (i = 0; i < e.length; i++) {
5403
- //v-dataview
5404
- var event = new Event("parentResize", {
5405
- bubbles: true
5406
- });
5407
- event.height = h;
5408
- e[i].dispatchEvent(event);
5409
- }
5410
-
5393
+ p = pc[0].children[0];
5394
+ h = h - ph.offsetHeight - 0;
5395
+ p.style.height = h + 'px';
5396
+ p.style.overflowY = 'auto';
5397
+ if (!p.classList.contains('ui-panel')) p = p.children[0];
5398
+ console.log(p);
5399
+ var event = new Event("parentResize", {
5400
+ bubbles: true
5401
+ });
5402
+ event.height = h;
5403
+ p.dispatchEvent(event);
5404
+ if (p.children[1]) buildPopupMenu(p.children[1]);
5411
5405
  return;
5412
5406
  } else if (pc[0].nodeName == "DIV") {
5413
5407
  p = pc[0];
5414
5408
  h = h - ph.offsetHeight - 0;
5415
5409
  p.style.height = h + 'px';
5416
5410
  p.style.overflowY = 'auto';
5417
- p = p.children[0];
5411
+ if (!p.classList.contains('ui-panel')) p = p.children[0];
5418
5412
  console.log(p);
5419
5413
  var event = new Event("parentResize", {
5420
5414
  bubbles: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.549",
3
+ "version": "0.0.552",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [