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.
- package/dist/index.js +16 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
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("
|
|
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 -
|
|
5396
|
-
p.
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
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
|