egroupware_official/api/js/etemplate/Layout/Et2Tabs/Et2TabPanel.ts
Nathan Gray e323cd1d79
Feature/shoelace 2.4 upgrade (#135)
Update shoelace to 2.9.0
2023-09-13 11:55:33 -06:00

52 lines
781 B
TypeScript

import {Et2Widget} from "../../Et2Widget/Et2Widget";
import {SlTabPanel} from "@shoelace-style/shoelace";
import shoelace from "../../Styles/shoelace";
import {css} from "lit";
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);