isobit-ui 0.1.10 → 0.1.14
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 +32 -13
- 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.14
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3966,7 +3966,7 @@ var script$6 = {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
},
|
|
3968
3968
|
resize: function resize(e) {
|
|
3969
|
-
console.log('form.resize');
|
|
3969
|
+
//console.log('form.resize');
|
|
3970
3970
|
var me = this,
|
|
3971
3971
|
el = me.$el,
|
|
3972
3972
|
h = e.height;
|
|
@@ -4076,14 +4076,9 @@ var script$6 = {
|
|
|
4076
4076
|
|
|
4077
4077
|
if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
|
|
4078
4078
|
previousElementSibling.parentNode.removeChild(previousElementSibling);
|
|
4079
|
-
}
|
|
4080
|
-
|
|
4079
|
+
}
|
|
4081
4080
|
|
|
4082
4081
|
if (!(e.disabled || e.getAttribute('disabled')) && (e.required || e.tagName === 'DIV')) {
|
|
4083
|
-
//console.log([e]);
|
|
4084
|
-
//console.log(e.value);console.log(e.nodeValue);
|
|
4085
|
-
////console.log('----');
|
|
4086
|
-
//console.log(e);
|
|
4087
4082
|
if (e.tagName != 'DIV' && !e.value
|
|
4088
4083
|
/*||e.value == 0*/
|
|
4089
4084
|
|| e.tagName === 'DIV' && !e.attributes.value) {
|
|
@@ -4103,7 +4098,6 @@ var script$6 = {
|
|
|
4103
4098
|
|
|
4104
4099
|
var error = document.createElement("div");
|
|
4105
4100
|
error.innerHTML = "Este campo es requerido!";
|
|
4106
|
-
ok = false;
|
|
4107
4101
|
error.classList.add("v-error");
|
|
4108
4102
|
e.parentNode.insertBefore(error, e);
|
|
4109
4103
|
}
|
|
@@ -5617,8 +5611,8 @@ var buildPopupMenu = function buildPopupMenu(p) {
|
|
|
5617
5611
|
};
|
|
5618
5612
|
|
|
5619
5613
|
var resize = function resize() {
|
|
5620
|
-
console.log('resize');
|
|
5621
|
-
|
|
5614
|
+
//console.log('resize');
|
|
5615
|
+
//dialog.style.left = (window.innerWidth - dialog.offsetWidth) / 2 + 'px';
|
|
5622
5616
|
var h = window.innerHeight;
|
|
5623
5617
|
document.body.children[0].style.height = h + '.px';
|
|
5624
5618
|
var ph = document.querySelectorAll("#page-header,.ui-layout-north,.v-layout-north,.ion-page >ion-header");
|
|
@@ -5647,6 +5641,8 @@ var resize = function resize() {
|
|
|
5647
5641
|
return;
|
|
5648
5642
|
} else if (pc[0].nodeName == "DIV") {
|
|
5649
5643
|
p = pc[0];
|
|
5644
|
+
console.log("========");
|
|
5645
|
+
console.log(p);
|
|
5650
5646
|
h = h - ph.offsetHeight - 0;
|
|
5651
5647
|
p.style.height = h + 'px';
|
|
5652
5648
|
p.style.overflowY = 'auto';
|
|
@@ -7147,6 +7143,26 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7147
7143
|
fileName: config
|
|
7148
7144
|
} : config;
|
|
7149
7145
|
if (!cfg) cfg = {};
|
|
7146
|
+
/*
|
|
7147
|
+
str = "Hello!\nI'm text string";
|
|
7148
|
+
var strblob = new Blob([str], {type: 'text/plain'});
|
|
7149
|
+
|
|
7150
|
+
var formdata = new FormData();
|
|
7151
|
+
formdata.append("file", strblob, "file.txt");
|
|
7152
|
+
formdata.append("field-1", "field-1-data");
|
|
7153
|
+
|
|
7154
|
+
var requestOptions = {
|
|
7155
|
+
method: 'POST',
|
|
7156
|
+
body: formdata,
|
|
7157
|
+
redirect: 'follow'
|
|
7158
|
+
};
|
|
7159
|
+
|
|
7160
|
+
fetch("http://{url}", requestOptions)
|
|
7161
|
+
.then(response => response.text())
|
|
7162
|
+
.then(result => console.log(result))
|
|
7163
|
+
.catch(error => console.log('error', error))
|
|
7164
|
+
*/
|
|
7165
|
+
|
|
7150
7166
|
axios$1.post(url, o, {
|
|
7151
7167
|
responseType: 'blob'
|
|
7152
7168
|
}).then(function (response) {
|
|
@@ -7194,8 +7210,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7194
7210
|
|
|
7195
7211
|
if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
|
|
7196
7212
|
previousElementSibling.parentNode.removeChild(previousElementSibling);
|
|
7197
|
-
}
|
|
7198
|
-
|
|
7213
|
+
}
|
|
7199
7214
|
|
|
7200
7215
|
if (!(e.disabled || e.getAttribute('disabled')) && (e.required || e.tagName === 'DIV')) {
|
|
7201
7216
|
//console.log([e]);
|
|
@@ -7349,6 +7364,10 @@ function configureAxios(a) {
|
|
|
7349
7364
|
|
|
7350
7365
|
mask = _$1.unmask(mask);
|
|
7351
7366
|
|
|
7367
|
+
if (r && r.status == 401) {
|
|
7368
|
+
if (window.app) window.app.logout();
|
|
7369
|
+
}
|
|
7370
|
+
|
|
7352
7371
|
if (e.config.error) {
|
|
7353
7372
|
e.config.error(e, msg);
|
|
7354
7373
|
} else {
|