mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
db143f047a
Includes changes to historylog, since it did some deferred loading & sizing magic based on tab
52 lines
788 B
TypeScript
52 lines
788 B
TypeScript
import {Et2Widget} from "../../Et2Widget/Et2Widget";
|
|
import {SlTabPanel} from "@shoelace-style/shoelace";
|
|
import shoelace from "../../Styles/shoelace";
|
|
import {css} from "@lion/core";
|
|
|
|
export class Et2TabPanel extends Et2Widget(SlTabPanel)
|
|
{
|
|
static get styles()
|
|
{
|
|
return [
|
|
// @ts-ignore
|
|
...super.styles,
|
|
...shoelace,
|
|
css`
|
|
:host {
|
|
|
|
height: 100%;
|
|
/*
|
|
width: 100%;
|
|
|
|
min-height: fit-content;
|
|
min-width: fit-content;
|
|
*/
|
|
}
|
|
.tab-panel {
|
|
height: 100%;
|
|
}
|
|
::slotted(*) {
|
|
height: 100%;
|
|
}
|
|
`
|
|
];
|
|
}
|
|
|
|
|
|
static get properties()
|
|
{
|
|
return {
|
|
...super.properties,
|
|
|
|
hidden: {type: Boolean, reflect: true}
|
|
}
|
|
}
|
|
|
|
constructor()
|
|
{
|
|
super();
|
|
this.hidden = false;
|
|
}
|
|
}
|
|
|
|
customElements.define("et2-tab-panel", Et2TabPanel); |