isobit-ui 0.0.307 → 0.0.308
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 -28
- 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.308
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5038,6 +5038,33 @@ _$1 = Object.assign(_$1, {
|
|
|
5038
5038
|
|
|
5039
5039
|
return i;
|
|
5040
5040
|
},
|
|
5041
|
+
showerror: function showerror(e, m) {
|
|
5042
|
+
var previousSibling = e.previousSibling;
|
|
5043
|
+
|
|
5044
|
+
if (previousSibling && previousSibling.classList && previousSibling.classList.contains('v-error')) {
|
|
5045
|
+
previousSibling.parentNode.removeChild(previousSibling);
|
|
5046
|
+
}
|
|
5047
|
+
|
|
5048
|
+
previousSibling = e.previousSibling;
|
|
5049
|
+
|
|
5050
|
+
while (previousSibling && previousSibling.nodeType != 1) {
|
|
5051
|
+
previousSibling = previousSibling.previousSibling;
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
if (!previousSibling) {
|
|
5055
|
+
previousSibling = e.parentElement.previousSibling;
|
|
5056
|
+
|
|
5057
|
+
while (previousSibling && previousSibling.nodeType != 1) {
|
|
5058
|
+
previousSibling = previousSibling.previousSibling;
|
|
5059
|
+
}
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
var error = document.createElement("div");
|
|
5063
|
+
error.innerHTML = m ? m : "Este campo es requerido!"; //ok = false;
|
|
5064
|
+
|
|
5065
|
+
error.classList.add("v-error");
|
|
5066
|
+
e.parentNode.insertBefore(error, e);
|
|
5067
|
+
},
|
|
5041
5068
|
print: function print(o) {
|
|
5042
5069
|
var e = document.createElement('iframe');
|
|
5043
5070
|
document.body.appendChild(e);
|
|
@@ -6561,33 +6588,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6561
6588
|
|
|
6562
6589
|
return ok;
|
|
6563
6590
|
},
|
|
6564
|
-
showerror:
|
|
6565
|
-
var previousSibling = e.previousSibling;
|
|
6566
|
-
|
|
6567
|
-
if (previousSibling && previousSibling.classList && previousSibling.classList.contains('v-error')) {
|
|
6568
|
-
previousSibling.parentNode.removeChild(previousSibling);
|
|
6569
|
-
}
|
|
6570
|
-
|
|
6571
|
-
previousSibling = e.previousSibling;
|
|
6572
|
-
|
|
6573
|
-
while (previousSibling && previousSibling.nodeType != 1) {
|
|
6574
|
-
previousSibling = previousSibling.previousSibling;
|
|
6575
|
-
}
|
|
6576
|
-
|
|
6577
|
-
if (!previousSibling) {
|
|
6578
|
-
previousSibling = e.parentElement.previousSibling;
|
|
6579
|
-
|
|
6580
|
-
while (previousSibling && previousSibling.nodeType != 1) {
|
|
6581
|
-
previousSibling = previousSibling.previousSibling;
|
|
6582
|
-
}
|
|
6583
|
-
}
|
|
6584
|
-
|
|
6585
|
-
var error = document.createElement("div");
|
|
6586
|
-
error.innerHTML = m ? m : "Este campo es requerido!"; //ok = false;
|
|
6587
|
-
|
|
6588
|
-
error.classList.add("v-error");
|
|
6589
|
-
e.parentNode.insertBefore(error, e);
|
|
6590
|
-
}
|
|
6591
|
+
showerror: _$1.showerror
|
|
6591
6592
|
}
|
|
6592
6593
|
};
|
|
6593
6594
|
if (!cfg) cfg = {
|