@factoringplus/pl-components-pack-v3 0.5.2-pre-15 → 0.5.2-pre-17
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.
|
@@ -47005,13 +47005,14 @@ const useConfigStore = defineStore("config", {
|
|
|
47005
47005
|
}
|
|
47006
47006
|
}
|
|
47007
47007
|
});
|
|
47008
|
+
const xGroupId = "KIK";
|
|
47008
47009
|
var apiChat = {
|
|
47009
47010
|
getChannels(api, baseUrl, category, count2 = 50) {
|
|
47010
47011
|
return api({
|
|
47011
47012
|
url: `${baseUrl}/api/channels/issues/${category}`,
|
|
47012
47013
|
method: "GET",
|
|
47013
47014
|
headers: {
|
|
47014
|
-
"x-group-id":
|
|
47015
|
+
"x-group-id": xGroupId
|
|
47015
47016
|
},
|
|
47016
47017
|
params: {
|
|
47017
47018
|
count: count2
|
|
@@ -47023,7 +47024,7 @@ var apiChat = {
|
|
|
47023
47024
|
url: `${baseUrl}/api/channels/issues/count`,
|
|
47024
47025
|
method: "GET",
|
|
47025
47026
|
headers: {
|
|
47026
|
-
"x-group-id":
|
|
47027
|
+
"x-group-id": xGroupId
|
|
47027
47028
|
}
|
|
47028
47029
|
});
|
|
47029
47030
|
},
|
|
@@ -47032,7 +47033,7 @@ var apiChat = {
|
|
|
47032
47033
|
url: `${baseUrl}/api/groups`,
|
|
47033
47034
|
method: "GET",
|
|
47034
47035
|
headers: {
|
|
47035
|
-
"x-group-id":
|
|
47036
|
+
"x-group-id": xGroupId
|
|
47036
47037
|
}
|
|
47037
47038
|
});
|
|
47038
47039
|
},
|
|
@@ -47044,7 +47045,7 @@ var apiChat = {
|
|
|
47044
47045
|
url: `${baseUrl}/api/public/channels/${channelId}/messages?count=${count2}`,
|
|
47045
47046
|
method: "GET",
|
|
47046
47047
|
headers: {
|
|
47047
|
-
"x-group-id":
|
|
47048
|
+
"x-group-id": xGroupId
|
|
47048
47049
|
}
|
|
47049
47050
|
});
|
|
47050
47051
|
},
|
|
@@ -47056,7 +47057,7 @@ var apiChat = {
|
|
|
47056
47057
|
url: `${baseUrl}/api/public/channels/${channelId}/messages`,
|
|
47057
47058
|
method: "GET",
|
|
47058
47059
|
headers: {
|
|
47059
|
-
"x-group-id":
|
|
47060
|
+
"x-group-id": xGroupId
|
|
47060
47061
|
},
|
|
47061
47062
|
params: {
|
|
47062
47063
|
count: count2,
|
|
@@ -47072,7 +47073,7 @@ var apiChat = {
|
|
|
47072
47073
|
url: `${baseUrl}/api/public/channels/${channelId}/messages`,
|
|
47073
47074
|
method: "GET",
|
|
47074
47075
|
headers: {
|
|
47075
|
-
"x-group-id":
|
|
47076
|
+
"x-group-id": xGroupId
|
|
47076
47077
|
},
|
|
47077
47078
|
params: {
|
|
47078
47079
|
count: count2,
|
|
@@ -47089,7 +47090,7 @@ var apiChat = {
|
|
|
47089
47090
|
attachments: message2.attachments
|
|
47090
47091
|
},
|
|
47091
47092
|
headers: {
|
|
47092
|
-
"x-group-id":
|
|
47093
|
+
"x-group-id": xGroupId
|
|
47093
47094
|
}
|
|
47094
47095
|
});
|
|
47095
47096
|
},
|
|
@@ -47098,7 +47099,7 @@ var apiChat = {
|
|
|
47098
47099
|
url: `${baseUrl}/api/public/channels/${channelId}/messages/read`,
|
|
47099
47100
|
method: "PUT",
|
|
47100
47101
|
headers: {
|
|
47101
|
-
"x-group-id":
|
|
47102
|
+
"x-group-id": xGroupId
|
|
47102
47103
|
},
|
|
47103
47104
|
params: {
|
|
47104
47105
|
lastMessageId
|
|
@@ -47110,7 +47111,7 @@ var apiChat = {
|
|
|
47110
47111
|
url: `${baseUrl}/api/public/channels/${channelId}/files`,
|
|
47111
47112
|
method: "GET",
|
|
47112
47113
|
headers: {
|
|
47113
|
-
"x-group-id":
|
|
47114
|
+
"x-group-id": xGroupId
|
|
47114
47115
|
}
|
|
47115
47116
|
});
|
|
47116
47117
|
},
|
|
@@ -47121,7 +47122,7 @@ var apiChat = {
|
|
|
47121
47122
|
data: fileData,
|
|
47122
47123
|
headers: {
|
|
47123
47124
|
"Content-type": "multipart/form-data;",
|
|
47124
|
-
"x-group-id":
|
|
47125
|
+
"x-group-id": xGroupId
|
|
47125
47126
|
},
|
|
47126
47127
|
signal
|
|
47127
47128
|
});
|
|
@@ -47131,7 +47132,7 @@ var apiChat = {
|
|
|
47131
47132
|
url: `${baseUrl}${downloadUrl}`,
|
|
47132
47133
|
method: "GET",
|
|
47133
47134
|
headers: {
|
|
47134
|
-
"x-group-id":
|
|
47135
|
+
"x-group-id": xGroupId
|
|
47135
47136
|
},
|
|
47136
47137
|
responseType: "blob"
|
|
47137
47138
|
});
|
|
@@ -47141,7 +47142,7 @@ var apiChat = {
|
|
|
47141
47142
|
url: `${baseUrl}/api/channels/${channelId}/current-issue/close`,
|
|
47142
47143
|
method: "PUT",
|
|
47143
47144
|
headers: {
|
|
47144
|
-
"x-group-id":
|
|
47145
|
+
"x-group-id": xGroupId
|
|
47145
47146
|
}
|
|
47146
47147
|
});
|
|
47147
47148
|
},
|
|
@@ -47150,7 +47151,7 @@ var apiChat = {
|
|
|
47150
47151
|
url: `${baseUrl}/api/channels/${channelId}/current-issue/interactions`,
|
|
47151
47152
|
method: "POST",
|
|
47152
47153
|
headers: {
|
|
47153
|
-
"x-group-id":
|
|
47154
|
+
"x-group-id": xGroupId
|
|
47154
47155
|
},
|
|
47155
47156
|
data: {
|
|
47156
47157
|
groupId
|
|
@@ -47495,7 +47496,6 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
|
47495
47496
|
},
|
|
47496
47497
|
async getSelectedChannelInfo(selectedChannel, callback) {
|
|
47497
47498
|
try {
|
|
47498
|
-
this.afterMessagesLoaded = false;
|
|
47499
47499
|
this.channelId = selectedChannel.channelId;
|
|
47500
47500
|
this.participant = selectedChannel.participant;
|
|
47501
47501
|
await this.getChatMessagesByChannelId(10);
|
|
@@ -50343,6 +50343,7 @@ const _sfc_main$2 = {
|
|
|
50343
50343
|
}
|
|
50344
50344
|
};
|
|
50345
50345
|
const selectChannel = async (channel) => {
|
|
50346
|
+
selectedChannelStore.$reset();
|
|
50346
50347
|
await selectedChannelStore.getSelectedChannelInfo(channel, () => setScroll());
|
|
50347
50348
|
channelsStore.setIsChannelsList(false);
|
|
50348
50349
|
channelsStore.setIsOpenChannel(true);
|