@rkosafo/cai.components 0.0.70 → 0.0.71
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.
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
let activeBox = $state<MailingActiveBox>('inbox');
|
|
63
63
|
let pageInfo = new PageInfo();
|
|
64
64
|
let menutItems = $state([
|
|
65
|
-
{ icon: 'bx:bxs-inbox', title: 'Inbox', count:
|
|
65
|
+
{ icon: 'bx:bxs-inbox', title: 'Inbox', count: 0, path: '' },
|
|
66
66
|
{ icon: 'bx:bxs-send', title: 'Sent', count: 0, path: '' }
|
|
67
67
|
]);
|
|
68
68
|
let openDeleteAlert = $state(false);
|
|
@@ -85,7 +85,11 @@
|
|
|
85
85
|
else return false;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
async function fetchData(
|
|
88
|
+
async function fetchData(
|
|
89
|
+
page: number,
|
|
90
|
+
params: TableFilter,
|
|
91
|
+
activeBox: MailingActiveBox = 'inbox'
|
|
92
|
+
) {
|
|
89
93
|
try {
|
|
90
94
|
let currentPage = 0;
|
|
91
95
|
if (params.search) {
|
|
@@ -329,7 +333,9 @@
|
|
|
329
333
|
<div class="h-full w-full">
|
|
330
334
|
<div class="flex h-full w-full gap-2">
|
|
331
335
|
<div class:hidden={!showSidePanel} class="loginbox h-full w-20 rounded-md bg-white">
|
|
332
|
-
<MailSidebar onClick={toggleSideBar} menus={menutItems} {setActiveMenu}
|
|
336
|
+
<MailSidebar onClick={toggleSideBar} menus={menutItems} {setActiveMenu}
|
|
337
|
+
|
|
338
|
+
/>
|
|
333
339
|
</div>
|
|
334
340
|
<div class="flex w-full flex-grow flex-col gap-1">
|
|
335
341
|
<div class="loginbox h-14 rounded bg-white px-4">
|
|
@@ -107,7 +107,7 @@ export interface MailingMessageCardProps extends MailingMessage {
|
|
|
107
107
|
}
|
|
108
108
|
export type MailingActiveBox = 'inbox' | 'outbox';
|
|
109
109
|
export interface MailingMessageViewerProps {
|
|
110
|
-
readMessage: (id: number) => Promise<CrudResult<MailingMessage>> | CrudResult<MailingMessage> | null;
|
|
110
|
+
readMessage: (id: number, type?: MailingActiveBox) => Promise<CrudResult<MailingMessage>> | CrudResult<MailingMessage> | null;
|
|
111
111
|
recordId: number;
|
|
112
112
|
updatePageInfo?: (val: MailPageInfo) => void;
|
|
113
113
|
showReplies?: boolean;
|