2023-09-09 11:34:46 +00:00
|
|
|
import { demoFunc } from './dees-simple-appdash.demo.js';
|
|
|
|
import {
|
|
|
|
customElement,
|
|
|
|
html,
|
|
|
|
DeesElement,
|
|
|
|
property,
|
|
|
|
type TemplateResult,
|
|
|
|
cssManager,
|
|
|
|
css,
|
|
|
|
unsafeCSS,
|
|
|
|
type CSSResult,
|
|
|
|
state,
|
|
|
|
} from '@design.estate/dees-element';
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
interface HTMLElementTagNameMap {
|
|
|
|
'dees-simple-appdash': DeesSimpleAppDash;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@customElement('dees-simple-appdash')
|
|
|
|
export class DeesSimpleAppDash extends DeesElement {
|
|
|
|
// STATIC
|
|
|
|
public static demo = demoFunc;
|
|
|
|
// INSTANCE
|
|
|
|
|
|
|
|
@property()
|
2023-09-12 23:37:02 +00:00
|
|
|
public name = 'Dees Simple Login';
|
2023-09-09 11:34:46 +00:00
|
|
|
|
|
|
|
public static styles = [
|
|
|
|
cssManager.defaultStyles,
|
|
|
|
css`
|
|
|
|
:host {
|
|
|
|
color: ${cssManager.bdTheme('#333', '#fff')};
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
.appbar {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
height: 40px;
|
|
|
|
width: 100%;
|
|
|
|
background: ${cssManager.bdTheme('#eeeeeb', '#000')};
|
|
|
|
border-bottom: 1px solid ${cssManager.bdTheme('#ccc', '#333')};
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 40px;
|
2023-10-05 12:36:59 +00:00
|
|
|
font-family: 'Roboto', 'Inter', sans-serif;
|
2023-09-09 11:34:46 +00:00
|
|
|
padding: 0px 16px;
|
|
|
|
}
|
|
|
|
.appcontent {
|
|
|
|
position: absolute;
|
|
|
|
top: 40px;
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
background: ${cssManager.bdTheme('#eeeeeb', '#000')};
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
];
|
|
|
|
|
|
|
|
public render(): TemplateResult {
|
|
|
|
return html`
|
|
|
|
<div class="appbar">
|
|
|
|
configvault v1.2.3
|
|
|
|
</div>
|
|
|
|
<div class="appcontent">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
public async firstUpdated(_changedProperties): Promise<void> {
|
|
|
|
const domtools = await this.domtoolsPromise;
|
|
|
|
super.firstUpdated(_changedProperties);
|
|
|
|
}
|
|
|
|
}
|