2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const css = `
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller {
|
|
|
|
position: relative;
|
|
|
|
overflow: auto;
|
|
|
|
contain: strict;
|
|
|
|
transform: translateZ(0);
|
|
|
|
will-change: scroll-position;
|
|
|
|
outline: 0 none;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller-content {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
/* contain: content; */
|
|
|
|
min-height: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
will-change: transform;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller-spacer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 1px;
|
|
|
|
width: 1px;
|
|
|
|
transform-origin: 0 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller .p-virtualscroller-loader {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-13 14:02:20 +00:00
|
|
|
.p-virtualscroller-loader.p-overlay-mask {
|
2024-05-01 08:26:48 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller-loading-icon {
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller-loading-icon.p-icon {
|
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
.p-virtualscroller-horizontal > .p-virtualscroller-content {
|
|
|
|
display: flex;
|
|
|
|
}
|
2023-10-02 10:46:09 +00:00
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
/* Inline */
|
|
|
|
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
|
|
position: static;
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'virtualscroller',
|
|
|
|
css
|
|
|
|
});
|