@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.
@@ -22050,8 +22050,8 @@ var wt_tabs_component = componentNormalizer_normalizeComponent(
22050
22050
  )
22051
22051
 
22052
22052
  /* harmony default export */ var wt_tabs = (wt_tabs_component.exports);
22053
- ;// 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&
22054
- 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:{
22053
+ ;// 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&
22054
+ 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:{
22055
22055
  'wt-tags-input--disabled': _vm.disabled,
22056
22056
  'wt-tags-input--invalid': _vm.invalid,
22057
22057
  'wt-tags-input--loading': _vm.isLoading,
@@ -22063,7 +22063,7 @@ return [_c('wt-chip',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(
22063
22063
  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){
22064
22064
  var toggle = ref.toggle;
22065
22065
  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)}
22066
- var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22066
+ var wt_tags_inputvue_type_template_id_0d9325ba_scoped_true_staticRenderFns = []
22067
22067
 
22068
22068
 
22069
22069
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[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&
@@ -22071,6 +22071,7 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22071
22071
 
22072
22072
 
22073
22073
 
22074
+
22074
22075
  //
22075
22076
  //
22076
22077
  //
@@ -22183,10 +22184,25 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22183
22184
  },
22184
22185
  methods: {
22185
22186
  tag: function tag(searchQuery, id) {
22186
- var _ref;
22187
+ var _ref,
22188
+ _this = this;
22187
22189
 
22188
22190
  this.$emit('tag', searchQuery, id);
22189
22191
  var tag = this.trackBy ? (_ref = {}, defineProperty_defineProperty(_ref, this.optionLabel || 'name', searchQuery), defineProperty_defineProperty(_ref, this.trackBy, id || searchQuery), _ref) : searchQuery;
22192
+
22193
+ var isTagExist = function isTagExist(newTag) {
22194
+ if (typeof newTag === 'string') {
22195
+ return _this.options.some(function (elem) {
22196
+ return elem === newTag;
22197
+ });
22198
+ }
22199
+
22200
+ return _this.options.some(function (elem) {
22201
+ return elem[_this.trackBy] === newTag[_this.trackBy];
22202
+ });
22203
+ };
22204
+
22205
+ if (isTagExist(tag)) return;
22190
22206
  this.options.unshift(tag);
22191
22207
 
22192
22208
  if (!this.manualTagging) {
@@ -22212,10 +22228,10 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22212
22228
  });
22213
22229
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=script&lang=js&
22214
22230
  /* harmony default export */ var wt_tags_input_wt_tags_inputvue_type_script_lang_js_ = (wt_tags_inputvue_type_script_lang_js_);
22215
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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&
22231
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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&
22216
22232
  // extracted by mini-css-extract-plugin
22217
22233
 
22218
- ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=1e5744f8&lang=scss&scoped=true&
22234
+ ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue?vue&type=style&index=0&id=0d9325ba&lang=scss&scoped=true&
22219
22235
 
22220
22236
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-tags-input/wt-tags-input.vue
22221
22237
 
@@ -22228,11 +22244,11 @@ var wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns = []
22228
22244
 
22229
22245
  var wt_tags_input_component = componentNormalizer_normalizeComponent(
22230
22246
  wt_tags_input_wt_tags_inputvue_type_script_lang_js_,
22231
- wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_render,
22232
- wt_tags_inputvue_type_template_id_1e5744f8_scoped_true_staticRenderFns,
22247
+ wt_tags_inputvue_type_template_id_0d9325ba_scoped_true_render,
22248
+ wt_tags_inputvue_type_template_id_0d9325ba_scoped_true_staticRenderFns,
22233
22249
  false,
22234
22250
  null,
22235
- "1e5744f8",
22251
+ "0d9325ba",
22236
22252
  null
22237
22253
 
22238
22254
  )