@aquera/nile-elements 2.0.25 → 2.0.27
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 +12 -0
- package/demo/index.html +12 -2
- package/demo/index.js +17 -0
- package/demo/nxtgen-classes.css +12 -2
- package/demo/nxtgen-dark.css +8 -0
- package/demo/nxtgen-properties.css +2 -2
- package/demo/nxtgen-utilities.css +12 -2
- package/demo/nxtgen.css +4 -2
- package/demo/utilities.css +2 -2
- package/demo/variables.css +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +475 -450
- package/dist/nile-app-shell/nile-app-shell.cjs.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -1
- package/dist/nile-app-shell/nile-app-shell.esm.js +2 -0
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +5 -5
- package/dist/nile-code-editor/theme.cjs.js +1 -1
- package/dist/nile-code-editor/theme.cjs.js.map +1 -1
- package/dist/nile-code-editor/theme.esm.js +1 -1
- package/dist/nile-combobox/nile-combobox.cjs.js +1 -1
- package/dist/nile-combobox/nile-combobox.cjs.js.map +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
- package/dist/nile-combobox/nile-combobox.css.esm.js +2 -0
- package/dist/nile-combobox/nile-combobox.esm.js +1 -1
- package/dist/nile-detail/nile-detail.cjs.js +1 -1
- package/dist/nile-detail/nile-detail.cjs.js.map +1 -1
- package/dist/nile-detail/nile-detail.esm.js +6 -5
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.css.cjs.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.css.esm.js +2 -2
- package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +4 -4
- package/dist/nile-virtual-select/index.cjs.js +1 -1
- package/dist/nile-virtual-select/index.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +4 -4
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +19 -5
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +5 -5
- package/dist/nile-virtual-select/renderer.cjs.js +1 -1
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -1
- package/dist/nile-virtual-select/renderer.esm.js +23 -22
- package/dist/src/nile-app-shell/nile-app-shell.js +2 -0
- package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +4 -0
- package/dist/src/nile-calendar/nile-calendar.js +18 -2
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.test.js +50 -0
- package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +12 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +92 -0
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-code-editor/theme.d.ts +63 -0
- package/dist/src/nile-code-editor/theme.js +70 -7
- package/dist/src/nile-code-editor/theme.js.map +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js +2 -0
- package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
- package/dist/src/nile-combobox/nile-combobox.d.ts +1 -0
- package/dist/src/nile-combobox/nile-combobox.js +12 -1
- package/dist/src/nile-combobox/nile-combobox.js.map +1 -1
- package/dist/src/nile-combobox/nile-combobox.test.js +375 -0
- package/dist/src/nile-combobox/nile-combobox.test.js.map +1 -1
- package/dist/src/nile-detail/nile-detail.d.ts +4 -0
- package/dist/src/nile-detail/nile-detail.js +35 -3
- package/dist/src/nile-detail/nile-detail.js.map +1 -1
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.css.js +2 -2
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.css.js.map +1 -1
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.d.ts +2 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js +7 -0
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +4 -4
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +19 -5
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +29 -0
- package/dist/src/nile-virtual-select/nile-virtual-select.js +120 -13
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +187 -2
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -1
- package/dist/src/nile-virtual-select/renderer.d.ts +1 -1
- package/dist/src/nile-virtual-select/renderer.js +11 -4
- package/dist/src/nile-virtual-select/renderer.js.map +1 -1
- package/dist/src/version.js +1 -1
- 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 +1 -1
- package/src/nile-app-shell/nile-app-shell.ts +2 -0
- package/src/nile-calendar/nile-calendar.test.ts +54 -0
- package/src/nile-calendar/nile-calendar.ts +17 -3
- package/src/nile-code-editor/nile-code-editor.ts +82 -0
- package/src/nile-code-editor/theme.ts +70 -7
- package/src/nile-combobox/nile-combobox.css.ts +2 -0
- package/src/nile-combobox/nile-combobox.test.ts +416 -0
- package/src/nile-combobox/nile-combobox.ts +11 -1
- package/src/nile-detail/nile-detail.ts +34 -3
- package/src/nile-lite-tooltip/nile-lite-tooltip.css.ts +2 -2
- package/src/nile-lite-tooltip/nile-lite-tooltip.ts +6 -0
- package/src/nile-tooltip/nile-tooltip.css.ts +4 -4
- package/src/nile-virtual-select/nile-virtual-select.css.ts +19 -5
- package/src/nile-virtual-select/nile-virtual-select.test.ts +230 -2
- package/src/nile-virtual-select/nile-virtual-select.ts +117 -11
- package/src/nile-virtual-select/renderer.ts +12 -5
- package/vscode-html-custom-data.json +20 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-app-shell.js","sourceRoot":"","sources":["../../../src/nile-app-shell/nile-app-shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkD,MAAM,KAAK,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW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;gDAAqC;AAC5B;IAAhB,KAAK,EAAE;uDAA4C;AACnC;IAAhB,KAAK,EAAE;8CAAmC;AAC1B;IAAhB,KAAK,EAAE;iDAAsC;AAC7B;IAAhB,KAAK,EAAE;oDAAyC;AAChC;IAAhB,KAAK,EAAE;mDAAwC;AAC/B;IAAhB,KAAK,EAAE;yDAA8C;AACrC;IAAhB,KAAK,EAAE;+CAAoC;AAC3B;IAAhB,KAAK,EAAE;qDAA0C;AAGjC;IAAhB,KAAK,EAAE;sDAA2C;AAClC;IAAhB,KAAK,EAAE;+CAAoC;AAG3B;IAAhB,KAAK,EAAE;8CAAmE;AAEnD;IAAvB,KAAK,CAAC,OAAO,CAAC;2CAA6B;AA1JjC,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CA48BxB;;AAED,eAAe,YAAY,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { styles } from './nile-app-shell.css';\nimport { renderGlyph } from '../internal/glyph';\nimport NileElement from '../internal/nile-element';\nimport '../nile-button/nile-button';\nimport '../nile-lite-tooltip/index';\nimport type { NileliteTooltip } from '../nile-lite-tooltip/nile-lite-tooltip';\n\n/** The mode the AI panel is currently in. */\nexport type NileAppShellPanelMode = 'docked' | 'overlay';\n\n/** Where the top bar is mounted. */\nexport type NileAppShellTopBarPlacement = 'content' | 'shell';\n\n/** How the main region lays its content out. */\nexport type NileAppShellContentAlign = 'fluid' | 'centered';\n\n/** The `detail` of the `nile-click` the header back control emits. */\nexport interface NileAppShellClickDetail {\n value: 'back';\n}\n\n/** The shell's own track and region widths, in px. */\ninterface ShellGeometry {\n nav: number;\n rail: number;\n gutter: number;\n content: number;\n aside: number;\n panel: number;\n}\n\n/**\n * @summary The application frame every route inherits: a side nav, a content container, an optional aside and an AI assistant panel.\n *\n * @status stable\n * @since 2.0\n *\n * @tag nile-app-shell\n *\n * @dependency nile-button\n * @dependency nile-glyph\n * @dependency nile-lite-tooltip\n *\n * @slot - The page body, inside the content container.\n * @slot banner - A full-width strip above every other region.\n * @slot top-bar - The page-title bar, mounted inside the container by default or spanning the shell when `top-bar-placement=\"shell\"`.\n * @slot top-bar-actions - Controls pinned to the end of the top bar.\n * @slot tabs - A hoisted second-level tab strip, flush under the top bar and outside `<main>`'s scroller.\n * @slot page-title - The page title's content, replacing `pageTitle`. It sits inside the shell's own heading wrapper, so the heading role and `headingLevel` still apply.\n * @slot description - The line under the page title, replacing `description`. Takes any content, and the header grows to fit it.\n * @slot breadcrumb - A breadcrumb trail (e.g. `<nile-breadcrumb>`) above the page title. Shown only with a `pageTitle`; the title block is pushed down by however tall the trail is.\n * @slot app-icon - The mark shown before the page title whenever this slot has content, clipped to the shell's box.\n * @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.\n * @slot aside - A secondary column between the content container and the panel.\n * @slot panel - The AI panel's body. When empty the panel is unmounted and `openPanel()` is a no-op.\n * @slot panel-header - Replaces the default panel heading (mark plus title).\n * @slot panel-actions - Controls added before the panel's close button.\n * @slot panel-footer - A bar docked below the panel's scroll region, for a composer.\n *\n * @event nile-nav-toggle - Emitted after the nav's collapsed state or forced-rail lock changes. `detail: { collapsed, locked }`.\n * @event nile-panel-toggle - Emitted after the panel opens or closes. `detail: { open, mode }`.\n * @event nile-panel-mode-change - Emitted when the panel flips between docked and overlay. `detail: { mode }`.\n * @event nile-click - Emitted when the header's back control is pressed, or `goBackHeader()` is called. `detail: { value: 'back' }`. Emitted on the shell itself, so check `event.target === shell` as well as the value: a `nile-click` from page content bubbles through the shell too.\n * @event nile-panel-back - Emitted when the panel's back control is pressed, whether the shell's built-in panel chrome or a slotted `nile-app-shell-panel` draws it.\n *\n * @csspart skip-link - The skip-to-content link.\n * @csspart banner - The banner region.\n * @csspart shell-top-bar - The top bar when it spans the shell.\n * @csspart top-bar - The top bar, in either placement.\n * @csspart nav-toggle - The built-in nav toggle button.\n * @csspart rule - The vertical rule after the nav toggle.\n * @csspart ask-rule - The vertical rule before the Ask button, drawn when `top-bar-actions` has content.\n * @csspart top-bar-actions - The end-aligned top bar action group.\n * @csspart ask - The built-in Ask button, the shell's single door to the panel.\n * @csspart title-area - The header's own title block: back control, app icon, title, badge and description.\n * @csspart breadcrumb - The row above the page title that holds the `breadcrumb` slot.\n * @csspart page-title - The title text, exposed as a heading whose level `headingLevel` sets.\n * @csspart description - The second line under the title.\n * @csspart badge - The pill after the title.\n * @csspart back - The header back control, shown by `headerBack`.\n * @csspart app-icon - The block holding the `app-icon` slot, shown when the slot has content and sized by `--nile-app-shell-app-icon-size`.\n * @csspart tabs - The hoisted tab-strip region, under the top bar.\n * @csspart side-nav - The navigation track.\n * @csspart content-section - The flex row holding container, aside and panel.\n * @csspart container - The content container.\n * @csspart main - The scrolling page body.\n * @csspart aside - The aside region.\n * @csspart panel - The AI panel.\n * @csspart panel-header - The panel's header bar.\n * @csspart panel-back - The panel's back control, shown by `panelBack`.\n * @csspart panel-title - The panel's title text.\n * @csspart panel-actions - The panel's header action group.\n * @csspart panel-close - The panel's close button.\n * @csspart panel-body - The panel's scroll region.\n * @csspart panel-footer - The panel's footer.\n *\n * @cssproperty [--nile-app-shell-side-nav-width=260px] - Expanded nav track (240px on the enterprise sheet), in step with nile-side-bar.\n * @cssproperty [--nile-app-shell-side-nav-rail-width=72px] - Collapsed track (70px on the enterprise sheet), in step with nile-side-bar.\n * @cssproperty [--nile-app-shell-gutter=4px] - Content-section padding, and the gap between container, aside and panel.\n * @cssproperty [--nile-app-shell-content-padding=24px] - Container inner padding.\n * @cssproperty [--nile-app-shell-panel-header-height=56px] - The panel header's own height.\n * @cssproperty [--nile-app-shell-tabs-height=33px] - Tab strip height.\n * @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and the `min()` ceiling for the overlay drawer.\n * @cssproperty [--nile-app-shell-panel-min-width=360px] - How far a docked panel shrinks to keep pushing rather than covering the page.\n * @cssproperty [--nile-app-shell-aside-width=320px] - Aside width.\n * @cssproperty [--nile-app-shell-aside-min-width=240px] - How far the aside shrinks before the page is asked for room.\n * @cssproperty [--nile-app-shell-content-min-width=640px] - Container floor.\n * @cssproperty [--nile-app-shell-min-width=768px] - Below this the window scrolls rather than the shell compressing.\n * @cssproperty [--nile-app-shell-centered-width=824px] - Column width under `content-align=\"centered\"`.\n * @cssproperty [--nile-app-shell-app-icon-size=20px] - The app icon's box.\n * @cssproperty [--nile-app-shell-utility-size=32px] - Box the shell's own icon controls sit in.\n * @cssproperty [--nile-app-shell-radius=16px] - Container, aside and panel radius.\n * @cssproperty [--nile-app-shell-duration=250ms] - Track and panel motion.\n * @cssproperty [--nile-app-shell-ease] - Easing for moves and resizes.\n *\n * @method openPanel() - Open the AI panel. No-op when the panel is unavailable.\n * @method closePanel() - Close the AI panel.\n * @method togglePanel(force?) - Toggle, or force a specific open state.\n * @method expandNav() - Expand the side nav.\n * @method collapseNav() - Collapse the side nav to a rail.\n * @method toggleNav(force?) - Toggle, or force a specific collapsed state.\n * @method goBackHeader() - Emit `nile-click` with `{ value: 'back' }`, as the header's back control does.\n * @method goBackPanel() - Emit `nile-panel-back`, as the panel's back control does.\n * @method goBack() - Deprecated alias of `goBackPanel()`.\n */\n@customElement('nile-app-shell')\nexport class NileAppShell extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /** The user's nav preference. The nav can still render as a rail while this is false — see `navLocked`. */\n @property({ type: Boolean, reflect: true, attribute: 'nav-collapsed' })\n navCollapsed: boolean = false;\n\n /** Whether the AI panel is open. */\n @property({ type: Boolean, reflect: true, attribute: 'panel-open' })\n panelOpen: boolean = false;\n\n /** Unmounts the AI panel for this route even when the `panel` slot is filled; `openPanel()` becomes a no-op. */\n @property({ type: Boolean, reflect: true, attribute: 'no-panel' })\n noPanel: boolean = false;\n\n /** The default panel heading. Ignored when `panel-header` is slotted. */\n @property({ type: String, attribute: 'panel-label' })\n panelLabel: string = 'Ask Aquera';\n\n /** The page title, rendered as the top bar's own heading (`role=\"heading\"`, level from `headingLevel`) before anything slotted into `top-bar`; the fallback for the `page-title` slot. Leave unset, with the slot empty, and no title block renders. */\n @property({ type: String, attribute: true, reflect: true })\n pageTitle?: string;\n\n /** The `aria-level` of the `pageTitle` heading, 1–6, so the title can fit the page's own heading outline; e.g. 2 when the page body or banner already has its h1. Out-of-range values clamp to 1–6 and non-numbers fall back to 1. */\n @property({ type: Number, attribute: true, reflect: true })\n headingLevel: number = 1;\n\n /** A second line under the page title; the fallback for the `description` slot, and a modifier on the title that renders nothing without one. */\n @property({ type: String, attribute: true, reflect: true })\n description?: string;\n\n /** A pill after the page title; a modifier on `pageTitle` like `description`, so with no title there is no badge. */\n @property({ type: String, attribute: true, reflect: true })\n badge?: string;\n\n /** Shows the back arrow before the page title; pressing it emits `nile-click` with `{ value: 'back' }`. Independent of the `app-icon` slot. */\n @property({ type: Boolean, attribute: true, reflect: true })\n headerBack: boolean = false;\n\n /** Accessible name of the header back control. Never rendered as visible text. */\n @property({ type: String, attribute: true, reflect: true })\n headerBackLabel: string = 'Back';\n\n /** Turns off the shell's own tooltips: the labels on its icon buttons, and the full text of a title, description or panel title that its ellipsis has cut off. */\n @property({ type: Boolean, reflect: true, attribute: true })\n disableTooltip: boolean = false;\n\n /** Placement of the tooltips on the shell's icon buttons: the nav toggle, the back button and the panel's back and close buttons. Unset keeps `bottom`. Any `nile-lite-tooltip` placement. */\n @property({ type: String, attribute: true })\n controlTooltipPlacement?: NileliteTooltip['placement'];\n\n /** Placement of the full-text tooltips on a title, description or panel title that its ellipsis has cut off. Unset keeps `top`. Any `nile-lite-tooltip` placement. */\n @property({ type: String, attribute: true })\n textTooltipPlacement?: NileliteTooltip['placement'];\n\n /** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */\n @property({ type: Boolean, reflect: true, attribute: 'no-nav-toggle' })\n noNavToggle: boolean = false;\n\n /** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */\n @property({ type: Boolean, attribute: 'no-panel-shortcut' })\n noPanelShortcut: boolean = false;\n\n /** Hides the skip-to-content link. */\n @property({ type: Boolean, reflect: true, attribute: 'no-skip-link' })\n noSkipLink: boolean = false;\n\n /** Label for the skip-to-content link. */\n @property({ type: String, attribute: 'skip-link-label' })\n skipLinkLabel: string = 'Skip to main content';\n\n /** Where the top bar is mounted: inside the container, or spanning the shell. */\n @property({ type: String, reflect: true, attribute: 'top-bar-placement' })\n topBarPlacement: NileAppShellTopBarPlacement = 'content';\n\n /** `centered` caps the page body at `--nile-app-shell-centered-width`. */\n @property({ type: String, reflect: true, attribute: 'content-align' })\n contentAlign: NileAppShellContentAlign = 'fluid';\n\n /** Makes the slotted page root a size query container, so page CSS can size against the content container instead of the viewport. */\n @property({ type: Boolean, reflect: true, attribute: 'content-container' })\n contentContainer: boolean = false;\n\n /** Drops the container's card chrome for a full-bleed page. */\n @property({ type: Boolean, reflect: true })\n flat: boolean = false;\n\n /** Removes the container's inner padding. */\n @property({ type: Boolean, reflect: true, attribute: 'no-padding' })\n noPadding: boolean = false;\n\n /** The label on the built-in Ask button. */\n @property({ type: String, attribute: 'ask-label' })\n askLabel: string = 'Ask';\n\n /** Drops the built-in Ask button, for a bar that renders its own. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ask' })\n noAsk: boolean = false;\n\n /** Shows a back control at the start of the panel header for a panel sub-view; emits `nile-panel-back`. */\n @property({ type: Boolean, reflect: true })\n panelBack: boolean = false;\n\n /** Accessible name of the panel's back control. */\n @property({ type: String })\n panelBackLabel: string = 'Back';\n\n /** Hides the tab strip for this route even when the `tabs` slot is filled. */\n @property({ type: Boolean, reflect: true })\n noTabs: boolean = false;\n\n /** Sizes the shell to the viewport instead of its parent. */\n @property({ type: Boolean, reflect: true, attribute: 'full-height' })\n fullHeight: boolean = false;\n\n /** Below this shell width the panel overlays the content instead of pushing it, and the nav is forced to a rail; zero (default) means never. */\n @property({ type: Number, attribute: 'overlay-breakpoint' })\n overlayBreakpoint: number = 0;\n\n /** Below this shell width an open docked panel forces the nav to a rail. */\n @property({ type: Number, attribute: 'docked-rail-breakpoint' })\n dockedRailBreakpoint: number = 1440;\n\n /** Persists the nav preference and docked panel state under this key. Overlay panel state is never persisted. */\n @property({ type: String, attribute: 'persist-key' })\n persistKey?: string;\n\n /** The panel's current mode. Derived from the shell's width. */\n @state() private _panelMode: NileAppShellPanelMode = 'docked';\n\n /** Whether the nav is held at a rail by the shell's width. */\n @state() private _navLocked: boolean = false;\n\n @state() private _hasBanner: boolean = false;\n @state() private _hasSideNav: boolean = false;\n @state() private _hasTopBar: boolean = false;\n @state() private _hasTopBarActions: boolean = false;\n @state() private _hasTabs: boolean = false;\n @state() private _hasAppIcon: boolean = false;\n @state() private _hasBreadcrumb: boolean = false;\n @state() private _hasTitleSlot: boolean = false;\n @state() private _hasDescriptionSlot: boolean = false;\n @state() private _hasPanel: boolean = false;\n @state() private _hasPanelFooter: boolean = false;\n\n /** True when a `nile-app-shell-panel` is slotted, owning the panel's own chrome so the shell renders a bare region. */\n @state() private _panelOwnsChrome: boolean = false;\n @state() private _hasAside: boolean = false;\n\n /** The full text of each heading the ellipsis is currently cutting off; empty while it fits. */\n @state() private _clipped = { title: '', description: '', panelTitle: '' };\n\n @query('.main') private _main?: HTMLElement;\n\n private _width: number = 0;\n private _resizeObserver?: ResizeObserver;\n private _restoredPanelOpen: boolean | null = null;\n\n /** The panel's current mode: `docked` or `overlay`. */\n public get panelMode(): NileAppShellPanelMode {\n return this._panelMode;\n }\n\n /** Whether the shell is holding the nav at a rail. The toggle is disabled. */\n public get navLocked(): boolean {\n return this._navLocked;\n }\n\n /** Whether a panel is mounted for this route. */\n public get panelAvailable(): boolean {\n return this._hasPanel && !this.noPanel;\n }\n\n /** Whether the tab strip is rendered: something slotted, and not switched off. */\n public get tabsVisible(): boolean {\n return this._hasTabs && !this.noTabs;\n }\n\n /** Whether the built-in Ask button is rendered. */\n public get askVisible(): boolean {\n return this.panelAvailable && !this.noAsk;\n }\n\n /** Whether the nav renders as a rail right now, preference or lock. */\n public get rail(): boolean {\n return this.navCollapsed || this._navLocked;\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this._restore();\n this._resizeObserver = new ResizeObserver(entries => {\n this._syncClipping();\n const entry = entries[entries.length - 1];\n this._measure(entry.contentRect.width);\n });\n this._resizeObserver.observe(this);\n document.addEventListener('keydown', this._onKeyDown);\n }\n\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n document.removeEventListener('keydown', this._onKeyDown);\n }\n\n protected willUpdate(changed: PropertyValues<this>): void {\n if (\n changed.has('panelOpen') ||\n changed.has('noPanel') ||\n changed.has('overlayBreakpoint') ||\n changed.has('dockedRailBreakpoint') ||\n // Aside/side-nav mounting changes what a docked panel fits beside; ask the map since private state is outside `keyof this`.\n (changed as Map<string, unknown>).has('_hasAside') ||\n (changed as Map<string, unknown>).has('_hasSideNav')\n ) {\n this._recompute();\n }\n }\n\n protected updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n\n // Derived state the stylesheet and consumers read off the host.\n this.toggleAttribute('rail', this.rail);\n this.toggleAttribute('nav-locked', this._navLocked);\n this.toggleAttribute('has-banner', this._hasBanner);\n this.toggleAttribute('has-side-nav', this._hasSideNav);\n this.toggleAttribute(\n 'has-top-bar',\n this._hasTopBar ||\n this._hasTitleBlock ||\n (!this.noNavToggle && this._hasSideNav)\n );\n // Only with a title to sit under: see _hasTitleBlock.\n this.toggleAttribute(\n 'has-description',\n this._hasDescription && this._hasTitle\n );\n this.toggleAttribute(\n 'has-breadcrumb',\n this._hasBreadcrumb && this._hasTitle\n );\n this.toggleAttribute('has-top-bar-actions', this._hasTopBarActions);\n this.toggleAttribute('has-app-icon', this._hasAppIcon);\n this.toggleAttribute('has-ask', this.askVisible);\n this.toggleAttribute('has-tabs', this.tabsVisible);\n this.toggleAttribute('has-aside', this._hasAside);\n this.toggleAttribute('has-panel', this.panelAvailable);\n this.toggleAttribute('has-panel-footer', this._hasPanelFooter);\n this.setAttribute('panel-mode', this._panelMode);\n this.setAttribute(\n 'panel-chrome',\n this._panelOwnsChrome ? 'external' : 'internal'\n );\n\n this._syncSideNav();\n this._syncClipping();\n }\n\n /** Records the text of each title the ellipsis has cut off, so only those get a tooltip. */\n private _syncClipping(): void {\n const root = this.shadowRoot;\n if (!root) return;\n const textOf = (slotName: string, fallback: string | undefined): string => {\n const slot = root.querySelector<HTMLSlotElement>(`slot[name=\"${slotName}\"]`);\n const assigned = slot?.assignedNodes({ flatten: true }) ?? [];\n const text = assigned.map(node => node.textContent ?? '').join('').trim();\n return text || (fallback ?? '').trim();\n };\n const clippedText = (selector: string, text: () => string): string => {\n const el = root.querySelector<HTMLElement>(selector);\n return el && el.scrollWidth > el.clientWidth ? text() : '';\n };\n const next = {\n title: clippedText('.page-title', () => textOf('page-title', this.pageTitle)),\n description: clippedText('.description', () => textOf('description', this.description)),\n panelTitle: clippedText('.panel-title', () => this.panelLabel),\n };\n const prev = this._clipped;\n if (\n next.title !== prev.title ||\n next.description !== prev.description ||\n next.panelTitle !== prev.panelTitle\n ) {\n this._clipped = next;\n }\n }\n\n /** Wraps a control or heading in a nile-lite-tooltip; an empty `content`, or `disableTooltip`, leaves the tooltip off. */\n private _tip(content: string, child: TemplateResult, kind: 'control' | 'text' = 'control'): TemplateResult {\n const placement =\n kind === 'text'\n ? this.textTooltipPlacement ?? 'top'\n : this.controlTooltipPlacement ?? 'bottom';\n return html`<nile-lite-tooltip\n class=\"tip\"\n placement=${placement}\n content=${content}\n ?disabled=${this.disableTooltip || !content}\n >${child}</nile-lite-tooltip\n >`;\n }\n\n /** Open the AI panel. No-op when no panel is mounted for this route. */\n public openPanel(): void {\n if (!this.panelAvailable) return;\n this._setPanelOpen(true);\n }\n\n /** Close the AI panel. */\n public closePanel(): void {\n this._setPanelOpen(false);\n }\n\n /** Toggle the panel, or force a state. */\n public togglePanel(force?: boolean): void {\n const next = force ?? !this.panelOpen;\n if (next) this.openPanel();\n else this.closePanel();\n }\n\n /** Emit `nile-click` with `{ value: 'back' }`, as the header's back control does; the page owns the history. */\n public goBackHeader(): void {\n const detail: NileAppShellClickDetail = { value: 'back' };\n this.emit('nile-click', detail);\n }\n\n /** Emit `nile-panel-back`, as the panel's back control does; the page owns the view stack. */\n public goBackPanel(): void {\n this.emit('nile-panel-back');\n }\n\n /** @deprecated Use `goBackPanel()`; kept as an alias that emits `nile-panel-back`. */\n public goBack(): void {\n this.goBackPanel();\n }\n\n /** Expand the side nav. */\n public expandNav(): void {\n this._setNavCollapsed(false);\n }\n\n /** Collapse the side nav to a rail. */\n public collapseNav(): void {\n this._setNavCollapsed(true);\n }\n\n /** Toggle the side nav, or force a collapsed state. */\n public toggleNav(force?: boolean): void {\n this._setNavCollapsed(force ?? !this.navCollapsed);\n }\n\n /** Move focus to the page body. */\n public focusMain(): void {\n this._main?.focus();\n }\n\n private _setPanelOpen(value: boolean): void {\n if (this.panelOpen === value) return;\n this.panelOpen = value;\n this._persist();\n this.emit('nile-panel-toggle', { open: value, mode: this._panelMode });\n }\n\n private _setNavCollapsed(value: boolean): void {\n if (this.navCollapsed === value) return;\n this.navCollapsed = value;\n this._persist();\n this.emit('nile-nav-toggle', {\n collapsed: value,\n locked: this._navLocked,\n });\n }\n\n /** Records the shell's width and re-derives everything that depends on it. */\n private _measure(width: number): void {\n if (width === this._width) return;\n const first = this._width === 0;\n this._width = width;\n this._recompute();\n\n // A persisted panel state only applies once we know the panel would dock.\n if (first && this._restoredPanelOpen !== null) {\n const open = this._restoredPanelOpen;\n this._restoredPanelOpen = null;\n if (open && this._panelMode === 'docked') this.openPanel();\n }\n }\n\n /** The shell's geometry, read off its own custom properties, falling back to defaults before a computed style exists. */\n private _geometry(): ShellGeometry {\n const style = getComputedStyle(this);\n const px = (name: string, fallback: number): number => {\n const value = parseFloat(style.getPropertyValue(name));\n return Number.isFinite(value) ? value : fallback;\n };\n return {\n // Read the substituted value so they follow the active theme; the literals mirror the CSS fallback (NxtGen 260 / 72).\n nav: px('--nile-app-shell-side-nav-width', 260),\n rail: px('--nile-app-shell-side-nav-rail-width', 72),\n gutter: px('--nile-app-shell-gutter', 4),\n content: px('--nile-app-shell-content-min-width', 640),\n aside: px('--nile-app-shell-aside-width', 320),\n panel: px('--nile-app-shell-panel-width', 480),\n };\n }\n\n /** The shell width a docked panel needs to sit beside the content floor, over a side-nav `track` wide. */\n private _dockRequirement(geo: ShellGeometry, track: number): number {\n const nav = this._hasSideNav ? track : 0;\n const aside = this._hasAside ? geo.aside + geo.gutter : 0;\n /* The content row's chrome is end-edge padding plus one flex gap between container and panel (an aside carries its own gap above), and start-edge padding too when no nav track is there to sit flush against. */\n const gutters = this._hasSideNav ? 2 : 3;\n return nav + geo.content + aside + geo.panel + geo.gutter * gutters;\n }\n\n private _recompute(): void {\n const width = this._width;\n const geo = this._geometry();\n\n /* Overlay is opt-in: the shell only overlays below a width the author names, never from running out of room. */\n const overlay =\n this.overlayBreakpoint > 0 && width > 0 && width < this.overlayBreakpoint;\n const mode: NileAppShellPanelMode = overlay ? 'overlay' : 'docked';\n\n // A docked panel squeezes the container, so a narrow shell trades the expanded nav for content width, measured against the expanded track.\n const railAt = Math.max(\n this.dockedRailBreakpoint,\n this._dockRequirement(geo, geo.nav)\n );\n const squeezed =\n !overlay &&\n this.panelOpen &&\n this.panelAvailable &&\n width > 0 &&\n width < railAt;\n const locked = overlay || squeezed;\n\n if (mode !== this._panelMode) {\n this._panelMode = mode;\n this.emit('nile-panel-mode-change', { mode });\n }\n\n if (locked !== this._navLocked) {\n this._navLocked = locked;\n this.emit('nile-nav-toggle', {\n collapsed: this.navCollapsed,\n locked,\n });\n }\n }\n\n /** Mirrors the effective rail state onto a slotted `nile-side-bar`. */\n private _syncSideNav(): void {\n this.querySelectorAll('[slot=\"side-nav\"]').forEach(el => {\n if (el.tagName === 'NILE-SIDE-BAR')\n el.toggleAttribute('collapsed', this.rail);\n });\n }\n\n /**\n * Sets the effective rail state on a slotted nile-side-bar and on one nested in a nile-app-shell-side-nav.\n * It sets the `collapsed` property rather than the attribute: a sidebar that has just toggled itself has\n * not reflected that to its attribute yet, so toggling the attribute back would be a no-op.\n */\n private _reassertRail(): void {\n const bars = [\n ...this.querySelectorAll('nile-side-bar[slot=\"side-nav\"]'),\n ...[...this.querySelectorAll('nile-app-shell-side-nav')].flatMap(nav =>\n [...nav.querySelectorAll('nile-side-bar')].filter(\n bar => bar.parentElement?.closest('nile-side-bar, nile-app-shell-side-nav') === nav\n )\n ),\n ];\n bars.forEach(bar => ((bar as HTMLElement & { collapsed: boolean }).collapsed = this.rail));\n }\n\n /** A slotted sidebar's own expand button is the same toggle. */\n private _onSideNavToggle = (event: Event): void => {\n const detail = (event as CustomEvent).detail;\n if (detail && typeof detail.collapsed === 'boolean') {\n this._setNavCollapsed(detail.collapsed);\n // The shell decides the rail: a locked rail stays a rail whatever the button asked for.\n this._reassertRail();\n }\n };\n\n private _onKeyDown = (event: KeyboardEvent): void => {\n if (this.noPanelShortcut || !this.panelAvailable) return;\n\n const key = event.key ?? '';\n\n if ((event.metaKey || event.ctrlKey) && key.toLowerCase() === 'j') {\n event.preventDefault();\n this.togglePanel();\n return;\n }\n\n // A docked panel is furniture, not a dismissible overlay.\n if (key === 'Escape' && this.panelOpen && this._panelMode === 'overlay') {\n this.closePanel();\n }\n };\n\n private _storageKey(part: string): string {\n return `nile-app-shell:${this.persistKey}:${part}`;\n }\n\n private _restore(): void {\n if (!this.persistKey) return;\n try {\n const nav = localStorage.getItem(this._storageKey('nav-collapsed'));\n if (nav !== null) this.navCollapsed = nav === 'true';\n const panel = localStorage.getItem(this._storageKey('panel-open'));\n if (panel !== null) this._restoredPanelOpen = panel === 'true';\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _persist(): void {\n if (!this.persistKey) return;\n try {\n localStorage.setItem(\n this._storageKey('nav-collapsed'),\n String(this.navCollapsed)\n );\n if (this._panelMode === 'docked') {\n localStorage.setItem(\n this._storageKey('panel-open'),\n String(this.panelOpen)\n );\n }\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _onSlotChange(slot: string, event: Event): void {\n if (!(event.target as HTMLSlotElement).isConnected) return;\n const assigned = (event.target as HTMLSlotElement).assignedNodes({\n flatten: true,\n });\n const filled = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.textContent ?? '').trim() !== ''\n );\n\n switch (slot) {\n case 'banner':\n this._hasBanner = filled;\n break;\n case 'side-nav':\n this._hasSideNav = filled;\n this._syncSideNav();\n break;\n case 'top-bar':\n this._hasTopBar = filled;\n break;\n case 'top-bar-actions':\n this._hasTopBarActions = filled;\n break;\n case 'tabs':\n this._hasTabs = filled;\n break;\n case 'app-icon':\n this._hasAppIcon = filled;\n break;\n case 'breadcrumb':\n this._hasBreadcrumb = filled;\n break;\n case 'page-title':\n this._hasTitleSlot = filled;\n break;\n case 'description':\n this._hasDescriptionSlot = filled;\n break;\n case 'aside':\n this._hasAside = filled;\n break;\n case 'panel':\n this._hasPanel = filled;\n this._panelOwnsChrome = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as Element).tagName === 'NILE-APP-SHELL-PANEL'\n );\n this._recompute();\n break;\n case 'panel-footer':\n this._hasPanelFooter = filled;\n break;\n default:\n break;\n }\n }\n\n private _renderNavToggle(): TemplateResult | string {\n if (this.noNavToggle || !this._hasSideNav) return '';\n const expanded = !this.rail;\n return html`\n <div class=\"nav-toggle-group\">\n ${this._tip(\n this._navLocked\n ? 'The navigation stays collapsed at this window width'\n : expanded\n ? 'Collapse navigation'\n : 'Expand navigation',\n html`<nile-button\n class=\"nav-toggle utility-control\"\n part=\"nav-toggle\"\n variant=\"ghost\"\n circle\n aria-controls=\"side-nav\"\n aria-expanded=${expanded ? 'true' : 'false'}\n ?disabled=${this._navLocked}\n aria-label=${expanded ? 'Collapse navigation' : 'Expand navigation'}\n @click=${() => this.toggleNav()}\n >\n ${renderGlyph('ng-panel-left', 20, 'currentColor')}\n </nile-button>`\n )}\n ${this._hasTopBar || this._hasTitleBlock\n ? html`<span class=\"rule\" part=\"rule\"></span>`\n : ''}\n </div>\n `;\n }\n\n /** Whether the header has a title block of its own to draw: a title, the back arrow or a slotted app icon mounts it. */\n private get _hasTitleBlock(): boolean {\n return this._hasTitle || this.headerBack || this._hasAppIcon;\n }\n\n /** A title is present when `pageTitle` has content or the `page-title` slot is filled. */\n private get _hasTitle(): boolean {\n return !!this.pageTitle || this._hasTitleSlot;\n }\n\n /** A description is present when `description` has content or the `description` slot is filled. */\n private get _hasDescription(): boolean {\n return !!this.description || this._hasDescriptionSlot;\n }\n\n /** `headingLevel` as a safe `aria-level`: a whole number clamped to 1–6, and 1 for anything non-numeric. */\n private get _headingLevel(): number {\n const level = Math.trunc(Number(this.headingLevel));\n return Number.isFinite(level) ? Math.min(6, Math.max(1, level)) : 1;\n }\n\n private _renderBack(): TemplateResult | string {\n if (!this.headerBack) return '';\n return html`\n <span class=\"back-line\">\n ${this._tip(\n this.headerBackLabel,\n html`<button\n class=\"back\"\n part=\"back\"\n type=\"button\"\n aria-label=${this.headerBackLabel}\n @click=${() => this.goBackHeader()}\n >\n ${renderGlyph('ng-arrow-narrow-left', 20, 'currentColor')}\n </button>`\n )}\n </span>\n `;\n }\n\n private _renderAppIconSlot(): TemplateResult {\n return html`<slot\n name=\"app-icon\"\n @slotchange=${(e: Event) => this._onSlotChange('app-icon', e)}\n ></slot>`;\n }\n\n private _renderBreadcrumbSlot(): TemplateResult {\n return html`<slot\n name=\"breadcrumb\"\n @slotchange=${(e: Event) => this._onSlotChange('breadcrumb', e)}\n ></slot>`;\n }\n\n /* The app-icon slot has to exist whenever the stack does not, or a slotted icon could never mount it: park it, hidden. */\n private _renderAppIconProbe(): TemplateResult {\n return html`<span class=\"app-icon-probe\" hidden\n >${this._renderAppIconSlot()}</span\n >`;\n }\n\n /* A slot that is not live in the stack still has to exist, or slotted content could never mount it: park it, hidden. */\n private _renderTitleProbe(): TemplateResult | string {\n const descriptionLive = this._hasTitle && this._hasDescription;\n if (descriptionLive) return '';\n return html`<span class=\"title-probe\" hidden\n >${this._hasTitle ? '' : this._renderTitleSlot()}${descriptionLive\n ? ''\n : this._renderDescriptionSlot()}</span\n >`;\n }\n\n private _renderTitleSlot(): TemplateResult {\n return html`<slot\n name=\"page-title\"\n @slotchange=${(e: Event) => this._onSlotChange('page-title', e)}\n >${this.pageTitle}</slot\n >`;\n }\n\n private _renderDescriptionSlot(): TemplateResult {\n return html`<slot\n name=\"description\"\n @slotchange=${(e: Event) => this._onSlotChange('description', e)}\n >${this.description}</slot\n >`;\n }\n\n private _renderTitleBlock(): TemplateResult {\n if (!this._hasTitleBlock) {\n return html`${this._renderAppIconProbe()}${this._renderTitleProbe()}`;\n }\n\n /* The stack is the title and/or the app icon; a back arrow on its own brings no empty stack. */\n if (!this._hasTitle && !this._hasAppIcon) {\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()} ${this._renderAppIconProbe()}\n ${this._renderTitleProbe()}\n </div>\n `;\n }\n\n /* The back arrow sits beside the stack; the app icon starts the stack's first row, so the description lines up under the icon when there is one and under the title when not. */\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()}\n <div class=\"title-stack\">\n <div class=\"title-row\">\n <span class=\"app-icon\" part=\"app-icon\"\n >${this._renderAppIconSlot()}</span\n >\n ${this._hasTitle\n ? this._tip(\n this._clipped.title,\n html`<div\n class=\"page-title\"\n part=\"page-title\"\n role=\"heading\"\n aria-level=${this._headingLevel}\n >${this._renderTitleSlot()}</div>`,\n 'text'\n )\n : ''}\n ${this._hasTitle && this.badge\n ? html`<span class=\"badge\" part=\"badge\">${this.badge}</span>`\n : ''}\n </div>\n ${this._hasTitle && this._hasDescription\n ? this._tip(\n this._clipped.description,\n html`<p\n class=${this._hasDescriptionSlot\n ? 'description is-slotted'\n : 'description'}\n part=\"description\"\n >\n ${this._renderDescriptionSlot()}\n </p>`,\n 'text'\n )\n : ''}\n ${this._renderTitleProbe()}\n </div>\n </div>\n `;\n }\n\n private _renderTopBar(\n placement: NileAppShellTopBarPlacement\n ): TemplateResult {\n return html`\n <div\n class=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n part=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n >\n <div\n class=\"breadcrumb\"\n part=\"breadcrumb\"\n ?hidden=${!this._hasTitle || !this._hasBreadcrumb}\n >\n ${this._renderBreadcrumbSlot()}\n </div>\n <div class=\"top-bar-row\">\n ${this._renderNavToggle()}\n <div class=\"top-bar-content\">\n ${this._renderTitleBlock()}\n <slot\n name=\"top-bar\"\n @slotchange=${(e: Event) => this._onSlotChange('top-bar', e)}\n ></slot>\n </div>\n <div class=\"top-bar-actions\" part=\"top-bar-actions\">\n <slot\n name=\"top-bar-actions\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('top-bar-actions', e)}\n ></slot>\n ${this.askVisible && this._hasTopBarActions\n ? html`<span class=\"rule ask-rule\" part=\"ask-rule\"></span>`\n : ''}\n ${this.askVisible\n ? html`\n <nile-button\n class=\"ask\"\n part=\"ask\"\n exportparts=\"base: ask__base, label: ask__label\"\n variant=\"secondary\"\n @click=${() => this.openPanel()}\n >\n <span slot=\"prefix\" class=\"ask-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n ${this.askLabel}\n </nile-button>\n `\n : ''}\n </div>\n </div>\n </div>\n `;\n }\n\n public render(): TemplateResult {\n const shellBar = this.topBarPlacement === 'shell';\n\n return html`\n <button\n class=\"skip-link\"\n part=\"skip-link\"\n type=\"button\"\n @click=${() => this.focusMain()}\n >\n ${this.skipLinkLabel}\n </button>\n\n <div class=\"banner\" part=\"banner\">\n <slot\n name=\"banner\"\n @slotchange=${(e: Event) => this._onSlotChange('banner', e)}\n ></slot>\n </div>\n\n ${shellBar ? this._renderTopBar('shell') : ''}\n\n <div\n id=\"side-nav\"\n class=\"side-nav\"\n part=\"side-nav\"\n @nile-toggle=${this._onSideNavToggle}\n >\n <slot\n name=\"side-nav\"\n @slotchange=${(e: Event) => this._onSlotChange('side-nav', e)}\n ></slot>\n </div>\n\n <div class=\"content-section\" part=\"content-section\">\n <div class=\"container\" part=\"container\">\n ${shellBar ? '' : this._renderTopBar('content')}\n <div class=\"tabs\" part=\"tabs\">\n <slot\n name=\"tabs\"\n @slotchange=${(e: Event) => this._onSlotChange('tabs', e)}\n ></slot>\n </div>\n <main class=\"main\" part=\"main\" tabindex=\"-1\">\n <div class=\"main-inner\"><slot></slot></div>\n </main>\n </div>\n\n <div class=\"aside\" part=\"aside\">\n <slot\n name=\"aside\"\n @slotchange=${(e: Event) => this._onSlotChange('aside', e)}\n ></slot>\n </div>\n\n <aside\n class=\"panel\"\n part=\"panel\"\n aria-label=${ifDefined(\n this._panelOwnsChrome ? undefined : this.panelLabel\n )}\n aria-hidden=${this.panelOpen ? 'false' : 'true'}\n >\n ${this._panelOwnsChrome\n ? html`<slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>`\n : html`\n <header class=\"panel-header\" part=\"panel-header\">\n ${this.panelBack\n ? this._tip(\n this.panelBackLabel,\n html`<nile-button\n class=\"panel-back utility-control\"\n part=\"panel-back\"\n variant=\"ghost\"\n circle\n aria-label=${this.panelBackLabel}\n @click=${() => this.goBackPanel()}\n >\n ${renderGlyph('ng-arrow-left', 20, 'currentColor')}\n </nile-button>`\n )\n : ''}\n <slot name=\"panel-header\">\n <span class=\"panel-heading\">\n <span class=\"panel-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n ${this._tip(\n this._clipped.panelTitle,\n html`<h2 class=\"panel-title\" part=\"panel-title\">\n ${this.panelLabel}\n </h2>`,\n 'text'\n )}\n </span>\n </slot>\n <div class=\"panel-actions\" part=\"panel-actions\">\n <slot name=\"panel-actions\"></slot>\n ${this._tip(\n `Close ${this.panelLabel}`,\n html`<nile-button\n class=\"panel-close utility-control\"\n part=\"panel-close\"\n variant=\"ghost\"\n circle\n aria-label=\"Close ${this.panelLabel}\"\n @click=${() => this.closePanel()}\n >\n ${renderGlyph('ng-x-close', 20, 'currentColor')}\n </nile-button>`\n )}\n </div>\n </header>\n <div class=\"panel-body\" part=\"panel-body\">\n <slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>\n </div>\n <div class=\"panel-footer\" part=\"panel-footer\">\n <slot\n name=\"panel-footer\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('panel-footer', e)}\n ></slot>\n </div>\n `}\n </aside>\n </div>\n `;\n }\n}\n\nexport default NileAppShell;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-app-shell': NileAppShell;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"nile-app-shell.js","sourceRoot":"","sources":["../../../src/nile-app-shell/nile-app-shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkD,MAAM,KAAK,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AA2BpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,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AC3B;IAAhB,KAAK,EAAE;qDAA0C;AAGjC;IAAhB,KAAK,EAAE;sDAA2C;AAClC;IAAhB,KAAK,EAAE;+CAAoC;AAG3B;IAAhB,KAAK,EAAE;8CAAmE;AAEnD;IAAvB,KAAK,CAAC,OAAO,CAAC;2CAA6B;AA1JjC,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CA88BxB;;AAED,eAAe,YAAY,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { styles } from './nile-app-shell.css';\nimport { renderGlyph } from '../internal/glyph';\nimport NileElement from '../internal/nile-element';\nimport '../nile-button/nile-button';\nimport '../nile-lite-tooltip/index';\nimport type { NileliteTooltip } from '../nile-lite-tooltip/nile-lite-tooltip';\n\n/** The mode the AI panel is currently in. */\nexport type NileAppShellPanelMode = 'docked' | 'overlay';\n\n/** Where the top bar is mounted. */\nexport type NileAppShellTopBarPlacement = 'content' | 'shell';\n\n/** How the main region lays its content out. */\nexport type NileAppShellContentAlign = 'fluid' | 'centered';\n\n/** The `detail` of the `nile-click` the header back control emits. */\nexport interface NileAppShellClickDetail {\n value: 'back';\n}\n\n/** The shell's own track and region widths, in px. */\ninterface ShellGeometry {\n nav: number;\n rail: number;\n gutter: number;\n content: number;\n aside: number;\n panel: number;\n}\n\n/**\n * @summary The application frame every route inherits: a side nav, a content container, an optional aside and an AI assistant panel.\n *\n * @status stable\n * @since 2.0\n *\n * @tag nile-app-shell\n *\n * @dependency nile-button\n * @dependency nile-glyph\n * @dependency nile-lite-tooltip\n *\n * @slot - The page body, inside the content container.\n * @slot banner - A full-width strip above every other region.\n * @slot top-bar - The page-title bar, mounted inside the container by default or spanning the shell when `top-bar-placement=\"shell\"`.\n * @slot top-bar-actions - Controls pinned to the end of the top bar.\n * @slot tabs - A hoisted second-level tab strip, flush under the top bar and outside `<main>`'s scroller.\n * @slot page-title - The page title's content, replacing `pageTitle`. It sits inside the shell's own heading wrapper, so the heading role and `headingLevel` still apply.\n * @slot description - The line under the page title, replacing `description`. Takes any content, and the header grows to fit it.\n * @slot breadcrumb - A breadcrumb trail (e.g. `<nile-breadcrumb>`) above the page title. Shown only with a `pageTitle`; the title block is pushed down by however tall the trail is.\n * @slot app-icon - The mark shown before the page title whenever this slot has content, clipped to the shell's box.\n * @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.\n * @slot aside - A secondary column between the content container and the panel.\n * @slot panel - The AI panel's body. When empty the panel is unmounted and `openPanel()` is a no-op.\n * @slot panel-header - Replaces the default panel heading (mark plus title).\n * @slot panel-actions - Controls added before the panel's close button.\n * @slot panel-footer - A bar docked below the panel's scroll region, for a composer.\n *\n * @event nile-nav-toggle - Emitted after the nav's collapsed state or forced-rail lock changes. `detail: { collapsed, locked }`.\n * @event nile-panel-toggle - Emitted after the panel opens or closes. `detail: { open, mode }`.\n * @event nile-panel-mode-change - Emitted when the panel flips between docked and overlay. `detail: { mode }`.\n * @event nile-click - Emitted when the header's back control is pressed, or `goBackHeader()` is called. `detail: { value: 'back' }`. Emitted on the shell itself, so check `event.target === shell` as well as the value: a `nile-click` from page content bubbles through the shell too.\n * @event nile-panel-back - Emitted when the panel's back control is pressed, whether the shell's built-in panel chrome or a slotted `nile-app-shell-panel` draws it.\n *\n * @csspart skip-link - The skip-to-content link.\n * @csspart banner - The banner region.\n * @csspart shell-top-bar - The top bar when it spans the shell.\n * @csspart top-bar - The top bar, in either placement.\n * @csspart nav-toggle - The built-in nav toggle button.\n * @csspart rule - The vertical rule after the nav toggle.\n * @csspart ask-rule - The vertical rule before the Ask button, drawn when `top-bar-actions` has content.\n * @csspart top-bar-actions - The end-aligned top bar action group.\n * @csspart ask - The built-in Ask button, the shell's single door to the panel.\n * @csspart title-area - The header's own title block: back control, app icon, title, badge and description.\n * @csspart breadcrumb - The row above the page title that holds the `breadcrumb` slot.\n * @csspart page-title - The title text, exposed as a heading whose level `headingLevel` sets.\n * @csspart description - The second line under the title.\n * @csspart badge - The pill after the title.\n * @csspart back - The header back control, shown by `headerBack`.\n * @csspart app-icon - The block holding the `app-icon` slot, shown when the slot has content and sized by `--nile-app-shell-app-icon-size`.\n * @csspart tabs - The hoisted tab-strip region, under the top bar.\n * @csspart side-nav - The navigation track.\n * @csspart content-section - The flex row holding container, aside and panel.\n * @csspart container - The content container.\n * @csspart main - The scrolling page body.\n * @csspart aside - The aside region.\n * @csspart panel - The AI panel.\n * @csspart panel-header - The panel's header bar.\n * @csspart panel-back - The panel's back control, shown by `panelBack`.\n * @csspart panel-title - The panel's title text.\n * @csspart panel-actions - The panel's header action group.\n * @csspart panel-close - The panel's close button.\n * @csspart panel-body - The panel's scroll region.\n * @csspart panel-footer - The panel's footer.\n *\n * @cssproperty [--nile-app-shell-side-nav-width=260px] - Expanded nav track (240px on the enterprise sheet), in step with nile-side-bar.\n * @cssproperty [--nile-app-shell-side-nav-rail-width=72px] - Collapsed track (70px on the enterprise sheet), in step with nile-side-bar.\n * @cssproperty [--nile-app-shell-gutter=4px] - Content-section padding, and the gap between container, aside and panel.\n * @cssproperty [--nile-app-shell-content-padding=24px] - Container inner padding.\n * @cssproperty [--nile-app-shell-panel-header-height=56px] - The panel header's own height.\n * @cssproperty [--nile-app-shell-tabs-height=33px] - Tab strip height.\n * @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and the `min()` ceiling for the overlay drawer.\n * @cssproperty [--nile-app-shell-panel-min-width=360px] - How far a docked panel shrinks to keep pushing rather than covering the page.\n * @cssproperty [--nile-app-shell-aside-width=320px] - Aside width.\n * @cssproperty [--nile-app-shell-aside-min-width=240px] - How far the aside shrinks before the page is asked for room.\n * @cssproperty [--nile-app-shell-content-min-width=640px] - Container floor.\n * @cssproperty [--nile-app-shell-min-width=768px] - Below this the window scrolls rather than the shell compressing.\n * @cssproperty [--nile-app-shell-centered-width=824px] - Column width under `content-align=\"centered\"`.\n * @cssproperty [--nile-app-shell-app-icon-size=20px] - The app icon's box.\n * @cssproperty [--nile-app-shell-utility-size=32px] - Box the shell's own icon controls sit in.\n * @cssproperty [--nile-app-shell-radius=16px] - Container, aside and panel radius.\n * @cssproperty [--nile-app-shell-duration=250ms] - Track and panel motion.\n * @cssproperty [--nile-app-shell-ease] - Easing for moves and resizes.\n *\n * @method openPanel() - Open the AI panel. No-op when the panel is unavailable.\n * @method closePanel() - Close the AI panel.\n * @method togglePanel(force?) - Toggle, or force a specific open state.\n * @method expandNav() - Expand the side nav.\n * @method collapseNav() - Collapse the side nav to a rail.\n * @method toggleNav(force?) - Toggle, or force a specific collapsed state.\n * @method goBackHeader() - Emit `nile-click` with `{ value: 'back' }`, as the header's back control does.\n * @method goBackPanel() - Emit `nile-panel-back`, as the panel's back control does.\n * @method goBack() - Deprecated alias of `goBackPanel()`.\n */\n@customElement('nile-app-shell')\nexport class NileAppShell extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /** The user's nav preference. The nav can still render as a rail while this is false — see `navLocked`. */\n @property({ type: Boolean, reflect: true, attribute: 'nav-collapsed' })\n navCollapsed: boolean = false;\n\n /** Whether the AI panel is open. */\n @property({ type: Boolean, reflect: true, attribute: 'panel-open' })\n panelOpen: boolean = false;\n\n /** Unmounts the AI panel for this route even when the `panel` slot is filled; `openPanel()` becomes a no-op. */\n @property({ type: Boolean, reflect: true, attribute: 'no-panel' })\n noPanel: boolean = false;\n\n /** The default panel heading. Ignored when `panel-header` is slotted. */\n @property({ type: String, attribute: 'panel-label' })\n panelLabel: string = 'Ask Aquera';\n\n /** The page title, rendered as the top bar's own heading (`role=\"heading\"`, level from `headingLevel`) before anything slotted into `top-bar`; the fallback for the `page-title` slot. Leave unset, with the slot empty, and no title block renders. */\n @property({ type: String, attribute: true, reflect: true })\n pageTitle?: string;\n\n /** The `aria-level` of the `pageTitle` heading, 1–6, so the title can fit the page's own heading outline; e.g. 2 when the page body or banner already has its h1. Out-of-range values clamp to 1–6 and non-numbers fall back to 1. */\n @property({ type: Number, attribute: true, reflect: true })\n headingLevel: number = 1;\n\n /** A second line under the page title; the fallback for the `description` slot, and a modifier on the title that renders nothing without one. */\n @property({ type: String, attribute: true, reflect: true })\n description?: string;\n\n /** A pill after the page title; a modifier on `pageTitle` like `description`, so with no title there is no badge. */\n @property({ type: String, attribute: true, reflect: true })\n badge?: string;\n\n /** Shows the back arrow before the page title; pressing it emits `nile-click` with `{ value: 'back' }`. Independent of the `app-icon` slot. */\n @property({ type: Boolean, attribute: true, reflect: true })\n headerBack: boolean = false;\n\n /** Accessible name of the header back control. Never rendered as visible text. */\n @property({ type: String, attribute: true, reflect: true })\n headerBackLabel: string = 'Back';\n\n /** Turns off the shell's own tooltips: the labels on its icon buttons, and the full text of a title, description or panel title that its ellipsis has cut off. */\n @property({ type: Boolean, reflect: true, attribute: true })\n disableTooltip: boolean = false;\n\n /** Placement of the tooltips on the shell's icon buttons: the nav toggle, the back button and the panel's back and close buttons. Unset keeps `bottom`. Any `nile-lite-tooltip` placement. */\n @property({ type: String, attribute: true })\n controlTooltipPlacement?: NileliteTooltip['placement'];\n\n /** Placement of the full-text tooltips on a title, description or panel title that its ellipsis has cut off. Unset keeps `top`. Any `nile-lite-tooltip` placement. */\n @property({ type: String, attribute: true })\n textTooltipPlacement?: NileliteTooltip['placement'];\n\n /** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */\n @property({ type: Boolean, reflect: true, attribute: 'no-nav-toggle' })\n noNavToggle: boolean = false;\n\n /** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */\n @property({ type: Boolean, attribute: 'no-panel-shortcut' })\n noPanelShortcut: boolean = false;\n\n /** Hides the skip-to-content link. */\n @property({ type: Boolean, reflect: true, attribute: 'no-skip-link' })\n noSkipLink: boolean = false;\n\n /** Label for the skip-to-content link. */\n @property({ type: String, attribute: 'skip-link-label' })\n skipLinkLabel: string = 'Skip to main content';\n\n /** Where the top bar is mounted: inside the container, or spanning the shell. */\n @property({ type: String, reflect: true, attribute: 'top-bar-placement' })\n topBarPlacement: NileAppShellTopBarPlacement = 'content';\n\n /** `centered` caps the page body at `--nile-app-shell-centered-width`. */\n @property({ type: String, reflect: true, attribute: 'content-align' })\n contentAlign: NileAppShellContentAlign = 'fluid';\n\n /** Makes the slotted page root a size query container, so page CSS can size against the content container instead of the viewport. */\n @property({ type: Boolean, reflect: true, attribute: 'content-container' })\n contentContainer: boolean = false;\n\n /** Drops the container's card chrome for a full-bleed page. */\n @property({ type: Boolean, reflect: true })\n flat: boolean = false;\n\n /** Removes the container's inner padding. */\n @property({ type: Boolean, reflect: true, attribute: 'no-padding' })\n noPadding: boolean = false;\n\n /** The label on the built-in Ask button. */\n @property({ type: String, attribute: 'ask-label' })\n askLabel: string = 'Ask';\n\n /** Drops the built-in Ask button, for a bar that renders its own. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ask' })\n noAsk: boolean = false;\n\n /** Shows a back control at the start of the panel header for a panel sub-view; emits `nile-panel-back`. */\n @property({ type: Boolean, reflect: true })\n panelBack: boolean = false;\n\n /** Accessible name of the panel's back control. */\n @property({ type: String })\n panelBackLabel: string = 'Back';\n\n /** Hides the tab strip for this route even when the `tabs` slot is filled. */\n @property({ type: Boolean, reflect: true })\n noTabs: boolean = false;\n\n /** Sizes the shell to the viewport instead of its parent. */\n @property({ type: Boolean, reflect: true, attribute: 'full-height' })\n fullHeight: boolean = false;\n\n /** Below this shell width the panel overlays the content instead of pushing it, and the nav is forced to a rail; zero (default) means never. */\n @property({ type: Number, attribute: 'overlay-breakpoint' })\n overlayBreakpoint: number = 0;\n\n /** Below this shell width an open docked panel forces the nav to a rail. */\n @property({ type: Number, attribute: 'docked-rail-breakpoint' })\n dockedRailBreakpoint: number = 1440;\n\n /** Persists the nav preference and docked panel state under this key. Overlay panel state is never persisted. */\n @property({ type: String, attribute: 'persist-key' })\n persistKey?: string;\n\n /** The panel's current mode. Derived from the shell's width. */\n @state() private _panelMode: NileAppShellPanelMode = 'docked';\n\n /** Whether the nav is held at a rail by the shell's width. */\n @state() private _navLocked: boolean = false;\n\n @state() private _hasBanner: boolean = false;\n @state() private _hasSideNav: boolean = false;\n @state() private _hasTopBar: boolean = false;\n @state() private _hasTopBarActions: boolean = false;\n @state() private _hasTabs: boolean = false;\n @state() private _hasAppIcon: boolean = false;\n @state() private _hasBreadcrumb: boolean = false;\n @state() private _hasTitleSlot: boolean = false;\n @state() private _hasDescriptionSlot: boolean = false;\n @state() private _hasPanel: boolean = false;\n @state() private _hasPanelFooter: boolean = false;\n\n /** True when a `nile-app-shell-panel` is slotted, owning the panel's own chrome so the shell renders a bare region. */\n @state() private _panelOwnsChrome: boolean = false;\n @state() private _hasAside: boolean = false;\n\n /** The full text of each heading the ellipsis is currently cutting off; empty while it fits. */\n @state() private _clipped = { title: '', description: '', panelTitle: '' };\n\n @query('.main') private _main?: HTMLElement;\n\n private _width: number = 0;\n private _resizeObserver?: ResizeObserver;\n private _restoredPanelOpen: boolean | null = null;\n\n /** The panel's current mode: `docked` or `overlay`. */\n public get panelMode(): NileAppShellPanelMode {\n return this._panelMode;\n }\n\n /** Whether the shell is holding the nav at a rail. The toggle is disabled. */\n public get navLocked(): boolean {\n return this._navLocked;\n }\n\n /** Whether a panel is mounted for this route. */\n public get panelAvailable(): boolean {\n return this._hasPanel && !this.noPanel;\n }\n\n /** Whether the tab strip is rendered: something slotted, and not switched off. */\n public get tabsVisible(): boolean {\n return this._hasTabs && !this.noTabs;\n }\n\n /** Whether the built-in Ask button is rendered. */\n public get askVisible(): boolean {\n return this.panelAvailable && !this.noAsk;\n }\n\n /** Whether the nav renders as a rail right now, preference or lock. */\n public get rail(): boolean {\n return this.navCollapsed || this._navLocked;\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this._restore();\n this._resizeObserver = new ResizeObserver(entries => {\n this._syncClipping();\n const entry = entries[entries.length - 1];\n this._measure(entry.contentRect.width);\n });\n this._resizeObserver.observe(this);\n document.addEventListener('keydown', this._onKeyDown);\n }\n\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n document.removeEventListener('keydown', this._onKeyDown);\n }\n\n protected willUpdate(changed: PropertyValues<this>): void {\n if (\n changed.has('panelOpen') ||\n changed.has('noPanel') ||\n changed.has('overlayBreakpoint') ||\n changed.has('dockedRailBreakpoint') ||\n // Aside/side-nav mounting changes what a docked panel fits beside; ask the map since private state is outside `keyof this`.\n (changed as Map<string, unknown>).has('_hasAside') ||\n (changed as Map<string, unknown>).has('_hasSideNav')\n ) {\n this._recompute();\n }\n }\n\n protected updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n\n // Derived state the stylesheet and consumers read off the host.\n this.toggleAttribute('rail', this.rail);\n this.toggleAttribute('nav-locked', this._navLocked);\n this.toggleAttribute('has-banner', this._hasBanner);\n this.toggleAttribute('has-side-nav', this._hasSideNav);\n this.toggleAttribute(\n 'has-top-bar',\n this._hasTopBar ||\n this._hasTitleBlock ||\n (!this.noNavToggle && this._hasSideNav)\n );\n // Only with a title to sit under: see _hasTitleBlock.\n this.toggleAttribute(\n 'has-description',\n this._hasDescription && this._hasTitle\n );\n this.toggleAttribute(\n 'has-breadcrumb',\n this._hasBreadcrumb && this._hasTitle\n );\n this.toggleAttribute('has-top-bar-actions', this._hasTopBarActions);\n this.toggleAttribute('has-app-icon', this._hasAppIcon);\n this.toggleAttribute('has-ask', this.askVisible);\n this.toggleAttribute('has-tabs', this.tabsVisible);\n this.toggleAttribute('has-aside', this._hasAside);\n this.toggleAttribute('has-panel', this.panelAvailable);\n this.toggleAttribute('has-panel-footer', this._hasPanelFooter);\n this.setAttribute('panel-mode', this._panelMode);\n this.setAttribute(\n 'panel-chrome',\n this._panelOwnsChrome ? 'external' : 'internal'\n );\n\n this._syncSideNav();\n this._syncClipping();\n }\n\n /** Records the text of each title the ellipsis has cut off, so only those get a tooltip. */\n private _syncClipping(): void {\n const root = this.shadowRoot;\n if (!root) return;\n const textOf = (slotName: string, fallback: string | undefined): string => {\n const slot = root.querySelector<HTMLSlotElement>(`slot[name=\"${slotName}\"]`);\n const assigned = slot?.assignedNodes({ flatten: true }) ?? [];\n const text = assigned.map(node => node.textContent ?? '').join('').trim();\n return text || (fallback ?? '').trim();\n };\n const clippedText = (selector: string, text: () => string): string => {\n const el = root.querySelector<HTMLElement>(selector);\n return el && el.scrollWidth > el.clientWidth ? text() : '';\n };\n const next = {\n title: clippedText('.page-title', () => textOf('page-title', this.pageTitle)),\n description: clippedText('.description', () => textOf('description', this.description)),\n panelTitle: clippedText('.panel-title', () => this.panelLabel),\n };\n const prev = this._clipped;\n if (\n next.title !== prev.title ||\n next.description !== prev.description ||\n next.panelTitle !== prev.panelTitle\n ) {\n this._clipped = next;\n }\n }\n\n /** Wraps a control or heading in a nile-lite-tooltip; an empty `content`, or `disableTooltip`, leaves the tooltip off. */\n private _tip(content: string, child: TemplateResult, kind: 'control' | 'text' = 'control'): TemplateResult {\n const placement =\n kind === 'text'\n ? this.textTooltipPlacement ?? 'top'\n : this.controlTooltipPlacement ?? 'bottom';\n return html`<nile-lite-tooltip\n class=\"tip\"\n placement=${placement}\n .maxWidth=${'var(--ng-spacing-64)'}\n .maxHeight=${'var(--ng-spacing-64)'}\n content=${content}\n ?disabled=${this.disableTooltip || !content}\n >${child}</nile-lite-tooltip\n >`;\n }\n\n /** Open the AI panel. No-op when no panel is mounted for this route. */\n public openPanel(): void {\n if (!this.panelAvailable) return;\n this._setPanelOpen(true);\n }\n\n /** Close the AI panel. */\n public closePanel(): void {\n this._setPanelOpen(false);\n }\n\n /** Toggle the panel, or force a state. */\n public togglePanel(force?: boolean): void {\n const next = force ?? !this.panelOpen;\n if (next) this.openPanel();\n else this.closePanel();\n }\n\n /** Emit `nile-click` with `{ value: 'back' }`, as the header's back control does; the page owns the history. */\n public goBackHeader(): void {\n const detail: NileAppShellClickDetail = { value: 'back' };\n this.emit('nile-click', detail);\n }\n\n /** Emit `nile-panel-back`, as the panel's back control does; the page owns the view stack. */\n public goBackPanel(): void {\n this.emit('nile-panel-back');\n }\n\n /** @deprecated Use `goBackPanel()`; kept as an alias that emits `nile-panel-back`. */\n public goBack(): void {\n this.goBackPanel();\n }\n\n /** Expand the side nav. */\n public expandNav(): void {\n this._setNavCollapsed(false);\n }\n\n /** Collapse the side nav to a rail. */\n public collapseNav(): void {\n this._setNavCollapsed(true);\n }\n\n /** Toggle the side nav, or force a collapsed state. */\n public toggleNav(force?: boolean): void {\n this._setNavCollapsed(force ?? !this.navCollapsed);\n }\n\n /** Move focus to the page body. */\n public focusMain(): void {\n this._main?.focus();\n }\n\n private _setPanelOpen(value: boolean): void {\n if (this.panelOpen === value) return;\n this.panelOpen = value;\n this._persist();\n this.emit('nile-panel-toggle', { open: value, mode: this._panelMode });\n }\n\n private _setNavCollapsed(value: boolean): void {\n if (this.navCollapsed === value) return;\n this.navCollapsed = value;\n this._persist();\n this.emit('nile-nav-toggle', {\n collapsed: value,\n locked: this._navLocked,\n });\n }\n\n /** Records the shell's width and re-derives everything that depends on it. */\n private _measure(width: number): void {\n if (width === this._width) return;\n const first = this._width === 0;\n this._width = width;\n this._recompute();\n\n // A persisted panel state only applies once we know the panel would dock.\n if (first && this._restoredPanelOpen !== null) {\n const open = this._restoredPanelOpen;\n this._restoredPanelOpen = null;\n if (open && this._panelMode === 'docked') this.openPanel();\n }\n }\n\n /** The shell's geometry, read off its own custom properties, falling back to defaults before a computed style exists. */\n private _geometry(): ShellGeometry {\n const style = getComputedStyle(this);\n const px = (name: string, fallback: number): number => {\n const value = parseFloat(style.getPropertyValue(name));\n return Number.isFinite(value) ? value : fallback;\n };\n return {\n // Read the substituted value so they follow the active theme; the literals mirror the CSS fallback (NxtGen 260 / 72).\n nav: px('--nile-app-shell-side-nav-width', 260),\n rail: px('--nile-app-shell-side-nav-rail-width', 72),\n gutter: px('--nile-app-shell-gutter', 4),\n content: px('--nile-app-shell-content-min-width', 640),\n aside: px('--nile-app-shell-aside-width', 320),\n panel: px('--nile-app-shell-panel-width', 480),\n };\n }\n\n /** The shell width a docked panel needs to sit beside the content floor, over a side-nav `track` wide. */\n private _dockRequirement(geo: ShellGeometry, track: number): number {\n const nav = this._hasSideNav ? track : 0;\n const aside = this._hasAside ? geo.aside + geo.gutter : 0;\n /* The content row's chrome is end-edge padding plus one flex gap between container and panel (an aside carries its own gap above), and start-edge padding too when no nav track is there to sit flush against. */\n const gutters = this._hasSideNav ? 2 : 3;\n return nav + geo.content + aside + geo.panel + geo.gutter * gutters;\n }\n\n private _recompute(): void {\n const width = this._width;\n const geo = this._geometry();\n\n /* Overlay is opt-in: the shell only overlays below a width the author names, never from running out of room. */\n const overlay =\n this.overlayBreakpoint > 0 && width > 0 && width < this.overlayBreakpoint;\n const mode: NileAppShellPanelMode = overlay ? 'overlay' : 'docked';\n\n // A docked panel squeezes the container, so a narrow shell trades the expanded nav for content width, measured against the expanded track.\n const railAt = Math.max(\n this.dockedRailBreakpoint,\n this._dockRequirement(geo, geo.nav)\n );\n const squeezed =\n !overlay &&\n this.panelOpen &&\n this.panelAvailable &&\n width > 0 &&\n width < railAt;\n const locked = overlay || squeezed;\n\n if (mode !== this._panelMode) {\n this._panelMode = mode;\n this.emit('nile-panel-mode-change', { mode });\n }\n\n if (locked !== this._navLocked) {\n this._navLocked = locked;\n this.emit('nile-nav-toggle', {\n collapsed: this.navCollapsed,\n locked,\n });\n }\n }\n\n /** Mirrors the effective rail state onto a slotted `nile-side-bar`. */\n private _syncSideNav(): void {\n this.querySelectorAll('[slot=\"side-nav\"]').forEach(el => {\n if (el.tagName === 'NILE-SIDE-BAR')\n el.toggleAttribute('collapsed', this.rail);\n });\n }\n\n /**\n * Sets the effective rail state on a slotted nile-side-bar and on one nested in a nile-app-shell-side-nav.\n * It sets the `collapsed` property rather than the attribute: a sidebar that has just toggled itself has\n * not reflected that to its attribute yet, so toggling the attribute back would be a no-op.\n */\n private _reassertRail(): void {\n const bars = [\n ...this.querySelectorAll('nile-side-bar[slot=\"side-nav\"]'),\n ...[...this.querySelectorAll('nile-app-shell-side-nav')].flatMap(nav =>\n [...nav.querySelectorAll('nile-side-bar')].filter(\n bar => bar.parentElement?.closest('nile-side-bar, nile-app-shell-side-nav') === nav\n )\n ),\n ];\n bars.forEach(bar => ((bar as HTMLElement & { collapsed: boolean }).collapsed = this.rail));\n }\n\n /** A slotted sidebar's own expand button is the same toggle. */\n private _onSideNavToggle = (event: Event): void => {\n const detail = (event as CustomEvent).detail;\n if (detail && typeof detail.collapsed === 'boolean') {\n this._setNavCollapsed(detail.collapsed);\n // The shell decides the rail: a locked rail stays a rail whatever the button asked for.\n this._reassertRail();\n }\n };\n\n private _onKeyDown = (event: KeyboardEvent): void => {\n if (this.noPanelShortcut || !this.panelAvailable) return;\n\n const key = event.key ?? '';\n\n if ((event.metaKey || event.ctrlKey) && key.toLowerCase() === 'j') {\n event.preventDefault();\n this.togglePanel();\n return;\n }\n\n // A docked panel is furniture, not a dismissible overlay.\n if (key === 'Escape' && this.panelOpen && this._panelMode === 'overlay') {\n this.closePanel();\n }\n };\n\n private _storageKey(part: string): string {\n return `nile-app-shell:${this.persistKey}:${part}`;\n }\n\n private _restore(): void {\n if (!this.persistKey) return;\n try {\n const nav = localStorage.getItem(this._storageKey('nav-collapsed'));\n if (nav !== null) this.navCollapsed = nav === 'true';\n const panel = localStorage.getItem(this._storageKey('panel-open'));\n if (panel !== null) this._restoredPanelOpen = panel === 'true';\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _persist(): void {\n if (!this.persistKey) return;\n try {\n localStorage.setItem(\n this._storageKey('nav-collapsed'),\n String(this.navCollapsed)\n );\n if (this._panelMode === 'docked') {\n localStorage.setItem(\n this._storageKey('panel-open'),\n String(this.panelOpen)\n );\n }\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _onSlotChange(slot: string, event: Event): void {\n if (!(event.target as HTMLSlotElement).isConnected) return;\n const assigned = (event.target as HTMLSlotElement).assignedNodes({\n flatten: true,\n });\n const filled = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.textContent ?? '').trim() !== ''\n );\n\n switch (slot) {\n case 'banner':\n this._hasBanner = filled;\n break;\n case 'side-nav':\n this._hasSideNav = filled;\n this._syncSideNav();\n break;\n case 'top-bar':\n this._hasTopBar = filled;\n break;\n case 'top-bar-actions':\n this._hasTopBarActions = filled;\n break;\n case 'tabs':\n this._hasTabs = filled;\n break;\n case 'app-icon':\n this._hasAppIcon = filled;\n break;\n case 'breadcrumb':\n this._hasBreadcrumb = filled;\n break;\n case 'page-title':\n this._hasTitleSlot = filled;\n break;\n case 'description':\n this._hasDescriptionSlot = filled;\n break;\n case 'aside':\n this._hasAside = filled;\n break;\n case 'panel':\n this._hasPanel = filled;\n this._panelOwnsChrome = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as Element).tagName === 'NILE-APP-SHELL-PANEL'\n );\n this._recompute();\n break;\n case 'panel-footer':\n this._hasPanelFooter = filled;\n break;\n default:\n break;\n }\n }\n\n private _renderNavToggle(): TemplateResult | string {\n if (this.noNavToggle || !this._hasSideNav) return '';\n const expanded = !this.rail;\n return html`\n <div class=\"nav-toggle-group\">\n ${this._tip(\n this._navLocked\n ? 'The navigation stays collapsed at this window width'\n : expanded\n ? 'Collapse navigation'\n : 'Expand navigation',\n html`<nile-button\n class=\"nav-toggle utility-control\"\n part=\"nav-toggle\"\n variant=\"ghost\"\n circle\n aria-controls=\"side-nav\"\n aria-expanded=${expanded ? 'true' : 'false'}\n ?disabled=${this._navLocked}\n aria-label=${expanded ? 'Collapse navigation' : 'Expand navigation'}\n @click=${() => this.toggleNav()}\n >\n ${renderGlyph('ng-panel-left', 20, 'currentColor')}\n </nile-button>`\n )}\n ${this._hasTopBar || this._hasTitleBlock\n ? html`<span class=\"rule\" part=\"rule\"></span>`\n : ''}\n </div>\n `;\n }\n\n /** Whether the header has a title block of its own to draw: a title, the back arrow or a slotted app icon mounts it. */\n private get _hasTitleBlock(): boolean {\n return this._hasTitle || this.headerBack || this._hasAppIcon;\n }\n\n /** A title is present when `pageTitle` has content or the `page-title` slot is filled. */\n private get _hasTitle(): boolean {\n return !!this.pageTitle || this._hasTitleSlot;\n }\n\n /** A description is present when `description` has content or the `description` slot is filled. */\n private get _hasDescription(): boolean {\n return !!this.description || this._hasDescriptionSlot;\n }\n\n /** `headingLevel` as a safe `aria-level`: a whole number clamped to 1–6, and 1 for anything non-numeric. */\n private get _headingLevel(): number {\n const level = Math.trunc(Number(this.headingLevel));\n return Number.isFinite(level) ? Math.min(6, Math.max(1, level)) : 1;\n }\n\n private _renderBack(): TemplateResult | string {\n if (!this.headerBack) return '';\n return html`\n <span class=\"back-line\">\n ${this._tip(\n this.headerBackLabel,\n html`<button\n class=\"back\"\n part=\"back\"\n type=\"button\"\n aria-label=${this.headerBackLabel}\n @click=${() => this.goBackHeader()}\n >\n ${renderGlyph('ng-arrow-narrow-left', 20, 'currentColor')}\n </button>`\n )}\n </span>\n `;\n }\n\n private _renderAppIconSlot(): TemplateResult {\n return html`<slot\n name=\"app-icon\"\n @slotchange=${(e: Event) => this._onSlotChange('app-icon', e)}\n ></slot>`;\n }\n\n private _renderBreadcrumbSlot(): TemplateResult {\n return html`<slot\n name=\"breadcrumb\"\n @slotchange=${(e: Event) => this._onSlotChange('breadcrumb', e)}\n ></slot>`;\n }\n\n /* The app-icon slot has to exist whenever the stack does not, or a slotted icon could never mount it: park it, hidden. */\n private _renderAppIconProbe(): TemplateResult {\n return html`<span class=\"app-icon-probe\" hidden\n >${this._renderAppIconSlot()}</span\n >`;\n }\n\n /* A slot that is not live in the stack still has to exist, or slotted content could never mount it: park it, hidden. */\n private _renderTitleProbe(): TemplateResult | string {\n const descriptionLive = this._hasTitle && this._hasDescription;\n if (descriptionLive) return '';\n return html`<span class=\"title-probe\" hidden\n >${this._hasTitle ? '' : this._renderTitleSlot()}${descriptionLive\n ? ''\n : this._renderDescriptionSlot()}</span\n >`;\n }\n\n private _renderTitleSlot(): TemplateResult {\n return html`<slot\n name=\"page-title\"\n @slotchange=${(e: Event) => this._onSlotChange('page-title', e)}\n >${this.pageTitle}</slot\n >`;\n }\n\n private _renderDescriptionSlot(): TemplateResult {\n return html`<slot\n name=\"description\"\n @slotchange=${(e: Event) => this._onSlotChange('description', e)}\n >${this.description}</slot\n >`;\n }\n\n private _renderTitleBlock(): TemplateResult {\n if (!this._hasTitleBlock) {\n return html`${this._renderAppIconProbe()}${this._renderTitleProbe()}`;\n }\n\n /* The stack is the title and/or the app icon; a back arrow on its own brings no empty stack. */\n if (!this._hasTitle && !this._hasAppIcon) {\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()} ${this._renderAppIconProbe()}\n ${this._renderTitleProbe()}\n </div>\n `;\n }\n\n /* The back arrow sits beside the stack; the app icon starts the stack's first row, so the description lines up under the icon when there is one and under the title when not. */\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()}\n <div class=\"title-stack\">\n <div class=\"title-row\">\n <span class=\"app-icon\" part=\"app-icon\"\n >${this._renderAppIconSlot()}</span\n >\n ${this._hasTitle\n ? this._tip(\n this._clipped.title,\n html`<div\n class=\"page-title\"\n part=\"page-title\"\n role=\"heading\"\n aria-level=${this._headingLevel}\n >${this._renderTitleSlot()}</div>`,\n 'text'\n )\n : ''}\n ${this._hasTitle && this.badge\n ? html`<span class=\"badge\" part=\"badge\">${this.badge}</span>`\n : ''}\n </div>\n ${this._hasTitle && this._hasDescription\n ? this._tip(\n this._clipped.description,\n html`<p\n class=${this._hasDescriptionSlot\n ? 'description is-slotted'\n : 'description'}\n part=\"description\"\n >\n ${this._renderDescriptionSlot()}\n </p>`,\n 'text'\n )\n : ''}\n ${this._renderTitleProbe()}\n </div>\n </div>\n `;\n }\n\n private _renderTopBar(\n placement: NileAppShellTopBarPlacement\n ): TemplateResult {\n return html`\n <div\n class=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n part=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n >\n <div\n class=\"breadcrumb\"\n part=\"breadcrumb\"\n ?hidden=${!this._hasTitle || !this._hasBreadcrumb}\n >\n ${this._renderBreadcrumbSlot()}\n </div>\n <div class=\"top-bar-row\">\n ${this._renderNavToggle()}\n <div class=\"top-bar-content\">\n ${this._renderTitleBlock()}\n <slot\n name=\"top-bar\"\n @slotchange=${(e: Event) => this._onSlotChange('top-bar', e)}\n ></slot>\n </div>\n <div class=\"top-bar-actions\" part=\"top-bar-actions\">\n <slot\n name=\"top-bar-actions\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('top-bar-actions', e)}\n ></slot>\n ${this.askVisible && this._hasTopBarActions\n ? html`<span class=\"rule ask-rule\" part=\"ask-rule\"></span>`\n : ''}\n ${this.askVisible\n ? html`\n <nile-button\n class=\"ask\"\n part=\"ask\"\n exportparts=\"base: ask__base, label: ask__label\"\n variant=\"secondary\"\n @click=${() => this.openPanel()}\n >\n <span slot=\"prefix\" class=\"ask-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n ${this.askLabel}\n </nile-button>\n `\n : ''}\n </div>\n </div>\n </div>\n `;\n }\n\n public render(): TemplateResult {\n const shellBar = this.topBarPlacement === 'shell';\n\n return html`\n <button\n class=\"skip-link\"\n part=\"skip-link\"\n type=\"button\"\n @click=${() => this.focusMain()}\n >\n ${this.skipLinkLabel}\n </button>\n\n <div class=\"banner\" part=\"banner\">\n <slot\n name=\"banner\"\n @slotchange=${(e: Event) => this._onSlotChange('banner', e)}\n ></slot>\n </div>\n\n ${shellBar ? this._renderTopBar('shell') : ''}\n\n <div\n id=\"side-nav\"\n class=\"side-nav\"\n part=\"side-nav\"\n @nile-toggle=${this._onSideNavToggle}\n >\n <slot\n name=\"side-nav\"\n @slotchange=${(e: Event) => this._onSlotChange('side-nav', e)}\n ></slot>\n </div>\n\n <div class=\"content-section\" part=\"content-section\">\n <div class=\"container\" part=\"container\">\n ${shellBar ? '' : this._renderTopBar('content')}\n <div class=\"tabs\" part=\"tabs\">\n <slot\n name=\"tabs\"\n @slotchange=${(e: Event) => this._onSlotChange('tabs', e)}\n ></slot>\n </div>\n <main class=\"main\" part=\"main\" tabindex=\"-1\">\n <div class=\"main-inner\"><slot></slot></div>\n </main>\n </div>\n\n <div class=\"aside\" part=\"aside\">\n <slot\n name=\"aside\"\n @slotchange=${(e: Event) => this._onSlotChange('aside', e)}\n ></slot>\n </div>\n\n <aside\n class=\"panel\"\n part=\"panel\"\n aria-label=${ifDefined(\n this._panelOwnsChrome ? undefined : this.panelLabel\n )}\n aria-hidden=${this.panelOpen ? 'false' : 'true'}\n >\n ${this._panelOwnsChrome\n ? html`<slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>`\n : html`\n <header class=\"panel-header\" part=\"panel-header\">\n ${this.panelBack\n ? this._tip(\n this.panelBackLabel,\n html`<nile-button\n class=\"panel-back utility-control\"\n part=\"panel-back\"\n variant=\"ghost\"\n circle\n aria-label=${this.panelBackLabel}\n @click=${() => this.goBackPanel()}\n >\n ${renderGlyph('ng-arrow-left', 20, 'currentColor')}\n </nile-button>`\n )\n : ''}\n <slot name=\"panel-header\">\n <span class=\"panel-heading\">\n <span class=\"panel-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n ${this._tip(\n this._clipped.panelTitle,\n html`<h2 class=\"panel-title\" part=\"panel-title\">\n ${this.panelLabel}\n </h2>`,\n 'text'\n )}\n </span>\n </slot>\n <div class=\"panel-actions\" part=\"panel-actions\">\n <slot name=\"panel-actions\"></slot>\n ${this._tip(\n `Close ${this.panelLabel}`,\n html`<nile-button\n class=\"panel-close utility-control\"\n part=\"panel-close\"\n variant=\"ghost\"\n circle\n aria-label=\"Close ${this.panelLabel}\"\n @click=${() => this.closePanel()}\n >\n ${renderGlyph('ng-x-close', 20, 'currentColor')}\n </nile-button>`\n )}\n </div>\n </header>\n <div class=\"panel-body\" part=\"panel-body\">\n <slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>\n </div>\n <div class=\"panel-footer\" part=\"panel-footer\">\n <slot\n name=\"panel-footer\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('panel-footer', e)}\n ></slot>\n </div>\n `}\n </aside>\n </div>\n `;\n }\n}\n\nexport default NileAppShell;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-app-shell': NileAppShell;\n }\n}\n"]}
|
|
@@ -169,6 +169,10 @@ export declare class NileCalendar extends NileElement {
|
|
|
169
169
|
private parseDate;
|
|
170
170
|
private handleStartDateInput;
|
|
171
171
|
private handleEndDateInput;
|
|
172
|
+
/** True when the date falls inside `allowedDates` (always true when none is set). */
|
|
173
|
+
private isDateAllowed;
|
|
174
|
+
/** Puts the previous valid value back into a manual input after an out-of-range entry. */
|
|
175
|
+
private revertManualInput;
|
|
172
176
|
private maskValuesMap;
|
|
173
177
|
private boundMaskInputs;
|
|
174
178
|
private unbindStructuredInput;
|
|
@@ -641,24 +641,40 @@ let NileCalendar = class NileCalendar extends NileElement {
|
|
|
641
641
|
handleStartDateInput(event) {
|
|
642
642
|
event.stopPropagation();
|
|
643
643
|
const newDate = this.parseDate(event.detail.value, this.startDate);
|
|
644
|
-
if (newDate) {
|
|
644
|
+
if (newDate && this.isDateAllowed(newDate)) {
|
|
645
645
|
newDate.setHours(0, 0, 0);
|
|
646
646
|
this.startDate = newDate;
|
|
647
647
|
this.currentMonth = newDate.getMonth();
|
|
648
648
|
this.currentYear = newDate.getFullYear();
|
|
649
649
|
this.requestUpdate();
|
|
650
650
|
}
|
|
651
|
+
else if (newDate) {
|
|
652
|
+
this.revertManualInput(event, this.startDate);
|
|
653
|
+
}
|
|
651
654
|
}
|
|
652
655
|
handleEndDateInput(event) {
|
|
653
656
|
event.stopPropagation();
|
|
654
657
|
const newDate = this.parseDate(event.detail.value, this.endDate);
|
|
655
|
-
if (newDate) {
|
|
658
|
+
if (newDate && this.isDateAllowed(newDate)) {
|
|
656
659
|
newDate.setHours(23, 59, 59);
|
|
657
660
|
this.endDate = newDate;
|
|
658
661
|
this.currentMonth = newDate.getMonth();
|
|
659
662
|
this.currentYear = newDate.getFullYear();
|
|
660
663
|
this.requestUpdate();
|
|
661
664
|
}
|
|
665
|
+
else if (newDate) {
|
|
666
|
+
this.revertManualInput(event, this.endDate);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
/** True when the date falls inside `allowedDates` (always true when none is set). */
|
|
670
|
+
isDateAllowed(date) {
|
|
671
|
+
return this.isAllowedDate(date.getDate(), date.getMonth(), date.getFullYear());
|
|
672
|
+
}
|
|
673
|
+
/** Puts the previous valid value back into a manual input after an out-of-range entry. */
|
|
674
|
+
revertManualInput(event, previous) {
|
|
675
|
+
const input = event.target;
|
|
676
|
+
if (input)
|
|
677
|
+
input.value = this.formatDate(previous);
|
|
662
678
|
}
|
|
663
679
|
unbindStructuredInput() {
|
|
664
680
|
for (const inp of this.boundMaskInputs) {
|