isobit-ui 0.2.44 → 0.2.45
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 +54 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.44
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3043,6 +3043,31 @@ var __vue_component__$b = /*#__PURE__*/__vue_normalize__({
|
|
|
3043
3043
|
staticRenderFns: __vue_staticRenderFns__$b
|
|
3044
3044
|
}, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, __vue_create_injector__, undefined, undefined);
|
|
3045
3045
|
|
|
3046
|
+
//
|
|
3047
|
+
//
|
|
3048
|
+
//
|
|
3049
|
+
//
|
|
3050
|
+
//
|
|
3051
|
+
//
|
|
3052
|
+
//
|
|
3053
|
+
//
|
|
3054
|
+
//
|
|
3055
|
+
//
|
|
3056
|
+
//
|
|
3057
|
+
//
|
|
3058
|
+
//
|
|
3059
|
+
//
|
|
3060
|
+
//
|
|
3061
|
+
//
|
|
3062
|
+
//
|
|
3063
|
+
//
|
|
3064
|
+
//
|
|
3065
|
+
//
|
|
3066
|
+
//
|
|
3067
|
+
//
|
|
3068
|
+
//
|
|
3069
|
+
//
|
|
3070
|
+
//
|
|
3046
3071
|
//
|
|
3047
3072
|
//
|
|
3048
3073
|
//
|
|
@@ -3084,7 +3109,7 @@ var script$a = {
|
|
|
3084
3109
|
},
|
|
3085
3110
|
created: function created() {
|
|
3086
3111
|
var me = this;
|
|
3087
|
-
me.autoload_ = !(me.autoload +
|
|
3112
|
+
me.autoload_ = !(me.autoload + "" == "false" || me.autoload * 1 == 0);
|
|
3088
3113
|
},
|
|
3089
3114
|
mounted: function mounted() {
|
|
3090
3115
|
this.lll();
|
|
@@ -3120,14 +3145,14 @@ var script$a = {
|
|
|
3120
3145
|
|
|
3121
3146
|
if (!this.popup) {
|
|
3122
3147
|
this.popup = this.$el.childNodes[2];
|
|
3123
|
-
this.popup.style.position =
|
|
3124
|
-
this.popup.style.backgroundColor =
|
|
3148
|
+
this.popup.style.position = "absolute";
|
|
3149
|
+
this.popup.style.backgroundColor = "white";
|
|
3125
3150
|
document.body.append(this.popup);
|
|
3126
3151
|
}
|
|
3127
3152
|
|
|
3128
3153
|
var rect = cn.getBoundingClientRect();
|
|
3129
|
-
this.popup.style.top = rect.bottom + 0 +
|
|
3130
|
-
this.popup.style.left = rect.left + 0 +
|
|
3154
|
+
this.popup.style.top = rect.bottom + 0 + "px";
|
|
3155
|
+
this.popup.style.left = rect.left + 0 + "px";
|
|
3131
3156
|
} else {
|
|
3132
3157
|
if (this.$parent.load) this.$parent.load();
|
|
3133
3158
|
}
|
|
@@ -3147,7 +3172,7 @@ var script$a = {
|
|
|
3147
3172
|
var select = me.$el.childNodes[0];
|
|
3148
3173
|
var old = select.selectedIndex; //Si el valor es vacio se debe escoger 0
|
|
3149
3174
|
|
|
3150
|
-
if (!v || v ===
|
|
3175
|
+
if (!v || v === "") {
|
|
3151
3176
|
select.selectedIndex = 0;
|
|
3152
3177
|
}
|
|
3153
3178
|
|
|
@@ -3174,7 +3199,7 @@ var script$a = {
|
|
|
3174
3199
|
}
|
|
3175
3200
|
/*if(me.$el.id){
|
|
3176
3201
|
for(k=0;k<select.length;k++){
|
|
3177
|
-
|
|
3202
|
+
console.log(k+'--'+select[k].value);
|
|
3178
3203
|
}
|
|
3179
3204
|
console.log('select.length.'+me.$el.id+'='+select.length);
|
|
3180
3205
|
console.log('select.selectedIndex .'+me.$el.id+'='+select.selectedIndex);
|
|
@@ -3197,11 +3222,17 @@ var script$a = {
|
|
|
3197
3222
|
|
|
3198
3223
|
if (!a) {
|
|
3199
3224
|
if (me.$el.id) {
|
|
3200
|
-
console.log(
|
|
3201
|
-
console.log(
|
|
3225
|
+
console.log("emit input ." + me.$el.id + "=" + JSON.stringify(v));
|
|
3226
|
+
console.log("ffound=", ffound);
|
|
3202
3227
|
}
|
|
3203
3228
|
|
|
3204
|
-
me.$emit(
|
|
3229
|
+
me.$emit("input", v, {
|
|
3230
|
+
value: v,
|
|
3231
|
+
select: select,
|
|
3232
|
+
option: select[select.selectedIndex],
|
|
3233
|
+
target: me,
|
|
3234
|
+
object: ffound
|
|
3235
|
+
});
|
|
3205
3236
|
}
|
|
3206
3237
|
}
|
|
3207
3238
|
});
|
|
@@ -3209,13 +3240,13 @@ var script$a = {
|
|
|
3209
3240
|
},
|
|
3210
3241
|
lll: function lll() {
|
|
3211
3242
|
var me = this;
|
|
3212
|
-
me.autoload_ = !(me.autoload +
|
|
3243
|
+
me.autoload_ = !(me.autoload + "" == "false" || me.autoload * 1 == 0);
|
|
3213
3244
|
var v = me.$attrs.value;
|
|
3214
3245
|
if (v != null && v.target) v = v.value; //console.log(v);
|
|
3215
3246
|
|
|
3216
3247
|
var select = me.$el.childNodes[0];
|
|
3217
3248
|
|
|
3218
|
-
if (!v || v ===
|
|
3249
|
+
if (!v || v === "") {
|
|
3219
3250
|
select.selectedIndex = 0;
|
|
3220
3251
|
}
|
|
3221
3252
|
|
|
@@ -3228,9 +3259,9 @@ var script$a = {
|
|
|
3228
3259
|
}
|
|
3229
3260
|
|
|
3230
3261
|
if (this.autoload_) this.load();
|
|
3231
|
-
me.$emit(
|
|
3232
|
-
me.$on(
|
|
3233
|
-
var op = m.querySelectorAll(
|
|
3262
|
+
me.$emit("mounted", me);
|
|
3263
|
+
me.$on("changed", function (m) {
|
|
3264
|
+
var op = m.querySelectorAll("option"),
|
|
3234
3265
|
d = [];
|
|
3235
3266
|
|
|
3236
3267
|
for (var j = 0; op.length > j; j++) {
|
|
@@ -3274,8 +3305,8 @@ var script$a = {
|
|
|
3274
3305
|
},
|
|
3275
3306
|
checkboxInput: function checkboxInput() {
|
|
3276
3307
|
var d = this.sel;
|
|
3277
|
-
if (d && d.length) d = d.join(
|
|
3278
|
-
this.$emit(
|
|
3308
|
+
if (d && d.length) d = d.join(",");
|
|
3309
|
+
this.$emit("input", d);
|
|
3279
3310
|
},
|
|
3280
3311
|
onChange: function onChange(value) {
|
|
3281
3312
|
var me = this; //console.log(me.$el.id+'.onchange='+JSON.stringify(value));
|
|
@@ -3283,7 +3314,7 @@ var script$a = {
|
|
|
3283
3314
|
|
|
3284
3315
|
var select = this.$el.childNodes[0];
|
|
3285
3316
|
|
|
3286
|
-
if (!value || value ===
|
|
3317
|
+
if (!value || value === "") {
|
|
3287
3318
|
value = null;
|
|
3288
3319
|
select.selectedIndex = 0;
|
|
3289
3320
|
}
|
|
@@ -3308,7 +3339,7 @@ var script$a = {
|
|
|
3308
3339
|
select.selectedIndex = 0;
|
|
3309
3340
|
}
|
|
3310
3341
|
|
|
3311
|
-
me.$emit(
|
|
3342
|
+
me.$emit("input", value, {
|
|
3312
3343
|
value: value,
|
|
3313
3344
|
select: select,
|
|
3314
3345
|
option: select[select.selectedIndex],
|
|
@@ -3366,7 +3397,7 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
3366
3397
|
on: {
|
|
3367
3398
|
"click": _vm.toggle
|
|
3368
3399
|
}
|
|
3369
|
-
}, [_vm._v("
|
|
3400
|
+
}, [_vm._v("\n \n ")]), _vm._v(" "), _c('div', {
|
|
3370
3401
|
directives: [{
|
|
3371
3402
|
name: "show",
|
|
3372
3403
|
rawName: "v-show",
|
|
@@ -3394,7 +3425,7 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
3394
3425
|
},
|
|
3395
3426
|
expression: "sela"
|
|
3396
3427
|
}
|
|
3397
|
-
})], 1), _c('v-checkbox-group', {
|
|
3428
|
+
})], 1), _vm._v(" "), _c('v-checkbox-group', {
|
|
3398
3429
|
key: 'p' + _vm.ik,
|
|
3399
3430
|
on: {
|
|
3400
3431
|
"input": _vm.checkboxInput
|
|
@@ -3413,7 +3444,7 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
3413
3444
|
"label": d.label
|
|
3414
3445
|
}
|
|
3415
3446
|
})], 1);
|
|
3416
|
-
}) : _vm._e()], 2)], 1)] : _vm._e(), _vm._v(" "), _vm.readonly ? [_vm._v(_vm._s(_vm.label ? _vm.label :
|
|
3447
|
+
}) : _vm._e()], 2)], 1)] : _vm._e(), _vm._v(" "), _vm.readonly ? [_vm._v(_vm._s(_vm.label ? _vm.label : "---"))] : _vm._e()], 2);
|
|
3417
3448
|
};
|
|
3418
3449
|
|
|
3419
3450
|
var __vue_staticRenderFns__$a = [];
|