@weni/unnnic-system 1.12.2 → 1.12.3

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.
@@ -41354,14 +41354,14 @@ var MultiSelect_component = normalizeComponent(
41354
41354
  )
41355
41355
 
41356
41356
  /* harmony default export */ var MultiSelect = (MultiSelect_component.exports);
41357
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Input/Autocomplete.vue?vue&type=template&id=44a1e94a&
41358
- var Autocompletevue_type_template_id_44a1e94a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.onClickOutside),expression:"onClickOutside"}],staticClass:"unnnic-autocomplete"},[(_vm.label)?_c('p',{staticClass:"unnnic-form__label"},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e(),_c('text-input',_vm._g({attrs:{"v-bind":_vm.$attrs,"icon-left":_vm.iconLeft,"icon-right":_vm.iconRight,"icon-right-clickable":Object.keys(_vm.$listeners).includes('icon-right-click'),"tooltip-icon-right":_vm.tooltipIconRight,"tooltip-side-icon-right":_vm.tooltipSideIconRight,"tooltip-force-open-icon-right":_vm.tooltipForceOpenIconRight,"type":_vm.type,"size":_vm.size,"placeholder":_vm.placeholder},on:{"focus":_vm.onFocus},model:{value:(_vm.val),callback:function ($$v) {_vm.val=$$v},expression:"val"}},_vm.inputListeners)),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.open),expression:"open"}],staticClass:"unnnic-autocomplete__container-list"},[_c('div',{class:['unnnic-autocomplete__list',
41357
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Input/Autocomplete.vue?vue&type=template&id=3c24ee1b&
41358
+ var Autocompletevue_type_template_id_3c24ee1b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.onClickOutside),expression:"onClickOutside"}],staticClass:"unnnic-autocomplete"},[(_vm.label)?_c('p',{staticClass:"unnnic-form__label"},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e(),_c('text-input',_vm._g({attrs:{"v-bind":_vm.$attrs,"icon-left":_vm.iconLeft,"icon-right":_vm.iconRight,"icon-right-clickable":Object.keys(_vm.$listeners).includes('icon-right-click'),"tooltip-icon-right":_vm.tooltipIconRight,"tooltip-side-icon-right":_vm.tooltipSideIconRight,"tooltip-force-open-icon-right":_vm.tooltipForceOpenIconRight,"type":_vm.type,"size":_vm.size,"placeholder":_vm.placeholder},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},model:{value:(_vm.val),callback:function ($$v) {_vm.val=$$v},expression:"val"}},_vm.inputListeners)),_c('div',{directives:[{name:"show",rawName:"v-show",value:((_vm.open || (this.openWithFocus && this.isFocused)) && _vm.data.length),expression:"(open || (this.openWithFocus && this.isFocused)) && data.length"}],staticClass:"unnnic-autocomplete__container-list"},[_c('div',{class:['unnnic-autocomplete__list',
41359
41359
  ("unnnic-autocomplete__list--size-" + _vm.size),
41360
41360
  _vm.message && _vm.message.length > 0 ? 'unnnic-autocomplete__list--with-message' : '']},[_vm._l((_vm.dataParsed),function(option,index){return [(option.type === 'category')?_c('div',{key:index,staticClass:"category",attrs:{"title":option.text}},[_vm._v(" "+_vm._s(option.text)+" ")]):_c('div',{key:index,staticClass:"unnnic--clickable option",on:{"click":function($event){return _vm.onChoose(option)}}},[_c('div',{staticClass:"label",attrs:{"title":option.text},domProps:{"innerHTML":_vm._s(_vm.highlighted(option.text))}})])]})],2)]),(_vm.message)?_c('p',{staticClass:"unnnic-form__message"},[_vm._v(" "+_vm._s(_vm.message)+" ")]):_vm._e()],1)}
41361
- var Autocompletevue_type_template_id_44a1e94a_staticRenderFns = []
41361
+ var Autocompletevue_type_template_id_3c24ee1b_staticRenderFns = []
41362
41362
 
41363
41363
 
41364
- // CONCATENATED MODULE: ./src/components/Input/Autocomplete.vue?vue&type=template&id=44a1e94a&
41364
+ // CONCATENATED MODULE: ./src/components/Input/Autocomplete.vue?vue&type=template&id=3c24ee1b&
41365
41365
 
41366
41366
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Input/Autocomplete.vue?vue&type=script&lang=js&
41367
41367
 
@@ -41421,6 +41421,10 @@ var Autocompletevue_type_template_id_44a1e94a_staticRenderFns = []
41421
41421
  //
41422
41422
  //
41423
41423
  //
41424
+ //
41425
+ //
41426
+ //
41427
+ //
41424
41428
 
41425
41429
 
41426
41430
  /* harmony default export */ var Autocompletevue_type_script_lang_js_ = ({
@@ -41495,7 +41499,8 @@ var Autocompletevue_type_template_id_44a1e94a_staticRenderFns = []
41495
41499
  data: function data() {
41496
41500
  return {
41497
41501
  val: null,
41498
- open: false
41502
+ open: false,
41503
+ isFocused: false
41499
41504
  };
41500
41505
  },
41501
41506
  watch: {
@@ -41516,9 +41521,13 @@ var Autocompletevue_type_template_id_44a1e94a_staticRenderFns = []
41516
41521
  },
41517
41522
  methods: {
41518
41523
  onFocus: function onFocus() {
41524
+ this.isFocused = true;
41519
41525
  if (!this.val && !this.openWithFocus) return;
41520
41526
  this.open = true;
41521
41527
  },
41528
+ onBlur: function onBlur() {
41529
+ this.isFocused = false;
41530
+ },
41522
41531
  onChoose: function onChoose(option) {
41523
41532
  var _this = this;
41524
41533
 
@@ -41575,8 +41584,8 @@ var Autocompletevue_type_style_index_0_lang_scss_ = __webpack_require__("bc3b");
41575
41584
 
41576
41585
  var Autocomplete_component = normalizeComponent(
41577
41586
  Input_Autocompletevue_type_script_lang_js_,
41578
- Autocompletevue_type_template_id_44a1e94a_render,
41579
- Autocompletevue_type_template_id_44a1e94a_staticRenderFns,
41587
+ Autocompletevue_type_template_id_3c24ee1b_render,
41588
+ Autocompletevue_type_template_id_3c24ee1b_staticRenderFns,
41580
41589
  false,
41581
41590
  null,
41582
41591
  null,