@factoringplus/pl-components-pack-v3 0.5.2-pre-12 → 0.5.2-pre-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.
|
@@ -19826,7 +19826,7 @@ const _hoisted_2$O = ["aria-current", "tabindex"];
|
|
|
19826
19826
|
const _hoisted_3$D = ["tabindex"];
|
|
19827
19827
|
const _hoisted_4$s = ["aria-current", "tabindex"];
|
|
19828
19828
|
const _hoisted_5$l = ["tabindex"];
|
|
19829
|
-
const _hoisted_6$
|
|
19829
|
+
const _hoisted_6$e = ["aria-current", "tabindex"];
|
|
19830
19830
|
const __default__$k = defineComponent({
|
|
19831
19831
|
name: "ElPaginationPager"
|
|
19832
19832
|
});
|
|
@@ -20016,7 +20016,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
20016
20016
|
], "number"]),
|
|
20017
20017
|
"aria-current": _ctx.currentPage === _ctx.pageCount,
|
|
20018
20018
|
tabindex: unref(tabindex)
|
|
20019
|
-
}, toDisplayString(_ctx.pageCount), 11, _hoisted_6$
|
|
20019
|
+
}, toDisplayString(_ctx.pageCount), 11, _hoisted_6$e)) : createCommentVNode("v-if", true)
|
|
20020
20020
|
], 42, _hoisted_1$V);
|
|
20021
20021
|
};
|
|
20022
20022
|
}
|
|
@@ -28668,7 +28668,7 @@ const _hoisted_2$E = {
|
|
|
28668
28668
|
const _hoisted_3$y = { class: "date-switcher__container flex-column" };
|
|
28669
28669
|
const _hoisted_4$o = { class: "d-flex pb-4 justify-content-between" };
|
|
28670
28670
|
const _hoisted_5$i = { class: "date-switcher justify-content-center flex-column" };
|
|
28671
|
-
const _hoisted_6$
|
|
28671
|
+
const _hoisted_6$d = /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1);
|
|
28672
28672
|
const _hoisted_7$a = { class: "date-switcher justify-content-center flex-column" };
|
|
28673
28673
|
const _hoisted_8$8 = /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041A\u043E\u043D\u0435\u0446 \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1);
|
|
28674
28674
|
const _hoisted_9$7 = { class: "d-flex pt-2 justify-content-between" };
|
|
@@ -29000,7 +29000,7 @@ const _sfc_main$L = {
|
|
|
29000
29000
|
createElementVNode("div", _hoisted_3$y, [
|
|
29001
29001
|
createElementVNode("div", _hoisted_4$o, [
|
|
29002
29002
|
createElementVNode("div", _hoisted_5$i, [
|
|
29003
|
-
_hoisted_6$
|
|
29003
|
+
_hoisted_6$d,
|
|
29004
29004
|
withDirectives(createElementVNode("input", {
|
|
29005
29005
|
id: "date-mask",
|
|
29006
29006
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rangeStartDateValue.value = $event),
|
|
@@ -38496,7 +38496,7 @@ const _hoisted_4$n = {
|
|
|
38496
38496
|
class: "dialog-footer"
|
|
38497
38497
|
};
|
|
38498
38498
|
const _hoisted_5$h = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
38499
|
-
const _hoisted_6$
|
|
38499
|
+
const _hoisted_6$c = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
38500
38500
|
const _hoisted_7$9 = {
|
|
38501
38501
|
key: 1,
|
|
38502
38502
|
class: "dialog-footer"
|
|
@@ -38688,7 +38688,7 @@ const _sfc_main$J = /* @__PURE__ */ Object.assign(__default__$6, {
|
|
|
38688
38688
|
}, 8, ["disabled"]),
|
|
38689
38689
|
createVNode(_component_el_button, { onClick: hide }, {
|
|
38690
38690
|
default: withCtx(() => [
|
|
38691
|
-
_hoisted_6$
|
|
38691
|
+
_hoisted_6$c
|
|
38692
38692
|
]),
|
|
38693
38693
|
_: 1
|
|
38694
38694
|
})
|
|
@@ -38811,7 +38811,7 @@ const _hoisted_5$g = {
|
|
|
38811
38811
|
key: 0,
|
|
38812
38812
|
class: "d-flex pl-table-footer position-relative align-items-center justify-content-end"
|
|
38813
38813
|
};
|
|
38814
|
-
const _hoisted_6$
|
|
38814
|
+
const _hoisted_6$b = {
|
|
38815
38815
|
key: 0,
|
|
38816
38816
|
class: "totals"
|
|
38817
38817
|
};
|
|
@@ -38952,7 +38952,7 @@ const _sfc_main$I = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
38952
38952
|
"hide-on-single-page": true
|
|
38953
38953
|
}, {
|
|
38954
38954
|
default: withCtx(() => [
|
|
38955
|
-
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
38955
|
+
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span", _hoisted_6$b, toDisplayString(displayTotal()), 1)) : createCommentVNode("", true)
|
|
38956
38956
|
]),
|
|
38957
38957
|
_: 1
|
|
38958
38958
|
}, 8, ["page-size", "current-page", "page-sizes", "layout", "total"]),
|
|
@@ -41668,7 +41668,7 @@ const _hoisted_4$e = /* @__PURE__ */ createElementVNode("img", { src: _imports_3
|
|
|
41668
41668
|
const _hoisted_5$c = [
|
|
41669
41669
|
_hoisted_4$e
|
|
41670
41670
|
];
|
|
41671
|
-
const _hoisted_6$
|
|
41671
|
+
const _hoisted_6$a = /* @__PURE__ */ createElementVNode("button", { class: "btn btn__confirm btn__blue" }, "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C", -1);
|
|
41672
41672
|
const _sfc_main$s = {
|
|
41673
41673
|
__name: "pl-popupForm",
|
|
41674
41674
|
props: {
|
|
@@ -41733,7 +41733,7 @@ const _sfc_main$s = {
|
|
|
41733
41733
|
]),
|
|
41734
41734
|
footer: withCtx(() => [
|
|
41735
41735
|
createElementVNode("div", { class: "d-flex flex-row-reverse gap-3 mt-48" }, [
|
|
41736
|
-
_hoisted_6$
|
|
41736
|
+
_hoisted_6$a,
|
|
41737
41737
|
createElementVNode("button", {
|
|
41738
41738
|
onClick: exit,
|
|
41739
41739
|
class: "btn btn__close"
|
|
@@ -41804,7 +41804,7 @@ const _hoisted_5$b = /* @__PURE__ */ createElementVNode("img", {
|
|
|
41804
41804
|
src: _imports_0$b,
|
|
41805
41805
|
alt: "add"
|
|
41806
41806
|
}, null, -1);
|
|
41807
|
-
const _hoisted_6$
|
|
41807
|
+
const _hoisted_6$9 = [
|
|
41808
41808
|
_hoisted_5$b
|
|
41809
41809
|
];
|
|
41810
41810
|
const _hoisted_7$8 = /* @__PURE__ */ createElementVNode("img", {
|
|
@@ -41911,7 +41911,7 @@ const _sfc_main$r = {
|
|
|
41911
41911
|
withDirectives(createElementVNode("button", {
|
|
41912
41912
|
onClick: _cache[0] || (_cache[0] = (...args) => __props.addItem && __props.addItem(...args)),
|
|
41913
41913
|
class: "btn pl-list__btn"
|
|
41914
|
-
}, _hoisted_6$
|
|
41914
|
+
}, _hoisted_6$9, 512), [
|
|
41915
41915
|
[vShow, __props.isShowList]
|
|
41916
41916
|
])
|
|
41917
41917
|
]),
|
|
@@ -41980,7 +41980,7 @@ const _hoisted_2$m = { class: "d-flex justify-content-between mt-32" };
|
|
|
41980
41980
|
const _hoisted_3$i = { class: "d-flex justify-content-between mt-32" };
|
|
41981
41981
|
const _hoisted_4$c = { class: "d-flex justify-content-between mt-32" };
|
|
41982
41982
|
const _hoisted_5$a = { class: "d-flex justify-content-between mt-32" };
|
|
41983
|
-
const _hoisted_6$
|
|
41983
|
+
const _hoisted_6$8 = { class: "d-flex justify-content-between mt-32" };
|
|
41984
41984
|
const _hoisted_7$7 = { class: "d-flex justify-content-between mt-32" };
|
|
41985
41985
|
const _hoisted_8$5 = { key: 0 };
|
|
41986
41986
|
const _hoisted_9$4 = { class: "d-flex justify-content-between mt-32" };
|
|
@@ -42278,7 +42278,7 @@ const _sfc_main$q = {
|
|
|
42278
42278
|
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => unref(formClient).newRepresentative.organ = $event),
|
|
42279
42279
|
placeholder: unref(placeholders).passport.organ
|
|
42280
42280
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
42281
|
-
createElementVNode("div", _hoisted_6$
|
|
42281
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
42282
42282
|
createVNode(_component_el_form_item, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438 \u043F\u0430\u0441\u043F\u043E\u0440\u0442\u0430" }, {
|
|
42283
42283
|
default: withCtx(() => [
|
|
42284
42284
|
createVNode(_sfc_main$u, {
|
|
@@ -42976,7 +42976,7 @@ const _hoisted_2$j = { class: "d-flex justify-content-between mt-32" };
|
|
|
42976
42976
|
const _hoisted_3$g = { class: "d-flex justify-content-between mt-32" };
|
|
42977
42977
|
const _hoisted_4$b = { class: "d-flex justify-content-between mt-32" };
|
|
42978
42978
|
const _hoisted_5$9 = { class: "d-flex justify-content-between mt-32" };
|
|
42979
|
-
const _hoisted_6$
|
|
42979
|
+
const _hoisted_6$7 = { class: "d-flex justify-content-between mt-32" };
|
|
42980
42980
|
const _hoisted_7$6 = { class: "d-flex justify-content-between mt-32" };
|
|
42981
42981
|
const _sfc_main$n = {
|
|
42982
42982
|
__name: "pl-additional",
|
|
@@ -43183,7 +43183,7 @@ const _sfc_main$n = {
|
|
|
43183
43183
|
modelValue: unref(formClient).newBeneficiary.isBeneficiary,
|
|
43184
43184
|
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(formClient).newBeneficiary.isBeneficiary = $event)
|
|
43185
43185
|
}, null, 8, ["modelValue"]),
|
|
43186
|
-
createElementVNode("div", _hoisted_6$
|
|
43186
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
43187
43187
|
createVNode(_component_el_form_item, {
|
|
43188
43188
|
class: "width-260",
|
|
43189
43189
|
label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F"
|
|
@@ -43368,7 +43368,7 @@ const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("div", { class: "stepper
|
|
|
43368
43368
|
const _hoisted_5$7 = /* @__PURE__ */ createElementVNode("div", { class: "stepper-figure__progress" }, [
|
|
43369
43369
|
/* @__PURE__ */ createElementVNode("div", { class: "stepper-figure__progress-inner" })
|
|
43370
43370
|
], -1);
|
|
43371
|
-
const _hoisted_6$
|
|
43371
|
+
const _hoisted_6$6 = [
|
|
43372
43372
|
_hoisted_4$9,
|
|
43373
43373
|
_hoisted_5$7
|
|
43374
43374
|
];
|
|
@@ -43494,7 +43494,7 @@ const _sfc_main$l = /* @__PURE__ */ Object.assign(__default__$1, {
|
|
|
43494
43494
|
}])
|
|
43495
43495
|
}, toDisplayString(item[__props.stepName]), 3)
|
|
43496
43496
|
]),
|
|
43497
|
-
__props.currentCount > item[__props.stepCountName] && !checkCurrentTariff(item, unref(currentTariff)) ? (openBlock(), createElementBlock("div", _hoisted_3$e, _hoisted_6$
|
|
43497
|
+
__props.currentCount > item[__props.stepCountName] && !checkCurrentTariff(item, unref(currentTariff)) ? (openBlock(), createElementBlock("div", _hoisted_3$e, _hoisted_6$6)) : (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
43498
43498
|
createElementVNode("div", {
|
|
43499
43499
|
class: normalizeClass(["stepper-figure__circle", {
|
|
43500
43500
|
"stepper-figure__circle_checked": checkCurrentTariff(item, unref(currentTariff))
|
|
@@ -47578,10 +47578,12 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
|
47578
47578
|
async sendMessage(params, callback) {
|
|
47579
47579
|
try {
|
|
47580
47580
|
this.isManagerSendMsg = true;
|
|
47581
|
+
const { message: message2 } = params;
|
|
47581
47582
|
await Promise.all([
|
|
47582
47583
|
await this.loadMessages(),
|
|
47583
47584
|
await apiChat.postChatMessagesByChannelId(this.api, this.baseUrl, this.channelId, params)
|
|
47584
47585
|
]);
|
|
47586
|
+
this.messages.push(message2);
|
|
47585
47587
|
} catch {
|
|
47586
47588
|
this.messages.push({
|
|
47587
47589
|
...params.message,
|
|
@@ -47682,15 +47684,19 @@ const _sfc_main$e = {
|
|
|
47682
47684
|
width: {
|
|
47683
47685
|
type: String,
|
|
47684
47686
|
default: "100"
|
|
47687
|
+
},
|
|
47688
|
+
unreadMessagesCount: {
|
|
47689
|
+
type: Number,
|
|
47690
|
+
default: 0
|
|
47685
47691
|
}
|
|
47686
47692
|
},
|
|
47687
47693
|
setup(__props) {
|
|
47688
47694
|
const props = __props;
|
|
47689
47695
|
const plChatBtnClass = `pl-chat-btn ${props.type}`;
|
|
47690
|
-
|
|
47696
|
+
useChannelsStore();
|
|
47691
47697
|
return (_ctx, _cache) => {
|
|
47692
47698
|
return openBlock(), createElementBlock("button", {
|
|
47693
|
-
class: normalizeClass([{ "unreaded-message":
|
|
47699
|
+
class: normalizeClass([{ "unreaded-message": __props.unreadMessagesCount }, plChatBtnClass]),
|
|
47694
47700
|
style: normalizeStyle(`width: ${__props.width}px`)
|
|
47695
47701
|
}, [
|
|
47696
47702
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -47745,6 +47751,7 @@ const _sfc_main$d = {
|
|
|
47745
47751
|
const _directive_loading = vLoading;
|
|
47746
47752
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
47747
47753
|
withDirectives((openBlock(), createBlock(_sfc_main$e, {
|
|
47754
|
+
"unread-messages-count": unref(channelsStore).unreadChannelsCount,
|
|
47748
47755
|
type: "info",
|
|
47749
47756
|
width: "171",
|
|
47750
47757
|
onClick: togglePopup
|
|
@@ -47753,7 +47760,7 @@ const _sfc_main$d = {
|
|
|
47753
47760
|
createTextVNode(toDisplayString(__props.btnText), 1)
|
|
47754
47761
|
]),
|
|
47755
47762
|
_: 1
|
|
47756
|
-
})), [
|
|
47763
|
+
}, 8, ["unread-messages-count"])), [
|
|
47757
47764
|
[_directive_loading, unref(channelsStore).isHubsConnected]
|
|
47758
47765
|
]),
|
|
47759
47766
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
@@ -47991,7 +47998,7 @@ const _hoisted_4$6 = {
|
|
|
47991
47998
|
class: "pl-chat-header"
|
|
47992
47999
|
};
|
|
47993
48000
|
const _hoisted_5$5 = /* @__PURE__ */ createElementVNode("span", { class: "pl-chat-header__title" }, "\u041F\u0440\u0438\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B", -1);
|
|
47994
|
-
const _hoisted_6$
|
|
48001
|
+
const _hoisted_6$5 = { key: 1 };
|
|
47995
48002
|
const _hoisted_7$4 = {
|
|
47996
48003
|
key: 0,
|
|
47997
48004
|
class: "pl-chat-header mng"
|
|
@@ -48203,7 +48210,7 @@ const _sfc_main$9 = {
|
|
|
48203
48210
|
onClick: _cache[2] || (_cache[2] = (...args) => unref(commonStore).toggleChatPopup && unref(commonStore).toggleChatPopup(...args))
|
|
48204
48211
|
})
|
|
48205
48212
|
]))
|
|
48206
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
48213
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
48207
48214
|
unref(channelsStore).isChannelsList ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
48208
48215
|
createVNode(_sfc_main$a, {
|
|
48209
48216
|
title: unref(title),
|
|
@@ -49720,10 +49727,10 @@ const _hoisted_5$4 = /* @__PURE__ */ createElementVNode("img", {
|
|
|
49720
49727
|
src: _imports_1$3,
|
|
49721
49728
|
alt: "delete icon"
|
|
49722
49729
|
}, null, -1);
|
|
49723
|
-
const _hoisted_6$
|
|
49730
|
+
const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("span", { class: "send-error__popup-text send-error__popup-text-delete" }, "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", -1);
|
|
49724
49731
|
const _hoisted_7$3 = [
|
|
49725
49732
|
_hoisted_5$4,
|
|
49726
|
-
_hoisted_6$
|
|
49733
|
+
_hoisted_6$4
|
|
49727
49734
|
];
|
|
49728
49735
|
const _sfc_main$7 = {
|
|
49729
49736
|
__name: "PlChatModalAction",
|
|
@@ -49829,7 +49836,7 @@ const _hoisted_2$5 = {
|
|
|
49829
49836
|
const _hoisted_3$5 = { class: "pl-chat-file__info" };
|
|
49830
49837
|
const _hoisted_4$4 = { class: "pl-chat-file__name crop-middle__first" };
|
|
49831
49838
|
const _hoisted_5$3 = { class: "pl-chat-file__name" };
|
|
49832
|
-
const _hoisted_6$
|
|
49839
|
+
const _hoisted_6$3 = { class: "pl-chat-file__mini-icons" };
|
|
49833
49840
|
const _hoisted_7$2 = {
|
|
49834
49841
|
key: 1,
|
|
49835
49842
|
src: _imports_1$2,
|
|
@@ -49966,7 +49973,7 @@ const _sfc_main$6 = {
|
|
|
49966
49973
|
onClick: cancelUpload
|
|
49967
49974
|
})) : createCommentVNode("", true),
|
|
49968
49975
|
withDirectives((openBlock(), createElementBlock("div", null, [
|
|
49969
|
-
createElementVNode("div", _hoisted_6$
|
|
49976
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
49970
49977
|
__props.error ? (openBlock(), createBlock(_sfc_main$7, {
|
|
49971
49978
|
key: 0,
|
|
49972
49979
|
modelValue: isOpenError.value,
|
|
@@ -50018,7 +50025,7 @@ const _hoisted_5$2 = {
|
|
|
50018
50025
|
key: 0,
|
|
50019
50026
|
class: "send-error"
|
|
50020
50027
|
};
|
|
50021
|
-
const _hoisted_6$
|
|
50028
|
+
const _hoisted_6$2 = { key: 0 };
|
|
50022
50029
|
const _hoisted_7$1 = {
|
|
50023
50030
|
key: 0,
|
|
50024
50031
|
class: "pl-chat-msg__icon",
|
|
@@ -50120,7 +50127,7 @@ const _sfc_main$5 = {
|
|
|
50120
50127
|
class: normalizeClass(["pl-chat-msg__time", ["pl-chat-msg__time", { "pl-chat-msg__time-error": unref(msg).isError }]])
|
|
50121
50128
|
}, [
|
|
50122
50129
|
createTextVNode(toDisplayString(unref(getTime)(unref(msg).createdDateTime)) + " ", 1),
|
|
50123
|
-
unref(isClient2) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
50130
|
+
unref(isClient2) ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
50124
50131
|
!unref(msg).isRead ? (openBlock(), createElementBlock("img", _hoisted_7$1)) : (openBlock(), createElementBlock("img", _hoisted_8$1))
|
|
50125
50132
|
])) : createCommentVNode("", true)
|
|
50126
50133
|
], 2)
|
|
@@ -50206,7 +50213,7 @@ const _hoisted_3$1 = {
|
|
|
50206
50213
|
};
|
|
50207
50214
|
const _hoisted_4$1 = { key: 0 };
|
|
50208
50215
|
const _hoisted_5$1 = { key: 0 };
|
|
50209
|
-
const _hoisted_6 = { key: 1 };
|
|
50216
|
+
const _hoisted_6$1 = { key: 1 };
|
|
50210
50217
|
const _hoisted_7 = { key: 0 };
|
|
50211
50218
|
const _hoisted_8 = { key: 0 };
|
|
50212
50219
|
const _hoisted_9 = { class: "pl-chat-files" };
|
|
@@ -50391,7 +50398,7 @@ const _sfc_main$2 = {
|
|
|
50391
50398
|
}), 128))
|
|
50392
50399
|
]);
|
|
50393
50400
|
}), 128))
|
|
50394
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
50401
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
50395
50402
|
_ctx.sortedFiles.length ? withDirectives((openBlock(), createElementBlock("div", _hoisted_7, [
|
|
50396
50403
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortedFiles, (item, index) => {
|
|
50397
50404
|
return openBlock(), createElementBlock("div", {
|
|
@@ -50550,7 +50557,8 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode("img", {
|
|
|
50550
50557
|
src: _imports_0$6,
|
|
50551
50558
|
alt: "add file icon"
|
|
50552
50559
|
}, null, -1);
|
|
50553
|
-
const _hoisted_5 = /* @__PURE__ */
|
|
50560
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("/ ");
|
|
50561
|
+
const _hoisted_6 = /* @__PURE__ */ createElementVNode("img", {
|
|
50554
50562
|
src: _imports_1,
|
|
50555
50563
|
alt: "send message icon"
|
|
50556
50564
|
}, null, -1);
|
|
@@ -50721,24 +50729,6 @@ const _sfc_main$1 = {
|
|
|
50721
50729
|
files.value = files.value.filter((file) => file.internalGuid !== internalGuid);
|
|
50722
50730
|
};
|
|
50723
50731
|
const footerVisibility = computed$1(() => !props.manager && !channelsStore.isFilesList || props.manager && !channelsStore.isFilesList && channelsStore.isOpenChannel && !channelsStore.isClientInfo);
|
|
50724
|
-
const sendMessage2 = () => {
|
|
50725
|
-
if (enableSendMessage.value) {
|
|
50726
|
-
message2.value.attachments = files.value;
|
|
50727
|
-
const newMessage = JSON.parse(JSON.stringify(message2.value));
|
|
50728
|
-
selectedChannelStore.sendMessage({ message: newMessage }, () => {
|
|
50729
|
-
});
|
|
50730
|
-
textArea.value.innerText = "";
|
|
50731
|
-
files.value = [];
|
|
50732
|
-
message2.value.attachments = [];
|
|
50733
|
-
message2.value.text = "";
|
|
50734
|
-
}
|
|
50735
|
-
};
|
|
50736
|
-
const handleEnter = (evt) => {
|
|
50737
|
-
if (evt.keyCode === 13 && !evt.shiftKey) {
|
|
50738
|
-
evt.preventDefault();
|
|
50739
|
-
sendMessage2();
|
|
50740
|
-
}
|
|
50741
|
-
};
|
|
50742
50732
|
const uploadingFiles = computed$1(() => {
|
|
50743
50733
|
let countLoaded = 0;
|
|
50744
50734
|
files.value.reduce((acc, file) => {
|
|
@@ -50760,6 +50750,24 @@ const _sfc_main$1 = {
|
|
|
50760
50750
|
return !!countErrorFiles;
|
|
50761
50751
|
});
|
|
50762
50752
|
const enableSendMessage = computed$1(() => !errorFiles.value && !uploadingFiles.value && (!!message2.value.text || !!files.value.length));
|
|
50753
|
+
const sendMessage2 = () => {
|
|
50754
|
+
if (enableSendMessage.value) {
|
|
50755
|
+
message2.value.attachments = files.value;
|
|
50756
|
+
const newMessage = JSON.parse(JSON.stringify(message2.value));
|
|
50757
|
+
selectedChannelStore.sendMessage({ message: newMessage }, () => {
|
|
50758
|
+
});
|
|
50759
|
+
textArea.value.innerText = "";
|
|
50760
|
+
files.value = [];
|
|
50761
|
+
message2.value.attachments = [];
|
|
50762
|
+
message2.value.text = "";
|
|
50763
|
+
}
|
|
50764
|
+
};
|
|
50765
|
+
const handleEnter = (evt) => {
|
|
50766
|
+
if (evt.keyCode === 13 && !evt.shiftKey) {
|
|
50767
|
+
evt.preventDefault();
|
|
50768
|
+
sendMessage2();
|
|
50769
|
+
}
|
|
50770
|
+
};
|
|
50763
50771
|
return (_ctx, _cache) => {
|
|
50764
50772
|
const _component_el_scrollbar = ElScrollbar;
|
|
50765
50773
|
return unref(footerVisibility) ? (openBlock(), createElementBlock("div", {
|
|
@@ -50807,11 +50815,9 @@ const _sfc_main$1 = {
|
|
|
50807
50815
|
}, null, 32)
|
|
50808
50816
|
])
|
|
50809
50817
|
]),
|
|
50810
|
-
createVNode(_component_el_scrollbar, {
|
|
50811
|
-
height: "196",
|
|
50812
|
-
"wrap-class": "pl-chat-footer__input"
|
|
50813
|
-
}, {
|
|
50818
|
+
createVNode(_component_el_scrollbar, { "wrap-class": "pl-chat-footer__input" }, {
|
|
50814
50819
|
default: withCtx(() => [
|
|
50820
|
+
_hoisted_5,
|
|
50815
50821
|
createElementVNode("div", {
|
|
50816
50822
|
ref_key: "textArea",
|
|
50817
50823
|
ref: textArea,
|
|
@@ -50834,7 +50840,7 @@ const _sfc_main$1 = {
|
|
|
50834
50840
|
width: "40"
|
|
50835
50841
|
}, {
|
|
50836
50842
|
default: withCtx(() => [
|
|
50837
|
-
|
|
50843
|
+
_hoisted_6
|
|
50838
50844
|
]),
|
|
50839
50845
|
_: 1
|
|
50840
50846
|
}, 8, ["class"])
|