isobit-ui 0.0.307 → 0.0.310
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 -30
- 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.310
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3265,8 +3265,8 @@ var script$6 = {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
|
|
3267
3267
|
var f = function f() {
|
|
3268
|
-
if (
|
|
3269
|
-
_.showerror(
|
|
3268
|
+
if (this.required && !this.value) _.showerror(this);else {
|
|
3269
|
+
_.showerror(this, false);
|
|
3270
3270
|
}
|
|
3271
3271
|
};
|
|
3272
3272
|
|
|
@@ -5038,6 +5038,34 @@ _$1 = Object.assign(_$1, {
|
|
|
5038
5038
|
|
|
5039
5039
|
return i;
|
|
5040
5040
|
},
|
|
5041
|
+
showerror: function showerror(e, m) {
|
|
5042
|
+
if (e.$el) e = e.$el;
|
|
5043
|
+
var previousSibling = e.previousSibling;
|
|
5044
|
+
|
|
5045
|
+
if (previousSibling && previousSibling.classList && previousSibling.classList.contains('v-error')) {
|
|
5046
|
+
previousSibling.parentNode.removeChild(previousSibling);
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
previousSibling = e.previousSibling;
|
|
5050
|
+
|
|
5051
|
+
while (previousSibling && previousSibling.nodeType != 1) {
|
|
5052
|
+
previousSibling = previousSibling.previousSibling;
|
|
5053
|
+
}
|
|
5054
|
+
|
|
5055
|
+
if (!previousSibling) {
|
|
5056
|
+
previousSibling = e.parentElement.previousSibling;
|
|
5057
|
+
|
|
5058
|
+
while (previousSibling && previousSibling.nodeType != 1) {
|
|
5059
|
+
previousSibling = previousSibling.previousSibling;
|
|
5060
|
+
}
|
|
5061
|
+
}
|
|
5062
|
+
|
|
5063
|
+
var error = document.createElement("div");
|
|
5064
|
+
error.innerHTML = m ? m : "Este campo es requerido!"; //ok = false;
|
|
5065
|
+
|
|
5066
|
+
error.classList.add("v-error");
|
|
5067
|
+
e.parentNode.insertBefore(error, e);
|
|
5068
|
+
},
|
|
5041
5069
|
print: function print(o) {
|
|
5042
5070
|
var e = document.createElement('iframe');
|
|
5043
5071
|
document.body.appendChild(e);
|
|
@@ -6561,33 +6589,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6561
6589
|
|
|
6562
6590
|
return ok;
|
|
6563
6591
|
},
|
|
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
|
-
}
|
|
6592
|
+
showerror: _$1.showerror
|
|
6591
6593
|
}
|
|
6592
6594
|
};
|
|
6593
6595
|
if (!cfg) cfg = {
|