@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.
- package/dist/ui-sdk.common.js +14 -12
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +14 -12
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-select/wt-select.vue +5 -3
package/dist/ui-sdk.common.js
CHANGED
|
@@ -20994,22 +20994,22 @@ var wt_search_bar_component = componentNormalizer_normalizeComponent(
|
|
|
20994
20994
|
)
|
|
20995
20995
|
|
|
20996
20996
|
/* harmony default export */ var wt_search_bar = (wt_search_bar_component.exports);
|
|
20997
|
-
;// 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=
|
|
20998
|
-
var
|
|
20997
|
+
;// 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&
|
|
20998
|
+
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:{
|
|
20999
20999
|
'wt-select--disabled': _vm.disabled,
|
|
21000
21000
|
'wt-select--invalid': _vm.invalid,
|
|
21001
21001
|
'wt-select--clearable': _vm.clearable,
|
|
21002
21002
|
'wt-select--loading': _vm.isLoading,
|
|
21003
21003
|
}},[(_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){
|
|
21004
21004
|
var option = ref.option;
|
|
21005
|
-
return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(option
|
|
21005
|
+
return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(_vm.getOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" ")])]}},{key:"singleLabel",fn:function(ref){
|
|
21006
21006
|
var option = ref.option;
|
|
21007
21007
|
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){
|
|
21008
21008
|
var option = ref.option;
|
|
21009
21009
|
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){
|
|
21010
21010
|
var toggle = ref.toggle;
|
|
21011
21011
|
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)}
|
|
21012
|
-
var
|
|
21012
|
+
var wt_selectvue_type_template_id_2205626a_scoped_true_staticRenderFns = []
|
|
21013
21013
|
|
|
21014
21014
|
|
|
21015
21015
|
// EXTERNAL MODULE: ./node_modules/vue-multiselect/dist/vue-multiselect.min.js
|
|
@@ -21342,6 +21342,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
21342
21342
|
|
|
21343
21343
|
|
|
21344
21344
|
|
|
21345
|
+
|
|
21345
21346
|
//
|
|
21346
21347
|
//
|
|
21347
21348
|
//
|
|
@@ -21481,8 +21482,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
21481
21482
|
default: 'id'
|
|
21482
21483
|
},
|
|
21483
21484
|
optionLabel: {
|
|
21484
|
-
type: String
|
|
21485
|
-
default: 'name'
|
|
21485
|
+
type: String
|
|
21486
21486
|
},
|
|
21487
21487
|
searchMethod: {
|
|
21488
21488
|
type: Function
|
|
@@ -21560,13 +21560,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
21560
21560
|
getOptionLabel: function getOptionLabel(_ref) {
|
|
21561
21561
|
var option = _ref.option,
|
|
21562
21562
|
optionLabel = _ref.optionLabel;
|
|
21563
|
+
var defaultOptionLabel = 'name';
|
|
21564
|
+
if (optionLabel) return option[optionLabel];
|
|
21563
21565
|
|
|
21564
21566
|
if (option.locale) {
|
|
21565
21567
|
if (Array.isArray(option.locale)) return this.$tc.apply(this, _toConsumableArray(option.locale));
|
|
21566
21568
|
return this.$t(option.locale);
|
|
21567
21569
|
}
|
|
21568
21570
|
|
|
21569
|
-
return option[
|
|
21571
|
+
return option[defaultOptionLabel] || option;
|
|
21570
21572
|
},
|
|
21571
21573
|
handleSearchChange: function handleSearchChange(search) {
|
|
21572
21574
|
if (!this.isApiMode) return;
|
|
@@ -21645,10 +21647,10 @@ var isEmpty = function isEmpty(value) {
|
|
|
21645
21647
|
});
|
|
21646
21648
|
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=script&lang=js&
|
|
21647
21649
|
/* harmony default export */ var wt_select_wt_selectvue_type_script_lang_js_ = (wt_selectvue_type_script_lang_js_);
|
|
21648
|
-
;// 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-select/wt-select.vue?vue&type=style&index=0&id=
|
|
21650
|
+
;// 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-select/wt-select.vue?vue&type=style&index=0&id=2205626a&lang=scss&scoped=true&
|
|
21649
21651
|
// extracted by mini-css-extract-plugin
|
|
21650
21652
|
|
|
21651
|
-
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=
|
|
21653
|
+
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=2205626a&lang=scss&scoped=true&
|
|
21652
21654
|
|
|
21653
21655
|
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue
|
|
21654
21656
|
|
|
@@ -21661,11 +21663,11 @@ var isEmpty = function isEmpty(value) {
|
|
|
21661
21663
|
|
|
21662
21664
|
var wt_select_component = componentNormalizer_normalizeComponent(
|
|
21663
21665
|
wt_select_wt_selectvue_type_script_lang_js_,
|
|
21664
|
-
|
|
21665
|
-
|
|
21666
|
+
wt_selectvue_type_template_id_2205626a_scoped_true_render,
|
|
21667
|
+
wt_selectvue_type_template_id_2205626a_scoped_true_staticRenderFns,
|
|
21666
21668
|
false,
|
|
21667
21669
|
null,
|
|
21668
|
-
"
|
|
21670
|
+
"2205626a",
|
|
21669
21671
|
null
|
|
21670
21672
|
|
|
21671
21673
|
)
|