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