isobit-ui 0.0.288 → 0.0.292
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 +50 -4
- 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.292
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4582,6 +4582,37 @@ Vue.n = function (v) {
|
|
|
4582
4582
|
return v;
|
|
4583
4583
|
};
|
|
4584
4584
|
|
|
4585
|
+
if (typeof JSON.clone !== "function") {
|
|
4586
|
+
JSON.clone = function (obj) {
|
|
4587
|
+
return JSON.parse(JSON.stringify(obj));
|
|
4588
|
+
};
|
|
4589
|
+
}
|
|
4590
|
+
|
|
4591
|
+
if (typeof Object.assign != 'function') {
|
|
4592
|
+
Object.assign = function (target) {
|
|
4593
|
+
|
|
4594
|
+
if (target == null) {
|
|
4595
|
+
throw new TypeError('Cannot convert undefined or null to object');
|
|
4596
|
+
}
|
|
4597
|
+
|
|
4598
|
+
var to = Object(target);
|
|
4599
|
+
|
|
4600
|
+
for (var index = 1; index < arguments.length; index++) {
|
|
4601
|
+
var nextSource = arguments[index];
|
|
4602
|
+
|
|
4603
|
+
if (nextSource != null) {
|
|
4604
|
+
for (var nextKey in nextSource) {
|
|
4605
|
+
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
4606
|
+
to[nextKey] = nextSource[nextKey];
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
}
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
return to;
|
|
4613
|
+
};
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4585
4616
|
var resize = function resize() {
|
|
4586
4617
|
//dialog.style.left = (window.innerWidth - dialog.offsetWidth) / 2 + 'px';
|
|
4587
4618
|
var h = window.innerHeight;
|
|
@@ -4918,6 +4949,23 @@ _ = Object.assign(_, {
|
|
|
4918
4949
|
|
|
4919
4950
|
return i;
|
|
4920
4951
|
},
|
|
4952
|
+
print: function print(o) {
|
|
4953
|
+
var e = document.createElement('iframe');
|
|
4954
|
+
document.body.appendChild(e);
|
|
4955
|
+
var d = e.contentWindow.document;
|
|
4956
|
+
e.style.display = 'none';
|
|
4957
|
+
d.open();
|
|
4958
|
+
d.write('<html><head><title>TT' + o.title + '</title>');
|
|
4959
|
+
d.write('<link rel="stylesheet" type="text/css" href="/cdn/isobit.css?v=0004">' + '<style>table{background-color:red}</style>');
|
|
4960
|
+
d.write('</head><body style="padding:20px;background-color:white !important">');
|
|
4961
|
+
d.write('<style>body, body > * {padding:20px;background-color:white !important }</style>');
|
|
4962
|
+
d.write('<h1>' + o.title + '</h1>');
|
|
4963
|
+
d.write(o.body);
|
|
4964
|
+
d.write('</body></html>');
|
|
4965
|
+
d.close();
|
|
4966
|
+
e.focus();
|
|
4967
|
+
e.contentWindow.print();
|
|
4968
|
+
},
|
|
4921
4969
|
mask: function mask(ms, cfg) {
|
|
4922
4970
|
if (!document.body) return;
|
|
4923
4971
|
var center = document.createElement("div");
|
|
@@ -5307,8 +5355,6 @@ _.MsgBox = function MsgBox(m, cb, b) {
|
|
|
5307
5355
|
Vue.resize();
|
|
5308
5356
|
};
|
|
5309
5357
|
|
|
5310
|
-
window._.baseURL = window.axios.defaults.baseURL;
|
|
5311
|
-
|
|
5312
5358
|
function isObject(item) {
|
|
5313
5359
|
return item && _typeof(item) === 'object' && !Array.isArray(item);
|
|
5314
5360
|
}
|
|
@@ -5382,7 +5428,7 @@ window.ui = _.ui = function (cfg) {
|
|
|
5382
5428
|
return t ? t.selected.length : 0;
|
|
5383
5429
|
},
|
|
5384
5430
|
baseURL: function baseURL() {
|
|
5385
|
-
return
|
|
5431
|
+
return Vue.baseURL ? Vue.baseURL : axios.defaults.baseURL;
|
|
5386
5432
|
},
|
|
5387
5433
|
session: function session() {
|
|
5388
5434
|
return window.app.session;
|