@aquera/nile-elements 1.6.6 → 1.6.8
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1735 -489
- package/dist/internal/enum.cjs.js +1 -1
- package/dist/internal/enum.cjs.js.map +1 -1
- package/dist/internal/enum.esm.js +1 -1
- package/dist/nile-inline-sidebar/index.cjs.js +1 -1
- package/dist/nile-inline-sidebar/index.esm.js +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar/nile-inline-sidebar.css.esm.js +76 -19
- package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +42 -23
- package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.css.esm.js +8 -9
- package/dist/nile-inline-sidebar-item/index.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item/index.esm.js +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +16 -18
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +22 -4
- package/dist/nile-inline-sidebar-item-body/index.cjs.js +2 -0
- package/dist/nile-inline-sidebar-item-body/index.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-item-body/index.esm.js +1 -0
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.cjs.js +2 -0
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +2 -0
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +53 -0
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.esm.js +13 -0
- package/dist/nile-inline-sidebar-item-header/index.cjs.js +2 -0
- package/dist/nile-inline-sidebar-item-header/index.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-item-header/index.esm.js +1 -0
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.cjs.js +2 -0
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +2 -0
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +27 -0
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.esm.js +16 -0
- package/dist/nile-inline-sidebar-panel/index.cjs.js +2 -0
- package/dist/nile-inline-sidebar-panel/index.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-panel/index.esm.js +1 -0
- package/dist/nile-inline-sidebar-panel/nile-inline-sidebar-panel.cjs.js +2 -0
- package/dist/nile-inline-sidebar-panel/nile-inline-sidebar-panel.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.cjs.js +2 -0
- package/dist/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.esm.js +19 -0
- package/dist/nile-inline-sidebar-panel/nile-inline-sidebar-panel.esm.js +5 -0
- package/dist/nile-inline-sidebar-panel-group/index.cjs.js +2 -0
- package/dist/nile-inline-sidebar-panel-group/index.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-panel-group/index.esm.js +1 -0
- package/dist/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.cjs.js +2 -0
- package/dist/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.cjs.js +2 -0
- package/dist/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.cjs.js.map +1 -0
- package/dist/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.esm.js +30 -0
- package/dist/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.esm.js +12 -0
- package/dist/nile-nav-tab/index.cjs.js +2 -0
- package/dist/nile-nav-tab/index.cjs.js.map +1 -0
- package/dist/nile-nav-tab/index.esm.js +1 -0
- package/dist/nile-nav-tab/nile-nav-tab.cjs.js +2 -0
- package/dist/nile-nav-tab/nile-nav-tab.cjs.js.map +1 -0
- package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +2 -0
- package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -0
- package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +190 -0
- package/dist/nile-nav-tab/nile-nav-tab.esm.js +36 -0
- package/dist/nile-nav-tab-group/index.cjs.js +2 -0
- package/dist/nile-nav-tab-group/index.cjs.js.map +1 -0
- package/dist/nile-nav-tab-group/index.esm.js +1 -0
- package/dist/nile-nav-tab-group/nile-nav-tab-group.cjs.js +4 -0
- package/dist/nile-nav-tab-group/nile-nav-tab-group.cjs.js.map +1 -0
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +2 -0
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -0
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +668 -0
- package/dist/nile-nav-tab-group/nile-nav-tab-group.esm.js +61 -0
- package/dist/nile-nav-tab-panel/index.cjs.js +2 -0
- package/dist/nile-nav-tab-panel/index.cjs.js.map +1 -0
- package/dist/nile-nav-tab-panel/index.esm.js +1 -0
- package/dist/nile-nav-tab-panel/nile-nav-tab-panel.cjs.js +2 -0
- package/dist/nile-nav-tab-panel/nile-nav-tab-panel.cjs.js.map +1 -0
- package/dist/nile-nav-tab-panel/nile-nav-tab-panel.css.cjs.js +2 -0
- package/dist/nile-nav-tab-panel/nile-nav-tab-panel.css.cjs.js.map +1 -0
- package/dist/nile-nav-tab-panel/nile-nav-tab-panel.css.esm.js +22 -0
- package/dist/nile-nav-tab-panel/nile-nav-tab-panel.esm.js +8 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +5 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.js +7 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/enum.d.ts +6 -0
- package/dist/src/internal/enum.js +7 -0
- package/dist/src/internal/enum.js.map +1 -1
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.d.ts +1 -0
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js +75 -17
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.d.ts +17 -1
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js +147 -18
- package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js.map +1 -1
- package/dist/src/nile-inline-sidebar-group/nile-inline-sidebar-group.css.d.ts +1 -0
- package/dist/src/nile-inline-sidebar-group/nile-inline-sidebar-group.css.js +7 -7
- package/dist/src/nile-inline-sidebar-group/nile-inline-sidebar-group.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.d.ts +1 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +15 -17
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.d.ts +7 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js +63 -4
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item-body/index.d.ts +1 -0
- package/dist/src/nile-inline-sidebar-item-body/index.js +2 -0
- package/dist/src/nile-inline-sidebar-item-body/index.js.map +1 -0
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.d.ts +9 -0
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +62 -0
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -0
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.d.ts +45 -0
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.js +110 -0
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.js.map +1 -0
- package/dist/src/nile-inline-sidebar-item-header/index.d.ts +1 -0
- package/dist/src/nile-inline-sidebar-item-header/index.js +2 -0
- package/dist/src/nile-inline-sidebar-item-header/index.js.map +1 -0
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.d.ts +9 -0
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +36 -0
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -0
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.d.ts +34 -0
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.js +68 -0
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.js.map +1 -0
- package/dist/src/nile-inline-sidebar-panel/index.d.ts +1 -0
- package/dist/src/nile-inline-sidebar-panel/index.js +2 -0
- package/dist/src/nile-inline-sidebar-panel/index.js.map +1 -0
- package/dist/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.d.ts +9 -0
- package/dist/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.js +28 -0
- package/dist/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.js.map +1 -0
- package/dist/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.d.ts +35 -0
- package/dist/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.js +55 -0
- package/dist/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.js.map +1 -0
- package/dist/src/nile-inline-sidebar-panel-group/index.d.ts +1 -0
- package/dist/src/nile-inline-sidebar-panel-group/index.js +2 -0
- package/dist/src/nile-inline-sidebar-panel-group/index.js.map +1 -0
- package/dist/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.d.ts +9 -0
- package/dist/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.js +39 -0
- package/dist/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.js.map +1 -0
- package/dist/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.d.ts +43 -0
- package/dist/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.js +93 -0
- package/dist/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.js.map +1 -0
- package/dist/src/nile-nav-tab/index.d.ts +1 -0
- package/dist/src/nile-nav-tab/index.js +2 -0
- package/dist/src/nile-nav-tab/index.js.map +1 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.css.d.ts +9 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.css.js +199 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.d.ts +50 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.js +190 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.js.map +1 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.test.d.ts +1 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.test.js +656 -0
- package/dist/src/nile-nav-tab/nile-nav-tab.test.js.map +1 -0
- package/dist/src/nile-nav-tab-group/index.d.ts +1 -0
- package/dist/src/nile-nav-tab-group/index.js +2 -0
- package/dist/src/nile-nav-tab-group/index.js.map +1 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.d.ts +12 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +680 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.d.ts +119 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.js +765 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.js.map +1 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.d.ts +3 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +838 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -0
- package/dist/src/nile-nav-tab-panel/index.d.ts +1 -0
- package/dist/src/nile-nav-tab-panel/index.js +2 -0
- package/dist/src/nile-nav-tab-panel/index.js.map +1 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.css.d.ts +15 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.css.js +37 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.css.js.map +1 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.d.ts +37 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.js +75 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.js.map +1 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.test.d.ts +1 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.test.js +534 -0
- package/dist/src/nile-nav-tab-panel/nile-nav-tab-panel.test.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +5 -2
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +9 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.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/package.json +8 -3
- package/src/index.ts +7 -0
- package/src/internal/enum.ts +8 -1
- package/src/nile-inline-sidebar/nile-inline-sidebar.css.ts +75 -17
- package/src/nile-inline-sidebar/nile-inline-sidebar.ts +148 -18
- package/src/nile-inline-sidebar-group/nile-inline-sidebar-group.css.ts +7 -7
- package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +15 -17
- package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.ts +74 -9
- package/src/nile-inline-sidebar-item-body/index.ts +1 -0
- package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +64 -0
- package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.ts +110 -0
- package/src/nile-inline-sidebar-item-header/index.ts +1 -0
- package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +38 -0
- package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.ts +69 -0
- package/src/nile-inline-sidebar-panel/index.ts +1 -0
- package/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.ts +30 -0
- package/src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.ts +53 -0
- package/src/nile-inline-sidebar-panel-group/index.ts +1 -0
- package/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.ts +41 -0
- package/src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.ts +101 -0
- package/src/nile-nav-tab/index.ts +1 -0
- package/src/nile-nav-tab/nile-nav-tab.css.ts +201 -0
- package/src/nile-nav-tab/nile-nav-tab.test.ts +768 -0
- package/src/nile-nav-tab/nile-nav-tab.ts +198 -0
- package/src/nile-nav-tab-group/index.ts +1 -0
- package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +682 -0
- package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +1009 -0
- package/src/nile-nav-tab-group/nile-nav-tab-group.ts +845 -0
- package/src/nile-nav-tab-panel/index.ts +1 -0
- package/src/nile-nav-tab-panel/nile-nav-tab-panel.css.ts +39 -0
- package/src/nile-nav-tab-panel/nile-nav-tab-panel.test.ts +797 -0
- package/src/nile-nav-tab-panel/nile-nav-tab-panel.ts +78 -0
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +5 -2
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -1
- package/vscode-html-custom-data.json +272 -2
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 { __decorate } from "tslib";
|
|
8
|
+
import { html } from 'lit';
|
|
9
|
+
import { customElement, property, state, query } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './nile-inline-sidebar-item-body.css';
|
|
11
|
+
import NileElement from '../internal/nile-element';
|
|
12
|
+
/**
|
|
13
|
+
* Nile inline-sidebar-item-body component.
|
|
14
|
+
*
|
|
15
|
+
* @tag nile-inline-sidebar-item-body
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
let NileInlineSidebarItemBody = class NileInlineSidebarItemBody extends NileElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
/** Maximum number of visible lines before text is truncated with an ellipsis. */
|
|
22
|
+
this.lines = 2;
|
|
23
|
+
this.content = '';
|
|
24
|
+
this.showTooltip = false;
|
|
25
|
+
this.isTruncated = false;
|
|
26
|
+
this.disabled = false;
|
|
27
|
+
this.active = false;
|
|
28
|
+
/* #endregion */
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The styles for nile-inline-sidebar-item-body
|
|
32
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
|
33
|
+
*/
|
|
34
|
+
static get styles() {
|
|
35
|
+
return [styles];
|
|
36
|
+
}
|
|
37
|
+
/* #endregion */
|
|
38
|
+
/* #region Methods */
|
|
39
|
+
firstUpdated() {
|
|
40
|
+
this.checkTruncation();
|
|
41
|
+
if (this.bodyContentEl) {
|
|
42
|
+
this.resizeObserver = new ResizeObserver(() => this.checkTruncation());
|
|
43
|
+
this.resizeObserver.observe(this.bodyContentEl);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
super.disconnectedCallback();
|
|
48
|
+
this.resizeObserver?.disconnect();
|
|
49
|
+
}
|
|
50
|
+
checkTruncation() {
|
|
51
|
+
if (this.bodyContentEl) {
|
|
52
|
+
const truncated = this.bodyContentEl.scrollHeight > this.bodyContentEl.clientHeight;
|
|
53
|
+
if (truncated !== this.isTruncated) {
|
|
54
|
+
this.isTruncated = truncated;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
get contentTemplate() {
|
|
59
|
+
const body = html `<div class="body-text" part="body-text">${this.content}</div>`;
|
|
60
|
+
return this.isTruncated && this.showTooltip
|
|
61
|
+
? html `<nile-lite-tooltip content=${this.content} hoist>${body}</nile-lite-tooltip>`
|
|
62
|
+
: body;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Render method
|
|
66
|
+
* @slot This is a slot test
|
|
67
|
+
*/
|
|
68
|
+
render() {
|
|
69
|
+
return html `
|
|
70
|
+
<div class="item-body" part="item-body">
|
|
71
|
+
<div class="prefix-content" part="prefix-content">
|
|
72
|
+
<slot name="prefix"></slot>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="body-content" part="body-content" style="--line-clamp: ${this.lines ? this.lines : 2}">
|
|
75
|
+
${this.content ? this.contentTemplate : html `<div class="body-text" part="body-text"><slot></slot></div>`}
|
|
76
|
+
</div>
|
|
77
|
+
<div class="suffix-content" part="suffix-content">
|
|
78
|
+
<slot name="suffix"></slot>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
__decorate([
|
|
85
|
+
property({ type: Number, reflect: true })
|
|
86
|
+
], NileInlineSidebarItemBody.prototype, "lines", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
property({ type: String, reflect: true })
|
|
89
|
+
], NileInlineSidebarItemBody.prototype, "content", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
property({ type: Boolean, reflect: true })
|
|
92
|
+
], NileInlineSidebarItemBody.prototype, "showTooltip", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
state()
|
|
95
|
+
], NileInlineSidebarItemBody.prototype, "isTruncated", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
query('.body-content')
|
|
98
|
+
], NileInlineSidebarItemBody.prototype, "bodyContentEl", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
|
101
|
+
], NileInlineSidebarItemBody.prototype, "disabled", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
|
104
|
+
], NileInlineSidebarItemBody.prototype, "active", void 0);
|
|
105
|
+
NileInlineSidebarItemBody = __decorate([
|
|
106
|
+
customElement('nile-inline-sidebar-item-body')
|
|
107
|
+
], NileInlineSidebarItemBody);
|
|
108
|
+
export { NileInlineSidebarItemBody };
|
|
109
|
+
export default NileInlineSidebarItemBody;
|
|
110
|
+
//# sourceMappingURL=nile-inline-sidebar-item-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-item-body.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Copyright Aquera Inc 2025\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} from 'lit';\nimport { customElement, property, state, query} from 'lit/decorators.js';\nimport {styles} from './nile-inline-sidebar-item-body.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile inline-sidebar-item-body component.\n *\n * @tag nile-inline-sidebar-item-body\n *\n */\n@customElement('nile-inline-sidebar-item-body')\nexport class NileInlineSidebarItemBody extends NileElement {\n\n\t/** Maximum number of visible lines before text is truncated with an ellipsis. */\n\t@property({ type: Number, reflect: true }) lines: number = 2;\n\n\t@property({ type: String, reflect: true }) content: string = '';\n\n\t@property({ type: Boolean, reflect: true }) showTooltip: boolean = false;\n\n\t@state() private isTruncated = false;\n\n\t@query('.body-content') private bodyContentEl!: HTMLElement;\n\n\t@property({ type: Boolean, reflect: true, attribute: true }) disabled: boolean = false;\n\t@property({ type: Boolean, reflect: true, attribute: true }) active: boolean = false;\n\n\tprivate resizeObserver?: ResizeObserver;\n\n\t/**\n\t * The styles for nile-inline-sidebar-item-body\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\tfirstUpdated() {\n\t\tthis.checkTruncation();\n\t\tif (this.bodyContentEl) {\n\t\t\tthis.resizeObserver = new ResizeObserver(() => this.checkTruncation());\n\t\t\tthis.resizeObserver.observe(this.bodyContentEl);\n\t\t}\n\t}\n\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback();\n\t\tthis.resizeObserver?.disconnect();\n\t}\n\n\tprivate checkTruncation() {\n\t\tif (this.bodyContentEl) {\n\t\t\tconst truncated = this.bodyContentEl.scrollHeight > this.bodyContentEl.clientHeight;\n\t\t\tif (truncated !== this.isTruncated) {\n\t\t\t\tthis.isTruncated = truncated;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate get contentTemplate(): TemplateResult {\n\t\tconst body = html`<div class=\"body-text\" part=\"body-text\">${this.content}</div>`;\n\n\t\treturn this.isTruncated && this.showTooltip\n\t\t\t? html`<nile-lite-tooltip content=${this.content} hoist>${body}</nile-lite-tooltip>`\n\t\t\t: body;\n\t}\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t<div class=\"item-body\" part=\"item-body\">\n\t\t<div class=\"prefix-content\" part=\"prefix-content\">\n\t\t\t<slot name=\"prefix\"></slot>\n\t\t</div>\n\t\t<div class=\"body-content\" part=\"body-content\" style=\"--line-clamp: ${this.lines? this.lines : 2}\">\n\t\t\t${this.content ? this.contentTemplate : html`<div class=\"body-text\" part=\"body-text\"><slot></slot></div>`}\n\t\t</div>\n\t\t<div class=\"suffix-content\" part=\"suffix-content\">\n\t\t\t<slot name=\"suffix\"></slot>\n\t\t</div>\n\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileInlineSidebarItemBody;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-inline-sidebar-item-body': NileInlineSidebarItemBody;\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NileInlineSidebarItemHeader } from './nile-inline-sidebar-item-header';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["export { NileInlineSidebarItemHeader } from './nile-inline-sidebar-item-header';"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2026
|
|
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
|
+
export declare const styles: import("lit").CSSResult;
|
|
8
|
+
declare const _default: import("lit").CSSResult[];
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2026
|
|
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 { css } from 'lit';
|
|
8
|
+
export const styles = css `
|
|
9
|
+
:host {
|
|
10
|
+
font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));
|
|
11
|
+
}
|
|
12
|
+
.item-header {
|
|
13
|
+
display: flex;
|
|
14
|
+
gap: var(--nile-spacing-xs, var(--ng-spacing-xs));
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
.item-header .body-content .header-text {
|
|
20
|
+
display: block;
|
|
21
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
22
|
+
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
23
|
+
line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
|
|
24
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
25
|
+
}
|
|
26
|
+
:host([active]) .item-header .body-content .header-text {
|
|
27
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
28
|
+
color: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([disabled]) .item-header .body-content .header-text {
|
|
32
|
+
color: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
export default [styles];
|
|
36
|
+
//# sourceMappingURL=nile-inline-sidebar-item-header.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-item-header.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2026\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 {css} from 'lit';\n\nexport const styles = css`\n\t:host {\n\t\tfont-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n\t}\n\t.item-header {\n\t\tdisplay: flex;\n\t\tgap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t}\n\t.item-header .body-content .header-text {\n\t\tdisplay: block;\n\t\tfont-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n\t\tfont-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n\t\tline-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n\t\tcolor: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n\t}\n\t:host([active]) .item-header .body-content .header-text {\n\t\tfont-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n\t\tcolor: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));\n\t}\n\n\t:host([disabled]) .item-header .body-content .header-text {\n\t\tcolor: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));\n\t}\n`;\n\nexport default [styles];\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 } from 'lit';
|
|
8
|
+
import NileElement from '../internal/nile-element';
|
|
9
|
+
/**
|
|
10
|
+
* Nile inline-sidebar-item-header component.
|
|
11
|
+
*
|
|
12
|
+
* @tag nile-inline-sidebar-item-header
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare class NileInlineSidebarItemHeader extends NileElement {
|
|
16
|
+
active: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The styles for nile-inline-sidebar-item-header
|
|
20
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
|
21
|
+
*/
|
|
22
|
+
static get styles(): CSSResultArray;
|
|
23
|
+
/**
|
|
24
|
+
* Render method
|
|
25
|
+
* @slot This is a slot test
|
|
26
|
+
*/
|
|
27
|
+
render(): TemplateResult;
|
|
28
|
+
}
|
|
29
|
+
export default NileInlineSidebarItemHeader;
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'nile-inline-sidebar-item-header': NileInlineSidebarItemHeader;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 { __decorate } from "tslib";
|
|
8
|
+
import { html } from 'lit';
|
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './nile-inline-sidebar-item-header.css';
|
|
11
|
+
import NileElement from '../internal/nile-element';
|
|
12
|
+
/**
|
|
13
|
+
* Nile inline-sidebar-item-header component.
|
|
14
|
+
*
|
|
15
|
+
* @tag nile-inline-sidebar-item-header
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
let NileInlineSidebarItemHeader = class NileInlineSidebarItemHeader extends NileElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.active = false;
|
|
22
|
+
this.disabled = false;
|
|
23
|
+
/* #endregion */
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The styles for nile-inline-sidebar-item-header
|
|
27
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
|
28
|
+
*/
|
|
29
|
+
static get styles() {
|
|
30
|
+
return [styles];
|
|
31
|
+
}
|
|
32
|
+
/* #endregion */
|
|
33
|
+
/* #region Methods */
|
|
34
|
+
/**
|
|
35
|
+
* Render method
|
|
36
|
+
* @slot This is a slot test
|
|
37
|
+
*/
|
|
38
|
+
render() {
|
|
39
|
+
return html `
|
|
40
|
+
<div class="item-header" part="item-header">
|
|
41
|
+
<div class="prefix-content" part="prefix-content">
|
|
42
|
+
<slot name="prefix"></slot>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="body-content" part="body-content">
|
|
45
|
+
<div class="header-text" part="header-text">
|
|
46
|
+
<slot name="text"></slot>
|
|
47
|
+
<slot></slot>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="suffix-content" part="suffix-content">
|
|
51
|
+
<slot name="suffix"></slot>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
__decorate([
|
|
58
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
|
59
|
+
], NileInlineSidebarItemHeader.prototype, "active", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
|
62
|
+
], NileInlineSidebarItemHeader.prototype, "disabled", void 0);
|
|
63
|
+
NileInlineSidebarItemHeader = __decorate([
|
|
64
|
+
customElement('nile-inline-sidebar-item-header')
|
|
65
|
+
], NileInlineSidebarItemHeader);
|
|
66
|
+
export { NileInlineSidebarItemHeader };
|
|
67
|
+
export default NileInlineSidebarItemHeader;
|
|
68
|
+
//# sourceMappingURL=nile-inline-sidebar-item-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-item-header.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAC,MAAM,uCAAuC,CAAC;AAC7D,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,WAAW;IAArD;;QACuD,WAAM,GAAG,KAAK,CAAC;QACf,aAAQ,GAAG,KAAK,CAAC;QAqC9E,gBAAgB;IACjB,CAAC;IApCA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAED,gBAAgB;IAEhB,qBAAqB;IAErB;;;OAGG;IACI,MAAM;QACZ,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;IAeT,CAAC;IACJ,CAAC;CAGD,CAAA;AAvC6D;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;2DAAgB;AACf;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;6DAAkB;AAFlE,2BAA2B;IADvC,aAAa,CAAC,iCAAiC,CAAC;GACpC,2BAA2B,CAwCvC;;AAED,eAAe,2BAA2B,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\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 } from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-inline-sidebar-item-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile inline-sidebar-item-header component.\n *\n * @tag nile-inline-sidebar-item-header\n *\n */\n@customElement('nile-inline-sidebar-item-header')\nexport class NileInlineSidebarItemHeader extends NileElement {\n\t@property({ type: Boolean, reflect: true, attribute: true }) active = false;\n\t@property({ type: Boolean, reflect: true, attribute: true }) disabled = false;\n\n\t/**\n\t * The styles for nile-inline-sidebar-item-header\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t<div class=\"item-header\" part=\"item-header\">\n\t\t<div class=\"prefix-content\" part=\"prefix-content\">\n\t\t<slot name=\"prefix\"></slot>\n\t\t</div>\n\t\t<div class=\"body-content\" part=\"body-content\">\n\t\t<div class=\"header-text\" part=\"header-text\">\n\t\t\t<slot name=\"text\"></slot>\n\t\t\t<slot></slot>\n\t\t</div>\n\t\t</div>\n\t\t<div class=\"suffix-content\" part=\"suffix-content\">\n\t\t\t<slot name=\"suffix\"></slot>\n\t\t</div>\n\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileInlineSidebarItemHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-inline-sidebar-item-header': NileInlineSidebarItemHeader;\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NileInlineSidebarPanel } from './nile-inline-sidebar-panel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { NileInlineSidebarPanel } from './nile-inline-sidebar-panel';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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
|
+
export declare const styles: import("lit").CSSResult;
|
|
8
|
+
declare const _default: import("lit").CSSResult[];
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 { css } from 'lit';
|
|
8
|
+
export const styles = css `
|
|
9
|
+
:host {
|
|
10
|
+
display: none;
|
|
11
|
+
height: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([active]) {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.panel {
|
|
22
|
+
flex: 1;
|
|
23
|
+
height: 100%;
|
|
24
|
+
overflow: auto;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
export default [styles];
|
|
28
|
+
//# sourceMappingURL=nile-inline-sidebar-panel.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-panel.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\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 { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: none;\n height: 100%;\n min-width: 0;\n overflow: hidden;\n }\n\n :host([active]) {\n display: flex;\n flex: 1;\n }\n\n .panel {\n flex: 1;\n height: 100%;\n overflow: auto;\n }\n`;\n\nexport default [styles];\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 } from 'lit';
|
|
8
|
+
import NileElement from '../internal/nile-element';
|
|
9
|
+
/**
|
|
10
|
+
* Content panel associated with a `nile-inline-sidebar-item`.
|
|
11
|
+
* Linked via the item's `panel` property matching this panel's `name`.
|
|
12
|
+
*
|
|
13
|
+
* @tag nile-inline-sidebar-panel
|
|
14
|
+
*
|
|
15
|
+
* @attr name - Identifier that links this panel to a sidebar item's `panel` property.
|
|
16
|
+
* @attr active - Whether this panel is currently visible.
|
|
17
|
+
*
|
|
18
|
+
* @slot - Default slot for panel content.
|
|
19
|
+
*
|
|
20
|
+
* @csspart base - The panel container.
|
|
21
|
+
*/
|
|
22
|
+
export declare class NileInlineSidebarPanel extends NileElement {
|
|
23
|
+
/** Identifier that links this panel to a sidebar item's `panel` property. */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Whether this panel is currently visible. */
|
|
26
|
+
active: boolean;
|
|
27
|
+
static get styles(): CSSResultArray;
|
|
28
|
+
render(): TemplateResult;
|
|
29
|
+
}
|
|
30
|
+
export default NileInlineSidebarPanel;
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'nile-inline-sidebar-panel': NileInlineSidebarPanel;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 { __decorate } from "tslib";
|
|
8
|
+
import { html } from 'lit';
|
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './nile-inline-sidebar-panel.css';
|
|
11
|
+
import NileElement from '../internal/nile-element';
|
|
12
|
+
/**
|
|
13
|
+
* Content panel associated with a `nile-inline-sidebar-item`.
|
|
14
|
+
* Linked via the item's `panel` property matching this panel's `name`.
|
|
15
|
+
*
|
|
16
|
+
* @tag nile-inline-sidebar-panel
|
|
17
|
+
*
|
|
18
|
+
* @attr name - Identifier that links this panel to a sidebar item's `panel` property.
|
|
19
|
+
* @attr active - Whether this panel is currently visible.
|
|
20
|
+
*
|
|
21
|
+
* @slot - Default slot for panel content.
|
|
22
|
+
*
|
|
23
|
+
* @csspart base - The panel container.
|
|
24
|
+
*/
|
|
25
|
+
let NileInlineSidebarPanel = class NileInlineSidebarPanel extends NileElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
/** Identifier that links this panel to a sidebar item's `panel` property. */
|
|
29
|
+
this.name = '';
|
|
30
|
+
/** Whether this panel is currently visible. */
|
|
31
|
+
this.active = false;
|
|
32
|
+
}
|
|
33
|
+
static get styles() {
|
|
34
|
+
return [styles];
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return html `
|
|
38
|
+
<div class="panel" part="base">
|
|
39
|
+
<slot></slot>
|
|
40
|
+
</div>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
__decorate([
|
|
45
|
+
property({ type: String, reflect: true })
|
|
46
|
+
], NileInlineSidebarPanel.prototype, "name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
property({ type: Boolean, reflect: true })
|
|
49
|
+
], NileInlineSidebarPanel.prototype, "active", void 0);
|
|
50
|
+
NileInlineSidebarPanel = __decorate([
|
|
51
|
+
customElement('nile-inline-sidebar-panel')
|
|
52
|
+
], NileInlineSidebarPanel);
|
|
53
|
+
export { NileInlineSidebarPanel };
|
|
54
|
+
export default NileInlineSidebarPanel;
|
|
55
|
+
//# sourceMappingURL=nile-inline-sidebar-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-panel.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-panel/nile-inline-sidebar-panel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;;;;;;;;GAYG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW;IAAhD;;QACL,6EAA6E;QAClC,SAAI,GAAG,EAAE,CAAC;QAErD,+CAA+C;QACH,WAAM,GAAG,KAAK,CAAC;IAa7D,CAAC;IAXQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;KAIV,CAAC;IACJ,CAAC;CACF,CAAA;AAhB4C;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAAW;AAGT;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sDAAgB;AALhD,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAkBlC;;AAED,eAAe,sBAAsB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-inline-sidebar-panel.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Content panel associated with a `nile-inline-sidebar-item`.\n * Linked via the item's `panel` property matching this panel's `name`.\n *\n * @tag nile-inline-sidebar-panel\n *\n * @attr name - Identifier that links this panel to a sidebar item's `panel` property.\n * @attr active - Whether this panel is currently visible.\n *\n * @slot - Default slot for panel content.\n *\n * @csspart base - The panel container.\n */\n@customElement('nile-inline-sidebar-panel')\nexport class NileInlineSidebarPanel extends NileElement {\n /** Identifier that links this panel to a sidebar item's `panel` property. */\n @property({ type: String, reflect: true }) name = '';\n\n /** Whether this panel is currently visible. */\n @property({ type: Boolean, reflect: true }) active = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"panel\" part=\"base\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nexport default NileInlineSidebarPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-inline-sidebar-panel': NileInlineSidebarPanel;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NileInlineSidebarPanelGroup } from './nile-inline-sidebar-panel-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-panel-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["export { NileInlineSidebarPanelGroup } from './nile-inline-sidebar-panel-group';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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
|
+
export declare const styles: import("lit").CSSResult;
|
|
8
|
+
declare const _default: import("lit").CSSResult[];
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 { css } from 'lit';
|
|
8
|
+
export const styles = css `
|
|
9
|
+
:host {
|
|
10
|
+
display: flex;
|
|
11
|
+
height: 100%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.panel-group {
|
|
16
|
+
display: flex;
|
|
17
|
+
height: 100%;
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([placement='right']) .panel-group {
|
|
22
|
+
flex-direction: row-reverse;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.sidebar-container {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.panel-container {
|
|
31
|
+
flex: 1;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
height: 100%;
|
|
34
|
+
display: flex;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
export default [styles];
|
|
39
|
+
//# sourceMappingURL=nile-inline-sidebar-panel-group.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-panel-group.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-panel-group/nile-inline-sidebar-panel-group.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\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 { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: flex;\n height: 100%;\n width: 100%;\n }\n\n .panel-group {\n display: flex;\n height: 100%;\n width: 100%;\n }\n\n :host([placement='right']) .panel-group {\n flex-direction: row-reverse;\n }\n\n .sidebar-container {\n display: flex;\n flex-shrink: 0;\n }\n\n .panel-container {\n flex: 1;\n min-width: 0;\n height: 100%;\n display: flex;\n overflow: hidden;\n }\n`;\n\nexport default [styles];\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2025
|
|
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 } from 'lit';
|
|
8
|
+
import NileElement from '../internal/nile-element';
|
|
9
|
+
/**
|
|
10
|
+
* Layout container that positions a `nile-inline-sidebar` beside one or more
|
|
11
|
+
* `nile-inline-sidebar-panel` elements. Handles panel switching when sidebar
|
|
12
|
+
* items are clicked.
|
|
13
|
+
*
|
|
14
|
+
* @tag nile-inline-sidebar-panel-group
|
|
15
|
+
*
|
|
16
|
+
* @attr placement - Mirror of the sidebar's placement. Controls flex direction.
|
|
17
|
+
*
|
|
18
|
+
* @slot sidebar - Slot for the `nile-inline-sidebar` element.
|
|
19
|
+
* @slot - Default slot for `nile-inline-sidebar-panel` elements.
|
|
20
|
+
*
|
|
21
|
+
* @csspart base - The outer flex container.
|
|
22
|
+
* @csspart sidebar-container - Wrapper around the sidebar slot.
|
|
23
|
+
* @csspart panel-container - Wrapper around the panel slot.
|
|
24
|
+
*/
|
|
25
|
+
export declare class NileInlineSidebarPanelGroup extends NileElement {
|
|
26
|
+
/** Mirrors the sidebar's placement to control layout direction. */
|
|
27
|
+
placement: 'left' | 'right';
|
|
28
|
+
private defaultSlot;
|
|
29
|
+
static get styles(): CSSResultArray;
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
private get panels();
|
|
33
|
+
private handleSidebarItemClick;
|
|
34
|
+
/** Activate a panel by name, deactivating all others. */
|
|
35
|
+
activatePanel(name: string): void;
|
|
36
|
+
render(): TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
export default NileInlineSidebarPanelGroup;
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'nile-inline-sidebar-panel-group': NileInlineSidebarPanelGroup;
|
|
42
|
+
}
|
|
43
|
+
}
|