@exmg/exm-navigation 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-drawer-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-drawer-menu-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-drawer-nav-item-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-icon-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-icon-button-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-rail-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-rail-nav-item-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-sub-menu-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-topbar-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation.stories.d.ts +45 -0
- package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation.stories.js +110 -0
- package/dist/exm-navigation-base.d.ts +1 -1
- package/dist/exm-navigation-base.js +1 -1
- package/dist/exm-navigation-drawer-base.d.ts +1 -1
- package/dist/exm-navigation-drawer-base.js +1 -1
- package/dist/exm-navigation-drawer-menu-base.d.ts +1 -1
- package/dist/exm-navigation-drawer-menu-base.js +1 -1
- package/dist/exm-navigation-drawer-menu.js +1 -1
- package/dist/exm-navigation-drawer-nav-item-base.d.ts +1 -1
- package/dist/exm-navigation-drawer-nav-item-base.js +1 -1
- package/dist/exm-navigation-drawer-nav-item.js +1 -1
- package/dist/exm-navigation-drawer.js +1 -1
- package/dist/exm-navigation-icon-base.d.ts +1 -1
- package/dist/exm-navigation-icon-base.js +1 -1
- package/dist/exm-navigation-icon-button-base.d.ts +1 -1
- package/dist/exm-navigation-icon-button-base.js +1 -1
- package/dist/exm-navigation-icon-button.js +1 -1
- package/dist/exm-navigation-icon.js +1 -1
- package/dist/exm-navigation-rail-base.d.ts +1 -1
- package/dist/exm-navigation-rail-base.js +1 -1
- package/dist/exm-navigation-rail-nav-item-base.d.ts +1 -1
- package/dist/exm-navigation-rail-nav-item-base.js +1 -1
- package/dist/exm-navigation-rail-nav-item.js +1 -1
- package/dist/exm-navigation-rail.js +1 -1
- package/dist/exm-navigation-sub-menu-base.d.ts +1 -1
- package/dist/exm-navigation-sub-menu-base.js +1 -1
- package/dist/exm-navigation-sub-menu.js +1 -1
- package/dist/exm-navigation-topbar-base.d.ts +1 -1
- package/dist/exm-navigation-topbar-base.js +1 -1
- package/dist/exm-navigation-topbar.js +1 -1
- package/dist/exm-navigation.js +1 -1
- package/dist/exm-navigation.stories.d.ts +45 -0
- package/dist/mixins/media-queries.js +1 -1
- package/dist/node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js +31 -0
- package/package.json +2 -2
|
@@ -136,6 +136,6 @@ export declare class ExmNavigationBase extends ExmNavigationBase_base {
|
|
|
136
136
|
* @returns the width of the drawer area
|
|
137
137
|
*/
|
|
138
138
|
private getDrawerWidth;
|
|
139
|
-
render(): import("lit
|
|
139
|
+
render(): import("lit").TemplateResult<1>;
|
|
140
140
|
}
|
|
141
141
|
export {};
|
package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-drawer-base.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export declare class ExmNavigationDrawerBase extends ExmgElement {
|
|
|
10
10
|
private handleMouseEnter;
|
|
11
11
|
private handleMouseLeave;
|
|
12
12
|
protected firstUpdated(): Promise<void>;
|
|
13
|
-
render(): import("lit
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ExmNavigationDrawerNavItemBase extends LitElement {
|
|
|
10
10
|
hasSubmenu: boolean;
|
|
11
11
|
submenuIcon: string;
|
|
12
12
|
static styles: import("lit").CSSResult[];
|
|
13
|
-
render(): import("lit
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-sub-menu-base.d.ts
CHANGED
|
@@ -24,5 +24,5 @@ export declare class ExmNavigationSubMenuBase extends ExmgElement {
|
|
|
24
24
|
private handleCollapsableSubMenuItemClick;
|
|
25
25
|
private getItemStyle;
|
|
26
26
|
private renderSubMenu;
|
|
27
|
-
render(): import("lit
|
|
27
|
+
render(): import("lit").TemplateResult<1>;
|
|
28
28
|
}
|
package/.rollup.cache/root/repo/packages/exm-navigation/dist/exm-navigation-topbar-base.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare class ExmNavigationTopbarBase extends ExmgElement {
|
|
|
6
6
|
drawerOpen: boolean;
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
8
8
|
handleMenuButtonClick(itemId: string): void;
|
|
9
|
-
render(): import("lit
|
|
9
|
+
render(): import("lit").TemplateResult<1>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { ExmNavigation } from './exm-navigation.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import './exm-navigation.js';
|
|
5
|
+
export interface MenuItem {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
type?: 'separator' | 'default' | 'hidden';
|
|
9
|
+
path?: string;
|
|
10
|
+
additionalPath?: RegExp;
|
|
11
|
+
url?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
items?: MenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export declare const menu: MenuItem[];
|
|
16
|
+
export declare class NavigationDemo extends LitElement {
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
constructor();
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
type ExtendedExmNavigation = ExmNavigation & {
|
|
22
|
+
disableNavigation?: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare const meta: {
|
|
25
|
+
title: string;
|
|
26
|
+
tags: string[];
|
|
27
|
+
render: (args: ExtendedExmNavigation) => import("lit").TemplateResult<1>;
|
|
28
|
+
argTypes: {
|
|
29
|
+
disableNavigation: {
|
|
30
|
+
control: "boolean";
|
|
31
|
+
};
|
|
32
|
+
collapseOnDesktop: {
|
|
33
|
+
control: "boolean";
|
|
34
|
+
};
|
|
35
|
+
hoverDisabled: {
|
|
36
|
+
control: "boolean";
|
|
37
|
+
};
|
|
38
|
+
drawerWidth: {
|
|
39
|
+
control: "number";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
type Story = StoryObj<ExtendedExmNavigation>;
|
|
45
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { customElement } from 'lit/decorators.js';
|
|
4
|
+
import './exm-navigation.js';
|
|
5
|
+
const buildNavigationEntry = (e) => {
|
|
6
|
+
return {
|
|
7
|
+
id: e.id.replace(/\s+/g, '-').toLowerCase(),
|
|
8
|
+
label: e.id,
|
|
9
|
+
...(e.icon && { icon: e.id.replace(/\s+/g, '_').toLowerCase() }),
|
|
10
|
+
...(e.type && { type: e.type }),
|
|
11
|
+
...(!e.items && e.path && { path: e.path }),
|
|
12
|
+
...(!e.path && e.items && { items: e.items.map((subEntry) => buildNavigationEntry(subEntry)) }),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export const menu = [
|
|
16
|
+
buildNavigationEntry({ id: 'Home', icon: true, path: '/' }),
|
|
17
|
+
buildNavigationEntry({ id: 'Mail', icon: true, path: '/main' }),
|
|
18
|
+
buildNavigationEntry({ id: 'Separator', type: 'separator' }),
|
|
19
|
+
buildNavigationEntry({
|
|
20
|
+
id: 'Chat',
|
|
21
|
+
icon: true,
|
|
22
|
+
items: [
|
|
23
|
+
{ id: 'Chat Overview', path: 'chat' },
|
|
24
|
+
{ id: 'Fruits', path: '/chat/fruits' },
|
|
25
|
+
{
|
|
26
|
+
id: 'Apples',
|
|
27
|
+
items: [
|
|
28
|
+
{
|
|
29
|
+
id: 'Gala',
|
|
30
|
+
path: '/chat/apples/gala',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'Golden Delicious',
|
|
34
|
+
path: '/chat/apples/golden-delicious',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'Pink Lady',
|
|
38
|
+
path: '/chat/apples/pink-lady',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{ id: 'Banana', path: '/chat/banana' },
|
|
43
|
+
{ id: 'Cucumber', path: '/chat/banana' },
|
|
44
|
+
],
|
|
45
|
+
}),
|
|
46
|
+
];
|
|
47
|
+
let NavigationDemo = class NavigationDemo extends LitElement {
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return html `
|
|
53
|
+
<div class="frame">
|
|
54
|
+
<slot></slot>
|
|
55
|
+
</div>
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
NavigationDemo.styles = [
|
|
60
|
+
css `
|
|
61
|
+
.frame {
|
|
62
|
+
border: 1px solid red;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
}
|
|
65
|
+
`,
|
|
66
|
+
];
|
|
67
|
+
NavigationDemo = __decorate([
|
|
68
|
+
customElement('demo-navigation')
|
|
69
|
+
], NavigationDemo);
|
|
70
|
+
export { NavigationDemo };
|
|
71
|
+
const renderInfoCard = () => {
|
|
72
|
+
return html `
|
|
73
|
+
<div style="padding:10px;">
|
|
74
|
+
<p>Example any content can be here</p>
|
|
75
|
+
</div>
|
|
76
|
+
`;
|
|
77
|
+
};
|
|
78
|
+
const meta = {
|
|
79
|
+
title: 'Packages/Navigation',
|
|
80
|
+
tags: ['autodocs'],
|
|
81
|
+
render: (args) => html `
|
|
82
|
+
<demo-navigation>
|
|
83
|
+
<exm-navigation
|
|
84
|
+
.items=${menu}
|
|
85
|
+
.path=${['mail']}
|
|
86
|
+
?disable-navigation=${args.disableNavigation}
|
|
87
|
+
?collapse-on-desktop=${args.collapseOnDesktop}
|
|
88
|
+
?hover-disabled=${args.hoverDisabled}
|
|
89
|
+
>
|
|
90
|
+
<section slot="topbar-title">My Title</section>
|
|
91
|
+
<section class="content">${renderInfoCard()}</section>
|
|
92
|
+
</exm-navigation>
|
|
93
|
+
</demo-navigation>
|
|
94
|
+
`,
|
|
95
|
+
argTypes: {
|
|
96
|
+
disableNavigation: { control: 'boolean' },
|
|
97
|
+
collapseOnDesktop: { control: 'boolean' },
|
|
98
|
+
hoverDisabled: { control: 'boolean' },
|
|
99
|
+
drawerWidth: { control: 'number' },
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
export default meta;
|
|
103
|
+
export const Default = {
|
|
104
|
+
args: {
|
|
105
|
+
disableNavigation: false,
|
|
106
|
+
collapseOnDesktop: false,
|
|
107
|
+
hoverDisabled: false,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=exm-navigation.stories.js.map
|
|
@@ -136,6 +136,6 @@ export declare class ExmNavigationBase extends ExmNavigationBase_base {
|
|
|
136
136
|
* @returns the width of the drawer area
|
|
137
137
|
*/
|
|
138
138
|
private getDrawerWidth;
|
|
139
|
-
render(): import("lit
|
|
139
|
+
render(): import("lit").TemplateResult<1>;
|
|
140
140
|
}
|
|
141
141
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { nothing, html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property, query, state } from 'lit/decorators.js';
|
|
@@ -10,5 +10,5 @@ export declare class ExmNavigationDrawerBase extends ExmgElement {
|
|
|
10
10
|
private handleMouseEnter;
|
|
11
11
|
private handleMouseLeave;
|
|
12
12
|
protected firstUpdated(): Promise<void>;
|
|
13
|
-
render(): import("lit
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property, query } from 'lit/decorators.js';
|
|
4
4
|
import { ExmgElement } from '@exmg/lit-base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { ExmNavigationDrawerMenuBase } from './exm-navigation-drawer-menu-base.js';
|
|
4
4
|
import { style } from './styles/exm-navigation-sub-menu-css.js';
|
|
@@ -10,5 +10,5 @@ export declare class ExmNavigationDrawerNavItemBase extends LitElement {
|
|
|
10
10
|
hasSubmenu: boolean;
|
|
11
11
|
submenuIcon: string;
|
|
12
12
|
static styles: import("lit").CSSResult[];
|
|
13
|
-
render(): import("lit
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { LitElement, nothing, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { style } from './styles/exm-navigation-drawer-nav-item-css.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { ExmNavigationDrawerNavItemBase } from './exm-navigation-drawer-nav-item-base.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { ExmNavigationDrawerBase } from './exm-navigation-drawer-base.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { nothing, html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { ExmNavigationIconButtonBase } from './exm-navigation-icon-button-base.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { ExmNavigationIconBase } from './exm-navigation-icon-base.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { LitElement, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { style } from './styles/exm-navigation-rail-nav-item-css.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { ExmNavigationRailNavItemBase } from './exm-navigation-rail-nav-item-base.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { ExmNavigationRailBase } from './exm-navigation-rail-base.js';
|
|
4
4
|
|
|
@@ -24,5 +24,5 @@ export declare class ExmNavigationSubMenuBase extends ExmgElement {
|
|
|
24
24
|
private handleCollapsableSubMenuItemClick;
|
|
25
25
|
private getItemStyle;
|
|
26
26
|
private renderSubMenu;
|
|
27
|
-
render(): import("lit
|
|
27
|
+
render(): import("lit").TemplateResult<1>;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property, state, query } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { ExmNavigationSubMenuBase } from './exm-navigation-sub-menu-base.js';
|
|
4
4
|
|
|
@@ -6,5 +6,5 @@ export declare class ExmNavigationTopbarBase extends ExmgElement {
|
|
|
6
6
|
drawerOpen: boolean;
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
8
8
|
handleMenuButtonClick(itemId: string): void;
|
|
9
|
-
render(): import("lit
|
|
9
|
+
render(): import("lit").TemplateResult<1>;
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { ExmNavigationTopbarBase } from './exm-navigation-topbar-base.js';
|
|
4
4
|
|
package/dist/exm-navigation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { ExmNavigationBase } from './exm-navigation-base.js';
|
|
4
4
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { ExmNavigation } from './exm-navigation.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import './exm-navigation.js';
|
|
5
|
+
export interface MenuItem {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
type?: 'separator' | 'default' | 'hidden';
|
|
9
|
+
path?: string;
|
|
10
|
+
additionalPath?: RegExp;
|
|
11
|
+
url?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
items?: MenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export declare const menu: MenuItem[];
|
|
16
|
+
export declare class NavigationDemo extends LitElement {
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
constructor();
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
type ExtendedExmNavigation = ExmNavigation & {
|
|
22
|
+
disableNavigation?: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare const meta: {
|
|
25
|
+
title: string;
|
|
26
|
+
tags: string[];
|
|
27
|
+
render: (args: ExtendedExmNavigation) => import("lit").TemplateResult<1>;
|
|
28
|
+
argTypes: {
|
|
29
|
+
disableNavigation: {
|
|
30
|
+
control: "boolean";
|
|
31
|
+
};
|
|
32
|
+
collapseOnDesktop: {
|
|
33
|
+
control: "boolean";
|
|
34
|
+
};
|
|
35
|
+
hoverDisabled: {
|
|
36
|
+
control: "boolean";
|
|
37
|
+
};
|
|
38
|
+
drawerWidth: {
|
|
39
|
+
control: "number";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
type Story = StoryObj<ExtendedExmNavigation>;
|
|
45
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function __decorate(decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
26
|
+
var e = new Error(message);
|
|
27
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { __decorate };
|
|
31
|
+
//# sourceMappingURL=tslib.es6.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-navigation",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c27c4ffabda0c6a509df58537017af65719d1e57"
|
|
51
51
|
}
|