@webitel/ui-sdk 2.1.16 → 2.1.18

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.
@@ -21457,7 +21457,6 @@ var isEmpty = function isEmpty(value) {
21457
21457
 
21458
21458
 
21459
21459
 
21460
-
21461
21460
  /* harmony default export */ var multiselectMixin = ({
21462
21461
  mixins: [validationMixin, labelUsageMixin],
21463
21462
  directives: {
@@ -21504,6 +21503,7 @@ var isEmpty = function isEmpty(value) {
21504
21503
  return {
21505
21504
  apiOptions: [],
21506
21505
  isLoading: false,
21506
+ defaultOptionLabel: 'name',
21507
21507
  searchParams: {
21508
21508
  search: '',
21509
21509
  page: 1
@@ -21547,7 +21547,6 @@ var isEmpty = function isEmpty(value) {
21547
21547
  getOptionLabel: function getOptionLabel(_ref) {
21548
21548
  var option = _ref.option,
21549
21549
  optionLabel = _ref.optionLabel;
21550
- var defaultOptionLabel = 'name';
21551
21550
  if (optionLabel) return option[optionLabel];
21552
21551
 
21553
21552
  if (option.locale) {
@@ -21555,7 +21554,7 @@ var isEmpty = function isEmpty(value) {
21555
21554
  return this.$t(option.locale);
21556
21555
  }
21557
21556
 
21558
- return option[defaultOptionLabel] || option;
21557
+ return option[this.defaultOptionLabel] || option;
21559
21558
  },
21560
21559
  handleSearchChange: function handleSearchChange(search) {
21561
21560
  if (!this.isApiMode) return;
@@ -22138,12 +22137,12 @@ var wt_tabs_component = componentNormalizer_normalizeComponent(
22138
22137
  )
22139
22138
 
22140
22139
  /* harmony default export */ var wt_tabs = (wt_tabs_component.exports);
22141
- ;// 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-tags-input/wt-tags-input.vue?vue&type=template&id=80d88288&scoped=true&
22142
- var wt_tags_inputvue_type_template_id_80d88288_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-tags-input",class:{
22140
+ ;// 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-tags-input/wt-tags-input.vue?vue&type=template&id=0a8892b0&scoped=true&
22141
+ var wt_tags_inputvue_type_template_id_0a8892b0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-tags-input",class:{
22143
22142
  'wt-tags-input--disabled': _vm.disabled,
22144
22143
  'wt-tags-input--invalid': _vm.invalid,
22145
22144
  'wt-tags-input--loading': _vm.isLoading,
22146
- }},[(_vm.hasLabel)?_c('wt-label',_vm._b({staticClass:"wt-tags-input__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-tags-input__select",attrs:{"close-on-select":false,"disabled":_vm.disabled,"internal-search":!_vm.searchMethod,"label":_vm.trackBy ? (_vm.optionLabel || _vm.trackBy) : null,"loading":false,"options":_vm.selectOptions,"placeholder":_vm.placeholder || _vm.label,"taggable":_vm.taggable,"track-by":_vm.trackBy,"value":_vm.selectValue,"multiple":""},scopedSlots:_vm._u([{key:"tag",fn:function(ref){
22145
+ }},[(_vm.hasLabel)?_c('wt-label',_vm._b({staticClass:"wt-tags-input__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-tags-input__select",attrs:{"close-on-select":false,"disabled":_vm.disabled,"internal-search":!_vm.searchMethod,"label":_vm.trackBy ? _vm.optionLabel : null,"loading":false,"options":_vm.selectOptions,"placeholder":_vm.placeholder || _vm.label,"taggable":_vm.taggable,"track-by":_vm.trackBy,"value":_vm.selectValue,"multiple":""},scopedSlots:_vm._u([{key:"tag",fn:function(ref){
22147
22146
  var option = ref.option;
22148
22147
  var remove = ref.remove;
22149
22148
  return [_c('wt-chip',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(_vm.getTagOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" "),_c('wt-icon-btn',{attrs:{"icon":"close--filled","size":"sm"},on:{"click":function($event){return remove(option)}}})],1)]}},{key:"option",fn:function(ref){
@@ -22151,7 +22150,7 @@ return [_c('wt-chip',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(
22151
22150
  return [_vm._t("option",function(){return [_vm._v(" "+_vm._s(_vm.getTagOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" ")]},null,{ option: option, optionLabel: _vm.optionLabel })]}},{key:"caret",fn:function(ref){
22152
22151
  var toggle = ref.toggle;
22153
22152
  return [_c('wt-icon-btn',{staticClass:"multiselect__select",attrs:{"disabled":_vm.disabled,"color":"active","icon":"arrow-down"},nativeOn:{"mousedown":function($event){$event.preventDefault();$event.stopPropagation();return toggle.apply(null, arguments)}}})]}},{key:"beforeList",fn:function(){return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isLoading),expression:"isLoading"}],staticClass:"multiselect__loading-wrapper"},[_c('wt-loader',{attrs:{"size":"sm"}})],1)]},proxy:true},(_vm.showIntersectionObserver)?{key:"afterList",fn:function(){return [_c('div',{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:(_vm.handleAfterListIntersect),expression:"handleAfterListIntersect"}]})]},proxy:true}:null],null,true)},'vue-multiselect',_vm.$attrs,false),_vm.listeners)),(_vm.isValidation)?_c('wt-input-info',{attrs:{"invalid":_vm.invalid}},[_vm._v(_vm._s(_vm.validationText)+" ")]):_vm._e()],1)}
22154
- var wt_tags_inputvue_type_template_id_80d88288_scoped_true_staticRenderFns = []
22153
+ var wt_tags_inputvue_type_template_id_0a8892b0_scoped_true_staticRenderFns = []
22155
22154
 
22156
22155
 
22157
22156
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-81[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=script&lang=js&
@@ -22270,6 +22269,11 @@ var wt_tags_inputvue_type_template_id_80d88288_scoped_true_staticRenderFns = []
22270
22269
  description: "\n False: \"tag\" method automatically pushes { optionLabel | \"name\", trackBy } object to value\n array and $emits \"input\" event.\n\n True: \"tag\" method only $emits \"tag\" event. Tag addition is responsibility of client side.\n "
22271
22270
  }
22272
22271
  },
22272
+ data: function data() {
22273
+ return {
22274
+ defaultOptionLabel: 'label'
22275
+ };
22276
+ },
22273
22277
  methods: {
22274
22278
  tag: function tag(searchQuery, id) {
22275
22279
  var _ref,
@@ -22316,10 +22320,10 @@ var wt_tags_inputvue_type_template_id_80d88288_scoped_true_staticRenderFns = []
22316
22320
  });
22317
22321
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=script&lang=js&
22318
22322
  /* harmony default export */ var wt_tags_input_wt_tags_inputvue_type_script_lang_js_ = (wt_tags_inputvue_type_script_lang_js_);
22319
- ;// 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-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=80d88288&lang=scss&scoped=true&
22323
+ ;// 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-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=0a8892b0&lang=scss&scoped=true&
22320
22324
  // extracted by mini-css-extract-plugin
22321
22325
 
22322
- ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=80d88288&lang=scss&scoped=true&
22326
+ ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=0a8892b0&lang=scss&scoped=true&
22323
22327
 
22324
22328
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue
22325
22329
 
@@ -22332,11 +22336,11 @@ var wt_tags_inputvue_type_template_id_80d88288_scoped_true_staticRenderFns = []
22332
22336
 
22333
22337
  var wt_tags_input_component = componentNormalizer_normalizeComponent(
22334
22338
  wt_tags_input_wt_tags_inputvue_type_script_lang_js_,
22335
- wt_tags_inputvue_type_template_id_80d88288_scoped_true_render,
22336
- wt_tags_inputvue_type_template_id_80d88288_scoped_true_staticRenderFns,
22339
+ wt_tags_inputvue_type_template_id_0a8892b0_scoped_true_render,
22340
+ wt_tags_inputvue_type_template_id_0a8892b0_scoped_true_staticRenderFns,
22337
22341
  false,
22338
22342
  null,
22339
- "80d88288",
22343
+ "0a8892b0",
22340
22344
  null
22341
22345
 
22342
22346
  )