@aquera/nile-elements 2.0.5 → 2.0.7
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/README.md +7 -0
- package/demo/nxtgen-classes.css +15 -12
- package/demo/nxtgen-dark.css +24 -24
- package/demo/nxtgen-properties.css +27 -24
- package/demo/nxtgen-utilities.css +39 -36
- package/demo/nxtgen.css +15 -12
- package/demo/utilities.css +3 -0
- package/demo/variables.css +3 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1363 -340
- package/dist/internal/glyph.cjs.js +1 -1
- package/dist/internal/glyph.cjs.js.map +1 -1
- package/dist/internal/glyph.esm.js +6 -5
- package/dist/nile-app-shell/index.cjs.js +2 -0
- package/dist/nile-app-shell/index.cjs.js.map +1 -0
- package/dist/nile-app-shell/index.esm.js +1 -0
- package/dist/nile-app-shell/nile-app-shell.cjs.js +2 -0
- package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -0
- package/dist/nile-app-shell/nile-app-shell.css.cjs.js +2 -0
- package/dist/nile-app-shell/nile-app-shell.css.cjs.js.map +1 -0
- package/dist/nile-app-shell/nile-app-shell.css.esm.js +554 -0
- package/dist/nile-app-shell/nile-app-shell.esm.js +155 -0
- package/dist/nile-app-shell/shell-controller.cjs.js +2 -0
- package/dist/nile-app-shell/shell-controller.cjs.js.map +1 -0
- package/dist/nile-app-shell/shell-controller.esm.js +1 -0
- package/dist/nile-app-shell-main/index.cjs.js +2 -0
- package/dist/nile-app-shell-main/index.cjs.js.map +1 -0
- package/dist/nile-app-shell-main/index.esm.js +1 -0
- package/dist/nile-app-shell-main/nile-app-shell-main.cjs.js +2 -0
- package/dist/nile-app-shell-main/nile-app-shell-main.cjs.js.map +1 -0
- package/dist/nile-app-shell-main/nile-app-shell-main.css.cjs.js +2 -0
- package/dist/nile-app-shell-main/nile-app-shell-main.css.cjs.js.map +1 -0
- package/dist/nile-app-shell-main/nile-app-shell-main.css.esm.js +18 -0
- package/dist/nile-app-shell-main/nile-app-shell-main.esm.js +1 -0
- package/dist/nile-app-shell-nav-toggle/index.cjs.js +2 -0
- package/dist/nile-app-shell-nav-toggle/index.cjs.js.map +1 -0
- package/dist/nile-app-shell-nav-toggle/index.esm.js +1 -0
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js +2 -0
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js.map +1 -0
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.cjs.js +2 -0
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.cjs.js.map +1 -0
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.esm.js +29 -0
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.esm.js +16 -0
- package/dist/nile-app-shell-panel/index.cjs.js +2 -0
- package/dist/nile-app-shell-panel/index.cjs.js.map +1 -0
- package/dist/nile-app-shell-panel/index.esm.js +1 -0
- package/dist/nile-app-shell-panel/nile-app-shell-panel.cjs.js +2 -0
- package/dist/nile-app-shell-panel/nile-app-shell-panel.cjs.js.map +1 -0
- package/dist/nile-app-shell-panel/nile-app-shell-panel.css.cjs.js +2 -0
- package/dist/nile-app-shell-panel/nile-app-shell-panel.css.cjs.js.map +1 -0
- package/dist/nile-app-shell-panel/nile-app-shell-panel.css.esm.js +103 -0
- package/dist/nile-app-shell-panel/nile-app-shell-panel.esm.js +33 -0
- package/dist/nile-app-shell-side-nav/index.cjs.js +2 -0
- package/dist/nile-app-shell-side-nav/index.cjs.js.map +1 -0
- package/dist/nile-app-shell-side-nav/index.esm.js +1 -0
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js +2 -0
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js.map +1 -0
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js +2 -0
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js.map +1 -0
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.esm.js +55 -0
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.esm.js +5 -0
- package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js.map +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.esm.js +46 -8
- package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.css.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.css.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.css.esm.js +32 -17
- package/dist/nile-popover/nile-popover.esm.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +5 -0
- package/dist/nile-side-bar-footer/nile-side-bar-footer.esm.js +2 -2
- package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +5 -0
- package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +2 -2
- package/dist/nile-wysiwyg-editor/index.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/index.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/index.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/index.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/bubble-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/bubble-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/bubble-menu.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-menu.esm.js +2 -2
- package/dist/nile-wysiwyg-editor/ui/image-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/image-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/image-menu.esm.js +4 -4
- package/dist/nile-wysiwyg-editor/ui/table-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/table-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/table-menu.esm.js +1 -1
- package/dist/src/index.d.ts +7 -2
- package/dist/src/index.js +6 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/glyph.d.ts +6 -1
- package/dist/src/internal/glyph.js +8 -1
- package/dist/src/internal/glyph.js.map +1 -1
- package/dist/src/nile-app-shell/index.d.ts +7 -0
- package/dist/src/nile-app-shell/index.js +8 -0
- package/dist/src/nile-app-shell/index.js.map +1 -0
- package/dist/src/nile-app-shell/nile-app-shell-regions.test.d.ts +4 -0
- package/dist/src/nile-app-shell/nile-app-shell-regions.test.js +177 -0
- package/dist/src/nile-app-shell/nile-app-shell-regions.test.js.map +1 -0
- package/dist/src/nile-app-shell/nile-app-shell.css.d.ts +18 -0
- package/dist/src/nile-app-shell/nile-app-shell.css.js +572 -0
- package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -0
- package/dist/src/nile-app-shell/nile-app-shell.d.ts +292 -0
- package/dist/src/nile-app-shell/nile-app-shell.js +796 -0
- package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -0
- package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +3 -0
- package/dist/src/nile-app-shell/nile-app-shell.test.js +454 -0
- package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -0
- package/dist/src/nile-app-shell/shell-controller.d.ts +34 -0
- package/dist/src/nile-app-shell/shell-controller.js +80 -0
- package/dist/src/nile-app-shell/shell-controller.js.map +1 -0
- package/dist/src/nile-app-shell-main/index.d.ts +7 -0
- package/dist/src/nile-app-shell-main/index.js +8 -0
- package/dist/src/nile-app-shell-main/index.js.map +1 -0
- package/dist/src/nile-app-shell-main/nile-app-shell-main.css.d.ts +9 -0
- package/dist/src/nile-app-shell-main/nile-app-shell-main.css.js +27 -0
- package/dist/src/nile-app-shell-main/nile-app-shell-main.css.js.map +1 -0
- package/dist/src/nile-app-shell-main/nile-app-shell-main.d.ts +38 -0
- package/dist/src/nile-app-shell-main/nile-app-shell-main.js +51 -0
- package/dist/src/nile-app-shell-main/nile-app-shell-main.js.map +1 -0
- package/dist/src/nile-app-shell-nav-toggle/index.d.ts +7 -0
- package/dist/src/nile-app-shell-nav-toggle/index.js +8 -0
- package/dist/src/nile-app-shell-nav-toggle/index.js.map +1 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.d.ts +13 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.js +42 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.js.map +1 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.d.ts +56 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +126 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -0
- package/dist/src/nile-app-shell-panel/index.d.ts +7 -0
- package/dist/src/nile-app-shell-panel/index.js +8 -0
- package/dist/src/nile-app-shell-panel/index.js.map +1 -0
- package/dist/src/nile-app-shell-panel/nile-app-shell-panel.css.d.ts +9 -0
- package/dist/src/nile-app-shell-panel/nile-app-shell-panel.css.js +112 -0
- package/dist/src/nile-app-shell-panel/nile-app-shell-panel.css.js.map +1 -0
- package/dist/src/nile-app-shell-panel/nile-app-shell-panel.d.ts +73 -0
- package/dist/src/nile-app-shell-panel/nile-app-shell-panel.js +158 -0
- package/dist/src/nile-app-shell-panel/nile-app-shell-panel.js.map +1 -0
- package/dist/src/nile-app-shell-side-nav/index.d.ts +7 -0
- package/dist/src/nile-app-shell-side-nav/index.js +8 -0
- package/dist/src/nile-app-shell-side-nav/index.js.map +1 -0
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.d.ts +13 -0
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +68 -0
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -0
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +54 -0
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +83 -0
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -0
- package/dist/src/nile-floating-panel/nile-floating-panel.css.js +46 -8
- package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.js +13 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.css.js +30 -15
- package/dist/src/nile-popover/nile-popover.css.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.js +1 -1
- package/dist/src/nile-popover/nile-popover.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.test.js +1 -1
- package/dist/src/nile-popover/nile-popover.test.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +5 -0
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +10 -0
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +17 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.test.d.ts +1 -0
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.test.js +42 -0
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.test.js.map +1 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.d.ts +4 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +68 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +5 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +9 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.js +17 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header.test.d.ts +1 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.test.js +42 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.test.js.map +1 -0
- package/dist/src/version.d.ts +11 -1
- package/dist/src/version.js +51 -8
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/version.cjs.js +1 -1
- package/dist/version.cjs.js.map +1 -1
- package/dist/version.esm.js +1 -1
- package/package.json +7 -2
- package/src/index.ts +16 -4
- package/src/internal/glyph.ts +12 -1
- package/src/nile-app-shell/index.ts +8 -0
- package/src/nile-app-shell/nile-app-shell-regions.test.ts +215 -0
- package/src/nile-app-shell/nile-app-shell.css.ts +574 -0
- package/src/nile-app-shell/nile-app-shell.test.ts +536 -0
- package/src/nile-app-shell/nile-app-shell.ts +838 -0
- package/src/nile-app-shell/shell-controller.ts +100 -0
- package/src/nile-app-shell-main/index.ts +8 -0
- package/src/nile-app-shell-main/nile-app-shell-main.css.ts +29 -0
- package/src/nile-app-shell-main/nile-app-shell-main.ts +52 -0
- package/src/nile-app-shell-nav-toggle/index.ts +8 -0
- package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.css.ts +44 -0
- package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +138 -0
- package/src/nile-app-shell-panel/index.ts +8 -0
- package/src/nile-app-shell-panel/nile-app-shell-panel.css.ts +114 -0
- package/src/nile-app-shell-panel/nile-app-shell-panel.ts +161 -0
- package/src/nile-app-shell-side-nav/index.ts +8 -0
- package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +70 -0
- package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +86 -0
- package/src/nile-floating-panel/nile-floating-panel.css.ts +46 -8
- package/src/nile-floating-panel/nile-floating-panel.ts +19 -1
- package/src/nile-popover/nile-popover.css.ts +30 -15
- package/src/nile-popover/nile-popover.test.ts +1 -1
- package/src/nile-popover/nile-popover.ts +1 -1
- package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +5 -0
- package/src/nile-side-bar-footer/nile-side-bar-footer.test.ts +55 -0
- package/src/nile-side-bar-footer/nile-side-bar-footer.ts +12 -1
- package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +78 -0
- package/src/nile-side-bar-header/nile-side-bar-header.css.ts +5 -0
- package/src/nile-side-bar-header/nile-side-bar-header.test.ts +55 -0
- package/src/nile-side-bar-header/nile-side-bar-header.ts +10 -0
- package/src/version.ts +55 -7
- package/vscode-html-custom-data.json +246 -9
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2023
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { CSSResultArray, TemplateResult, PropertyValues } from 'lit';
|
|
8
|
+
import NileElement from '../internal/nile-element';
|
|
9
|
+
import '../nile-button/nile-button';
|
|
10
|
+
/** The mode the AI panel is currently in. */
|
|
11
|
+
export type NileAppShellPanelMode = 'docked' | 'overlay';
|
|
12
|
+
/** Where the top bar is mounted. */
|
|
13
|
+
export type NileAppShellTopBarPlacement = 'content' | 'shell';
|
|
14
|
+
/** How the main region lays its content out. */
|
|
15
|
+
export type NileAppShellContentAlign = 'fluid' | 'centered';
|
|
16
|
+
/**
|
|
17
|
+
* @summary The application frame every route inherits: a side nav, a content
|
|
18
|
+
* container, an optional aside and an AI assistant panel. It holds anything —
|
|
19
|
+
* the shell owns the boxes, the page owns what goes in them.
|
|
20
|
+
*
|
|
21
|
+
* @status stable
|
|
22
|
+
* @since 2.0
|
|
23
|
+
*
|
|
24
|
+
* @tag nile-app-shell
|
|
25
|
+
*
|
|
26
|
+
* @dependency nile-button
|
|
27
|
+
* @dependency nile-glyph
|
|
28
|
+
*
|
|
29
|
+
* @slot - The page body, inside the content container.
|
|
30
|
+
* @slot banner - A full-width strip above every other region.
|
|
31
|
+
* @slot top-bar - The page-title bar. Mounted inside the container by default,
|
|
32
|
+
* or spanning the shell when `top-bar-placement="shell"`. The nav toggle is
|
|
33
|
+
* rendered before whatever is slotted here.
|
|
34
|
+
* @slot top-bar-actions - Controls pinned to the end of the top bar.
|
|
35
|
+
* @slot tabs - A hoisted second-level tab strip, flush under the top bar and
|
|
36
|
+
* outside `<main>`'s scroller, so it never scrolls away. The region carries
|
|
37
|
+
* the strip's height, padding and rule, so slot a `<nile-tab-group>` or the
|
|
38
|
+
* tab controls themselves.
|
|
39
|
+
* @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.
|
|
40
|
+
* @slot aside - A secondary column between the content container and the panel.
|
|
41
|
+
* @slot panel - The AI panel's body. When nothing is slotted here the panel is
|
|
42
|
+
* unmounted and `openPanel()` is a no-op.
|
|
43
|
+
* @slot panel-header - Replaces the default panel heading (mark plus title).
|
|
44
|
+
* @slot panel-actions - Controls added before the panel's close button.
|
|
45
|
+
* @slot panel-footer - A bar docked below the panel's scroll region, for a
|
|
46
|
+
* composer.
|
|
47
|
+
*
|
|
48
|
+
* @event nile-nav-toggle - Emitted after the nav's collapsed state or its
|
|
49
|
+
* forced-rail lock changes. `detail: { collapsed, locked }`.
|
|
50
|
+
* @event nile-panel-toggle - Emitted after the panel opens or closes.
|
|
51
|
+
* `detail: { open, mode }`.
|
|
52
|
+
* @event nile-panel-mode-change - Emitted when the panel flips between docked
|
|
53
|
+
* and overlay. `detail: { mode }`.
|
|
54
|
+
*
|
|
55
|
+
* @csspart skip-link - The skip-to-content link.
|
|
56
|
+
* @csspart banner - The banner region.
|
|
57
|
+
* @csspart shell-top-bar - The top bar when it spans the shell.
|
|
58
|
+
* @csspart top-bar - The top bar, in either placement.
|
|
59
|
+
* @csspart nav-toggle - The built-in nav toggle button.
|
|
60
|
+
* @csspart rule - The vertical rule after the nav toggle.
|
|
61
|
+
* @csspart top-bar-actions - The end-aligned top bar action group. Unmounted
|
|
62
|
+
* when it holds neither slotted actions nor the Ask button, so it reserves
|
|
63
|
+
* no gap.
|
|
64
|
+
* @csspart ask - The built-in Ask button, the shell's single door to the panel.
|
|
65
|
+
* A `<nile-button>`; its inner surface and label are exported as
|
|
66
|
+
* `ask__base` and `ask__label`.
|
|
67
|
+
* @csspart tabs - The hoisted tab-strip region, under the top bar.
|
|
68
|
+
* @csspart side-nav - The navigation track.
|
|
69
|
+
* @csspart content-section - The flex row holding container, aside and panel.
|
|
70
|
+
* @csspart container - The content container.
|
|
71
|
+
* @csspart main - The scrolling page body.
|
|
72
|
+
* @csspart aside - The aside region.
|
|
73
|
+
* @csspart panel - The AI panel.
|
|
74
|
+
* @csspart panel-header - The panel's header bar.
|
|
75
|
+
* @csspart panel-title - The panel's title text.
|
|
76
|
+
* @csspart panel-actions - The panel's header action group.
|
|
77
|
+
* @csspart panel-close - The panel's close button.
|
|
78
|
+
* @csspart panel-body - The panel's scroll region.
|
|
79
|
+
* @csspart panel-footer - The panel's footer.
|
|
80
|
+
*
|
|
81
|
+
* @cssproperty [--nile-app-shell-side-nav-width=260px] - Expanded nav track.
|
|
82
|
+
* @cssproperty [--nile-app-shell-side-nav-rail-width=64px] - Collapsed track.
|
|
83
|
+
* @cssproperty [--nile-app-shell-side-nav-bg=transparent] - Surface behind a
|
|
84
|
+
* slotted side nav. Transparent by default: the nav and the page share one
|
|
85
|
+
* surface.
|
|
86
|
+
* @cssproperty [--nile-app-shell-side-nav-border=0] - Edge on a slotted side
|
|
87
|
+
* nav.
|
|
88
|
+
* @cssproperty [--nile-app-shell-gutter=8px] - Content-section padding, and the
|
|
89
|
+
* gap between container, aside and panel.
|
|
90
|
+
* @cssproperty [--nile-app-shell-content-padding=24px] - Container inner
|
|
91
|
+
* padding. The origin every top bar starts at.
|
|
92
|
+
* @cssproperty [--nile-app-shell-top-bar-height=56px] - Top bar and panel
|
|
93
|
+
* header height. Drops to 48px under 600px of viewport height.
|
|
94
|
+
* @cssproperty [--nile-app-shell-tabs-height=48px] - Tab strip height.
|
|
95
|
+
* @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and
|
|
96
|
+
* the `min()` ceiling for the overlay drawer.
|
|
97
|
+
* @cssproperty [--nile-app-shell-panel-min-width=360px] - How far a docked
|
|
98
|
+
* panel shrinks to keep pushing rather than covering the page.
|
|
99
|
+
* @cssproperty [--nile-app-shell-aside-width=320px] - Aside width.
|
|
100
|
+
* @cssproperty [--nile-app-shell-aside-min-width=240px] - How far the aside
|
|
101
|
+
* shrinks before the page is asked for room.
|
|
102
|
+
* @cssproperty [--nile-app-shell-content-min-width=640px] - Container floor.
|
|
103
|
+
* @cssproperty [--nile-app-shell-min-width=768px] - Below this the window
|
|
104
|
+
* scrolls rather than the shell compressing.
|
|
105
|
+
* @cssproperty [--nile-app-shell-centered-width=824px] - Column width under
|
|
106
|
+
* `content-align="centered"`.
|
|
107
|
+
* @cssproperty [--nile-app-shell-utility-size=32px] - Height of the Ask
|
|
108
|
+
* button. The toggle and close controls are nile-buttons and size themselves.
|
|
109
|
+
* @cssproperty [--nile-app-shell-radius=16px] - Container, aside and panel
|
|
110
|
+
* radius.
|
|
111
|
+
* @cssproperty [--nile-app-shell-duration=250ms] - Track and panel motion.
|
|
112
|
+
* @cssproperty [--nile-app-shell-ease] - Easing for moves and resizes.
|
|
113
|
+
*
|
|
114
|
+
* @method openPanel() - Open the AI panel. No-op when the panel is unavailable.
|
|
115
|
+
* @method closePanel() - Close the AI panel.
|
|
116
|
+
* @method togglePanel(force?) - Toggle, or force a specific open state.
|
|
117
|
+
* @method expandNav() - Expand the side nav.
|
|
118
|
+
* @method collapseNav() - Collapse the side nav to a rail.
|
|
119
|
+
* @method toggleNav(force?) - Toggle, or force a specific collapsed state.
|
|
120
|
+
*/
|
|
121
|
+
export declare class NileAppShell extends NileElement {
|
|
122
|
+
static get styles(): CSSResultArray;
|
|
123
|
+
/**
|
|
124
|
+
* The user's nav preference. The nav can still render as a rail while this is
|
|
125
|
+
* false — see `navLocked`.
|
|
126
|
+
*/
|
|
127
|
+
navCollapsed: boolean;
|
|
128
|
+
/** Whether the AI panel is open. */
|
|
129
|
+
panelOpen: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Unmounts the AI panel for this route even when the `panel` slot is filled.
|
|
132
|
+
* `openPanel()` becomes a no-op.
|
|
133
|
+
*/
|
|
134
|
+
noPanel: boolean;
|
|
135
|
+
/** The default panel heading. Ignored when `panel-header` is slotted. */
|
|
136
|
+
panelLabel: string;
|
|
137
|
+
/** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */
|
|
138
|
+
noNavToggle: boolean;
|
|
139
|
+
/** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */
|
|
140
|
+
noPanelShortcut: boolean;
|
|
141
|
+
/** Hides the skip-to-content link. */
|
|
142
|
+
noSkipLink: boolean;
|
|
143
|
+
/** Label for the skip-to-content link. */
|
|
144
|
+
skipLinkLabel: string;
|
|
145
|
+
/** Where the top bar is mounted: inside the container, or spanning the shell. */
|
|
146
|
+
topBarPlacement: NileAppShellTopBarPlacement;
|
|
147
|
+
/** `centered` caps the page body at `--nile-app-shell-centered-width`. */
|
|
148
|
+
contentAlign: NileAppShellContentAlign;
|
|
149
|
+
/**
|
|
150
|
+
* Makes the slotted page root a size query container, so page CSS can size
|
|
151
|
+
* against the content container instead of the viewport. Query it unnamed —
|
|
152
|
+
* `@container (min-width: 720px)` — because a container name declared inside
|
|
153
|
+
* the shell's shadow tree is not visible to page CSS. Opt-in, because it
|
|
154
|
+
* also applies layout containment to that element.
|
|
155
|
+
*/
|
|
156
|
+
contentContainer: boolean;
|
|
157
|
+
/** Drops the container's card chrome for a full-bleed page. */
|
|
158
|
+
flat: boolean;
|
|
159
|
+
/** Removes the container's inner padding. */
|
|
160
|
+
noPadding: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* The label on the built-in Ask button.
|
|
163
|
+
*
|
|
164
|
+
* The button is the shell's, not the app's: it is the one control that has
|
|
165
|
+
* to know whether a panel is mounted for this route and how to open it, and
|
|
166
|
+
* slotted content can see neither. Everything else in the bar — the
|
|
167
|
+
* breadcrumb, the page actions, the tab strip — is slotted markup.
|
|
168
|
+
*/
|
|
169
|
+
askLabel: string;
|
|
170
|
+
/** Drops the built-in Ask button, for a bar that renders its own. */
|
|
171
|
+
noAsk: boolean;
|
|
172
|
+
/** Sizes the shell to the viewport instead of its parent. */
|
|
173
|
+
fullHeight: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Below this shell width the panel overlays the content instead of pushing
|
|
176
|
+
* it, and the nav is forced to a rail.
|
|
177
|
+
*
|
|
178
|
+
* Zero — the default — means never: the panel is furniture that squeezes the
|
|
179
|
+
* page, at every width. It earns its room from the nav rail first and from
|
|
180
|
+
* its own width next (see `--nile-app-shell-panel-min-width`), so it does
|
|
181
|
+
* not have to cover the page to fit. Set a width here to opt back into an
|
|
182
|
+
* overlay drawer below it.
|
|
183
|
+
*/
|
|
184
|
+
overlayBreakpoint: number;
|
|
185
|
+
/**
|
|
186
|
+
* Below this shell width an open docked panel forces the nav to a rail.
|
|
187
|
+
* A floor, not the whole rule: the nav also rails as soon as the expanded
|
|
188
|
+
* track is what stops the row from fitting. This is the first thing the
|
|
189
|
+
* panel takes room from, so it can push rather than cover.
|
|
190
|
+
*/
|
|
191
|
+
dockedRailBreakpoint: number;
|
|
192
|
+
/**
|
|
193
|
+
* Persists the nav preference and the docked panel state under this key.
|
|
194
|
+
* Overlay panel state is never persisted — a reload opens closed.
|
|
195
|
+
*/
|
|
196
|
+
persistKey?: string;
|
|
197
|
+
/** The panel's current mode. Derived from the shell's width. */
|
|
198
|
+
private _panelMode;
|
|
199
|
+
/** Whether the nav is held at a rail by the shell's width. */
|
|
200
|
+
private _navLocked;
|
|
201
|
+
private _hasBanner;
|
|
202
|
+
private _hasSideNav;
|
|
203
|
+
private _hasTopBar;
|
|
204
|
+
private _hasTopBarActions;
|
|
205
|
+
private _hasTabs;
|
|
206
|
+
private _hasPanel;
|
|
207
|
+
private _hasPanelFooter;
|
|
208
|
+
/**
|
|
209
|
+
* True when a `nile-app-shell-panel` is slotted. That component owns the
|
|
210
|
+
* panel's heading, actions, close button and footer, so the shell renders a
|
|
211
|
+
* bare region and keeps only the geometry and the open state — the same
|
|
212
|
+
* hand-off as `no-nav-toggle` plus `nile-app-shell-nav-toggle`.
|
|
213
|
+
*/
|
|
214
|
+
private _panelOwnsChrome;
|
|
215
|
+
private _hasAside;
|
|
216
|
+
private _main?;
|
|
217
|
+
private _width;
|
|
218
|
+
private _resizeObserver?;
|
|
219
|
+
private _restoredPanelOpen;
|
|
220
|
+
/** The panel's current mode: `docked` or `overlay`. */
|
|
221
|
+
get panelMode(): NileAppShellPanelMode;
|
|
222
|
+
/** Whether the shell is holding the nav at a rail. The toggle is disabled. */
|
|
223
|
+
get navLocked(): boolean;
|
|
224
|
+
/** Whether a panel is mounted for this route. */
|
|
225
|
+
get panelAvailable(): boolean;
|
|
226
|
+
/** Whether the built-in Ask button is rendered. */
|
|
227
|
+
get askVisible(): boolean;
|
|
228
|
+
/** Whether the nav renders as a rail right now, preference or lock. */
|
|
229
|
+
get rail(): boolean;
|
|
230
|
+
connectedCallback(): void;
|
|
231
|
+
disconnectedCallback(): void;
|
|
232
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
233
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
234
|
+
/** Open the AI panel. No-op when no panel is mounted for this route. */
|
|
235
|
+
openPanel(): void;
|
|
236
|
+
/** Close the AI panel. */
|
|
237
|
+
closePanel(): void;
|
|
238
|
+
/**
|
|
239
|
+
* Toggle the panel, or force a state. Call `openPanel()` from a page action —
|
|
240
|
+
* a page action that toggles closes the panel for a user who already had it
|
|
241
|
+
* open.
|
|
242
|
+
*/
|
|
243
|
+
togglePanel(force?: boolean): void;
|
|
244
|
+
/** Expand the side nav. */
|
|
245
|
+
expandNav(): void;
|
|
246
|
+
/** Collapse the side nav to a rail. */
|
|
247
|
+
collapseNav(): void;
|
|
248
|
+
/** Toggle the side nav, or force a collapsed state. */
|
|
249
|
+
toggleNav(force?: boolean): void;
|
|
250
|
+
/** Move focus to the page body. */
|
|
251
|
+
focusMain(): void;
|
|
252
|
+
private _setPanelOpen;
|
|
253
|
+
private _setNavCollapsed;
|
|
254
|
+
/** Records the shell's width and re-derives everything that depends on it. */
|
|
255
|
+
private _measure;
|
|
256
|
+
/**
|
|
257
|
+
* The shell's geometry, read off its own custom properties so a consumer's
|
|
258
|
+
* overrides are part of the sum. Falls back to the stylesheet's defaults
|
|
259
|
+
* before the element has a computed style.
|
|
260
|
+
*/
|
|
261
|
+
private _geometry;
|
|
262
|
+
/**
|
|
263
|
+
* The shell width a docked panel needs to sit beside the content floor, over
|
|
264
|
+
* a side-nav `track` wide.
|
|
265
|
+
*
|
|
266
|
+
* A fixed breakpoint cannot answer this: what shares the row changes per
|
|
267
|
+
* route. An aside alone adds 328px, so a shell wide enough to hold the
|
|
268
|
+
* expanded nav beside a docked panel on one route is 328px short on the
|
|
269
|
+
* next. Summing what is actually mounted rails the nav exactly when the
|
|
270
|
+
* track is what the row cannot afford.
|
|
271
|
+
*/
|
|
272
|
+
private _dockRequirement;
|
|
273
|
+
private _recompute;
|
|
274
|
+
/** Mirrors the effective rail state onto a slotted `nile-side-bar`. */
|
|
275
|
+
private _syncSideNav;
|
|
276
|
+
/** A slotted sidebar's own expand button is the same toggle. */
|
|
277
|
+
private _onSideNavToggle;
|
|
278
|
+
private _onKeyDown;
|
|
279
|
+
private _storageKey;
|
|
280
|
+
private _restore;
|
|
281
|
+
private _persist;
|
|
282
|
+
private _onSlotChange;
|
|
283
|
+
private _renderNavToggle;
|
|
284
|
+
private _renderTopBar;
|
|
285
|
+
render(): TemplateResult;
|
|
286
|
+
}
|
|
287
|
+
export default NileAppShell;
|
|
288
|
+
declare global {
|
|
289
|
+
interface HTMLElementTagNameMap {
|
|
290
|
+
'nile-app-shell': NileAppShell;
|
|
291
|
+
}
|
|
292
|
+
}
|