isobit-ui 0.1.12 → 0.1.15
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 +30 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.1.
|
|
2
|
+
* isobit-ui v0.1.15
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5641,6 +5641,8 @@ var resize = function resize() {
|
|
|
5641
5641
|
return;
|
|
5642
5642
|
} else if (pc[0].nodeName == "DIV") {
|
|
5643
5643
|
p = pc[0];
|
|
5644
|
+
console.log("========");
|
|
5645
|
+
console.log(p);
|
|
5644
5646
|
h = h - ph.offsetHeight - 0;
|
|
5645
5647
|
p.style.height = h + 'px';
|
|
5646
5648
|
p.style.overflowY = 'auto';
|
|
@@ -6490,6 +6492,9 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6490
6492
|
me.ddd(me.$root);
|
|
6491
6493
|
},
|
|
6492
6494
|
methods: {
|
|
6495
|
+
resize: function resize() {
|
|
6496
|
+
Vue$1.resize();
|
|
6497
|
+
},
|
|
6493
6498
|
bindLinks: function bindLinks(el, callback) {
|
|
6494
6499
|
var me = this;
|
|
6495
6500
|
el = el ? el : me.$el; //console.log(el);
|
|
@@ -7141,6 +7146,26 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7141
7146
|
fileName: config
|
|
7142
7147
|
} : config;
|
|
7143
7148
|
if (!cfg) cfg = {};
|
|
7149
|
+
/*
|
|
7150
|
+
str = "Hello!\nI'm text string";
|
|
7151
|
+
var strblob = new Blob([str], {type: 'text/plain'});
|
|
7152
|
+
|
|
7153
|
+
var formdata = new FormData();
|
|
7154
|
+
formdata.append("file", strblob, "file.txt");
|
|
7155
|
+
formdata.append("field-1", "field-1-data");
|
|
7156
|
+
|
|
7157
|
+
var requestOptions = {
|
|
7158
|
+
method: 'POST',
|
|
7159
|
+
body: formdata,
|
|
7160
|
+
redirect: 'follow'
|
|
7161
|
+
};
|
|
7162
|
+
|
|
7163
|
+
fetch("http://{url}", requestOptions)
|
|
7164
|
+
.then(response => response.text())
|
|
7165
|
+
.then(result => console.log(result))
|
|
7166
|
+
.catch(error => console.log('error', error))
|
|
7167
|
+
*/
|
|
7168
|
+
|
|
7144
7169
|
axios$1.post(url, o, {
|
|
7145
7170
|
responseType: 'blob'
|
|
7146
7171
|
}).then(function (response) {
|
|
@@ -7342,6 +7367,10 @@ function configureAxios(a) {
|
|
|
7342
7367
|
|
|
7343
7368
|
mask = _$1.unmask(mask);
|
|
7344
7369
|
|
|
7370
|
+
if (r && r.status == 401) {
|
|
7371
|
+
if (window.app) window.app.logout();
|
|
7372
|
+
}
|
|
7373
|
+
|
|
7345
7374
|
if (e.config.error) {
|
|
7346
7375
|
e.config.error(e, msg);
|
|
7347
7376
|
} else {
|