@m3e/nav-menu 1.0.0-rc.1 → 1.0.0-rc.2

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/demo/index.html DELETED
@@ -1,64 +0,0 @@
1
- <!doctype html>
2
- <html lang="en" style="overflow-y: auto">
3
- <head>
4
- <title>Navigation Menu for M3E</title>
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="description" content="Navigation Menu for M3E" />
8
- <base href="./" />
9
- <link rel="preconnect" href="https://fonts.googleapis.com" />
10
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
11
- <link
12
- href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
13
- rel="stylesheet"
14
- />
15
- <link
16
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0..1,0"
17
- rel="stylesheet"
18
- />
19
- <script type="importmap">
20
- {
21
- "imports": {
22
- "lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
23
- "@m3e/core": "../../core/dist/index.min.js",
24
- "@m3e/core/a11y": "../../core/dist/a11y.min.js"
25
- }
26
- }
27
- </script>
28
- <script type="module" src="../../icon/dist/index.min.js"></script>
29
- <script type="module" src="../../theme/dist/index.min.js"></script>
30
- <script type="module" src="../dist/index.min.js"></script>
31
- <style>
32
- body {
33
- font-family: "Roboto";
34
- }
35
- *:not(:defined) {
36
- display: none;
37
- }
38
- </style>
39
- </head>
40
- <body>
41
- <m3e-theme strong-focus>
42
- <m3e-nav-menu style="max-width: 300px">
43
- <m3e-nav-menu-item open>
44
- <m3e-icon slot="icon" name="rocket_launch"></m3e-icon>
45
- <span slot="label">Getting Started</span>
46
- <m3e-nav-menu-item disabled>
47
- <m3e-icon slot="icon" name="widgets"></m3e-icon>
48
- <span slot="label">Overview</span>
49
- </m3e-nav-menu-item>
50
- <m3e-nav-menu-item>
51
- <m3e-icon slot="icon" name="package_2"></m3e-icon>
52
- <span slot="label">Installation</span>
53
- </m3e-nav-menu-item>
54
- </m3e-nav-menu-item>
55
- <m3e-nav-menu-item>
56
- <span slot="label">Actions</span>
57
- <m3e-nav-menu-item><span slot="label">Button</span></m3e-nav-menu-item>
58
- <m3e-nav-menu-item><span slot="label">Icon</span></m3e-nav-menu-item>
59
- <m3e-nav-menu-item><span slot="label">Icon Button</span></m3e-nav-menu-item>
60
- </m3e-nav-menu-item>
61
- </m3e-nav-menu>
62
- </m3e-theme>
63
- </body>
64
- </html>
@@ -1,87 +0,0 @@
1
- import { CSSResultGroup, LitElement } from "lit";
2
- import { SelectionManager, selectionManager } from "@m3e/core/a11y";
3
- import { M3eNavMenuItemElement } from "./NavMenuItemElement";
4
- declare const M3eNavMenuElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
5
- /**
6
- * @summary
7
- * Presents a hierarchical menu.
8
- *
9
- * @description
10
- * The `m3e-nav-menu` component provides a hierarchical, accessible navigation menu supporting
11
- * nested expandable items, keyboard navigation, and focus management. It is highly customizable
12
- * via slots and CSS custom properties, and is designed for use in sidebars, navigation drawers,
13
- * and complex menu structures.
14
- *
15
- * @example
16
- * The following example illustrates a multilevel navigation menu.
17
- * ```html
18
- * <m3e-nav-menu>
19
- * <m3e-nav-menu-item open>
20
- * <m3e-icon slot="icon" name="rocket_launch"></m3e-icon>
21
- * <span slot="label">Getting Started</span>
22
- * <m3e-nav-menu-item>
23
- * <m3e-icon slot="icon" name="widgets"></m3e-icon>
24
- * <span slot="label">Overview</span>
25
- * </m3e-nav-menu-item>
26
- * <m3e-nav-menu-item>
27
- * <m3e-icon slot="icon" name="package_2"></m3e-icon>
28
- * <span slot="label">Installation</span>
29
- * </m3e-nav-menu-item>
30
- * </m3e-nav-menu-item>
31
- * <m3e-nav-menu-item>
32
- * <span slot="label">Actions</span>
33
- * <m3e-nav-menu-item><span slot="label">Button</span></m3e-nav-menu-item>
34
- * <m3e-nav-menu-item><span slot="label">Icon</span></m3e-nav-menu-item>
35
- * <m3e-nav-menu-item><span slot="label">Icon Button</span></m3e-nav-menu-item>
36
- * </m3e-nav-menu-item>
37
- * </m3e-nav-menu>
38
- * ```
39
- *
40
- * @tag m3e-nav-menu
41
- *
42
- * @slot - Renders the items of the menu.
43
- *
44
- * @cssprop --m3e-nav-menu-padding-top - Top padding for the menu.
45
- * @cssprop --m3e-nav-menu-padding-bottom - Bottom padding for the menu.
46
- * @cssprop --m3e-nav-menu-padding-left - Left padding for the menu.
47
- * @cssprop --m3e-nav-menu-padding-right - Right padding for the menu.
48
- * @cssprop --m3e-nav-menu-divider-margin - Margin for divider elements in the menu.
49
- * @cssprop --m3e-nav-menu-scrollbar-width - Width of the menu scrollbar.
50
- * @cssprop --m3e-nav-menu-scrollbar-color - Color of the menu scrollbar.
51
- */
52
- export declare class M3eNavMenuElement extends M3eNavMenuElement_base {
53
- #private;
54
- /** The styles of the element. */
55
- static styles: CSSResultGroup;
56
- /** @private */ private static __nextId;
57
- /** @private */
58
- readonly [selectionManager]: SelectionManager<M3eNavMenuItemElement>;
59
- constructor();
60
- /** The selected item of the menu. */
61
- get selected(): M3eNavMenuItemElement | null;
62
- /** All the items of the menu. */
63
- get items(): readonly M3eNavMenuItemElement[];
64
- /**
65
- * Expands the specified items, or all items if no items are provided.
66
- * @param {M3eNavMenuItemElement | undefined} items The items to expand.
67
- */
68
- expand(items?: M3eNavMenuItemElement[]): void;
69
- /**
70
- * Collapses the specified items, or all items if no items are provided.
71
- * @param {M3eNavMenuItemElement | undefined} items The items to collapse.
72
- */
73
- collapse(items?: M3eNavMenuItemElement[]): void;
74
- /** @inheritdoc */
75
- connectedCallback(): void;
76
- /** @inheritdoc */
77
- disconnectedCallback(): void;
78
- /** @inheritdoc */
79
- protected render(): unknown;
80
- }
81
- declare global {
82
- interface HTMLElementTagNameMap {
83
- "m3e-nav-menu": M3eNavMenuElement;
84
- }
85
- }
86
- export {};
87
- //# sourceMappingURL=NavMenuElement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavMenuElement.d.ts","sourceRoot":"","sources":["../../src/NavMenuElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBACa,iBAAkB,SAAQ,sBAAwB;;IAC7D,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAmBpC;IAEF,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAK;IAI5C,eAAe;IACf,QAAQ,CAAC,CAAC,gBAAgB,CAAC,0CAkBtB;;IAmBL,qCAAqC;IACrC,IAAI,QAAQ,IAAI,qBAAqB,GAAG,IAAI,CAE3C;IAED,iCAAiC;IACjC,IAAI,KAAK,IAAI,SAAS,qBAAqB,EAAE,CAE5C;IAED;;;OAGG;IACH,MAAM,CAAC,KAAK,CAAC,EAAE,qBAAqB,EAAE,GAAG,IAAI;IAI7C;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,qBAAqB,EAAE,GAAG,IAAI;IAc/C,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAUlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAQrC,kBAAkB;cACC,MAAM,IAAI,OAAO;CA4IrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,iBAAiB,CAAC;KACnC;CACF"}
@@ -1,158 +0,0 @@
1
- import { CSSResultGroup, LitElement, PropertyValues } from "lit";
2
- import { M3eFocusRingElement, M3eRippleElement, M3eStateLayerElement } from "@m3e/core";
3
- declare const M3eNavMenuItemElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").SelectedMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
4
- /**
5
- * @summary
6
- * An expandable item in a navigation menu.
7
- *
8
- * @description
9
- * The `m3e-nav-menu-item` component represents an expandable, selectable item within a navigation menu.
10
- * It supports nested child items, selection, disabled and indeterminate states, and emits events for
11
- * open/close transitions. The component is highly customizable via slots and CSS custom properties, and
12
- * is designed for accessible, keyboard-navigable menu structures.
13
- *
14
- * @example
15
- * The following example illustrates a multilevel navigation menu.
16
- * ```html
17
- * <m3e-nav-menu>
18
- * <m3e-nav-menu-item open>
19
- * <m3e-icon slot="icon" name="rocket_launch"></m3e-icon>
20
- * <span slot="label">Getting Started</span>
21
- * <m3e-nav-menu-item>
22
- * <m3e-icon slot="icon" name="widgets"></m3e-icon>
23
- * <span slot="label">Overview</span>
24
- * </m3e-nav-menu-item>
25
- * <m3e-nav-menu-item>
26
- * <m3e-icon slot="icon" name="package_2"></m3e-icon>
27
- * <span slot="label">Installation</span>
28
- * </m3e-nav-menu-item>
29
- * </m3e-nav-menu-item>
30
- * <m3e-nav-menu-item>
31
- * <span slot="label">Actions</span>
32
- * <m3e-nav-menu-item><span slot="label">Button</span></m3e-nav-menu-item>
33
- * <m3e-nav-menu-item><span slot="label">Icon</span></m3e-nav-menu-item>
34
- * <m3e-nav-menu-item><span slot="label">Icon Button</span></m3e-nav-menu-item>
35
- * </m3e-nav-menu-item>
36
- * </m3e-nav-menu>
37
- * ```
38
- *
39
- * @tag m3e-nav-menu-item
40
- *
41
- * @slot - Renders the nested child items.
42
- * @slot label - Renders the label of the item.
43
- * @slot icon - Renders the icon of the item.
44
- * @slot selected-icon - Renders the icon of the item when selected.
45
- * @slot toggle-icon - Renders the toggle icon.
46
- *
47
- * @attr disabled - Whether the element is disabled.
48
- * @attr indeterminate - Whether the element's selected / checked state is indeterminate.
49
- * @attr open - Whether the item is expanded.
50
- * @attr selected - Whether the item is selected.
51
- *
52
- * @fires opening - Emitted when the item begins to open.
53
- * @fires opened - Emitted when the item has opened.
54
- * @fires closing - Emitted when the item begins to close.
55
- * @fires closed - Emitted when the item has closed.
56
- *
57
- * @cssprop --m3e-nav-menu-item-font-size - Font size for the item label.
58
- * @cssprop --m3e-nav-menu-item-font-weight - Font weight for the item label.
59
- * @cssprop --m3e-nav-menu-item-line-height - Line height for the item label.
60
- * @cssprop --m3e-nav-menu-item-tracking - Letter spacing for the item label.
61
- * @cssprop --m3e-nav-menu-item-padding - Inline padding for the item.
62
- * @cssprop --m3e-nav-menu-item-height - Height of the item.
63
- * @cssprop --m3e-nav-menu-item-spacing - Spacing between icon and label.
64
- * @cssprop --m3e-nav-menu-item-shape - Border radius of the item and focus ring.
65
- * @cssprop --m3e-nav-menu-item-icon-size - Size of the icon.
66
- * @cssprop --m3e-nav-menu-item-inset - Indentation for nested items.
67
- * @cssprop --m3e-nav-menu-item-label-color - Text color for the item label.
68
- * @cssprop --m3e-nav-menu-item-selected-label-color - Text color for selected item label.
69
- * @cssprop --m3e-nav-menu-item-selected-container-color - Background color for selected item.
70
- * @cssprop --m3e-nav-menu-item-selected-container-focus-color - Focus color for selected item container.
71
- * @cssprop --m3e-nav-menu-item-selected-container-hover-color - Hover color for selected item container.
72
- * @cssprop --m3e-nav-menu-item-selected-ripple-color - Ripple color for selected item.
73
- * @cssprop --m3e-nav-menu-item-unselected-container-focus-color - Focus color for unselected item container.
74
- * @cssprop --m3e-nav-menu-item-unselected-container-hover-color - Hover color for unselected item container.
75
- * @cssprop --m3e-nav-menu-item-unselected-ripple-color - Ripple color for unselected item.
76
- * @cssprop --m3e-nav-menu-item-open-container-color - Background color for open item with children.
77
- * @cssprop --m3e-nav-menu-item-open-container-focus-color - Focus color for open item container.
78
- * @cssprop --m3e-nav-menu-item-open-container-hover-color - Hover color for open item container.
79
- * @cssprop --m3e-nav-menu-item-open-ripple-color - Ripple color for open item.
80
- * @cssprop --m3e-nav-menu-item-disabled-color - Text color for disabled item.
81
- * @cssprop --m3e-nav-menu-item-disabled-color-opacity - Opacity for disabled item text color.
82
- * @cssprop --m3e-nav-menu-item-badge-font-size - Font size for badge slot.
83
- * @cssprop --m3e-nav-menu-item-badge-font-weight - Font weight for badge slot.
84
- * @cssprop --m3e-nav-menu-item-badge-line-height - Line height for badge slot.
85
- * @cssprop --m3e-nav-menu-badge-item-tracking - Letter spacing for badge slot.
86
- * @cssprop --m3e-nav-menu-divider-margin - Margin for divider elements.
87
- * @cssprop --m3e-nav-menu-item-vertical-inset - Vertical margin for first/last child items.
88
- */
89
- export declare class M3eNavMenuItemElement extends M3eNavMenuItemElement_base {
90
- #private;
91
- /** The styles of the element. */
92
- static styles: CSSResultGroup;
93
- /** @internal */ readonly stateLayer?: M3eStateLayerElement;
94
- /** @internal */ readonly focusRing?: M3eFocusRingElement;
95
- /** @internal */ readonly ripple?: M3eRippleElement;
96
- /** @private */ private readonly _base?;
97
- /** @private */ private _hasChildItems;
98
- /**
99
- * Whether the item is expanded.
100
- * @default false
101
- */
102
- open: boolean;
103
- /** A reference to the nested `HTMLAnchorElement`. */
104
- get link(): HTMLAnchorElement | null;
105
- /** Whether the item is visible. */
106
- get visible(): boolean;
107
- /** The full path of the item, starting with the top-most ancestor, including this item. */
108
- get path(): ReadonlyArray<M3eNavMenuItemElement>;
109
- /** Whether the item has child items. */
110
- get hasChildItems(): boolean;
111
- /** The parenting item. */
112
- get parentItem(): M3eNavMenuItemElement | null;
113
- /** The items that immediately descend from this item. */
114
- get childItems(): readonly M3eNavMenuItemElement[];
115
- /** The one-based level of the item. */
116
- get level(): number;
117
- /**
118
- * Expands this item, and optionally, all descendants.
119
- * @param {boolean} [descendants=false] Whether to expand all descendants.
120
- */
121
- expand(descendants?: boolean): void;
122
- /**
123
- * Collapses this item, and optionally, all descendants.
124
- * @param {boolean} [descendants=false] Whether to expand all descendants.
125
- */
126
- collapse(descendants?: boolean): void;
127
- /** Toggles the expanded state of the item. */
128
- toggle(): void;
129
- /** @inheritdoc */
130
- connectedCallback(): void;
131
- /** @inheritdoc */
132
- disconnectedCallback(): void;
133
- /** @inheritdoc */
134
- protected update(changedProperties: PropertyValues<this>): void;
135
- /** @inheritdoc */
136
- protected firstUpdated(_changedProperties: PropertyValues<this>): void;
137
- /** @inheritdoc */
138
- protected render(): unknown;
139
- }
140
- interface M3eNavMenuItemElementEventMap extends HTMLElementEventMap {
141
- opening: Event;
142
- opened: Event;
143
- closing: Event;
144
- closed: Event;
145
- }
146
- export interface M3eNavMenuItemElement {
147
- addEventListener<K extends keyof M3eNavMenuItemElementEventMap>(type: K, listener: (this: M3eNavMenuItemElement, ev: M3eNavMenuItemElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
148
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
149
- removeEventListener<K extends keyof M3eNavMenuItemElementEventMap>(type: K, listener: (this: M3eNavMenuItemElement, ev: M3eNavMenuItemElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
150
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
151
- }
152
- declare global {
153
- interface HTMLElementTagNameMap {
154
- "m3e-nav-menu-item": M3eNavMenuItemElement;
155
- }
156
- }
157
- export {};
158
- //# sourceMappingURL=NavMenuItemElement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavMenuItemElement.d.ts","sourceRoot":"","sources":["../../src/NavMenuItemElement.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAIvF,OAAO,EAML,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAGrB,MAAM,WAA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@@
1
- export * from "./NavMenuElement";
2
- export * from "./NavMenuItemElement";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
package/eslint.config.mjs DELETED
@@ -1,13 +0,0 @@
1
- import eslint from "@eslint/js";
2
- import tseslint from "typescript-eslint";
3
- import { fileURLToPath } from "url";
4
- import { dirname } from "path";
5
-
6
- export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended, {
7
- languageOptions: {
8
- parserOptions: {
9
- project: true,
10
- tsconfigRootDir: dirname(fileURLToPath(import.meta.url)),
11
- },
12
- },
13
- });
package/rollup.config.js DELETED
@@ -1,32 +0,0 @@
1
- import resolve from "@rollup/plugin-node-resolve";
2
- import terser from "@rollup/plugin-terser";
3
- import typescript from "@rollup/plugin-typescript";
4
-
5
- const banner = `/**
6
- * @license MIT
7
- * Copyright (c) 2025 matraic
8
- * See LICENSE file in the project root for full license text.
9
- */`;
10
-
11
- export default [
12
- {
13
- input: "src/index.ts",
14
- output: [
15
- {
16
- file: "dist/index.js",
17
- format: "esm",
18
- sourcemap: true,
19
- banner: banner,
20
- },
21
- {
22
- file: "dist/index.min.js",
23
- format: "esm",
24
- sourcemap: true,
25
- banner: banner,
26
- plugins: [terser({ mangle: true })],
27
- },
28
- ],
29
- external: ["@m3e/core", "@m3e/core/a11y", "lit"],
30
- plugins: [resolve(), typescript()],
31
- },
32
- ];