@webitel/ui-sdk 2.1.12 → 2.1.14

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.
@@ -22068,8 +22068,8 @@ var wt_tabs_component = componentNormalizer_normalizeComponent(
22068
22068
  )
22069
22069
 
22070
22070
  /* harmony default export */ var wt_tabs = (wt_tabs_component.exports);
22071
- ;// 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=1e5744f8&scoped=true&
22072
- var wt_tags_inputvue_type_template_id_1e5744f8_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:{
22071
+ ;// 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=0d9325ba&scoped=true&
22072
+ var wt_tags_inputvue_type_template_id_0d9325ba_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:{
22073
22073
  'wt-tags-input--disabled': _vm.disabled,
22074
22074
  'wt-tags-input--invalid': _vm.invalid,
22075
22075
  'wt-tags-input--loading': _vm.isLoading,
@@ -22081,7 +22081,7 @@ return [_c('wt-chip',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(
22081
22081
  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){
22082
22082
  var toggle = ref.toggle;
22083
22083
  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)}
22084
- var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22084
+ var wt_tags_inputvue_type_template_id_0d9325ba_scoped_true_staticRenderFns = []
22085
22085
 
22086
22086
 
22087
22087
  ;// 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&
@@ -22089,6 +22089,7 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22089
22089
 
22090
22090
 
22091
22091
 
22092
+
22092
22093
  //
22093
22094
  //
22094
22095
  //
@@ -22201,10 +22202,25 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22201
22202
  },
22202
22203
  methods: {
22203
22204
  tag: function tag(searchQuery, id) {
22204
- var _ref;
22205
+ var _ref,
22206
+ _this = this;
22205
22207
 
22206
22208
  this.$emit('tag', searchQuery, id);
22207
22209
  var tag = this.trackBy ? (_ref = {}, defineProperty_defineProperty(_ref, this.optionLabel || 'name', searchQuery), defineProperty_defineProperty(_ref, this.trackBy, id || searchQuery), _ref) : searchQuery;
22210
+
22211
+ var isTagExist = function isTagExist(newTag) {
22212
+ if (typeof newTag === 'string') {
22213
+ return _this.options.some(function (elem) {
22214
+ return elem === newTag;
22215
+ });
22216
+ }
22217
+
22218
+ return _this.options.some(function (elem) {
22219
+ return elem[_this.trackBy] === newTag[_this.trackBy];
22220
+ });
22221
+ };
22222
+
22223
+ if (isTagExist(tag)) return;
22208
22224
  this.options.unshift(tag);
22209
22225
 
22210
22226
  if (!this.manualTagging) {
@@ -22230,10 +22246,10 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22230
22246
  });
22231
22247
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=script&lang=js&
22232
22248
  /* harmony default export */ var wt_tags_input_wt_tags_inputvue_type_script_lang_js_ = (wt_tags_inputvue_type_script_lang_js_);
22233
- ;// 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=1e5744f8&lang=scss&scoped=true&
22249
+ ;// 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=0d9325ba&lang=scss&scoped=true&
22234
22250
  // extracted by mini-css-extract-plugin
22235
22251
 
22236
- ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=1e5744f8&lang=scss&scoped=true&
22252
+ ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=0d9325ba&lang=scss&scoped=true&
22237
22253
 
22238
22254
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue
22239
22255
 
@@ -22246,11 +22262,11 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22246
22262
 
22247
22263
  var wt_tags_input_component = componentNormalizer_normalizeComponent(
22248
22264
  wt_tags_input_wt_tags_inputvue_type_script_lang_js_,
22249
- wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_render,
22250
- wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns,
22265
+ wt_tags_inputvue_type_template_id_0d9325ba_scoped_true_render,
22266
+ wt_tags_inputvue_type_template_id_0d9325ba_scoped_true_staticRenderFns,
22251
22267
  false,
22252
22268
  null,
22253
- "1e5744f8",
22269
+ "0d9325ba",
22254
22270
  null
22255
22271
 
22256
22272
  )