@webitel/ui-sdk 2.0.16-12 → 2.0.16-13

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.
@@ -21012,22 +21012,22 @@ var wt_search_bar_component = componentNormalizer_normalizeComponent(
21012
21012
  )
21013
21013
 
21014
21014
  /* harmony default export */ var wt_search_bar = (wt_search_bar_component.exports);
21015
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-select/wt-select.vue?vue&type=template&id=4d514881&scoped=true&
21016
- var wt_selectvue_type_template_id_4d514881_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-select",class:{
21015
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-select/wt-select.vue?vue&type=template&id=2205626a&scoped=true&
21016
+ var wt_selectvue_type_template_id_2205626a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-select",class:{
21017
21017
  'wt-select--disabled': _vm.disabled,
21018
21018
  'wt-select--invalid': _vm.invalid,
21019
21019
  'wt-select--clearable': _vm.clearable,
21020
21020
  'wt-select--loading': _vm.isLoading,
21021
21021
  }},[(_vm.hasLabel)?_c('wt-label',_vm._b({staticClass:"wt-select__label",attrs:{"disabled":_vm.disabled,"invalid":_vm.invalid}},'wt-label',_vm.labelProps,false),[_vm._t("label",function(){return [_vm._v(_vm._s(_vm.requiredLabel))]},null,{ label: _vm.label })],2):_vm._e(),_c('vue-multiselect',_vm._g(_vm._b({ref:"vue-multiselect",staticClass:"wt-select__select",attrs:{"allow-empty":_vm.allowEmpty,"disabled":_vm.disabled,"internal-search":!_vm.searchMethod,"label":_vm.trackBy ? _vm.optionLabel : null,"limit":1,"limit-text":function (count) { return ("+" + count); },"loading":false,"options":_vm.selectOptions,"placeholder":_vm.placeholder || _vm.label,"track-by":_vm.trackBy,"value":_vm.selectValue},scopedSlots:_vm._u([{key:"tag",fn:function(ref){
21022
21022
  var option = ref.option;
21023
- return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(option[_vm.optionLabel] || option)+" ")])]}},{key:"singleLabel",fn:function(ref){
21023
+ return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(_vm.getOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" ")])]}},{key:"singleLabel",fn:function(ref){
21024
21024
  var option = ref.option;
21025
21025
  return [_vm._t("singleLabel",function(){return [_c('span',{staticClass:"multiselect__single-label"},[_vm._v(" "+_vm._s(_vm.getOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" ")])]},null,{ option: option, optionLabel: _vm.optionLabel })]}},{key:"option",fn:function(ref){
21026
21026
  var option = ref.option;
21027
21027
  return [_vm._t("option",function(){return [_c('span',[_vm._v(" "+_vm._s(_vm.getOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" ")])]},null,{ option: option, optionLabel: _vm.optionLabel })]}},{key:"caret",fn:function(ref){
21028
21028
  var toggle = ref.toggle;
21029
21029
  return [_c('wt-icon-btn',{staticClass:"wt-select__arrow-caret",attrs:{"disabled":_vm.disabled,"icon":"arrow-down"},nativeOn:{"mousedown":function($event){$event.preventDefault();$event.stopPropagation();return toggle.apply(null, arguments)}}})]}},{key:"clear",fn:function(ref){return [(_vm.clearable)?_c('wt-icon-btn',{staticClass:"wt-select__clear",class:{ 'hidden': !_vm.isValue },attrs:{"disabled":_vm.disabled,"icon":"close"},on:{"click":_vm.clearValue}}):_vm._e()]}}],null,true)},'vue-multiselect',_vm.$attrs,false),_vm.listeners),[_c('template',{slot:"beforeList"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isLoading),expression:"isLoading"}],staticClass:"wt-select__loading-wrapper"},[_c('wt-loader',{attrs:{"size":"sm"}})],1)]),(_vm.showIntersectionObserver)?_c('template',{slot:"afterList"},[_c('div',{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:(_vm.handleAfterListIntersect),expression:"handleAfterListIntersect"}]})]):_vm._e()],2),(_vm.isValidation)?_c('wt-input-info',{attrs:{"invalid":_vm.invalid}},[_vm._v(_vm._s(_vm.validationText)+" ")]):_vm._e()],1)}
21030
- var wt_selectvue_type_template_id_4d514881_scoped_true_staticRenderFns = []
21030
+ var wt_selectvue_type_template_id_2205626a_scoped_true_staticRenderFns = []
21031
21031
 
21032
21032
 
21033
21033
  // EXTERNAL MODULE: ./node_modules/vue-multiselect/dist/vue-multiselect.min.js
@@ -21360,6 +21360,7 @@ var isEmpty = function isEmpty(value) {
21360
21360
 
21361
21361
 
21362
21362
 
21363
+
21363
21364
  //
21364
21365
  //
21365
21366
  //
@@ -21499,8 +21500,7 @@ var isEmpty = function isEmpty(value) {
21499
21500
  default: 'id'
21500
21501
  },
21501
21502
  optionLabel: {
21502
- type: String,
21503
- default: 'name'
21503
+ type: String
21504
21504
  },
21505
21505
  searchMethod: {
21506
21506
  type: Function
@@ -21578,13 +21578,15 @@ var isEmpty = function isEmpty(value) {
21578
21578
  getOptionLabel: function getOptionLabel(_ref) {
21579
21579
  var option = _ref.option,
21580
21580
  optionLabel = _ref.optionLabel;
21581
+ var defaultOptionLabel = 'name';
21582
+ if (optionLabel) return option[optionLabel];
21581
21583
 
21582
21584
  if (option.locale) {
21583
21585
  if (Array.isArray(option.locale)) return this.$tc.apply(this, _toConsumableArray(option.locale));
21584
21586
  return this.$t(option.locale);
21585
21587
  }
21586
21588
 
21587
- return option[optionLabel] || option;
21589
+ return option[defaultOptionLabel] || option;
21588
21590
  },
21589
21591
  handleSearchChange: function handleSearchChange(search) {
21590
21592
  if (!this.isApiMode) return;
@@ -21663,10 +21665,10 @@ var isEmpty = function isEmpty(value) {
21663
21665
  });
21664
21666
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=script&lang=js&
21665
21667
  /* harmony default export */ var wt_select_wt_selectvue_type_script_lang_js_ = (wt_selectvue_type_script_lang_js_);
21666
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=4d514881&lang=scss&scoped=true&
21668
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=2205626a&lang=scss&scoped=true&
21667
21669
  // extracted by mini-css-extract-plugin
21668
21670
 
21669
- ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=4d514881&lang=scss&scoped=true&
21671
+ ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=2205626a&lang=scss&scoped=true&
21670
21672
 
21671
21673
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue
21672
21674
 
@@ -21679,11 +21681,11 @@ var isEmpty = function isEmpty(value) {
21679
21681
 
21680
21682
  var wt_select_component = componentNormalizer_normalizeComponent(
21681
21683
  wt_select_wt_selectvue_type_script_lang_js_,
21682
- wt_selectvue_type_template_id_4d514881_scoped_true_render,
21683
- wt_selectvue_type_template_id_4d514881_scoped_true_staticRenderFns,
21684
+ wt_selectvue_type_template_id_2205626a_scoped_true_render,
21685
+ wt_selectvue_type_template_id_2205626a_scoped_true_staticRenderFns,
21684
21686
  false,
21685
21687
  null,
21686
- "4d514881",
21688
+ "2205626a",
21687
21689
  null
21688
21690
 
21689
21691
  )