isobit-ui 0.0.313 → 0.0.316
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 +38 -4
- 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.316
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -537,6 +537,7 @@ var script$k = {
|
|
|
537
537
|
span.innerHTML = me.$attrs.value ? me.$attrs.value : 'ui-button'; //me.$el.appendChild(span);
|
|
538
538
|
|
|
539
539
|
me.$el.addEventListener('click', function (event) {
|
|
540
|
+
event.component = me;
|
|
540
541
|
me.$emit('click', event);
|
|
541
542
|
});
|
|
542
543
|
|
|
@@ -3265,9 +3266,42 @@ var script$6 = {
|
|
|
3265
3266
|
if (t[i].classList) t[i].classList.add("_");else t[i].className = "_";
|
|
3266
3267
|
}
|
|
3267
3268
|
|
|
3268
|
-
var f = function f() {
|
|
3269
|
-
|
|
3270
|
-
|
|
3269
|
+
var f = function f(ev) {
|
|
3270
|
+
var e = this;
|
|
3271
|
+
console.log(e);
|
|
3272
|
+
previousSibling = e.previousSibling;
|
|
3273
|
+
|
|
3274
|
+
if (previousSibling && previousSibling.classList && previousSibling.classList.contains('v-error')) {
|
|
3275
|
+
previousSibling.parentNode.removeChild(previousSibling);
|
|
3276
|
+
} // console.log('disabled='+e.getAttribute('disabled'));
|
|
3277
|
+
|
|
3278
|
+
|
|
3279
|
+
if (!(e.disabled || e.getAttribute('disabled')) && (e.required || e.tagName === 'DIV')) {
|
|
3280
|
+
//console.log([e]);
|
|
3281
|
+
//console.log(e.value);console.log(e.nodeValue);
|
|
3282
|
+
if (e.tagName != 'DIV' && !e.value
|
|
3283
|
+
/*||e.value == 0*/
|
|
3284
|
+
|| e.tagName === 'DIV' && !e.attributes.value) {
|
|
3285
|
+
previousSibling = e.previousSibling;
|
|
3286
|
+
|
|
3287
|
+
while (previousSibling && previousSibling.nodeType != 1) {
|
|
3288
|
+
previousSibling = previousSibling.previousSibling;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
if (!previousSibling) {
|
|
3292
|
+
previousSibling = e.parentElement.previousSibling;
|
|
3293
|
+
|
|
3294
|
+
while (previousSibling && previousSibling.nodeType != 1) {
|
|
3295
|
+
previousSibling = previousSibling.previousSibling;
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
var error = document.createElement("div");
|
|
3300
|
+
error.innerHTML = "Este campo es requerido!";
|
|
3301
|
+
ok = false;
|
|
3302
|
+
error.classList.add("v-error");
|
|
3303
|
+
e.parentNode.insertBefore(error, e);
|
|
3304
|
+
}
|
|
3271
3305
|
}
|
|
3272
3306
|
};
|
|
3273
3307
|
|