next-helios-fe 1.8.26 → 1.8.28
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/package.json
CHANGED
@@ -11,7 +11,7 @@ const localizer = dayjsLocalizer(dayjs);
|
|
11
11
|
interface BigCalendarProps {
|
12
12
|
title?: string;
|
13
13
|
options?: {
|
14
|
-
|
14
|
+
showEventListFilter?: boolean;
|
15
15
|
};
|
16
16
|
eventList: {
|
17
17
|
id: number | string;
|
@@ -23,7 +23,7 @@ interface BigCalendarProps {
|
|
23
23
|
color?: string;
|
24
24
|
[key: string]: any;
|
25
25
|
}[];
|
26
|
-
|
26
|
+
sidebarComponent?: React.ReactNode;
|
27
27
|
onSelectEvent?: (event: any) => void;
|
28
28
|
}
|
29
29
|
|
@@ -31,7 +31,7 @@ export const BigCalendar: React.FC<BigCalendarProps> = ({
|
|
31
31
|
title,
|
32
32
|
options,
|
33
33
|
eventList,
|
34
|
-
|
34
|
+
sidebarComponent,
|
35
35
|
onSelectEvent,
|
36
36
|
}) => {
|
37
37
|
const [active, setActive] = useState<string>("month");
|
@@ -74,10 +74,10 @@ export const BigCalendar: React.FC<BigCalendarProps> = ({
|
|
74
74
|
|
75
75
|
return (
|
76
76
|
<div className="flex w-full h-full lg:divide-x">
|
77
|
-
{(
|
77
|
+
{(sidebarComponent || options?.showEventListFilter) && (
|
78
78
|
<div className="hidden lg:flex flex-col w-72 h-full divide-y">
|
79
|
-
{
|
80
|
-
{options?.
|
79
|
+
{sidebarComponent}
|
80
|
+
{options?.showEventListFilter && (
|
81
81
|
<Event
|
82
82
|
title={title}
|
83
83
|
eventList={modifiedEventList}
|
@@ -142,7 +142,7 @@ export const Table: TableComponentProps = ({
|
|
142
142
|
}
|
143
143
|
});
|
144
144
|
});
|
145
|
-
}, [
|
145
|
+
}, [data]);
|
146
146
|
|
147
147
|
const handleExportData = (dataTitle: string, data: any[]) => {
|
148
148
|
const fileName = `${dataTitle}_${dayjs().format("YYYY-MM-DD_HH-mm-ss")}`;
|
@@ -335,6 +335,7 @@ export const Table: TableComponentProps = ({
|
|
335
335
|
options={{ disableHover: true }}
|
336
336
|
label={value}
|
337
337
|
checked={categoryFilter.includes(value)}
|
338
|
+
readOnly
|
338
339
|
/>
|
339
340
|
</div>
|
340
341
|
</Dropdown.Item>
|
@@ -371,6 +372,7 @@ export const Table: TableComponentProps = ({
|
|
371
372
|
{filter?.find((filterItem) => filterItem.key === item.key)
|
372
373
|
?.value && (
|
373
374
|
<button
|
375
|
+
type="button"
|
374
376
|
className="absolute right-0 rounded-full text-disabled hover:bg-secondary-light"
|
375
377
|
onClick={() => {
|
376
378
|
setFilter(
|
@@ -408,6 +410,7 @@ export const Table: TableComponentProps = ({
|
|
408
410
|
? true
|
409
411
|
: false
|
410
412
|
}
|
413
|
+
readOnly
|
411
414
|
onClick={(e) => {
|
412
415
|
if (
|
413
416
|
selected?.find((selectedItem) => selectedItem.id === item.id)
|
@@ -556,6 +559,7 @@ export const Table: TableComponentProps = ({
|
|
556
559
|
options={{ disableHover: true }}
|
557
560
|
label={item.title}
|
558
561
|
checked={!excludedColumn?.includes(item.key)}
|
562
|
+
readOnly
|
559
563
|
/>
|
560
564
|
</div>
|
561
565
|
</Dropdown.Item>
|