Socket
Socket
Sign inDemoInstall

@3mo/split-page-host

Package Overview
Dependencies
25
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

11

dist/SplitPageHost.d.ts

@@ -1,2 +0,2 @@

import { PageComponent, PageParameters, RouterController } from '@a11d/lit-application';
import { Component } from '@a11d/lit';
/**

@@ -8,2 +8,3 @@ * @element mo-split-page-host

*
* @slot - The content page
* @slot sidebar - The sidebar slot

@@ -13,4 +14,3 @@ *

*/
export declare class SplitPageHost<T extends PageParameters = void> extends PageComponent<T> {
readonly router: RouterController;
export declare class SplitPageHost extends Component {
isContentOpen: boolean;

@@ -23,2 +23,7 @@ contentPageHeading?: string;

}
declare global {
interface HTMLElementTagNameMap {
'mo-split-page-host': SplitPageHost;
}
}
//# sourceMappingURL=SplitPageHost.d.ts.map
import { __decorate } from "tslib";
import { html, css, property, style, component } from '@a11d/lit';
import { PageComponent, RouterController } from '@a11d/lit-application';
import { html, css, property, style, component, Component } from '@a11d/lit';
import { Localizer } from '@3mo/localization';

@@ -14,2 +13,3 @@ Localizer.register("de" /* LanguageCode.German */, {

*
* @slot - The content page
* @slot sidebar - The sidebar slot

@@ -19,14 +19,5 @@ *

*/
let SplitPageHost = class SplitPageHost extends PageComponent {
let SplitPageHost = class SplitPageHost extends Component {
constructor() {
super(...arguments);
this.router = new RouterController(this, [], {
fallback: {
render: () => html `
<mo-empty-state icon='touch_app'>
${t('Select a page')}
</mo-empty-state>
`
}
});
this.isContentOpen = false;

@@ -94,3 +85,3 @@ }

<lit-page-host ${style({ flex: '1' })} @pageHeadingChange=${(e) => this.contentPageHeading = e.detail}>
${this.router.outlet()}
<slot></slot>
</lit-page-host>

@@ -97,0 +88,0 @@ </mo-flex>

{
"name": "@3mo/split-page-host",
"version": "0.0.2",
"version": "0.0.3",
"description": "A page host consisting of pane and content.",

@@ -26,3 +26,2 @@ "repository": {

"@a11d/lit": "x",
"@a11d/lit-application": "x",
"@3mo/localization": "x",

@@ -29,0 +28,0 @@ "@3mo/flex": "x",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc