isobit-ui 0.0.126 → 0.0.131
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 +50 -47
- 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.131
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1046,6 +1046,9 @@ var script$c = {
|
|
|
1046
1046
|
};
|
|
1047
1047
|
},
|
|
1048
1048
|
computed: {
|
|
1049
|
+
getCheckColumnWidth: function getCheckColumnWidth() {
|
|
1050
|
+
return 36; //18;
|
|
1051
|
+
},
|
|
1049
1052
|
filteredData: function filteredData() {
|
|
1050
1053
|
//https://itqna.net/questions/514/how-do-search-ignoring-accent-javascript
|
|
1051
1054
|
//https://stackoverflow.com/questions/5700636/using-javascript-to-perform-text-matches-with-without-accented-characters
|
|
@@ -1358,9 +1361,6 @@ var script$c = {
|
|
|
1358
1361
|
}
|
|
1359
1362
|
},
|
|
1360
1363
|
methods: {
|
|
1361
|
-
getCheckColumnWidth: function getCheckColumnWidth() {
|
|
1362
|
-
return 36; //18;
|
|
1363
|
-
},
|
|
1364
1364
|
getRowClass: function getRowClass(r, row) {
|
|
1365
1365
|
var cls = [];
|
|
1366
1366
|
var me = this;
|
|
@@ -1715,7 +1715,7 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
}, [_c('thead', [_c('tr', [_vm.selectable0 ? _c('th', {
|
|
1717
1717
|
attrs: {
|
|
1718
|
-
"width":
|
|
1718
|
+
"width": _vm.getCheckColumnWidth
|
|
1719
1719
|
}
|
|
1720
1720
|
}, [_c('span', {
|
|
1721
1721
|
staticClass: "v-check",
|
|
@@ -2092,53 +2092,56 @@ var script$a = {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
},
|
|
2094
2094
|
updated: function updated() {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2095
|
+
this.uu();
|
|
2096
|
+
},
|
|
2097
|
+
methods: {
|
|
2098
|
+
uu: function uu() {
|
|
2099
|
+
var me = this;
|
|
2100
|
+
var v = me.$attrs.value;
|
|
2101
|
+
if (me.$el.id) console.log('updated.' + me.$el.id + '=' + JSON.stringify(v));
|
|
2102
|
+
var p = me.$el.childNodes[0];
|
|
2103
|
+
var old = p.selectedIndex; //Si el valor es vacio se debe escoger 0
|
|
2100
2104
|
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2105
|
+
if (!v || v === '') {
|
|
2106
|
+
p.selectedIndex = 0;
|
|
2107
|
+
}
|
|
2104
2108
|
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2109
|
+
for (var k = 0; k < p.length; k++) {
|
|
2110
|
+
if (p[k].value == v) {
|
|
2111
|
+
p.selectedIndex = k;
|
|
2112
|
+
}
|
|
2108
2113
|
}
|
|
2109
|
-
}
|
|
2110
2114
|
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2115
|
+
for (var j = 0; j < me.$children.length; j++) {
|
|
2116
|
+
if (!me.$children[j].getValueByIndex) continue;
|
|
2117
|
+
var oldv = me.$children[j].getValueByIndex(old - 1);
|
|
2118
|
+
me.$children[j].getIndexByValue(v, function (ii, found) {
|
|
2119
|
+
if (ii > -1) {
|
|
2120
|
+
p.selectedIndex = ii + 1; //console.log('se emite input desde '+me.$el.name);
|
|
2121
|
+
|
|
2122
|
+
if (me.$el.id == 'doc') ;
|
|
2123
|
+
|
|
2124
|
+
var a = Number(oldv);
|
|
2125
|
+
|
|
2126
|
+
if (!isNaN(a)) {
|
|
2127
|
+
a = a == Number(v);
|
|
2128
|
+
} else if (oldv) {
|
|
2129
|
+
if (!v) {
|
|
2130
|
+
a = false;
|
|
2131
|
+
} else if (v.id) {
|
|
2132
|
+
a = v.id == oldv.id;
|
|
2133
|
+
} else a = v == oldv;
|
|
2134
|
+
} else {
|
|
2135
|
+
a = !v;
|
|
2136
|
+
}
|
|
2133
2137
|
|
|
2134
|
-
|
|
2135
|
-
|
|
2138
|
+
if (!a) {
|
|
2139
|
+
me.$emit('input', v, found);
|
|
2140
|
+
}
|
|
2136
2141
|
}
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
},
|
|
2141
|
-
methods: {
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2142
2145
|
lll: function lll() {
|
|
2143
2146
|
var me = this;
|
|
2144
2147
|
me.autoload_ = !(me.autoload + '' == 'false' || me.autoload * 1 == 0);
|
|
@@ -2533,6 +2536,7 @@ var script$8 = {
|
|
|
2533
2536
|
watch: {
|
|
2534
2537
|
data: function data(v, ov) {
|
|
2535
2538
|
console.log('data changed');
|
|
2539
|
+
this.$parent.uu();
|
|
2536
2540
|
}
|
|
2537
2541
|
},
|
|
2538
2542
|
data: function data() {
|
|
@@ -2559,7 +2563,6 @@ var script$8 = {
|
|
|
2559
2563
|
|
|
2560
2564
|
if (me.data) {
|
|
2561
2565
|
me.data2 = me.data;
|
|
2562
|
-
console.log(me.data2);
|
|
2563
2566
|
}
|
|
2564
2567
|
|
|
2565
2568
|
var p = me.$el.parentElement;
|