rez-table-listing-mui 1.3.16 → 1.3.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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/listing/components/index.scss +25 -0
- package/src/listing/components/table-head-pin.tsx +7 -1
- package/src/listing/components/topbar/index.tsx +11 -0
package/package.json
CHANGED
|
@@ -210,3 +210,28 @@
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
+
// Full screen styles fixes
|
|
214
|
+
|
|
215
|
+
:fullscreen {
|
|
216
|
+
width: 100vw !important;
|
|
217
|
+
height: 100vh !important;
|
|
218
|
+
display: flex !important;
|
|
219
|
+
flex-direction: column !important;
|
|
220
|
+
background: var(--white);
|
|
221
|
+
overflow: hidden;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:-webkit-full-screen {
|
|
225
|
+
width: 100vw !important;
|
|
226
|
+
height: 100vh !important;
|
|
227
|
+
display: flex !important;
|
|
228
|
+
flex-direction: column !important;
|
|
229
|
+
background: var(--white);
|
|
230
|
+
overflow: hidden;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// .ts__table__wrapper.is-fullscreen {
|
|
234
|
+
// height: calc(100vh - 56px);
|
|
235
|
+
// max-height: none;
|
|
236
|
+
// overflow-y: auto;
|
|
237
|
+
// }
|
|
@@ -7,7 +7,13 @@ function TableHeadPin<T>({ header }: TableHeaderProps<T>) {
|
|
|
7
7
|
{/* <IconPinOutline /> */}
|
|
8
8
|
</div>
|
|
9
9
|
) : (
|
|
10
|
-
<div
|
|
10
|
+
<div
|
|
11
|
+
className="ts--head--button"
|
|
12
|
+
onClick={(e) => {
|
|
13
|
+
e.stopPropagation();
|
|
14
|
+
header.column.pin(false);
|
|
15
|
+
}}
|
|
16
|
+
>
|
|
11
17
|
<IconPinOffOutline />
|
|
12
18
|
</div>
|
|
13
19
|
);
|
|
@@ -71,6 +71,17 @@ function Topbar<T>({
|
|
|
71
71
|
table.setColumnOrder(columnOrder);
|
|
72
72
|
}, [columnOrder]);
|
|
73
73
|
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (isFullscreen) {
|
|
76
|
+
// Close all popovers when fullscreen is enabled
|
|
77
|
+
setLayoutAnchorEl(null);
|
|
78
|
+
setSortAnchorEl(null);
|
|
79
|
+
setColumnAnchorEl(null);
|
|
80
|
+
setViewMoreAnchorEl(null);
|
|
81
|
+
setShowColumnHiding(false);
|
|
82
|
+
}
|
|
83
|
+
}, [isFullscreen]);
|
|
84
|
+
|
|
74
85
|
const {
|
|
75
86
|
leftSideComponent,
|
|
76
87
|
rightSideComponent,
|