isobit-ui 0.0.278 → 0.0.282
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 +29 -15
- 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.282
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4838,6 +4838,8 @@ _.sum = function (c) {
|
|
|
4838
4838
|
}, 0);
|
|
4839
4839
|
};
|
|
4840
4840
|
|
|
4841
|
+
Vue.id = _.id;
|
|
4842
|
+
|
|
4841
4843
|
Vue.pad = function (num, size) {
|
|
4842
4844
|
var s = num + "";
|
|
4843
4845
|
|
|
@@ -5416,7 +5418,7 @@ window.ui = _.ui = function (cfg) {
|
|
|
5416
5418
|
backPanel.style.display = 'block';
|
|
5417
5419
|
}
|
|
5418
5420
|
|
|
5419
|
-
|
|
5421
|
+
Vue.resize();
|
|
5420
5422
|
};
|
|
5421
5423
|
|
|
5422
5424
|
if (for_ && for_.classList.contains('panel')) {
|
|
@@ -5615,30 +5617,42 @@ window.ui = _.ui = function (cfg) {
|
|
|
5615
5617
|
}
|
|
5616
5618
|
|
|
5617
5619
|
dialog.style.display = 'block';
|
|
5618
|
-
|
|
5619
|
-
_.resize();
|
|
5620
|
-
|
|
5620
|
+
Vue.resize();
|
|
5621
5621
|
document.documentElement.style.overflow = 'hidden'; // firefox, chrome
|
|
5622
5622
|
|
|
5623
5623
|
document.body.scroll = "no"; // ie only
|
|
5624
5624
|
},
|
|
5625
5625
|
close: function close(ok) {
|
|
5626
|
-
|
|
5626
|
+
if (ok.$el) ok = ok.$el;
|
|
5627
|
+
var dlg = ok instanceof HTMLElement ? ok : null;
|
|
5627
5628
|
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
}
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
//Solo se debe ocultaqr si es la marcara del dlg
|
|
5629
|
+
try {
|
|
5630
|
+
if (!dlg && event.target instanceof HTMLElement) dlg = _.closest(event.target, '.v-dialog');
|
|
5631
|
+
} catch (e) {
|
|
5632
|
+
console.log(e);
|
|
5633
|
+
}
|
|
5634
5634
|
|
|
5635
|
-
|
|
5636
|
-
|
|
5635
|
+
if (!dlg) dlg = this.$el.parentElement;
|
|
5636
|
+
var mask = dlg.parentElement;
|
|
5637
|
+
|
|
5638
|
+
if (!mask && window.app.$router) {
|
|
5639
|
+
window.app.$router.back();
|
|
5640
|
+
return;
|
|
5637
5641
|
}
|
|
5638
5642
|
|
|
5643
|
+
dlg.style.display = "none";
|
|
5644
|
+
if ((' ' + mask.className + ' ').indexOf(' v-overlay ') > -1) mask.style.display = "none";else mask = null;
|
|
5645
|
+
|
|
5646
|
+
_.resize();
|
|
5647
|
+
|
|
5639
5648
|
var cb = _.storeFunction[dlg.getAttribute("callback")];
|
|
5640
5649
|
|
|
5641
|
-
if (cb) cb(ok);
|
|
5650
|
+
if (cb) cb(ok);
|
|
5651
|
+
dlg.parentNode.removeChild(dlg);
|
|
5652
|
+
if (mask) mask.parentNode.removeChild(mask);
|
|
5653
|
+
document.documentElement.style.overflow = 'auto'; // firefox, chrome
|
|
5654
|
+
|
|
5655
|
+
document.body.scroll = "yes"; //si history esta activo
|
|
5642
5656
|
//history.back();
|
|
5643
5657
|
},
|
|
5644
5658
|
refresh: function refresh() {
|