isobit-ui 0.0.531 → 0.0.534
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 +28 -27
- 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.534
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3598,6 +3598,26 @@ var script$6 = {
|
|
|
3598
3598
|
window.app.title = v;
|
|
3599
3599
|
}, 100);
|
|
3600
3600
|
}
|
|
3601
|
+
},
|
|
3602
|
+
resize: function resize(h) {
|
|
3603
|
+
var me = this,
|
|
3604
|
+
el = me.$el;
|
|
3605
|
+
el.style.height = h + 'px';
|
|
3606
|
+
h = h - el.children[0].offsetHeight;
|
|
3607
|
+
el.children[1].style.height = h + 'px';
|
|
3608
|
+
el.children[1].style.overflowY = 'auto';
|
|
3609
|
+
el = el.children[1].children[0];
|
|
3610
|
+
el.style.height = h + 'px';
|
|
3611
|
+
el = el.children[0];
|
|
3612
|
+
el.style.height = h + 'px';
|
|
3613
|
+
el = el.children[0];
|
|
3614
|
+
el.style.height = h + 'px';
|
|
3615
|
+
el = el.children[0];
|
|
3616
|
+
var event = new Event("parentResize", {
|
|
3617
|
+
bubbles: true
|
|
3618
|
+
});
|
|
3619
|
+
event.height = h;
|
|
3620
|
+
el.dispatchEvent(event);
|
|
3601
3621
|
}
|
|
3602
3622
|
},
|
|
3603
3623
|
updated: function updated() {
|
|
@@ -3711,8 +3731,7 @@ var script$6 = {
|
|
|
3711
3731
|
me.$el.querySelectorAll("select,input[type=date]:not(.__),input[type=text]:not(.__),textarea:not(.__)").forEach(function (e) {
|
|
3712
3732
|
e.addEventListener('focusout', f);
|
|
3713
3733
|
if (e.classList) e.classList.add("__");else e.className = "__";
|
|
3714
|
-
});
|
|
3715
|
-
resize();
|
|
3734
|
+
}); //resize();
|
|
3716
3735
|
},
|
|
3717
3736
|
mounted: function mounted() {
|
|
3718
3737
|
var me = this,
|
|
@@ -3727,26 +3746,6 @@ var script$6 = {
|
|
|
3727
3746
|
me.resize(e.height);
|
|
3728
3747
|
});
|
|
3729
3748
|
me.setTitle(me.header);
|
|
3730
|
-
},
|
|
3731
|
-
resize: function resize(h) {
|
|
3732
|
-
var me = this,
|
|
3733
|
-
el = me.$el;
|
|
3734
|
-
el.style.height = h + 'px';
|
|
3735
|
-
h = h - el.children[0].offsetHeight;
|
|
3736
|
-
el.children[1].style.height = h + 'px';
|
|
3737
|
-
el.children[1].style.overflowY = 'auto';
|
|
3738
|
-
el = el.children[1].children[0];
|
|
3739
|
-
el.style.height = h + 'px';
|
|
3740
|
-
el = el.children[0];
|
|
3741
|
-
el.style.height = h + 'px';
|
|
3742
|
-
el = el.children[0];
|
|
3743
|
-
el.style.height = h + 'px';
|
|
3744
|
-
el = el.children[0];
|
|
3745
|
-
var event = new Event("parentResize", {
|
|
3746
|
-
bubbles: true
|
|
3747
|
-
});
|
|
3748
|
-
event.height = h;
|
|
3749
|
-
el.dispatchEvent(event);
|
|
3750
3749
|
}
|
|
3751
3750
|
};
|
|
3752
3751
|
|
|
@@ -5249,13 +5248,13 @@ var buildPopupMenu = function buildPopupMenu(p) {
|
|
|
5249
5248
|
}
|
|
5250
5249
|
};
|
|
5251
5250
|
|
|
5252
|
-
var resize
|
|
5251
|
+
var resize = function resize() {
|
|
5253
5252
|
//dialog.style.left = (window.innerWidth - dialog.offsetWidth) / 2 + 'px';
|
|
5254
5253
|
var h = window.innerHeight;
|
|
5255
5254
|
document.body.children[0].style.height = h + '.px';
|
|
5256
5255
|
var ph = document.querySelectorAll("#page-header,.ui-layout-north,.v-layout-north,.ion-page >ion-header");
|
|
5257
5256
|
ph = ph[0];
|
|
5258
|
-
var pc = document.querySelectorAll("#page-content,.ui-layout-pane-center,.v-layout-center
|
|
5257
|
+
var pc = document.querySelectorAll("#page-content,.ui-layout-pane-center,.v-layout-center ,.ion-page > ion-content,ion-header + .ui-panel"); //console.log(pc);
|
|
5259
5258
|
|
|
5260
5259
|
if (pc && pc[0]) {
|
|
5261
5260
|
//console.log('cccccccccccc');
|
|
@@ -5285,6 +5284,8 @@ var resize$1 = function resize() {
|
|
|
5285
5284
|
} else if (pc[0].nodeName == "DIV") {
|
|
5286
5285
|
p = pc[0];
|
|
5287
5286
|
h = h - ph.offsetHeight - 0;
|
|
5287
|
+
p.style.height = h + 'px';
|
|
5288
|
+
p = p.children[0];
|
|
5288
5289
|
var event = new Event("parentResize", {
|
|
5289
5290
|
bubbles: true
|
|
5290
5291
|
});
|
|
@@ -5380,9 +5381,9 @@ var resize$1 = function resize() {
|
|
|
5380
5381
|
}
|
|
5381
5382
|
};
|
|
5382
5383
|
|
|
5383
|
-
setTimeout(Vue$1.resize = resize
|
|
5384
|
+
setTimeout(Vue$1.resize = resize, 400);
|
|
5384
5385
|
window.addEventListener('resize', function () {
|
|
5385
|
-
setTimeout(resize
|
|
5386
|
+
setTimeout(resize, 400);
|
|
5386
5387
|
});
|
|
5387
5388
|
|
|
5388
5389
|
function HTML2Canvas(props) {
|