isobit-ui 0.2.43 → 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.
Files changed (2) hide show
  1. package/dist/index.js +61 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.42
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 + '' == 'false' || me.autoload * 1 == 0);
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 = 'absolute';
3124
- this.popup.style.backgroundColor = 'white';
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 + 'px';
3130
- this.popup.style.left = rect.left + 0 + 'px';
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
 
@@ -3166,14 +3191,21 @@ var script$a = {
3166
3191
  if (ii > -1) {
3167
3192
  select.selectedIndex = ii + 1;
3168
3193
  var ffound = me.$children[j].getValueByIndex(select.selectedIndex - 1);
3194
+
3195
+ if (ffound == -1) {
3196
+ ffound = null;
3197
+ } else {
3198
+ ffound = me.$children[j].filterList[select.selectedIndex - 1];
3199
+ }
3169
3200
  /*if(me.$el.id){
3170
3201
  for(k=0;k<select.length;k++){
3171
- console.log(k+'--'+select[k].value);
3202
+ console.log(k+'--'+select[k].value);
3172
3203
  }
3173
3204
  console.log('select.length.'+me.$el.id+'='+select.length);
3174
3205
  console.log('select.selectedIndex .'+me.$el.id+'='+select.selectedIndex);
3175
3206
  }*/
3176
3207
 
3208
+
3177
3209
  var a = Number(oldv);
3178
3210
 
3179
3211
  if (!isNaN(a)) {
@@ -3190,11 +3222,17 @@ var script$a = {
3190
3222
 
3191
3223
  if (!a) {
3192
3224
  if (me.$el.id) {
3193
- console.log('emit input .' + me.$el.id + '=' + JSON.stringify(v));
3194
- console.log('ffound=', ffound);
3225
+ console.log("emit input ." + me.$el.id + "=" + JSON.stringify(v));
3226
+ console.log("ffound=", ffound);
3195
3227
  }
3196
3228
 
3197
- me.$emit('input', v, found);
3229
+ me.$emit("input", v, {
3230
+ value: v,
3231
+ select: select,
3232
+ option: select[select.selectedIndex],
3233
+ target: me,
3234
+ object: ffound
3235
+ });
3198
3236
  }
3199
3237
  }
3200
3238
  });
@@ -3202,13 +3240,13 @@ var script$a = {
3202
3240
  },
3203
3241
  lll: function lll() {
3204
3242
  var me = this;
3205
- me.autoload_ = !(me.autoload + '' == 'false' || me.autoload * 1 == 0);
3243
+ me.autoload_ = !(me.autoload + "" == "false" || me.autoload * 1 == 0);
3206
3244
  var v = me.$attrs.value;
3207
3245
  if (v != null && v.target) v = v.value; //console.log(v);
3208
3246
 
3209
3247
  var select = me.$el.childNodes[0];
3210
3248
 
3211
- if (!v || v === '') {
3249
+ if (!v || v === "") {
3212
3250
  select.selectedIndex = 0;
3213
3251
  }
3214
3252
 
@@ -3221,9 +3259,9 @@ var script$a = {
3221
3259
  }
3222
3260
 
3223
3261
  if (this.autoload_) this.load();
3224
- me.$emit('mounted', me);
3225
- me.$on('changed', function (m) {
3226
- var op = m.querySelectorAll('option'),
3262
+ me.$emit("mounted", me);
3263
+ me.$on("changed", function (m) {
3264
+ var op = m.querySelectorAll("option"),
3227
3265
  d = [];
3228
3266
 
3229
3267
  for (var j = 0; op.length > j; j++) {
@@ -3267,8 +3305,8 @@ var script$a = {
3267
3305
  },
3268
3306
  checkboxInput: function checkboxInput() {
3269
3307
  var d = this.sel;
3270
- if (d && d.length) d = d.join(',');
3271
- this.$emit('input', d);
3308
+ if (d && d.length) d = d.join(",");
3309
+ this.$emit("input", d);
3272
3310
  },
3273
3311
  onChange: function onChange(value) {
3274
3312
  var me = this; //console.log(me.$el.id+'.onchange='+JSON.stringify(value));
@@ -3276,7 +3314,7 @@ var script$a = {
3276
3314
 
3277
3315
  var select = this.$el.childNodes[0];
3278
3316
 
3279
- if (!value || value === '') {
3317
+ if (!value || value === "") {
3280
3318
  value = null;
3281
3319
  select.selectedIndex = 0;
3282
3320
  }
@@ -3301,7 +3339,7 @@ var script$a = {
3301
3339
  select.selectedIndex = 0;
3302
3340
  }
3303
3341
 
3304
- me.$emit('input', value, {
3342
+ me.$emit("input", value, {
3305
3343
  value: value,
3306
3344
  select: select,
3307
3345
  option: select[select.selectedIndex],
@@ -3359,7 +3397,7 @@ var __vue_render__$a = function __vue_render__() {
3359
3397
  on: {
3360
3398
  "click": _vm.toggle
3361
3399
  }
3362
- }, [_vm._v(" ")]), _vm._v(" "), _c('div', {
3400
+ }, [_vm._v("\n  \n ")]), _vm._v(" "), _c('div', {
3363
3401
  directives: [{
3364
3402
  name: "show",
3365
3403
  rawName: "v-show",
@@ -3387,7 +3425,7 @@ var __vue_render__$a = function __vue_render__() {
3387
3425
  },
3388
3426
  expression: "sela"
3389
3427
  }
3390
- })], 1), _c('v-checkbox-group', {
3428
+ })], 1), _vm._v(" "), _c('v-checkbox-group', {
3391
3429
  key: 'p' + _vm.ik,
3392
3430
  on: {
3393
3431
  "input": _vm.checkboxInput
@@ -3406,7 +3444,7 @@ var __vue_render__$a = function __vue_render__() {
3406
3444
  "label": d.label
3407
3445
  }
3408
3446
  })], 1);
3409
- }) : _vm._e()], 2)], 1)] : _vm._e(), _vm._v(" "), _vm.readonly ? [_vm._v(_vm._s(_vm.label ? _vm.label : '---'))] : _vm._e()], 2);
3447
+ }) : _vm._e()], 2)], 1)] : _vm._e(), _vm._v(" "), _vm.readonly ? [_vm._v(_vm._s(_vm.label ? _vm.label : "---"))] : _vm._e()], 2);
3410
3448
  };
3411
3449
 
3412
3450
  var __vue_staticRenderFns__$a = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.43",
3
+ "version": "0.2.45",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [