isobit-ui 0.1.16 → 0.1.19
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 +27 -18
- 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.19
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3971,12 +3971,19 @@ var script$6 = {
|
|
|
3971
3971
|
el = me.$el,
|
|
3972
3972
|
h = e.height;
|
|
3973
3973
|
el.style.height = h + 'px';
|
|
3974
|
-
|
|
3975
|
-
el.children[1]
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3974
|
+
|
|
3975
|
+
if (el.children[1]) {
|
|
3976
|
+
h = h - el.children[0].offsetHeight;
|
|
3977
|
+
el.children[1].style.height = h + 'px';
|
|
3978
|
+
el.children[1].style.overflowY = 'auto';
|
|
3979
|
+
el = el.children[1].children[0];
|
|
3980
|
+
el.style.height = h + 'px';
|
|
3981
|
+
el = el.children[0]; //Se espera el sea una tabla
|
|
3982
|
+
} else {
|
|
3983
|
+
el = el.children[0];
|
|
3984
|
+
el.style.height = h + 'px';
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3980
3987
|
h = h - 20;
|
|
3981
3988
|
el.style.overflowY = 'auto';
|
|
3982
3989
|
el.style.height = h + 'px';
|
|
@@ -7065,6 +7072,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7065
7072
|
};
|
|
7066
7073
|
}
|
|
7067
7074
|
|
|
7075
|
+
console.log('-----save');
|
|
7076
|
+
console.log(data);
|
|
7068
7077
|
if (me.app && me.app.toast) me.app.toast('El registro fue grabado exitosamente!', function () {
|
|
7069
7078
|
me.close({
|
|
7070
7079
|
success: true,
|
|
@@ -7138,17 +7147,9 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7138
7147
|
} : config;
|
|
7139
7148
|
if (!cfg) cfg = {};
|
|
7140
7149
|
/*
|
|
7141
|
-
str = "Hello!\nI'm text string";
|
|
7142
|
-
var strblob = new Blob([str], {type: 'text/plain'});
|
|
7143
|
-
|
|
7144
|
-
var formdata = new FormData();
|
|
7145
|
-
formdata.append("file", strblob, "file.txt");
|
|
7146
|
-
formdata.append("field-1", "field-1-data");
|
|
7147
|
-
|
|
7148
7150
|
var requestOptions = {
|
|
7149
7151
|
method: 'POST',
|
|
7150
|
-
body: formdata
|
|
7151
|
-
redirect: 'follow'
|
|
7152
|
+
body: formdata
|
|
7152
7153
|
};
|
|
7153
7154
|
|
|
7154
7155
|
fetch("http://{url}", requestOptions)
|
|
@@ -7157,9 +7158,17 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7157
7158
|
.catch(error => console.log('error', error))
|
|
7158
7159
|
*/
|
|
7159
7160
|
|
|
7160
|
-
axios$1.post(url, o, {
|
|
7161
|
+
var a = "" + o ? axios$1.post(url, o, {
|
|
7161
7162
|
responseType: 'blob'
|
|
7162
|
-
})
|
|
7163
|
+
}) : axios$1({
|
|
7164
|
+
method: "post",
|
|
7165
|
+
url: url,
|
|
7166
|
+
data: o,
|
|
7167
|
+
headers: {
|
|
7168
|
+
"Content-Type": "multipart/form-data"
|
|
7169
|
+
}
|
|
7170
|
+
});
|
|
7171
|
+
a.then(function (response) {
|
|
7163
7172
|
//console.log(response);
|
|
7164
7173
|
var url = window.URL.createObjectURL(new Blob([response.data]));
|
|
7165
7174
|
var link = document.createElement('a');
|