@webitel/ui-sdk 2.0.1 → 2.0.2
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 +26 -14
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +26 -14
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-select/wt-select.vue +49 -42
package/dist/ui-sdk.common.js
CHANGED
|
@@ -20485,22 +20485,22 @@ var wt_search_bar_component = componentNormalizer_normalizeComponent(
|
|
|
20485
20485
|
)
|
|
20486
20486
|
|
|
20487
20487
|
/* harmony default export */ var wt_search_bar = (wt_search_bar_component.exports);
|
|
20488
|
-
;// 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=
|
|
20489
|
-
var
|
|
20488
|
+
;// 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&
|
|
20489
|
+
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:{
|
|
20490
20490
|
'wt-select--disabled': _vm.disabled,
|
|
20491
20491
|
'wt-select--invalid': _vm.invalid,
|
|
20492
20492
|
'wt-select--clearable': _vm.clearable,
|
|
20493
20493
|
'wt-select--loading': _vm.isLoading,
|
|
20494
|
-
}},[(_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:{"
|
|
20494
|
+
}},[(_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){
|
|
20495
20495
|
var option = ref.option;
|
|
20496
20496
|
return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(option[_vm.optionLabel] || option)+" ")])]}},{key:"singleLabel",fn:function(ref){
|
|
20497
20497
|
var option = ref.option;
|
|
20498
|
-
return [_vm._t("singleLabel",function(){return [_c('span',{staticClass:"multiselect__single-label"},[_vm._v(" "+_vm._s(_vm
|
|
20498
|
+
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){
|
|
20499
20499
|
var option = ref.option;
|
|
20500
|
-
return [_vm._t("option",function(){return [_c('span',[_vm._v(" "+_vm._s(_vm
|
|
20500
|
+
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){
|
|
20501
20501
|
var toggle = ref.toggle;
|
|
20502
|
-
return [_c('wt-icon-btn',{staticClass:"wt-select__arrow-caret",attrs:{"icon":"arrow-down"
|
|
20503
|
-
var
|
|
20502
|
+
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)}
|
|
20503
|
+
var wt_selectvue_type_template_id_0fac7f12_scoped_true_staticRenderFns = []
|
|
20504
20504
|
|
|
20505
20505
|
|
|
20506
20506
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
@@ -21270,6 +21270,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
21270
21270
|
|
|
21271
21271
|
|
|
21272
21272
|
|
|
21273
|
+
|
|
21273
21274
|
//
|
|
21274
21275
|
//
|
|
21275
21276
|
//
|
|
@@ -21485,6 +21486,17 @@ var isEmpty = function isEmpty(value) {
|
|
|
21485
21486
|
}
|
|
21486
21487
|
},
|
|
21487
21488
|
methods: {
|
|
21489
|
+
getOptionLabel: function getOptionLabel(_ref) {
|
|
21490
|
+
var option = _ref.option,
|
|
21491
|
+
optionLabel = _ref.optionLabel;
|
|
21492
|
+
|
|
21493
|
+
if (option.locale) {
|
|
21494
|
+
if (Array.isArray(option.locale)) return this.$tc.apply(this, _toConsumableArray(option.locale));
|
|
21495
|
+
return this.$t(option.locale);
|
|
21496
|
+
}
|
|
21497
|
+
|
|
21498
|
+
return option[optionLabel] || option;
|
|
21499
|
+
},
|
|
21488
21500
|
handleSearchChange: function handleSearchChange(search) {
|
|
21489
21501
|
if (!this.isApiMode) return;
|
|
21490
21502
|
this.isLoading = true;
|
|
@@ -21504,13 +21516,13 @@ var isEmpty = function isEmpty(value) {
|
|
|
21504
21516
|
_this2 = this;
|
|
21505
21517
|
|
|
21506
21518
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21507
|
-
var
|
|
21519
|
+
var _ref2, search, page, _yield$_this2$searchM, items, next;
|
|
21508
21520
|
|
|
21509
21521
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21510
21522
|
while (1) {
|
|
21511
21523
|
switch (_context.prev = _context.next) {
|
|
21512
21524
|
case 0:
|
|
21513
|
-
|
|
21525
|
+
_ref2 = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : _this2.searchParams, search = _ref2.search, page = _ref2.page;
|
|
21514
21526
|
|
|
21515
21527
|
if (_this2.isApiMode) {
|
|
21516
21528
|
_context.next = 3;
|
|
@@ -21562,10 +21574,10 @@ var isEmpty = function isEmpty(value) {
|
|
|
21562
21574
|
});
|
|
21563
21575
|
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=script&lang=js&
|
|
21564
21576
|
/* harmony default export */ var wt_select_wt_selectvue_type_script_lang_js_ = (wt_selectvue_type_script_lang_js_);
|
|
21565
|
-
;// 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=
|
|
21577
|
+
;// 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=0fac7f12&lang=scss&scoped=true&
|
|
21566
21578
|
// extracted by mini-css-extract-plugin
|
|
21567
21579
|
|
|
21568
|
-
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=
|
|
21580
|
+
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=0fac7f12&lang=scss&scoped=true&
|
|
21569
21581
|
|
|
21570
21582
|
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue
|
|
21571
21583
|
|
|
@@ -21578,11 +21590,11 @@ var isEmpty = function isEmpty(value) {
|
|
|
21578
21590
|
|
|
21579
21591
|
var wt_select_component = componentNormalizer_normalizeComponent(
|
|
21580
21592
|
wt_select_wt_selectvue_type_script_lang_js_,
|
|
21581
|
-
|
|
21582
|
-
|
|
21593
|
+
wt_selectvue_type_template_id_0fac7f12_scoped_true_render,
|
|
21594
|
+
wt_selectvue_type_template_id_0fac7f12_scoped_true_staticRenderFns,
|
|
21583
21595
|
false,
|
|
21584
21596
|
null,
|
|
21585
|
-
"
|
|
21597
|
+
"0fac7f12",
|
|
21586
21598
|
null
|
|
21587
21599
|
|
|
21588
21600
|
)
|