@webitel/ui-sdk 2.0.16-9 → 2.0.19
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/img/sprite/idle.svg +4 -0
- package/dist/img/sprite/index.js +1 -1
- package/dist/ui-sdk.common.js +33 -29
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +33 -29
- 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/atoms/wt-icon/wt-icon.vue +5 -1
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +1 -0
- package/src/components/molecules/wt-select/wt-select.vue +5 -3
- package/src/enums/WebitelApplications/AdminSections.enum.js +1 -0
- package/src/locale/en/en.js +2 -0
- package/src/locale/ru/ru.js +2 -0
- package/src/locale/ua/ua.js +2 -0
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +4 -0
- package/src/scripts/__tests__/caseConverters.spec.js +9 -0
- package/src/scripts/caseConverters.js +12 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14.5 7.5L12 9L9.5 7.5H14.5Z"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18 3C18.5523 3 19 3.44772 19 4C19 4.55228 18.5523 5 18 5H17.5V7.72377C17.5 8.74947 16.976 9.70408 16.1106 10.2548L13.3681 12L16.1106 13.7452C16.976 14.2959 17.5 15.2505 17.5 16.2762V19H18C18.5523 19 19 19.4477 19 20C19 20.5523 18.5523 21 18 21H6C5.44772 21 5 20.5523 5 20C5 19.4477 5.44772 19 6 19H6.5V16.2762C6.5 15.2505 7.02403 14.2959 7.88937 13.7452L10.6319 12L7.88937 10.2548C7.02403 9.70408 6.5 8.74947 6.5 7.72377V5H6C5.44772 5 5 4.55228 5 4C5 3.44772 5.44772 3 6 3H18ZM15.5 18.75V16.2762C15.5 15.9343 15.3253 15.6161 15.0369 15.4326L12 13.5L8.96312 15.4326C8.67468 15.6161 8.5 15.9343 8.5 16.2762V18.75L12 17L15.5 18.75ZM15.5 5H8.5V7.72377C8.5 8.06567 8.67468 8.38387 8.96312 8.56743L12 10.5L15.0369 8.56743C15.3253 8.38387 15.5 8.06567 15.5 7.72377V5Z"/>
|
|
4
|
+
</svg>
|
package/dist/img/sprite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./account.svg";import"./adfs.svg";import"./app-navigator.svg";import"./arrow-down.svg";import"./arrow-left.svg";import"./arrow-right.svg";import"./arrow-up.svg";import"./attach.svg";import"./attention.svg";import"./back.svg";import"./bell.svg";import"./bell-badged.svg";import"./bucket.svg";import"./calendar.svg";import"./call.svg";import"./call--filled.svg";import"./call-add-to.svg";import"./call-add-to--filled.svg";import"./call-disconnect.svg";import"./call-disconnect--filled.svg";import"./call-end.svg";import"./call-end--filled.svg";import"./call-inbound.svg";import"./call-inbound--filled.svg";import"./call-missed.svg";import"./call-missed--filled.svg";import"./call-outbound.svg";import"./call-outbound--filled.svg";import"./call-ringing.svg";import"./call-ringing--filled.svg";import"./call-transfer.svg";import"./call-transfer--filled.svg";import"./chat.svg";import"./chat--filled.svg";import"./chat-emoji.svg";import"./chat-end.svg";import"./chat-end--filled.svg";import"./chat-group.svg";import"./chat-join.svg";import"./chat-message-status-read.svg";import"./chat-message-status-sent.svg";import"./chat-quick-response.svg";import"./chat-quick-response--filled.svg";import"./chat-reply.svg";import"./chat-send.svg";import"./chat-transfer.svg";import"./chat-transfer--filled.svg";import"./job.svg";import"./job--accept.svg";import"./job--end.svg";import"./checkbox.svg";import"./checkbox--checked.svg";import"./checkbox--checked--filled.svg";import"./clear.svg";import"./close.svg";import"./close--filled.svg";import"./collapse.svg";import"./column-select.svg";import"./contacts.svg";import"./copy.svg";import"./docs.svg";import"./download.svg";import"./edit.svg";import"./expand.svg";import"./eye--closed.svg";import"./eye--opened.svg";import"./filter.svg";import"./generate.svg";import"./google.svg";import"./history.svg";import"./hold.svg";import"./lock.svg";import"./logout.svg";import"./menu.svg";import"./mail.svg";import"./mail--color.svg";import"./messenger-facebook.svg";import"./messenger-facebook--filled.svg";import"./messenger-infobip.svg";import"./messenger-telegram.svg";import"./messenger-telegram--filled.svg";import"./messenger-viber.svg";import"./messenger-viber--filled.svg";import"./messenger-web-chat.svg";import"./messenger-whatsapp.svg";import"./messenger-whatsapp--filled.svg";import"./messenger-messenger.svg";import"./instagram.svg";import"./mic.svg";import"./mic-muted.svg";import"./move.svg";import"./note.svg";import"./numpad.svg";import"./pause.svg";import"./play.svg";import"./plus.svg";import"./prompter.svg";import"./queue-member.svg";import"./radio.svg";import"./radio--checked.svg";import"./rec.svg";import"./rec-off.svg";import"./refresh.svg";import"./rounded-info.svg";import"./done.svg";import"./search.svg";import"./send-arrow.svg";import"./settings.svg";import"./sort-arrow-down.svg";import"./sort-arrow-up.svg";import"./sound-off.svg";import"./sound-on.svg";import"./star.svg";import"./star--filled.svg";import"./stop.svg";import"./tick.svg";import"./upload.svg";import"./video-off.svg";import"./video.svg";import"./zoom-in.svg";import"./zoom-out.svg";import"./tts-download.svg";import"./stt.svg";import"./stt-download.svg";import"./stt-search.svg";
|
|
1
|
+
import"./account.svg";import"./adfs.svg";import"./app-navigator.svg";import"./arrow-down.svg";import"./arrow-left.svg";import"./arrow-right.svg";import"./arrow-up.svg";import"./attach.svg";import"./attention.svg";import"./back.svg";import"./bell.svg";import"./bell-badged.svg";import"./bucket.svg";import"./calendar.svg";import"./call.svg";import"./call--filled.svg";import"./call-add-to.svg";import"./call-add-to--filled.svg";import"./call-disconnect.svg";import"./call-disconnect--filled.svg";import"./call-end.svg";import"./call-end--filled.svg";import"./call-inbound.svg";import"./call-inbound--filled.svg";import"./call-missed.svg";import"./call-missed--filled.svg";import"./call-outbound.svg";import"./call-outbound--filled.svg";import"./call-ringing.svg";import"./call-ringing--filled.svg";import"./call-transfer.svg";import"./call-transfer--filled.svg";import"./chat.svg";import"./chat--filled.svg";import"./chat-emoji.svg";import"./chat-end.svg";import"./chat-end--filled.svg";import"./chat-group.svg";import"./chat-join.svg";import"./chat-message-status-read.svg";import"./chat-message-status-sent.svg";import"./chat-quick-response.svg";import"./chat-quick-response--filled.svg";import"./chat-reply.svg";import"./chat-send.svg";import"./chat-transfer.svg";import"./chat-transfer--filled.svg";import"./job.svg";import"./job--accept.svg";import"./job--end.svg";import"./checkbox.svg";import"./checkbox--checked.svg";import"./checkbox--checked--filled.svg";import"./clear.svg";import"./close.svg";import"./close--filled.svg";import"./collapse.svg";import"./column-select.svg";import"./contacts.svg";import"./copy.svg";import"./docs.svg";import"./download.svg";import"./edit.svg";import"./expand.svg";import"./eye--closed.svg";import"./eye--opened.svg";import"./filter.svg";import"./generate.svg";import"./google.svg";import"./history.svg";import"./hold.svg";import"./lock.svg";import"./logout.svg";import"./menu.svg";import"./mail.svg";import"./mail--color.svg";import"./messenger-facebook.svg";import"./messenger-facebook--filled.svg";import"./messenger-infobip.svg";import"./messenger-telegram.svg";import"./messenger-telegram--filled.svg";import"./messenger-viber.svg";import"./messenger-viber--filled.svg";import"./messenger-web-chat.svg";import"./messenger-whatsapp.svg";import"./messenger-whatsapp--filled.svg";import"./messenger-messenger.svg";import"./instagram.svg";import"./mic.svg";import"./mic-muted.svg";import"./move.svg";import"./note.svg";import"./numpad.svg";import"./pause.svg";import"./play.svg";import"./plus.svg";import"./prompter.svg";import"./queue-member.svg";import"./radio.svg";import"./radio--checked.svg";import"./rec.svg";import"./rec-off.svg";import"./refresh.svg";import"./rounded-info.svg";import"./done.svg";import"./search.svg";import"./send-arrow.svg";import"./settings.svg";import"./sort-arrow-down.svg";import"./sort-arrow-up.svg";import"./sound-off.svg";import"./sound-on.svg";import"./star.svg";import"./star--filled.svg";import"./stop.svg";import"./tick.svg";import"./upload.svg";import"./video-off.svg";import"./video.svg";import"./zoom-in.svg";import"./zoom-out.svg";import"./tts-download.svg";import"./stt.svg";import"./stt-download.svg";import"./stt-search.svg";import"./idle.svg";
|
package/dist/ui-sdk.common.js
CHANGED
|
@@ -15609,13 +15609,13 @@ var wt_badge_component = componentNormalizer_normalizeComponent(
|
|
|
15609
15609
|
)
|
|
15610
15610
|
|
|
15611
15611
|
/* harmony default export */ var wt_badge = (wt_badge_component.exports);
|
|
15612
|
-
;// 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/atoms/wt-icon/wt-icon.vue?vue&type=template&id=
|
|
15613
|
-
var
|
|
15612
|
+
;// 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/atoms/wt-icon/wt-icon.vue?vue&type=template&id=8fb87ace&scoped=true&
|
|
15613
|
+
var wt_iconvue_type_template_id_8fb87ace_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('i',{staticClass:"wt-icon",class:[
|
|
15614
15614
|
("wt-icon--size-" + _vm.size),
|
|
15615
15615
|
("wt-icon--color-" + _vm.color),
|
|
15616
15616
|
{ 'wt-icon--disabled': _vm.disabled }
|
|
15617
15617
|
]},[_c('svg',{staticClass:"wt-icon__icon"},[_c('use',{attrs:{"xlink:href":_vm.iconName}})])])}
|
|
15618
|
-
var
|
|
15618
|
+
var wt_iconvue_type_template_id_8fb87ace_scoped_true_staticRenderFns = []
|
|
15619
15619
|
|
|
15620
15620
|
|
|
15621
15621
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
@@ -15652,7 +15652,7 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
15652
15652
|
color: {
|
|
15653
15653
|
type: String,
|
|
15654
15654
|
default: 'default',
|
|
15655
|
-
options: ['default', 'contrast', 'active', 'accent', 'disabled', 'success', 'danger', 'transfer', 'job', 'hold', 'secondary-50']
|
|
15655
|
+
options: ['default', 'contrast', 'active', 'accent', 'secondary', 'disabled', 'success', 'danger', 'transfer', 'job', 'hold', 'secondary-50']
|
|
15656
15656
|
},
|
|
15657
15657
|
iconPrefix: {
|
|
15658
15658
|
type: String,
|
|
@@ -15673,10 +15673,10 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
15673
15673
|
});
|
|
15674
15674
|
;// CONCATENATED MODULE: ./src/components/atoms/wt-icon/wt-icon.vue?vue&type=script&lang=js&
|
|
15675
15675
|
/* harmony default export */ var wt_icon_wt_iconvue_type_script_lang_js_ = (wt_iconvue_type_script_lang_js_);
|
|
15676
|
-
;// 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/atoms/wt-icon/wt-icon.vue?vue&type=style&index=0&id=
|
|
15676
|
+
;// 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/atoms/wt-icon/wt-icon.vue?vue&type=style&index=0&id=8fb87ace&lang=scss&scoped=true&
|
|
15677
15677
|
// extracted by mini-css-extract-plugin
|
|
15678
15678
|
|
|
15679
|
-
;// CONCATENATED MODULE: ./src/components/atoms/wt-icon/wt-icon.vue?vue&type=style&index=0&id=
|
|
15679
|
+
;// CONCATENATED MODULE: ./src/components/atoms/wt-icon/wt-icon.vue?vue&type=style&index=0&id=8fb87ace&lang=scss&scoped=true&
|
|
15680
15680
|
|
|
15681
15681
|
;// CONCATENATED MODULE: ./src/components/atoms/wt-icon/wt-icon.vue
|
|
15682
15682
|
|
|
@@ -15689,11 +15689,11 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
15689
15689
|
|
|
15690
15690
|
var wt_icon_component = componentNormalizer_normalizeComponent(
|
|
15691
15691
|
wt_icon_wt_iconvue_type_script_lang_js_,
|
|
15692
|
-
|
|
15693
|
-
|
|
15692
|
+
wt_iconvue_type_template_id_8fb87ace_scoped_true_render,
|
|
15693
|
+
wt_iconvue_type_template_id_8fb87ace_scoped_true_staticRenderFns,
|
|
15694
15694
|
false,
|
|
15695
15695
|
null,
|
|
15696
|
-
"
|
|
15696
|
+
"8fb87ace",
|
|
15697
15697
|
null
|
|
15698
15698
|
|
|
15699
15699
|
)
|
|
@@ -16130,12 +16130,12 @@ var wt_tooltip_component = componentNormalizer_normalizeComponent(
|
|
|
16130
16130
|
)
|
|
16131
16131
|
|
|
16132
16132
|
/* harmony default export */ var wt_tooltip = (wt_tooltip_component.exports);
|
|
16133
|
-
;// 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/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=template&id=
|
|
16134
|
-
var
|
|
16133
|
+
;// 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/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=template&id=7be66823&scoped=true&
|
|
16134
|
+
var wt_rounded_actionvue_type_template_id_7be66823_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wt-button',_vm._b({staticClass:"wt-rounded-action",class:[
|
|
16135
16135
|
("wt-rounded-action--color-" + _vm.color),
|
|
16136
16136
|
{ 'wt-rounded-action--active': _vm.active },
|
|
16137
16137
|
{ 'wt-rounded-action--disabled': _vm.disabled } ],attrs:{"color":"secondary"},on:{"click":function($event){return _vm.$emit('click', $event)}}},'wt-button',Object.assign({}, _vm.$attrs, _vm.$props),false),[_c('wt-icon',{attrs:{"color":_vm.iColor,"icon":_vm.icon,"size":_vm.size}})],1)}
|
|
16138
|
-
var
|
|
16138
|
+
var wt_rounded_actionvue_type_template_id_7be66823_scoped_true_staticRenderFns = []
|
|
16139
16139
|
|
|
16140
16140
|
|
|
16141
16141
|
;// 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/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=script&lang=js&
|
|
@@ -16192,16 +16192,18 @@ var wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_staticRenderFns =
|
|
|
16192
16192
|
iColor: function iColor() {
|
|
16193
16193
|
if (this.iconColor) return this.iconColor;
|
|
16194
16194
|
if (this.disabled) return 'secondary-50';
|
|
16195
|
+
if (this.color === 'secondary') return null; // dont change icon color
|
|
16196
|
+
|
|
16195
16197
|
return this.color;
|
|
16196
16198
|
}
|
|
16197
16199
|
}
|
|
16198
16200
|
});
|
|
16199
16201
|
;// CONCATENATED MODULE: ./src/components/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=script&lang=js&
|
|
16200
16202
|
/* harmony default export */ var wt_rounded_action_wt_rounded_actionvue_type_script_lang_js_ = (wt_rounded_actionvue_type_script_lang_js_);
|
|
16201
|
-
;// 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/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=style&index=0&id=
|
|
16203
|
+
;// 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/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=style&index=0&id=7be66823&lang=scss&scoped=true&
|
|
16202
16204
|
// extracted by mini-css-extract-plugin
|
|
16203
16205
|
|
|
16204
|
-
;// CONCATENATED MODULE: ./src/components/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=style&index=0&id=
|
|
16206
|
+
;// CONCATENATED MODULE: ./src/components/atoms/wt-rounded-action/wt-rounded-action.vue?vue&type=style&index=0&id=7be66823&lang=scss&scoped=true&
|
|
16205
16207
|
|
|
16206
16208
|
;// CONCATENATED MODULE: ./src/components/atoms/wt-rounded-action/wt-rounded-action.vue
|
|
16207
16209
|
|
|
@@ -16214,11 +16216,11 @@ var wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_staticRenderFns =
|
|
|
16214
16216
|
|
|
16215
16217
|
var wt_rounded_action_component = componentNormalizer_normalizeComponent(
|
|
16216
16218
|
wt_rounded_action_wt_rounded_actionvue_type_script_lang_js_,
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
+
wt_rounded_actionvue_type_template_id_7be66823_scoped_true_render,
|
|
16220
|
+
wt_rounded_actionvue_type_template_id_7be66823_scoped_true_staticRenderFns,
|
|
16219
16221
|
false,
|
|
16220
16222
|
null,
|
|
16221
|
-
"
|
|
16223
|
+
"7be66823",
|
|
16222
16224
|
null
|
|
16223
16225
|
|
|
16224
16226
|
)
|
|
@@ -20994,22 +20996,22 @@ var wt_search_bar_component = componentNormalizer_normalizeComponent(
|
|
|
20994
20996
|
)
|
|
20995
20997
|
|
|
20996
20998
|
/* 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
|
|
20999
|
+
;// 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&
|
|
21000
|
+
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
21001
|
'wt-select--disabled': _vm.disabled,
|
|
21000
21002
|
'wt-select--invalid': _vm.invalid,
|
|
21001
21003
|
'wt-select--clearable': _vm.clearable,
|
|
21002
21004
|
'wt-select--loading': _vm.isLoading,
|
|
21003
21005
|
}},[(_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
21006
|
var option = ref.option;
|
|
21005
|
-
return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(option
|
|
21007
|
+
return [_c('span',{staticClass:"multiselect__custom-tag"},[_vm._v(" "+_vm._s(_vm.getOptionLabel({ option: option, optionLabel: _vm.optionLabel }))+" ")])]}},{key:"singleLabel",fn:function(ref){
|
|
21006
21008
|
var option = ref.option;
|
|
21007
21009
|
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
21010
|
var option = ref.option;
|
|
21009
21011
|
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
21012
|
var toggle = ref.toggle;
|
|
21011
21013
|
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
|
|
21014
|
+
var wt_selectvue_type_template_id_2205626a_scoped_true_staticRenderFns = []
|
|
21013
21015
|
|
|
21014
21016
|
|
|
21015
21017
|
// EXTERNAL MODULE: ./node_modules/vue-multiselect/dist/vue-multiselect.min.js
|
|
@@ -21342,6 +21344,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
21342
21344
|
|
|
21343
21345
|
|
|
21344
21346
|
|
|
21347
|
+
|
|
21345
21348
|
//
|
|
21346
21349
|
//
|
|
21347
21350
|
//
|
|
@@ -21481,8 +21484,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
21481
21484
|
default: 'id'
|
|
21482
21485
|
},
|
|
21483
21486
|
optionLabel: {
|
|
21484
|
-
type: String
|
|
21485
|
-
default: 'name'
|
|
21487
|
+
type: String
|
|
21486
21488
|
},
|
|
21487
21489
|
searchMethod: {
|
|
21488
21490
|
type: Function
|
|
@@ -21560,13 +21562,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
21560
21562
|
getOptionLabel: function getOptionLabel(_ref) {
|
|
21561
21563
|
var option = _ref.option,
|
|
21562
21564
|
optionLabel = _ref.optionLabel;
|
|
21565
|
+
var defaultOptionLabel = 'name';
|
|
21566
|
+
if (optionLabel) return option[optionLabel];
|
|
21563
21567
|
|
|
21564
21568
|
if (option.locale) {
|
|
21565
21569
|
if (Array.isArray(option.locale)) return this.$tc.apply(this, _toConsumableArray(option.locale));
|
|
21566
21570
|
return this.$t(option.locale);
|
|
21567
21571
|
}
|
|
21568
21572
|
|
|
21569
|
-
return option[
|
|
21573
|
+
return option[defaultOptionLabel] || option;
|
|
21570
21574
|
},
|
|
21571
21575
|
handleSearchChange: function handleSearchChange(search) {
|
|
21572
21576
|
if (!this.isApiMode) return;
|
|
@@ -21645,10 +21649,10 @@ var isEmpty = function isEmpty(value) {
|
|
|
21645
21649
|
});
|
|
21646
21650
|
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=script&lang=js&
|
|
21647
21651
|
/* 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=
|
|
21652
|
+
;// 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
21653
|
// extracted by mini-css-extract-plugin
|
|
21650
21654
|
|
|
21651
|
-
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=
|
|
21655
|
+
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue?vue&type=style&index=0&id=2205626a&lang=scss&scoped=true&
|
|
21652
21656
|
|
|
21653
21657
|
;// CONCATENATED MODULE: ./src/components/molecules/wt-select/wt-select.vue
|
|
21654
21658
|
|
|
@@ -21661,11 +21665,11 @@ var isEmpty = function isEmpty(value) {
|
|
|
21661
21665
|
|
|
21662
21666
|
var wt_select_component = componentNormalizer_normalizeComponent(
|
|
21663
21667
|
wt_select_wt_selectvue_type_script_lang_js_,
|
|
21664
|
-
|
|
21665
|
-
|
|
21668
|
+
wt_selectvue_type_template_id_2205626a_scoped_true_render,
|
|
21669
|
+
wt_selectvue_type_template_id_2205626a_scoped_true_staticRenderFns,
|
|
21666
21670
|
false,
|
|
21667
21671
|
null,
|
|
21668
|
-
"
|
|
21672
|
+
"2205626a",
|
|
21669
21673
|
null
|
|
21670
21674
|
|
|
21671
21675
|
)
|