@factoringplus/pl-components-pack-v3 0.4.96-pre-7 → 0.4.96-pre-8
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.
|
@@ -44450,6 +44450,17 @@ const useChannelsStore = defineStore("channels", {
|
|
|
44450
44450
|
}
|
|
44451
44451
|
}
|
|
44452
44452
|
});
|
|
44453
|
+
const useCommonStore = defineStore("common", {
|
|
44454
|
+
state: () => ({
|
|
44455
|
+
isOpenChatPopup: false
|
|
44456
|
+
}),
|
|
44457
|
+
getters: {},
|
|
44458
|
+
actions: {
|
|
44459
|
+
toggleChatPopup() {
|
|
44460
|
+
this.isOpenChatPopup = !this.isOpenChatPopup;
|
|
44461
|
+
}
|
|
44462
|
+
}
|
|
44463
|
+
});
|
|
44453
44464
|
var PlChatBtn_vue_vue_type_style_index_0_lang = "";
|
|
44454
44465
|
const _sfc_main$6 = {
|
|
44455
44466
|
__name: "PlChatBtn",
|
|
@@ -44489,20 +44500,15 @@ const _hoisted_2$4 = {
|
|
|
44489
44500
|
const _sfc_main$5 = {
|
|
44490
44501
|
__name: "PlChatPopup",
|
|
44491
44502
|
props: {
|
|
44492
|
-
modelValue: {
|
|
44493
|
-
type: Boolean,
|
|
44494
|
-
default: false
|
|
44495
|
-
},
|
|
44496
44503
|
btnText: {
|
|
44497
44504
|
type: String,
|
|
44498
44505
|
default: "Button text"
|
|
44499
44506
|
}
|
|
44500
44507
|
},
|
|
44501
|
-
|
|
44502
|
-
setup(__props, { emit: emit2 }) {
|
|
44503
|
-
const props = __props;
|
|
44508
|
+
setup(__props) {
|
|
44504
44509
|
const channelsStore = useChannelsStore();
|
|
44505
44510
|
const groupsStore = useGroupsStore();
|
|
44511
|
+
const commonStore = useCommonStore();
|
|
44506
44512
|
const getChannelsInfo = async () => {
|
|
44507
44513
|
channelsStore.setIsLoadingChannels(true);
|
|
44508
44514
|
try {
|
|
@@ -44518,11 +44524,11 @@ const _sfc_main$5 = {
|
|
|
44518
44524
|
}
|
|
44519
44525
|
};
|
|
44520
44526
|
const togglePopup = async () => {
|
|
44521
|
-
if (!
|
|
44527
|
+
if (!commonStore.isOpenChatPopup) {
|
|
44522
44528
|
await getChannelsInfo();
|
|
44523
|
-
await
|
|
44529
|
+
await commonStore.toggleChatPopup();
|
|
44524
44530
|
} else {
|
|
44525
|
-
|
|
44531
|
+
commonStore.toggleChatPopup();
|
|
44526
44532
|
}
|
|
44527
44533
|
};
|
|
44528
44534
|
return (_ctx, _cache) => {
|
|
@@ -44541,7 +44547,7 @@ const _sfc_main$5 = {
|
|
|
44541
44547
|
[_directive_loading, unref(channelsStore).isHubsConnected]
|
|
44542
44548
|
]),
|
|
44543
44549
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
44544
|
-
|
|
44550
|
+
unref(commonStore).isOpenChatPopup ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
44545
44551
|
createElementVNode("div", _hoisted_2$4, [
|
|
44546
44552
|
renderSlot(_ctx.$slots, "default")
|
|
44547
44553
|
])
|
|
@@ -44763,7 +44769,6 @@ const _sfc_main$2 = {
|
|
|
44763
44769
|
};
|
|
44764
44770
|
}
|
|
44765
44771
|
};
|
|
44766
|
-
dayjs.locale("ru");
|
|
44767
44772
|
const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
44768
44773
|
state: () => ({
|
|
44769
44774
|
channelId: "",
|
|
@@ -44907,18 +44912,10 @@ const _sfc_main$1 = {
|
|
|
44907
44912
|
type: String,
|
|
44908
44913
|
default: "Title"
|
|
44909
44914
|
},
|
|
44910
|
-
toggle: {
|
|
44911
|
-
type: Function,
|
|
44912
|
-
default: () => ({})
|
|
44913
|
-
},
|
|
44914
44915
|
manager: {
|
|
44915
44916
|
type: Boolean,
|
|
44916
44917
|
default: false
|
|
44917
44918
|
},
|
|
44918
|
-
infoMessage: {
|
|
44919
|
-
type: String,
|
|
44920
|
-
default: "info"
|
|
44921
|
-
},
|
|
44922
44919
|
idAsideMenu: {
|
|
44923
44920
|
type: String,
|
|
44924
44921
|
default: ""
|
|
@@ -44928,20 +44925,18 @@ const _sfc_main$1 = {
|
|
|
44928
44925
|
default: ""
|
|
44929
44926
|
}
|
|
44930
44927
|
},
|
|
44931
|
-
|
|
44932
|
-
setup(__props, { emit: emit2 }) {
|
|
44928
|
+
setup(__props) {
|
|
44933
44929
|
const props = __props;
|
|
44934
44930
|
const {
|
|
44935
44931
|
title,
|
|
44936
|
-
toggle,
|
|
44937
44932
|
manager,
|
|
44938
|
-
infoMessage,
|
|
44939
44933
|
idAsideMenu,
|
|
44940
44934
|
idHeaderMenu
|
|
44941
44935
|
} = toRefs(props);
|
|
44942
44936
|
const channelsStore = useChannelsStore();
|
|
44943
44937
|
const groupsStore = useGroupsStore();
|
|
44944
44938
|
const selectedChannelStore = useSelectedChannelStore();
|
|
44939
|
+
const commonStore = useCommonStore();
|
|
44945
44940
|
const popups = reactive({
|
|
44946
44941
|
isMoreInfo: false,
|
|
44947
44942
|
isModal: false,
|
|
@@ -45004,7 +44999,7 @@ const _sfc_main$1 = {
|
|
|
45004
44999
|
};
|
|
45005
45000
|
const openModal = (item) => {
|
|
45006
45001
|
popups.isModal = true;
|
|
45007
|
-
|
|
45002
|
+
groupsStore.setGroupInfo(item);
|
|
45008
45003
|
popups.isMoreInfo = false;
|
|
45009
45004
|
};
|
|
45010
45005
|
const closeModal = () => {
|
|
@@ -45065,7 +45060,7 @@ const _sfc_main$1 = {
|
|
|
45065
45060
|
class: "pl-chat-header__close-icon cursor-p",
|
|
45066
45061
|
src: _imports_0,
|
|
45067
45062
|
alt: "close icon",
|
|
45068
|
-
onClick: _cache[0] || (_cache[0] = (...args) => unref(
|
|
45063
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref(commonStore).toggleChatPopup && unref(commonStore).toggleChatPopup(...args))
|
|
45069
45064
|
})
|
|
45070
45065
|
])
|
|
45071
45066
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
@@ -45080,7 +45075,7 @@ const _sfc_main$1 = {
|
|
|
45080
45075
|
class: "pl-chat-header__close-icon cursor-p",
|
|
45081
45076
|
src: _imports_0,
|
|
45082
45077
|
alt: "close icon",
|
|
45083
|
-
onClick: _cache[2] || (_cache[2] = (...args) => unref(
|
|
45078
|
+
onClick: _cache[2] || (_cache[2] = (...args) => unref(commonStore).toggleChatPopup && unref(commonStore).toggleChatPopup(...args))
|
|
45084
45079
|
})
|
|
45085
45080
|
]))
|
|
45086
45081
|
])) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
@@ -45095,7 +45090,7 @@ const _sfc_main$1 = {
|
|
|
45095
45090
|
class: "cursor-p",
|
|
45096
45091
|
src: _imports_0,
|
|
45097
45092
|
alt: "close icon",
|
|
45098
|
-
onClick: _cache[3] || (_cache[3] = (...args) => unref(
|
|
45093
|
+
onClick: _cache[3] || (_cache[3] = (...args) => unref(commonStore).toggleChatPopup && unref(commonStore).toggleChatPopup(...args))
|
|
45099
45094
|
})
|
|
45100
45095
|
])
|
|
45101
45096
|
])) : (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
@@ -45132,7 +45127,7 @@ const _sfc_main$1 = {
|
|
|
45132
45127
|
class: "cursor-p",
|
|
45133
45128
|
src: _imports_0,
|
|
45134
45129
|
alt: "close icon",
|
|
45135
|
-
onClick: _cache[5] || (_cache[5] = (...args) => unref(
|
|
45130
|
+
onClick: _cache[5] || (_cache[5] = (...args) => unref(commonStore).toggleChatPopup && unref(commonStore).toggleChatPopup(...args))
|
|
45136
45131
|
})
|
|
45137
45132
|
]),
|
|
45138
45133
|
popups.isMoreInfo ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
@@ -45216,10 +45211,6 @@ const _sfc_main = {
|
|
|
45216
45211
|
const configStore = useConfigStore();
|
|
45217
45212
|
const groupsStore = useGroupsStore();
|
|
45218
45213
|
const channelsStore = useChannelsStore();
|
|
45219
|
-
const isOpen = ref(false);
|
|
45220
|
-
const togglePopup = () => {
|
|
45221
|
-
isOpen.value = !isOpen.value;
|
|
45222
|
-
};
|
|
45223
45214
|
const getChannelsInfo = async () => {
|
|
45224
45215
|
configStore.getToken(token);
|
|
45225
45216
|
configStore.getBaseUrl(baseUrl);
|
|
@@ -45297,24 +45288,17 @@ const _sfc_main = {
|
|
|
45297
45288
|
};
|
|
45298
45289
|
chatManagerStart();
|
|
45299
45290
|
return (_ctx, _cache) => {
|
|
45300
|
-
return openBlock(), createBlock(_sfc_main$5, {
|
|
45301
|
-
modelValue: isOpen.value,
|
|
45302
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isOpen.value = $event),
|
|
45303
|
-
"btn-text": "\u0427\u0430\u0442 \u0441 \u043A\u043B\u0438\u0435\u043D\u0442\u0430\u043C\u0438"
|
|
45304
|
-
}, {
|
|
45291
|
+
return openBlock(), createBlock(_sfc_main$5, { "btn-text": "\u0427\u0430\u0442 \u0441 \u043A\u043B\u0438\u0435\u043D\u0442\u0430\u043C\u0438" }, {
|
|
45305
45292
|
default: withCtx(() => [
|
|
45306
45293
|
createVNode(_sfc_main$1, {
|
|
45307
45294
|
manager: "",
|
|
45308
45295
|
title: "\u0427\u0430\u0442 \u0441 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C",
|
|
45309
|
-
toggle: togglePopup,
|
|
45310
|
-
"info-message": _ctx.infoMessage,
|
|
45311
|
-
"onUpdate:info-message": _cache[0] || (_cache[0] = ($event) => _ctx.infoMessage = $event),
|
|
45312
45296
|
"id-aside-menu": "scroll-aside",
|
|
45313
45297
|
"id-header-menu": "header"
|
|
45314
|
-
}
|
|
45298
|
+
})
|
|
45315
45299
|
]),
|
|
45316
45300
|
_: 1
|
|
45317
|
-
}
|
|
45301
|
+
});
|
|
45318
45302
|
};
|
|
45319
45303
|
}
|
|
45320
45304
|
};
|