@social-mail/social-mail-client 1.2.95 → 1.2.96
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/admin/AdminAppIndex.pack.js +27 -18
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +8 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +27 -18
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +8 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +27 -18
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/ConversationPage.tsx +27 -15
|
@@ -36138,7 +36138,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36138
36138
|
margin-bottom: 25px;
|
|
36139
36139
|
}
|
|
36140
36140
|
& .engagements {
|
|
36141
|
-
|
|
36141
|
+
display: flex;
|
|
36142
|
+
flex-wrap: wrap;
|
|
36143
|
+
gap: 5px;
|
|
36144
|
+
margin-top: 5px;
|
|
36145
|
+
margin-bottom: 5px;
|
|
36146
|
+
align-items: center;
|
|
36147
|
+
& > span {
|
|
36142
36148
|
border: solid 1px lightgray;
|
|
36143
36149
|
padding: 3px;
|
|
36144
36150
|
padding-left: 7px;
|
|
@@ -36236,12 +36242,14 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36236
36242
|
cancelToken
|
|
36237
36243
|
})), {
|
|
36238
36244
|
itemRenderer: thread => {
|
|
36239
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
36245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36240
36246
|
const item = thread.email;
|
|
36241
36247
|
const internalDate = (_b = (_a = item.dateSent) !== null && _a !== void 0 ? _a : item.dateReceived) !== null && _b !== void 0 ? _b : item.dateCreated;
|
|
36242
36248
|
const sent = item.senderID === thread.mailboxID;
|
|
36243
36249
|
const remaining = DateTime.from((_c = item.dateSent) !== null && _c !== void 0 ? _c : DateTime.today).diff(DateTime.now);
|
|
36244
36250
|
const isSending = thread.email.status === "scheduled" && remaining.totalSeconds > 3;
|
|
36251
|
+
const engagements = (_d = thread.email.engagements) !== null && _d !== void 0 ? _d : [];
|
|
36252
|
+
const tags = ((_e = thread.email.tags) !== null && _e !== void 0 ? _e : "").split(",").filter(x => x);
|
|
36245
36253
|
let readStatus = "";
|
|
36246
36254
|
let readColor = "";
|
|
36247
36255
|
if (sent) {
|
|
@@ -36270,8 +36278,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36270
36278
|
text: item.subject
|
|
36271
36279
|
}), item.received ? XNode.create("div", null) : item.userID !== SocialMailApp.user.userID && XNode.create("div", {
|
|
36272
36280
|
"style-max-width": "20ch",
|
|
36273
|
-
title: (
|
|
36274
|
-
text: (
|
|
36281
|
+
title: (_f = item.senderUser) === null || _f === void 0 ? void 0 : _f.displayName,
|
|
36282
|
+
text: (_g = item.senderUser) === null || _g === void 0 ? void 0 : _g.displayName
|
|
36275
36283
|
}), XNode.create("div", {
|
|
36276
36284
|
text: DateFormats.relative.short(internalDate),
|
|
36277
36285
|
title: DateFormats.withWeekDayAndTime(internalDate)
|
|
@@ -36283,28 +36291,29 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36283
36291
|
height: "40vh"
|
|
36284
36292
|
}, XNode.create("div", Object.assign({
|
|
36285
36293
|
class: "message"
|
|
36286
|
-
}, renderMail(thread)))),
|
|
36294
|
+
}, renderMail(thread)))), XNode.create("div", {
|
|
36287
36295
|
class: "engagements"
|
|
36288
|
-
},
|
|
36296
|
+
}, sent && XNode.create("i", {
|
|
36297
|
+
class: "fa-solid fa-circle-small",
|
|
36298
|
+
"style-color": readColor,
|
|
36299
|
+
title: readStatus
|
|
36300
|
+
}), ...engagements.map(x => XNode.create("span", {
|
|
36289
36301
|
"data-click-event": "view-engagements",
|
|
36290
36302
|
"data-cursor": "pointer",
|
|
36291
36303
|
title: `View all ${x.engagement} ${x.count}`,
|
|
36292
36304
|
text: `${x.engagement} ${x.count}`
|
|
36293
|
-
}))), ((
|
|
36305
|
+
}))), ((_h = item.attachments) === null || _h === void 0 ? void 0 : _h.length) && XNode.create("div", {
|
|
36294
36306
|
class: "attachments",
|
|
36295
36307
|
"data-layout": "flex-wrap-padding"
|
|
36296
|
-
}, ...item.attachments.map(FilePreview)),
|
|
36297
|
-
"data-layout": "row"
|
|
36298
|
-
|
|
36308
|
+
}, ...item.attachments.map(FilePreview)), XNode.create("div", {
|
|
36309
|
+
"data-layout": "row",
|
|
36310
|
+
"data-margin-top": "default",
|
|
36311
|
+
"data-margin-bottom": "default"
|
|
36312
|
+
}, ...tags.map(x => XNode.create("span", {
|
|
36299
36313
|
text: `#${x.startsWith("#") ? x.substring(1) : x}`
|
|
36300
|
-
}))), sent
|
|
36301
|
-
"data-layout": "row"
|
|
36302
|
-
|
|
36303
|
-
class: "fa-solid fa-circle-small",
|
|
36304
|
-
"style-color": readColor,
|
|
36305
|
-
title: readStatus
|
|
36306
|
-
})) : XNode.create("div", {
|
|
36307
|
-
"data-layout": "row"
|
|
36314
|
+
}))), !sent && XNode.create("div", {
|
|
36315
|
+
"data-layout": "row",
|
|
36316
|
+
"data-margin-top": "default"
|
|
36308
36317
|
}, XNode.create("i", {
|
|
36309
36318
|
"data-click-event": "react-email",
|
|
36310
36319
|
class: "fa-light fa-face-smile-plus",
|