@webitel/ui-sdk 2.0.1-0 → 2.0.3-1

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.
@@ -20503,22 +20503,22 @@ var wt_search_bar_component = componentNormalizer_normalizeComponent(
20503
20503
  )
20504
20504
 
20505
20505
  /* harmony default export */ var wt_search_bar = (wt_search_bar_component.exports);
20506
- ;// 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=5e1ce59d&scoped=true&
20507
- var wt_selectvue_type_template_id_5e1ce59d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-select",class:{
20506
+ ;// 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=0fac7f12&scoped=true&
20507
+ var wt_selectvue_type_template_id_0fac7f12_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-select",class:{
20508
20508
  'wt-select--disabled': _vm.disabled,
20509
20509
  'wt-select--invalid': _vm.invalid,
20510
20510
  'wt-select--clearable': _vm.clearable,
20511
20511
  'wt-select--loading': _vm.isLoading,
20512
- }},[(_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:{"value":_vm.selectValue,"options":_vm.selectOptions,"placeholder":_vm.placeholder || _vm.label,"limit":1,"label":_vm.optionLabel,"track-by":_vm.trackBy,"limit-text":function (count) { return ("+" + count); },"loading":false,"internal-search":!_vm.searchMethod,"disabled":_vm.disabled,"allow-empty":_vm.allowEmpty},scopedSlots:_vm._u([{key:"tag",fn:function(ref){
20512
+ }},[(_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.optionLabel,"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){
20513
20513
  var option = ref.option;
20514
20514
  return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(option[_vm.optionLabel] || option)+" ")])]}},{key:"singleLabel",fn:function(ref){
20515
20515
  var option = ref.option;
20516
- return [_vm._t("singleLabel",function(){return [_c('span',{staticClass:"multiselect__single-label"},[_vm._v(" "+_vm._s(_vm.$te(option.locale) ? _vm.$t(option.locale) : (option[_vm.optionLabel] || option))+" ")])]},null,{ option: option, optionLabel: _vm.optionLabel })]}},{key:"option",fn:function(ref){
20516
+ 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){
20517
20517
  var option = ref.option;
20518
- return [_vm._t("option",function(){return [_c('span',[_vm._v(" "+_vm._s(_vm.$te(option.locale) ? _vm.$t(option.locale) : (option[_vm.optionLabel] || option))+" ")])]},null,{ option: option, optionLabel: _vm.optionLabel })]}},{key:"caret",fn:function(ref){
20518
+ 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){
20519
20519
  var toggle = ref.toggle;
20520
- return [_c('wt-icon-btn',{staticClass:"wt-select__arrow-caret",attrs:{"icon":"arrow-down","disabled":_vm.disabled},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)}
20521
- var wt_selectvue_type_template_id_5e1ce59d_scoped_true_staticRenderFns = []
20520
+ 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)}
20521
+ var wt_selectvue_type_template_id_0fac7f12_scoped_true_staticRenderFns = []
20522
20522
 
20523
20523
 
20524
20524
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
@@ -21288,6 +21288,7 @@ var isEmpty = function isEmpty(value) {
21288
21288
 
21289
21289
 
21290
21290
 
21291
+
21291
21292
  //
21292
21293
  //
21293
21294
  //
@@ -21503,6 +21504,17 @@ var isEmpty = function isEmpty(value) {
21503
21504
  }
21504
21505
  },
21505
21506
  methods: {
21507
+ getOptionLabel: function getOptionLabel(_ref) {
21508
+ var option = _ref.option,
21509
+ optionLabel = _ref.optionLabel;
21510
+
21511
+ if (option.locale) {
21512
+ if (Array.isArray(option.locale)) return this.$tc.apply(this, _toConsumableArray(option.locale));
21513
+ return this.$t(option.locale);
21514
+ }
21515
+
21516
+ return option[optionLabel] || option;
21517
+ },
21506
21518
  handleSearchChange: function handleSearchChange(search) {
21507
21519
  if (!this.isApiMode) return;
21508
21520
  this.isLoading = true;
@@ -21522,13 +21534,13 @@ var isEmpty = function isEmpty(value) {
21522
21534
  _this2 = this;
21523
21535
 
21524
21536
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
21525
- var _ref, search, page, _yield$_this2$searchM, items, next;
21537
+ var _ref2, search, page, _yield$_this2$searchM, items, next;
21526
21538
 
21527
21539
  return _regeneratorRuntime().wrap(function _callee$(_context) {
21528
21540
  while (1) {
21529
21541
  switch (_context.prev = _context.next) {
21530
21542
  case 0:
21531
- _ref = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : _this2.searchParams, search = _ref.search, page = _ref.page;
21543
+ _ref2 = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : _this2.searchParams, search = _ref2.search, page = _ref2.page;
21532
21544
 
21533
21545
  if (_this2.isApiMode) {
21534
21546
  _context.next = 3;
@@ -21580,10 +21592,10 @@ var isEmpty = function isEmpty(value) {
21580
21592
  });
21581
21593
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=script&lang=js&
21582
21594
  /* harmony default export */ var wt_select_wt_selectvue_type_script_lang_js_ = (wt_selectvue_type_script_lang_js_);
21583
- ;// 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=5e1ce59d&lang=scss&scoped=true&
21595
+ ;// 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=0fac7f12&lang=scss&scoped=true&
21584
21596
  // extracted by mini-css-extract-plugin
21585
21597
 
21586
- ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=5e1ce59d&lang=scss&scoped=true&
21598
+ ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=0fac7f12&lang=scss&scoped=true&
21587
21599
 
21588
21600
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue
21589
21601
 
@@ -21596,11 +21608,11 @@ var isEmpty = function isEmpty(value) {
21596
21608
 
21597
21609
  var wt_select_component = componentNormalizer_normalizeComponent(
21598
21610
  wt_select_wt_selectvue_type_script_lang_js_,
21599
- wt_selectvue_type_template_id_5e1ce59d_scoped_true_render,
21600
- wt_selectvue_type_template_id_5e1ce59d_scoped_true_staticRenderFns,
21611
+ wt_selectvue_type_template_id_0fac7f12_scoped_true_render,
21612
+ wt_selectvue_type_template_id_0fac7f12_scoped_true_staticRenderFns,
21601
21613
  false,
21602
21614
  null,
21603
- "5e1ce59d",
21615
+ "0fac7f12",
21604
21616
  null
21605
21617
 
21606
21618
  )