isobit-ui 0.0.316 → 0.0.319
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 +44 -44
- 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.319
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3269,10 +3269,10 @@ var script$6 = {
|
|
|
3269
3269
|
var f = function f(ev) {
|
|
3270
3270
|
var e = this;
|
|
3271
3271
|
console.log(e);
|
|
3272
|
-
|
|
3272
|
+
var previousElementSibling = e.previousElementSibling;
|
|
3273
3273
|
|
|
3274
|
-
if (
|
|
3275
|
-
|
|
3274
|
+
if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
|
|
3275
|
+
previousElementSibling.parentNode.removeChild(previousElementSibling);
|
|
3276
3276
|
} // console.log('disabled='+e.getAttribute('disabled'));
|
|
3277
3277
|
|
|
3278
3278
|
|
|
@@ -3282,17 +3282,17 @@ var script$6 = {
|
|
|
3282
3282
|
if (e.tagName != 'DIV' && !e.value
|
|
3283
3283
|
/*||e.value == 0*/
|
|
3284
3284
|
|| e.tagName === 'DIV' && !e.attributes.value) {
|
|
3285
|
-
|
|
3285
|
+
previousElementSibling = e.previousElementSibling;
|
|
3286
3286
|
|
|
3287
|
-
while (
|
|
3288
|
-
|
|
3287
|
+
while (previousElementSibling && previousElementSibling.nodeType != 1) {
|
|
3288
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
3289
3289
|
}
|
|
3290
3290
|
|
|
3291
|
-
if (!
|
|
3292
|
-
|
|
3291
|
+
if (!previousElementSibling) {
|
|
3292
|
+
previousElementSibling = e.parentElement.previousElementSibling;
|
|
3293
3293
|
|
|
3294
|
-
while (
|
|
3295
|
-
|
|
3294
|
+
while (previousElementSibling && previousElementSibling.nodeType != 1) {
|
|
3295
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
3296
3296
|
}
|
|
3297
3297
|
}
|
|
3298
3298
|
|
|
@@ -5064,7 +5064,7 @@ _$1 = Object.assign(_$1, {
|
|
|
5064
5064
|
whichChild: function whichChild(e) {
|
|
5065
5065
|
var i = 0;
|
|
5066
5066
|
|
|
5067
|
-
while ((e = e.
|
|
5067
|
+
while ((e = e.previousElementSibling) != null) {
|
|
5068
5068
|
++i;
|
|
5069
5069
|
}
|
|
5070
5070
|
|
|
@@ -5072,23 +5072,23 @@ _$1 = Object.assign(_$1, {
|
|
|
5072
5072
|
},
|
|
5073
5073
|
showerror: function showerror(e, m) {
|
|
5074
5074
|
if (e.$el) e = e.$el;
|
|
5075
|
-
var
|
|
5075
|
+
var previousElementSibling = e.previousElementSibling;
|
|
5076
5076
|
|
|
5077
|
-
if (
|
|
5078
|
-
|
|
5077
|
+
if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
|
|
5078
|
+
previousElementSibling.parentNode.removeChild(previousElementSibling);
|
|
5079
5079
|
}
|
|
5080
5080
|
|
|
5081
|
-
|
|
5081
|
+
previousElementSibling = e.previousElementSibling;
|
|
5082
5082
|
|
|
5083
|
-
while (
|
|
5084
|
-
|
|
5083
|
+
while (previousElementSibling && previousElementSibling.nodeType != 1) {
|
|
5084
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
5085
5085
|
}
|
|
5086
5086
|
|
|
5087
|
-
if (!
|
|
5088
|
-
|
|
5087
|
+
if (!previousElementSibling) {
|
|
5088
|
+
previousElementSibling = e.parentElement.previousElementSibling;
|
|
5089
5089
|
|
|
5090
|
-
while (
|
|
5091
|
-
|
|
5090
|
+
while (previousElementSibling && previousElementSibling.nodeType != 1) {
|
|
5091
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
5092
5092
|
}
|
|
5093
5093
|
}
|
|
5094
5094
|
|
|
@@ -6532,7 +6532,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6532
6532
|
e2 = e2 ? e2 : me.$el;
|
|
6533
6533
|
var input = e2.querySelectorAll("input,select,textarea,div[required=required]");
|
|
6534
6534
|
var radio = {},
|
|
6535
|
-
|
|
6535
|
+
previousElementSibling;
|
|
6536
6536
|
|
|
6537
6537
|
for (i = 0; input.length > i; i++) {
|
|
6538
6538
|
var e = input[i];
|
|
@@ -6544,10 +6544,10 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6544
6544
|
continue;
|
|
6545
6545
|
}
|
|
6546
6546
|
|
|
6547
|
-
|
|
6547
|
+
previousElementSibling = e.previousElementSibling;
|
|
6548
6548
|
|
|
6549
|
-
if (
|
|
6550
|
-
|
|
6549
|
+
if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
|
|
6550
|
+
previousElementSibling.parentNode.removeChild(previousElementSibling);
|
|
6551
6551
|
} // console.log('disabled='+e.getAttribute('disabled'));
|
|
6552
6552
|
|
|
6553
6553
|
|
|
@@ -6557,17 +6557,17 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6557
6557
|
if (e.tagName != 'DIV' && !e.value
|
|
6558
6558
|
/*||e.value == 0*/
|
|
6559
6559
|
|| e.tagName === 'DIV' && !e.attributes.value) {
|
|
6560
|
-
|
|
6560
|
+
previousElementSibling = e.previousElementSibling;
|
|
6561
6561
|
|
|
6562
|
-
while (
|
|
6563
|
-
|
|
6562
|
+
while (previousElementSibling && previousElementSibling.nodeType != 1) {
|
|
6563
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
6564
6564
|
}
|
|
6565
6565
|
|
|
6566
|
-
if (!
|
|
6567
|
-
|
|
6566
|
+
if (!previousElementSibling) {
|
|
6567
|
+
previousElementSibling = e.parentElement.previousElementSibling;
|
|
6568
6568
|
|
|
6569
|
-
while (
|
|
6570
|
-
|
|
6569
|
+
while (previousElementSibling && previousElementSibling.nodeType != 1) {
|
|
6570
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
6571
6571
|
}
|
|
6572
6572
|
}
|
|
6573
6573
|
|
|
@@ -6592,22 +6592,22 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6592
6592
|
}
|
|
6593
6593
|
|
|
6594
6594
|
e = op[0].parentNode.parentNode;
|
|
6595
|
-
|
|
6595
|
+
previousElementSibling = e.previousElementSibling;
|
|
6596
6596
|
|
|
6597
|
-
if (
|
|
6598
|
-
|
|
6597
|
+
if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
|
|
6598
|
+
previousElementSibling.parentNode.removeChild(previousElementSibling);
|
|
6599
6599
|
}
|
|
6600
6600
|
|
|
6601
6601
|
if (required && !checked) {
|
|
6602
6602
|
me.showerror(e);
|
|
6603
|
-
/*
|
|
6604
|
-
while(
|
|
6605
|
-
|
|
6603
|
+
/*previousElementSibling = e.previousElementSibling;
|
|
6604
|
+
while(previousElementSibling&&previousElementSibling.nodeType != 1) {
|
|
6605
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
6606
6606
|
}
|
|
6607
|
-
if(!
|
|
6608
|
-
|
|
6609
|
-
while(
|
|
6610
|
-
|
|
6607
|
+
if(!previousElementSibling){
|
|
6608
|
+
previousElementSibling=e.parentElement.previousElementSibling;
|
|
6609
|
+
while(previousElementSibling&&previousElementSibling.nodeType != 1) {
|
|
6610
|
+
previousElementSibling = previousElementSibling.previousElementSibling;
|
|
6611
6611
|
}
|
|
6612
6612
|
}
|
|
6613
6613
|
var error = document.createElement("div");
|
|
@@ -6637,7 +6637,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6637
6637
|
el = document.querySelector(cfg.el);
|
|
6638
6638
|
} else {
|
|
6639
6639
|
var script = document.getElementsByTagName("script");
|
|
6640
|
-
el = script[script.length - 1].
|
|
6640
|
+
el = script[script.length - 1].previousElementSibling.previousElementSibling;
|
|
6641
6641
|
}
|
|
6642
6642
|
|
|
6643
6643
|
var tv = el.querySelectorAll("v-tabview");
|