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